igniteui-angular-inputs 20.1.0 → 20.2.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,45 @@
|
|
|
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 { __extends } from "tslib";
|
|
8
|
+
import { Base, enumGetBox, markType } from "igniteui-angular-core";
|
|
9
|
+
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
10
|
+
import { StringBuilder } from "igniteui-angular-core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
var CheckboxListVisualModelExport = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
15
|
+
__extends(CheckboxListVisualModelExport, _super);
|
|
16
|
+
function CheckboxListVisualModelExport() {
|
|
17
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
18
|
+
_this.f = 0;
|
|
19
|
+
_this.g = 0;
|
|
20
|
+
_this.h = 0;
|
|
21
|
+
_this.e = 0;
|
|
22
|
+
_this.c = 0;
|
|
23
|
+
_this.b = null;
|
|
24
|
+
_this.a = null;
|
|
25
|
+
_this.d = 0;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
CheckboxListVisualModelExport.prototype.i = function () {
|
|
29
|
+
var a = new StringBuilder(0);
|
|
30
|
+
a.l("{");
|
|
31
|
+
a.l("left : " + this.f + ", ");
|
|
32
|
+
a.l("top : " + this.g + ", ");
|
|
33
|
+
a.l("height : " + this.e + ", ");
|
|
34
|
+
a.l("width : " + this.h + ", ");
|
|
35
|
+
a.l("baseTheme : " + enumGetBox(BaseControlTheme_$type, this.c) + ", ");
|
|
36
|
+
a.l("backgroundColor : " + this.b.serialize() + ", ");
|
|
37
|
+
a.l("actualSelectAllCaptionTextColor : " + this.a.serialize() + ", ");
|
|
38
|
+
a.l("actualRowHeight : " + this.d);
|
|
39
|
+
a.l("}");
|
|
40
|
+
return a.toString();
|
|
41
|
+
};
|
|
42
|
+
CheckboxListVisualModelExport.$t = markType(CheckboxListVisualModelExport, 'CheckboxListVisualModelExport');
|
|
43
|
+
return CheckboxListVisualModelExport;
|
|
44
|
+
}(Base));
|
|
45
|
+
export { CheckboxListVisualModelExport };
|
|
@@ -37,30 +37,30 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
37
37
|
__extends(CheckboxView, _super);
|
|
38
38
|
function CheckboxView() {
|
|
39
39
|
var _this = _super.call(this) || this;
|
|
40
|
-
_this.
|
|
41
|
-
_this.l = null;
|
|
42
|
-
_this.f = null;
|
|
43
|
-
_this.j = new List$1(Delegate_$type, 0);
|
|
44
|
-
_this.g = true;
|
|
45
|
-
_this.r = null;
|
|
40
|
+
_this.d = null;
|
|
46
41
|
_this.m = null;
|
|
47
|
-
_this.
|
|
42
|
+
_this.g = null;
|
|
43
|
+
_this.k = new List$1(Delegate_$type, 0);
|
|
44
|
+
_this.h = true;
|
|
45
|
+
_this.s = null;
|
|
48
46
|
_this.n = null;
|
|
47
|
+
_this.r = null;
|
|
49
48
|
_this.o = null;
|
|
50
|
-
_this.d = null;
|
|
51
49
|
_this.p = null;
|
|
50
|
+
_this.e = null;
|
|
51
|
+
_this.q = null;
|
|
52
52
|
return _this;
|
|
53
53
|
}
|
|
54
|
-
CheckboxView.prototype.
|
|
54
|
+
CheckboxView.prototype.ag = function () {
|
|
55
55
|
};
|
|
56
|
-
CheckboxView.prototype.
|
|
56
|
+
CheckboxView.prototype.j = function () {
|
|
57
57
|
return true;
|
|
58
58
|
};
|
|
59
|
-
CheckboxView.prototype.
|
|
59
|
+
CheckboxView.prototype.ae = function (a) {
|
|
60
60
|
var e_1, _a;
|
|
61
61
|
if (a == null) {
|
|
62
62
|
try {
|
|
63
|
-
for (var _b = __values(fromEnum(this.
|
|
63
|
+
for (var _b = __values(fromEnum(this.k)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
64
64
|
var b = _c.value;
|
|
65
65
|
b();
|
|
66
66
|
}
|
|
@@ -78,46 +78,46 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
78
78
|
throw e_1.error;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
this.
|
|
81
|
+
this.k.clear();
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
var c = this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
var d = this.
|
|
84
|
+
this.m = a;
|
|
85
|
+
this.m.rootWrapper.setStyleProperty("display", "flex");
|
|
86
|
+
this.m.rootWrapper.setStyleProperty("flex-direction", "row");
|
|
87
|
+
this.m.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
|
|
88
|
+
this.m.rootWrapper.setStyleProperty("align-items", "center");
|
|
89
|
+
var c = this.m.createElement("input");
|
|
90
|
+
this.s = c;
|
|
91
|
+
this.s.addClass("ig-native-checkbox");
|
|
92
|
+
this.s.setStyleProperty("position", "absolute");
|
|
93
|
+
this.s.setStyleProperty("width", "1px");
|
|
94
|
+
this.s.setStyleProperty("height", "1px");
|
|
95
|
+
this.s.setStyleProperty("margin", "-1px");
|
|
96
|
+
this.s.setStyleProperty("border", "none");
|
|
97
|
+
this.s.setStyleProperty("clip", "rect(0, 0, 0, 0)");
|
|
98
|
+
this.s.setStyleProperty("outline", "0");
|
|
99
|
+
this.s.setStyleProperty("pointer-events", "none");
|
|
100
|
+
this.s.setStyleProperty("overflow", "hidden");
|
|
101
|
+
this.s.setStyleProperty("-webkit-appearance", "none");
|
|
102
|
+
this.s.setStyleProperty("-moz-appearance", "none");
|
|
103
|
+
this.s.setStyleProperty("appearance", "none");
|
|
104
|
+
this.s.setAttribute("type", "checkbox");
|
|
105
|
+
this.s.setAttribute("id", this.d.b1);
|
|
106
|
+
this.ak();
|
|
107
|
+
this.k.add(c.listen("change", runOn(this, this.y)));
|
|
108
|
+
this.k.add(c.listen("click", runOn(this, this.z)));
|
|
109
|
+
this.k.add(c.listen("focus", runOn(this, this.aa)));
|
|
110
|
+
this.k.add(c.listen("blur", runOn(this, this.x)));
|
|
111
|
+
this.m.append(c);
|
|
112
|
+
var d = this.m.createElement("div");
|
|
113
113
|
d.addClass("ig-checkbox-box");
|
|
114
114
|
d.setStyleProperty("width", "1.25em");
|
|
115
115
|
d.setStyleProperty("height", "1.25em");
|
|
116
116
|
d.setStyleProperty("position", "relative");
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
var e = this.
|
|
120
|
-
e.setAttribute("for", this.
|
|
117
|
+
this.n = d;
|
|
118
|
+
this.m.append(d);
|
|
119
|
+
var e = this.m.createElement("label");
|
|
120
|
+
e.setAttribute("for", this.d.b1);
|
|
121
121
|
e.addClass("ig-checkbox-composite");
|
|
122
122
|
e.setStyleProperty("box-sizing", "border-box");
|
|
123
123
|
e.setStyleProperty("position", "relative");
|
|
@@ -136,9 +136,9 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
136
136
|
e.setStyleProperty("border-radius", "2px");
|
|
137
137
|
e.setStyleProperty("-webkit-tap-highlight-color", "transparent");
|
|
138
138
|
e.setStyleProperty("overflow", "hidden");
|
|
139
|
-
this.
|
|
140
|
-
this.
|
|
141
|
-
var f = this.
|
|
139
|
+
this.r = e;
|
|
140
|
+
this.n.append(e);
|
|
141
|
+
var f = this.m.createElementNS("svg", "http://www.w3.org/2000/svg");
|
|
142
142
|
f.setAttribute("viewBox", "0 0 24 24");
|
|
143
143
|
f.addClass("ig-checkbox-mark");
|
|
144
144
|
f.setStyleProperty("position", "absolute");
|
|
@@ -154,14 +154,14 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
154
154
|
f.setStyleProperty("fill", "none");
|
|
155
155
|
f.setStyleProperty("opacity", "0");
|
|
156
156
|
f.setStyleProperty("z-index", "1");
|
|
157
|
-
this.
|
|
157
|
+
this.p = f;
|
|
158
158
|
e.append(f);
|
|
159
|
-
var g = this.
|
|
160
|
-
g.setAttribute("d", this.
|
|
159
|
+
var g = this.m.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
160
|
+
g.setAttribute("d", this.d.bf);
|
|
161
161
|
f.append(g);
|
|
162
|
-
this.
|
|
163
|
-
var h = this.
|
|
164
|
-
var i = this.
|
|
162
|
+
this.o = g;
|
|
163
|
+
var h = this.m.createElement("div");
|
|
164
|
+
var i = this.m.getSubRenderer(h);
|
|
165
165
|
h.setStyleProperty("position", "absolute");
|
|
166
166
|
h.setStyleProperty("width", "3em");
|
|
167
167
|
h.setStyleProperty("height", "3em");
|
|
@@ -172,12 +172,12 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
172
172
|
var j = new XRipple();
|
|
173
173
|
j.provideContainer(i);
|
|
174
174
|
j.q = d;
|
|
175
|
-
var k = this.
|
|
175
|
+
var k = this.m.getExternal(j, this.m.rootWrapper, this.m.getExternal(this.d, null, null));
|
|
176
176
|
j.h = true;
|
|
177
177
|
j.k = true;
|
|
178
|
-
this.
|
|
178
|
+
this.e = j;
|
|
179
179
|
d.append(h);
|
|
180
|
-
var l = this.
|
|
180
|
+
var l = this.m.createElement("span");
|
|
181
181
|
l.addClass("ig-checkbox-label");
|
|
182
182
|
l.setStyleProperty("font-family", "Verdana");
|
|
183
183
|
l.setStyleProperty("font-weight", "400");
|
|
@@ -190,125 +190,134 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
190
190
|
l.setStyleProperty("margin-bottom", "0");
|
|
191
191
|
l.setStyleProperty("cursor", "pointer");
|
|
192
192
|
l.setStyleProperty("role", "label");
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
193
|
+
this.q = l;
|
|
194
|
+
this.k.add(l.listen("click", runOn(this, this.w)));
|
|
195
|
+
this.m.append(l);
|
|
196
|
+
this.m.getPortal(l, "ChildContent", function (m) {
|
|
197
197
|
}, true);
|
|
198
|
-
this.
|
|
198
|
+
this.d.cp();
|
|
199
199
|
};
|
|
200
|
-
CheckboxView.prototype.
|
|
201
|
-
this.
|
|
200
|
+
CheckboxView.prototype.w = function (a) {
|
|
201
|
+
this.d.toggle();
|
|
202
202
|
};
|
|
203
|
-
CheckboxView.prototype.
|
|
204
|
-
if (this.
|
|
205
|
-
var a = this.
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
208
|
-
if (this.
|
|
209
|
-
this.
|
|
203
|
+
CheckboxView.prototype.ak = function () {
|
|
204
|
+
if (this.j()) {
|
|
205
|
+
var a = this.d.b1;
|
|
206
|
+
this.s.setAttribute("name", this.d.ca);
|
|
207
|
+
this.s.setProperty("value", this.d.a4);
|
|
208
|
+
if (this.d.aa) {
|
|
209
|
+
this.s.setAttribute("tabindex", this.d.az.toString());
|
|
210
210
|
}
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
214
|
-
this.
|
|
215
|
-
if (this.
|
|
216
|
-
this.
|
|
211
|
+
this.s.setProperty("disabled", this.d.disabled);
|
|
212
|
+
this.s.setProperty("indeterminate", this.d.indeterminate);
|
|
213
|
+
this.s.setProperty("checked", this.d.checked);
|
|
214
|
+
this.s.setProperty("required", this.d.ay);
|
|
215
|
+
if (this.d.indeterminate) {
|
|
216
|
+
this.s.setAttribute("aria-checked", "mixed");
|
|
217
217
|
}
|
|
218
218
|
else {
|
|
219
|
-
this.
|
|
219
|
+
this.s.setAttribute("aria-checked", this.d.checked ? "true" : "false");
|
|
220
220
|
}
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
221
|
+
this.s.setAttribute("aria-labelledby", this.d.bn);
|
|
222
|
+
this.s.setAttribute("aria-label", this.d.bm);
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
CheckboxView.prototype.
|
|
226
|
-
return new Size(1, this.
|
|
225
|
+
CheckboxView.prototype.am = function () {
|
|
226
|
+
return new Size(1, this.r.width(), this.r.height());
|
|
227
227
|
};
|
|
228
|
-
CheckboxView.prototype.
|
|
229
|
-
this.
|
|
228
|
+
CheckboxView.prototype.a = function () {
|
|
229
|
+
var rect_ = this.r.getNativeElement().getBoundingClientRect();
|
|
230
|
+
var a = (rect_.top);
|
|
231
|
+
var b = (rect_.left);
|
|
232
|
+
var c = new Array(2);
|
|
233
|
+
c[0] = a;
|
|
234
|
+
c[1] = b;
|
|
235
|
+
return c;
|
|
230
236
|
};
|
|
231
|
-
CheckboxView.prototype.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
237
|
+
CheckboxView.prototype.aj = function () {
|
|
238
|
+
this.o.setAttribute("d", this.d.bf);
|
|
239
|
+
};
|
|
240
|
+
CheckboxView.prototype.ah = function () {
|
|
241
|
+
if (this.j()) {
|
|
242
|
+
var a = this.d.b1;
|
|
243
|
+
this.s.setAttribute("id", a);
|
|
244
|
+
this.r.setAttribute("for", a);
|
|
236
245
|
}
|
|
237
246
|
};
|
|
238
|
-
CheckboxView.prototype.
|
|
239
|
-
this.
|
|
247
|
+
CheckboxView.prototype.x = function (a) {
|
|
248
|
+
this.d.focused = false;
|
|
240
249
|
};
|
|
241
|
-
CheckboxView.prototype.
|
|
242
|
-
this.
|
|
250
|
+
CheckboxView.prototype.aa = function (a) {
|
|
251
|
+
this.d.focused = true;
|
|
243
252
|
};
|
|
244
|
-
CheckboxView.prototype.
|
|
253
|
+
CheckboxView.prototype.z = function (a) {
|
|
245
254
|
a.stopPropagation();
|
|
246
|
-
if (this.
|
|
247
|
-
var native_ = this.
|
|
255
|
+
if (this.i()) {
|
|
256
|
+
var native_ = this.s.getNativeElement();
|
|
248
257
|
native_.blur();
|
|
249
258
|
}
|
|
250
|
-
this.
|
|
259
|
+
this.d.toggle();
|
|
251
260
|
};
|
|
252
|
-
CheckboxView.prototype.
|
|
261
|
+
CheckboxView.prototype.i = function () {
|
|
253
262
|
return false;
|
|
254
263
|
};
|
|
255
|
-
CheckboxView.prototype.
|
|
264
|
+
CheckboxView.prototype.y = function (a) {
|
|
256
265
|
a.stopPropagation();
|
|
257
266
|
};
|
|
258
|
-
CheckboxView.prototype.
|
|
267
|
+
CheckboxView.prototype.ab = function () {
|
|
259
268
|
if (KeyFrameAnimationFactory.h == null) {
|
|
260
|
-
KeyFrameAnimationFactory.h = this.
|
|
269
|
+
KeyFrameAnimationFactory.h = this.m;
|
|
261
270
|
}
|
|
262
271
|
};
|
|
263
|
-
CheckboxView.prototype.a = function (a) {
|
|
264
|
-
return new AnimationKeyFrameEffect(0, this.q, 0, null, a);
|
|
265
|
-
};
|
|
266
272
|
CheckboxView.prototype.b = function (a) {
|
|
267
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
273
|
+
return new AnimationKeyFrameEffect(0, this.r, 0, null, a);
|
|
268
274
|
};
|
|
269
|
-
CheckboxView.prototype.
|
|
275
|
+
CheckboxView.prototype.c = function (a) {
|
|
276
|
+
return new AnimationKeyFrameEffect(0, this.p, 0, null, a);
|
|
270
277
|
};
|
|
271
|
-
|
|
278
|
+
CheckboxView.prototype.ac = function (a) {
|
|
279
|
+
};
|
|
280
|
+
Object.defineProperty(CheckboxView.prototype, "u", {
|
|
272
281
|
get: function () {
|
|
273
|
-
return this.
|
|
282
|
+
return this.r;
|
|
274
283
|
},
|
|
275
284
|
enumerable: false,
|
|
276
285
|
configurable: true
|
|
277
286
|
});
|
|
278
|
-
Object.defineProperty(CheckboxView.prototype, "
|
|
287
|
+
Object.defineProperty(CheckboxView.prototype, "t", {
|
|
279
288
|
get: function () {
|
|
280
|
-
return this.
|
|
289
|
+
return this.r;
|
|
281
290
|
},
|
|
282
291
|
enumerable: false,
|
|
283
292
|
configurable: true
|
|
284
293
|
});
|
|
285
|
-
Object.defineProperty(CheckboxView.prototype, "
|
|
294
|
+
Object.defineProperty(CheckboxView.prototype, "f", {
|
|
286
295
|
get: function () {
|
|
287
|
-
return this.
|
|
296
|
+
return this.e;
|
|
288
297
|
},
|
|
289
298
|
enumerable: false,
|
|
290
299
|
configurable: true
|
|
291
300
|
});
|
|
292
|
-
Object.defineProperty(CheckboxView.prototype, "
|
|
301
|
+
Object.defineProperty(CheckboxView.prototype, "v", {
|
|
293
302
|
get: function () {
|
|
294
|
-
return this.
|
|
303
|
+
return this.p;
|
|
295
304
|
},
|
|
296
305
|
enumerable: false,
|
|
297
306
|
configurable: true
|
|
298
307
|
});
|
|
299
|
-
CheckboxView.prototype.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
308
|
+
CheckboxView.prototype.ad = function () {
|
|
309
|
+
this.h = true;
|
|
310
|
+
this.k.add(this.s.listen("change", runOn(this, this.y)));
|
|
311
|
+
this.k.add(this.s.listen("click", runOn(this, this.z)));
|
|
312
|
+
this.k.add(this.s.listen("focus", runOn(this, this.aa)));
|
|
313
|
+
this.k.add(this.s.listen("blur", runOn(this, this.x)));
|
|
314
|
+
this.k.add(this.q.listen("click", runOn(this, this.w)));
|
|
306
315
|
};
|
|
307
|
-
CheckboxView.prototype.
|
|
316
|
+
CheckboxView.prototype.af = function () {
|
|
308
317
|
var e_2, _a;
|
|
309
|
-
this.
|
|
318
|
+
this.h = false;
|
|
310
319
|
try {
|
|
311
|
-
for (var _b = __values(fromEnum(this.
|
|
320
|
+
for (var _b = __values(fromEnum(this.k)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
312
321
|
var a = _c.value;
|
|
313
322
|
a();
|
|
314
323
|
}
|
|
@@ -326,21 +335,21 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
326
335
|
throw e_2.error;
|
|
327
336
|
}
|
|
328
337
|
}
|
|
329
|
-
this.
|
|
338
|
+
this.k.clear();
|
|
330
339
|
};
|
|
331
|
-
CheckboxView.prototype.
|
|
332
|
-
var model_ = this.
|
|
340
|
+
CheckboxView.prototype.ai = function () {
|
|
341
|
+
var model_ = this.d;
|
|
333
342
|
if (model_.externalObject && model_.externalObject.refreshDefaults) {
|
|
334
343
|
model_.externalObject.refreshDefaults();
|
|
335
344
|
}
|
|
336
345
|
;
|
|
337
346
|
};
|
|
338
|
-
CheckboxView.prototype.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
347
|
+
CheckboxView.prototype.al = function (a, b) {
|
|
348
|
+
this.e.ax = a;
|
|
349
|
+
this.e.aw = b;
|
|
341
350
|
};
|
|
342
|
-
CheckboxView.prototype.
|
|
343
|
-
var a = this.
|
|
351
|
+
CheckboxView.prototype.l = function () {
|
|
352
|
+
var a = this.r.getStyleProperty("border-top-width");
|
|
344
353
|
a = stringReplace(a, "px", "");
|
|
345
354
|
return parseFloat(a);
|
|
346
355
|
};
|
|
@@ -409,9 +418,9 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
409
418
|
_this.ba = _this.a8 + "-label";
|
|
410
419
|
_this.a7 = _this.ba;
|
|
411
420
|
var a = new CheckboxView();
|
|
412
|
-
a.
|
|
421
|
+
a.d = _this;
|
|
413
422
|
_this.view = a;
|
|
414
|
-
_this.view.
|
|
423
|
+
_this.view.ag();
|
|
415
424
|
return _this;
|
|
416
425
|
}
|
|
417
426
|
Object.defineProperty(XCheckbox.prototype, "view", {
|
|
@@ -515,7 +524,7 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
515
524
|
this.ct();
|
|
516
525
|
break;
|
|
517
526
|
case "ActualCheckPath":
|
|
518
|
-
this.view.
|
|
527
|
+
this.view.aj();
|
|
519
528
|
break;
|
|
520
529
|
case "IsChecked":
|
|
521
530
|
if (!this.s) {
|
|
@@ -535,16 +544,16 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
535
544
|
}
|
|
536
545
|
break;
|
|
537
546
|
case "DisableRipple":
|
|
538
|
-
this.view.
|
|
547
|
+
this.view.f.i = this.y;
|
|
539
548
|
break;
|
|
540
549
|
case "InputId":
|
|
541
|
-
this.view.
|
|
550
|
+
this.view.ah();
|
|
542
551
|
break;
|
|
543
552
|
}
|
|
544
553
|
};
|
|
545
554
|
XCheckbox.prototype.ct = function () {
|
|
546
|
-
var a = this.view.
|
|
547
|
-
var b = this.view.
|
|
555
|
+
var a = this.view.u;
|
|
556
|
+
var b = this.view.t;
|
|
548
557
|
if (a == null || b == null) {
|
|
549
558
|
return;
|
|
550
559
|
}
|
|
@@ -563,7 +572,7 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
563
572
|
}
|
|
564
573
|
};
|
|
565
574
|
XCheckbox.prototype.cw = function () {
|
|
566
|
-
var a = this.view.
|
|
575
|
+
var a = this.view.v;
|
|
567
576
|
if (a == null) {
|
|
568
577
|
return;
|
|
569
578
|
}
|
|
@@ -1054,10 +1063,10 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1054
1063
|
XCheckbox.prototype.cp = function () {
|
|
1055
1064
|
this.ck();
|
|
1056
1065
|
if (this.checked) {
|
|
1057
|
-
this.view.
|
|
1066
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.c8, 0.1));
|
|
1058
1067
|
}
|
|
1059
1068
|
else {
|
|
1060
|
-
this.view.
|
|
1069
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.dc, 0.1));
|
|
1061
1070
|
}
|
|
1062
1071
|
};
|
|
1063
1072
|
Object.defineProperty(XCheckbox.prototype, "a", {
|
|
@@ -1071,15 +1080,15 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1071
1080
|
configurable: true
|
|
1072
1081
|
});
|
|
1073
1082
|
XCheckbox.prototype.ck = function () {
|
|
1074
|
-
this.view.
|
|
1083
|
+
this.view.ab();
|
|
1075
1084
|
var a = false;
|
|
1076
1085
|
if (this.o == null) {
|
|
1077
1086
|
if (!a) {
|
|
1078
1087
|
a = true;
|
|
1079
|
-
this.view.
|
|
1088
|
+
this.view.ai();
|
|
1080
1089
|
}
|
|
1081
|
-
this.o = KeyFrameAnimationFactory.f.c(this.view.
|
|
1082
|
-
this.p = KeyFrameAnimationFactory.f.c(this.view.
|
|
1090
|
+
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)));
|
|
1091
|
+
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)));
|
|
1083
1092
|
}
|
|
1084
1093
|
};
|
|
1085
1094
|
XCheckbox.prototype.toggle = function () {
|
|
@@ -1117,21 +1126,21 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1117
1126
|
c = -1;
|
|
1118
1127
|
}
|
|
1119
1128
|
if (b) {
|
|
1120
|
-
this.view.
|
|
1129
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.c8, 0.1));
|
|
1121
1130
|
}
|
|
1122
1131
|
else {
|
|
1123
|
-
this.view.
|
|
1132
|
+
this.view.al(BrushUtil.s(this.c8, 0.6), BrushUtil.s(this.dc, 0.1));
|
|
1124
1133
|
}
|
|
1125
1134
|
if (!this.indeterminate) {
|
|
1126
|
-
NativeUI.af(this.view.
|
|
1135
|
+
NativeUI.af(this.view.v, null);
|
|
1127
1136
|
}
|
|
1128
1137
|
if (this.z || this.indeterminate || a) {
|
|
1129
|
-
var d = this.view.
|
|
1130
|
-
var e = this.view.
|
|
1131
|
-
var f = this.view.
|
|
1138
|
+
var d = this.view.u;
|
|
1139
|
+
var e = this.view.t;
|
|
1140
|
+
var f = this.view.v;
|
|
1132
1141
|
if (this.indeterminate) {
|
|
1133
1142
|
var g = new TransformGroup();
|
|
1134
|
-
var h = this.view.
|
|
1143
|
+
var h = this.view.am();
|
|
1135
1144
|
g.j.add(((function () {
|
|
1136
1145
|
var $ret = new RotateTransform();
|
|
1137
1146
|
$ret.j = 45;
|
|
@@ -1139,7 +1148,7 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1139
1148
|
})()));
|
|
1140
1149
|
g.j.add(((function () {
|
|
1141
1150
|
var $ret = new TranslateTransform();
|
|
1142
|
-
$ret.j = -_this.view.
|
|
1151
|
+
$ret.j = -_this.view.l();
|
|
1143
1152
|
return $ret;
|
|
1144
1153
|
})()));
|
|
1145
1154
|
NativeUI.m(d, this.c8);
|
|
@@ -1198,10 +1207,10 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1198
1207
|
}
|
|
1199
1208
|
};
|
|
1200
1209
|
XCheckbox.prototype.onDetachedFromUI = function () {
|
|
1201
|
-
this.view.
|
|
1210
|
+
this.view.af();
|
|
1202
1211
|
};
|
|
1203
1212
|
XCheckbox.prototype.onAttachedToUI = function () {
|
|
1204
|
-
this.view.
|
|
1213
|
+
this.view.ad();
|
|
1205
1214
|
};
|
|
1206
1215
|
XCheckbox.prototype.onContentReady = function () {
|
|
1207
1216
|
if (this.indeterminate) {
|
|
@@ -1209,17 +1218,23 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1209
1218
|
}
|
|
1210
1219
|
};
|
|
1211
1220
|
XCheckbox.prototype.af = function () {
|
|
1212
|
-
return this.view.
|
|
1221
|
+
return this.view.j();
|
|
1213
1222
|
};
|
|
1214
1223
|
XCheckbox.prototype.a3 = function () {
|
|
1215
1224
|
return this.b();
|
|
1216
1225
|
};
|
|
1217
1226
|
XCheckbox.prototype.by = function () {
|
|
1218
1227
|
var a = this.b();
|
|
1219
|
-
return a.
|
|
1228
|
+
return a.w();
|
|
1220
1229
|
};
|
|
1221
1230
|
XCheckbox.prototype.b = function () {
|
|
1222
1231
|
var a = new CheckboxVisualModelExport();
|
|
1232
|
+
var b = this.view.am();
|
|
1233
|
+
var c = this.view.a();
|
|
1234
|
+
a.u = b.width;
|
|
1235
|
+
a.q = b.height;
|
|
1236
|
+
a.t = c[0];
|
|
1237
|
+
a.r = c[1];
|
|
1223
1238
|
a.f = this.n;
|
|
1224
1239
|
a.d = AppearanceHelper.a(this.db);
|
|
1225
1240
|
a.c = AppearanceHelper.a(this.da);
|
|
@@ -1228,11 +1243,11 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1228
1243
|
a.o = this.aq;
|
|
1229
1244
|
a.l = this.an;
|
|
1230
1245
|
a.p = this.ar;
|
|
1231
|
-
a.
|
|
1246
|
+
a.s = this.av;
|
|
1232
1247
|
a.n = this.ap;
|
|
1233
1248
|
a.m = this.ao;
|
|
1234
1249
|
a.a = AppearanceHelper.a(this.c8);
|
|
1235
|
-
a.
|
|
1250
|
+
a.v = this.a4;
|
|
1236
1251
|
a.j = this.focused;
|
|
1237
1252
|
a.g = this.y;
|
|
1238
1253
|
a.h = this.checked;
|
|
@@ -1241,7 +1256,7 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1241
1256
|
return a;
|
|
1242
1257
|
};
|
|
1243
1258
|
XCheckbox.prototype.provideContainer = function (a) {
|
|
1244
|
-
this.view.
|
|
1259
|
+
this.view.ae(a);
|
|
1245
1260
|
};
|
|
1246
1261
|
XCheckbox.$t = markType(XCheckbox, 'XCheckbox', Base.$, [INotifyPropertyChanged_$type]);
|
|
1247
1262
|
XCheckbox.g = ThemeResolver.a(((function () {
|