igniteui-webcomponents-inputs 4.2.4-alpha → 4.3.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-webcomponents-inputs.umd.js +10205 -7880
- package/bundles/igniteui-webcomponents-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +98 -98
- package/esm2015/lib/ButtonView_combined.js +2206 -1799
- package/esm2015/lib/CalendarView_combined.js +156 -156
- package/esm2015/lib/CheckboxView_combined.js +532 -458
- package/esm2015/lib/DatePickerView_combined.js +398 -364
- package/esm2015/lib/IconView_combined.js +553 -355
- package/esm2015/lib/InputGroupView_combined.js +2432 -2152
- package/esm2015/lib/NativeUIXInputsFactory.js +65 -23
- package/esm2015/lib/RippleView_combined.js +1 -1
- package/esm2015/lib/Theme.js +48 -0
- package/esm2015/lib/ThemeResolver.js +131 -7
- package/esm2015/lib/XButtonBridge.js +218 -22
- package/esm2015/lib/XCheckboxBridge.js +25 -16
- package/esm2015/lib/XComponentBridge.js +20 -6
- package/esm2015/lib/XIconBridge.js +93 -0
- package/esm2015/lib/XIconButtonBridge.js +45 -33
- package/esm2015/lib/XInputBridge.js +91 -38
- package/esm2015/lib/XPopupBridge.js +287 -0
- package/esm2015/lib/igc-date-picker-component.js +60 -58
- package/esm2015/lib/igc-x-button-component.js +694 -546
- package/esm2015/lib/igc-x-button-group-component.js +28 -28
- package/esm2015/lib/igc-x-calendar-component.js +16 -16
- package/esm2015/lib/igc-x-checkbox-component.js +77 -77
- package/esm2015/lib/igc-x-icon-component.js +239 -118
- package/esm2015/lib/igc-x-input-component.js +61 -43
- package/esm2015/lib/igc-x-input-group-component.js +576 -576
- package/esm2015/lib/igc-x-input-group-item-component.js +18 -18
- package/esm2015/lib/igc-x-ripple-component.js +35 -35
- package/esm2015/public_api.js +3 -0
- package/esm5/lib/ButtonClickEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupSelectionChangedEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupView_combined.js +176 -176
- package/esm5/lib/ButtonGroupVisualModelExport.js +2 -2
- package/esm5/lib/ButtonView_combined.js +2259 -1808
- package/esm5/lib/ButtonVisualModelExport.js +2 -2
- package/esm5/lib/CalendarView_combined.js +181 -181
- package/esm5/lib/CalendarVisualModelExport.js +2 -2
- package/esm5/lib/CheckboxChangeEventArgs.js +4 -4
- package/esm5/lib/CheckboxView_combined.js +561 -483
- package/esm5/lib/CheckboxVisualModelExport.js +2 -2
- package/esm5/lib/DatePickerView_combined.js +421 -383
- package/esm5/lib/DatePickerVisualModelExport.js +2 -2
- package/esm5/lib/DateTimeValueFormatter.js +2 -2
- package/esm5/lib/DayInfo.js +2 -2
- package/esm5/lib/ElevationHelper.js +2 -2
- package/esm5/lib/GotFocusEventArgs.js +2 -2
- package/esm5/lib/IconClickedEventArgs.js +2 -2
- package/esm5/lib/IconView_combined.js +600 -362
- package/esm5/lib/IconVisualModelExport.js +3 -3
- package/esm5/lib/InputChangeEventArgs.js +4 -4
- package/esm5/lib/InputGroupView_combined.js +2534 -2246
- package/esm5/lib/InputGroupVisualModelExport.js +2 -2
- package/esm5/lib/InputVisualModelExport.js +2 -2
- package/esm5/lib/LabelVisualModelExport.js +2 -2
- package/esm5/lib/LostFocusEventArgs.js +2 -2
- package/esm5/lib/MaskOptions.js +2 -2
- package/esm5/lib/MaskParsingService.js +5 -5
- package/esm5/lib/NativeUIXInputsFactory.js +69 -27
- package/esm5/lib/PrefixVisualModelExport.js +2 -2
- package/esm5/lib/Replaced.js +2 -2
- package/esm5/lib/RippleView_combined.js +17 -17
- package/esm5/lib/RippleVisualModelExport.js +2 -2
- package/esm5/lib/SelectedValueChangedEventArgs.js +4 -4
- package/esm5/lib/SuffixVisualModelExport.js +2 -2
- package/esm5/lib/TextElementsVisualModelExport.js +2 -2
- package/esm5/lib/Theme.js +58 -0
- package/esm5/lib/ThemeResolver.js +137 -11
- package/esm5/lib/XButtonBridge.js +220 -24
- package/esm5/lib/XButtonGroupButtonCollection.js +2 -2
- package/esm5/lib/XCheckboxBridge.js +27 -18
- package/esm5/lib/XComponentBridge.js +26 -8
- package/esm5/lib/XIconBridge.js +95 -0
- package/esm5/lib/XIconButtonBridge.js +47 -35
- package/esm5/lib/XInputBridge.js +93 -40
- package/esm5/lib/XPopupBridge.js +289 -0
- package/esm5/lib/igc-button-click-event-args.js +1 -1
- package/esm5/lib/igc-button-group-selection-changed-event-args.js +1 -1
- package/esm5/lib/igc-checkbox-change-event-args.js +3 -3
- package/esm5/lib/igc-date-picker-component.js +80 -78
- package/esm5/lib/igc-got-focus-event-args.js +1 -1
- package/esm5/lib/igc-input-change-event-args.js +3 -3
- package/esm5/lib/igc-lost-focus-event-args.js +1 -1
- package/esm5/lib/igc-selected-value-changed-event-args.js +3 -3
- package/esm5/lib/igc-x-button-component.js +908 -710
- package/esm5/lib/igc-x-button-group-button-collection.js +2 -2
- package/esm5/lib/igc-x-button-group-component.js +73 -73
- package/esm5/lib/igc-x-calendar-component.js +30 -30
- package/esm5/lib/igc-x-checkbox-component.js +117 -117
- package/esm5/lib/igc-x-icon-component.js +297 -136
- package/esm5/lib/igc-x-input-component.js +104 -78
- package/esm5/lib/igc-x-input-group-component.js +716 -716
- package/esm5/lib/igc-x-input-group-input-collection.js +2 -2
- package/esm5/lib/igc-x-input-group-item-component.js +6 -6
- package/esm5/lib/igc-x-label-component.js +30 -30
- package/esm5/lib/igc-x-prefix-component.js +9 -9
- package/esm5/lib/igc-x-ripple-component.js +19 -19
- package/esm5/lib/igc-x-suffix-component.js +9 -9
- package/esm5/public_api.js +3 -0
- package/fesm2015/igniteui-webcomponents-inputs.js +9194 -7084
- package/fesm5/igniteui-webcomponents-inputs.js +10090 -7768
- package/lib/ButtonGroupView_combined.d.ts +136 -70
- package/lib/ButtonView_combined.d.ts +609 -583
- package/lib/CalendarView_combined.d.ts +43 -22
- package/lib/CheckboxChangeEventArgs.d.ts +4 -2
- package/lib/CheckboxView_combined.d.ts +150 -117
- package/lib/DatePickerView_combined.d.ts +109 -81
- package/lib/IconView_combined.d.ts +164 -93
- package/lib/IconVisualModelExport.d.ts +2 -1
- package/lib/InputChangeEventArgs.d.ts +4 -2
- package/lib/InputGroupView_combined.d.ts +771 -771
- package/lib/NativeUIXInputsFactory.d.ts +6 -4
- package/lib/RippleView_combined.d.ts +19 -10
- package/lib/SelectedValueChangedEventArgs.d.ts +4 -2
- package/lib/Theme.d.ts +15 -0
- package/lib/ThemeResolver.d.ts +44 -6
- package/lib/XButtonBridge.d.ts +23 -5
- package/lib/XCheckboxBridge.d.ts +3 -3
- package/lib/XComponentBridge.d.ts +2 -1
- package/lib/XIconBridge.d.ts +14 -0
- package/lib/XIconButtonBridge.d.ts +4 -4
- package/lib/XInputBridge.d.ts +11 -7
- package/lib/XPopupBridge.d.ts +52 -0
- package/lib/igc-button-click-event-args.d.ts +1 -1
- package/lib/igc-button-group-selection-changed-event-args.d.ts +1 -1
- package/lib/igc-checkbox-change-event-args.d.ts +5 -3
- package/lib/igc-date-picker-component.d.ts +65 -34
- package/lib/igc-got-focus-event-args.d.ts +1 -1
- package/lib/igc-input-change-event-args.d.ts +5 -3
- package/lib/igc-lost-focus-event-args.d.ts +1 -1
- package/lib/igc-selected-value-changed-event-args.d.ts +5 -3
- package/lib/igc-x-button-component.d.ts +399 -173
- package/lib/igc-x-button-group-component.d.ts +136 -70
- package/lib/igc-x-calendar-component.d.ts +53 -28
- package/lib/igc-x-checkbox-component.d.ts +71 -37
- package/lib/igc-x-icon-component.d.ts +140 -44
- package/lib/igc-x-input-component.d.ts +69 -32
- package/lib/igc-x-input-group-component.d.ts +325 -165
- package/lib/igc-x-input-group-item-component.d.ts +5 -4
- package/lib/igc-x-label-component.d.ts +52 -27
- package/lib/igc-x-prefix-component.d.ts +10 -6
- package/lib/igc-x-ripple-component.d.ts +31 -17
- package/lib/igc-x-suffix-component.d.ts +10 -6
- package/package.json +2 -2
- package/public_api.d.ts +3 -0
|
@@ -4,34 +4,37 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import
|
|
8
|
-
import { Base, Delegate_$type, fromEnum, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-webcomponents-core";
|
|
7
|
+
import { __extends, __values } from "tslib";
|
|
8
|
+
import { Base, Delegate_$type, fromEnum, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox, String_$type } from "igniteui-webcomponents-core";
|
|
9
9
|
import { XRipple } from "./XRipple";
|
|
10
10
|
import { List$1 } from "igniteui-webcomponents-core";
|
|
11
|
+
import { Size } from "igniteui-webcomponents-core";
|
|
11
12
|
import { KeyFrameAnimationFactory } from "igniteui-webcomponents-core";
|
|
12
13
|
import { AnimationKeyFrameEffect } from "igniteui-webcomponents-core";
|
|
13
14
|
import { AnimationKeyFrameEffectTiming } from "igniteui-webcomponents-core";
|
|
14
15
|
import { stringReplace } from "igniteui-webcomponents-core";
|
|
15
16
|
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
16
17
|
import { CheckboxLabelPosition_$type } from "./CheckboxLabelPosition";
|
|
18
|
+
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
17
19
|
import { ThemeResolver } from "./ThemeResolver";
|
|
18
20
|
import { CornerRadius } from "igniteui-webcomponents-core";
|
|
19
21
|
import { NativeUI } from "igniteui-webcomponents-core";
|
|
20
22
|
import { Thickness } from "igniteui-webcomponents-core";
|
|
21
23
|
import { CheckboxChangeEventArgs } from "./CheckboxChangeEventArgs";
|
|
22
|
-
import { BrushUtil } from "igniteui-webcomponents-core";
|
|
23
24
|
import { AnimationKeyFrameProperty } from "igniteui-webcomponents-core";
|
|
24
25
|
import { TransformGroup } from "igniteui-webcomponents-core";
|
|
25
26
|
import { RotateTransform } from "igniteui-webcomponents-core";
|
|
26
27
|
import { TranslateTransform } from "igniteui-webcomponents-core";
|
|
27
28
|
import { CheckboxVisualModelExport } from "./CheckboxVisualModelExport";
|
|
28
29
|
import { AppearanceHelper } from "igniteui-webcomponents-core";
|
|
30
|
+
import { Dictionary$2 } from "igniteui-webcomponents-core";
|
|
31
|
+
import { Theme } from "./Theme";
|
|
29
32
|
import { isNaN_ } from "igniteui-webcomponents-core";
|
|
30
33
|
/**
|
|
31
34
|
* @hidden
|
|
32
35
|
*/
|
|
33
36
|
var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
34
|
-
|
|
37
|
+
__extends(CheckboxView, _super);
|
|
35
38
|
function CheckboxView() {
|
|
36
39
|
var _this = _super.call(this) || this;
|
|
37
40
|
_this.c = null;
|
|
@@ -39,24 +42,25 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
39
42
|
_this.f = null;
|
|
40
43
|
_this.j = new List$1(Delegate_$type, 0);
|
|
41
44
|
_this.g = true;
|
|
42
|
-
_this.
|
|
45
|
+
_this.r = null;
|
|
43
46
|
_this.m = null;
|
|
44
|
-
_this.
|
|
47
|
+
_this.q = null;
|
|
45
48
|
_this.n = null;
|
|
46
|
-
_this.d = null;
|
|
47
49
|
_this.o = null;
|
|
50
|
+
_this.d = null;
|
|
51
|
+
_this.p = null;
|
|
48
52
|
return _this;
|
|
49
53
|
}
|
|
50
|
-
CheckboxView.prototype.
|
|
54
|
+
CheckboxView.prototype.ae = function () {
|
|
51
55
|
};
|
|
52
56
|
CheckboxView.prototype.i = function () {
|
|
53
57
|
return true;
|
|
54
58
|
};
|
|
55
|
-
CheckboxView.prototype.
|
|
59
|
+
CheckboxView.prototype.ac = function (a) {
|
|
56
60
|
var e_1, _a;
|
|
57
61
|
if (a == null) {
|
|
58
62
|
try {
|
|
59
|
-
for (var _b =
|
|
63
|
+
for (var _b = __values(fromEnum(this.j)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
60
64
|
var b = _c.value;
|
|
61
65
|
b();
|
|
62
66
|
}
|
|
@@ -83,27 +87,27 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
83
87
|
this.l.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
|
|
84
88
|
this.l.rootWrapper.setStyleProperty("align-items", "center");
|
|
85
89
|
var c = this.l.createElement("input");
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
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.j.add(c.listen("change", runOn(this, this.
|
|
104
|
-
this.j.add(c.listen("click", runOn(this, this.
|
|
105
|
-
this.j.add(c.listen("focus", runOn(this, this.
|
|
106
|
-
this.j.add(c.listen("blur", runOn(this, this.
|
|
90
|
+
this.r = c;
|
|
91
|
+
this.r.addClass("ig-native-checkbox");
|
|
92
|
+
this.r.setStyleProperty("position", "absolute");
|
|
93
|
+
this.r.setStyleProperty("width", "1px");
|
|
94
|
+
this.r.setStyleProperty("height", "1px");
|
|
95
|
+
this.r.setStyleProperty("margin", "-1px");
|
|
96
|
+
this.r.setStyleProperty("border", "none");
|
|
97
|
+
this.r.setStyleProperty("clip", "rect(0, 0, 0, 0)");
|
|
98
|
+
this.r.setStyleProperty("outline", "0");
|
|
99
|
+
this.r.setStyleProperty("pointer-events", "none");
|
|
100
|
+
this.r.setStyleProperty("overflow", "hidden");
|
|
101
|
+
this.r.setStyleProperty("-webkit-appearance", "none");
|
|
102
|
+
this.r.setStyleProperty("-moz-appearance", "none");
|
|
103
|
+
this.r.setStyleProperty("appearance", "none");
|
|
104
|
+
this.r.setAttribute("type", "checkbox");
|
|
105
|
+
this.r.setAttribute("id", this.c.b1);
|
|
106
|
+
this.ai();
|
|
107
|
+
this.j.add(c.listen("change", runOn(this, this.w)));
|
|
108
|
+
this.j.add(c.listen("click", runOn(this, this.x)));
|
|
109
|
+
this.j.add(c.listen("focus", runOn(this, this.y)));
|
|
110
|
+
this.j.add(c.listen("blur", runOn(this, this.v)));
|
|
107
111
|
this.l.append(c);
|
|
108
112
|
var d = this.l.createElement("div");
|
|
109
113
|
d.addClass("ig-checkbox-box");
|
|
@@ -113,7 +117,7 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
113
117
|
this.m = d;
|
|
114
118
|
this.l.append(d);
|
|
115
119
|
var e = this.l.createElement("label");
|
|
116
|
-
e.setAttribute("for", this.c.
|
|
120
|
+
e.setAttribute("for", this.c.b1);
|
|
117
121
|
e.addClass("ig-checkbox-composite");
|
|
118
122
|
e.setStyleProperty("box-sizing", "border-box");
|
|
119
123
|
e.setStyleProperty("position", "relative");
|
|
@@ -132,7 +136,7 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
132
136
|
e.setStyleProperty("border-radius", "2px");
|
|
133
137
|
e.setStyleProperty("-webkit-tap-highlight-color", "transparent");
|
|
134
138
|
e.setStyleProperty("overflow", "hidden");
|
|
135
|
-
this.
|
|
139
|
+
this.q = e;
|
|
136
140
|
this.m.append(e);
|
|
137
141
|
var f = this.l.createElementNS("svg", "http://www.w3.org/2000/svg");
|
|
138
142
|
f.setAttribute("viewBox", "0 0 24 24");
|
|
@@ -150,11 +154,12 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
150
154
|
f.setStyleProperty("fill", "none");
|
|
151
155
|
f.setStyleProperty("opacity", "0");
|
|
152
156
|
f.setStyleProperty("z-index", "1");
|
|
153
|
-
this.
|
|
157
|
+
this.o = f;
|
|
154
158
|
e.append(f);
|
|
155
159
|
var g = this.l.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
156
|
-
g.setAttribute("d",
|
|
160
|
+
g.setAttribute("d", this.c.bf);
|
|
157
161
|
f.append(g);
|
|
162
|
+
this.n = g;
|
|
158
163
|
var h = this.l.createElement("div");
|
|
159
164
|
var i = this.l.getSubRenderer(h);
|
|
160
165
|
h.setStyleProperty("position", "absolute");
|
|
@@ -185,55 +190,61 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
185
190
|
l.setStyleProperty("margin-bottom", "0");
|
|
186
191
|
l.setStyleProperty("cursor", "pointer");
|
|
187
192
|
l.setStyleProperty("role", "label");
|
|
188
|
-
this.
|
|
189
|
-
this.j.add(l.listen("click", runOn(this, this.
|
|
193
|
+
this.p = l;
|
|
194
|
+
this.j.add(l.listen("click", runOn(this, this.u)));
|
|
190
195
|
this.l.append(l);
|
|
191
196
|
this.l.getPortal(l, "ChildContent", function (m) {
|
|
192
197
|
}, true);
|
|
193
|
-
this.c.
|
|
198
|
+
this.c.cp();
|
|
194
199
|
};
|
|
195
|
-
CheckboxView.prototype.
|
|
200
|
+
CheckboxView.prototype.u = function (a) {
|
|
196
201
|
this.c.toggle();
|
|
197
202
|
};
|
|
198
|
-
CheckboxView.prototype.
|
|
203
|
+
CheckboxView.prototype.ai = function () {
|
|
199
204
|
if (this.i()) {
|
|
200
|
-
var a = this.c.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
203
|
-
if (this.c.
|
|
204
|
-
this.
|
|
205
|
+
var a = this.c.b1;
|
|
206
|
+
this.r.setAttribute("name", this.c.ca);
|
|
207
|
+
this.r.setProperty("value", this.c.a4);
|
|
208
|
+
if (this.c.aa) {
|
|
209
|
+
this.r.setAttribute("tabindex", this.c.az.toString());
|
|
205
210
|
}
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
211
|
+
this.r.setProperty("disabled", this.c.disabled);
|
|
212
|
+
this.r.setProperty("indeterminate", this.c.indeterminate);
|
|
213
|
+
this.r.setProperty("checked", this.c.checked);
|
|
214
|
+
this.r.setProperty("required", this.c.ay);
|
|
210
215
|
if (this.c.indeterminate) {
|
|
211
|
-
this.
|
|
216
|
+
this.r.setAttribute("aria-checked", "mixed");
|
|
212
217
|
}
|
|
213
218
|
else {
|
|
214
|
-
this.
|
|
219
|
+
this.r.setAttribute("aria-checked", this.c.checked ? "true" : "false");
|
|
215
220
|
}
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
221
|
+
this.r.setAttribute("aria-labelledby", this.c.bn);
|
|
222
|
+
this.r.setAttribute("aria-label", this.c.bm);
|
|
218
223
|
}
|
|
219
224
|
};
|
|
220
|
-
CheckboxView.prototype.
|
|
225
|
+
CheckboxView.prototype.ak = function () {
|
|
226
|
+
return new Size(1, this.q.width(), this.q.height());
|
|
227
|
+
};
|
|
228
|
+
CheckboxView.prototype.ah = function () {
|
|
229
|
+
this.n.setAttribute("d", this.c.bf);
|
|
230
|
+
};
|
|
231
|
+
CheckboxView.prototype.af = function () {
|
|
221
232
|
if (this.i()) {
|
|
222
|
-
var a = this.c.
|
|
223
|
-
this.
|
|
224
|
-
this.
|
|
233
|
+
var a = this.c.b1;
|
|
234
|
+
this.r.setAttribute("id", a);
|
|
235
|
+
this.q.setAttribute("for", a);
|
|
225
236
|
}
|
|
226
237
|
};
|
|
227
|
-
CheckboxView.prototype.
|
|
238
|
+
CheckboxView.prototype.v = function (a) {
|
|
228
239
|
this.c.focused = false;
|
|
229
240
|
};
|
|
230
|
-
CheckboxView.prototype.
|
|
241
|
+
CheckboxView.prototype.y = function (a) {
|
|
231
242
|
this.c.focused = true;
|
|
232
243
|
};
|
|
233
|
-
CheckboxView.prototype.
|
|
244
|
+
CheckboxView.prototype.x = function (a) {
|
|
234
245
|
a.stopPropagation();
|
|
235
246
|
if (this.h()) {
|
|
236
|
-
var native_ = this.
|
|
247
|
+
var native_ = this.r.getNativeElement();
|
|
237
248
|
native_.blur();
|
|
238
249
|
}
|
|
239
250
|
this.c.toggle();
|
|
@@ -241,56 +252,56 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
241
252
|
CheckboxView.prototype.h = function () {
|
|
242
253
|
return false;
|
|
243
254
|
};
|
|
244
|
-
CheckboxView.prototype.
|
|
255
|
+
CheckboxView.prototype.w = function (a) {
|
|
245
256
|
a.stopPropagation();
|
|
246
257
|
};
|
|
247
|
-
CheckboxView.prototype.
|
|
258
|
+
CheckboxView.prototype.z = function () {
|
|
248
259
|
if (KeyFrameAnimationFactory.h == null) {
|
|
249
260
|
KeyFrameAnimationFactory.h = this.l;
|
|
250
261
|
}
|
|
251
262
|
};
|
|
252
263
|
CheckboxView.prototype.a = function (a) {
|
|
253
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
264
|
+
return new AnimationKeyFrameEffect(0, this.q, 0, null, a);
|
|
254
265
|
};
|
|
255
266
|
CheckboxView.prototype.b = function (a) {
|
|
256
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
267
|
+
return new AnimationKeyFrameEffect(0, this.o, 0, null, a);
|
|
257
268
|
};
|
|
258
|
-
CheckboxView.prototype.
|
|
269
|
+
CheckboxView.prototype.aa = function (a) {
|
|
259
270
|
};
|
|
260
|
-
Object.defineProperty(CheckboxView.prototype, "
|
|
271
|
+
Object.defineProperty(CheckboxView.prototype, "s", {
|
|
261
272
|
get: function () {
|
|
262
|
-
return this.
|
|
273
|
+
return this.q;
|
|
263
274
|
},
|
|
264
|
-
enumerable:
|
|
275
|
+
enumerable: false,
|
|
265
276
|
configurable: true
|
|
266
277
|
});
|
|
267
278
|
Object.defineProperty(CheckboxView.prototype, "e", {
|
|
268
279
|
get: function () {
|
|
269
280
|
return this.d;
|
|
270
281
|
},
|
|
271
|
-
enumerable:
|
|
282
|
+
enumerable: false,
|
|
272
283
|
configurable: true
|
|
273
284
|
});
|
|
274
|
-
Object.defineProperty(CheckboxView.prototype, "
|
|
285
|
+
Object.defineProperty(CheckboxView.prototype, "t", {
|
|
275
286
|
get: function () {
|
|
276
|
-
return this.
|
|
287
|
+
return this.o;
|
|
277
288
|
},
|
|
278
|
-
enumerable:
|
|
289
|
+
enumerable: false,
|
|
279
290
|
configurable: true
|
|
280
291
|
});
|
|
281
|
-
CheckboxView.prototype.
|
|
292
|
+
CheckboxView.prototype.ab = function () {
|
|
282
293
|
this.g = true;
|
|
283
|
-
this.j.add(this.
|
|
284
|
-
this.j.add(this.
|
|
285
|
-
this.j.add(this.
|
|
286
|
-
this.j.add(this.
|
|
287
|
-
this.j.add(this.
|
|
294
|
+
this.j.add(this.r.listen("change", runOn(this, this.w)));
|
|
295
|
+
this.j.add(this.r.listen("click", runOn(this, this.x)));
|
|
296
|
+
this.j.add(this.r.listen("focus", runOn(this, this.y)));
|
|
297
|
+
this.j.add(this.r.listen("blur", runOn(this, this.v)));
|
|
298
|
+
this.j.add(this.p.listen("click", runOn(this, this.u)));
|
|
288
299
|
};
|
|
289
|
-
CheckboxView.prototype.
|
|
300
|
+
CheckboxView.prototype.ad = function () {
|
|
290
301
|
var e_2, _a;
|
|
291
302
|
this.g = false;
|
|
292
303
|
try {
|
|
293
|
-
for (var _b =
|
|
304
|
+
for (var _b = __values(fromEnum(this.j)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
294
305
|
var a = _c.value;
|
|
295
306
|
a();
|
|
296
307
|
}
|
|
@@ -310,19 +321,19 @@ var CheckboxView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
310
321
|
}
|
|
311
322
|
this.j.clear();
|
|
312
323
|
};
|
|
313
|
-
CheckboxView.prototype.
|
|
324
|
+
CheckboxView.prototype.ag = function () {
|
|
314
325
|
var model_ = this.c;
|
|
315
326
|
if (model_.externalObject && model_.externalObject.refreshDefaults) {
|
|
316
327
|
model_.externalObject.refreshDefaults();
|
|
317
328
|
}
|
|
318
329
|
;
|
|
319
330
|
};
|
|
320
|
-
CheckboxView.prototype.
|
|
331
|
+
CheckboxView.prototype.aj = function (a, b) {
|
|
321
332
|
this.d.ax = a;
|
|
322
333
|
this.d.aw = b;
|
|
323
334
|
};
|
|
324
335
|
CheckboxView.prototype.k = function () {
|
|
325
|
-
var a = this.
|
|
336
|
+
var a = this.q.getStyleProperty("border-top-width");
|
|
326
337
|
a = stringReplace(a, "px", "");
|
|
327
338
|
return parseFloat(a);
|
|
328
339
|
};
|
|
@@ -334,64 +345,66 @@ export { CheckboxView };
|
|
|
334
345
|
* @hidden
|
|
335
346
|
*/
|
|
336
347
|
var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
337
|
-
|
|
348
|
+
__extends(XCheckbox, _super);
|
|
338
349
|
function XCheckbox() {
|
|
339
350
|
var _this = _super.call(this) || this;
|
|
340
351
|
_this._view = null;
|
|
341
|
-
_this.
|
|
342
|
-
_this.
|
|
343
|
-
_this.
|
|
352
|
+
_this.l = 0;
|
|
353
|
+
_this.s = false;
|
|
354
|
+
_this.ag = false;
|
|
355
|
+
_this.c6 = null;
|
|
356
|
+
_this.c1 = ThemeResolver.ah(XCheckbox.m, BrushUtil.g(0, 0, 0, 0), BrushUtil.g(0, 0, 0, 0));
|
|
344
357
|
_this.c3 = null;
|
|
345
|
-
_this.
|
|
346
|
-
_this.c0 =
|
|
347
|
-
_this.
|
|
348
|
-
_this.cx = ThemeResolver.e(XCheckbox.h, XCheckbox.dl, XCheckbox.dg);
|
|
358
|
+
_this.c5 = null;
|
|
359
|
+
_this.c0 = ThemeResolver.ag(XCheckbox.m, XCheckbox.k, "TickColor");
|
|
360
|
+
_this.c7 = null;
|
|
349
361
|
_this.c4 = null;
|
|
350
|
-
_this.
|
|
351
|
-
_this.
|
|
352
|
-
_this.
|
|
353
|
-
_this.
|
|
354
|
-
_this.
|
|
355
|
-
_this.
|
|
356
|
-
_this.
|
|
357
|
-
_this.
|
|
358
|
-
_this.
|
|
359
|
-
_this.
|
|
360
|
-
_this.
|
|
361
|
-
_this.
|
|
362
|
-
_this.
|
|
363
|
-
_this.
|
|
364
|
-
_this.
|
|
365
|
-
_this.
|
|
366
|
-
_this.
|
|
367
|
-
_this.
|
|
368
|
-
_this.
|
|
369
|
-
_this.
|
|
362
|
+
_this.bv = XCheckbox.k.v(XCheckbox.m, "CheckPath");
|
|
363
|
+
_this.dj = XCheckbox.k.ae(XCheckbox.m, "UncheckedBorderColor");
|
|
364
|
+
_this.dg = XCheckbox.k.ae(XCheckbox.m, "CheckedBorderColor");
|
|
365
|
+
_this.as = XCheckbox.k.j(XCheckbox.m, "BorderWidth");
|
|
366
|
+
_this.df = XCheckbox.k.ae(XCheckbox.m, "CheckedBackgroundColor");
|
|
367
|
+
_this.at = XCheckbox.k.j(XCheckbox.m, "CornerRadius");
|
|
368
|
+
_this.dh = XCheckbox.k.ae(XCheckbox.m, "TickColor");
|
|
369
|
+
_this.au = XCheckbox.k.j(XCheckbox.m, "TickStrokeWidth");
|
|
370
|
+
_this.di = XCheckbox.k.ae(XCheckbox.m, "UncheckedBackgroundColor");
|
|
371
|
+
_this.a5 = ThemeResolver.x(XCheckbox.m, XCheckbox.k, "CheckPath");
|
|
372
|
+
_this.c2 = ThemeResolver.ag(XCheckbox.m, XCheckbox.k, "UncheckedBorderColor");
|
|
373
|
+
_this.cz = ThemeResolver.ag(XCheckbox.m, XCheckbox.k, "CheckedBorderColor");
|
|
374
|
+
_this.ak = NaN;
|
|
375
|
+
_this.ah = ThemeResolver.l(XCheckbox.m, XCheckbox.k, "BorderWidth");
|
|
376
|
+
_this.al = NaN;
|
|
377
|
+
_this.am = NaN;
|
|
378
|
+
_this.aj = ThemeResolver.l(XCheckbox.m, XCheckbox.k, "TickStrokeWidth");
|
|
379
|
+
_this.ai = ThemeResolver.l(XCheckbox.m, XCheckbox.k, "CornerRadius");
|
|
380
|
+
_this.cy = ThemeResolver.ag(XCheckbox.m, XCheckbox.k, "CheckedBackgroundColor");
|
|
381
|
+
_this.a9 = "ig-native-checkbox-" + XCheckbox.a1++;
|
|
382
|
+
_this.a8 = "ig-checkbox-" + XCheckbox.a0++;
|
|
370
383
|
_this.ba = null;
|
|
371
384
|
_this.bb = null;
|
|
372
|
-
_this.ay = 0;
|
|
373
|
-
_this.o = false;
|
|
374
385
|
_this.ax = 0;
|
|
386
|
+
_this.t = false;
|
|
387
|
+
_this.aw = 0;
|
|
375
388
|
_this.a7 = null;
|
|
376
389
|
_this.a6 = null;
|
|
377
|
-
_this.
|
|
378
|
-
_this.
|
|
390
|
+
_this.a2 = null;
|
|
391
|
+
_this.w = false;
|
|
379
392
|
_this.change = null;
|
|
380
393
|
_this.d = 0;
|
|
381
|
-
_this.l = false;
|
|
382
|
-
_this.p = false;
|
|
383
|
-
_this.s = false;
|
|
384
394
|
_this.q = false;
|
|
385
|
-
_this.
|
|
386
|
-
_this.
|
|
387
|
-
_this.
|
|
395
|
+
_this.u = false;
|
|
396
|
+
_this.x = false;
|
|
397
|
+
_this.v = false;
|
|
398
|
+
_this.r = false;
|
|
399
|
+
_this.o = null;
|
|
400
|
+
_this.p = null;
|
|
388
401
|
_this.propertyChanged = null;
|
|
389
402
|
_this.ba = _this.a8 + "-label";
|
|
390
403
|
_this.a7 = _this.ba;
|
|
391
404
|
var a = new CheckboxView();
|
|
392
405
|
a.c = _this;
|
|
393
406
|
_this.view = a;
|
|
394
|
-
_this.view.
|
|
407
|
+
_this.view.ae();
|
|
395
408
|
return _this;
|
|
396
409
|
}
|
|
397
410
|
Object.defineProperty(XCheckbox.prototype, "view", {
|
|
@@ -401,150 +414,182 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
401
414
|
set: function (a) {
|
|
402
415
|
this._view = a;
|
|
403
416
|
},
|
|
404
|
-
enumerable:
|
|
417
|
+
enumerable: false,
|
|
405
418
|
configurable: true
|
|
406
419
|
});
|
|
407
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
420
|
+
Object.defineProperty(XCheckbox.prototype, "n", {
|
|
408
421
|
get: function () {
|
|
409
|
-
return this.
|
|
422
|
+
return this.l;
|
|
410
423
|
},
|
|
411
424
|
set: function (a) {
|
|
412
|
-
var b = this.
|
|
413
|
-
this.
|
|
414
|
-
if (b != this.
|
|
415
|
-
this.
|
|
425
|
+
var b = this.l;
|
|
426
|
+
this.l = a;
|
|
427
|
+
if (b != this.l) {
|
|
428
|
+
this.co("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, a));
|
|
416
429
|
}
|
|
417
430
|
},
|
|
418
|
-
enumerable:
|
|
431
|
+
enumerable: false,
|
|
419
432
|
configurable: true
|
|
420
433
|
});
|
|
421
434
|
XCheckbox.prototype.destroy = function () {
|
|
422
435
|
this.provideContainer(null);
|
|
423
436
|
};
|
|
424
|
-
XCheckbox.prototype.
|
|
437
|
+
XCheckbox.prototype.co = function (a, b, c) {
|
|
425
438
|
if (this.propertyChanged != null) {
|
|
426
439
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
427
440
|
}
|
|
428
|
-
this.
|
|
441
|
+
this.cq(a, b, c);
|
|
429
442
|
};
|
|
430
|
-
XCheckbox.prototype.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
443
|
+
XCheckbox.prototype.cu = function () {
|
|
444
|
+
this.da = this.dk != null ? this.dk : this.dh;
|
|
445
|
+
this.dc = this.dm != null ? this.dm : this.dj;
|
|
446
|
+
this.c9 = this.de != null ? this.de : this.dg;
|
|
447
|
+
this.an = !isNaN_(this.aq) ? this.aq : this.as;
|
|
448
|
+
this.c8 = this.dd != null ? this.dd : this.df;
|
|
449
|
+
this.db = this.dl != null ? this.dl : this.di;
|
|
450
|
+
this.ao = !isNaN_(this.ar) ? this.ar : this.at;
|
|
451
|
+
this.ap = !isNaN_(this.av) ? this.av : this.au;
|
|
452
|
+
this.bf = this.bv;
|
|
439
453
|
};
|
|
440
|
-
XCheckbox.prototype.
|
|
454
|
+
XCheckbox.prototype.cq = function (a, b, c) {
|
|
441
455
|
switch (a) {
|
|
442
456
|
case "BaseTheme":
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
457
|
+
this.cx(this.n);
|
|
458
|
+
this.cu();
|
|
445
459
|
break;
|
|
446
460
|
case "TickColor":
|
|
447
|
-
this.
|
|
461
|
+
this.da = this.dk != null ? this.dk : this.dh;
|
|
448
462
|
break;
|
|
449
463
|
case "UncheckedBorderColor":
|
|
450
|
-
this.
|
|
464
|
+
this.dc = this.dm != null ? this.dm : this.dj;
|
|
451
465
|
break;
|
|
452
466
|
case "CheckedBorderColor":
|
|
453
|
-
this.
|
|
467
|
+
this.c9 = this.de != null ? this.de : this.dg;
|
|
454
468
|
break;
|
|
455
469
|
case "BorderWidth":
|
|
456
|
-
this.
|
|
470
|
+
this.an = !isNaN_(this.aq) ? this.aq : this.as;
|
|
457
471
|
break;
|
|
458
472
|
case "CheckedBackgroundColor":
|
|
459
|
-
this.
|
|
473
|
+
this.c8 = this.dd != null ? this.dd : this.df;
|
|
460
474
|
break;
|
|
461
475
|
case "UncheckedBackgroundColor":
|
|
462
|
-
this.
|
|
476
|
+
this.db = this.dl != null ? this.dl : this.di;
|
|
463
477
|
break;
|
|
464
478
|
case "CornerRadius":
|
|
465
|
-
this.
|
|
479
|
+
this.ao = !isNaN_(this.ar) ? this.ar : this.at;
|
|
466
480
|
break;
|
|
467
481
|
case "TickStrokeWidth":
|
|
468
|
-
this.
|
|
482
|
+
this.ap = !isNaN_(this.av) ? this.av : this.au;
|
|
469
483
|
break;
|
|
470
484
|
case "ActualTickStrokeWidth":
|
|
471
485
|
case "ActualTickColor":
|
|
472
|
-
this.
|
|
486
|
+
this.cw();
|
|
473
487
|
break;
|
|
474
488
|
case "ActualCheckedBackgroundColor":
|
|
475
489
|
case "ActualUncheckedBackgroundColor":
|
|
476
490
|
case "ActualUncheckedBorderColor":
|
|
477
491
|
case "ActualCheckedBorderColor":
|
|
478
492
|
case "ActualBorderWidth":
|
|
479
|
-
if (this.
|
|
480
|
-
this.
|
|
493
|
+
if (this.o != null) {
|
|
494
|
+
this.o.cancel();
|
|
481
495
|
}
|
|
482
|
-
if (this.
|
|
483
|
-
this.
|
|
496
|
+
if (this.p != null) {
|
|
497
|
+
this.p.cancel();
|
|
484
498
|
}
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
var d = (this.
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
499
|
+
this.o = null;
|
|
500
|
+
this.p = null;
|
|
501
|
+
this.ct();
|
|
502
|
+
var d = (this.z);
|
|
503
|
+
this.z = true;
|
|
504
|
+
this.cv(this.indeterminate);
|
|
505
|
+
this.z = d;
|
|
492
506
|
break;
|
|
493
507
|
case "ActualCornerRadius":
|
|
494
|
-
this.
|
|
508
|
+
this.ct();
|
|
509
|
+
break;
|
|
510
|
+
case "ActualCheckPath":
|
|
511
|
+
this.view.ah();
|
|
495
512
|
break;
|
|
496
513
|
case "IsChecked":
|
|
497
|
-
if (!this.
|
|
514
|
+
if (!this.s) {
|
|
498
515
|
var e = this.indeterminate;
|
|
499
|
-
this.
|
|
516
|
+
this.s = true;
|
|
500
517
|
this.indeterminate = false;
|
|
501
|
-
this.
|
|
502
|
-
var f = (this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
518
|
+
this.s = false;
|
|
519
|
+
var f = (this.z);
|
|
520
|
+
this.z = true;
|
|
521
|
+
this.cv(e);
|
|
522
|
+
this.z = f;
|
|
506
523
|
}
|
|
507
524
|
break;
|
|
508
525
|
case "IsIndeterminate":
|
|
509
|
-
if (!this.
|
|
510
|
-
this.
|
|
526
|
+
if (!this.s) {
|
|
527
|
+
this.cv(b);
|
|
511
528
|
}
|
|
512
529
|
break;
|
|
513
530
|
case "DisableRipple":
|
|
514
|
-
this.view.e.i = this.
|
|
531
|
+
this.view.e.i = this.y;
|
|
515
532
|
break;
|
|
516
533
|
case "InputId":
|
|
517
|
-
this.view.
|
|
534
|
+
this.view.af();
|
|
518
535
|
break;
|
|
519
536
|
}
|
|
520
537
|
};
|
|
521
|
-
XCheckbox.prototype.
|
|
522
|
-
var a = this.view.
|
|
538
|
+
XCheckbox.prototype.ct = function () {
|
|
539
|
+
var a = this.view.s;
|
|
523
540
|
if (a == null) {
|
|
524
541
|
return;
|
|
525
542
|
}
|
|
526
|
-
NativeUI.
|
|
527
|
-
if (!isNaN_(this.
|
|
528
|
-
NativeUI.
|
|
543
|
+
NativeUI.n(a, new CornerRadius(0, this.ao));
|
|
544
|
+
if (!isNaN_(this.an)) {
|
|
545
|
+
NativeUI.o(a, new Thickness(0, this.an));
|
|
529
546
|
}
|
|
530
547
|
if (this.checked) {
|
|
531
|
-
NativeUI.
|
|
532
|
-
NativeUI.
|
|
548
|
+
NativeUI.l(a, this.c8);
|
|
549
|
+
NativeUI.m(a, this.c9);
|
|
533
550
|
}
|
|
534
551
|
else {
|
|
535
|
-
NativeUI.
|
|
536
|
-
NativeUI.
|
|
552
|
+
NativeUI.l(a, this.db);
|
|
553
|
+
NativeUI.m(a, this.dc);
|
|
537
554
|
}
|
|
538
555
|
};
|
|
539
|
-
XCheckbox.prototype.
|
|
540
|
-
var a = this.view.
|
|
556
|
+
XCheckbox.prototype.cw = function () {
|
|
557
|
+
var a = this.view.t;
|
|
541
558
|
if (a == null) {
|
|
542
559
|
return;
|
|
543
560
|
}
|
|
544
|
-
NativeUI.
|
|
545
|
-
NativeUI.
|
|
561
|
+
NativeUI.y(a, this.da);
|
|
562
|
+
NativeUI.ab(a, this.ap);
|
|
546
563
|
};
|
|
547
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
564
|
+
Object.defineProperty(XCheckbox.prototype, "dl", {
|
|
565
|
+
get: function () {
|
|
566
|
+
return this.c6;
|
|
567
|
+
},
|
|
568
|
+
set: function (a) {
|
|
569
|
+
var b = this.c6;
|
|
570
|
+
this.c6 = a;
|
|
571
|
+
if (b != this.c6) {
|
|
572
|
+
this.co("UncheckedBackgroundColor", b, a);
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
enumerable: false,
|
|
576
|
+
configurable: true
|
|
577
|
+
});
|
|
578
|
+
Object.defineProperty(XCheckbox.prototype, "db", {
|
|
579
|
+
get: function () {
|
|
580
|
+
return this.c1;
|
|
581
|
+
},
|
|
582
|
+
set: function (a) {
|
|
583
|
+
var b = this.c1;
|
|
584
|
+
this.c1 = a;
|
|
585
|
+
if (b != this.c1) {
|
|
586
|
+
this.co("ActualUncheckedBackgroundColor", b, a);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
enumerable: false,
|
|
590
|
+
configurable: true
|
|
591
|
+
});
|
|
592
|
+
Object.defineProperty(XCheckbox.prototype, "dd", {
|
|
548
593
|
get: function () {
|
|
549
594
|
return this.c3;
|
|
550
595
|
},
|
|
@@ -552,24 +597,24 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
552
597
|
var b = this.c3;
|
|
553
598
|
this.c3 = a;
|
|
554
599
|
if (b != this.c3) {
|
|
555
|
-
this.
|
|
600
|
+
this.co("CheckedBackgroundColor", b, a);
|
|
556
601
|
}
|
|
557
602
|
},
|
|
558
|
-
enumerable:
|
|
603
|
+
enumerable: false,
|
|
559
604
|
configurable: true
|
|
560
605
|
});
|
|
561
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
606
|
+
Object.defineProperty(XCheckbox.prototype, "dk", {
|
|
562
607
|
get: function () {
|
|
563
|
-
return this.
|
|
608
|
+
return this.c5;
|
|
564
609
|
},
|
|
565
610
|
set: function (a) {
|
|
566
|
-
var b = this.
|
|
567
|
-
this.
|
|
568
|
-
if (b != this.
|
|
569
|
-
this.
|
|
611
|
+
var b = this.c5;
|
|
612
|
+
this.c5 = a;
|
|
613
|
+
if (b != this.c5) {
|
|
614
|
+
this.co("TickColor", b, a);
|
|
570
615
|
}
|
|
571
616
|
},
|
|
572
|
-
enumerable:
|
|
617
|
+
enumerable: false,
|
|
573
618
|
configurable: true
|
|
574
619
|
});
|
|
575
620
|
Object.defineProperty(XCheckbox.prototype, "da", {
|
|
@@ -580,78 +625,79 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
580
625
|
var b = this.c0;
|
|
581
626
|
this.c0 = a;
|
|
582
627
|
if (b != this.c0) {
|
|
583
|
-
this.
|
|
628
|
+
this.co("ActualTickColor", b, a);
|
|
584
629
|
}
|
|
585
630
|
},
|
|
586
|
-
enumerable:
|
|
631
|
+
enumerable: false,
|
|
587
632
|
configurable: true
|
|
588
633
|
});
|
|
589
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
634
|
+
Object.defineProperty(XCheckbox.prototype, "dm", {
|
|
590
635
|
get: function () {
|
|
591
|
-
return this.
|
|
636
|
+
return this.c7;
|
|
592
637
|
},
|
|
593
638
|
set: function (a) {
|
|
594
|
-
var b = this.
|
|
595
|
-
this.
|
|
596
|
-
if (b != this.
|
|
597
|
-
this.
|
|
639
|
+
var b = this.c7;
|
|
640
|
+
this.c7 = a;
|
|
641
|
+
if (b != this.c7) {
|
|
642
|
+
this.co("UncheckedBorderColor", b, a);
|
|
598
643
|
}
|
|
599
644
|
},
|
|
600
|
-
enumerable:
|
|
645
|
+
enumerable: false,
|
|
601
646
|
configurable: true
|
|
602
647
|
});
|
|
603
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
648
|
+
Object.defineProperty(XCheckbox.prototype, "de", {
|
|
604
649
|
get: function () {
|
|
605
|
-
return this.
|
|
650
|
+
return this.c4;
|
|
606
651
|
},
|
|
607
652
|
set: function (a) {
|
|
608
|
-
var b = this.
|
|
609
|
-
this.
|
|
610
|
-
if (b != this.
|
|
611
|
-
this.
|
|
653
|
+
var b = this.c4;
|
|
654
|
+
this.c4 = a;
|
|
655
|
+
if (b != this.c4) {
|
|
656
|
+
this.co("CheckedBorderColor", b, a);
|
|
612
657
|
}
|
|
613
658
|
},
|
|
614
|
-
enumerable:
|
|
659
|
+
enumerable: false,
|
|
615
660
|
configurable: true
|
|
616
661
|
});
|
|
617
|
-
|
|
662
|
+
XCheckbox.prototype.cx = function (a) {
|
|
663
|
+
this.bv = XCheckbox.k.v(a, "CheckPath");
|
|
664
|
+
this.dj = XCheckbox.k.ae(a, "UncheckedBorderColor");
|
|
665
|
+
this.dg = XCheckbox.k.ae(a, "CheckedBorderColor");
|
|
666
|
+
this.as = XCheckbox.k.j(a, "BorderWidth");
|
|
667
|
+
this.df = XCheckbox.k.ae(a, "CheckedBackgroundColor");
|
|
668
|
+
this.at = XCheckbox.k.j(a, "CornerRadius");
|
|
669
|
+
this.dh = XCheckbox.k.ae(a, "TickColor");
|
|
670
|
+
this.au = XCheckbox.k.j(a, "TickStrokeWidth");
|
|
671
|
+
this.di = XCheckbox.k.ae(a, "UncheckedBackgroundColor");
|
|
672
|
+
};
|
|
673
|
+
Object.defineProperty(XCheckbox.prototype, "bf", {
|
|
618
674
|
get: function () {
|
|
619
|
-
return this.
|
|
675
|
+
return this.a5;
|
|
620
676
|
},
|
|
621
677
|
set: function (a) {
|
|
622
|
-
var b = this.
|
|
623
|
-
this.
|
|
624
|
-
if (b != this.
|
|
625
|
-
this.
|
|
678
|
+
var b = this.a5;
|
|
679
|
+
this.a5 = a;
|
|
680
|
+
if (b != this.a5) {
|
|
681
|
+
this.co("ActualCheckPath", b, a);
|
|
626
682
|
}
|
|
627
683
|
},
|
|
628
|
-
enumerable:
|
|
684
|
+
enumerable: false,
|
|
629
685
|
configurable: true
|
|
630
686
|
});
|
|
631
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
687
|
+
Object.defineProperty(XCheckbox.prototype, "dc", {
|
|
632
688
|
get: function () {
|
|
633
|
-
return this.
|
|
689
|
+
return this.c2;
|
|
634
690
|
},
|
|
635
691
|
set: function (a) {
|
|
636
|
-
var b = this.
|
|
637
|
-
this.
|
|
638
|
-
if (b != this.
|
|
639
|
-
this.
|
|
692
|
+
var b = this.c2;
|
|
693
|
+
this.c2 = a;
|
|
694
|
+
if (b != this.c2) {
|
|
695
|
+
this.co("ActualUncheckedBorderColor", b, a);
|
|
640
696
|
}
|
|
641
697
|
},
|
|
642
|
-
enumerable:
|
|
698
|
+
enumerable: false,
|
|
643
699
|
configurable: true
|
|
644
700
|
});
|
|
645
|
-
XCheckbox.prototype.cu = function (a) {
|
|
646
|
-
this.dr = ThemeResolver.e(a, XCheckbox.dn, XCheckbox.di);
|
|
647
|
-
this.dd = ThemeResolver.e(a, XCheckbox.dk, XCheckbox.df);
|
|
648
|
-
this.an = ThemeResolver.b(a, XCheckbox.as, XCheckbox.ap);
|
|
649
|
-
this.dc = ThemeResolver.e(a, XCheckbox.dj, XCheckbox.de);
|
|
650
|
-
this.ao = ThemeResolver.b(a, XCheckbox.at, XCheckbox.aq);
|
|
651
|
-
this.dp = ThemeResolver.e(a, XCheckbox.dl, XCheckbox.dg);
|
|
652
|
-
this.av = ThemeResolver.b(a, XCheckbox.au, XCheckbox.ar);
|
|
653
|
-
this.dq = ThemeResolver.e(a, XCheckbox.dm, XCheckbox.dh);
|
|
654
|
-
};
|
|
655
701
|
Object.defineProperty(XCheckbox.prototype, "c9", {
|
|
656
702
|
get: function () {
|
|
657
703
|
return this.cz;
|
|
@@ -660,125 +706,111 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
660
706
|
var b = this.cz;
|
|
661
707
|
this.cz = a;
|
|
662
708
|
if (b != this.cz) {
|
|
663
|
-
this.
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
enumerable: true,
|
|
667
|
-
configurable: true
|
|
668
|
-
});
|
|
669
|
-
Object.defineProperty(XCheckbox.prototype, "c6", {
|
|
670
|
-
get: function () {
|
|
671
|
-
return this.cw;
|
|
672
|
-
},
|
|
673
|
-
set: function (a) {
|
|
674
|
-
var b = this.cw;
|
|
675
|
-
this.cw = a;
|
|
676
|
-
if (b != this.cw) {
|
|
677
|
-
this.cl("ActualCheckedBorderColor", b, a);
|
|
709
|
+
this.co("ActualCheckedBorderColor", b, a);
|
|
678
710
|
}
|
|
679
711
|
},
|
|
680
|
-
enumerable:
|
|
712
|
+
enumerable: false,
|
|
681
713
|
configurable: true
|
|
682
714
|
});
|
|
683
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
715
|
+
Object.defineProperty(XCheckbox.prototype, "aq", {
|
|
684
716
|
get: function () {
|
|
685
|
-
return this.
|
|
717
|
+
return this.ak;
|
|
686
718
|
},
|
|
687
719
|
set: function (a) {
|
|
688
|
-
var b = this.
|
|
689
|
-
this.
|
|
690
|
-
if (b != this.
|
|
691
|
-
this.
|
|
720
|
+
var b = this.ak;
|
|
721
|
+
this.ak = a;
|
|
722
|
+
if (b != this.ak) {
|
|
723
|
+
this.co("BorderWidth", b, a);
|
|
692
724
|
}
|
|
693
725
|
},
|
|
694
|
-
enumerable:
|
|
726
|
+
enumerable: false,
|
|
695
727
|
configurable: true
|
|
696
728
|
});
|
|
697
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
729
|
+
Object.defineProperty(XCheckbox.prototype, "an", {
|
|
698
730
|
get: function () {
|
|
699
|
-
return this.
|
|
731
|
+
return this.ah;
|
|
700
732
|
},
|
|
701
733
|
set: function (a) {
|
|
702
|
-
var b = this.
|
|
703
|
-
this.
|
|
704
|
-
if (b != this.
|
|
705
|
-
this.
|
|
734
|
+
var b = this.ah;
|
|
735
|
+
this.ah = a;
|
|
736
|
+
if (b != this.ah) {
|
|
737
|
+
this.co("ActualBorderWidth", b, a);
|
|
706
738
|
}
|
|
707
739
|
},
|
|
708
|
-
enumerable:
|
|
740
|
+
enumerable: false,
|
|
709
741
|
configurable: true
|
|
710
742
|
});
|
|
711
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
743
|
+
Object.defineProperty(XCheckbox.prototype, "ar", {
|
|
712
744
|
get: function () {
|
|
713
|
-
return this.
|
|
745
|
+
return this.al;
|
|
714
746
|
},
|
|
715
747
|
set: function (a) {
|
|
716
|
-
var b = this.
|
|
717
|
-
this.
|
|
718
|
-
if (b != this.
|
|
719
|
-
this.
|
|
748
|
+
var b = this.al;
|
|
749
|
+
this.al = a;
|
|
750
|
+
if (b != this.al) {
|
|
751
|
+
this.co("CornerRadius", b, a);
|
|
720
752
|
}
|
|
721
753
|
},
|
|
722
|
-
enumerable:
|
|
754
|
+
enumerable: false,
|
|
723
755
|
configurable: true
|
|
724
756
|
});
|
|
725
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
757
|
+
Object.defineProperty(XCheckbox.prototype, "av", {
|
|
726
758
|
get: function () {
|
|
727
|
-
return this.
|
|
759
|
+
return this.am;
|
|
728
760
|
},
|
|
729
761
|
set: function (a) {
|
|
730
|
-
var b = this.
|
|
731
|
-
this.
|
|
732
|
-
if (b != this.
|
|
733
|
-
this.
|
|
762
|
+
var b = this.am;
|
|
763
|
+
this.am = a;
|
|
764
|
+
if (b != this.am) {
|
|
765
|
+
this.co("TickStrokeWidth", b, a);
|
|
734
766
|
}
|
|
735
767
|
},
|
|
736
|
-
enumerable:
|
|
768
|
+
enumerable: false,
|
|
737
769
|
configurable: true
|
|
738
770
|
});
|
|
739
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
771
|
+
Object.defineProperty(XCheckbox.prototype, "ap", {
|
|
740
772
|
get: function () {
|
|
741
|
-
return this.
|
|
773
|
+
return this.aj;
|
|
742
774
|
},
|
|
743
775
|
set: function (a) {
|
|
744
|
-
var b = this.
|
|
745
|
-
this.
|
|
746
|
-
if (b != this.
|
|
747
|
-
this.
|
|
776
|
+
var b = this.aj;
|
|
777
|
+
this.aj = a;
|
|
778
|
+
if (b != this.aj) {
|
|
779
|
+
this.co("ActualTickStrokeWidth", b, a);
|
|
748
780
|
}
|
|
749
781
|
},
|
|
750
|
-
enumerable:
|
|
782
|
+
enumerable: false,
|
|
751
783
|
configurable: true
|
|
752
784
|
});
|
|
753
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
785
|
+
Object.defineProperty(XCheckbox.prototype, "ao", {
|
|
754
786
|
get: function () {
|
|
755
|
-
return this.
|
|
787
|
+
return this.ai;
|
|
756
788
|
},
|
|
757
789
|
set: function (a) {
|
|
758
|
-
var b = this.
|
|
759
|
-
this.
|
|
760
|
-
if (b != this.
|
|
761
|
-
this.
|
|
790
|
+
var b = this.ai;
|
|
791
|
+
this.ai = a;
|
|
792
|
+
if (b != this.ai) {
|
|
793
|
+
this.co("ActualCornerRadius", b, a);
|
|
762
794
|
}
|
|
763
795
|
},
|
|
764
|
-
enumerable:
|
|
796
|
+
enumerable: false,
|
|
765
797
|
configurable: true
|
|
766
798
|
});
|
|
767
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
799
|
+
Object.defineProperty(XCheckbox.prototype, "c8", {
|
|
768
800
|
get: function () {
|
|
769
|
-
return this.
|
|
801
|
+
return this.cy;
|
|
770
802
|
},
|
|
771
803
|
set: function (a) {
|
|
772
|
-
var b = this.
|
|
773
|
-
this.
|
|
774
|
-
if (b != this.
|
|
775
|
-
this.
|
|
804
|
+
var b = this.cy;
|
|
805
|
+
this.cy = a;
|
|
806
|
+
if (b != this.cy) {
|
|
807
|
+
this.co("ActualCheckedBackgroundColor", b, a);
|
|
776
808
|
}
|
|
777
809
|
},
|
|
778
|
-
enumerable:
|
|
810
|
+
enumerable: false,
|
|
779
811
|
configurable: true
|
|
780
812
|
});
|
|
781
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
813
|
+
Object.defineProperty(XCheckbox.prototype, "b1", {
|
|
782
814
|
get: function () {
|
|
783
815
|
return this.a9;
|
|
784
816
|
},
|
|
@@ -786,13 +818,13 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
786
818
|
var b = this.a9;
|
|
787
819
|
this.a9 = a;
|
|
788
820
|
if (b != this.a9) {
|
|
789
|
-
this.
|
|
821
|
+
this.co("InputId", b, a);
|
|
790
822
|
}
|
|
791
823
|
},
|
|
792
|
-
enumerable:
|
|
824
|
+
enumerable: false,
|
|
793
825
|
configurable: true
|
|
794
826
|
});
|
|
795
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
827
|
+
Object.defineProperty(XCheckbox.prototype, "bz", {
|
|
796
828
|
get: function () {
|
|
797
829
|
return this.a8;
|
|
798
830
|
},
|
|
@@ -800,10 +832,10 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
800
832
|
var b = this.a8;
|
|
801
833
|
this.a8 = a;
|
|
802
834
|
if (b != this.a8) {
|
|
803
|
-
this.
|
|
835
|
+
this.co("Id", b, a);
|
|
804
836
|
}
|
|
805
837
|
},
|
|
806
|
-
enumerable:
|
|
838
|
+
enumerable: false,
|
|
807
839
|
configurable: true
|
|
808
840
|
});
|
|
809
841
|
Object.defineProperty(XCheckbox.prototype, "labelId", {
|
|
@@ -814,13 +846,13 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
814
846
|
var b = this.ba;
|
|
815
847
|
this.ba = a;
|
|
816
848
|
if (b != this.ba) {
|
|
817
|
-
this.
|
|
849
|
+
this.co("LabelId", b, a);
|
|
818
850
|
}
|
|
819
851
|
},
|
|
820
|
-
enumerable:
|
|
852
|
+
enumerable: false,
|
|
821
853
|
configurable: true
|
|
822
854
|
});
|
|
823
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
855
|
+
Object.defineProperty(XCheckbox.prototype, "ca", {
|
|
824
856
|
get: function () {
|
|
825
857
|
return this.bb;
|
|
826
858
|
},
|
|
@@ -828,49 +860,49 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
828
860
|
var b = this.bb;
|
|
829
861
|
this.bb = a;
|
|
830
862
|
if (b != this.bb) {
|
|
831
|
-
this.
|
|
863
|
+
this.co("Name", b, a);
|
|
832
864
|
}
|
|
833
865
|
},
|
|
834
|
-
enumerable:
|
|
866
|
+
enumerable: false,
|
|
835
867
|
configurable: true
|
|
836
868
|
});
|
|
837
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
869
|
+
Object.defineProperty(XCheckbox.prototype, "aa", {
|
|
838
870
|
get: function () {
|
|
839
|
-
return this.
|
|
871
|
+
return this.t;
|
|
840
872
|
},
|
|
841
|
-
enumerable:
|
|
873
|
+
enumerable: false,
|
|
842
874
|
configurable: true
|
|
843
875
|
});
|
|
844
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
876
|
+
Object.defineProperty(XCheckbox.prototype, "az", {
|
|
845
877
|
get: function () {
|
|
846
|
-
return this.
|
|
878
|
+
return this.ax;
|
|
847
879
|
},
|
|
848
880
|
set: function (a) {
|
|
849
|
-
var b = this.
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
if (b != this.
|
|
853
|
-
this.
|
|
881
|
+
var b = this.ax;
|
|
882
|
+
this.ax = a;
|
|
883
|
+
this.t = true;
|
|
884
|
+
if (b != this.ax) {
|
|
885
|
+
this.co("TabIndex", b, a);
|
|
854
886
|
}
|
|
855
887
|
},
|
|
856
|
-
enumerable:
|
|
888
|
+
enumerable: false,
|
|
857
889
|
configurable: true
|
|
858
890
|
});
|
|
859
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
891
|
+
Object.defineProperty(XCheckbox.prototype, "ay", {
|
|
860
892
|
get: function () {
|
|
861
|
-
return this.
|
|
893
|
+
return this.aw;
|
|
862
894
|
},
|
|
863
895
|
set: function (a) {
|
|
864
|
-
var b = this.
|
|
865
|
-
this.
|
|
866
|
-
if (b != this.
|
|
867
|
-
this.
|
|
896
|
+
var b = this.aw;
|
|
897
|
+
this.aw = a;
|
|
898
|
+
if (b != this.aw) {
|
|
899
|
+
this.co("Required", b, a);
|
|
868
900
|
}
|
|
869
901
|
},
|
|
870
|
-
enumerable:
|
|
902
|
+
enumerable: false,
|
|
871
903
|
configurable: true
|
|
872
904
|
});
|
|
873
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
905
|
+
Object.defineProperty(XCheckbox.prototype, "bn", {
|
|
874
906
|
get: function () {
|
|
875
907
|
return this.a7;
|
|
876
908
|
},
|
|
@@ -878,13 +910,13 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
878
910
|
var b = this.a7;
|
|
879
911
|
this.a7 = a;
|
|
880
912
|
if (b != this.a7) {
|
|
881
|
-
this.
|
|
913
|
+
this.co("AriaLabelledBy", b, a);
|
|
882
914
|
}
|
|
883
915
|
},
|
|
884
|
-
enumerable:
|
|
916
|
+
enumerable: false,
|
|
885
917
|
configurable: true
|
|
886
918
|
});
|
|
887
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
919
|
+
Object.defineProperty(XCheckbox.prototype, "bm", {
|
|
888
920
|
get: function () {
|
|
889
921
|
return this.a6;
|
|
890
922
|
},
|
|
@@ -892,38 +924,38 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
892
924
|
var b = this.a6;
|
|
893
925
|
this.a6 = a;
|
|
894
926
|
if (b != this.a6) {
|
|
895
|
-
this.
|
|
927
|
+
this.co("AriaLabel", b, a);
|
|
896
928
|
}
|
|
897
929
|
},
|
|
898
|
-
enumerable:
|
|
930
|
+
enumerable: false,
|
|
899
931
|
configurable: true
|
|
900
932
|
});
|
|
901
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
933
|
+
Object.defineProperty(XCheckbox.prototype, "a4", {
|
|
902
934
|
get: function () {
|
|
903
|
-
return this.
|
|
935
|
+
return this.a2;
|
|
904
936
|
},
|
|
905
937
|
set: function (a) {
|
|
906
|
-
var b = this.
|
|
907
|
-
this.
|
|
908
|
-
if (b != this.
|
|
909
|
-
this.
|
|
938
|
+
var b = this.a2;
|
|
939
|
+
this.a2 = a;
|
|
940
|
+
if (b != this.a2) {
|
|
941
|
+
this.co("Value", b, a);
|
|
910
942
|
}
|
|
911
943
|
},
|
|
912
|
-
enumerable:
|
|
944
|
+
enumerable: false,
|
|
913
945
|
configurable: true
|
|
914
946
|
});
|
|
915
947
|
Object.defineProperty(XCheckbox.prototype, "focused", {
|
|
916
948
|
get: function () {
|
|
917
|
-
return this.
|
|
949
|
+
return this.w;
|
|
918
950
|
},
|
|
919
951
|
set: function (a) {
|
|
920
|
-
var b = this.
|
|
921
|
-
this.
|
|
922
|
-
if (b != this.
|
|
923
|
-
this.
|
|
952
|
+
var b = this.w;
|
|
953
|
+
this.w = a;
|
|
954
|
+
if (b != this.w) {
|
|
955
|
+
this.co("IsFocused", b, a);
|
|
924
956
|
}
|
|
925
957
|
},
|
|
926
|
-
enumerable:
|
|
958
|
+
enumerable: false,
|
|
927
959
|
configurable: true
|
|
928
960
|
});
|
|
929
961
|
Object.defineProperty(XCheckbox.prototype, "e", {
|
|
@@ -934,89 +966,89 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
934
966
|
var b = this.d;
|
|
935
967
|
this.d = a;
|
|
936
968
|
if (b != this.d) {
|
|
937
|
-
this.
|
|
969
|
+
this.co("LabelPosition", enumGetBox(CheckboxLabelPosition_$type, b), enumGetBox(CheckboxLabelPosition_$type, a));
|
|
938
970
|
}
|
|
939
971
|
},
|
|
940
|
-
enumerable:
|
|
972
|
+
enumerable: false,
|
|
941
973
|
configurable: true
|
|
942
974
|
});
|
|
943
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
975
|
+
Object.defineProperty(XCheckbox.prototype, "y", {
|
|
944
976
|
get: function () {
|
|
945
|
-
return this.
|
|
977
|
+
return this.q;
|
|
946
978
|
},
|
|
947
979
|
set: function (a) {
|
|
948
|
-
var b = this.
|
|
949
|
-
this.
|
|
950
|
-
if (b != this.
|
|
951
|
-
this.
|
|
980
|
+
var b = this.q;
|
|
981
|
+
this.q = a;
|
|
982
|
+
if (b != this.q) {
|
|
983
|
+
this.co("DisableRipple", b, a);
|
|
952
984
|
}
|
|
953
985
|
},
|
|
954
|
-
enumerable:
|
|
986
|
+
enumerable: false,
|
|
955
987
|
configurable: true
|
|
956
988
|
});
|
|
957
989
|
Object.defineProperty(XCheckbox.prototype, "checked", {
|
|
958
990
|
get: function () {
|
|
959
|
-
return this.
|
|
991
|
+
return this.u;
|
|
960
992
|
},
|
|
961
993
|
set: function (a) {
|
|
962
|
-
var b = this.
|
|
963
|
-
this.
|
|
964
|
-
if (b != this.
|
|
965
|
-
this.
|
|
994
|
+
var b = this.u;
|
|
995
|
+
this.u = a;
|
|
996
|
+
if (b != this.u) {
|
|
997
|
+
this.co("IsChecked", b, a);
|
|
966
998
|
}
|
|
967
999
|
},
|
|
968
|
-
enumerable:
|
|
1000
|
+
enumerable: false,
|
|
969
1001
|
configurable: true
|
|
970
1002
|
});
|
|
971
1003
|
Object.defineProperty(XCheckbox.prototype, "indeterminate", {
|
|
972
1004
|
get: function () {
|
|
973
|
-
return this.
|
|
1005
|
+
return this.x;
|
|
974
1006
|
},
|
|
975
1007
|
set: function (a) {
|
|
976
|
-
var b = this.
|
|
977
|
-
this.
|
|
978
|
-
if (b != this.
|
|
979
|
-
this.
|
|
1008
|
+
var b = this.x;
|
|
1009
|
+
this.x = a;
|
|
1010
|
+
if (b != this.x) {
|
|
1011
|
+
this.co("IsIndeterminate", b, a);
|
|
980
1012
|
}
|
|
981
1013
|
},
|
|
982
|
-
enumerable:
|
|
1014
|
+
enumerable: false,
|
|
983
1015
|
configurable: true
|
|
984
1016
|
});
|
|
985
1017
|
Object.defineProperty(XCheckbox.prototype, "disabled", {
|
|
986
1018
|
get: function () {
|
|
987
|
-
return this.
|
|
1019
|
+
return this.v;
|
|
988
1020
|
},
|
|
989
1021
|
set: function (a) {
|
|
990
|
-
var b = this.
|
|
991
|
-
this.
|
|
992
|
-
if (b != this.
|
|
993
|
-
this.
|
|
1022
|
+
var b = this.v;
|
|
1023
|
+
this.v = a;
|
|
1024
|
+
if (b != this.v) {
|
|
1025
|
+
this.co("IsDisabled", b, a);
|
|
994
1026
|
}
|
|
995
1027
|
},
|
|
996
|
-
enumerable:
|
|
1028
|
+
enumerable: false,
|
|
997
1029
|
configurable: true
|
|
998
1030
|
});
|
|
999
|
-
Object.defineProperty(XCheckbox.prototype, "
|
|
1031
|
+
Object.defineProperty(XCheckbox.prototype, "z", {
|
|
1000
1032
|
get: function () {
|
|
1001
|
-
return this.
|
|
1033
|
+
return this.r;
|
|
1002
1034
|
},
|
|
1003
1035
|
set: function (a) {
|
|
1004
|
-
var b = this.
|
|
1005
|
-
this.
|
|
1006
|
-
if (b != this.
|
|
1007
|
-
this.
|
|
1036
|
+
var b = this.r;
|
|
1037
|
+
this.r = a;
|
|
1038
|
+
if (b != this.r) {
|
|
1039
|
+
this.co("DisableTransitions", b, a);
|
|
1008
1040
|
}
|
|
1009
1041
|
},
|
|
1010
|
-
enumerable:
|
|
1042
|
+
enumerable: false,
|
|
1011
1043
|
configurable: true
|
|
1012
1044
|
});
|
|
1013
|
-
XCheckbox.prototype.
|
|
1014
|
-
this.
|
|
1045
|
+
XCheckbox.prototype.cp = function () {
|
|
1046
|
+
this.ck();
|
|
1015
1047
|
if (this.checked) {
|
|
1016
|
-
this.view.
|
|
1048
|
+
this.view.aj(BrushUtil.p(this.c8, 0.6), BrushUtil.p(this.c8, 0.1));
|
|
1017
1049
|
}
|
|
1018
1050
|
else {
|
|
1019
|
-
this.view.
|
|
1051
|
+
this.view.aj(BrushUtil.p(this.c8, 0.6), BrushUtil.p(this.dc, 0.1));
|
|
1020
1052
|
}
|
|
1021
1053
|
};
|
|
1022
1054
|
Object.defineProperty(XCheckbox.prototype, "a", {
|
|
@@ -1026,28 +1058,28 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1026
1058
|
a.b = 0;
|
|
1027
1059
|
return a;
|
|
1028
1060
|
},
|
|
1029
|
-
enumerable:
|
|
1061
|
+
enumerable: false,
|
|
1030
1062
|
configurable: true
|
|
1031
1063
|
});
|
|
1032
|
-
XCheckbox.prototype.
|
|
1033
|
-
this.view.
|
|
1064
|
+
XCheckbox.prototype.ck = function () {
|
|
1065
|
+
this.view.z();
|
|
1034
1066
|
var a = false;
|
|
1035
|
-
if (this.
|
|
1067
|
+
if (this.o == null) {
|
|
1036
1068
|
if (!a) {
|
|
1037
1069
|
a = true;
|
|
1038
|
-
this.view.
|
|
1070
|
+
this.view.ag();
|
|
1039
1071
|
}
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1072
|
+
this.o = KeyFrameAnimationFactory.f.c(this.view.a(this.a).m(new AnimationKeyFrameProperty(2, this.db), new AnimationKeyFrameProperty(3, this.dc)).m(new AnimationKeyFrameProperty(2, this.c8), new AnimationKeyFrameProperty(3, this.c9)));
|
|
1073
|
+
this.p = KeyFrameAnimationFactory.f.c(this.view.b(this.a).m(new AnimationKeyFrameProperty(19, 24), new AnimationKeyFrameProperty(1, 0)).m(new AnimationKeyFrameProperty(19, 0), new AnimationKeyFrameProperty(1, 1)));
|
|
1042
1074
|
}
|
|
1043
1075
|
};
|
|
1044
1076
|
XCheckbox.prototype.toggle = function () {
|
|
1045
1077
|
if (this.disabled) {
|
|
1046
1078
|
return;
|
|
1047
1079
|
}
|
|
1048
|
-
this.
|
|
1080
|
+
this.ck();
|
|
1049
1081
|
this.focused = false;
|
|
1050
|
-
this.
|
|
1082
|
+
this.s = true;
|
|
1051
1083
|
var a = false;
|
|
1052
1084
|
if (this.indeterminate) {
|
|
1053
1085
|
a = true;
|
|
@@ -1055,8 +1087,8 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1055
1087
|
}
|
|
1056
1088
|
this.indeterminate = false;
|
|
1057
1089
|
this.checked = !this.checked;
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1090
|
+
this.s = false;
|
|
1091
|
+
this.cv(a);
|
|
1060
1092
|
if (this.change != null) {
|
|
1061
1093
|
var b = new CheckboxChangeEventArgs();
|
|
1062
1094
|
b.isChecked = this.checked;
|
|
@@ -1064,9 +1096,9 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1064
1096
|
this.change(this, b);
|
|
1065
1097
|
}
|
|
1066
1098
|
};
|
|
1067
|
-
XCheckbox.prototype.
|
|
1099
|
+
XCheckbox.prototype.cv = function (a) {
|
|
1068
1100
|
var _this = this;
|
|
1069
|
-
this.
|
|
1101
|
+
this.ck();
|
|
1070
1102
|
var b = this.checked;
|
|
1071
1103
|
if (this.indeterminate) {
|
|
1072
1104
|
b = true;
|
|
@@ -1076,17 +1108,17 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1076
1108
|
c = -1;
|
|
1077
1109
|
}
|
|
1078
1110
|
if (b) {
|
|
1079
|
-
this.view.
|
|
1111
|
+
this.view.aj(BrushUtil.p(this.c8, 0.6), BrushUtil.p(this.c8, 0.1));
|
|
1080
1112
|
}
|
|
1081
1113
|
else {
|
|
1082
|
-
this.view.
|
|
1114
|
+
this.view.aj(BrushUtil.p(this.c8, 0.6), BrushUtil.p(this.dc, 0.1));
|
|
1083
1115
|
}
|
|
1084
1116
|
if (!this.indeterminate) {
|
|
1085
|
-
NativeUI.
|
|
1117
|
+
NativeUI.ad(this.view.t, null);
|
|
1086
1118
|
}
|
|
1087
|
-
if (this.
|
|
1088
|
-
var d = this.view.
|
|
1089
|
-
var e = this.view.
|
|
1119
|
+
if (this.z || this.indeterminate || a) {
|
|
1120
|
+
var d = this.view.s;
|
|
1121
|
+
var e = this.view.t;
|
|
1090
1122
|
if (this.indeterminate) {
|
|
1091
1123
|
var f = new TransformGroup();
|
|
1092
1124
|
f.j.add(((function () {
|
|
@@ -1099,127 +1131,173 @@ var XCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1099
1131
|
$ret.j = -_this.view.k();
|
|
1100
1132
|
return $ret;
|
|
1101
1133
|
})()));
|
|
1102
|
-
NativeUI.
|
|
1103
|
-
NativeUI.
|
|
1104
|
-
NativeUI.
|
|
1105
|
-
NativeUI.
|
|
1106
|
-
NativeUI.
|
|
1134
|
+
NativeUI.l(d, this.c8);
|
|
1135
|
+
NativeUI.m(d, this.c9);
|
|
1136
|
+
NativeUI.w(e, 1);
|
|
1137
|
+
NativeUI.aa(e, 41);
|
|
1138
|
+
NativeUI.ad(e, f);
|
|
1107
1139
|
}
|
|
1108
1140
|
else if (b) {
|
|
1109
|
-
NativeUI.
|
|
1110
|
-
NativeUI.
|
|
1111
|
-
NativeUI.
|
|
1112
|
-
NativeUI.
|
|
1141
|
+
NativeUI.l(d, this.c8);
|
|
1142
|
+
NativeUI.m(d, this.c9);
|
|
1143
|
+
NativeUI.w(e, 1);
|
|
1144
|
+
NativeUI.aa(e, 0);
|
|
1113
1145
|
}
|
|
1114
1146
|
else {
|
|
1115
|
-
NativeUI.
|
|
1116
|
-
NativeUI.
|
|
1117
|
-
NativeUI.
|
|
1118
|
-
NativeUI.
|
|
1147
|
+
NativeUI.l(d, this.db);
|
|
1148
|
+
NativeUI.m(d, this.dc);
|
|
1149
|
+
NativeUI.w(e, 0);
|
|
1150
|
+
NativeUI.aa(e, 24);
|
|
1119
1151
|
}
|
|
1120
|
-
if (this.
|
|
1121
|
-
this.
|
|
1152
|
+
if (this.o.playState == 1) {
|
|
1153
|
+
this.o.cancel();
|
|
1122
1154
|
}
|
|
1123
|
-
if (this.
|
|
1124
|
-
this.
|
|
1155
|
+
if (this.p.playState == 1) {
|
|
1156
|
+
this.p.cancel();
|
|
1125
1157
|
}
|
|
1126
1158
|
return;
|
|
1127
1159
|
}
|
|
1128
|
-
if ((c > 0 && this.
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
if (_this.
|
|
1132
|
-
_this.
|
|
1160
|
+
if ((c > 0 && this.o.playbackRate < 0) || (c < 0 && this.o.playbackRate > 0)) {
|
|
1161
|
+
this.o.reverse();
|
|
1162
|
+
this.o.finished.f(function (g) {
|
|
1163
|
+
if (_this.o != null) {
|
|
1164
|
+
_this.o.commitStyles();
|
|
1133
1165
|
}
|
|
1134
1166
|
});
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
if (_this.
|
|
1138
|
-
_this.
|
|
1167
|
+
this.p.reverse();
|
|
1168
|
+
this.p.finished.f(function (g) {
|
|
1169
|
+
if (_this.p != null) {
|
|
1170
|
+
_this.p.commitStyles();
|
|
1139
1171
|
}
|
|
1140
1172
|
});
|
|
1141
1173
|
}
|
|
1142
1174
|
else {
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1145
|
-
if (_this.
|
|
1146
|
-
_this.
|
|
1175
|
+
this.o.play();
|
|
1176
|
+
this.o.finished.f(function (g) {
|
|
1177
|
+
if (_this.o != null) {
|
|
1178
|
+
_this.o.commitStyles();
|
|
1147
1179
|
}
|
|
1148
1180
|
});
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1151
|
-
if (_this.
|
|
1152
|
-
_this.
|
|
1181
|
+
this.p.play();
|
|
1182
|
+
this.p.finished.f(function (g) {
|
|
1183
|
+
if (_this.p != null) {
|
|
1184
|
+
_this.p.commitStyles();
|
|
1153
1185
|
}
|
|
1154
1186
|
});
|
|
1155
1187
|
}
|
|
1156
1188
|
};
|
|
1157
1189
|
XCheckbox.prototype.onDetachedFromUI = function () {
|
|
1158
|
-
this.view.
|
|
1190
|
+
this.view.ad();
|
|
1159
1191
|
};
|
|
1160
1192
|
XCheckbox.prototype.onAttachedToUI = function () {
|
|
1161
|
-
this.view.
|
|
1193
|
+
this.view.ab();
|
|
1162
1194
|
};
|
|
1163
1195
|
XCheckbox.prototype.onContentReady = function () {
|
|
1164
1196
|
if (this.indeterminate) {
|
|
1165
|
-
this.
|
|
1197
|
+
this.cv(false);
|
|
1166
1198
|
}
|
|
1167
1199
|
};
|
|
1168
|
-
XCheckbox.prototype.
|
|
1200
|
+
XCheckbox.prototype.af = function () {
|
|
1169
1201
|
return this.view.i();
|
|
1170
1202
|
};
|
|
1171
|
-
XCheckbox.prototype.
|
|
1203
|
+
XCheckbox.prototype.a3 = function () {
|
|
1172
1204
|
return this.b();
|
|
1173
1205
|
};
|
|
1174
|
-
XCheckbox.prototype.
|
|
1206
|
+
XCheckbox.prototype.by = function () {
|
|
1175
1207
|
var a = this.b();
|
|
1176
1208
|
return a.s();
|
|
1177
1209
|
};
|
|
1178
1210
|
XCheckbox.prototype.b = function () {
|
|
1179
1211
|
var a = new CheckboxVisualModelExport();
|
|
1180
|
-
a.f = this.
|
|
1181
|
-
a.d = AppearanceHelper.a(this.
|
|
1182
|
-
a.c = AppearanceHelper.a(this.
|
|
1183
|
-
a.e = AppearanceHelper.a(this.
|
|
1184
|
-
a.b = AppearanceHelper.a(this.
|
|
1185
|
-
a.o = this.
|
|
1186
|
-
a.l = this.
|
|
1187
|
-
a.p = this.
|
|
1188
|
-
a.q = this.
|
|
1189
|
-
a.n = this.
|
|
1190
|
-
a.m = this.
|
|
1191
|
-
a.a = AppearanceHelper.a(this.
|
|
1192
|
-
a.r = this.
|
|
1212
|
+
a.f = this.n;
|
|
1213
|
+
a.d = AppearanceHelper.a(this.db);
|
|
1214
|
+
a.c = AppearanceHelper.a(this.da);
|
|
1215
|
+
a.e = AppearanceHelper.a(this.dc);
|
|
1216
|
+
a.b = AppearanceHelper.a(this.c9);
|
|
1217
|
+
a.o = this.aq;
|
|
1218
|
+
a.l = this.an;
|
|
1219
|
+
a.p = this.ar;
|
|
1220
|
+
a.q = this.av;
|
|
1221
|
+
a.n = this.ap;
|
|
1222
|
+
a.m = this.ao;
|
|
1223
|
+
a.a = AppearanceHelper.a(this.c8);
|
|
1224
|
+
a.r = this.a4;
|
|
1193
1225
|
a.j = this.focused;
|
|
1194
|
-
a.g = this.
|
|
1226
|
+
a.g = this.y;
|
|
1195
1227
|
a.h = this.checked;
|
|
1196
1228
|
a.k = this.indeterminate;
|
|
1197
1229
|
a.i = this.disabled;
|
|
1198
1230
|
return a;
|
|
1199
1231
|
};
|
|
1200
1232
|
XCheckbox.prototype.provideContainer = function (a) {
|
|
1201
|
-
this.view.
|
|
1233
|
+
this.view.ac(a);
|
|
1202
1234
|
};
|
|
1203
1235
|
XCheckbox.$t = markType(XCheckbox, 'XCheckbox', Base.$, [INotifyPropertyChanged_$type]);
|
|
1204
|
-
XCheckbox.
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
XCheckbox.
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1236
|
+
XCheckbox.g = ThemeResolver.a(((function () {
|
|
1237
|
+
var $ret = new Dictionary$2(String_$type, Base.$, 0);
|
|
1238
|
+
$ret.addItem("CheckPath", "M4.1,12.7 9,17.6 20.3,6.3");
|
|
1239
|
+
$ret.addItem("UncheckedBorderColor", BrushUtil.g(255, 153, 153, 153));
|
|
1240
|
+
$ret.addItem("CheckedBorderColor", BrushUtil.g(138, 33, 150, 243));
|
|
1241
|
+
$ret.addItem("UncheckedBackgroundColor", BrushUtil.g(255, 255, 255, 255));
|
|
1242
|
+
$ret.addItem("CheckedBackgroundColor", BrushUtil.g(255, 33, 150, 243));
|
|
1243
|
+
$ret.addItem("TickColor", BrushUtil.g(255, 255, 255, 255));
|
|
1244
|
+
$ret.addItem("TickStrokeWidth", 3);
|
|
1245
|
+
$ret.addItem("BorderWidth", NaN);
|
|
1246
|
+
$ret.addItem("CornerRadius", 2);
|
|
1247
|
+
return $ret;
|
|
1248
|
+
})()));
|
|
1249
|
+
XCheckbox.h = ThemeResolver.a(((function () {
|
|
1250
|
+
var $ret = new Dictionary$2(String_$type, Base.$, 0);
|
|
1251
|
+
$ret.addItem("CheckPath", "M4.1,12.7 9,17.6 20.3,6.3");
|
|
1252
|
+
$ret.addItem("UncheckedBorderColor", BrushUtil.g(138, 0, 0, 0));
|
|
1253
|
+
$ret.addItem("CheckedBorderColor", BrushUtil.g(138, 0, 0, 0));
|
|
1254
|
+
$ret.addItem("UncheckedBackgroundColor", BrushUtil.g(255, 255, 255, 255));
|
|
1255
|
+
$ret.addItem("CheckedBackgroundColor", BrushUtil.g(255, 228, 28, 119));
|
|
1256
|
+
$ret.addItem("TickColor", BrushUtil.g(255, 255, 255, 255));
|
|
1257
|
+
$ret.addItem("TickStrokeWidth", 3);
|
|
1258
|
+
$ret.addItem("BorderWidth", NaN);
|
|
1259
|
+
$ret.addItem("CornerRadius", 2);
|
|
1260
|
+
return $ret;
|
|
1261
|
+
})()));
|
|
1262
|
+
XCheckbox.j = ThemeResolver.a(((function () {
|
|
1263
|
+
var $ret = new Dictionary$2(String_$type, Base.$, 0);
|
|
1264
|
+
$ret.addItem("CheckPath", "M5.1,12.7 9,17.6 19,9");
|
|
1265
|
+
$ret.addItem("UncheckedBorderColor", BrushUtil.g(255, 105, 136, 255));
|
|
1266
|
+
$ret.addItem("CheckedBorderColor", BrushUtil.g(255, 105, 136, 255));
|
|
1267
|
+
$ret.addItem("UncheckedBackgroundColor", BrushUtil.g(255, 255, 255, 255));
|
|
1268
|
+
$ret.addItem("CheckedBackgroundColor", BrushUtil.g(255, 105, 136, 255));
|
|
1269
|
+
$ret.addItem("TickColor", BrushUtil.g(255, 255, 255, 255));
|
|
1270
|
+
$ret.addItem("TickStrokeWidth", 3);
|
|
1271
|
+
$ret.addItem("BorderWidth", NaN);
|
|
1272
|
+
$ret.addItem("CornerRadius", 2);
|
|
1273
|
+
return $ret;
|
|
1274
|
+
})()));
|
|
1275
|
+
XCheckbox.i = ThemeResolver.a(((function () {
|
|
1276
|
+
var $ret = new Dictionary$2(String_$type, Base.$, 0);
|
|
1277
|
+
$ret.addItem("CheckPath", "M5.1,12.7 9,17.6 19,9");
|
|
1278
|
+
$ret.addItem("UncheckedBorderColor", BrushUtil.g(255, 105, 136, 255));
|
|
1279
|
+
$ret.addItem("CheckedBorderColor", BrushUtil.g(255, 105, 136, 255));
|
|
1280
|
+
$ret.addItem("UncheckedBackgroundColor", BrushUtil.g(255, 55, 63, 86));
|
|
1281
|
+
$ret.addItem("CheckedBackgroundColor", BrushUtil.g(255, 105, 136, 255));
|
|
1282
|
+
$ret.addItem("TickColor", BrushUtil.g(255, 255, 255, 255));
|
|
1283
|
+
$ret.addItem("TickStrokeWidth", 3);
|
|
1284
|
+
$ret.addItem("BorderWidth", NaN);
|
|
1285
|
+
$ret.addItem("CornerRadius", 2);
|
|
1286
|
+
return $ret;
|
|
1287
|
+
})()));
|
|
1288
|
+
XCheckbox.k = new ThemeResolver(1, ((function () {
|
|
1289
|
+
var $ret = new Dictionary$2(BaseControlTheme_$type, Theme.$, 0);
|
|
1290
|
+
$ret.addItem(2, XCheckbox.h);
|
|
1291
|
+
$ret.addItem(1, XCheckbox.g);
|
|
1292
|
+
$ret.addItem(3, XCheckbox.j);
|
|
1293
|
+
$ret.addItem(4, XCheckbox.i);
|
|
1294
|
+
$ret.addItem(5, XCheckbox.j);
|
|
1295
|
+
$ret.addItem(6, XCheckbox.i);
|
|
1296
|
+
return $ret;
|
|
1297
|
+
})()), 2);
|
|
1298
|
+
XCheckbox.m = 2;
|
|
1222
1299
|
XCheckbox.a1 = 0;
|
|
1300
|
+
XCheckbox.a0 = 0;
|
|
1223
1301
|
return XCheckbox;
|
|
1224
1302
|
}(Base));
|
|
1225
1303
|
export { XCheckbox };
|