ids-enterprise-typings 11.2.0-beta.0 → 13.0.2

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.
@@ -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;
@@ -1428,17 +1436,15 @@ interface SohoDataGridSaveUserSettings {
1428
1436
  }
1429
1437
 
1430
1438
  interface SohoDataGridGroupable {
1431
-
1432
- //
1439
+ /* An array containing the field(s) you want to group by */
1433
1440
  fields: string[];
1434
-
1435
- // Expanded boolean or a function to determine this.
1441
+ /* The field to run the aggregator on */
1442
+ aggregate?: string;
1443
+ /* A function or boolean that returns true of false allowing you to custom which rows are initially collapsed or expanded */
1436
1444
  expanded?: boolean | Function;
1437
-
1438
- // Type of aggregation.
1445
+ /* An optional single aggregator that will run over the data and do either a sum, min, max, avg, count (non-blank/non-null) */
1439
1446
  aggregator: SohoDataGridAggregator;
1440
-
1441
- // Formatter for group row
1447
+ /* If true a row will be added after each group and this formatter will return the contents */
1442
1448
  groupRowFormatter?: SohoDataGridColumnFormatterFunction;
1443
1449
  }
1444
1450
 
@@ -1489,6 +1495,7 @@ interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
1489
1495
  on(events: 'rowactivated | beforerowactivated', handler: JQuery.EventHandlerBase<any, SohoDataGridRowActivatedEvent>): this;
1490
1496
  on(events: 'rowdeactivated', handler: JQuery.EventHandlerBase<any, SohoDataGridRowDeactivatedEvent>): this;
1491
1497
  on(events: 'selected', handler: JQuery.EventHandlerBase<any, SohoDataGridSelectedRow[]>): this;
1498
+ on(events: 'filteroperatorchanged', handler: JQuery.EventHandlerBase<any, SohoDataGridFilterOperatorChangedEvent>): this;
1492
1499
  }
1493
1500
 
1494
1501
  interface SohoDataGridRowExpandEvent {
@@ -1573,3 +1580,10 @@ interface SohoDataGridScrollEvent {
1573
1580
  percent: number;
1574
1581
  percentScrolled: number;
1575
1582
  }
1583
+
1584
+ interface SohoDataGridFilterOperatorChangedEvent {
1585
+ operator: string;
1586
+ defaultOperator: string;
1587
+ value?: string;
1588
+ columnId: string;
1589
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ids-enterprise-typings",
3
3
  "slug": "ids-enterprise-typings",
4
- "version": "11.2.0-beta.0",
4
+ "version": "13.0.2",
5
5
  "declaration": true,
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {