igniteui-webcomponents-grids 4.0.4 → 4.2.3-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 +2059 -1378
- package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
- package/esm2015/lib/BaseEditorView.js +30 -14
- package/esm2015/lib/CanvasGridCellBase.js +26 -26
- package/esm2015/lib/CanvasSummaryCell.js +2 -2
- package/esm2015/lib/CanvasTextHeaderCell.js +1 -1
- package/esm2015/lib/CheckboxListView_combined.js +553 -389
- package/esm2015/lib/ColumnChooserView_combined.js +9 -9
- package/esm2015/lib/ColumnFilterCondition_combined.js +32 -0
- package/esm2015/lib/ColumnGroupingView_combined.js +1 -1
- package/esm2015/lib/ColumnPinningView_combined.js +7 -7
- package/esm2015/lib/ComboEditorView.js +111 -105
- package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +401 -344
- package/esm2015/lib/DataGridCellLayoutPanel.js +5 -5
- package/esm2015/lib/DateEditorView.js +94 -87
- package/esm2015/lib/EditorCell.js +11 -11
- package/esm2015/lib/FilterCell.js +77 -61
- package/esm2015/lib/FilterCellPresenter.js +6 -3
- package/esm2015/lib/GridColumnFilterOptionsView_combined.js +8 -8
- package/esm2015/lib/GridColumnOptionsView_combined.js +47 -22
- package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +51 -25
- package/esm2015/lib/GridExpansionIndicatorView_combined.js +8 -8
- package/esm2015/lib/GridFilterDialogView_combined.js +5 -5
- package/esm2015/lib/GridSortIndicatorView_combined.js +9 -9
- package/esm2015/lib/ISummaryChooserView_combined.js +12 -11
- package/esm2015/lib/MultiColumnComboBoxView_combined.js +19 -19
- package/esm2015/lib/NumericEditorView.js +3 -3
- package/esm2015/lib/PropertyEditorView_combined.js +40 -40
- package/esm2015/lib/TextEditorView.js +82 -75
- package/esm2015/lib/igc-checkbox-list-component.js +155 -50
- 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/CanvasGridCellBase.js +26 -26
- package/esm5/lib/CanvasSummaryCell.js +2 -2
- package/esm5/lib/CanvasTextHeaderCell.js +1 -1
- package/esm5/lib/CheckboxListView_combined.js +579 -375
- package/esm5/lib/ColumnChooserView_combined.js +9 -9
- package/esm5/lib/ColumnFilterCondition_combined.js +32 -0
- package/esm5/lib/ColumnGroupingView_combined.js +1 -1
- package/esm5/lib/ColumnPinningView_combined.js +7 -7
- package/esm5/lib/ComboEditorView.js +108 -102
- package/esm5/lib/ComparisonOperatorSelectorView_combined.js +408 -343
- package/esm5/lib/DataGridCellLayoutPanel.js +5 -5
- package/esm5/lib/DateEditorView.js +93 -86
- package/esm5/lib/EditorCell.js +11 -11
- package/esm5/lib/FilterCell.js +81 -61
- package/esm5/lib/FilterCellPresenter.js +6 -3
- package/esm5/lib/GridColumnFilterOptionsView_combined.js +8 -8
- package/esm5/lib/GridColumnOptionsView_combined.js +55 -22
- package/esm5/lib/GridColumnSummaryOptionsView_combined.js +59 -25
- package/esm5/lib/GridExpansionIndicatorView_combined.js +8 -8
- package/esm5/lib/GridFilterDialogView_combined.js +5 -5
- package/esm5/lib/GridSortIndicatorView_combined.js +9 -9
- package/esm5/lib/ISummaryChooserView_combined.js +12 -11
- package/esm5/lib/MultiColumnComboBoxView_combined.js +19 -19
- package/esm5/lib/NumericEditorView.js +3 -3
- package/esm5/lib/PropertyEditorView_combined.js +40 -40
- package/esm5/lib/TextEditorView.js +82 -75
- package/esm5/lib/igc-checkbox-list-component.js +195 -50
- 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 +1935 -1395
- package/fesm5/igniteui-webcomponents-grids.js +2057 -1376
- package/grids/3rdpartylicenses.txt +445 -0
- package/grids/combined.js +44 -90
- package/grids/index.d.ts +15 -0
- package/grids/lib/common.d.ts +0 -4
- package/grids/lib/grid-toolbar-exporter-type.d.ts +3 -0
- package/grids/lib/igc-base-date-time-filtering-operand.d.ts +18 -0
- package/grids/lib/igc-base-toolbar-column-actions-directive.d.ts +2 -1
- package/grids/lib/igc-boolean-filtering-operand.d.ts +20 -0
- package/grids/lib/igc-cell-template-context.d.ts +2 -1
- package/grids/lib/igc-column-component.d.ts +3 -2
- package/grids/lib/igc-columns-auto-generated-event-args.d.ts +21 -0
- package/grids/lib/igc-date-filtering-operand.d.ts +20 -0
- package/grids/lib/igc-date-summary-operand.d.ts +75 -0
- package/grids/lib/igc-date-time-filtering-operand.d.ts +15 -0
- package/grids/lib/igc-display-density-base.d.ts +1 -1
- package/grids/lib/igc-exporter-options-base.d.ts +2 -0
- package/grids/lib/igc-filtering-expression.d.ts +33 -0
- package/grids/lib/igc-filtering-expressions-tree.d.ts +6 -4
- package/grids/lib/igc-filtering-operand.d.ts +4 -2
- package/grids/lib/igc-filtering-operation.d.ts +4 -0
- package/grids/lib/igc-grid-base-directive.d.ts +23 -2
- package/grids/lib/igc-grid-component.d.ts +4 -4
- 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-grid-toolbar-exporter-component.d.ts +2 -1
- package/grids/lib/igc-grouped-records.d.ts +1 -1
- package/grids/lib/igc-number-filtering-operand.d.ts +20 -0
- package/grids/lib/igc-number-summary-operand.d.ts +104 -0
- package/grids/lib/igc-pivot-date-dimension.d.ts +1 -20
- package/grids/lib/igc-pivot-grid-component.d.ts +12 -0
- package/grids/lib/igc-row-data-event-args.d.ts +4 -0
- package/grids/lib/igc-sorting-options.d.ts +3 -2
- package/grids/lib/igc-string-filtering-operand.d.ts +29 -0
- package/grids/lib/igc-summary-operand.d.ts +61 -0
- package/grids/lib/igc-time-filtering-operand.d.ts +15 -0
- package/grids/lib/igc-time-summary-operand.d.ts +49 -0
- package/grids/lib/sorting-options-mode.d.ts +3 -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/CheckboxListView_combined.d.ts +120 -96
- 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 +105 -96
- 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 +14 -9
- package/lib/IEditorView.d.ts +2 -0
- package/lib/TextEditorView.d.ts +10 -9
- package/lib/igc-checkbox-list-component.d.ts +40 -0
- 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
|
@@ -299,7 +299,7 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
299
299
|
break;
|
|
300
300
|
case "FilterPlaceholderText":
|
|
301
301
|
if (this.d != null) {
|
|
302
|
-
this.d.
|
|
302
|
+
this.d.bg = this.s;
|
|
303
303
|
}
|
|
304
304
|
break;
|
|
305
305
|
case "BaseTheme":
|
|
@@ -310,7 +310,7 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
310
310
|
break;
|
|
311
311
|
case "BackgroundColor":
|
|
312
312
|
if (this.d != null) {
|
|
313
|
-
this.d.
|
|
313
|
+
this.d.di = this.aq;
|
|
314
314
|
}
|
|
315
315
|
this.c.i();
|
|
316
316
|
break;
|
|
@@ -340,7 +340,7 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
340
340
|
if (this.a != null && this.d != null) {
|
|
341
341
|
this.d.y = this.f;
|
|
342
342
|
this.d.aa = this.h;
|
|
343
|
-
this.d.
|
|
343
|
+
this.d.di = this.aq;
|
|
344
344
|
var a = void 0;
|
|
345
345
|
var b = new ObservableCollection$1(ColumnChooserInfo.$, 0);
|
|
346
346
|
try {
|
|
@@ -370,16 +370,16 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (this.s != null) {
|
|
373
|
-
this.d.
|
|
373
|
+
this.d.bg = this.s;
|
|
374
374
|
}
|
|
375
375
|
this.d.itemsSource = b;
|
|
376
376
|
var e = "";
|
|
377
377
|
var f = "";
|
|
378
378
|
e = "columnName";
|
|
379
379
|
f = "isNotHidden";
|
|
380
|
-
this.d.
|
|
381
|
-
this.d.
|
|
382
|
-
this.d.
|
|
380
|
+
this.d.b0 = f;
|
|
381
|
+
this.d.bc = e;
|
|
382
|
+
this.d.as = true;
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
ColumnChooser.prototype.an = function (a) {
|
|
@@ -389,7 +389,7 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
389
389
|
};
|
|
390
390
|
ColumnChooser.prototype.al = function () {
|
|
391
391
|
var e_2, _a;
|
|
392
|
-
this.d.
|
|
392
|
+
this.d.cy();
|
|
393
393
|
if (this.a != null) {
|
|
394
394
|
try {
|
|
395
395
|
for (var _b = tslib_1.__values(fromEnum(this.a.actualColumns)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -415,7 +415,7 @@ var ColumnChooser = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
415
415
|
};
|
|
416
416
|
ColumnChooser.prototype.ae = function () {
|
|
417
417
|
var e_3, _a;
|
|
418
|
-
this.d.
|
|
418
|
+
this.d.b9();
|
|
419
419
|
if (this.a != null) {
|
|
420
420
|
try {
|
|
421
421
|
for (var _b = tslib_1.__values(fromEnum(this.a.actualColumns)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -6851,6 +6851,7 @@ var Grid = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
6851
6851
|
_this.cv = new EditorDefinition();
|
|
6852
6852
|
_this.cw = new EditRowDefinition();
|
|
6853
6853
|
_this.c5 = new FilterRowDefinition();
|
|
6854
|
+
_this.c5.grid = _this;
|
|
6854
6855
|
_this.aav = _this.aaw;
|
|
6855
6856
|
_this.yn = _this.yo;
|
|
6856
6857
|
_this.yt = GridStyleRepository.ax;
|
|
@@ -24293,6 +24294,12 @@ var FilterRowDefinition = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
24293
24294
|
};
|
|
24294
24295
|
FilterRowDefinition.prototype.c2 = function (a, b) {
|
|
24295
24296
|
switch (b.propertyName) {
|
|
24297
|
+
case "CellTextColor":
|
|
24298
|
+
this.dg();
|
|
24299
|
+
break;
|
|
24300
|
+
case "CellBackground":
|
|
24301
|
+
this.c9();
|
|
24302
|
+
break;
|
|
24296
24303
|
}
|
|
24297
24304
|
};
|
|
24298
24305
|
FilterRowDefinition.prototype.cx = function (a, b, c, d) {
|
|
@@ -24315,6 +24322,31 @@ var FilterRowDefinition = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
24315
24322
|
e.lm = f.ep;
|
|
24316
24323
|
}
|
|
24317
24324
|
};
|
|
24325
|
+
FilterRowDefinition.prototype.dg = function () {
|
|
24326
|
+
if (this.el == null) {
|
|
24327
|
+
if (this.grid != null && this.grid.zv != null) {
|
|
24328
|
+
this.d7 = this.grid.zv;
|
|
24329
|
+
return;
|
|
24330
|
+
}
|
|
24331
|
+
this.d7 = this.eh();
|
|
24332
|
+
}
|
|
24333
|
+
else {
|
|
24334
|
+
this.d7 = this.el;
|
|
24335
|
+
}
|
|
24336
|
+
};
|
|
24337
|
+
FilterRowDefinition.prototype.c9 = function () {
|
|
24338
|
+
if (this.d8 == null) {
|
|
24339
|
+
if (this.grid != null && this.grid.zt != null) {
|
|
24340
|
+
this.d1 = this.grid.zt;
|
|
24341
|
+
}
|
|
24342
|
+
else {
|
|
24343
|
+
this.d1 = this.ec();
|
|
24344
|
+
}
|
|
24345
|
+
}
|
|
24346
|
+
else {
|
|
24347
|
+
this.d1 = this.d8;
|
|
24348
|
+
}
|
|
24349
|
+
};
|
|
24318
24350
|
FilterRowDefinition.$t = markType(FilterRowDefinition, 'FilterRowDefinition', DefinitionBase.$);
|
|
24319
24351
|
return FilterRowDefinition;
|
|
24320
24352
|
}(DefinitionBase));
|
|
@@ -1019,7 +1019,7 @@ var ColumnGrouping = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
var j = this.d.j;
|
|
1021
1021
|
for (var k = 0; k < j.count; k++) {
|
|
1022
|
-
var l = this.q._inner[k].
|
|
1022
|
+
var l = this.q._inner[k].ae();
|
|
1023
1023
|
var m = this.d.b(j._inner[k]);
|
|
1024
1024
|
l.h = m[0] - d;
|
|
1025
1025
|
l.f = m[1] - e;
|
|
@@ -298,7 +298,7 @@ var ColumnPinning = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
298
298
|
break;
|
|
299
299
|
case "FilterPlaceholderText":
|
|
300
300
|
if (this.d != null) {
|
|
301
|
-
this.d.
|
|
301
|
+
this.d.bg = this.s;
|
|
302
302
|
}
|
|
303
303
|
break;
|
|
304
304
|
case "BaseTheme":
|
|
@@ -309,7 +309,7 @@ var ColumnPinning = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
309
309
|
break;
|
|
310
310
|
case "BackgroundColor":
|
|
311
311
|
if (this.d != null) {
|
|
312
|
-
this.d.
|
|
312
|
+
this.d.di = this.an;
|
|
313
313
|
}
|
|
314
314
|
this.c.g();
|
|
315
315
|
break;
|
|
@@ -339,7 +339,7 @@ var ColumnPinning = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
339
339
|
if (this.a != null && this.d != null) {
|
|
340
340
|
this.d.y = this.f;
|
|
341
341
|
this.d.aa = this.h;
|
|
342
|
-
this.d.
|
|
342
|
+
this.d.di = this.an;
|
|
343
343
|
var a = void 0;
|
|
344
344
|
var b = new ObservableCollection$1(ColumnPinningInfo.$, 0);
|
|
345
345
|
try {
|
|
@@ -373,17 +373,17 @@ var ColumnPinning = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
373
373
|
throw e_1.error;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
this.d.
|
|
376
|
+
this.d.as = false;
|
|
377
377
|
if (this.s != null) {
|
|
378
|
-
this.d.
|
|
378
|
+
this.d.bg = this.s;
|
|
379
379
|
}
|
|
380
380
|
this.d.itemsSource = b;
|
|
381
381
|
var e = "";
|
|
382
382
|
var f = "";
|
|
383
383
|
e = "columnName";
|
|
384
384
|
f = "isPinned";
|
|
385
|
-
this.d.
|
|
386
|
-
this.d.
|
|
385
|
+
this.d.b0 = f;
|
|
386
|
+
this.d.bc = e;
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
ColumnPinning.prototype.ae = function (a, b) {
|
|
@@ -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;
|