igniteui-angular-data-grids 20.0.2-beta.2 → 20.1.0-beta.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.
Files changed (36) hide show
  1. package/bundles/igniteui-angular-data-grids.umd.js +3847 -3535
  2. package/bundles/igniteui-angular-data-grids.umd.min.js +1 -1
  3. package/esm2015/lib/CellPresenterBase.js +1 -1
  4. package/esm2015/lib/CheckboxListView_combined.js +75 -67
  5. package/esm2015/lib/ColumnFilterCondition_combined.js +3119 -3094
  6. package/esm2015/lib/ContentCellModelHelper.js +1 -1
  7. package/esm2015/lib/DataGridScrollerKeyboardListener.js +15 -15
  8. package/esm2015/lib/GridColumnFilterOptionsView_combined.js +1 -1
  9. package/esm2015/lib/GridConditionalStyleProperty.js +315 -197
  10. package/esm2015/lib/GridFilterDialogView_combined.js +1 -1
  11. package/esm2015/lib/MultiColumnComboBoxView_combined.js +3 -3
  12. package/esm2015/lib/TemplateHeader.js +1 -1
  13. package/esm2015/lib/TextIconSetConditionalStyle.js +14 -9
  14. package/esm2015/lib/igx-data-grid-component.js +28 -0
  15. package/esm2015/lib/igx-grid-conditional-style-property-component.js +109 -33
  16. package/esm5/lib/CellPresenterBase.js +1 -1
  17. package/esm5/lib/CheckboxListView_combined.js +75 -67
  18. package/esm5/lib/ColumnFilterCondition_combined.js +3096 -3071
  19. package/esm5/lib/ContentCellModelHelper.js +1 -1
  20. package/esm5/lib/DataGridScrollerKeyboardListener.js +15 -15
  21. package/esm5/lib/GridColumnFilterOptionsView_combined.js +1 -1
  22. package/esm5/lib/GridConditionalStyleProperty.js +332 -186
  23. package/esm5/lib/GridFilterDialogView_combined.js +1 -1
  24. package/esm5/lib/MultiColumnComboBoxView_combined.js +3 -3
  25. package/esm5/lib/TemplateHeader.js +1 -1
  26. package/esm5/lib/TextIconSetConditionalStyle.js +14 -9
  27. package/esm5/lib/igx-data-grid-component.js +28 -0
  28. package/esm5/lib/igx-grid-conditional-style-property-component.js +136 -32
  29. package/fesm2015/igniteui-angular-data-grids.js +3817 -3561
  30. package/fesm5/igniteui-angular-data-grids.js +3849 -3537
  31. package/lib/CheckboxListView_combined.d.ts +25 -24
  32. package/lib/ColumnFilterCondition_combined.d.ts +533 -525
  33. package/lib/GridConditionalStyleProperty.d.ts +84 -61
  34. package/lib/igx-data-grid-component.d.ts +8 -0
  35. package/lib/igx-grid-conditional-style-property-component.d.ts +21 -3
  36. package/package.json +4 -4
@@ -499,7 +499,7 @@ export let GridFilterDialog = /*@__PURE__*/ (() => {
499
499
  }
500
500
  if (this.n != null) {
501
501
  if (this.n.grid != null) {
502
- this.n.grid.vd();
502
+ this.n.grid.vh();
503
503
  }
504
504
  this.n.nu();
505
505
  }
@@ -846,7 +846,7 @@ export let MultiColumnComboBoxView = /*@__PURE__*/ (() => {
846
846
  this.d.isColumnOptionsEnabled = false;
847
847
  this.d.isActiveCellStyleEnabled = false;
848
848
  this.d.cornerRadius = new CornerRadius(0, 0);
849
- this.d.iy = false;
849
+ this.d.iz = false;
850
850
  let b = this.d;
851
851
  b.activeCellChanged = delegateCombine(b.activeCellChanged, runOn(this, this.a7));
852
852
  let c = this.d;
@@ -1125,7 +1125,7 @@ export let MultiColumnComboBoxView = /*@__PURE__*/ (() => {
1125
1125
  }
1126
1126
  let k = this.e.activeCell;
1127
1127
  if (null != j.activeCell) {
1128
- this.d.kl(false, false);
1128
+ this.d.km(false, false);
1129
1129
  b.preventDefault();
1130
1130
  }
1131
1131
  else {
@@ -1152,7 +1152,7 @@ export let MultiColumnComboBoxView = /*@__PURE__*/ (() => {
1152
1152
  }
1153
1153
  let o = this.e.activeCell;
1154
1154
  if (null != n.activeCell) {
1155
- this.d.ky(false, false);
1155
+ this.d.kz(false, false);
1156
1156
  b.preventDefault();
1157
1157
  }
1158
1158
  else {
@@ -27,7 +27,7 @@ export let TemplateHeader = /*@__PURE__*/ (() => {
27
27
  ep(a, b, c, d) {
28
28
  super.ep(a, b, c, d);
29
29
  let e = a;
30
- let f = b.cf(a.l);
30
+ let f = b.cg(a.l);
31
31
  e.ny = f.lk;
32
32
  e.n = f.hs;
33
33
  e.n1 = f.jg;
@@ -12,6 +12,7 @@ import { Convert } from "igniteui-angular-core";
12
12
  import { enumGetBox, markType } from "igniteui-angular-core";
13
13
  import { GridConditionalStyleCollection } from "./GridConditionalStyleCollection";
14
14
  import { GridConditionalStyleProperty } from "./GridConditionalStyleProperty";
15
+ import { GridConditionalStyleFontInfo } from "./GridConditionalStyleFontInfo";
15
16
  import { GridStyleRepository } from "./GridStyleRepository";
16
17
  import { intDivide } from "igniteui-angular-core";
17
18
  /**
@@ -75,19 +76,23 @@ export let TextIconSetConditionalStyle = /*@__PURE__*/ (() => {
75
76
  h.t = true;
76
77
  h.u = true;
77
78
  let i = new GridConditionalStyleProperty();
78
- i.aj = 0;
79
- i.b9 = "TextValue";
80
- i.bc = b[d];
79
+ i.al = 0;
80
+ i.cs = "TextValue";
81
+ i.cv = b[d];
81
82
  h.properties.add(i);
82
83
  i = new GridConditionalStyleProperty();
83
- i.aj = 0;
84
- i.b9 = "TextColor";
85
- i.bc = c[d];
84
+ i.al = 0;
85
+ i.cs = "TextColor";
86
+ i.c8 = c[d];
86
87
  h.properties.add(i);
87
88
  i = new GridConditionalStyleProperty();
88
- i.aj = 0;
89
- i.b9 = "FontInfo";
90
- i.bc = GridStyleRepository.i;
89
+ i.al = 0;
90
+ i.cs = "FontInfo";
91
+ i.aj = ((() => {
92
+ let $ret = new GridConditionalStyleFontInfo();
93
+ $ret.textStyle = GridStyleRepository.i;
94
+ return $ret;
95
+ })());
91
96
  h.properties.add(i);
92
97
  a.add(h);
93
98
  }
@@ -3154,6 +3154,34 @@ export let IgxDataGridComponent = /*@__PURE__*/ (() => {
3154
3154
  loadLayout(json) {
3155
3155
  this.i.loadLayout(json);
3156
3156
  }
3157
+ registerIconFromText(iconCollection, iconName, iconText) {
3158
+ this.i.registerIconFromText(iconCollection, iconName, iconText);
3159
+ }
3160
+ getIconFromCache(iconCollection, iconName) {
3161
+ let iv = this.i.getIconFromCache(iconCollection, iconName);
3162
+ return (iv);
3163
+ }
3164
+ registerMultiPathSVG(iconCollection, iconName, multiPathSVG) {
3165
+ this.i.registerMultiPathSVG(iconCollection, iconName, multiPathSVG);
3166
+ }
3167
+ getMultiPathSVGFromCache(iconCollection, iconName) {
3168
+ let iv = this.i.getMultiPathSVGFromCache(iconCollection, iconName);
3169
+ return (iv);
3170
+ }
3171
+ registerIconFromDataURL(iconCollection, iconName, dataURL) {
3172
+ this.i.registerIconFromDataURL(iconCollection, iconName, dataURL);
3173
+ }
3174
+ getDataURLFromCache(iconCollection, iconName) {
3175
+ let iv = this.i.getDataURLFromCache(iconCollection, iconName);
3176
+ return (iv);
3177
+ }
3178
+ registerIconSource(iconCollection, iconName, source) {
3179
+ this.i.registerIconSource(iconCollection, iconName, source);
3180
+ }
3181
+ getIconSource(iconCollection, iconName) {
3182
+ let iv = this.i.getIconSource(iconCollection, iconName);
3183
+ return (iv);
3184
+ }
3157
3185
  get filterExpressionsChanging() {
3158
3186
  if (this._filterExpressionsChanging == null) {
3159
3187
  this._filterExpressionsChanging = new EventEmitter();
@@ -2,6 +2,7 @@ import { EventEmitter, Output, Component, Input, ChangeDetectionStrategy } from
2
2
  import { delegateCombine } from "igniteui-angular-core";
3
3
  import { GridConditionalStylePropertyStylingType_$type } from "./GridConditionalStylePropertyStylingType";
4
4
  import { GridConditionalStyleBoundType_$type } from "./GridConditionalStyleBoundType";
5
+ import { IgxGridConditionalStyleFontInfoComponent } from "./igx-grid-conditional-style-font-info-component";
5
6
  import { IgxGridConditionFilterStringErrorsParsingEventArgs } from "./igx-grid-condition-filter-string-errors-parsing-event-args";
6
7
  import { GridConditionalStyleProperty } from "./GridConditionalStyleProperty";
7
8
  import { TypeRegistrar } from "igniteui-angular-core";
@@ -57,10 +58,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
57
58
  onImplementationCreated() {
58
59
  }
59
60
  get stylingType() {
60
- return this.i.aj;
61
+ return this.i.al;
61
62
  }
62
63
  set stylingType(v) {
63
- this.i.aj = ensureEnum(GridConditionalStylePropertyStylingType_$type, v);
64
+ this.i.al = ensureEnum(GridConditionalStylePropertyStylingType_$type, v);
64
65
  }
65
66
  get minimumType() {
66
67
  return this.i.ah;
@@ -75,10 +76,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
75
76
  this.i.ag = ensureEnum(GridConditionalStyleBoundType_$type, v);
76
77
  }
77
78
  get propertyName() {
78
- return this.i.b9;
79
+ return this.i.cs;
79
80
  }
80
81
  set propertyName(v) {
81
- this.i.b9 = v;
82
+ this.i.cs = v;
82
83
  }
83
84
  get inputValueExpression() {
84
85
  return this.i.w;
@@ -87,10 +88,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
87
88
  this.i.w = v;
88
89
  }
89
90
  get inputValueExpressionString() {
90
- return this.i.bo;
91
+ return this.i.b5;
91
92
  }
92
93
  set inputValueExpressionString(v) {
93
- this.i.bo = v;
94
+ this.i.b5 = v;
94
95
  }
95
96
  get actualInputValueExpression() {
96
97
  return this.i.s;
@@ -105,10 +106,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
105
106
  this.i.y = v;
106
107
  }
107
108
  get minimumInputValueExpressionString() {
108
- return this.i.b5;
109
+ return this.i.cn;
109
110
  }
110
111
  set minimumInputValueExpressionString(v) {
111
- this.i.b5 = v;
112
+ this.i.cn = v;
112
113
  }
113
114
  get actualMinimumInputValueExpression() {
114
115
  return this.i.u;
@@ -123,10 +124,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
123
124
  this.i.x = v;
124
125
  }
125
126
  get maximumInputValueExpressionString() {
126
- return this.i.bz;
127
+ return this.i.ch;
127
128
  }
128
129
  set maximumInputValueExpressionString(v) {
129
- this.i.bz = v;
130
+ this.i.ch = v;
130
131
  }
131
132
  get actualMaximumInputValueExpression() {
132
133
  return this.i.t;
@@ -141,10 +142,10 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
141
142
  this.i.ad = v;
142
143
  }
143
144
  get sumInputValueExpressionString() {
144
- return this.i.ce;
145
+ return this.i.cz;
145
146
  }
146
147
  set sumInputValueExpressionString(v) {
147
- this.i.ce = v;
148
+ this.i.cz = v;
148
149
  }
149
150
  get actualSumInputValueExpression() {
150
151
  return this.i.v;
@@ -152,47 +153,102 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
152
153
  set actualSumInputValueExpression(v) {
153
154
  this.i.v = v;
154
155
  }
155
- get value() {
156
+ get doubleValue() {
157
+ return this.i.a7;
158
+ }
159
+ set doubleValue(v) {
160
+ this.i.a7 = +v;
161
+ }
162
+ get intValue() {
156
163
  return this.i.bc;
157
164
  }
158
- set value(v) {
159
- this.i.bc = v;
165
+ set intValue(v) {
166
+ this.i.bc = +v;
167
+ }
168
+ get boolValue() {
169
+ return this.i.ap;
170
+ }
171
+ set boolValue(v) {
172
+ this.i.ap = ensureBool(v);
173
+ }
174
+ get dateValue() {
175
+ return this.i.a0;
176
+ }
177
+ set dateValue(v) {
178
+ this.i.a0 = v;
179
+ }
180
+ get fontValue() {
181
+ const r = this.i.aj;
182
+ if (r == null) {
183
+ return null;
184
+ }
185
+ if (!r.externalObject) {
186
+ let e = IgxGridConditionalStyleFontInfoComponent._createFromInternal(r);
187
+ if (e) {
188
+ e._implementation = r;
189
+ }
190
+ r.externalObject = e;
191
+ }
192
+ return r.externalObject;
193
+ }
194
+ set fontValue(v) {
195
+ if (v != null && this._stylingContainer && v._styling)
196
+ v._styling(this._stylingContainer, this, this);
197
+ v == null ? this.i.aj = null : this.i.aj = v.i;
198
+ }
199
+ get objectValue() {
200
+ return this.i.bm;
201
+ }
202
+ set objectValue(v) {
203
+ this.i.bm = v;
204
+ }
205
+ get stringValue() {
206
+ return this.i.cv;
207
+ }
208
+ set stringValue(v) {
209
+ this.i.cv = v;
210
+ }
211
+ get brushValue() {
212
+ return brushToString(this.i.c8);
213
+ }
214
+ set brushValue(v) {
215
+ this.i.c8 = stringToBrush(v);
160
216
  }
161
217
  get shouldSetValue() {
162
- return this.i.as;
218
+ return this.i.aw;
163
219
  }
164
220
  set shouldSetValue(v) {
165
- this.i.as = ensureBool(v);
221
+ this.i.aw = ensureBool(v);
166
222
  }
167
223
  get minimumColor() {
168
- return brushToString(this.i.co);
224
+ return brushToString(this.i.da);
169
225
  }
170
226
  set minimumColor(v) {
171
- this.i.co = stringToBrush(v);
227
+ this.i.da = stringToBrush(v);
172
228
  }
173
229
  get maximumColor() {
174
- return brushToString(this.i.cn);
230
+ return brushToString(this.i.c9);
175
231
  }
176
232
  set maximumColor(v) {
177
- this.i.cn = stringToBrush(v);
233
+ this.i.c9 = stringToBrush(v);
178
234
  }
179
235
  get minimumInputValue() {
180
- return this.i.ba;
236
+ return this.i.bl;
181
237
  }
182
238
  set minimumInputValue(v) {
183
- this.i.ba = v;
239
+ this.i.bl = v;
184
240
  }
185
241
  get maximumInputValue() {
186
- return this.i.a9;
242
+ return this.i.bk;
187
243
  }
188
244
  set maximumInputValue(v) {
189
- this.i.a9 = v;
245
+ this.i.bk = v;
190
246
  }
191
247
  get sumInputValue() {
192
- return this.i.bb;
248
+ return this.i.bn;
193
249
  }
194
250
  set sumInputValue(v) {
195
- this.i.bb = v;
251
+ this.i.bn = v;
196
252
  }
197
253
  get colorCollection() {
198
254
  return fromBrushCollection(this.i.f);
@@ -211,16 +267,16 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
211
267
  this.i.d = v;
212
268
  }
213
269
  get requiresGlobalValues() {
214
- return this.i.ar;
270
+ return this.i.av;
215
271
  }
216
272
  get needsGlobalMinimum() {
217
- return this.i.ap;
273
+ return this.i.at;
218
274
  }
219
275
  get needsGlobalMaximum() {
220
- return this.i.ao;
276
+ return this.i.as;
221
277
  }
222
278
  get needsGlobalSum() {
223
- return this.i.aq;
279
+ return this.i.au;
224
280
  }
225
281
  findByName(name) {
226
282
  if (this.findEphemera) {
@@ -228,6 +284,9 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
228
284
  return this.findEphemera(name);
229
285
  }
230
286
  }
287
+ if (this.fontValue && this.fontValue.name && this.fontValue.name == name) {
288
+ return this.fontValue;
289
+ }
231
290
  return null;
232
291
  }
233
292
  get hasUserValues() {
@@ -278,6 +337,9 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
278
337
  additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
279
338
  }
280
339
  initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
340
+ if (this.fontValue && this.fontValue._styling) {
341
+ this.fontValue._styling(container, component, this);
342
+ }
281
343
  if (this._otherStyling) {
282
344
  this._otherStyling(container, component, parent);
283
345
  }
@@ -312,7 +374,7 @@ export let IgxGridConditionalStylePropertyComponent = /*@__PURE__*/ (() => {
312
374
  }
313
375
  }
314
376
  IgxGridConditionalStylePropertyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxGridConditionalStylePropertyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
315
- IgxGridConditionalStylePropertyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxGridConditionalStylePropertyComponent, selector: "igx-grid-conditional-style-property", inputs: { stylingType: "stylingType", minimumType: "minimumType", maximumType: "maximumType", propertyName: "propertyName", inputValueExpression: "inputValueExpression", inputValueExpressionString: "inputValueExpressionString", actualInputValueExpression: "actualInputValueExpression", minimumInputValueExpression: "minimumInputValueExpression", minimumInputValueExpressionString: "minimumInputValueExpressionString", actualMinimumInputValueExpression: "actualMinimumInputValueExpression", maximumInputValueExpression: "maximumInputValueExpression", maximumInputValueExpressionString: "maximumInputValueExpressionString", actualMaximumInputValueExpression: "actualMaximumInputValueExpression", sumInputValueExpression: "sumInputValueExpression", sumInputValueExpressionString: "sumInputValueExpressionString", actualSumInputValueExpression: "actualSumInputValueExpression", value: "value", shouldSetValue: "shouldSetValue", minimumColor: "minimumColor", maximumColor: "maximumColor", minimumInputValue: "minimumInputValue", maximumInputValue: "maximumInputValue", sumInputValue: "sumInputValue", colorCollection: "colorCollection", valueCollection: "valueCollection" }, outputs: { filterStringErrorsParsing: "filterStringErrorsParsing" }, providers: [], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
377
+ IgxGridConditionalStylePropertyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxGridConditionalStylePropertyComponent, selector: "igx-grid-conditional-style-property", inputs: { stylingType: "stylingType", minimumType: "minimumType", maximumType: "maximumType", propertyName: "propertyName", inputValueExpression: "inputValueExpression", inputValueExpressionString: "inputValueExpressionString", actualInputValueExpression: "actualInputValueExpression", minimumInputValueExpression: "minimumInputValueExpression", minimumInputValueExpressionString: "minimumInputValueExpressionString", actualMinimumInputValueExpression: "actualMinimumInputValueExpression", maximumInputValueExpression: "maximumInputValueExpression", maximumInputValueExpressionString: "maximumInputValueExpressionString", actualMaximumInputValueExpression: "actualMaximumInputValueExpression", sumInputValueExpression: "sumInputValueExpression", sumInputValueExpressionString: "sumInputValueExpressionString", actualSumInputValueExpression: "actualSumInputValueExpression", doubleValue: "doubleValue", intValue: "intValue", boolValue: "boolValue", dateValue: "dateValue", fontValue: "fontValue", objectValue: "objectValue", stringValue: "stringValue", brushValue: "brushValue", shouldSetValue: "shouldSetValue", minimumColor: "minimumColor", maximumColor: "maximumColor", minimumInputValue: "minimumInputValue", maximumInputValue: "maximumInputValue", sumInputValue: "sumInputValue", colorCollection: "colorCollection", valueCollection: "valueCollection" }, outputs: { filterStringErrorsParsing: "filterStringErrorsParsing" }, providers: [], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
316
378
  return IgxGridConditionalStylePropertyComponent;
317
379
  })();
318
380
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxGridConditionalStylePropertyComponent, decorators: [{
@@ -355,7 +417,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
355
417
  type: Input
356
418
  }], actualSumInputValueExpression: [{
357
419
  type: Input
358
- }], value: [{
420
+ }], doubleValue: [{
421
+ type: Input
422
+ }], intValue: [{
423
+ type: Input
424
+ }], boolValue: [{
425
+ type: Input
426
+ }], dateValue: [{
427
+ type: Input
428
+ }], fontValue: [{
429
+ type: Input
430
+ }], objectValue: [{
431
+ type: Input
432
+ }], stringValue: [{
433
+ type: Input
434
+ }], brushValue: [{
359
435
  type: Input
360
436
  }], shouldSetValue: [{
361
437
  type: Input
@@ -38,7 +38,7 @@ var CellPresenterBase = /** @class */ /*@__PURE__*/ (function (_super) {
38
38
  if (a.a5) {
39
39
  this.a.cu(a.m9, a.el, a.eq, a.eo, a.ej);
40
40
  if (a.bc(CellModel.eh)) {
41
- if (!a.bj && a.p.iy && a.bg && a.cn == 1) {
41
+ if (!a.bj && a.p.iz && a.bg && a.cn == 1) {
42
42
  this.a.b6();
43
43
  }
44
44
  }