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
@@ -22,6 +22,7 @@ export let BaseEditorView = /*@__PURE__*/ (() => {
22
22
  this.h = null;
23
23
  this._container = null;
24
24
  this.g = false;
25
+ this.x = null;
25
26
  this.valueProvided = null;
26
27
  this.userTyping = null;
27
28
  this.lostFocus = null;
@@ -42,7 +43,7 @@ export let BaseEditorView = /*@__PURE__*/ (() => {
42
43
  set value(a) {
43
44
  let b = this.i;
44
45
  this.i = a;
45
- this.t("Value", b, this.i);
46
+ this.u("Value", b, this.i);
46
47
  }
47
48
  get isEnabled() {
48
49
  return this.e;
@@ -51,7 +52,7 @@ export let BaseEditorView = /*@__PURE__*/ (() => {
51
52
  let b = this.e;
52
53
  this.e = a;
53
54
  if (b != this.e) {
54
- this.t("IsEnabled", b, this.e);
55
+ this.u("IsEnabled", b, this.e);
55
56
  }
56
57
  }
57
58
  get focusOnValueChanged() {
@@ -67,25 +68,35 @@ export let BaseEditorView = /*@__PURE__*/ (() => {
67
68
  let b = this.f;
68
69
  this.f = a;
69
70
  if (b != this.f) {
70
- this.t("ShowClearButton", b, this.f);
71
+ this.u("ShowClearButton", b, this.f);
71
72
  }
72
73
  }
73
- p(a, b) {
74
+ get textColor() {
75
+ return this.x;
76
+ }
77
+ set textColor(a) {
78
+ let b = this.x;
79
+ this.x = a;
80
+ if (b != this.x) {
81
+ this.u("TextColor", b, this.x);
82
+ }
83
+ }
84
+ q(a, b) {
74
85
  if (this.valueProvided != null) {
75
86
  this.valueProvided(this, a, b);
76
87
  }
77
88
  }
78
- o() {
89
+ p() {
79
90
  if (this.userTyping != null) {
80
91
  this.userTyping(this);
81
92
  }
82
93
  }
83
- n() {
94
+ o() {
84
95
  if (this.lostFocus != null) {
85
96
  this.lostFocus(this);
86
97
  }
87
98
  }
88
- m() {
99
+ n() {
89
100
  if (this.gotFocus != null) {
90
101
  this.gotFocus(this);
91
102
  }
@@ -116,31 +127,36 @@ export let BaseEditorView = /*@__PURE__*/ (() => {
116
127
  this.b = this.h.getRequestAnimationFrame();
117
128
  }
118
129
  this.b(() => {
119
- this.r();
130
+ this.s();
120
131
  this.d = false;
121
132
  });
122
133
  this.d = true;
123
134
  }
124
- r() {
135
+ s() {
125
136
  }
126
137
  getEditorValue() {
127
138
  return null;
128
139
  }
129
140
  setEditorValue(a) {
130
141
  }
131
- t(a, b, c) {
142
+ u(a, b, c) {
132
143
  switch (a) {
133
144
  case "Value":
134
- this.u();
145
+ this.w();
135
146
  break;
136
147
  case "IsEnabled":
137
- this.q();
148
+ this.r();
149
+ break;
150
+ case "TextColor":
151
+ this.v();
138
152
  break;
139
153
  }
140
154
  }
141
- u() {
155
+ w() {
156
+ }
157
+ r() {
142
158
  }
143
- q() {
159
+ v() {
144
160
  }
145
161
  onInputKeyDown(a, b) {
146
162
  if (!this.g) {
@@ -944,6 +944,7 @@ export let CheckboxList = /*@__PURE__*/ (() => {
944
944
  if (null != f) {
945
945
  f.zv = this.dy;
946
946
  f.zt = this.di;
947
+ f.zu = this.di;
947
948
  }
948
949
  this.m.ad();
949
950
  break;
@@ -6038,6 +6038,7 @@ export let Grid = /*@__PURE__*/ (() => {
6038
6038
  this.cv = new EditorDefinition();
6039
6039
  this.cw = new EditRowDefinition();
6040
6040
  this.c5 = new FilterRowDefinition();
6041
+ this.c5.grid = this;
6041
6042
  this.aav = this.aaw;
6042
6043
  this.yn = this.yo;
6043
6044
  this.yt = GridStyleRepository.ax;
@@ -21480,6 +21481,12 @@ export let FilterRowDefinition = /*@__PURE__*/ (() => {
21480
21481
  }
21481
21482
  c2(a, b) {
21482
21483
  switch (b.propertyName) {
21484
+ case "CellTextColor":
21485
+ this.dg();
21486
+ break;
21487
+ case "CellBackground":
21488
+ this.c9();
21489
+ break;
21483
21490
  }
21484
21491
  }
21485
21492
  cx(a, b, c, d) {
@@ -21502,6 +21509,31 @@ export let FilterRowDefinition = /*@__PURE__*/ (() => {
21502
21509
  e.lm = f.ep;
21503
21510
  }
21504
21511
  }
21512
+ dg() {
21513
+ if (this.el == null) {
21514
+ if (this.grid != null && this.grid.zv != null) {
21515
+ this.d7 = this.grid.zv;
21516
+ return;
21517
+ }
21518
+ this.d7 = this.eh();
21519
+ }
21520
+ else {
21521
+ this.d7 = this.el;
21522
+ }
21523
+ }
21524
+ c9() {
21525
+ if (this.d8 == null) {
21526
+ if (this.grid != null && this.grid.zt != null) {
21527
+ this.d1 = this.grid.zt;
21528
+ }
21529
+ else {
21530
+ this.d1 = this.ec();
21531
+ }
21532
+ }
21533
+ else {
21534
+ this.d1 = this.d8;
21535
+ }
21536
+ }
21505
21537
  }
21506
21538
  FilterRowDefinition.$t = /*@__PURE__*/ markType(FilterRowDefinition, 'FilterRowDefinition', DefinitionBase.$);
21507
21539
  return FilterRowDefinition;
@@ -15,117 +15,117 @@ export let ComboEditorView = /*@__PURE__*/ (() => {
15
15
  class ComboEditorView extends BaseEditorView {
16
16
  constructor(a, b, c) {
17
17
  super(a, c);
18
- this.y = null;
19
- this.x = null;
20
- this.aa = null;
21
18
  this.ab = null;
19
+ this.aa = null;
22
20
  this.ad = null;
23
- this.v = null;
24
- this.z = false;
21
+ this.ae = null;
22
+ this.ag = null;
23
+ this.y = null;
24
+ this.ac = false;
25
25
  let d = a.createElement("div");
26
26
  d.setRawStyleProperty("margin-top", "-10px");
27
27
  d.setRawStyleProperty("height", "38px");
28
28
  d.setRawStyleProperty("width", "100%");
29
29
  this.container = d;
30
30
  a.getPortal(d, "MultiColumnComboBox", (e) => {
31
- this.x = e.componentRef;
32
- this.aa = this.x.i;
33
- this.x.height = "100%";
34
- this.x.density = 3;
35
- this.x.baseTheme = b;
36
- this.x.labelVisible = false;
37
- this.x.columnHeadersVisible = false;
38
- this.x.rowSeparatorsVisible = false;
39
- this.al();
40
- this.u();
41
- if (this.y != null) {
42
- this.x.textStyle = this.y.fontString;
31
+ this.aa = e.componentRef;
32
+ this.ad = this.aa.i;
33
+ this.aa.height = "100%";
34
+ this.aa.density = 3;
35
+ this.aa.baseTheme = b;
36
+ this.aa.labelVisible = false;
37
+ this.aa.columnHeadersVisible = false;
38
+ this.aa.rowSeparatorsVisible = false;
39
+ this.ao();
40
+ this.w();
41
+ if (this.ab != null) {
42
+ this.aa.textStyle = this.ab.fontString;
43
43
  }
44
44
  this.attachEvents();
45
45
  }, false);
46
46
  }
47
- get ac() {
48
- return this.ab;
47
+ get af() {
48
+ return this.ae;
49
49
  }
50
- set ac(a) {
51
- let b = this.ab;
52
- this.ab = a;
53
- if (b != this.ab) {
54
- this.t("DataSource", b, this.ab);
50
+ set af(a) {
51
+ let b = this.ae;
52
+ this.ae = a;
53
+ if (b != this.ae) {
54
+ this.u("DataSource", b, this.ae);
55
55
  }
56
56
  }
57
- get af() {
58
- return this.ad;
57
+ get ai() {
58
+ return this.ag;
59
59
  }
60
- set af(a) {
61
- let b = this.ad;
62
- this.ad = a;
63
- if (b != this.ad) {
64
- this.t("TextField", b, this.ad);
60
+ set ai(a) {
61
+ let b = this.ag;
62
+ this.ag = a;
63
+ if (b != this.ag) {
64
+ this.u("TextField", b, this.ag);
65
65
  }
66
66
  }
67
- get w() {
68
- return this.v;
67
+ get z() {
68
+ return this.y;
69
69
  }
70
- set w(a) {
71
- let b = this.v;
72
- this.v = a;
73
- if (b != this.v) {
74
- this.t("ValueField", b, this.v);
70
+ set z(a) {
71
+ let b = this.y;
72
+ this.y = a;
73
+ if (b != this.y) {
74
+ this.u("ValueField", b, this.y);
75
75
  }
76
76
  }
77
77
  setFont(a) {
78
- this.y = a;
79
- if (this.x != null && this.y != null) {
80
- this.x.textStyle = this.y.fontString;
78
+ this.ab = a;
79
+ if (this.aa != null && this.ab != null) {
80
+ this.aa.textStyle = this.ab.fontString;
81
81
  }
82
82
  }
83
83
  attachEvents() {
84
- if (this.x != null) {
85
- let a = this.x;
84
+ if (this.aa != null) {
85
+ let a = this.aa;
86
86
  a.selectedValueChanged = delegateCombine(a.selectedValueChanged, runOn(this, this.onComboValueChanged));
87
- let b = this.x;
87
+ let b = this.aa;
88
88
  b.textValueChanged = delegateCombine(b.textValueChanged, runOn(this, this.onComboTextChanged));
89
- let c = this.x;
89
+ let c = this.aa;
90
90
  c.gotFocus = delegateCombine(c.gotFocus, runOn(this, this.onComboGotFocus));
91
- let d = this.x;
91
+ let d = this.aa;
92
92
  d.lostFocus = delegateCombine(d.lostFocus, runOn(this, this.onComboLostFocus));
93
- let e = this.x;
93
+ let e = this.aa;
94
94
  e.keyDown = delegateCombine(e.keyDown, runOn(this, this.onInputKeyDown));
95
- let f = this.x;
95
+ let f = this.aa;
96
96
  f.changing = delegateCombine(f.changing, runOn(this, this.onInputChanging));
97
97
  }
98
98
  }
99
99
  detachEvents() {
100
- if (this.x != null) {
101
- let a = this.x;
100
+ if (this.aa != null) {
101
+ let a = this.aa;
102
102
  a.selectedValueChanged = delegateRemove(a.selectedValueChanged, runOn(this, this.onComboValueChanged));
103
- let b = this.x;
103
+ let b = this.aa;
104
104
  b.textValueChanged = delegateRemove(b.textValueChanged, runOn(this, this.onComboTextChanged));
105
- let c = this.x;
105
+ let c = this.aa;
106
106
  c.gotFocus = delegateRemove(c.gotFocus, runOn(this, this.onComboGotFocus));
107
- let d = this.x;
107
+ let d = this.aa;
108
108
  d.lostFocus = delegateRemove(d.lostFocus, runOn(this, this.onComboLostFocus));
109
- let e = this.x;
109
+ let e = this.aa;
110
110
  e.keyDown = delegateRemove(e.keyDown, runOn(this, this.onInputKeyDown));
111
- let f = this.x;
111
+ let f = this.aa;
112
112
  f.changing = delegateRemove(f.changing, runOn(this, this.onInputChanging));
113
113
  }
114
114
  }
115
115
  onTargetChanged() {
116
- if (this.x != null) {
117
- this.z = true;
118
- if (this.x.value == null && this.x.text != "") {
119
- this.x.text = "";
116
+ if (this.aa != null) {
117
+ this.ac = true;
118
+ if (this.aa.value == null && this.aa.text != "") {
119
+ this.aa.text = "";
120
120
  }
121
121
  this.focus();
122
- this.z = false;
122
+ this.ac = false;
123
123
  }
124
124
  }
125
125
  onEditStarted() {
126
126
  super.onEditStarted();
127
127
  let a = this.container.getNativeElement();
128
- this.x.defaultColumnWidth = (a.clientWidth - 2).toString();
128
+ this.aa.defaultColumnWidth = (a.clientWidth - 2).toString();
129
129
  if (!this.a.isEditRefocusDesired) {
130
130
  this.focus();
131
131
  }
@@ -139,63 +139,63 @@ export let ComboEditorView = /*@__PURE__*/ (() => {
139
139
  }
140
140
  }
141
141
  }
142
- r() {
143
- if (this.x != null) {
144
- this.aa.focus(true);
145
- this.x.select();
142
+ s() {
143
+ if (this.aa != null) {
144
+ this.ad.focus(true);
145
+ this.aa.select();
146
146
  }
147
147
  }
148
- ai() {
149
- if (this.x != null) {
150
- this.x.closeUp();
148
+ al() {
149
+ if (this.aa != null) {
150
+ this.aa.closeUp();
151
151
  }
152
152
  }
153
- t(a, b, c) {
154
- super.t(a, b, c);
153
+ u(a, b, c) {
154
+ super.u(a, b, c);
155
155
  switch (a) {
156
156
  case "DataSource":
157
157
  case "TextField":
158
158
  case "ValueField":
159
- this.al();
159
+ this.ao();
160
160
  break;
161
161
  }
162
162
  }
163
- u() {
164
- this.z = true;
165
- if (this.x != null) {
163
+ w() {
164
+ this.ac = true;
165
+ if (this.aa != null) {
166
166
  if (this.value == null) {
167
- this.x.text = " ";
167
+ this.aa.text = " ";
168
168
  }
169
- this.x.value = this.value;
170
- this.r();
169
+ this.aa.value = this.value;
170
+ this.s();
171
171
  }
172
- this.z = false;
172
+ this.ac = false;
173
173
  }
174
- al() {
175
- if (this.x != null) {
174
+ ao() {
175
+ if (this.aa != null) {
176
176
  this.detachEvents();
177
- this.x.dataSource = this.ac;
178
- this.x.textField = this.af;
179
- this.x.valueField = this.w;
180
- if (this.af != null) {
181
- this.x.fields = [this.af];
177
+ this.aa.dataSource = this.af;
178
+ this.aa.textField = this.ai;
179
+ this.aa.valueField = this.z;
180
+ if (this.ai != null) {
181
+ this.aa.fields = [this.ai];
182
182
  }
183
- else if (this.w != null && this.w.length > 0) {
184
- this.x.fields = [this.w[0]];
183
+ else if (this.z != null && this.z.length > 0) {
184
+ this.aa.fields = [this.z[0]];
185
185
  }
186
186
  else {
187
- let a = typeCast(IDataSource_$type, this.ac);
187
+ let a = typeCast(IDataSource_$type, this.af);
188
188
  if (a != null && a.actualSchema != null) {
189
- this.x.fields = [a.actualSchema.propertyNames[0]];
189
+ this.aa.fields = [a.actualSchema.propertyNames[0]];
190
190
  }
191
191
  else {
192
- let b = (Array.isArray(this.ac));
192
+ let b = (Array.isArray(this.af));
193
193
  if (b) {
194
- let c = (this.ac.length);
194
+ let c = (this.af.length);
195
195
  if (c > 0) {
196
- let d = (Object.keys(this.ac[0]));
196
+ let d = (Object.keys(this.af[0]));
197
197
  if (d.length > 0) {
198
- this.x.fields = [d[0]];
198
+ this.aa.fields = [d[0]];
199
199
  }
200
200
  }
201
201
  }
@@ -204,34 +204,40 @@ export let ComboEditorView = /*@__PURE__*/ (() => {
204
204
  this.attachEvents();
205
205
  }
206
206
  }
207
+ v() {
208
+ super.v();
209
+ if (this.aa != null) {
210
+ this.aa.textColor = this.textColor._fill;
211
+ }
212
+ }
207
213
  onComboValueChanged(a, b) {
208
- this.ap();
214
+ this.as();
209
215
  }
210
216
  onComboTextChanged(a, b) {
211
- this.ap();
217
+ this.as();
212
218
  }
213
- ap() {
214
- if (this.z) {
219
+ as() {
220
+ if (this.ac) {
215
221
  return;
216
222
  }
217
- if (this.x.value != null) {
218
- this.p(this.x.value, false);
223
+ if (this.aa.value != null) {
224
+ this.q(this.aa.value, false);
219
225
  }
220
- else if (this.x.value == null && stringIsNullOrWhiteSpace(this.x.text)) {
221
- this.p(null, false);
226
+ else if (this.aa.value == null && stringIsNullOrWhiteSpace(this.aa.text)) {
227
+ this.q(null, false);
222
228
  }
223
229
  else {
224
- this.p(this.value, false);
230
+ this.q(this.value, false);
225
231
  }
226
232
  }
227
233
  onInputChanging(a, b) {
228
- this.o();
234
+ this.p();
229
235
  }
230
236
  onComboLostFocus(a) {
231
- this.n();
237
+ this.o();
232
238
  }
233
239
  onComboGotFocus(a) {
234
- this.m();
240
+ this.n();
235
241
  }
236
242
  }
237
243
  ComboEditorView.$t = /*@__PURE__*/ markType(ComboEditorView, 'ComboEditorView', BaseEditorView.$);