igniteui-webcomponents-grids 4.2.2 → 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 +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/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-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
|
@@ -40,16 +40,19 @@ export let FilterCellPresenter = /*@__PURE__*/ (() => {
|
|
|
40
40
|
}
|
|
41
41
|
if (b.a3(FilterCellModel.l5)) {
|
|
42
42
|
if (b.lu) {
|
|
43
|
-
this.d.
|
|
43
|
+
this.d.dl();
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
|
-
this.d.
|
|
46
|
+
this.d.dk();
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
if (b.a3(FilterCellModel.eg)) {
|
|
50
|
+
this.d.d7 = b.k2;
|
|
51
|
+
}
|
|
49
52
|
}
|
|
50
53
|
if (a.be || a.bj) {
|
|
51
54
|
if (b.a3(FilterCellModel.gw) || b.a3(FilterCellModel.gx) || b.a3(FilterCellModel.gv) || b.a3(FilterCellModel.fd)) {
|
|
52
|
-
this.d.
|
|
55
|
+
this.d.d5(b.cl, b.cm, b.gu, b.fc);
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -13,6 +13,7 @@ import { StringComparer } from "igniteui-webcomponents-core";
|
|
|
13
13
|
import { GridColumnOptionsSimpleSectionBase } from "./GridColumnOptionsSimpleSectionBase";
|
|
14
14
|
import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
15
15
|
import { DeviceUtils } from "igniteui-webcomponents-core";
|
|
16
|
+
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
16
17
|
import { truncate } from "igniteui-webcomponents-core";
|
|
17
18
|
import { stringIsNullOrWhiteSpace } from "igniteui-webcomponents-core";
|
|
18
19
|
import { stringFormat1 } from "igniteui-webcomponents-core";
|
|
@@ -208,6 +209,8 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
208
209
|
this.b5 = 0;
|
|
209
210
|
this.b3 = 0;
|
|
210
211
|
this.d0 = null;
|
|
212
|
+
this.fk = BrushUtil.g(255, 24, 29, 31);
|
|
213
|
+
this.fj = BrushUtil.g(255, 248, 248, 248);
|
|
211
214
|
this.applyButtonClick = null;
|
|
212
215
|
this.cancelButtonClick = null;
|
|
213
216
|
}
|
|
@@ -238,14 +241,14 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
238
241
|
if (null != this.b2) {
|
|
239
242
|
this.b2.column = a;
|
|
240
243
|
}
|
|
241
|
-
this.
|
|
244
|
+
this.fi();
|
|
242
245
|
}
|
|
243
246
|
bb(a, b) {
|
|
244
247
|
super.bb(a, b);
|
|
245
248
|
switch (b.propertyName) {
|
|
246
249
|
case "HeaderClickAction":
|
|
247
250
|
case "ColumnMovingMode":
|
|
248
|
-
this.
|
|
251
|
+
this.fi();
|
|
249
252
|
break;
|
|
250
253
|
}
|
|
251
254
|
}
|
|
@@ -262,7 +265,7 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
262
265
|
case "PaddingRight":
|
|
263
266
|
case "PaddingBottom":
|
|
264
267
|
case "PaddingLeft":
|
|
265
|
-
this.
|
|
268
|
+
this.fi();
|
|
266
269
|
break;
|
|
267
270
|
case "ActualLabelTextStyle":
|
|
268
271
|
case "ActualBaseTheme":
|
|
@@ -273,13 +276,13 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
273
276
|
case "ActualSummaryListDensity":
|
|
274
277
|
case "BackgroundColor":
|
|
275
278
|
case "TextColor":
|
|
276
|
-
this.
|
|
279
|
+
this.fg();
|
|
277
280
|
break;
|
|
278
281
|
case "ColumnNameTextStyle":
|
|
279
|
-
this.
|
|
282
|
+
this.fh();
|
|
280
283
|
break;
|
|
281
284
|
case "ActualColumnNameTextStyle":
|
|
282
|
-
this.
|
|
285
|
+
this.fi();
|
|
283
286
|
break;
|
|
284
287
|
case "FilterListDensity":
|
|
285
288
|
this.b7 = this.filterListDensity == 0 ? this.q : this.filterListDensity;
|
|
@@ -289,7 +292,7 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
289
292
|
break;
|
|
290
293
|
}
|
|
291
294
|
}
|
|
292
|
-
|
|
295
|
+
fi() {
|
|
293
296
|
this.bz.m();
|
|
294
297
|
}
|
|
295
298
|
get dx() {
|
|
@@ -701,6 +704,26 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
701
704
|
}
|
|
702
705
|
this.bc("FilterListPlaceholderText", b, this.d0);
|
|
703
706
|
}
|
|
707
|
+
get fm() {
|
|
708
|
+
return this.fk;
|
|
709
|
+
}
|
|
710
|
+
set fm(a) {
|
|
711
|
+
let b = this.fk;
|
|
712
|
+
this.fk = a;
|
|
713
|
+
if (b != this.fk) {
|
|
714
|
+
this.bc("SummaryListTextColor", b, this.fk);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
get fl() {
|
|
718
|
+
return this.fj;
|
|
719
|
+
}
|
|
720
|
+
set fl(a) {
|
|
721
|
+
let b = this.fj;
|
|
722
|
+
this.fj = a;
|
|
723
|
+
if (b != this.fj) {
|
|
724
|
+
this.bc("SummaryListBackground", b, this.fj);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
704
727
|
notifySizeChanged() {
|
|
705
728
|
this.e.j();
|
|
706
729
|
}
|
|
@@ -726,37 +749,37 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
726
749
|
this.bv.b7 = this.dv;
|
|
727
750
|
this.bv.cc = this.d1;
|
|
728
751
|
let t = this.b1;
|
|
729
|
-
t.propertyChanged = delegateCombine(t.propertyChanged, runOn(this, this.
|
|
752
|
+
t.propertyChanged = delegateCombine(t.propertyChanged, runOn(this, this.fb));
|
|
730
753
|
let u = this.by;
|
|
731
|
-
u.propertyChanged = delegateCombine(u.propertyChanged, runOn(this, this.
|
|
754
|
+
u.propertyChanged = delegateCombine(u.propertyChanged, runOn(this, this.fb));
|
|
732
755
|
let v = this.b0;
|
|
733
|
-
v.propertyChanged = delegateCombine(v.propertyChanged, runOn(this, this.
|
|
756
|
+
v.propertyChanged = delegateCombine(v.propertyChanged, runOn(this, this.fb));
|
|
734
757
|
let w = this.bx;
|
|
735
|
-
w.propertyChanged = delegateCombine(w.propertyChanged, runOn(this, this.
|
|
758
|
+
w.propertyChanged = delegateCombine(w.propertyChanged, runOn(this, this.fb));
|
|
736
759
|
let x = this.bw;
|
|
737
|
-
x.propertyChanged = delegateCombine(x.propertyChanged, runOn(this, this.
|
|
760
|
+
x.propertyChanged = delegateCombine(x.propertyChanged, runOn(this, this.fb));
|
|
738
761
|
let y = this.bv;
|
|
739
|
-
y.propertyChanged = delegateCombine(y.propertyChanged, runOn(this, this.
|
|
762
|
+
y.propertyChanged = delegateCombine(y.propertyChanged, runOn(this, this.fb));
|
|
740
763
|
this.b2 = r;
|
|
741
764
|
this.bu = s;
|
|
742
765
|
this.bu.bz = this.dp;
|
|
743
766
|
this.bu.b3 = this.ds;
|
|
744
767
|
let z = this.bu;
|
|
745
|
-
z.applyButtonClick = delegateCombine(z.applyButtonClick, runOn(this, this.
|
|
768
|
+
z.applyButtonClick = delegateCombine(z.applyButtonClick, runOn(this, this.fd));
|
|
746
769
|
let aa = this.bu;
|
|
747
|
-
aa.cancelButtonClick = delegateCombine(aa.cancelButtonClick, runOn(this, this.
|
|
748
|
-
this.
|
|
770
|
+
aa.cancelButtonClick = delegateCombine(aa.cancelButtonClick, runOn(this, this.fe));
|
|
771
|
+
this.fh();
|
|
749
772
|
this.bl();
|
|
750
773
|
this.bi();
|
|
751
|
-
this.
|
|
774
|
+
this.fg();
|
|
752
775
|
}
|
|
753
776
|
d5() {
|
|
754
777
|
return stringFormat1("{0}px {1}px {2}px {3}px", this.dj.toString(), this.di.toString(), this.dg.toString(), this.dh.toString());
|
|
755
778
|
}
|
|
756
|
-
|
|
779
|
+
fh() {
|
|
757
780
|
this.cf = (null == this.cg) ? this.ci : this.cg;
|
|
758
781
|
}
|
|
759
|
-
|
|
782
|
+
fg() {
|
|
760
783
|
let a = [this.b1, this.by, this.b0, this.bx, this.bw, this.bv, this.b2, this.bu];
|
|
761
784
|
for (let c = 0; c < a.length; c++) {
|
|
762
785
|
let b = a[c];
|
|
@@ -778,9 +801,11 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
778
801
|
}
|
|
779
802
|
if (null != this.b2) {
|
|
780
803
|
this.b2.b5 = this.b8;
|
|
804
|
+
this.b2.cv = this.fm;
|
|
805
|
+
this.b2.cu = this.fl;
|
|
781
806
|
}
|
|
782
807
|
}
|
|
783
|
-
|
|
808
|
+
fd(a, b) {
|
|
784
809
|
let c = [this.b1, this.by, this.b0, this.bx, this.bw, this.bv, this.b2];
|
|
785
810
|
for (let e = 0; e < c.length; e++) {
|
|
786
811
|
let d = c[e];
|
|
@@ -790,7 +815,7 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
790
815
|
this.applyButtonClick(this, b);
|
|
791
816
|
}
|
|
792
817
|
}
|
|
793
|
-
|
|
818
|
+
fe(a, b) {
|
|
794
819
|
let c = [this.b1, this.by, this.b0, this.bx, this.bw, this.bv, this.b2];
|
|
795
820
|
for (let e = 0; e < c.length; e++) {
|
|
796
821
|
let d = c[e];
|
|
@@ -800,7 +825,7 @@ export let GridColumnOptions = /*@__PURE__*/ (() => {
|
|
|
800
825
|
this.cancelButtonClick(this, b);
|
|
801
826
|
}
|
|
802
827
|
}
|
|
803
|
-
|
|
828
|
+
fb(a, b) {
|
|
804
829
|
switch (b.propertyName) {
|
|
805
830
|
}
|
|
806
831
|
}
|
|
@@ -13,6 +13,7 @@ import { runOn, markType, enumGetBox, delegateRemove, delegateCombine } from "ig
|
|
|
13
13
|
import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
14
14
|
import { Rect } from "igniteui-webcomponents-core";
|
|
15
15
|
import { GridColumnOptionsSectionBase } from "./GridColumnOptionsSectionBase";
|
|
16
|
+
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
16
17
|
import { ColumnSummaryDescription } from "./ColumnSummaryDescription";
|
|
17
18
|
import { stringFormat } from "igniteui-webcomponents-core";
|
|
18
19
|
import { stringIsNullOrWhiteSpace } from "igniteui-webcomponents-core";
|
|
@@ -41,18 +42,18 @@ export let GridColumnSummaryOptionsView = /*@__PURE__*/ (() => {
|
|
|
41
42
|
this.o = ((() => { let d = GridColumnOptionsUtilities.f(this.n, this.e, GridColumnSummaryOptionsView.r, 1, this.n.p, this.n.j, new Size(1, 24, 24), a, b, this.p, c, false, true); a = d.p7; b = d.p8; this.p = d.p9; c = d.p10; return d.ret; })());
|
|
42
43
|
c.setStyleProperty("transform", "rotate(-90deg)");
|
|
43
44
|
this.g.append(this.o);
|
|
44
|
-
this.n.
|
|
45
|
+
this.n.ck(a);
|
|
45
46
|
}
|
|
46
47
|
if (this.n.bx == null) {
|
|
47
48
|
let d = new SummaryChooser();
|
|
48
49
|
d.a2(this.e);
|
|
49
|
-
this.n.
|
|
50
|
+
this.n.co(d);
|
|
50
51
|
let e = this.e.createElement("div");
|
|
51
52
|
let f = this.e.getSubRenderer(e);
|
|
52
53
|
let g = new Popup();
|
|
53
54
|
g.provideRenderer(f);
|
|
54
55
|
g.appendPopupContent(d.c.container);
|
|
55
|
-
this.n.
|
|
56
|
+
this.n.cl(g);
|
|
56
57
|
}
|
|
57
58
|
document.addEventListener("mousedown", runOn(this, this.s), false);
|
|
58
59
|
}
|
|
@@ -96,7 +97,7 @@ export let GridColumnSummaryOptionsView = /*@__PURE__*/ (() => {
|
|
|
96
97
|
return (window.innerWidth);
|
|
97
98
|
}
|
|
98
99
|
s(e_) {
|
|
99
|
-
this.n.
|
|
100
|
+
this.n.cj();
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
GridColumnSummaryOptionsView.$t = /*@__PURE__*/ markType(GridColumnSummaryOptionsView, 'GridColumnSummaryOptionsView', GridColumnOptionsViewBase.$);
|
|
@@ -117,6 +118,8 @@ export let GridColumnSummaryOptions = /*@__PURE__*/ (() => {
|
|
|
117
118
|
this.b2 = 0;
|
|
118
119
|
this.b1 = 0;
|
|
119
120
|
this.b6 = 0;
|
|
121
|
+
this.ct = BrushUtil.g(255, 24, 29, 31);
|
|
122
|
+
this.cs = BrushUtil.g(255, 248, 248, 248);
|
|
120
123
|
}
|
|
121
124
|
f() {
|
|
122
125
|
return new GridColumnSummaryOptionsView();
|
|
@@ -135,9 +138,11 @@ export let GridColumnSummaryOptions = /*@__PURE__*/ (() => {
|
|
|
135
138
|
case "ActualSummaryListDensity":
|
|
136
139
|
case "BackgroundColor":
|
|
137
140
|
case "TextColor":
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
case "SummaryListTextColor":
|
|
142
|
+
case "SummaryListBackground":
|
|
143
|
+
this.cq();
|
|
140
144
|
this.cp();
|
|
145
|
+
this.cr();
|
|
141
146
|
break;
|
|
142
147
|
case "SummaryListDensity":
|
|
143
148
|
this.b3 = this.b5 == 0 ? this.q : this.b5;
|
|
@@ -318,47 +323,68 @@ export let GridColumnSummaryOptions = /*@__PURE__*/ (() => {
|
|
|
318
323
|
this.bc("ActiveCount", b, this.b6);
|
|
319
324
|
}
|
|
320
325
|
}
|
|
321
|
-
|
|
326
|
+
get cv() {
|
|
327
|
+
return this.ct;
|
|
328
|
+
}
|
|
329
|
+
set cv(a) {
|
|
330
|
+
let b = this.ct;
|
|
331
|
+
this.ct = a;
|
|
332
|
+
if (b != this.ct) {
|
|
333
|
+
this.bc("SummaryListTextColor", b, this.ct);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
get cu() {
|
|
337
|
+
return this.cs;
|
|
338
|
+
}
|
|
339
|
+
set cu(a) {
|
|
340
|
+
let b = this.cs;
|
|
341
|
+
this.cs = a;
|
|
342
|
+
if (b != this.cs) {
|
|
343
|
+
this.bc("SummaryListBackground", b, this.cs);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
cj() {
|
|
322
347
|
if (this.b0 != null && this.b0.t) {
|
|
323
348
|
this.b0.ao();
|
|
324
349
|
}
|
|
325
350
|
}
|
|
326
|
-
|
|
351
|
+
ck(a) {
|
|
327
352
|
if (this.by != null) {
|
|
328
353
|
let b = this.by;
|
|
329
|
-
b.clicked = delegateRemove(b.clicked, runOn(this, this.
|
|
354
|
+
b.clicked = delegateRemove(b.clicked, runOn(this, this.cm));
|
|
330
355
|
}
|
|
331
356
|
this.by = a;
|
|
332
357
|
if (this.by != null) {
|
|
333
358
|
let c = this.by;
|
|
334
|
-
c.clicked = delegateCombine(c.clicked, runOn(this, this.
|
|
359
|
+
c.clicked = delegateCombine(c.clicked, runOn(this, this.cm));
|
|
335
360
|
}
|
|
336
|
-
this.
|
|
361
|
+
this.cp();
|
|
337
362
|
}
|
|
338
|
-
|
|
363
|
+
cl(a) {
|
|
339
364
|
this.b0 = a;
|
|
340
|
-
this.
|
|
365
|
+
this.cr();
|
|
341
366
|
}
|
|
342
|
-
|
|
367
|
+
co(a) {
|
|
343
368
|
if (this.bw != null) {
|
|
344
369
|
let b = this.bw;
|
|
345
|
-
b.summaryChanged = delegateRemove(b.summaryChanged, runOn(this, this.
|
|
370
|
+
b.summaryChanged = delegateRemove(b.summaryChanged, runOn(this, this.cn));
|
|
346
371
|
}
|
|
347
372
|
this.bw = a;
|
|
348
373
|
if (this.bw != null) {
|
|
349
374
|
let c = this.bw;
|
|
350
|
-
c.summaryChanged = delegateCombine(c.summaryChanged, runOn(this, this.
|
|
375
|
+
c.summaryChanged = delegateCombine(c.summaryChanged, runOn(this, this.cn));
|
|
351
376
|
}
|
|
352
|
-
this.
|
|
377
|
+
this.cq();
|
|
353
378
|
}
|
|
354
|
-
|
|
379
|
+
cq() {
|
|
355
380
|
if (this.bw != null) {
|
|
356
381
|
this.bw.j = this.i;
|
|
357
382
|
this.bw.n = this.b3;
|
|
358
|
-
this.bw.ba = this.
|
|
383
|
+
this.bw.ba = this.cv;
|
|
384
|
+
this.bw.a9 = this.cu;
|
|
359
385
|
}
|
|
360
386
|
}
|
|
361
|
-
|
|
387
|
+
cp() {
|
|
362
388
|
if (this.by != null) {
|
|
363
389
|
this.by.ef = 0;
|
|
364
390
|
this.by.ak = false;
|
|
@@ -366,13 +392,13 @@ export let GridColumnSummaryOptions = /*@__PURE__*/ (() => {
|
|
|
366
392
|
this.bh(this.by);
|
|
367
393
|
}
|
|
368
394
|
}
|
|
369
|
-
|
|
395
|
+
cr() {
|
|
370
396
|
if (this.b0 != null) {
|
|
371
397
|
this.b0.a8 = this.bo;
|
|
372
398
|
this.b0.q = false;
|
|
373
399
|
}
|
|
374
400
|
}
|
|
375
|
-
|
|
401
|
+
cm(a, b) {
|
|
376
402
|
if (this.b0 == null) {
|
|
377
403
|
return;
|
|
378
404
|
}
|
|
@@ -395,7 +421,7 @@ export let GridColumnSummaryOptions = /*@__PURE__*/ (() => {
|
|
|
395
421
|
this.b0.showRelativeToExclusionRect(d, 1, 0);
|
|
396
422
|
}
|
|
397
423
|
}
|
|
398
|
-
|
|
424
|
+
cn(a, b) {
|
|
399
425
|
if (b.a) {
|
|
400
426
|
this.b7++;
|
|
401
427
|
}
|
|
@@ -14,14 +14,14 @@ export let NumericEditorView = /*@__PURE__*/ (() => {
|
|
|
14
14
|
class NumericEditorView extends TextEditorView {
|
|
15
15
|
constructor(a, b, c) {
|
|
16
16
|
super(a, b, c);
|
|
17
|
-
this.
|
|
17
|
+
this.y.b6 = "number";
|
|
18
18
|
}
|
|
19
19
|
getEditorValue() {
|
|
20
|
-
if (this.
|
|
20
|
+
if (this.y == null || this.y.cm == null) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
let a = NaN;
|
|
24
|
-
let b = tryParseNumber(this.
|
|
24
|
+
let b = tryParseNumber(this.y.cm, a);
|
|
25
25
|
a = b.p1;
|
|
26
26
|
return a;
|
|
27
27
|
}
|
|
@@ -15,9 +15,9 @@ export let TextEditorView = /*@__PURE__*/ (() => {
|
|
|
15
15
|
class TextEditorView extends BaseEditorView {
|
|
16
16
|
constructor(a, b, c) {
|
|
17
17
|
super(a, c);
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
18
|
+
this.aa = null;
|
|
19
|
+
this.z = null;
|
|
20
|
+
this.y = null;
|
|
21
21
|
let d = a.createElement("div");
|
|
22
22
|
d.setRawStyleProperty("display", "flex");
|
|
23
23
|
d.setRawStyleProperty("width", "100%");
|
|
@@ -25,60 +25,61 @@ export let TextEditorView = /*@__PURE__*/ (() => {
|
|
|
25
25
|
d.setRawStyleProperty("height", "38px");
|
|
26
26
|
this.container = d;
|
|
27
27
|
let e = a.getSubRenderer(d);
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
let f = e.getExternal(this.
|
|
28
|
+
this.z = new XInputGroup();
|
|
29
|
+
this.z.provideContainer(e);
|
|
30
|
+
this.z.d = 0;
|
|
31
|
+
this.z.j = b;
|
|
32
|
+
this.z.n = 3;
|
|
33
|
+
this.z.disabled = !this.isEnabled;
|
|
34
|
+
let f = e.getExternal(this.z, e.rootWrapper, null);
|
|
35
35
|
let g = a.createElement("div");
|
|
36
36
|
g.setRawStyleProperty("width", "100%");
|
|
37
37
|
let h = a.getSubRenderer(g);
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
38
|
+
this.y = new XInput();
|
|
39
|
+
this.y.provideContainer(h);
|
|
40
|
+
this.y.b6 = "text";
|
|
41
|
+
this.y.disabled = !this.isEnabled;
|
|
42
|
+
this.y.d1 = this.textColor;
|
|
43
|
+
let i = e.getExternal(this.y, h.rootWrapper, null);
|
|
44
|
+
this.z.appendContentChild(g);
|
|
45
|
+
this.z.inputs.add(this.y);
|
|
45
46
|
}
|
|
46
47
|
setFont(a) {
|
|
47
|
-
if (this.
|
|
48
|
-
this.
|
|
48
|
+
if (this.y != null) {
|
|
49
|
+
this.y.af = a;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
attachEvents() {
|
|
52
|
-
if (this.
|
|
53
|
-
let a = this.
|
|
54
|
-
a.changing = delegateCombine(a.changing, runOn(this, this.
|
|
55
|
-
let b = this.
|
|
53
|
+
if (this.y != null) {
|
|
54
|
+
let a = this.y;
|
|
55
|
+
a.changing = delegateCombine(a.changing, runOn(this, this.ac));
|
|
56
|
+
let b = this.y;
|
|
56
57
|
b.keyDown = delegateCombine(b.keyDown, runOn(this, this.onInputKeyDown));
|
|
57
|
-
let c = this.
|
|
58
|
-
c.compositionEnd = delegateCombine(c.compositionEnd, runOn(this, this.
|
|
59
|
-
let d = this.
|
|
60
|
-
d.gotFocus = delegateCombine(d.gotFocus, runOn(this, this.
|
|
61
|
-
let e = this.
|
|
62
|
-
e.lostFocus = delegateCombine(e.lostFocus, runOn(this, this.
|
|
58
|
+
let c = this.y;
|
|
59
|
+
c.compositionEnd = delegateCombine(c.compositionEnd, runOn(this, this.ab));
|
|
60
|
+
let d = this.y;
|
|
61
|
+
d.gotFocus = delegateCombine(d.gotFocus, runOn(this, this.ad));
|
|
62
|
+
let e = this.y;
|
|
63
|
+
e.lostFocus = delegateCombine(e.lostFocus, runOn(this, this.ae));
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
detachEvents() {
|
|
66
|
-
if (this.
|
|
67
|
-
let a = this.
|
|
68
|
-
a.changing = delegateRemove(a.changing, runOn(this, this.
|
|
69
|
-
let b = this.
|
|
67
|
+
if (this.y != null) {
|
|
68
|
+
let a = this.y;
|
|
69
|
+
a.changing = delegateRemove(a.changing, runOn(this, this.ac));
|
|
70
|
+
let b = this.y;
|
|
70
71
|
b.keyDown = delegateRemove(b.keyDown, runOn(this, this.onInputKeyDown));
|
|
71
|
-
let c = this.
|
|
72
|
-
c.compositionEnd = delegateRemove(c.compositionEnd, runOn(this, this.
|
|
73
|
-
let d = this.
|
|
74
|
-
d.gotFocus = delegateRemove(d.gotFocus, runOn(this, this.
|
|
75
|
-
let e = this.
|
|
76
|
-
e.lostFocus = delegateRemove(e.lostFocus, runOn(this, this.
|
|
72
|
+
let c = this.y;
|
|
73
|
+
c.compositionEnd = delegateRemove(c.compositionEnd, runOn(this, this.ab));
|
|
74
|
+
let d = this.y;
|
|
75
|
+
d.gotFocus = delegateRemove(d.gotFocus, runOn(this, this.ad));
|
|
76
|
+
let e = this.y;
|
|
77
|
+
e.lostFocus = delegateRemove(e.lostFocus, runOn(this, this.ae));
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
onTargetChanged() {
|
|
80
|
-
this.
|
|
81
|
-
if (this.
|
|
81
|
+
this.aa = null;
|
|
82
|
+
if (this.y != null) {
|
|
82
83
|
this.focus();
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -93,72 +94,78 @@ export let TextEditorView = /*@__PURE__*/ (() => {
|
|
|
93
94
|
if (this.a.isEditRefocusDesired) {
|
|
94
95
|
let a = this.h.rootWrapper.getNativeElement();
|
|
95
96
|
if (a == document.activeElement || a.contains(document.activeElement)) {
|
|
96
|
-
this.
|
|
97
|
+
this.y.cp();
|
|
97
98
|
this.focus();
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
-
if (this.
|
|
103
|
-
this.
|
|
104
|
-
if (this.
|
|
105
|
-
window.setTimeout(() => this.
|
|
102
|
+
s() {
|
|
103
|
+
if (this.y != null) {
|
|
104
|
+
this.y.focus(true);
|
|
105
|
+
if (this.y.b6 != "date") {
|
|
106
|
+
window.setTimeout(() => this.y.dj(), 0);
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
-
if (this.
|
|
110
|
+
w() {
|
|
111
|
+
if (this.y != null) {
|
|
111
112
|
if (this.value != null) {
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
this.
|
|
113
|
+
this.aa = null;
|
|
114
|
+
this.y.cm = null;
|
|
115
|
+
this.y.cm = this.value.toString();
|
|
115
116
|
if (this.focusOnValueChanged) {
|
|
116
|
-
this.
|
|
117
|
+
this.s();
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
else {
|
|
120
|
-
this.
|
|
121
|
+
this.y.cm = null;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
-
if (this.
|
|
126
|
-
this.
|
|
125
|
+
r() {
|
|
126
|
+
if (this.z != null) {
|
|
127
|
+
this.z.disabled = !this.isEnabled;
|
|
127
128
|
}
|
|
128
|
-
if (this.
|
|
129
|
-
this.
|
|
129
|
+
if (this.y != null) {
|
|
130
|
+
this.y.disabled = !this.isEnabled;
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
v() {
|
|
134
|
+
super.v();
|
|
135
|
+
if (this.y != null) {
|
|
136
|
+
this.y.d1 = this.textColor;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
ac(a, b) {
|
|
140
|
+
this.p();
|
|
134
141
|
if (b.isCompositionInProgress) {
|
|
135
142
|
return;
|
|
136
143
|
}
|
|
137
|
-
if (this.
|
|
138
|
-
this.
|
|
144
|
+
if (this.aa != null && this.aa != b.value) {
|
|
145
|
+
this.aa = null;
|
|
139
146
|
return;
|
|
140
147
|
}
|
|
141
|
-
this.
|
|
142
|
-
}
|
|
143
|
-
y(a, b) {
|
|
144
|
-
this.x = b.value;
|
|
145
|
-
this.p(b.value, false);
|
|
148
|
+
this.q(b.value, false);
|
|
146
149
|
}
|
|
147
150
|
ab(a, b) {
|
|
148
|
-
this.
|
|
151
|
+
this.aa = b.value;
|
|
152
|
+
this.q(b.value, false);
|
|
149
153
|
}
|
|
150
|
-
|
|
151
|
-
this.
|
|
154
|
+
ae(a, b) {
|
|
155
|
+
this.o();
|
|
156
|
+
}
|
|
157
|
+
ad(a, b) {
|
|
158
|
+
this.n();
|
|
152
159
|
}
|
|
153
160
|
getEditorValue() {
|
|
154
|
-
if (this.
|
|
155
|
-
return this.
|
|
161
|
+
if (this.y != null) {
|
|
162
|
+
return this.y.cm;
|
|
156
163
|
}
|
|
157
164
|
return null;
|
|
158
165
|
}
|
|
159
166
|
setEditorValue(a) {
|
|
160
|
-
if (this.
|
|
161
|
-
this.
|
|
167
|
+
if (this.y != null) {
|
|
168
|
+
this.y.cm = a;
|
|
162
169
|
}
|
|
163
170
|
}
|
|
164
171
|
}
|