UNPKG

2 kBTypeScriptView Raw
1import { Enums } from '../extensibility';
2import { Type } from '@angular/core';
3export declare module Control {
4 interface IControlConfig {
5 id?: string;
6 hostId?: string;
7 viewId?: string;
8 init?: string;
9 scope?: string;
10 enableSettings?: boolean;
11 settingsKey?: string;
12 settingsObsoleteKey?: string;
13 settings?: any;
14 }
15 interface IControlScope {
16 containerId?: string;
17 config?: Control.IControlConfig;
18 settingsTemplateId?: string;
19 settingsController?: string;
20 pageInEditMode?: boolean;
21 canEditSettings?: () => boolean;
22 onSettingsChangedHandler?: () => void;
23 settingComponent?: any;
24 settingModule?: any;
25 }
26 interface IControlWithViewedHistoryScope extends Control.IControlScope {
27 hasNewData: boolean;
28 controlIsVisible: boolean;
29 getItemIds: () => Array<string>;
30 }
31 interface IControlViewPortSettings {
32 type?: Enums.ControlViewPortType;
33 viewPort?: number;
34 }
35}
36export interface IOmniaControlMetadata {
37 id: string;
38 enableSettings?: boolean;
39 skeletonTemplate?: string;
40 onBootstrapping?: () => void;
41 title?: string;
42 icon?: string;
43 group?: string;
44 showInPageDesigner?: boolean;
45 showInLayoutDesigner?: boolean;
46 insertUsingSelector?: OmniaControlSelectorInsertion | Array<OmniaControlSelectorInsertion>;
47 ngfactoryModulePath: string;
48 bootstrapComponent: Type<any>;
49 useDynamicResource?: {
50 resources: Array<string>;
51 bootstrapComponentPath: string;
52 ngModulePath?: string;
53 };
54}
55export interface OmniaControlSelectorInsertion {
56 instanceId: string;
57 cssClass?: string;
58 insertTo: any;
59 scope?: string;
60 uiControl?: boolean;
61 sequence?: number;
62 priority?: number;
63 controlContainer?: JQuery;
64 delayBootstrap?: () => Promise<void>;
65}