igniteui-angular-inputs 20.1.0 → 20.2.0-beta.0
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-angular-inputs.umd.js +1322 -1128
- package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +1 -1
- package/esm2015/lib/ButtonGroupVisualModelExport.js +9 -1
- package/esm2015/lib/ButtonView_combined.js +315 -308
- package/esm2015/lib/CheckboxListVisualModelExport.js +43 -0
- package/esm2015/lib/CheckboxView_combined.js +179 -164
- package/esm2015/lib/CheckboxVisualModelExport.js +14 -6
- package/esm2015/lib/ColorEditorVisualModelExport.js +40 -0
- package/esm2015/lib/IconView_combined.js +27 -22
- package/esm2015/lib/InputGroupView_combined.js +274 -262
- package/esm2015/lib/InputGroupVisualModelExport.js +2 -2
- package/esm2015/lib/InputVisualModelExport.js +34 -32
- package/esm2015/lib/MultiSliderView_combined.js +2 -2
- package/esm2015/lib/NativeUIXInputsFactory_combined.js +324 -299
- package/esm2015/lib/XButtonBridge.js +1 -1
- package/esm2015/lib/XButtonGroupBridge.js +7 -1
- package/esm2015/lib/XCheckboxBridge.js +2 -1
- package/esm2015/lib/XIconBridge.js +2 -1
- package/esm2015/lib/XInputBridge.js +11 -1
- package/esm2015/lib/igx-color-editor-component.js +49 -33
- package/esm2015/public_api.js +2 -0
- package/esm5/lib/ButtonGroupView_combined.js +1 -1
- package/esm5/lib/ButtonGroupVisualModelExport.js +9 -1
- package/esm5/lib/ButtonView_combined.js +315 -308
- package/esm5/lib/CheckboxListVisualModelExport.js +45 -0
- package/esm5/lib/CheckboxView_combined.js +177 -162
- package/esm5/lib/CheckboxVisualModelExport.js +14 -6
- package/esm5/lib/ColorEditorVisualModelExport.js +42 -0
- package/esm5/lib/IconView_combined.js +32 -27
- package/esm5/lib/InputGroupView_combined.js +275 -263
- package/esm5/lib/InputGroupVisualModelExport.js +2 -2
- package/esm5/lib/InputVisualModelExport.js +34 -32
- package/esm5/lib/MultiSliderView_combined.js +2 -2
- package/esm5/lib/NativeUIXInputsFactory_combined.js +315 -290
- package/esm5/lib/XButtonBridge.js +1 -1
- package/esm5/lib/XButtonGroupBridge.js +7 -1
- package/esm5/lib/XCheckboxBridge.js +2 -1
- package/esm5/lib/XIconBridge.js +2 -1
- package/esm5/lib/XInputBridge.js +11 -1
- package/esm5/lib/igx-color-editor-component.js +49 -33
- package/esm5/public_api.js +2 -0
- package/fesm2015/igniteui-angular-inputs.js +1328 -1136
- package/fesm5/igniteui-angular-inputs.js +1322 -1130
- package/lib/ButtonGroupVisualModelExport.d.ts +5 -1
- package/lib/ButtonView_combined.d.ts +42 -41
- package/lib/CheckboxListVisualModelExport.d.ts +18 -0
- package/lib/CheckboxView_combined.d.ts +30 -29
- package/lib/CheckboxVisualModelExport.d.ts +7 -3
- package/lib/ColorEditorVisualModelExport.d.ts +17 -0
- package/lib/IconView_combined.d.ts +2 -0
- package/lib/InputGroupView_combined.d.ts +57 -56
- package/lib/InputVisualModelExport.d.ts +14 -12
- package/lib/NativeUIXInputsFactory_combined.d.ts +90 -85
- package/lib/igx-color-editor-component.d.ts +10 -0
- package/package.json +2 -2
- package/public_api.d.ts +2 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { Base, enumGetBox, markType } from "igniteui-angular-core";
|
|
8
|
+
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
9
|
+
import { StringBuilder } from "igniteui-angular-core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export let CheckboxListVisualModelExport = /*@__PURE__*/ (() => {
|
|
14
|
+
class CheckboxListVisualModelExport extends Base {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.f = 0;
|
|
18
|
+
this.g = 0;
|
|
19
|
+
this.h = 0;
|
|
20
|
+
this.e = 0;
|
|
21
|
+
this.c = 0;
|
|
22
|
+
this.b = null;
|
|
23
|
+
this.a = null;
|
|
24
|
+
this.d = 0;
|
|
25
|
+
}
|
|
26
|
+
i() {
|
|
27
|
+
let a = new StringBuilder(0);
|
|
28
|
+
a.l("{");
|
|
29
|
+
a.l("left : " + this.f + ", ");
|
|
30
|
+
a.l("top : " + this.g + ", ");
|
|
31
|
+
a.l("height : " + this.e + ", ");
|
|
32
|
+
a.l("width : " + this.h + ", ");
|
|
33
|
+
a.l("baseTheme : " + enumGetBox(BaseControlTheme_$type, this.c) + ", ");
|
|
34
|
+
a.l("backgroundColor : " + this.b.serialize() + ", ");
|
|
35
|
+
a.l("actualSelectAllCaptionTextColor : " + this.a.serialize() + ", ");
|
|
36
|
+
a.l("actualRowHeight : " + this.d);
|
|
37
|
+
a.l("}");
|
|
38
|
+
return a.toString();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
CheckboxListVisualModelExport.$t = markType(CheckboxListVisualModelExport, 'CheckboxListVisualModelExport');
|
|
42
|
+
return CheckboxListVisualModelExport;
|
|
43
|
+
})();
|
|
@@ -36,69 +36,69 @@ export let CheckboxView = /*@__PURE__*/ (() => {
|
|
|
36
36
|
class CheckboxView extends Base {
|
|
37
37
|
constructor() {
|
|
38
38
|
super();
|
|
39
|
-
this.
|
|
40
|
-
this.l = null;
|
|
41
|
-
this.f = null;
|
|
42
|
-
this.j = new List$1(Delegate_$type, 0);
|
|
43
|
-
this.g = true;
|
|
44
|
-
this.r = null;
|
|
39
|
+
this.d = null;
|
|
45
40
|
this.m = null;
|
|
46
|
-
this.
|
|
41
|
+
this.g = null;
|
|
42
|
+
this.k = new List$1(Delegate_$type, 0);
|
|
43
|
+
this.h = true;
|
|
44
|
+
this.s = null;
|
|
47
45
|
this.n = null;
|
|
46
|
+
this.r = null;
|
|
48
47
|
this.o = null;
|
|
49
|
-
this.d = null;
|
|
50
48
|
this.p = null;
|
|
49
|
+
this.e = null;
|
|
50
|
+
this.q = null;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
ag() {
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
j() {
|
|
55
55
|
return true;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
ae(a) {
|
|
58
58
|
if (a == null) {
|
|
59
|
-
for (let b of fromEnum(this.
|
|
59
|
+
for (let b of fromEnum(this.k)) {
|
|
60
60
|
b();
|
|
61
61
|
}
|
|
62
|
-
this.
|
|
62
|
+
this.k.clear();
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
let c = this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
let d = this.
|
|
65
|
+
this.m = a;
|
|
66
|
+
this.m.rootWrapper.setStyleProperty("display", "flex");
|
|
67
|
+
this.m.rootWrapper.setStyleProperty("flex-direction", "row");
|
|
68
|
+
this.m.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
|
|
69
|
+
this.m.rootWrapper.setStyleProperty("align-items", "center");
|
|
70
|
+
let c = this.m.createElement("input");
|
|
71
|
+
this.s = c;
|
|
72
|
+
this.s.addClass("ig-native-checkbox");
|
|
73
|
+
this.s.setStyleProperty("position", "absolute");
|
|
74
|
+
this.s.setStyleProperty("width", "1px");
|
|
75
|
+
this.s.setStyleProperty("height", "1px");
|
|
76
|
+
this.s.setStyleProperty("margin", "-1px");
|
|
77
|
+
this.s.setStyleProperty("border", "none");
|
|
78
|
+
this.s.setStyleProperty("clip", "rect(0, 0, 0, 0)");
|
|
79
|
+
this.s.setStyleProperty("outline", "0");
|
|
80
|
+
this.s.setStyleProperty("pointer-events", "none");
|
|
81
|
+
this.s.setStyleProperty("overflow", "hidden");
|
|
82
|
+
this.s.setStyleProperty("-webkit-appearance", "none");
|
|
83
|
+
this.s.setStyleProperty("-moz-appearance", "none");
|
|
84
|
+
this.s.setStyleProperty("appearance", "none");
|
|
85
|
+
this.s.setAttribute("type", "checkbox");
|
|
86
|
+
this.s.setAttribute("id", this.d.b1);
|
|
87
|
+
this.ak();
|
|
88
|
+
this.k.add(c.listen("change", runOn(this, this.y)));
|
|
89
|
+
this.k.add(c.listen("click", runOn(this, this.z)));
|
|
90
|
+
this.k.add(c.listen("focus", runOn(this, this.aa)));
|
|
91
|
+
this.k.add(c.listen("blur", runOn(this, this.x)));
|
|
92
|
+
this.m.append(c);
|
|
93
|
+
let d = this.m.createElement("div");
|
|
94
94
|
d.addClass("ig-checkbox-box");
|
|
95
95
|
d.setStyleProperty("width", "1.25em");
|
|
96
96
|
d.setStyleProperty("height", "1.25em");
|
|
97
97
|
d.setStyleProperty("position", "relative");
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
let e = this.
|
|
101
|
-
e.setAttribute("for", this.
|
|
98
|
+
this.n = d;
|
|
99
|
+
this.m.append(d);
|
|
100
|
+
let e = this.m.createElement("label");
|
|
101
|
+
e.setAttribute("for", this.d.b1);
|
|
102
102
|
e.addClass("ig-checkbox-composite");
|
|
103
103
|
e.setStyleProperty("box-sizing", "border-box");
|
|
104
104
|
e.setStyleProperty("position", "relative");
|
|
@@ -117,9 +117,9 @@ export let CheckboxView = /*@__PURE__*/ (() => {
|
|
|
117
117
|
e.setStyleProperty("border-radius", "2px");
|
|
118
118
|
e.setStyleProperty("-webkit-tap-highlight-color", "transparent");
|
|
119
119
|
e.setStyleProperty("overflow", "hidden");
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
122
|
-
let f = this.
|
|
120
|
+
this.r = e;
|
|
121
|
+
this.n.append(e);
|
|
122
|
+
let f = this.m.createElementNS("svg", "http://www.w3.org/2000/svg");
|
|
123
123
|
f.setAttribute("viewBox", "0 0 24 24");
|
|
124
124
|
f.addClass("ig-checkbox-mark");
|
|
125
125
|
f.setStyleProperty("position", "absolute");
|
|
@@ -135,14 +135,14 @@ export let CheckboxView = /*@__PURE__*/ (() => {
|
|
|
135
135
|
f.setStyleProperty("fill", "none");
|
|
136
136
|
f.setStyleProperty("opacity", "0");
|
|
137
137
|
f.setStyleProperty("z-index", "1");
|
|
138
|
-
this.
|
|
138
|
+
this.p = f;
|
|
139
139
|
e.append(f);
|
|
140
|
-
let g = this.
|
|
141
|
-
g.setAttribute("d", this.
|
|
140
|
+
let g = this.m.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
141
|
+
g.setAttribute("d", this.d.bf);
|
|
142
142
|
f.append(g);
|
|
143
|
-
this.
|
|
144
|
-
let h = this.
|
|
145
|
-
let i = this.
|
|
143
|
+
this.o = g;
|
|
144
|
+
let h = this.m.createElement("div");
|
|
145
|
+
let i = this.m.getSubRenderer(h);
|
|
146
146
|
h.setStyleProperty("position", "absolute");
|
|
147
147
|
h.setStyleProperty("width", "3em");
|
|
148
148
|
h.setStyleProperty("height", "3em");
|
|
@@ -153,12 +153,12 @@ export let CheckboxView = /*@__PURE__*/ (() => {
|
|
|
153
153
|
let j = new XRipple();
|
|
154
154
|
j.provideContainer(i);
|
|
155
155
|
j.q = d;
|
|
156
|
-
let k = this.
|
|
156
|
+
let k = this.m.getExternal(j, this.m.rootWrapper, this.m.getExternal(this.d, null, null));
|
|
157
157
|
j.h = true;
|
|
158
158
|
j.k = true;
|
|
159
|
-
this.
|
|
159
|
+
this.e = j;
|
|
160
160
|
d.append(h);
|
|
161
|
-
let l = this.
|
|
161
|
+
let l = this.m.createElement("span");
|
|
162
162
|
l.addClass("ig-checkbox-label");
|
|
163
163
|
l.setStyleProperty("font-family", "Verdana");
|
|
164
164
|
l.setStyleProperty("font-weight", "400");
|
|
@@ -171,124 +171,133 @@ export let CheckboxView = /*@__PURE__*/ (() => {
|
|
|
171
171
|
l.setStyleProperty("margin-bottom", "0");
|
|
172
172
|
l.setStyleProperty("cursor", "pointer");
|
|
173
173
|
l.setStyleProperty("role", "label");
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this.
|
|
174
|
+
this.q = l;
|
|
175
|
+
this.k.add(l.listen("click", runOn(this, this.w)));
|
|
176
|
+
this.m.append(l);
|
|
177
|
+
this.m.getPortal(l, "ChildContent", (m) => {
|
|
178
178
|
}, true);
|
|
179
|
-
this.
|
|
179
|
+
this.d.cp();
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
this.
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
if (this.
|
|
186
|
-
let a = this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
if (this.
|
|
190
|
-
this.
|
|
181
|
+
w(a) {
|
|
182
|
+
this.d.toggle();
|
|
183
|
+
}
|
|
184
|
+
ak() {
|
|
185
|
+
if (this.j()) {
|
|
186
|
+
let a = this.d.b1;
|
|
187
|
+
this.s.setAttribute("name", this.d.ca);
|
|
188
|
+
this.s.setProperty("value", this.d.a4);
|
|
189
|
+
if (this.d.aa) {
|
|
190
|
+
this.s.setAttribute("tabindex", this.d.az.toString());
|
|
191
191
|
}
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
if (this.
|
|
197
|
-
this.
|
|
192
|
+
this.s.setProperty("disabled", this.d.disabled);
|
|
193
|
+
this.s.setProperty("indeterminate", this.d.indeterminate);
|
|
194
|
+
this.s.setProperty("checked", this.d.checked);
|
|
195
|
+
this.s.setProperty("required", this.d.ay);
|
|
196
|
+
if (this.d.indeterminate) {
|
|
197
|
+
this.s.setAttribute("aria-checked", "mixed");
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
|
-
this.
|
|
200
|
+
this.s.setAttribute("aria-checked", this.d.checked ? "true" : "false");
|
|
201
201
|
}
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
202
|
+
this.s.setAttribute("aria-labelledby", this.d.bn);
|
|
203
|
+
this.s.setAttribute("aria-label", this.d.bm);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
return new Size(1, this.
|
|
206
|
+
am() {
|
|
207
|
+
return new Size(1, this.r.width(), this.r.height());
|
|
208
208
|
}
|
|
209
|
-
|
|
210
|
-
this.
|
|
209
|
+
a() {
|
|
210
|
+
let rect_ = this.r.getNativeElement().getBoundingClientRect();
|
|
211
|
+
let a = (rect_.top);
|
|
212
|
+
let b = (rect_.left);
|
|
213
|
+
let c = new Array(2);
|
|
214
|
+
c[0] = a;
|
|
215
|
+
c[1] = b;
|
|
216
|
+
return c;
|
|
211
217
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
aj() {
|
|
219
|
+
this.o.setAttribute("d", this.d.bf);
|
|
220
|
+
}
|
|
221
|
+
ah() {
|
|
222
|
+
if (this.j()) {
|
|
223
|
+
let a = this.d.b1;
|
|
224
|
+
this.s.setAttribute("id", a);
|
|
225
|
+
this.r.setAttribute("for", a);
|
|
217
226
|
}
|
|
218
227
|
}
|
|
219
|
-
|
|
220
|
-
this.
|
|
228
|
+
x(a) {
|
|
229
|
+
this.d.focused = false;
|
|
221
230
|
}
|
|
222
|
-
|
|
223
|
-
this.
|
|
231
|
+
aa(a) {
|
|
232
|
+
this.d.focused = true;
|
|
224
233
|
}
|
|
225
|
-
|
|
234
|
+
z(a) {
|
|
226
235
|
a.stopPropagation();
|
|
227
|
-
if (this.
|
|
228
|
-
let native_ = this.
|
|
236
|
+
if (this.i()) {
|
|
237
|
+
let native_ = this.s.getNativeElement();
|
|
229
238
|
native_.blur();
|
|
230
239
|
}
|
|
231
|
-
this.
|
|
240
|
+
this.d.toggle();
|
|
232
241
|
}
|
|
233
|
-
|
|
242
|
+
i() {
|
|
234
243
|
return false;
|
|
235
244
|
}
|
|
236
|
-
|
|
245
|
+
y(a) {
|
|
237
246
|
a.stopPropagation();
|
|
238
247
|
}
|
|
239
|
-
|
|
248
|
+
ab() {
|
|
240
249
|
if (KeyFrameAnimationFactory.h == null) {
|
|
241
|
-
KeyFrameAnimationFactory.h = this.
|
|
250
|
+
KeyFrameAnimationFactory.h = this.m;
|
|
242
251
|
}
|
|
243
252
|
}
|
|
244
|
-
a(a) {
|
|
245
|
-
return new AnimationKeyFrameEffect(0, this.q, 0, null, a);
|
|
246
|
-
}
|
|
247
253
|
b(a) {
|
|
248
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
254
|
+
return new AnimationKeyFrameEffect(0, this.r, 0, null, a);
|
|
249
255
|
}
|
|
250
|
-
|
|
256
|
+
c(a) {
|
|
257
|
+
return new AnimationKeyFrameEffect(0, this.p, 0, null, a);
|
|
258
|
+
}
|
|
259
|
+
ac(a) {
|
|
260
|
+
}
|
|
261
|
+
get u() {
|
|
262
|
+
return this.r;
|
|
251
263
|
}
|
|
252
264
|
get t() {
|
|
253
|
-
return this.
|
|
265
|
+
return this.r;
|
|
254
266
|
}
|
|
255
|
-
get
|
|
256
|
-
return this.
|
|
267
|
+
get f() {
|
|
268
|
+
return this.e;
|
|
257
269
|
}
|
|
258
|
-
get
|
|
259
|
-
return this.
|
|
270
|
+
get v() {
|
|
271
|
+
return this.p;
|
|
260
272
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
this.
|
|
271
|
-
|
|
272
|
-
ae() {
|
|
273
|
-
this.g = false;
|
|
274
|
-
for (let a of fromEnum(this.j)) {
|
|
273
|
+
ad() {
|
|
274
|
+
this.h = true;
|
|
275
|
+
this.k.add(this.s.listen("change", runOn(this, this.y)));
|
|
276
|
+
this.k.add(this.s.listen("click", runOn(this, this.z)));
|
|
277
|
+
this.k.add(this.s.listen("focus", runOn(this, this.aa)));
|
|
278
|
+
this.k.add(this.s.listen("blur", runOn(this, this.x)));
|
|
279
|
+
this.k.add(this.q.listen("click", runOn(this, this.w)));
|
|
280
|
+
}
|
|
281
|
+
af() {
|
|
282
|
+
this.h = false;
|
|
283
|
+
for (let a of fromEnum(this.k)) {
|
|
275
284
|
a();
|
|
276
285
|
}
|
|
277
|
-
this.
|
|
286
|
+
this.k.clear();
|
|
278
287
|
}
|
|
279
|
-
|
|
280
|
-
let model_ = this.
|
|
288
|
+
ai() {
|
|
289
|
+
let model_ = this.d;
|
|
281
290
|
if (model_.externalObject && model_.externalObject.refreshDefaults) {
|
|
282
291
|
model_.externalObject.refreshDefaults();
|
|
283
292
|
}
|
|
284
293
|
;
|
|
285
294
|
}
|
|
286
|
-
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
295
|
+
al(a, b) {
|
|
296
|
+
this.e.ax = a;
|
|
297
|
+
this.e.aw = b;
|
|
289
298
|
}
|
|
290
|
-
|
|
291
|
-
let a = this.
|
|
299
|
+
l() {
|
|
300
|
+
let a = this.r.getStyleProperty("border-top-width");
|
|
292
301
|
a = stringReplace(a, "px", "");
|
|
293
302
|
return parseFloat(a);
|
|
294
303
|
}
|
|
@@ -357,9 +366,9 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
357
366
|
this.ba = this.a8 + "-label";
|
|
358
367
|
this.a7 = this.ba;
|
|
359
368
|
let a = new CheckboxView();
|
|
360
|
-
a.
|
|
369
|
+
a.d = this;
|
|
361
370
|
this.view = a;
|
|
362
|
-
this.view.
|
|
371
|
+
this.view.ag();
|
|
363
372
|
}
|
|
364
373
|
get view() {
|
|
365
374
|
return this._view;
|
|
@@ -454,7 +463,7 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
454
463
|
this.ct();
|
|
455
464
|
break;
|
|
456
465
|
case "ActualCheckPath":
|
|
457
|
-
this.view.
|
|
466
|
+
this.view.aj();
|
|
458
467
|
break;
|
|
459
468
|
case "IsChecked":
|
|
460
469
|
if (!this.s) {
|
|
@@ -474,16 +483,16 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
474
483
|
}
|
|
475
484
|
break;
|
|
476
485
|
case "DisableRipple":
|
|
477
|
-
this.view.
|
|
486
|
+
this.view.f.i = this.y;
|
|
478
487
|
break;
|
|
479
488
|
case "InputId":
|
|
480
|
-
this.view.
|
|
489
|
+
this.view.ah();
|
|
481
490
|
break;
|
|
482
491
|
}
|
|
483
492
|
}
|
|
484
493
|
ct() {
|
|
485
|
-
let a = this.view.
|
|
486
|
-
let b = this.view.
|
|
494
|
+
let a = this.view.u;
|
|
495
|
+
let b = this.view.t;
|
|
487
496
|
if (a == null || b == null) {
|
|
488
497
|
return;
|
|
489
498
|
}
|
|
@@ -502,7 +511,7 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
502
511
|
}
|
|
503
512
|
}
|
|
504
513
|
cw() {
|
|
505
|
-
let a = this.view.
|
|
514
|
+
let a = this.view.v;
|
|
506
515
|
if (a == null) {
|
|
507
516
|
return;
|
|
508
517
|
}
|
|
@@ -857,10 +866,10 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
857
866
|
cp() {
|
|
858
867
|
this.ck();
|
|
859
868
|
if (this.checked) {
|
|
860
|
-
this.view.
|
|
869
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.c8, 0.1));
|
|
861
870
|
}
|
|
862
871
|
else {
|
|
863
|
-
this.view.
|
|
872
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.dc, 0.1));
|
|
864
873
|
}
|
|
865
874
|
}
|
|
866
875
|
get a() {
|
|
@@ -870,15 +879,15 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
870
879
|
return a;
|
|
871
880
|
}
|
|
872
881
|
ck() {
|
|
873
|
-
this.view.
|
|
882
|
+
this.view.ab();
|
|
874
883
|
let a = false;
|
|
875
884
|
if (this.o == null) {
|
|
876
885
|
if (!a) {
|
|
877
886
|
a = true;
|
|
878
|
-
this.view.
|
|
887
|
+
this.view.ai();
|
|
879
888
|
}
|
|
880
|
-
this.o = KeyFrameAnimationFactory.f.c(this.view.
|
|
881
|
-
this.p = KeyFrameAnimationFactory.f.c(this.view.
|
|
889
|
+
this.o = KeyFrameAnimationFactory.f.c(this.view.b(this.a).m(new AnimationKeyFrameProperty(2, this.db), new AnimationKeyFrameProperty(3, this.dc)).m(new AnimationKeyFrameProperty(2, this.c8), new AnimationKeyFrameProperty(3, this.c9)));
|
|
890
|
+
this.p = KeyFrameAnimationFactory.f.c(this.view.c(this.a).m(new AnimationKeyFrameProperty(19, 24), new AnimationKeyFrameProperty(1, 0)).m(new AnimationKeyFrameProperty(19, 0), new AnimationKeyFrameProperty(1, 1)));
|
|
882
891
|
}
|
|
883
892
|
}
|
|
884
893
|
toggle() {
|
|
@@ -915,21 +924,21 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
915
924
|
c = -1;
|
|
916
925
|
}
|
|
917
926
|
if (b) {
|
|
918
|
-
this.view.
|
|
927
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.c8, 0.1));
|
|
919
928
|
}
|
|
920
929
|
else {
|
|
921
|
-
this.view.
|
|
930
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.dc, 0.1));
|
|
922
931
|
}
|
|
923
932
|
if (!this.indeterminate) {
|
|
924
|
-
NativeUI.af(this.view.
|
|
933
|
+
NativeUI.af(this.view.v, null);
|
|
925
934
|
}
|
|
926
935
|
if (this.z || this.indeterminate || a) {
|
|
927
|
-
let d = this.view.
|
|
928
|
-
let e = this.view.
|
|
929
|
-
let f = this.view.
|
|
936
|
+
let d = this.view.u;
|
|
937
|
+
let e = this.view.t;
|
|
938
|
+
let f = this.view.v;
|
|
930
939
|
if (this.indeterminate) {
|
|
931
940
|
let g = new TransformGroup();
|
|
932
|
-
let h = this.view.
|
|
941
|
+
let h = this.view.am();
|
|
933
942
|
g.j.add(((() => {
|
|
934
943
|
let $ret = new RotateTransform();
|
|
935
944
|
$ret.j = 45;
|
|
@@ -937,7 +946,7 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
937
946
|
})()));
|
|
938
947
|
g.j.add(((() => {
|
|
939
948
|
let $ret = new TranslateTransform();
|
|
940
|
-
$ret.j = -this.view.
|
|
949
|
+
$ret.j = -this.view.l();
|
|
941
950
|
return $ret;
|
|
942
951
|
})()));
|
|
943
952
|
NativeUI.m(d, this.c8);
|
|
@@ -996,10 +1005,10 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
996
1005
|
}
|
|
997
1006
|
}
|
|
998
1007
|
onDetachedFromUI() {
|
|
999
|
-
this.view.
|
|
1008
|
+
this.view.af();
|
|
1000
1009
|
}
|
|
1001
1010
|
onAttachedToUI() {
|
|
1002
|
-
this.view.
|
|
1011
|
+
this.view.ad();
|
|
1003
1012
|
}
|
|
1004
1013
|
onContentReady() {
|
|
1005
1014
|
if (this.indeterminate) {
|
|
@@ -1007,17 +1016,23 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
1007
1016
|
}
|
|
1008
1017
|
}
|
|
1009
1018
|
af() {
|
|
1010
|
-
return this.view.
|
|
1019
|
+
return this.view.j();
|
|
1011
1020
|
}
|
|
1012
1021
|
a3() {
|
|
1013
1022
|
return this.b();
|
|
1014
1023
|
}
|
|
1015
1024
|
by() {
|
|
1016
1025
|
let a = this.b();
|
|
1017
|
-
return a.
|
|
1026
|
+
return a.w();
|
|
1018
1027
|
}
|
|
1019
1028
|
b() {
|
|
1020
1029
|
let a = new CheckboxVisualModelExport();
|
|
1030
|
+
let b = this.view.am();
|
|
1031
|
+
let c = this.view.a();
|
|
1032
|
+
a.u = b.width;
|
|
1033
|
+
a.q = b.height;
|
|
1034
|
+
a.t = c[0];
|
|
1035
|
+
a.r = c[1];
|
|
1021
1036
|
a.f = this.n;
|
|
1022
1037
|
a.d = AppearanceHelper.a(this.db);
|
|
1023
1038
|
a.c = AppearanceHelper.a(this.da);
|
|
@@ -1026,11 +1041,11 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
1026
1041
|
a.o = this.aq;
|
|
1027
1042
|
a.l = this.an;
|
|
1028
1043
|
a.p = this.ar;
|
|
1029
|
-
a.
|
|
1044
|
+
a.s = this.av;
|
|
1030
1045
|
a.n = this.ap;
|
|
1031
1046
|
a.m = this.ao;
|
|
1032
1047
|
a.a = AppearanceHelper.a(this.c8);
|
|
1033
|
-
a.
|
|
1048
|
+
a.v = this.a4;
|
|
1034
1049
|
a.j = this.focused;
|
|
1035
1050
|
a.g = this.y;
|
|
1036
1051
|
a.h = this.checked;
|
|
@@ -1039,7 +1054,7 @@ export let XCheckbox = /*@__PURE__*/ (() => {
|
|
|
1039
1054
|
return a;
|
|
1040
1055
|
}
|
|
1041
1056
|
provideContainer(a) {
|
|
1042
|
-
this.view.
|
|
1057
|
+
this.view.ae(a);
|
|
1043
1058
|
}
|
|
1044
1059
|
}
|
|
1045
1060
|
XCheckbox.$t = markType(XCheckbox, 'XCheckbox', Base.$, [INotifyPropertyChanged_$type]);
|
|
@@ -13,6 +13,10 @@ export let CheckboxVisualModelExport = /*@__PURE__*/ (() => {
|
|
|
13
13
|
class CheckboxVisualModelExport extends Base {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
|
+
this.r = 0;
|
|
17
|
+
this.t = 0;
|
|
18
|
+
this.u = 0;
|
|
19
|
+
this.q = 0;
|
|
16
20
|
this.f = 0;
|
|
17
21
|
this.d = null;
|
|
18
22
|
this.c = null;
|
|
@@ -21,20 +25,24 @@ export let CheckboxVisualModelExport = /*@__PURE__*/ (() => {
|
|
|
21
25
|
this.o = 0;
|
|
22
26
|
this.l = 0;
|
|
23
27
|
this.p = 0;
|
|
24
|
-
this.
|
|
28
|
+
this.s = 0;
|
|
25
29
|
this.n = 0;
|
|
26
30
|
this.m = 0;
|
|
27
31
|
this.a = null;
|
|
28
|
-
this.
|
|
32
|
+
this.v = null;
|
|
29
33
|
this.j = false;
|
|
30
34
|
this.g = false;
|
|
31
35
|
this.h = false;
|
|
32
36
|
this.k = false;
|
|
33
37
|
this.i = false;
|
|
34
38
|
}
|
|
35
|
-
|
|
39
|
+
w() {
|
|
36
40
|
let a = new StringBuilder(0);
|
|
37
41
|
a.l("{");
|
|
42
|
+
a.l("left : " + this.r + ", ");
|
|
43
|
+
a.l("top : " + this.t + ", ");
|
|
44
|
+
a.l("height : " + this.q + ", ");
|
|
45
|
+
a.l("width : " + this.u + ", ");
|
|
38
46
|
a.l("baseTheme : " + this.f + ", ");
|
|
39
47
|
a.l("actualUncheckedBackgroundColor : " + this.d.serialize() + ", ");
|
|
40
48
|
a.l("actualTickColor : " + this.c + ", ");
|
|
@@ -42,11 +50,11 @@ export let CheckboxVisualModelExport = /*@__PURE__*/ (() => {
|
|
|
42
50
|
a.l("actualCheckedBorderColor : " + this.b.serialize() + ", ");
|
|
43
51
|
a.l("borderWidth : " + this.o + ", ");
|
|
44
52
|
a.l("actualBorderWidth : " + this.l + ", ");
|
|
45
|
-
a.l("tickStrokeWidth : " + this.
|
|
53
|
+
a.l("tickStrokeWidth : " + this.s + ", ");
|
|
46
54
|
a.l("actualTickStrokeWidth : " + this.n + ", ");
|
|
47
55
|
a.l("actualCheckedBackgroundColor : " + this.a.serialize() + ", ");
|
|
48
|
-
if (this.
|
|
49
|
-
a.l("value : \"" + this.
|
|
56
|
+
if (this.v != null) {
|
|
57
|
+
a.l("value : \"" + this.v.toString() + "\", ");
|
|
50
58
|
}
|
|
51
59
|
a.l("isFocused : " + this.j + ", ");
|
|
52
60
|
a.l("disableRipple : " + this.g + ", ");
|