ids-enterprise-typings 10.12.0 → 10.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,14 @@ type SohoButtonOptionsStyle = 'default' | 'btn' | 'btn-primary' | 'btn-secondary
|
|
|
9
9
|
type SohoButtonOptionsType = 'default' | 'btn-icon' | 'btn-menu' | 'btn-actions' | 'btn-toggle' |
|
|
10
10
|
'icon-favorite' | 'btn-editor' | 'input' | null | undefined;
|
|
11
11
|
|
|
12
|
+
interface SohoBadgeOptions {
|
|
13
|
+
/** The placement of notification badge. */
|
|
14
|
+
position?: SohoNotificationBadgePosition;
|
|
15
|
+
|
|
16
|
+
/** The color of the notification badge. */
|
|
17
|
+
color?: SohoNotificationBadgeColor;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
/**
|
|
13
21
|
* Button Options
|
|
14
22
|
*/
|
|
@@ -27,6 +27,14 @@ interface SohoDataGridFrozenColumns {
|
|
|
27
27
|
right?: any[];
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
type SohoDataGridColumnMaskOptionsFunction = (
|
|
31
|
+
row: number,
|
|
32
|
+
cell: number,
|
|
33
|
+
fieldValue: any,
|
|
34
|
+
columnDef: SohoDataGridColumn,
|
|
35
|
+
rowData: Object
|
|
36
|
+
) => SohoMaskOptions;
|
|
37
|
+
|
|
30
38
|
/**
|
|
31
39
|
* Settings for the Soho datagrid control.
|
|
32
40
|
*/
|
|
@@ -897,10 +905,10 @@ interface SohoDataGridColumn {
|
|
|
897
905
|
filterMask?: string;
|
|
898
906
|
|
|
899
907
|
/** The newer style object pattern mask for the column */
|
|
900
|
-
maskOptions?: SohoMaskOptions;
|
|
908
|
+
maskOptions?: SohoMaskOptions | SohoDataGridColumnMaskOptionsFunction;
|
|
901
909
|
|
|
902
910
|
/** The newer style object pattern mask for the column filter row only*/
|
|
903
|
-
filterMaskOptions?: SohoMaskOptions;
|
|
911
|
+
filterMaskOptions?: SohoMaskOptions | SohoDataGridColumnMaskOptionsFunction;
|
|
904
912
|
|
|
905
913
|
/** Call the grids `onPostRenderCell` function for cells in this column after they are rendered. */
|
|
906
914
|
postRender?: boolean;
|
|
@@ -1580,4 +1588,4 @@ interface SohoDataGridFilterOperatorChangedEvent {
|
|
|
1580
1588
|
defaultOperator: string;
|
|
1581
1589
|
value?: string;
|
|
1582
1590
|
columnId: string;
|
|
1583
|
-
}
|
|
1591
|
+
}
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
*/
|
|
19
19
|
type SohoModalTriggerType = 'click' | 'immediate';
|
|
20
20
|
|
|
21
|
+
type SohoModalFocusChangeFunction = (
|
|
22
|
+
modal: HTMLElement,
|
|
23
|
+
el: HTMLElement
|
|
24
|
+
) => void;
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* Soho Modal Dialog configuration options
|
|
23
28
|
*
|
|
@@ -208,6 +213,9 @@ interface SohoModalStatic {
|
|
|
208
213
|
* Releases all resources managed by the modal.
|
|
209
214
|
*/
|
|
210
215
|
destroy(): void;
|
|
216
|
+
|
|
217
|
+
/** Fires when an element gets focus on the modal */
|
|
218
|
+
onFocusChange?: SohoModalFocusChangeFunction;
|
|
211
219
|
}
|
|
212
220
|
|
|
213
221
|
/**
|
|
@@ -24,9 +24,6 @@ interface SohoNotificationBadgeOptions {
|
|
|
24
24
|
/** The color of the notification badge. */
|
|
25
25
|
color?: SohoNotificationBadgeColor;
|
|
26
26
|
|
|
27
|
-
/** The icon to display. */
|
|
28
|
-
icon?: string;
|
|
29
|
-
|
|
30
27
|
/** Add extra attributes like id's to the component */
|
|
31
28
|
attributes?: Array<Object> | Object;
|
|
32
29
|
}
|