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
|
@@ -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.
|
|
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.
|
|
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.
|
|
71
|
+
this.u("ShowClearButton", b, this.f);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
|
|
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
|
-
|
|
89
|
+
p() {
|
|
79
90
|
if (this.userTyping != null) {
|
|
80
91
|
this.userTyping(this);
|
|
81
92
|
}
|
|
82
93
|
}
|
|
83
|
-
|
|
94
|
+
o() {
|
|
84
95
|
if (this.lostFocus != null) {
|
|
85
96
|
this.lostFocus(this);
|
|
86
97
|
}
|
|
87
98
|
}
|
|
88
|
-
|
|
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.
|
|
130
|
+
this.s();
|
|
120
131
|
this.d = false;
|
|
121
132
|
});
|
|
122
133
|
this.d = true;
|
|
123
134
|
}
|
|
124
|
-
|
|
135
|
+
s() {
|
|
125
136
|
}
|
|
126
137
|
getEditorValue() {
|
|
127
138
|
return null;
|
|
128
139
|
}
|
|
129
140
|
setEditorValue(a) {
|
|
130
141
|
}
|
|
131
|
-
|
|
142
|
+
u(a, b, c) {
|
|
132
143
|
switch (a) {
|
|
133
144
|
case "Value":
|
|
134
|
-
this.
|
|
145
|
+
this.w();
|
|
135
146
|
break;
|
|
136
147
|
case "IsEnabled":
|
|
137
|
-
this.
|
|
148
|
+
this.r();
|
|
149
|
+
break;
|
|
150
|
+
case "TextColor":
|
|
151
|
+
this.v();
|
|
138
152
|
break;
|
|
139
153
|
}
|
|
140
154
|
}
|
|
141
|
-
|
|
155
|
+
w() {
|
|
156
|
+
}
|
|
157
|
+
r() {
|
|
142
158
|
}
|
|
143
|
-
|
|
159
|
+
v() {
|
|
144
160
|
}
|
|
145
161
|
onInputKeyDown(a, b) {
|
|
146
162
|
if (!this.g) {
|
|
@@ -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.
|
|
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.$);
|