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
|
@@ -260,7 +260,7 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
260
260
|
break;
|
|
261
261
|
case "FilterPlaceholderText":
|
|
262
262
|
if (this.d != null) {
|
|
263
|
-
this.d.
|
|
263
|
+
this.d.bg = this.s;
|
|
264
264
|
}
|
|
265
265
|
break;
|
|
266
266
|
case "BaseTheme":
|
|
@@ -271,7 +271,7 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
271
271
|
break;
|
|
272
272
|
case "BackgroundColor":
|
|
273
273
|
if (this.d != null) {
|
|
274
|
-
this.d.
|
|
274
|
+
this.d.di = this.aq;
|
|
275
275
|
}
|
|
276
276
|
this.c.i();
|
|
277
277
|
break;
|
|
@@ -300,7 +300,7 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
300
300
|
if (this.a != null && this.d != null) {
|
|
301
301
|
this.d.y = this.f;
|
|
302
302
|
this.d.aa = this.h;
|
|
303
|
-
this.d.
|
|
303
|
+
this.d.di = this.aq;
|
|
304
304
|
let a;
|
|
305
305
|
let b = new ObservableCollection$1(ColumnChooserInfo.$, 0);
|
|
306
306
|
for (let c of fromEnum(this.a.actualColumns)) {
|
|
@@ -314,16 +314,16 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
314
314
|
b.add(a);
|
|
315
315
|
}
|
|
316
316
|
if (this.s != null) {
|
|
317
|
-
this.d.
|
|
317
|
+
this.d.bg = this.s;
|
|
318
318
|
}
|
|
319
319
|
this.d.itemsSource = b;
|
|
320
320
|
let e = "";
|
|
321
321
|
let f = "";
|
|
322
322
|
e = "columnName";
|
|
323
323
|
f = "isNotHidden";
|
|
324
|
-
this.d.
|
|
325
|
-
this.d.
|
|
326
|
-
this.d.
|
|
324
|
+
this.d.b0 = f;
|
|
325
|
+
this.d.bc = e;
|
|
326
|
+
this.d.as = true;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
an(a) {
|
|
@@ -332,7 +332,7 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
al() {
|
|
335
|
-
this.d.
|
|
335
|
+
this.d.cy();
|
|
336
336
|
if (this.a != null) {
|
|
337
337
|
for (let a of fromEnum(this.a.actualColumns)) {
|
|
338
338
|
this.m = true;
|
|
@@ -341,7 +341,7 @@ export let ColumnChooser = /*@__PURE__*/ (() => {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
ae() {
|
|
344
|
-
this.d.
|
|
344
|
+
this.d.b9();
|
|
345
345
|
if (this.a != null) {
|
|
346
346
|
for (let a of fromEnum(this.a.actualColumns)) {
|
|
347
347
|
this.m = true;
|
|
@@ -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;
|
|
@@ -937,7 +937,7 @@ export let ColumnGrouping = /*@__PURE__*/ (() => {
|
|
|
937
937
|
}
|
|
938
938
|
let j = this.d.j;
|
|
939
939
|
for (let k = 0; k < j.count; k++) {
|
|
940
|
-
let l = this.q._inner[k].
|
|
940
|
+
let l = this.q._inner[k].ae();
|
|
941
941
|
let m = this.d.b(j._inner[k]);
|
|
942
942
|
l.h = m[0] - d;
|
|
943
943
|
l.f = m[1] - e;
|
|
@@ -259,7 +259,7 @@ export let ColumnPinning = /*@__PURE__*/ (() => {
|
|
|
259
259
|
break;
|
|
260
260
|
case "FilterPlaceholderText":
|
|
261
261
|
if (this.d != null) {
|
|
262
|
-
this.d.
|
|
262
|
+
this.d.bg = this.s;
|
|
263
263
|
}
|
|
264
264
|
break;
|
|
265
265
|
case "BaseTheme":
|
|
@@ -270,7 +270,7 @@ export let ColumnPinning = /*@__PURE__*/ (() => {
|
|
|
270
270
|
break;
|
|
271
271
|
case "BackgroundColor":
|
|
272
272
|
if (this.d != null) {
|
|
273
|
-
this.d.
|
|
273
|
+
this.d.di = this.an;
|
|
274
274
|
}
|
|
275
275
|
this.c.g();
|
|
276
276
|
break;
|
|
@@ -299,7 +299,7 @@ export let ColumnPinning = /*@__PURE__*/ (() => {
|
|
|
299
299
|
if (this.a != null && this.d != null) {
|
|
300
300
|
this.d.y = this.f;
|
|
301
301
|
this.d.aa = this.h;
|
|
302
|
-
this.d.
|
|
302
|
+
this.d.di = this.an;
|
|
303
303
|
let a;
|
|
304
304
|
let b = new ObservableCollection$1(ColumnPinningInfo.$, 0);
|
|
305
305
|
for (let c of fromEnum(this.a.actualColumns)) {
|
|
@@ -317,17 +317,17 @@ export let ColumnPinning = /*@__PURE__*/ (() => {
|
|
|
317
317
|
}
|
|
318
318
|
b.add(a);
|
|
319
319
|
}
|
|
320
|
-
this.d.
|
|
320
|
+
this.d.as = false;
|
|
321
321
|
if (this.s != null) {
|
|
322
|
-
this.d.
|
|
322
|
+
this.d.bg = this.s;
|
|
323
323
|
}
|
|
324
324
|
this.d.itemsSource = b;
|
|
325
325
|
let e = "";
|
|
326
326
|
let f = "";
|
|
327
327
|
e = "columnName";
|
|
328
328
|
f = "isPinned";
|
|
329
|
-
this.d.
|
|
330
|
-
this.d.
|
|
329
|
+
this.d.b0 = f;
|
|
330
|
+
this.d.bc = e;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
ae(a, b) {
|
|
@@ -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.
|
|
24
|
-
this.
|
|
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.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
if (this.
|
|
42
|
-
this.
|
|
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
|
|
48
|
-
return this.
|
|
47
|
+
get af() {
|
|
48
|
+
return this.ae;
|
|
49
49
|
}
|
|
50
|
-
set
|
|
51
|
-
let b = this.
|
|
52
|
-
this.
|
|
53
|
-
if (b != this.
|
|
54
|
-
this.
|
|
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
|
|
58
|
-
return this.
|
|
57
|
+
get ai() {
|
|
58
|
+
return this.ag;
|
|
59
59
|
}
|
|
60
|
-
set
|
|
61
|
-
let b = this.
|
|
62
|
-
this.
|
|
63
|
-
if (b != this.
|
|
64
|
-
this.
|
|
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
|
|
68
|
-
return this.
|
|
67
|
+
get z() {
|
|
68
|
+
return this.y;
|
|
69
69
|
}
|
|
70
|
-
set
|
|
71
|
-
let b = this.
|
|
72
|
-
this.
|
|
73
|
-
if (b != this.
|
|
74
|
-
this.
|
|
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.
|
|
79
|
-
if (this.
|
|
80
|
-
this.
|
|
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.
|
|
85
|
-
let a = this.
|
|
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.
|
|
87
|
+
let b = this.aa;
|
|
88
88
|
b.textValueChanged = delegateCombine(b.textValueChanged, runOn(this, this.onComboTextChanged));
|
|
89
|
-
let c = this.
|
|
89
|
+
let c = this.aa;
|
|
90
90
|
c.gotFocus = delegateCombine(c.gotFocus, runOn(this, this.onComboGotFocus));
|
|
91
|
-
let d = this.
|
|
91
|
+
let d = this.aa;
|
|
92
92
|
d.lostFocus = delegateCombine(d.lostFocus, runOn(this, this.onComboLostFocus));
|
|
93
|
-
let e = this.
|
|
93
|
+
let e = this.aa;
|
|
94
94
|
e.keyDown = delegateCombine(e.keyDown, runOn(this, this.onInputKeyDown));
|
|
95
|
-
let f = this.
|
|
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.
|
|
101
|
-
let a = this.
|
|
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.
|
|
103
|
+
let b = this.aa;
|
|
104
104
|
b.textValueChanged = delegateRemove(b.textValueChanged, runOn(this, this.onComboTextChanged));
|
|
105
|
-
let c = this.
|
|
105
|
+
let c = this.aa;
|
|
106
106
|
c.gotFocus = delegateRemove(c.gotFocus, runOn(this, this.onComboGotFocus));
|
|
107
|
-
let d = this.
|
|
107
|
+
let d = this.aa;
|
|
108
108
|
d.lostFocus = delegateRemove(d.lostFocus, runOn(this, this.onComboLostFocus));
|
|
109
|
-
let e = this.
|
|
109
|
+
let e = this.aa;
|
|
110
110
|
e.keyDown = delegateRemove(e.keyDown, runOn(this, this.onInputKeyDown));
|
|
111
|
-
let f = this.
|
|
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.
|
|
117
|
-
this.
|
|
118
|
-
if (this.
|
|
119
|
-
this.
|
|
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.
|
|
122
|
+
this.ac = false;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
onEditStarted() {
|
|
126
126
|
super.onEditStarted();
|
|
127
127
|
let a = this.container.getNativeElement();
|
|
128
|
-
this.
|
|
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
|
-
|
|
143
|
-
if (this.
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
142
|
+
s() {
|
|
143
|
+
if (this.aa != null) {
|
|
144
|
+
this.ad.focus(true);
|
|
145
|
+
this.aa.select();
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
if (this.
|
|
150
|
-
this.
|
|
148
|
+
al() {
|
|
149
|
+
if (this.aa != null) {
|
|
150
|
+
this.aa.closeUp();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
super.
|
|
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.
|
|
159
|
+
this.ao();
|
|
160
160
|
break;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
this.
|
|
165
|
-
if (this.
|
|
163
|
+
w() {
|
|
164
|
+
this.ac = true;
|
|
165
|
+
if (this.aa != null) {
|
|
166
166
|
if (this.value == null) {
|
|
167
|
-
this.
|
|
167
|
+
this.aa.text = " ";
|
|
168
168
|
}
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
169
|
+
this.aa.value = this.value;
|
|
170
|
+
this.s();
|
|
171
171
|
}
|
|
172
|
-
this.
|
|
172
|
+
this.ac = false;
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
if (this.
|
|
174
|
+
ao() {
|
|
175
|
+
if (this.aa != null) {
|
|
176
176
|
this.detachEvents();
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
if (this.
|
|
181
|
-
this.
|
|
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.
|
|
184
|
-
this.
|
|
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.
|
|
187
|
+
let a = typeCast(IDataSource_$type, this.af);
|
|
188
188
|
if (a != null && a.actualSchema != null) {
|
|
189
|
-
this.
|
|
189
|
+
this.aa.fields = [a.actualSchema.propertyNames[0]];
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
let b = (Array.isArray(this.
|
|
192
|
+
let b = (Array.isArray(this.af));
|
|
193
193
|
if (b) {
|
|
194
|
-
let c = (this.
|
|
194
|
+
let c = (this.af.length);
|
|
195
195
|
if (c > 0) {
|
|
196
|
-
let d = (Object.keys(this.
|
|
196
|
+
let d = (Object.keys(this.af[0]));
|
|
197
197
|
if (d.length > 0) {
|
|
198
|
-
this.
|
|
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.
|
|
214
|
+
this.as();
|
|
209
215
|
}
|
|
210
216
|
onComboTextChanged(a, b) {
|
|
211
|
-
this.
|
|
217
|
+
this.as();
|
|
212
218
|
}
|
|
213
|
-
|
|
214
|
-
if (this.
|
|
219
|
+
as() {
|
|
220
|
+
if (this.ac) {
|
|
215
221
|
return;
|
|
216
222
|
}
|
|
217
|
-
if (this.
|
|
218
|
-
this.
|
|
223
|
+
if (this.aa.value != null) {
|
|
224
|
+
this.q(this.aa.value, false);
|
|
219
225
|
}
|
|
220
|
-
else if (this.
|
|
221
|
-
this.
|
|
226
|
+
else if (this.aa.value == null && stringIsNullOrWhiteSpace(this.aa.text)) {
|
|
227
|
+
this.q(null, false);
|
|
222
228
|
}
|
|
223
229
|
else {
|
|
224
|
-
this.
|
|
230
|
+
this.q(this.value, false);
|
|
225
231
|
}
|
|
226
232
|
}
|
|
227
233
|
onInputChanging(a, b) {
|
|
228
|
-
this.
|
|
234
|
+
this.p();
|
|
229
235
|
}
|
|
230
236
|
onComboLostFocus(a) {
|
|
231
|
-
this.
|
|
237
|
+
this.o();
|
|
232
238
|
}
|
|
233
239
|
onComboGotFocus(a) {
|
|
234
|
-
this.
|
|
240
|
+
this.n();
|
|
235
241
|
}
|
|
236
242
|
}
|
|
237
243
|
ComboEditorView.$t = /*@__PURE__*/ markType(ComboEditorView, 'ComboEditorView', BaseEditorView.$);
|