igniteui-webcomponents-grids 4.0.4 → 4.2.3-alpha

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.
Files changed (129) hide show
  1. package/bundles/igniteui-webcomponents-grids.umd.js +2059 -1378
  2. package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
  3. package/esm2015/lib/BaseEditorView.js +30 -14
  4. package/esm2015/lib/CanvasGridCellBase.js +26 -26
  5. package/esm2015/lib/CanvasSummaryCell.js +2 -2
  6. package/esm2015/lib/CanvasTextHeaderCell.js +1 -1
  7. package/esm2015/lib/CheckboxListView_combined.js +553 -389
  8. package/esm2015/lib/ColumnChooserView_combined.js +9 -9
  9. package/esm2015/lib/ColumnFilterCondition_combined.js +32 -0
  10. package/esm2015/lib/ColumnGroupingView_combined.js +1 -1
  11. package/esm2015/lib/ColumnPinningView_combined.js +7 -7
  12. package/esm2015/lib/ComboEditorView.js +111 -105
  13. package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +401 -344
  14. package/esm2015/lib/DataGridCellLayoutPanel.js +5 -5
  15. package/esm2015/lib/DateEditorView.js +94 -87
  16. package/esm2015/lib/EditorCell.js +11 -11
  17. package/esm2015/lib/FilterCell.js +77 -61
  18. package/esm2015/lib/FilterCellPresenter.js +6 -3
  19. package/esm2015/lib/GridColumnFilterOptionsView_combined.js +8 -8
  20. package/esm2015/lib/GridColumnOptionsView_combined.js +47 -22
  21. package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +51 -25
  22. package/esm2015/lib/GridExpansionIndicatorView_combined.js +8 -8
  23. package/esm2015/lib/GridFilterDialogView_combined.js +5 -5
  24. package/esm2015/lib/GridSortIndicatorView_combined.js +9 -9
  25. package/esm2015/lib/ISummaryChooserView_combined.js +12 -11
  26. package/esm2015/lib/MultiColumnComboBoxView_combined.js +19 -19
  27. package/esm2015/lib/NumericEditorView.js +3 -3
  28. package/esm2015/lib/PropertyEditorView_combined.js +40 -40
  29. package/esm2015/lib/TextEditorView.js +82 -75
  30. package/esm2015/lib/igc-checkbox-list-component.js +155 -50
  31. package/esm2015/lib/igc-data-grid-comparison-operator-selector-component.js +104 -59
  32. package/esm2015/lib/igc-grid-column-options-component.js +21 -1
  33. package/esm2015/lib/igc-grid-column-summary-options-component.js +16 -2
  34. package/esm5/lib/BaseEditorView.js +34 -14
  35. package/esm5/lib/CanvasGridCellBase.js +26 -26
  36. package/esm5/lib/CanvasSummaryCell.js +2 -2
  37. package/esm5/lib/CanvasTextHeaderCell.js +1 -1
  38. package/esm5/lib/CheckboxListView_combined.js +579 -375
  39. package/esm5/lib/ColumnChooserView_combined.js +9 -9
  40. package/esm5/lib/ColumnFilterCondition_combined.js +32 -0
  41. package/esm5/lib/ColumnGroupingView_combined.js +1 -1
  42. package/esm5/lib/ColumnPinningView_combined.js +7 -7
  43. package/esm5/lib/ComboEditorView.js +108 -102
  44. package/esm5/lib/ComparisonOperatorSelectorView_combined.js +408 -343
  45. package/esm5/lib/DataGridCellLayoutPanel.js +5 -5
  46. package/esm5/lib/DateEditorView.js +93 -86
  47. package/esm5/lib/EditorCell.js +11 -11
  48. package/esm5/lib/FilterCell.js +81 -61
  49. package/esm5/lib/FilterCellPresenter.js +6 -3
  50. package/esm5/lib/GridColumnFilterOptionsView_combined.js +8 -8
  51. package/esm5/lib/GridColumnOptionsView_combined.js +55 -22
  52. package/esm5/lib/GridColumnSummaryOptionsView_combined.js +59 -25
  53. package/esm5/lib/GridExpansionIndicatorView_combined.js +8 -8
  54. package/esm5/lib/GridFilterDialogView_combined.js +5 -5
  55. package/esm5/lib/GridSortIndicatorView_combined.js +9 -9
  56. package/esm5/lib/ISummaryChooserView_combined.js +12 -11
  57. package/esm5/lib/MultiColumnComboBoxView_combined.js +19 -19
  58. package/esm5/lib/NumericEditorView.js +3 -3
  59. package/esm5/lib/PropertyEditorView_combined.js +40 -40
  60. package/esm5/lib/TextEditorView.js +82 -75
  61. package/esm5/lib/igc-checkbox-list-component.js +195 -50
  62. package/esm5/lib/igc-data-grid-comparison-operator-selector-component.js +117 -59
  63. package/esm5/lib/igc-grid-column-options-component.js +29 -1
  64. package/esm5/lib/igc-grid-column-summary-options-component.js +24 -2
  65. package/fesm2015/igniteui-webcomponents-grids.js +1935 -1395
  66. package/fesm5/igniteui-webcomponents-grids.js +2057 -1376
  67. package/grids/3rdpartylicenses.txt +445 -0
  68. package/grids/combined.js +44 -90
  69. package/grids/index.d.ts +15 -0
  70. package/grids/lib/common.d.ts +0 -4
  71. package/grids/lib/grid-toolbar-exporter-type.d.ts +3 -0
  72. package/grids/lib/igc-base-date-time-filtering-operand.d.ts +18 -0
  73. package/grids/lib/igc-base-toolbar-column-actions-directive.d.ts +2 -1
  74. package/grids/lib/igc-boolean-filtering-operand.d.ts +20 -0
  75. package/grids/lib/igc-cell-template-context.d.ts +2 -1
  76. package/grids/lib/igc-column-component.d.ts +3 -2
  77. package/grids/lib/igc-columns-auto-generated-event-args.d.ts +21 -0
  78. package/grids/lib/igc-date-filtering-operand.d.ts +20 -0
  79. package/grids/lib/igc-date-summary-operand.d.ts +75 -0
  80. package/grids/lib/igc-date-time-filtering-operand.d.ts +15 -0
  81. package/grids/lib/igc-display-density-base.d.ts +1 -1
  82. package/grids/lib/igc-exporter-options-base.d.ts +2 -0
  83. package/grids/lib/igc-filtering-expression.d.ts +33 -0
  84. package/grids/lib/igc-filtering-expressions-tree.d.ts +6 -4
  85. package/grids/lib/igc-filtering-operand.d.ts +4 -2
  86. package/grids/lib/igc-filtering-operation.d.ts +4 -0
  87. package/grids/lib/igc-grid-base-directive.d.ts +23 -2
  88. package/grids/lib/igc-grid-component.d.ts +4 -4
  89. package/grids/lib/igc-grid-edit-done-event-args.d.ts +5 -1
  90. package/grids/lib/igc-grid-selection-range.d.ts +1 -0
  91. package/grids/lib/igc-grid-toolbar-exporter-component.d.ts +2 -1
  92. package/grids/lib/igc-grouped-records.d.ts +1 -1
  93. package/grids/lib/igc-number-filtering-operand.d.ts +20 -0
  94. package/grids/lib/igc-number-summary-operand.d.ts +104 -0
  95. package/grids/lib/igc-pivot-date-dimension.d.ts +1 -20
  96. package/grids/lib/igc-pivot-grid-component.d.ts +12 -0
  97. package/grids/lib/igc-row-data-event-args.d.ts +4 -0
  98. package/grids/lib/igc-sorting-options.d.ts +3 -2
  99. package/grids/lib/igc-string-filtering-operand.d.ts +29 -0
  100. package/grids/lib/igc-summary-operand.d.ts +61 -0
  101. package/grids/lib/igc-time-filtering-operand.d.ts +15 -0
  102. package/grids/lib/igc-time-summary-operand.d.ts +49 -0
  103. package/grids/lib/sorting-options-mode.d.ts +3 -0
  104. package/grids/styles.css +1 -1
  105. package/grids/themes/dark/bootstrap.css +1 -1
  106. package/grids/themes/dark/fluent.css +1 -1
  107. package/grids/themes/dark/indigo.css +1 -1
  108. package/grids/themes/dark/material.css +1 -1
  109. package/grids/themes/light/bootstrap.css +1 -1
  110. package/grids/themes/light/fluent.css +1 -1
  111. package/grids/themes/light/indigo.css +1 -1
  112. package/grids/themes/light/material.css +1 -1
  113. package/lib/BaseEditorView.d.ts +12 -8
  114. package/lib/CheckboxListView_combined.d.ts +120 -96
  115. package/lib/ColumnFilterCondition_combined.d.ts +2 -0
  116. package/lib/ComboEditorView.d.ts +15 -14
  117. package/lib/ComboEditorView_ComboExternal.d.ts +1 -0
  118. package/lib/ComparisonOperatorSelectorView_combined.d.ts +105 -96
  119. package/lib/DateEditorView.d.ts +13 -12
  120. package/lib/FilterCell.d.ts +23 -20
  121. package/lib/GridColumnOptionsView_combined.d.ts +10 -5
  122. package/lib/GridColumnSummaryOptionsView_combined.d.ts +14 -9
  123. package/lib/IEditorView.d.ts +2 -0
  124. package/lib/TextEditorView.d.ts +10 -9
  125. package/lib/igc-checkbox-list-component.d.ts +40 -0
  126. package/lib/igc-data-grid-comparison-operator-selector-component.d.ts +11 -0
  127. package/lib/igc-grid-column-options-component.d.ts +8 -0
  128. package/lib/igc-grid-column-summary-options-component.d.ts +2 -0
  129. package/package.json +4 -4
@@ -0,0 +1,104 @@
1
+
2
+ import { IgcSummaryOperand } from './igc-summary-operand';
3
+ import { IgcGroupByRecord } from './igc-group-by-record';
4
+ import { IgcSummaryResult } from './igc-summary-result';
5
+
6
+
7
+
8
+
9
+ /* csSuppress */
10
+ // @dynamic
11
+
12
+ export declare class IgcNumberSummaryOperand extends IgcSummaryOperand
13
+ {
14
+
15
+
16
+ /**
17
+ * Returns the minimum numeric value in the provided data records.
18
+ * If filtering is applied, returns the minimum value in the filtered data records.
19
+ * ```typescript
20
+ * IgxNumberSummaryOperand.min(data);
21
+ * ```
22
+ *
23
+ * @memberof IgxNumberSummaryOperand
24
+ */
25
+ public static min(data: any[]): number;
26
+
27
+
28
+ /**
29
+ * Returns the maximum numeric value in the provided data records.
30
+ * If filtering is applied, returns the maximum value in the filtered data records.
31
+ * ```typescript
32
+ * IgxNumberSummaryOperand.max(data);
33
+ * ```
34
+ *
35
+ * @memberof IgxNumberSummaryOperand
36
+ */
37
+ public static max(data: any[]): number;
38
+
39
+
40
+ /**
41
+ * Returns the sum of the numeric values in the provided data records.
42
+ * If filtering is applied, returns the sum of the numeric values in the data records.
43
+ * ```typescript
44
+ * IgxNumberSummaryOperand.sum(data);
45
+ * ```
46
+ *
47
+ * @memberof IgxNumberSummaryOperand
48
+ */
49
+ public static sum(data: any[]): number;
50
+
51
+
52
+ /**
53
+ * Returns the average numeric value in the data provided data records.
54
+ * If filtering is applied, returns the average numeric value in the filtered data records.
55
+ * ```typescript
56
+ * IgxSummaryOperand.average(data);
57
+ * ```
58
+ *
59
+ * @memberof IgxNumberSummaryOperand
60
+ */
61
+ public static average(data: any[]): number;
62
+
63
+
64
+ /**
65
+ * Executes the static methods and returns `IgxSummaryResult[]`.
66
+ * ```typescript
67
+ * interface IgxSummaryResult {
68
+ * key: string;
69
+ * label: string;
70
+ * summaryResult: any;
71
+ * }
72
+ * ```
73
+ * Can be overridden in the inherited classes to provide customization for the `summary`.
74
+ * ```typescript
75
+ * class CustomNumberSummary extends IgxNumberSummaryOperand {
76
+ * constructor() {
77
+ * super();
78
+ * }
79
+ * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
80
+ * const result = super.operate(data, allData, fieldName, groupRecord);
81
+ * result.push({
82
+ * key: "avg",
83
+ * label: "Avg",
84
+ * summaryResult: IgxNumberSummaryOperand.average(data)
85
+ * });
86
+ * result.push({
87
+ * key: 'mdn',
88
+ * label: 'Median',
89
+ * summaryResult: this.findMedian(data)
90
+ * });
91
+ * return result;
92
+ * }
93
+ * }
94
+ * this.grid.getColumnByName('ColumnName').summaries = CustomNumberSummary;
95
+ * ```
96
+ *
97
+ * @memberof IgxNumberSummaryOperand
98
+ */
99
+ public operate(data?: any[], allData?: any[], fieldName?: string, groupRecord?: IgcGroupByRecord): IgcSummaryResult[];
100
+
101
+ }
102
+
103
+
104
+
@@ -80,26 +80,7 @@ import { IgcPivotDateDimensionOptions } from './igc-pivot-date-dimension-options
80
80
  public set options(value: IgcPivotDateDimensionOptions);
81
81
  public get options(): IgcPivotDateDimensionOptions;
82
82
 
83
-
84
-
85
- /**
86
- * @deprecated since version 15.1.x. Please use the new name `baseDimension` for future versions.
87
- *
88
- * Gets the base dimension that is used by this class to determine the other dimensions and their values.
89
- * Having base dimension set is required in order for the Date Dimensions to show.
90
- */
91
- public get inBaseDimension(): IgcPivotDimension;
92
-
93
-
94
-
95
- /**
96
- * @deprecated since version 15.1.x. Please use the new name `options` for future versions.
97
- *
98
- * Gets the options for the predefined date dimensions whether to show quarter, years and etc.
99
- */
100
- public get inOptions(): IgcPivotDateDimensionOptions;
101
-
102
- constructor(inBaseDimension?: IgcPivotDimension, inOptions?: IgcPivotDateDimensionOptions);
83
+ constructor(inBaseDimension: IgcPivotDimension, inOptions?: IgcPivotDateDimensionOptions);
103
84
 
104
85
  }
105
86
 
@@ -201,6 +201,18 @@ import { IgcFilteringExpressionsTree } from './igc-filtering-expressions-tree';
201
201
 
202
202
 
203
203
 
204
+ public get pivotContentCalcWidth(): number;
205
+
206
+
207
+
208
+ public get pivotPinnedWidth(): number;
209
+
210
+
211
+
212
+ public get pivotUnpinnedWidth(): number;
213
+
214
+
215
+
204
216
  public get rowDimensions(): IgcPivotDimension[];
205
217
 
206
218
 
@@ -12,6 +12,10 @@ import { IgcBaseEventArgs } from './igc-base-event-args';
12
12
  public set data(value: any);
13
13
  public get data(): any;
14
14
 
15
+
16
+ public set primaryKey(value: any);
17
+ public get primaryKey(): any;
18
+
15
19
  }
16
20
 
17
21
 
@@ -1,4 +1,5 @@
1
1
 
2
+ import { SortingOptionsMode } from './sorting-options-mode';
2
3
 
3
4
 
4
5
  /* jsonAPIPlainObject */
@@ -9,8 +10,8 @@
9
10
  {
10
11
 
11
12
 
12
- public set mode(value: any);
13
- public get mode(): any;
13
+ public set mode(value: SortingOptionsMode);
14
+ public get mode(): SortingOptionsMode;
14
15
 
15
16
  }
16
17
 
@@ -0,0 +1,29 @@
1
+
2
+ import { IgcFilteringOperand } from './igc-filtering-operand';
3
+
4
+
5
+
6
+
7
+ /* csSuppress */
8
+ /**
9
+ * Provides filtering operations for strings
10
+ *
11
+ * @export
12
+ */
13
+
14
+ export declare class IgcStringFilteringOperand extends IgcFilteringOperand
15
+ {
16
+
17
+
18
+
19
+ /**
20
+ * Applies case sensitivity on strings if provided
21
+ *
22
+ * @memberof IgxStringFilteringOperand
23
+ */
24
+ public static applyIgnoreCase(a: string, ignoreCase: boolean): string;
25
+
26
+ }
27
+
28
+
29
+
@@ -0,0 +1,61 @@
1
+
2
+ import { IgcGroupByRecord } from './igc-group-by-record';
3
+ import { IgcSummaryResult } from './igc-summary-result';
4
+
5
+
6
+
7
+
8
+ /* csSuppress */
9
+
10
+ export declare class IgcSummaryOperand
11
+ {
12
+
13
+
14
+ /**
15
+ * Counts all the records in the data source.
16
+ * If filtering is applied, counts only the filtered records.
17
+ * ```typescript
18
+ * IgxSummaryOperand.count(dataSource);
19
+ * ```
20
+ *
21
+ * @memberof IgxSummaryOperand
22
+ */
23
+ public static count(data: any[]): number;
24
+
25
+
26
+ /**
27
+ * Executes the static `count` method and returns `IgxSummaryResult[]`.
28
+ * ```typescript
29
+ * interface IgxSummaryResult {
30
+ * key: string;
31
+ * label: string;
32
+ * summaryResult: any;
33
+ * }
34
+ * ```
35
+ * Can be overridden in the inherited classes to provide customization for the `summary`.
36
+ * ```typescript
37
+ * class CustomSummary extends IgxSummaryOperand {
38
+ * constructor() {
39
+ * super();
40
+ * }
41
+ * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
42
+ * const result = [];
43
+ * result.push({
44
+ * key: "test",
45
+ * label: "Test",
46
+ * summaryResult: IgxSummaryOperand.count(data)
47
+ * });
48
+ * return result;
49
+ * }
50
+ * }
51
+ * this.grid.getColumnByName('ColumnName').summaries = CustomSummary;
52
+ * ```
53
+ *
54
+ * @memberof IgxSummaryOperand
55
+ */
56
+ public operate(data?: any[], _allData?: any[], _fieldName?: string, _groupRecord?: IgcGroupByRecord): IgcSummaryResult[];
57
+
58
+ }
59
+
60
+
61
+
@@ -0,0 +1,15 @@
1
+
2
+ import { IgcBaseDateTimeFilteringOperand } from './igc-base-date-time-filtering-operand';
3
+
4
+
5
+
6
+
7
+ /* csSuppress */
8
+
9
+ export declare class IgcTimeFilteringOperand extends IgcBaseDateTimeFilteringOperand
10
+ {
11
+
12
+ }
13
+
14
+
15
+
@@ -0,0 +1,49 @@
1
+
2
+ import { IgcSummaryOperand } from './igc-summary-operand';
3
+ import { IgcGroupByRecord } from './igc-group-by-record';
4
+ import { IgcSummaryResult } from './igc-summary-result';
5
+
6
+
7
+
8
+
9
+ /* csSuppress */
10
+ // @dynamic
11
+
12
+ export declare class IgcTimeSummaryOperand extends IgcSummaryOperand
13
+ {
14
+
15
+
16
+ /**
17
+ * Returns the latest time value in the data records. Compare only the time part of the date.
18
+ * If filtering is applied, returns the latest time value in the filtered data records.
19
+ * ```typescript
20
+ * IgxTimeSummaryOperand.latestTime(data);
21
+ * ```
22
+ *
23
+ * @memberof IgxTimeSummaryOperand
24
+ */
25
+ public static latestTime(data: any[]): void;
26
+
27
+
28
+
29
+ /**
30
+ * Returns the earliest time value in the data records. Compare only the time part of the date.
31
+ * If filtering is applied, returns the earliest time value in the filtered data records.
32
+ * ```typescript
33
+ * IgxTimeSummaryOperand.earliestTime(data);
34
+ * ```
35
+ *
36
+ * @memberof IgxTimeSummaryOperand
37
+ */
38
+ public static earliestTime(data: any[]): void;
39
+
40
+
41
+ /**
42
+ * @memberof IgxTimeSummaryOperand
43
+ */
44
+ public operate(data?: any[], allData?: any[], fieldName?: string, groupRecord?: IgcGroupByRecord): IgcSummaryResult[];
45
+
46
+ }
47
+
48
+
49
+
@@ -0,0 +1,3 @@
1
+
2
+ export declare type SortingOptionsMode = "single" | "multiple";
3
+