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.
- package/bundles/igniteui-webcomponents-grids.umd.js +1132 -799
- package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
- package/esm2015/lib/BaseEditorView.js +30 -14
- package/esm2015/lib/CheckboxListView_combined.js +1 -0
- package/esm2015/lib/ColumnFilterCondition_combined.js +32 -0
- package/esm2015/lib/ComboEditorView.js +111 -105
- package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +400 -343
- package/esm2015/lib/DateEditorView.js +94 -87
- package/esm2015/lib/EditorCell.js +10 -10
- package/esm2015/lib/FilterCell.js +76 -60
- package/esm2015/lib/FilterCellPresenter.js +6 -3
- package/esm2015/lib/GridColumnOptionsView_combined.js +47 -22
- package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +49 -23
- package/esm2015/lib/ISummaryChooserView_combined.js +1 -0
- package/esm2015/lib/NumericEditorView.js +3 -3
- package/esm2015/lib/TextEditorView.js +82 -75
- package/esm2015/lib/igc-data-grid-comparison-operator-selector-component.js +104 -59
- package/esm2015/lib/igc-grid-column-options-component.js +21 -1
- package/esm2015/lib/igc-grid-column-summary-options-component.js +16 -2
- package/esm5/lib/BaseEditorView.js +34 -14
- package/esm5/lib/CheckboxListView_combined.js +1 -0
- package/esm5/lib/ColumnFilterCondition_combined.js +32 -0
- package/esm5/lib/ComboEditorView.js +108 -102
- package/esm5/lib/ComparisonOperatorSelectorView_combined.js +407 -342
- package/esm5/lib/DateEditorView.js +93 -86
- package/esm5/lib/EditorCell.js +10 -10
- package/esm5/lib/FilterCell.js +80 -60
- package/esm5/lib/FilterCellPresenter.js +6 -3
- package/esm5/lib/GridColumnOptionsView_combined.js +55 -22
- package/esm5/lib/GridColumnSummaryOptionsView_combined.js +57 -23
- package/esm5/lib/ISummaryChooserView_combined.js +1 -0
- package/esm5/lib/NumericEditorView.js +3 -3
- package/esm5/lib/TextEditorView.js +82 -75
- package/esm5/lib/igc-data-grid-comparison-operator-selector-component.js +117 -59
- package/esm5/lib/igc-grid-column-options-component.js +29 -1
- package/esm5/lib/igc-grid-column-summary-options-component.js +24 -2
- package/fesm2015/igniteui-webcomponents-grids.js +1076 -804
- package/fesm5/igniteui-webcomponents-grids.js +1132 -799
- package/grids/3rdpartylicenses.txt +445 -0
- package/grids/combined.js +44 -160
- package/grids/index.d.ts +2 -0
- package/grids/lib/igc-grid-base-directive.d.ts +14 -0
- package/grids/lib/igc-grid-edit-done-event-args.d.ts +5 -1
- package/grids/lib/igc-grid-selection-range.d.ts +1 -0
- package/grids/lib/igc-pivot-date-dimension.d.ts +1 -1
- package/grids/lib/igc-pivot-grid-column.d.ts +32 -0
- package/grids/lib/igc-pivot-grid-record.d.ts +28 -0
- package/grids/lib/igc-row-data-event-args.d.ts +4 -0
- package/grids/styles.css +1 -1
- package/grids/themes/dark/bootstrap.css +1 -1
- package/grids/themes/dark/fluent.css +1 -1
- package/grids/themes/dark/indigo.css +1 -1
- package/grids/themes/dark/material.css +1 -1
- package/grids/themes/light/bootstrap.css +1 -1
- package/grids/themes/light/fluent.css +1 -1
- package/grids/themes/light/indigo.css +1 -1
- package/grids/themes/light/material.css +1 -1
- package/lib/BaseEditorView.d.ts +12 -8
- package/lib/ColumnFilterCondition_combined.d.ts +2 -0
- package/lib/ComboEditorView.d.ts +15 -14
- package/lib/ComboEditorView_ComboExternal.d.ts +1 -0
- package/lib/ComparisonOperatorSelectorView_combined.d.ts +104 -95
- package/lib/DateEditorView.d.ts +13 -12
- package/lib/FilterCell.d.ts +23 -20
- package/lib/GridColumnOptionsView_combined.d.ts +10 -5
- package/lib/GridColumnSummaryOptionsView_combined.d.ts +13 -8
- package/lib/IEditorView.d.ts +2 -0
- package/lib/TextEditorView.d.ts +10 -9
- package/lib/igc-data-grid-comparison-operator-selector-component.d.ts +11 -0
- package/lib/igc-grid-column-options-component.d.ts +8 -0
- package/lib/igc-grid-column-summary-options-component.d.ts +2 -0
- 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.
|
|
25
|
-
_this.
|
|
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.
|
|
33
|
-
_this.
|
|
34
|
-
_this.
|
|
35
|
-
_this.
|
|
36
|
-
_this.
|
|
37
|
-
_this.
|
|
38
|
-
_this.
|
|
39
|
-
_this.
|
|
40
|
-
_this.
|
|
41
|
-
_this.
|
|
42
|
-
if (_this.
|
|
43
|
-
_this.
|
|
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, "
|
|
49
|
+
Object.defineProperty(ComboEditorView.prototype, "af", {
|
|
50
50
|
get: function () {
|
|
51
|
-
return this.
|
|
51
|
+
return this.ae;
|
|
52
52
|
},
|
|
53
53
|
set: function (a) {
|
|
54
|
-
var b = this.
|
|
55
|
-
this.
|
|
56
|
-
if (b != this.
|
|
57
|
-
this.
|
|
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, "
|
|
63
|
+
Object.defineProperty(ComboEditorView.prototype, "ai", {
|
|
64
64
|
get: function () {
|
|
65
|
-
return this.
|
|
65
|
+
return this.ag;
|
|
66
66
|
},
|
|
67
67
|
set: function (a) {
|
|
68
|
-
var b = this.
|
|
69
|
-
this.
|
|
70
|
-
if (b != this.
|
|
71
|
-
this.
|
|
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, "
|
|
77
|
+
Object.defineProperty(ComboEditorView.prototype, "z", {
|
|
78
78
|
get: function () {
|
|
79
|
-
return this.
|
|
79
|
+
return this.y;
|
|
80
80
|
},
|
|
81
81
|
set: function (a) {
|
|
82
|
-
var b = this.
|
|
83
|
-
this.
|
|
84
|
-
if (b != this.
|
|
85
|
-
this.
|
|
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.
|
|
93
|
-
if (this.
|
|
94
|
-
this.
|
|
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.
|
|
99
|
-
var a = this.
|
|
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.
|
|
101
|
+
var b = this.aa;
|
|
102
102
|
b.textValueChanged = delegateCombine(b.textValueChanged, runOn(this, this.onComboTextChanged));
|
|
103
|
-
var c = this.
|
|
103
|
+
var c = this.aa;
|
|
104
104
|
c.gotFocus = delegateCombine(c.gotFocus, runOn(this, this.onComboGotFocus));
|
|
105
|
-
var d = this.
|
|
105
|
+
var d = this.aa;
|
|
106
106
|
d.lostFocus = delegateCombine(d.lostFocus, runOn(this, this.onComboLostFocus));
|
|
107
|
-
var e = this.
|
|
107
|
+
var e = this.aa;
|
|
108
108
|
e.keyDown = delegateCombine(e.keyDown, runOn(this, this.onInputKeyDown));
|
|
109
|
-
var f = this.
|
|
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.
|
|
115
|
-
var a = this.
|
|
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.
|
|
117
|
+
var b = this.aa;
|
|
118
118
|
b.textValueChanged = delegateRemove(b.textValueChanged, runOn(this, this.onComboTextChanged));
|
|
119
|
-
var c = this.
|
|
119
|
+
var c = this.aa;
|
|
120
120
|
c.gotFocus = delegateRemove(c.gotFocus, runOn(this, this.onComboGotFocus));
|
|
121
|
-
var d = this.
|
|
121
|
+
var d = this.aa;
|
|
122
122
|
d.lostFocus = delegateRemove(d.lostFocus, runOn(this, this.onComboLostFocus));
|
|
123
|
-
var e = this.
|
|
123
|
+
var e = this.aa;
|
|
124
124
|
e.keyDown = delegateRemove(e.keyDown, runOn(this, this.onInputKeyDown));
|
|
125
|
-
var f = this.
|
|
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.
|
|
131
|
-
this.
|
|
132
|
-
if (this.
|
|
133
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
157
|
-
if (this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
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.
|
|
163
|
-
if (this.
|
|
164
|
-
this.
|
|
162
|
+
ComboEditorView.prototype.al = function () {
|
|
163
|
+
if (this.aa != null) {
|
|
164
|
+
this.aa.closeUp();
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
ComboEditorView.prototype.
|
|
168
|
-
_super.prototype.
|
|
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.
|
|
173
|
+
this.ao();
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
ComboEditorView.prototype.
|
|
178
|
-
this.
|
|
179
|
-
if (this.
|
|
177
|
+
ComboEditorView.prototype.w = function () {
|
|
178
|
+
this.ac = true;
|
|
179
|
+
if (this.aa != null) {
|
|
180
180
|
if (this.value == null) {
|
|
181
|
-
this.
|
|
181
|
+
this.aa.text = " ";
|
|
182
182
|
}
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
183
|
+
this.aa.value = this.value;
|
|
184
|
+
this.s();
|
|
185
185
|
}
|
|
186
|
-
this.
|
|
186
|
+
this.ac = false;
|
|
187
187
|
};
|
|
188
|
-
ComboEditorView.prototype.
|
|
189
|
-
if (this.
|
|
188
|
+
ComboEditorView.prototype.ao = function () {
|
|
189
|
+
if (this.aa != null) {
|
|
190
190
|
this.detachEvents();
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
194
|
-
if (this.
|
|
195
|
-
this.
|
|
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.
|
|
198
|
-
this.
|
|
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.
|
|
201
|
+
var a = typeCast(IDataSource_$type, this.af);
|
|
202
202
|
if (a != null && a.actualSchema != null) {
|
|
203
|
-
this.
|
|
203
|
+
this.aa.fields = [a.actualSchema.propertyNames[0]];
|
|
204
204
|
}
|
|
205
205
|
else {
|
|
206
|
-
var b = (Array.isArray(this.
|
|
206
|
+
var b = (Array.isArray(this.af));
|
|
207
207
|
if (b) {
|
|
208
|
-
var c = (this.
|
|
208
|
+
var c = (this.af.length);
|
|
209
209
|
if (c > 0) {
|
|
210
|
-
var d = (Object.keys(this.
|
|
210
|
+
var d = (Object.keys(this.af[0]));
|
|
211
211
|
if (d.length > 0) {
|
|
212
|
-
this.
|
|
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.
|
|
228
|
+
this.as();
|
|
223
229
|
};
|
|
224
230
|
ComboEditorView.prototype.onComboTextChanged = function (a, b) {
|
|
225
|
-
this.
|
|
231
|
+
this.as();
|
|
226
232
|
};
|
|
227
|
-
ComboEditorView.prototype.
|
|
228
|
-
if (this.
|
|
233
|
+
ComboEditorView.prototype.as = function () {
|
|
234
|
+
if (this.ac) {
|
|
229
235
|
return;
|
|
230
236
|
}
|
|
231
|
-
if (this.
|
|
232
|
-
this.
|
|
237
|
+
if (this.aa.value != null) {
|
|
238
|
+
this.q(this.aa.value, false);
|
|
233
239
|
}
|
|
234
|
-
else if (this.
|
|
235
|
-
this.
|
|
240
|
+
else if (this.aa.value == null && stringIsNullOrWhiteSpace(this.aa.text)) {
|
|
241
|
+
this.q(null, false);
|
|
236
242
|
}
|
|
237
243
|
else {
|
|
238
|
-
this.
|
|
244
|
+
this.q(this.value, false);
|
|
239
245
|
}
|
|
240
246
|
};
|
|
241
247
|
ComboEditorView.prototype.onInputChanging = function (a, b) {
|
|
242
|
-
this.
|
|
248
|
+
this.p();
|
|
243
249
|
};
|
|
244
250
|
ComboEditorView.prototype.onComboLostFocus = function (a) {
|
|
245
|
-
this.
|
|
251
|
+
this.o();
|
|
246
252
|
};
|
|
247
253
|
ComboEditorView.prototype.onComboGotFocus = function (a) {
|
|
248
|
-
this.
|
|
254
|
+
this.n();
|
|
249
255
|
};
|
|
250
256
|
ComboEditorView.$t = markType(ComboEditorView, 'ComboEditorView', BaseEditorView.$);
|
|
251
257
|
return ComboEditorView;
|