igniteui-webcomponents-grids 4.2.2 → 4.2.4-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 (72) hide show
  1. package/bundles/igniteui-webcomponents-grids.umd.js +1132 -799
  2. package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
  3. package/esm2015/lib/BaseEditorView.js +30 -14
  4. package/esm2015/lib/CheckboxListView_combined.js +1 -0
  5. package/esm2015/lib/ColumnFilterCondition_combined.js +32 -0
  6. package/esm2015/lib/ComboEditorView.js +111 -105
  7. package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +400 -343
  8. package/esm2015/lib/DateEditorView.js +94 -87
  9. package/esm2015/lib/EditorCell.js +10 -10
  10. package/esm2015/lib/FilterCell.js +76 -60
  11. package/esm2015/lib/FilterCellPresenter.js +6 -3
  12. package/esm2015/lib/GridColumnOptionsView_combined.js +47 -22
  13. package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +49 -23
  14. package/esm2015/lib/ISummaryChooserView_combined.js +1 -0
  15. package/esm2015/lib/NumericEditorView.js +3 -3
  16. package/esm2015/lib/TextEditorView.js +82 -75
  17. package/esm2015/lib/igc-data-grid-comparison-operator-selector-component.js +104 -59
  18. package/esm2015/lib/igc-grid-column-options-component.js +21 -1
  19. package/esm2015/lib/igc-grid-column-summary-options-component.js +16 -2
  20. package/esm5/lib/BaseEditorView.js +34 -14
  21. package/esm5/lib/CheckboxListView_combined.js +1 -0
  22. package/esm5/lib/ColumnFilterCondition_combined.js +32 -0
  23. package/esm5/lib/ComboEditorView.js +108 -102
  24. package/esm5/lib/ComparisonOperatorSelectorView_combined.js +407 -342
  25. package/esm5/lib/DateEditorView.js +93 -86
  26. package/esm5/lib/EditorCell.js +10 -10
  27. package/esm5/lib/FilterCell.js +80 -60
  28. package/esm5/lib/FilterCellPresenter.js +6 -3
  29. package/esm5/lib/GridColumnOptionsView_combined.js +55 -22
  30. package/esm5/lib/GridColumnSummaryOptionsView_combined.js +57 -23
  31. package/esm5/lib/ISummaryChooserView_combined.js +1 -0
  32. package/esm5/lib/NumericEditorView.js +3 -3
  33. package/esm5/lib/TextEditorView.js +82 -75
  34. package/esm5/lib/igc-data-grid-comparison-operator-selector-component.js +117 -59
  35. package/esm5/lib/igc-grid-column-options-component.js +29 -1
  36. package/esm5/lib/igc-grid-column-summary-options-component.js +24 -2
  37. package/fesm2015/igniteui-webcomponents-grids.js +1076 -804
  38. package/fesm5/igniteui-webcomponents-grids.js +1132 -799
  39. package/grids/3rdpartylicenses.txt +445 -0
  40. package/grids/combined.js +44 -160
  41. package/grids/index.d.ts +2 -0
  42. package/grids/lib/igc-grid-base-directive.d.ts +14 -0
  43. package/grids/lib/igc-grid-edit-done-event-args.d.ts +5 -1
  44. package/grids/lib/igc-grid-selection-range.d.ts +1 -0
  45. package/grids/lib/igc-pivot-date-dimension.d.ts +1 -1
  46. package/grids/lib/igc-pivot-grid-column.d.ts +32 -0
  47. package/grids/lib/igc-pivot-grid-record.d.ts +28 -0
  48. package/grids/lib/igc-row-data-event-args.d.ts +4 -0
  49. package/grids/styles.css +1 -1
  50. package/grids/themes/dark/bootstrap.css +1 -1
  51. package/grids/themes/dark/fluent.css +1 -1
  52. package/grids/themes/dark/indigo.css +1 -1
  53. package/grids/themes/dark/material.css +1 -1
  54. package/grids/themes/light/bootstrap.css +1 -1
  55. package/grids/themes/light/fluent.css +1 -1
  56. package/grids/themes/light/indigo.css +1 -1
  57. package/grids/themes/light/material.css +1 -1
  58. package/lib/BaseEditorView.d.ts +12 -8
  59. package/lib/ColumnFilterCondition_combined.d.ts +2 -0
  60. package/lib/ComboEditorView.d.ts +15 -14
  61. package/lib/ComboEditorView_ComboExternal.d.ts +1 -0
  62. package/lib/ComparisonOperatorSelectorView_combined.d.ts +104 -95
  63. package/lib/DateEditorView.d.ts +13 -12
  64. package/lib/FilterCell.d.ts +23 -20
  65. package/lib/GridColumnOptionsView_combined.d.ts +10 -5
  66. package/lib/GridColumnSummaryOptionsView_combined.d.ts +13 -8
  67. package/lib/IEditorView.d.ts +2 -0
  68. package/lib/TextEditorView.d.ts +10 -9
  69. package/lib/igc-data-grid-comparison-operator-selector-component.d.ts +11 -0
  70. package/lib/igc-grid-column-options-component.d.ts +8 -0
  71. package/lib/igc-grid-column-summary-options-component.d.ts +2 -0
  72. package/package.json +4 -4
@@ -16,130 +16,130 @@ var ComboEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
16
16
  tslib_1.__extends(ComboEditorView, _super);
17
17
  function ComboEditorView(a, b, c) {
18
18
  var _this = _super.call(this, a, c) || this;
19
- _this.y = null;
20
- _this.x = null;
21
- _this.aa = null;
22
19
  _this.ab = null;
20
+ _this.aa = null;
23
21
  _this.ad = null;
24
- _this.v = null;
25
- _this.z = false;
22
+ _this.ae = null;
23
+ _this.ag = null;
24
+ _this.y = null;
25
+ _this.ac = false;
26
26
  var d = a.createElement("div");
27
27
  d.setRawStyleProperty("margin-top", "-10px");
28
28
  d.setRawStyleProperty("height", "38px");
29
29
  d.setRawStyleProperty("width", "100%");
30
30
  _this.container = d;
31
31
  a.getPortal(d, "MultiColumnComboBox", function (e) {
32
- _this.x = e.componentRef;
33
- _this.aa = _this.x.i;
34
- _this.x.height = "100%";
35
- _this.x.density = 3;
36
- _this.x.baseTheme = b;
37
- _this.x.labelVisible = false;
38
- _this.x.columnHeadersVisible = false;
39
- _this.x.rowSeparatorsVisible = false;
40
- _this.al();
41
- _this.u();
42
- if (_this.y != null) {
43
- _this.x.textStyle = _this.y.fontString;
32
+ _this.aa = e.componentRef;
33
+ _this.ad = _this.aa.i;
34
+ _this.aa.height = "100%";
35
+ _this.aa.density = 3;
36
+ _this.aa.baseTheme = b;
37
+ _this.aa.labelVisible = false;
38
+ _this.aa.columnHeadersVisible = false;
39
+ _this.aa.rowSeparatorsVisible = false;
40
+ _this.ao();
41
+ _this.w();
42
+ if (_this.ab != null) {
43
+ _this.aa.textStyle = _this.ab.fontString;
44
44
  }
45
45
  _this.attachEvents();
46
46
  }, false);
47
47
  return _this;
48
48
  }
49
- Object.defineProperty(ComboEditorView.prototype, "ac", {
49
+ Object.defineProperty(ComboEditorView.prototype, "af", {
50
50
  get: function () {
51
- return this.ab;
51
+ return this.ae;
52
52
  },
53
53
  set: function (a) {
54
- var b = this.ab;
55
- this.ab = a;
56
- if (b != this.ab) {
57
- this.t("DataSource", b, this.ab);
54
+ var b = this.ae;
55
+ this.ae = a;
56
+ if (b != this.ae) {
57
+ this.u("DataSource", b, this.ae);
58
58
  }
59
59
  },
60
60
  enumerable: true,
61
61
  configurable: true
62
62
  });
63
- Object.defineProperty(ComboEditorView.prototype, "af", {
63
+ Object.defineProperty(ComboEditorView.prototype, "ai", {
64
64
  get: function () {
65
- return this.ad;
65
+ return this.ag;
66
66
  },
67
67
  set: function (a) {
68
- var b = this.ad;
69
- this.ad = a;
70
- if (b != this.ad) {
71
- this.t("TextField", b, this.ad);
68
+ var b = this.ag;
69
+ this.ag = a;
70
+ if (b != this.ag) {
71
+ this.u("TextField", b, this.ag);
72
72
  }
73
73
  },
74
74
  enumerable: true,
75
75
  configurable: true
76
76
  });
77
- Object.defineProperty(ComboEditorView.prototype, "w", {
77
+ Object.defineProperty(ComboEditorView.prototype, "z", {
78
78
  get: function () {
79
- return this.v;
79
+ return this.y;
80
80
  },
81
81
  set: function (a) {
82
- var b = this.v;
83
- this.v = a;
84
- if (b != this.v) {
85
- this.t("ValueField", b, this.v);
82
+ var b = this.y;
83
+ this.y = a;
84
+ if (b != this.y) {
85
+ this.u("ValueField", b, this.y);
86
86
  }
87
87
  },
88
88
  enumerable: true,
89
89
  configurable: true
90
90
  });
91
91
  ComboEditorView.prototype.setFont = function (a) {
92
- this.y = a;
93
- if (this.x != null && this.y != null) {
94
- this.x.textStyle = this.y.fontString;
92
+ this.ab = a;
93
+ if (this.aa != null && this.ab != null) {
94
+ this.aa.textStyle = this.ab.fontString;
95
95
  }
96
96
  };
97
97
  ComboEditorView.prototype.attachEvents = function () {
98
- if (this.x != null) {
99
- var a = this.x;
98
+ if (this.aa != null) {
99
+ var a = this.aa;
100
100
  a.selectedValueChanged = delegateCombine(a.selectedValueChanged, runOn(this, this.onComboValueChanged));
101
- var b = this.x;
101
+ var b = this.aa;
102
102
  b.textValueChanged = delegateCombine(b.textValueChanged, runOn(this, this.onComboTextChanged));
103
- var c = this.x;
103
+ var c = this.aa;
104
104
  c.gotFocus = delegateCombine(c.gotFocus, runOn(this, this.onComboGotFocus));
105
- var d = this.x;
105
+ var d = this.aa;
106
106
  d.lostFocus = delegateCombine(d.lostFocus, runOn(this, this.onComboLostFocus));
107
- var e = this.x;
107
+ var e = this.aa;
108
108
  e.keyDown = delegateCombine(e.keyDown, runOn(this, this.onInputKeyDown));
109
- var f = this.x;
109
+ var f = this.aa;
110
110
  f.changing = delegateCombine(f.changing, runOn(this, this.onInputChanging));
111
111
  }
112
112
  };
113
113
  ComboEditorView.prototype.detachEvents = function () {
114
- if (this.x != null) {
115
- var a = this.x;
114
+ if (this.aa != null) {
115
+ var a = this.aa;
116
116
  a.selectedValueChanged = delegateRemove(a.selectedValueChanged, runOn(this, this.onComboValueChanged));
117
- var b = this.x;
117
+ var b = this.aa;
118
118
  b.textValueChanged = delegateRemove(b.textValueChanged, runOn(this, this.onComboTextChanged));
119
- var c = this.x;
119
+ var c = this.aa;
120
120
  c.gotFocus = delegateRemove(c.gotFocus, runOn(this, this.onComboGotFocus));
121
- var d = this.x;
121
+ var d = this.aa;
122
122
  d.lostFocus = delegateRemove(d.lostFocus, runOn(this, this.onComboLostFocus));
123
- var e = this.x;
123
+ var e = this.aa;
124
124
  e.keyDown = delegateRemove(e.keyDown, runOn(this, this.onInputKeyDown));
125
- var f = this.x;
125
+ var f = this.aa;
126
126
  f.changing = delegateRemove(f.changing, runOn(this, this.onInputChanging));
127
127
  }
128
128
  };
129
129
  ComboEditorView.prototype.onTargetChanged = function () {
130
- if (this.x != null) {
131
- this.z = true;
132
- if (this.x.value == null && this.x.text != "") {
133
- this.x.text = "";
130
+ if (this.aa != null) {
131
+ this.ac = true;
132
+ if (this.aa.value == null && this.aa.text != "") {
133
+ this.aa.text = "";
134
134
  }
135
135
  this.focus();
136
- this.z = false;
136
+ this.ac = false;
137
137
  }
138
138
  };
139
139
  ComboEditorView.prototype.onEditStarted = function () {
140
140
  _super.prototype.onEditStarted.call(this);
141
141
  var a = this.container.getNativeElement();
142
- this.x.defaultColumnWidth = (a.clientWidth - 2).toString();
142
+ this.aa.defaultColumnWidth = (a.clientWidth - 2).toString();
143
143
  if (!this.a.isEditRefocusDesired) {
144
144
  this.focus();
145
145
  }
@@ -153,63 +153,63 @@ var ComboEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
153
153
  }
154
154
  }
155
155
  };
156
- ComboEditorView.prototype.r = function () {
157
- if (this.x != null) {
158
- this.aa.focus(true);
159
- this.x.select();
156
+ ComboEditorView.prototype.s = function () {
157
+ if (this.aa != null) {
158
+ this.ad.focus(true);
159
+ this.aa.select();
160
160
  }
161
161
  };
162
- ComboEditorView.prototype.ai = function () {
163
- if (this.x != null) {
164
- this.x.closeUp();
162
+ ComboEditorView.prototype.al = function () {
163
+ if (this.aa != null) {
164
+ this.aa.closeUp();
165
165
  }
166
166
  };
167
- ComboEditorView.prototype.t = function (a, b, c) {
168
- _super.prototype.t.call(this, a, b, c);
167
+ ComboEditorView.prototype.u = function (a, b, c) {
168
+ _super.prototype.u.call(this, a, b, c);
169
169
  switch (a) {
170
170
  case "DataSource":
171
171
  case "TextField":
172
172
  case "ValueField":
173
- this.al();
173
+ this.ao();
174
174
  break;
175
175
  }
176
176
  };
177
- ComboEditorView.prototype.u = function () {
178
- this.z = true;
179
- if (this.x != null) {
177
+ ComboEditorView.prototype.w = function () {
178
+ this.ac = true;
179
+ if (this.aa != null) {
180
180
  if (this.value == null) {
181
- this.x.text = " ";
181
+ this.aa.text = " ";
182
182
  }
183
- this.x.value = this.value;
184
- this.r();
183
+ this.aa.value = this.value;
184
+ this.s();
185
185
  }
186
- this.z = false;
186
+ this.ac = false;
187
187
  };
188
- ComboEditorView.prototype.al = function () {
189
- if (this.x != null) {
188
+ ComboEditorView.prototype.ao = function () {
189
+ if (this.aa != null) {
190
190
  this.detachEvents();
191
- this.x.dataSource = this.ac;
192
- this.x.textField = this.af;
193
- this.x.valueField = this.w;
194
- if (this.af != null) {
195
- this.x.fields = [this.af];
191
+ this.aa.dataSource = this.af;
192
+ this.aa.textField = this.ai;
193
+ this.aa.valueField = this.z;
194
+ if (this.ai != null) {
195
+ this.aa.fields = [this.ai];
196
196
  }
197
- else if (this.w != null && this.w.length > 0) {
198
- this.x.fields = [this.w[0]];
197
+ else if (this.z != null && this.z.length > 0) {
198
+ this.aa.fields = [this.z[0]];
199
199
  }
200
200
  else {
201
- var a = typeCast(IDataSource_$type, this.ac);
201
+ var a = typeCast(IDataSource_$type, this.af);
202
202
  if (a != null && a.actualSchema != null) {
203
- this.x.fields = [a.actualSchema.propertyNames[0]];
203
+ this.aa.fields = [a.actualSchema.propertyNames[0]];
204
204
  }
205
205
  else {
206
- var b = (Array.isArray(this.ac));
206
+ var b = (Array.isArray(this.af));
207
207
  if (b) {
208
- var c = (this.ac.length);
208
+ var c = (this.af.length);
209
209
  if (c > 0) {
210
- var d = (Object.keys(this.ac[0]));
210
+ var d = (Object.keys(this.af[0]));
211
211
  if (d.length > 0) {
212
- this.x.fields = [d[0]];
212
+ this.aa.fields = [d[0]];
213
213
  }
214
214
  }
215
215
  }
@@ -218,34 +218,40 @@ var ComboEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
218
218
  this.attachEvents();
219
219
  }
220
220
  };
221
+ ComboEditorView.prototype.v = function () {
222
+ _super.prototype.v.call(this);
223
+ if (this.aa != null) {
224
+ this.aa.textColor = this.textColor._fill;
225
+ }
226
+ };
221
227
  ComboEditorView.prototype.onComboValueChanged = function (a, b) {
222
- this.ap();
228
+ this.as();
223
229
  };
224
230
  ComboEditorView.prototype.onComboTextChanged = function (a, b) {
225
- this.ap();
231
+ this.as();
226
232
  };
227
- ComboEditorView.prototype.ap = function () {
228
- if (this.z) {
233
+ ComboEditorView.prototype.as = function () {
234
+ if (this.ac) {
229
235
  return;
230
236
  }
231
- if (this.x.value != null) {
232
- this.p(this.x.value, false);
237
+ if (this.aa.value != null) {
238
+ this.q(this.aa.value, false);
233
239
  }
234
- else if (this.x.value == null && stringIsNullOrWhiteSpace(this.x.text)) {
235
- this.p(null, false);
240
+ else if (this.aa.value == null && stringIsNullOrWhiteSpace(this.aa.text)) {
241
+ this.q(null, false);
236
242
  }
237
243
  else {
238
- this.p(this.value, false);
244
+ this.q(this.value, false);
239
245
  }
240
246
  };
241
247
  ComboEditorView.prototype.onInputChanging = function (a, b) {
242
- this.o();
248
+ this.p();
243
249
  };
244
250
  ComboEditorView.prototype.onComboLostFocus = function (a) {
245
- this.n();
251
+ this.o();
246
252
  };
247
253
  ComboEditorView.prototype.onComboGotFocus = function (a) {
248
- this.m();
254
+ this.n();
249
255
  };
250
256
  ComboEditorView.$t = markType(ComboEditorView, 'ComboEditorView', BaseEditorView.$);
251
257
  return ComboEditorView;