ids-enterprise-typings 10.12.0 → 10.12.1

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
+ }
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ids-enterprise-typings",
3
3
  "slug": "ids-enterprise-typings",
4
- "version": "10.12.0",
4
+ "version": "10.12.1",
5
5
  "declaration": true,
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {