igniteui-webcomponents-grids 5.0.1 → 5.0.2
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 +1366 -1366
- package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
- package/esm2015/lib/CanvasGridCellBase.js +52 -52
- package/esm2015/lib/CanvasTemplateCellPresenter.js +7 -7
- package/esm2015/lib/CanvasTemplateHeaderCellPresenter.js +6 -6
- package/esm2015/lib/CanvasTextHeaderCell.js +1 -1
- package/esm2015/lib/CheckboxListView_combined.js +165 -165
- package/esm2015/lib/ColumnChooserView_combined.js +42 -42
- package/esm2015/lib/ColumnFilterCondition_combined.js +659 -659
- package/esm2015/lib/ColumnGroupingView_combined.js +40 -40
- package/esm2015/lib/ColumnPinningView_combined.js +42 -42
- package/esm2015/lib/DataGridAccessibilityLayoutPanel.js +2 -2
- package/esm2015/lib/DataGridCellLayoutPanel.js +48 -48
- package/esm2015/lib/DataGridToolbarView_combined.js +87 -87
- package/esm2015/lib/EditorCell.js +86 -86
- package/esm2015/lib/EditorCellPresenter.js +1 -1
- package/esm2015/lib/FilterCell.js +90 -90
- package/esm2015/lib/FilterCellPresenter.js +1 -1
- package/esm2015/lib/GridColumnFilterOptionsView_combined.js +7 -7
- package/esm2015/lib/ISummaryChooserView_combined.js +6 -6
- package/esm2015/lib/TemplateHeader.js +1 -1
- package/esm2015/lib/igc-checkbox-list-component.js +26 -26
- package/esm2015/lib/igc-column-chooser-component.js +2 -2
- package/esm2015/lib/igc-column-pinning-component.js +2 -2
- package/esm2015/lib/igc-data-grid-toolbar-component.js +2 -2
- package/esm2015/public_api.js +20 -20
- package/esm5/lib/CanvasGridCellBase.js +52 -52
- package/esm5/lib/CanvasTemplateCellPresenter.js +7 -7
- package/esm5/lib/CanvasTemplateHeaderCellPresenter.js +6 -6
- package/esm5/lib/CanvasTextHeaderCell.js +1 -1
- package/esm5/lib/CheckboxListView_combined.js +156 -156
- package/esm5/lib/ColumnChooserView_combined.js +41 -41
- package/esm5/lib/ColumnFilterCondition_combined.js +654 -654
- package/esm5/lib/ColumnGroupingView_combined.js +40 -40
- package/esm5/lib/ColumnPinningView_combined.js +41 -41
- package/esm5/lib/DataGridAccessibilityLayoutPanel.js +2 -2
- package/esm5/lib/DataGridCellLayoutPanel.js +48 -48
- package/esm5/lib/DataGridToolbarView_combined.js +86 -86
- package/esm5/lib/EditorCell.js +85 -85
- package/esm5/lib/EditorCellPresenter.js +1 -1
- package/esm5/lib/FilterCell.js +88 -88
- package/esm5/lib/FilterCellPresenter.js +1 -1
- package/esm5/lib/GridColumnFilterOptionsView_combined.js +7 -7
- package/esm5/lib/ISummaryChooserView_combined.js +6 -6
- package/esm5/lib/TemplateHeader.js +1 -1
- package/esm5/lib/igc-checkbox-list-component.js +26 -26
- package/esm5/lib/igc-column-chooser-component.js +2 -2
- package/esm5/lib/igc-column-pinning-component.js +2 -2
- package/esm5/lib/igc-data-grid-toolbar-component.js +2 -2
- package/esm5/public_api.js +20 -20
- package/fesm2015/igniteui-webcomponents-grids.js +1386 -1386
- package/fesm5/igniteui-webcomponents-grids.js +1366 -1366
- package/grids/combined.js +587 -590
- package/grids/lib/igc-grid-base-directive.d.ts +1 -0
- package/grids/lib/igc-row-island-component.d.ts +1 -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/CanvasGridCellBase.d.ts +7 -7
- package/lib/CanvasTemplateCellPresenter.d.ts +2 -2
- package/lib/CanvasTemplateHeaderCellPresenter.d.ts +2 -2
- package/lib/CheckboxListView_combined.d.ts +23 -23
- package/lib/ColumnChooserView_combined.d.ts +4 -4
- package/lib/ColumnFilterCondition_combined.d.ts +113 -113
- package/lib/ColumnGroupingView_combined.d.ts +2 -2
- package/lib/ColumnPinningView_combined.d.ts +4 -4
- package/lib/DataGridCellLayoutPanel.d.ts +3 -3
- package/lib/DataGridToolbarView_combined.d.ts +5 -5
- package/lib/EditorCell.d.ts +8 -8
- package/lib/FilterCell.d.ts +12 -12
- package/package.json +4 -4
- package/public_api.d.ts +20 -20
package/esm5/lib/EditorCell.js
CHANGED
|
@@ -23,11 +23,11 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
23
23
|
__extends(EditorCell, _super);
|
|
24
24
|
function EditorCell(a) {
|
|
25
25
|
var _this = _super.call(this, a) || this;
|
|
26
|
-
_this.
|
|
26
|
+
_this.cp = null;
|
|
27
27
|
_this.cw = null;
|
|
28
28
|
_this.cv = null;
|
|
29
|
-
_this.
|
|
30
|
-
_this.
|
|
29
|
+
_this.cm = null;
|
|
30
|
+
_this.cl = null;
|
|
31
31
|
_this.dc = null;
|
|
32
32
|
_this.dd = null;
|
|
33
33
|
_this.de = null;
|
|
@@ -38,7 +38,7 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
38
38
|
_this.cj = 0;
|
|
39
39
|
_this.dg = null;
|
|
40
40
|
_this.cy = null;
|
|
41
|
-
_this.
|
|
41
|
+
_this.cn = 1;
|
|
42
42
|
_this.df = null;
|
|
43
43
|
_this.dj = null;
|
|
44
44
|
_this.ch = null;
|
|
@@ -96,15 +96,15 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
96
96
|
enumerable: false,
|
|
97
97
|
configurable: true
|
|
98
98
|
});
|
|
99
|
-
Object.defineProperty(EditorCell.prototype, "
|
|
99
|
+
Object.defineProperty(EditorCell.prototype, "co", {
|
|
100
100
|
get: function () {
|
|
101
|
-
return this.
|
|
101
|
+
return this.cn;
|
|
102
102
|
},
|
|
103
103
|
set: function (a) {
|
|
104
|
-
var b = this.
|
|
105
|
-
this.
|
|
106
|
-
if (b != this.
|
|
107
|
-
this.bp("EditorType", enumGetBox(EditorType_$type, b), enumGetBox(EditorType_$type, this.
|
|
104
|
+
var b = this.cn;
|
|
105
|
+
this.cn = a;
|
|
106
|
+
if (b != this.cn) {
|
|
107
|
+
this.bp("EditorType", enumGetBox(EditorType_$type, b), enumGetBox(EditorType_$type, this.cn));
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
enumerable: false,
|
|
@@ -194,7 +194,7 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
194
194
|
enumerable: false,
|
|
195
195
|
configurable: true
|
|
196
196
|
});
|
|
197
|
-
EditorCell.prototype.
|
|
197
|
+
EditorCell.prototype.cu = function (a) {
|
|
198
198
|
if (this.dc == null) {
|
|
199
199
|
this.dc = this.ab.createElement("div");
|
|
200
200
|
var b = this.ab.getSubRenderer(this.dc);
|
|
@@ -217,21 +217,21 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
217
217
|
var c = null;
|
|
218
218
|
switch (a) {
|
|
219
219
|
case 1:
|
|
220
|
-
c = this.
|
|
220
|
+
c = this.ct();
|
|
221
221
|
break;
|
|
222
222
|
case 2:
|
|
223
|
-
c = this.
|
|
223
|
+
c = this.cs();
|
|
224
224
|
break;
|
|
225
225
|
case 3:
|
|
226
|
-
c = this.
|
|
226
|
+
c = this.cr();
|
|
227
227
|
break;
|
|
228
228
|
case 4:
|
|
229
|
-
c = this.
|
|
229
|
+
c = this.cq();
|
|
230
230
|
break;
|
|
231
231
|
}
|
|
232
232
|
return c;
|
|
233
233
|
};
|
|
234
|
-
EditorCell.prototype.
|
|
234
|
+
EditorCell.prototype.ct = function () {
|
|
235
235
|
if (this.cw != null) {
|
|
236
236
|
this.d3();
|
|
237
237
|
this.d8();
|
|
@@ -241,7 +241,7 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
241
241
|
this.cw.setFont(this.cz);
|
|
242
242
|
return this.cw;
|
|
243
243
|
};
|
|
244
|
-
EditorCell.prototype.
|
|
244
|
+
EditorCell.prototype.cs = function () {
|
|
245
245
|
if (this.cv != null) {
|
|
246
246
|
this.d3();
|
|
247
247
|
this.d8();
|
|
@@ -251,52 +251,52 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
251
251
|
this.cv.setFont(this.cz);
|
|
252
252
|
return this.cv;
|
|
253
253
|
};
|
|
254
|
-
EditorCell.prototype.
|
|
255
|
-
if (this.
|
|
254
|
+
EditorCell.prototype.cr = function () {
|
|
255
|
+
if (this.cm != null) {
|
|
256
256
|
this.d3();
|
|
257
257
|
this.d8();
|
|
258
|
-
return this.
|
|
258
|
+
return this.cm;
|
|
259
259
|
}
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
return this.
|
|
260
|
+
this.cm = new DateEditorView(this.ab, this.f.getTheme(), this.b);
|
|
261
|
+
this.cm.setFont(this.cz);
|
|
262
|
+
return this.cm;
|
|
263
263
|
};
|
|
264
|
-
EditorCell.prototype.
|
|
265
|
-
if (this.
|
|
264
|
+
EditorCell.prototype.cq = function () {
|
|
265
|
+
if (this.cl != null) {
|
|
266
266
|
this.d2();
|
|
267
267
|
this.d3();
|
|
268
268
|
this.d8();
|
|
269
|
-
return this.
|
|
269
|
+
return this.cl;
|
|
270
270
|
}
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
275
|
-
this.
|
|
276
|
-
return this.
|
|
271
|
+
this.cl = new ComboEditorView(this.ab, this.f.getTheme(), this.b);
|
|
272
|
+
this.cl.setFont(this.cz);
|
|
273
|
+
this.cl.ag = this.dh;
|
|
274
|
+
this.cl.aj = this.dm;
|
|
275
|
+
this.cl.z = this.ci;
|
|
276
|
+
return this.cl;
|
|
277
277
|
};
|
|
278
278
|
EditorCell.prototype.ea = function (a, b) {
|
|
279
279
|
if (b.g != b.d || b.h != b.e) {
|
|
280
|
-
if (this.
|
|
281
|
-
this.
|
|
280
|
+
if (this.cl != null) {
|
|
281
|
+
this.cl.am();
|
|
282
282
|
}
|
|
283
|
-
if (this.
|
|
284
|
-
this.
|
|
283
|
+
if (this.cm != null) {
|
|
284
|
+
this.cm.ag();
|
|
285
285
|
}
|
|
286
286
|
this.d0();
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
EditorCell.prototype.dy = function () {
|
|
290
290
|
if (!this.c1) {
|
|
291
|
-
if (this.
|
|
292
|
-
this.
|
|
293
|
-
var a = this.
|
|
291
|
+
if (this.cp != null) {
|
|
292
|
+
this.cp.attachEvents();
|
|
293
|
+
var a = this.cp;
|
|
294
294
|
a.valueProvided = delegateCombine(a.valueProvided, runOn(this, this.eg));
|
|
295
|
-
var b = this.
|
|
295
|
+
var b = this.cp;
|
|
296
296
|
b.lostFocus = delegateCombine(b.lostFocus, runOn(this, this.d6));
|
|
297
|
-
var c = this.
|
|
297
|
+
var c = this.cp;
|
|
298
298
|
c.gotFocus = delegateCombine(c.gotFocus, runOn(this, this.d5));
|
|
299
|
-
var d = this.
|
|
299
|
+
var d = this.cp;
|
|
300
300
|
d.userTyping = delegateCombine(d.userTyping, runOn(this, this.ee));
|
|
301
301
|
this.c1 = true;
|
|
302
302
|
}
|
|
@@ -304,15 +304,15 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
304
304
|
};
|
|
305
305
|
EditorCell.prototype.dz = function () {
|
|
306
306
|
if (this.c1) {
|
|
307
|
-
if (this.
|
|
308
|
-
this.
|
|
309
|
-
var a = this.
|
|
307
|
+
if (this.cp != null) {
|
|
308
|
+
this.cp.detachEvents();
|
|
309
|
+
var a = this.cp;
|
|
310
310
|
a.valueProvided = delegateRemove(a.valueProvided, runOn(this, this.eg));
|
|
311
|
-
var b = this.
|
|
311
|
+
var b = this.cp;
|
|
312
312
|
b.lostFocus = delegateRemove(b.lostFocus, runOn(this, this.d6));
|
|
313
|
-
var c = this.
|
|
313
|
+
var c = this.cp;
|
|
314
314
|
c.gotFocus = delegateRemove(c.gotFocus, runOn(this, this.d5));
|
|
315
|
-
var d = this.
|
|
315
|
+
var d = this.cp;
|
|
316
316
|
d.userTyping = delegateRemove(d.userTyping, runOn(this, this.ee));
|
|
317
317
|
this.c1 = false;
|
|
318
318
|
}
|
|
@@ -324,12 +324,12 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
324
324
|
this.c5 = false;
|
|
325
325
|
if (!a) {
|
|
326
326
|
this.c7 = true;
|
|
327
|
-
this.
|
|
327
|
+
this.cp.onTargetChanged();
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
EditorCell.prototype.ef = function () {
|
|
331
|
-
if (this.
|
|
332
|
-
this.
|
|
331
|
+
if (this.cp != null) {
|
|
332
|
+
this.cp.value = this.di;
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
EditorCell.prototype.d3 = function () {
|
|
@@ -338,25 +338,25 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
338
338
|
this.c0 = true;
|
|
339
339
|
this.dz();
|
|
340
340
|
this.ae.removeChildren();
|
|
341
|
-
if (this.
|
|
342
|
-
this.
|
|
341
|
+
if (this.cp != null) {
|
|
342
|
+
this.cp.cleanUp();
|
|
343
343
|
}
|
|
344
|
-
this.
|
|
345
|
-
this.ae.append(this.
|
|
344
|
+
this.cp = this.cu(this.co);
|
|
345
|
+
this.ae.append(this.cp.container);
|
|
346
346
|
this.dy();
|
|
347
|
-
if (this.
|
|
348
|
-
this.
|
|
347
|
+
if (this.cp != null) {
|
|
348
|
+
this.cp.isEnabled = !this.isRemoved;
|
|
349
349
|
if (!this.da) {
|
|
350
|
-
this.
|
|
350
|
+
this.cp.onEditStarted();
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
this.c0 = false;
|
|
354
354
|
};
|
|
355
355
|
EditorCell.prototype.d2 = function () {
|
|
356
|
-
if (this.
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
356
|
+
if (this.cl != null) {
|
|
357
|
+
this.cl.ag = this.dh;
|
|
358
|
+
this.cl.aj = this.dm;
|
|
359
|
+
this.cl.z = this.ci;
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
EditorCell.prototype.d8 = function () {
|
|
@@ -367,36 +367,36 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
367
367
|
if (this.cv != null) {
|
|
368
368
|
this.cv.setFont(this.cz);
|
|
369
369
|
}
|
|
370
|
-
if (this.
|
|
371
|
-
this.
|
|
370
|
+
if (this.cm != null) {
|
|
371
|
+
this.cm.setFont(this.cz);
|
|
372
372
|
}
|
|
373
|
-
if (this.
|
|
374
|
-
this.
|
|
373
|
+
if (this.cl != null) {
|
|
374
|
+
this.cl.setFont(this.cz);
|
|
375
375
|
}
|
|
376
376
|
this.dd.setStyleProperty("font", this.cz.fontString);
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
EditorCell.prototype.d1 = function () {
|
|
380
380
|
this.c4 = false;
|
|
381
|
-
if (this.
|
|
381
|
+
if (this.cp != null) {
|
|
382
382
|
if (!this.da) {
|
|
383
|
-
this.
|
|
383
|
+
this.cp.onEditStarted();
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
386
|
+
this.cp.onEditEnded();
|
|
387
|
+
this.cp.value = null;
|
|
388
|
+
this.cp.value = this.di;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
EditorCell.prototype.d4 = function () {
|
|
393
|
-
if (this.
|
|
394
|
-
this.
|
|
393
|
+
if (this.cp != null && this.cm == this.cp) {
|
|
394
|
+
this.cm.ae = this.dr;
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
EditorCell.prototype.ec = function () {
|
|
398
|
-
if (this.
|
|
399
|
-
this.
|
|
398
|
+
if (this.cp != null && this.cm == this.cp) {
|
|
399
|
+
this.cm.ac = this.db;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
EditorCell.prototype.eh = function (a, b, c, d, e) {
|
|
@@ -421,14 +421,14 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
EditorCell.prototype.bo = function () {
|
|
424
|
-
if (this.
|
|
424
|
+
if (this.cp == null) {
|
|
425
425
|
this.d7();
|
|
426
426
|
this.f.setViewportChangedHandler(runOn(this, this.ea));
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
EditorCell.prototype.be = function () {
|
|
430
|
-
if (this.
|
|
431
|
-
this.
|
|
430
|
+
if (this.cp != null) {
|
|
431
|
+
this.cp.focus();
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
EditorCell.prototype.bp = function (a, b, c) {
|
|
@@ -461,24 +461,24 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
461
461
|
this.ec();
|
|
462
462
|
break;
|
|
463
463
|
case "IsRemoved":
|
|
464
|
-
if (this.
|
|
465
|
-
this.
|
|
464
|
+
if (this.cp != null) {
|
|
465
|
+
this.cp.isEnabled = !this.isRemoved;
|
|
466
466
|
if (!this.isRemoved) {
|
|
467
|
-
this.
|
|
467
|
+
this.cp.onTargetChanged();
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
break;
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
473
|
EditorCell.prototype.eg = function (a, b, c) {
|
|
474
|
-
if (a == this.
|
|
474
|
+
if (a == this.cp) {
|
|
475
475
|
if (!c) {
|
|
476
476
|
this.b.updateCellEditValue(b);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
EditorCell.prototype.ee = function (a) {
|
|
481
|
-
if (a == this.
|
|
481
|
+
if (a == this.cp) {
|
|
482
482
|
this.b.startEditMode();
|
|
483
483
|
}
|
|
484
484
|
};
|
|
@@ -511,8 +511,8 @@ var EditorCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
511
511
|
if (d == "INPUT" || d == "SELECT" || d == "TEXTAREA" || d == "BUTTON" || d == "OPTION") {
|
|
512
512
|
return;
|
|
513
513
|
}
|
|
514
|
-
if (_this.b.isEditRefocusDesired && _this.
|
|
515
|
-
_this.
|
|
514
|
+
if (_this.b.isEditRefocusDesired && _this.cp != null) {
|
|
515
|
+
_this.cp.focus();
|
|
516
516
|
}
|
|
517
517
|
}, 0);
|
|
518
518
|
}
|
|
@@ -31,7 +31,7 @@ var EditorCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
31
31
|
var b = a;
|
|
32
32
|
if (b.ay) {
|
|
33
33
|
if (b.a3(EditorCellModel.l3) || b.a3(EditorCellModel.l1) || b.a3(EditorCellModel.l2) || b.a3(EditorCellModel.l4)) {
|
|
34
|
-
this.d.
|
|
34
|
+
this.d.co = b.lq;
|
|
35
35
|
this.d.dh = b.md;
|
|
36
36
|
this.d.dm = b.mm;
|
|
37
37
|
this.d.ci = b.lk;
|