igniteui-angular-inputs 17.3.1-alpha.0 → 18.1.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 +971 -753
- package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupVisualModelExport.js +1 -1
- package/esm2015/lib/ButtonView_combined.js +28 -33
- package/esm2015/lib/ButtonVisualModelExport.js +14 -13
- package/esm2015/lib/CalendarView_combined.js +2 -0
- package/esm2015/lib/CalendarVisualModelExport.js +1 -1
- package/esm2015/lib/CheckboxView_combined.js +2 -2
- package/esm2015/lib/DatePickerView_combined.js +325 -322
- package/esm2015/lib/IconView_combined.js +310 -201
- package/esm2015/lib/IconVisualModelExport.js +46 -33
- package/esm2015/lib/NativeUIXInputsFactory.js +9 -9
- package/esm2015/lib/TextBlockVisualModelExport.js +64 -0
- package/esm2015/lib/XButtonBridge.js +11 -4
- package/esm2015/lib/XCheckboxBridge.js +19 -0
- package/esm2015/lib/{DatePicker.js → XDatePicker.js} +1 -1
- package/esm2015/lib/XIconBridge.js +6 -0
- package/esm2015/lib/XIconButtonBridge.js +1 -1
- package/esm2015/lib/XInputBridge.js +3 -0
- package/esm2015/lib/XPopupBridge.js +11 -8
- package/esm2015/lib/{igx-date-picker-component.js → igx-x-date-picker-component.js} +40 -40
- package/esm2015/lib/{igx-date-picker-dynamic-module.js → igx-x-date-picker-dynamic-module.js} +20 -20
- package/esm2015/lib/{igx-date-picker-module.js → igx-x-date-picker-module.js} +14 -14
- package/esm2015/public_api.js +5 -4
- package/esm5/lib/ButtonGroupVisualModelExport.js +1 -1
- package/esm5/lib/ButtonView_combined.js +33 -38
- package/esm5/lib/ButtonVisualModelExport.js +14 -13
- package/esm5/lib/CalendarView_combined.js +2 -0
- package/esm5/lib/CalendarVisualModelExport.js +1 -1
- package/esm5/lib/CheckboxView_combined.js +2 -2
- package/esm5/lib/DatePickerView_combined.js +336 -333
- package/esm5/lib/IconView_combined.js +308 -199
- package/esm5/lib/IconVisualModelExport.js +50 -33
- package/esm5/lib/NativeUIXInputsFactory.js +9 -9
- package/esm5/lib/TextBlockVisualModelExport.js +66 -0
- package/esm5/lib/XButtonBridge.js +11 -4
- package/esm5/lib/XCheckboxBridge.js +19 -0
- package/esm5/lib/{DatePicker.js → XDatePicker.js} +1 -1
- package/esm5/lib/XIconBridge.js +6 -0
- package/esm5/lib/XIconButtonBridge.js +1 -1
- package/esm5/lib/XInputBridge.js +3 -0
- package/esm5/lib/XPopupBridge.js +11 -8
- package/esm5/lib/{igx-date-picker-component.js → igx-x-date-picker-component.js} +87 -87
- package/esm5/lib/{igx-date-picker-dynamic-module.js → igx-x-date-picker-dynamic-module.js} +21 -21
- package/esm5/lib/{igx-date-picker-module.js → igx-x-date-picker-module.js} +15 -15
- package/esm5/public_api.js +5 -4
- package/fesm2015/igniteui-angular-inputs.js +906 -693
- package/fesm5/igniteui-angular-inputs.js +968 -751
- package/lib/ButtonVisualModelExport.d.ts +6 -5
- package/lib/DatePickerView_combined.d.ts +75 -74
- package/lib/IconView_combined.d.ts +35 -32
- package/lib/IconVisualModelExport.d.ts +17 -12
- package/lib/TextBlockVisualModelExport.d.ts +21 -0
- package/lib/XButtonBridge.d.ts +1 -0
- package/lib/XCheckboxBridge.d.ts +1 -0
- package/lib/XDatePicker.d.ts +1 -0
- package/lib/XIconBridge.d.ts +1 -0
- package/lib/XInputBridge.d.ts +1 -0
- package/lib/XPopupBridge.d.ts +1 -0
- package/lib/{igx-date-picker-component.d.ts → igx-x-date-picker-component.d.ts} +6 -6
- package/lib/igx-x-date-picker-dynamic-module.d.ts +13 -0
- package/lib/igx-x-date-picker-module.d.ts +13 -0
- package/package.json +5 -5
- package/public_api.d.ts +5 -4
- package/lib/DatePicker.d.ts +0 -1
- package/lib/igx-date-picker-dynamic-module.d.ts +0 -13
- package/lib/igx-date-picker-module.d.ts +0 -13
|
@@ -5,7 +5,7 @@ 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
7
|
import { __extends, __values } from "tslib";
|
|
8
|
-
import { Base, String_$type, Delegate_$type, fromEnum, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-angular-core";
|
|
8
|
+
import { Base, String_$type, Delegate_$type, fromEnum, runOn, typeCast, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-angular-core";
|
|
9
9
|
import { DomWrapper_$type } from "igniteui-angular-core";
|
|
10
10
|
import { List$1 } from "igniteui-angular-core";
|
|
11
11
|
import { Tuple$2 } from "igniteui-angular-core";
|
|
@@ -14,12 +14,21 @@ import { FastIterationDictionary$2 } from "igniteui-angular-core";
|
|
|
14
14
|
import { Dictionary$2 } from "igniteui-angular-core";
|
|
15
15
|
import { Brush } from "igniteui-angular-core";
|
|
16
16
|
import { NativeUI } from "igniteui-angular-core";
|
|
17
|
+
import { PrimitiveVisualData } from "igniteui-angular-core";
|
|
18
|
+
import { Path } from "igniteui-angular-core";
|
|
19
|
+
import { Line } from "igniteui-angular-core";
|
|
20
|
+
import { Rectangle } from "igniteui-angular-core";
|
|
21
|
+
import { Ellipse } from "igniteui-angular-core";
|
|
22
|
+
import { PathVisualData } from "igniteui-angular-core";
|
|
23
|
+
import { LineVisualData } from "igniteui-angular-core";
|
|
24
|
+
import { RectangleVisualData } from "igniteui-angular-core";
|
|
25
|
+
import { EllipseVisualData } from "igniteui-angular-core";
|
|
26
|
+
import { DoubleCollection } from "igniteui-angular-core";
|
|
17
27
|
import { isNaN_ } from "igniteui-angular-core";
|
|
18
28
|
import { IIcon_$type } from "igniteui-angular-core";
|
|
19
29
|
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
20
30
|
import { IconClickedEventArgs } from "./IconClickedEventArgs";
|
|
21
31
|
import { IconVisualModelExport } from "./IconVisualModelExport";
|
|
22
|
-
import { AppearanceHelper } from "igniteui-angular-core";
|
|
23
32
|
import { FontUtil } from "igniteui-angular-core";
|
|
24
33
|
import { stringStartsWith } from "igniteui-angular-core";
|
|
25
34
|
import { trimStart } from "igniteui-angular-core";
|
|
@@ -31,48 +40,45 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
31
40
|
function IconView() {
|
|
32
41
|
var _this = _super.call(this) || this;
|
|
33
42
|
_this.d = null;
|
|
34
|
-
_this.
|
|
43
|
+
_this.v = null;
|
|
35
44
|
_this.g = null;
|
|
36
|
-
_this.
|
|
37
|
-
_this.o = null;
|
|
38
|
-
_this.p = null;
|
|
45
|
+
_this.o = new List$1(Delegate_$type, 0);
|
|
39
46
|
_this.q = null;
|
|
40
47
|
_this.r = null;
|
|
41
48
|
_this.s = null;
|
|
49
|
+
_this.t = null;
|
|
50
|
+
_this.u = null;
|
|
42
51
|
_this.e = null;
|
|
43
52
|
_this.f = null;
|
|
44
53
|
_this.ab = null;
|
|
45
|
-
_this.
|
|
46
|
-
_this.
|
|
47
|
-
_this.
|
|
48
|
-
_this.
|
|
49
|
-
_this.h = true;
|
|
54
|
+
_this.n = new Dictionary$2(Brush.$, String_$type, 0);
|
|
55
|
+
_this.j = true;
|
|
56
|
+
_this.y = null;
|
|
57
|
+
_this.x = null;
|
|
50
58
|
_this.w = null;
|
|
51
|
-
_this.
|
|
52
|
-
_this.u = null;
|
|
53
|
-
_this.n = new List$1(DomWrapper_$type, 0);
|
|
54
|
-
_this.o = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
55
|
-
_this.p = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
59
|
+
_this.p = new List$1(DomWrapper_$type, 0);
|
|
56
60
|
_this.q = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
57
61
|
_this.r = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
58
62
|
_this.s = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
63
|
+
_this.t = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
64
|
+
_this.u = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
59
65
|
_this.e = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0);
|
|
60
66
|
_this.f = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0);
|
|
61
67
|
return _this;
|
|
62
68
|
}
|
|
63
|
-
IconView.prototype.
|
|
69
|
+
IconView.prototype.ak = function () {
|
|
64
70
|
};
|
|
65
|
-
IconView.prototype.
|
|
71
|
+
IconView.prototype.l = function () {
|
|
66
72
|
return true;
|
|
67
73
|
};
|
|
68
|
-
Object.defineProperty(IconView.prototype, "
|
|
74
|
+
Object.defineProperty(IconView.prototype, "z", {
|
|
69
75
|
get: function () {
|
|
70
|
-
return this.
|
|
76
|
+
return this.y;
|
|
71
77
|
},
|
|
72
78
|
enumerable: false,
|
|
73
79
|
configurable: true
|
|
74
80
|
});
|
|
75
|
-
Object.defineProperty(IconView.prototype, "
|
|
81
|
+
Object.defineProperty(IconView.prototype, "aa", {
|
|
76
82
|
get: function () {
|
|
77
83
|
return null;
|
|
78
84
|
},
|
|
@@ -81,23 +87,23 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
81
87
|
});
|
|
82
88
|
Object.defineProperty(IconView.prototype, "c", {
|
|
83
89
|
get: function () {
|
|
84
|
-
return this.
|
|
90
|
+
return this.p.toArray();
|
|
85
91
|
},
|
|
86
92
|
enumerable: false,
|
|
87
93
|
configurable: true
|
|
88
94
|
});
|
|
89
|
-
Object.defineProperty(IconView.prototype, "
|
|
95
|
+
Object.defineProperty(IconView.prototype, "m", {
|
|
90
96
|
get: function () {
|
|
91
97
|
return true;
|
|
92
98
|
},
|
|
93
99
|
enumerable: false,
|
|
94
100
|
configurable: true
|
|
95
101
|
});
|
|
96
|
-
IconView.prototype.
|
|
102
|
+
IconView.prototype.ai = function (a) {
|
|
97
103
|
var e_1, _a;
|
|
98
104
|
if (a == null) {
|
|
99
105
|
try {
|
|
100
|
-
for (var _b = __values(fromEnum(this.
|
|
106
|
+
for (var _b = __values(fromEnum(this.o)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
101
107
|
var b = _c.value;
|
|
102
108
|
b();
|
|
103
109
|
}
|
|
@@ -115,114 +121,109 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
115
121
|
throw e_1.error;
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
|
-
this.
|
|
119
|
-
if (this.
|
|
120
|
-
this.
|
|
124
|
+
this.o.clear();
|
|
125
|
+
if (this.y != null) {
|
|
126
|
+
this.y.unlistenAll();
|
|
121
127
|
}
|
|
122
|
-
if (this.
|
|
123
|
-
this.
|
|
128
|
+
if (this.x != null) {
|
|
129
|
+
this.x.unlistenAll();
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
|
-
this.
|
|
132
|
+
this.v = a;
|
|
127
133
|
a.rootWrapper.setStyleProperty("position", "relative");
|
|
128
|
-
this.
|
|
129
|
-
this.
|
|
130
|
-
this.
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
var c = this.
|
|
134
|
+
this.v.rootWrapper.setStyleProperty("display", "flex");
|
|
135
|
+
this.v.rootWrapper.setStyleProperty("flex-direction", "row");
|
|
136
|
+
this.v.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
|
|
137
|
+
this.v.rootWrapper.setStyleProperty("align-items", "center");
|
|
138
|
+
this.v.rootWrapper.setStyleProperty("justify-content", "center");
|
|
139
|
+
this.ar();
|
|
140
|
+
var c = this.v.createElementNS("svg", "http://www.w3.org/2000/svg");
|
|
135
141
|
c.setStyleProperty("position", "absolute");
|
|
136
142
|
c.setStyleProperty("top", "0");
|
|
137
143
|
c.setStyleProperty("left", "0");
|
|
138
144
|
c.setStyleProperty("right", "0");
|
|
139
145
|
c.setStyleProperty("bottom", "0");
|
|
140
|
-
this.
|
|
141
|
-
var d = this.
|
|
146
|
+
this.y = c;
|
|
147
|
+
var d = this.v.createElement("img");
|
|
142
148
|
d.setStyleProperty("height", "100%");
|
|
143
149
|
d.setStyleProperty("width", "100%");
|
|
144
150
|
d.setStyleProperty("object-fit", "contain");
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
+
this.x = d;
|
|
152
|
+
this.aw();
|
|
153
|
+
this.w = a.createElementNS("defs", "http://www.w3.org/2000/svg");
|
|
154
|
+
this.y.append(this.w);
|
|
155
|
+
this.v.append(this.y);
|
|
156
|
+
this.o.add(c.listen("click", runOn(this, this.ah)));
|
|
151
157
|
this.d.cc();
|
|
152
158
|
};
|
|
153
|
-
IconView.prototype.
|
|
154
|
-
this.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
166
|
-
this.n.add(b);
|
|
159
|
+
IconView.prototype.at = function (a) {
|
|
160
|
+
this.n.clear();
|
|
161
|
+
this.v.rootWrapper.removeChildren();
|
|
162
|
+
this.v.rootWrapper.append(this.y);
|
|
163
|
+
this.y.removeChildren();
|
|
164
|
+
this.w.removeChildren();
|
|
165
|
+
this.p.clear();
|
|
166
|
+
if (a != null) {
|
|
167
|
+
var b = this.v.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
168
|
+
b.setAttribute("d", a);
|
|
169
|
+
this.y.append(this.w);
|
|
170
|
+
this.y.append(b);
|
|
171
|
+
this.p.add(b);
|
|
167
172
|
}
|
|
168
173
|
};
|
|
169
|
-
IconView.prototype.
|
|
170
|
-
this.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this.
|
|
178
|
-
|
|
179
|
-
this.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
this.w.append(c);
|
|
184
|
-
this.n.add(c);
|
|
185
|
-
}
|
|
174
|
+
IconView.prototype.au = function (a) {
|
|
175
|
+
this.n.clear();
|
|
176
|
+
this.v.rootWrapper.removeChildren();
|
|
177
|
+
this.v.rootWrapper.append(this.y);
|
|
178
|
+
this.y.removeChildren();
|
|
179
|
+
this.w.removeChildren();
|
|
180
|
+
this.p.clear();
|
|
181
|
+
if (a != null && a.length > 0) {
|
|
182
|
+
this.y.append(this.w);
|
|
183
|
+
for (var b = 0; b < a.length; b++) {
|
|
184
|
+
var c = this.v.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
185
|
+
c.setAttribute("d", a[b]);
|
|
186
|
+
this.y.append(c);
|
|
187
|
+
this.p.add(c);
|
|
186
188
|
}
|
|
187
189
|
}
|
|
188
190
|
};
|
|
189
|
-
IconView.prototype.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
this.
|
|
193
|
-
|
|
194
|
-
b.innerHTML = this.aa;
|
|
191
|
+
IconView.prototype.as = function (a) {
|
|
192
|
+
this.v.rootWrapper.removeChildren();
|
|
193
|
+
if (a != null) {
|
|
194
|
+
var b = this.v.rootWrapper.getNativeElement();
|
|
195
|
+
b.innerHTML = a;
|
|
195
196
|
}
|
|
196
197
|
};
|
|
197
|
-
IconView.prototype.
|
|
198
|
-
if (this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
198
|
+
IconView.prototype.ap = function (a) {
|
|
199
|
+
if (this.ab != a) {
|
|
200
|
+
this.ab = a;
|
|
201
|
+
this.v.rootWrapper.removeChildren();
|
|
202
|
+
this.v.rootWrapper.append(this.x);
|
|
203
|
+
this.x.setAttribute("src", a);
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
|
-
IconView.prototype.
|
|
206
|
+
IconView.prototype.k = function () {
|
|
206
207
|
return this.d.svgPath != null || this.d.svg != null || this.d.b != null;
|
|
207
208
|
};
|
|
208
|
-
IconView.prototype.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
209
|
+
IconView.prototype.ar = function () {
|
|
210
|
+
this.v.rootWrapper.setStyleProperty("width", isNaN_(this.d.aq) ? "1.5rem" : this.d.aq + "px");
|
|
211
|
+
this.v.rootWrapper.setStyleProperty("height", isNaN_(this.d.ai) ? "1.5rem" : this.d.ai + "px");
|
|
211
212
|
};
|
|
212
|
-
IconView.prototype.
|
|
213
|
+
IconView.prototype.aw = function () {
|
|
213
214
|
var a = isNaN_(this.d.an) ? 0 : this.d.an;
|
|
214
215
|
var b = isNaN_(this.d.ao) ? 0 : this.d.ao;
|
|
215
216
|
var c = isNaN_(this.d.ap) ? 24 : this.d.ap;
|
|
216
217
|
var d = isNaN_(this.d.am) ? 24 : this.d.am;
|
|
217
|
-
this.
|
|
218
|
+
this.y.setAttribute("viewBox", a + " " + b + " " + c + " " + d);
|
|
218
219
|
};
|
|
219
|
-
IconView.prototype.
|
|
220
|
+
IconView.prototype.am = function (a, b) {
|
|
220
221
|
var c = a.color;
|
|
221
|
-
if (!this.
|
|
222
|
+
if (!this.n.containsKey(a)) {
|
|
222
223
|
if (a.isGradient) {
|
|
223
|
-
var d = this.
|
|
224
|
+
var d = this.w.getChildCount();
|
|
224
225
|
var e = a;
|
|
225
|
-
var f = this.
|
|
226
|
+
var f = this.v.createElementNS("linearGradient", "http://www.w3.org/2000/svg");
|
|
226
227
|
var g = "ig_gradient_" + b + "_" + d;
|
|
227
228
|
f.setAttribute("id", g);
|
|
228
229
|
f.setAttribute("x1", e.startX.toString());
|
|
@@ -232,33 +233,33 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
232
233
|
var j = e.gradientStops;
|
|
233
234
|
for (var i = 0; i < j.length; i++) {
|
|
234
235
|
var h = j[i];
|
|
235
|
-
var k = this.
|
|
236
|
+
var k = this.v.createElementNS("stop", "http://www.w3.org/2000/svg");
|
|
236
237
|
k.setAttribute("offset", h.offset * 100 + "%");
|
|
237
238
|
k.setAttribute("stop-color", h._fill);
|
|
238
239
|
f.append(k);
|
|
239
240
|
}
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
241
|
+
this.w.append(f);
|
|
242
|
+
this.n.addItem(a, g);
|
|
242
243
|
}
|
|
243
244
|
else if (a.isRadialGradient) {
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
247
|
};
|
|
247
|
-
IconView.prototype.
|
|
248
|
+
IconView.prototype.an = function (a, b) {
|
|
248
249
|
var c = a;
|
|
249
|
-
if (this.
|
|
250
|
-
c.setAttribute("fill", "url(#" + this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
250
|
+
if (this.n.containsKey(b)) {
|
|
251
|
+
c.setAttribute("fill", "url(#" + this.n.item(b) + ")");
|
|
252
|
+
this.v.rootWrapper.removeChildren();
|
|
253
|
+
this.v.rootWrapper.append(this.y);
|
|
253
254
|
}
|
|
254
255
|
else {
|
|
255
256
|
NativeUI.r(a, b);
|
|
256
257
|
}
|
|
257
258
|
};
|
|
258
|
-
IconView.prototype.
|
|
259
|
+
IconView.prototype.ao = function (a, b) {
|
|
259
260
|
var c = a;
|
|
260
|
-
if (this.
|
|
261
|
-
c.setAttribute("stroke", "url('#" + this.
|
|
261
|
+
if (this.n.containsKey(b)) {
|
|
262
|
+
c.setAttribute("stroke", "url('#" + this.n.item(b) + "')");
|
|
262
263
|
}
|
|
263
264
|
else {
|
|
264
265
|
NativeUI.aa(a, b);
|
|
@@ -266,8 +267,8 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
266
267
|
};
|
|
267
268
|
IconView.prototype.ac = function (a) {
|
|
268
269
|
};
|
|
269
|
-
IconView.prototype.
|
|
270
|
-
if (this.
|
|
270
|
+
IconView.prototype.al = function () {
|
|
271
|
+
if (this.l()) {
|
|
271
272
|
}
|
|
272
273
|
};
|
|
273
274
|
IconView.prototype.ad = function (a) {
|
|
@@ -276,16 +277,16 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
276
277
|
IconView.prototype.ae = function (a) {
|
|
277
278
|
this.d.ca();
|
|
278
279
|
};
|
|
279
|
-
IconView.prototype.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
280
|
+
IconView.prototype.ag = function () {
|
|
281
|
+
this.j = true;
|
|
282
|
+
this.o.add(this.v.rootWrapper.listen("mouseenter", runOn(this, this.ad)));
|
|
283
|
+
this.o.add(this.v.rootWrapper.listen("mouseleave", runOn(this, this.ae)));
|
|
283
284
|
};
|
|
284
|
-
IconView.prototype.
|
|
285
|
+
IconView.prototype.aj = function () {
|
|
285
286
|
var e_2, _a;
|
|
286
|
-
this.
|
|
287
|
+
this.j = false;
|
|
287
288
|
try {
|
|
288
|
-
for (var _b = __values(fromEnum(this.
|
|
289
|
+
for (var _b = __values(fromEnum(this.o)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
289
290
|
var a = _c.value;
|
|
290
291
|
a();
|
|
291
292
|
}
|
|
@@ -303,15 +304,15 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
303
304
|
throw e_2.error;
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
|
-
this.
|
|
307
|
+
this.o.clear();
|
|
307
308
|
};
|
|
308
|
-
IconView.prototype.
|
|
309
|
+
IconView.prototype.av = function (a) {
|
|
309
310
|
if (a != null) {
|
|
310
|
-
this.
|
|
311
|
+
this.v.rootWrapper.setStyleProperty("font", a.fontString);
|
|
311
312
|
}
|
|
312
313
|
};
|
|
313
314
|
IconView.prototype.b = function () {
|
|
314
|
-
var rect_ = this.
|
|
315
|
+
var rect_ = this.v.rootWrapper.getNativeElement().getBoundingClientRect();
|
|
315
316
|
var a = (rect_.top);
|
|
316
317
|
var b = (rect_.left);
|
|
317
318
|
var c = new Array(2);
|
|
@@ -319,9 +320,103 @@ var IconView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
319
320
|
c[1] = b;
|
|
320
321
|
return c;
|
|
321
322
|
};
|
|
322
|
-
IconView.prototype.
|
|
323
|
+
IconView.prototype.ah = function (a) {
|
|
323
324
|
this.d.b7();
|
|
324
325
|
};
|
|
326
|
+
IconView.prototype.a = function () {
|
|
327
|
+
var a = new List$1(PrimitiveVisualData.$, 0);
|
|
328
|
+
var b = this.v.rootWrapper.getNativeElement();
|
|
329
|
+
return a.toArray();
|
|
330
|
+
};
|
|
331
|
+
IconView.prototype.af = function (a, b) {
|
|
332
|
+
for (var c = 0; c < b.e.count; c++) {
|
|
333
|
+
var d = b.e._inner[c];
|
|
334
|
+
var e = this.h(d);
|
|
335
|
+
if (e != null) {
|
|
336
|
+
a.add(e);
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
this.af(a, d);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
IconView.prototype.h = function (a) {
|
|
344
|
+
var b = null;
|
|
345
|
+
switch (a.c) {
|
|
346
|
+
case 7:
|
|
347
|
+
var c = ((function () {
|
|
348
|
+
var $ret = new Path();
|
|
349
|
+
$ret.an = a.w;
|
|
350
|
+
return $ret;
|
|
351
|
+
})());
|
|
352
|
+
this.aq(c, a);
|
|
353
|
+
b = new PathVisualData(1, "path1", c);
|
|
354
|
+
break;
|
|
355
|
+
case 3:
|
|
356
|
+
var d = a;
|
|
357
|
+
var e = new Line();
|
|
358
|
+
e.an = d.w;
|
|
359
|
+
e.ao = d.x;
|
|
360
|
+
e.ap = d.y;
|
|
361
|
+
e.aq = d.z;
|
|
362
|
+
this.aq(e, a);
|
|
363
|
+
b = new LineVisualData(1, "line1", e);
|
|
364
|
+
break;
|
|
365
|
+
case 4:
|
|
366
|
+
var f = a;
|
|
367
|
+
var g = new Rectangle();
|
|
368
|
+
g.width = f.z;
|
|
369
|
+
g.height = f.w;
|
|
370
|
+
g.ap = f.x;
|
|
371
|
+
g.aq = f.y;
|
|
372
|
+
this.aq(g, a);
|
|
373
|
+
b = new RectangleVisualData(1, "rect1", g);
|
|
374
|
+
break;
|
|
375
|
+
case 5:
|
|
376
|
+
case 6:
|
|
377
|
+
var h = a;
|
|
378
|
+
var i = new Ellipse();
|
|
379
|
+
i.width = h.y * 2;
|
|
380
|
+
i.height = h.z * 2;
|
|
381
|
+
this.aq(i, a);
|
|
382
|
+
b = new EllipseVisualData(1, "ellipse1", i);
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
return b;
|
|
386
|
+
};
|
|
387
|
+
IconView.prototype.aq = function (a, b) {
|
|
388
|
+
var c = b;
|
|
389
|
+
a.ad = b.t;
|
|
390
|
+
a.j = c.h;
|
|
391
|
+
a.am = c.v;
|
|
392
|
+
a.al = c.u;
|
|
393
|
+
a.ak = c.u;
|
|
394
|
+
a._opacity = c.q;
|
|
395
|
+
if (c.i != null) {
|
|
396
|
+
var d = new DoubleCollection();
|
|
397
|
+
var g = c.i;
|
|
398
|
+
for (var f = 0; f < g.length; f++) {
|
|
399
|
+
var e = g[f];
|
|
400
|
+
d.add(e);
|
|
401
|
+
}
|
|
402
|
+
a.ai = d;
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
IconView.prototype.i = function (a) {
|
|
406
|
+
if (typeCast(Path.$, a) !== null) {
|
|
407
|
+
return new PathVisualData(1, "path1", a);
|
|
408
|
+
}
|
|
409
|
+
else if (typeCast(Line.$, a) !== null) {
|
|
410
|
+
return new LineVisualData(1, "line1", a);
|
|
411
|
+
}
|
|
412
|
+
else if (typeCast(Rectangle.$, a) !== null) {
|
|
413
|
+
return new RectangleVisualData(1, "rect1", a);
|
|
414
|
+
}
|
|
415
|
+
else if (typeCast(Ellipse.$, a) !== null) {
|
|
416
|
+
return new EllipseVisualData(1, "ellipse1", a);
|
|
417
|
+
}
|
|
418
|
+
return null;
|
|
419
|
+
};
|
|
325
420
|
IconView.$t = markType(IconView, 'IconView');
|
|
326
421
|
return IconView;
|
|
327
422
|
}(Base));
|
|
@@ -376,7 +471,7 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
376
471
|
var a = new IconView();
|
|
377
472
|
a.d = _this;
|
|
378
473
|
_this.view = a;
|
|
379
|
-
_this.view.
|
|
474
|
+
_this.view.ak();
|
|
380
475
|
return _this;
|
|
381
476
|
}
|
|
382
477
|
Object.defineProperty(XIcon.prototype, "view", {
|
|
@@ -414,10 +509,27 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
414
509
|
case "ActualFill":
|
|
415
510
|
case "ActualStroke":
|
|
416
511
|
case "ActualStrokeWidth":
|
|
512
|
+
this.cg();
|
|
513
|
+
break;
|
|
514
|
+
case "SVG":
|
|
515
|
+
this.az = null;
|
|
516
|
+
this.a = null;
|
|
517
|
+
this.cg();
|
|
518
|
+
break;
|
|
417
519
|
case "SVGPath":
|
|
520
|
+
this.ay = null;
|
|
521
|
+
this.a = null;
|
|
522
|
+
this.cg();
|
|
523
|
+
break;
|
|
418
524
|
case "SVGPaths":
|
|
419
|
-
|
|
525
|
+
this.ay = null;
|
|
526
|
+
this.az = null;
|
|
527
|
+
this.cg();
|
|
528
|
+
break;
|
|
420
529
|
case "DataURL":
|
|
530
|
+
this.ay = null;
|
|
531
|
+
this.az = null;
|
|
532
|
+
this.a = null;
|
|
421
533
|
this.cg();
|
|
422
534
|
break;
|
|
423
535
|
case "Opacity":
|
|
@@ -427,11 +539,11 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
427
539
|
case "ViewBoxTop":
|
|
428
540
|
case "ViewBoxWidth":
|
|
429
541
|
case "ViewBoxHeight":
|
|
430
|
-
this.view.
|
|
542
|
+
this.view.aw();
|
|
431
543
|
break;
|
|
432
544
|
case "Width":
|
|
433
545
|
case "Height":
|
|
434
|
-
this.view.
|
|
546
|
+
this.view.ar();
|
|
435
547
|
break;
|
|
436
548
|
}
|
|
437
549
|
};
|
|
@@ -455,18 +567,18 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
455
567
|
};
|
|
456
568
|
Object.defineProperty(XIcon.prototype, "r", {
|
|
457
569
|
get: function () {
|
|
458
|
-
return this.svgPath != null && !this.view.
|
|
570
|
+
return this.svgPath != null && !this.view.m;
|
|
459
571
|
},
|
|
460
572
|
enumerable: false,
|
|
461
573
|
configurable: true
|
|
462
574
|
});
|
|
463
575
|
XIcon.prototype.ch = function () {
|
|
464
|
-
NativeUI.y(this.view.
|
|
576
|
+
NativeUI.y(this.view.z, this.ak);
|
|
465
577
|
};
|
|
466
578
|
XIcon.prototype.cg = function () {
|
|
467
|
-
var a = this.view.
|
|
579
|
+
var a = this.view.z;
|
|
468
580
|
if (this.r) {
|
|
469
|
-
var b = this.view.
|
|
581
|
+
var b = this.view.aa;
|
|
470
582
|
NativeUI.r(b, this.cw);
|
|
471
583
|
NativeUI.aa(b, this.cx);
|
|
472
584
|
NativeUI.ad(b, this.af);
|
|
@@ -475,22 +587,22 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
475
587
|
var c = false;
|
|
476
588
|
if (this.svgPath != null) {
|
|
477
589
|
if (stringStartsWith(trimStart(this.svgPath, ' ', '\n', '\r', '\t'), "<svg")) {
|
|
478
|
-
this.view.
|
|
590
|
+
this.view.as(this.svgPath);
|
|
479
591
|
c = true;
|
|
480
592
|
}
|
|
481
593
|
else {
|
|
482
|
-
this.view.
|
|
594
|
+
this.view.at(this.svgPath);
|
|
483
595
|
}
|
|
484
596
|
}
|
|
485
597
|
else if (this.b != null) {
|
|
486
|
-
this.view.
|
|
598
|
+
this.view.au(this.b);
|
|
487
599
|
var d = this.view.c;
|
|
488
600
|
if (d != null && d.length > 0) {
|
|
489
601
|
var e = NativeUI.r;
|
|
490
602
|
var f = NativeUI.aa;
|
|
491
603
|
this.cd();
|
|
492
|
-
e = runOn(this.view, this.view.
|
|
493
|
-
f = runOn(this.view, this.view.
|
|
604
|
+
e = runOn(this.view, this.view.an);
|
|
605
|
+
f = runOn(this.view, this.view.ao);
|
|
494
606
|
for (var g = 0; g < d.length; g++) {
|
|
495
607
|
if (this.cw != null) {
|
|
496
608
|
e(d[g], this.cw);
|
|
@@ -513,33 +625,33 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
513
625
|
}
|
|
514
626
|
}
|
|
515
627
|
if (this.m != null) {
|
|
516
|
-
this.view.
|
|
628
|
+
this.view.av(this.m);
|
|
517
629
|
}
|
|
518
630
|
return;
|
|
519
631
|
}
|
|
520
632
|
else if (this.svg != null) {
|
|
521
|
-
this.view.
|
|
633
|
+
this.view.as(this.svg);
|
|
522
634
|
c = true;
|
|
523
635
|
}
|
|
524
636
|
else if (this.a7 != null) {
|
|
525
|
-
this.view.
|
|
637
|
+
this.view.ap(this.a7);
|
|
526
638
|
}
|
|
527
639
|
if (c) {
|
|
528
|
-
for (var h = 0; h < this.view.
|
|
529
|
-
var i = this.view.
|
|
530
|
-
NativeUI.r(this.view.
|
|
640
|
+
for (var h = 0; h < this.view.r.count; h++) {
|
|
641
|
+
var i = this.view.r._inner[h].c;
|
|
642
|
+
NativeUI.r(this.view.r._inner[h].d, i.l.f(this.c8));
|
|
531
643
|
}
|
|
532
|
-
for (var j = 0; j < this.view.
|
|
533
|
-
var k = this.view.
|
|
534
|
-
NativeUI.aa(this.view.
|
|
644
|
+
for (var j = 0; j < this.view.s.count; j++) {
|
|
645
|
+
var k = this.view.s._inner[j].c;
|
|
646
|
+
NativeUI.aa(this.view.s._inner[j].d, k.m.f(this.c9));
|
|
535
647
|
}
|
|
536
|
-
for (var l = 0; l < this.view.
|
|
537
|
-
var m = this.view.
|
|
538
|
-
NativeUI.r(this.view.
|
|
648
|
+
for (var l = 0; l < this.view.t.count; l++) {
|
|
649
|
+
var m = this.view.t._inner[l].c;
|
|
650
|
+
NativeUI.r(this.view.t._inner[l].d, m.l.f(this.da));
|
|
539
651
|
}
|
|
540
|
-
for (var n = 0; n < this.view.
|
|
541
|
-
var o = this.view.
|
|
542
|
-
NativeUI.aa(this.view.
|
|
652
|
+
for (var n = 0; n < this.view.u.count; n++) {
|
|
653
|
+
var o = this.view.u._inner[n].c;
|
|
654
|
+
NativeUI.aa(this.view.u._inner[n].d, o.m.f(this.db));
|
|
543
655
|
}
|
|
544
656
|
for (var p = 0; p < this.view.e.o.count; p++) {
|
|
545
657
|
var q = this.view.e.o._inner[p];
|
|
@@ -563,13 +675,13 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
563
675
|
}
|
|
564
676
|
}
|
|
565
677
|
}
|
|
566
|
-
for (var ab = 0; ab < this.view.
|
|
567
|
-
var ac = this.view.
|
|
568
|
-
NativeUI.r(this.view.
|
|
569
|
-
NativeUI.aa(this.view.
|
|
678
|
+
for (var ab = 0; ab < this.view.q.count; ab++) {
|
|
679
|
+
var ac = this.view.q._inner[ab].c;
|
|
680
|
+
NativeUI.r(this.view.q._inner[ab].d, ac.l.f(this.cw));
|
|
681
|
+
NativeUI.aa(this.view.q._inner[ab].d, ac.m.f(this.cx));
|
|
570
682
|
}
|
|
571
683
|
}
|
|
572
|
-
var ad = this.view.
|
|
684
|
+
var ad = this.view.z;
|
|
573
685
|
if (this.cw != null) {
|
|
574
686
|
NativeUI.r(ad, this.cw);
|
|
575
687
|
}
|
|
@@ -581,25 +693,25 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
581
693
|
}
|
|
582
694
|
}
|
|
583
695
|
if (this.m != null) {
|
|
584
|
-
this.view.
|
|
696
|
+
this.view.av(this.m);
|
|
585
697
|
}
|
|
586
698
|
if (this.cy != null) {
|
|
587
|
-
NativeUI.q(this.view.
|
|
699
|
+
NativeUI.q(this.view.z, this.cy);
|
|
588
700
|
}
|
|
589
701
|
};
|
|
590
702
|
XIcon.prototype.cd = function () {
|
|
591
703
|
var e_3, _a, e_4, _b;
|
|
592
704
|
if (this.cw != null) {
|
|
593
|
-
this.view.
|
|
705
|
+
this.view.am(this.cw, "fill");
|
|
594
706
|
}
|
|
595
707
|
if (this.cx != null) {
|
|
596
|
-
this.view.
|
|
708
|
+
this.view.am(this.cx, "stroke");
|
|
597
709
|
}
|
|
598
710
|
if (this.e != null) {
|
|
599
711
|
try {
|
|
600
712
|
for (var _c = __values(fromEnum(this.e)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
601
713
|
var a = _d.value;
|
|
602
|
-
this.view.
|
|
714
|
+
this.view.am(a, "fills");
|
|
603
715
|
}
|
|
604
716
|
}
|
|
605
717
|
catch (e_3_1) {
|
|
@@ -620,7 +732,7 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
620
732
|
try {
|
|
621
733
|
for (var _e = __values(fromEnum(this.f)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
622
734
|
var b = _f.value;
|
|
623
|
-
this.view.
|
|
735
|
+
this.view.am(b, "strokes");
|
|
624
736
|
}
|
|
625
737
|
}
|
|
626
738
|
catch (e_4_1) {
|
|
@@ -1159,10 +1271,10 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1159
1271
|
XIcon.prototype.cc = function () {
|
|
1160
1272
|
};
|
|
1161
1273
|
XIcon.prototype.onDetachedFromUI = function () {
|
|
1162
|
-
this.view.
|
|
1274
|
+
this.view.aj();
|
|
1163
1275
|
};
|
|
1164
1276
|
XIcon.prototype.onAttachedToUI = function () {
|
|
1165
|
-
this.view.
|
|
1277
|
+
this.view.ag();
|
|
1166
1278
|
};
|
|
1167
1279
|
XIcon.prototype.b7 = function () {
|
|
1168
1280
|
if (this.disabled) {
|
|
@@ -1173,61 +1285,58 @@ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1173
1285
|
}
|
|
1174
1286
|
};
|
|
1175
1287
|
XIcon.prototype.u = function () {
|
|
1176
|
-
return this.view.
|
|
1288
|
+
return this.view.l();
|
|
1177
1289
|
};
|
|
1178
1290
|
XIcon.prototype.au = function () {
|
|
1179
1291
|
return this.g();
|
|
1180
1292
|
};
|
|
1181
1293
|
XIcon.prototype.a9 = function () {
|
|
1182
1294
|
var a = this.g();
|
|
1183
|
-
return a.
|
|
1295
|
+
return a.l();
|
|
1184
1296
|
};
|
|
1185
1297
|
XIcon.prototype.g = function () {
|
|
1186
1298
|
var a = new IconVisualModelExport();
|
|
1187
|
-
var b = this.view.
|
|
1188
|
-
a.
|
|
1189
|
-
a.
|
|
1190
|
-
a.
|
|
1191
|
-
a.
|
|
1192
|
-
|
|
1193
|
-
a.
|
|
1194
|
-
a.f = c[1];
|
|
1195
|
-
a.e = NativeUI.d(b);
|
|
1196
|
-
a.i = NativeUI.k(b);
|
|
1299
|
+
var b = this.view.b();
|
|
1300
|
+
a.i = b[0];
|
|
1301
|
+
a.g = b[1];
|
|
1302
|
+
a.f = NativeUI.d(this.view.z);
|
|
1303
|
+
a.j = NativeUI.k(this.view.z);
|
|
1304
|
+
a.a = this.view.a();
|
|
1305
|
+
a.svg = this.svg;
|
|
1197
1306
|
a.svgPath = this.svgPath;
|
|
1198
|
-
a.
|
|
1307
|
+
a.k = this.a7;
|
|
1199
1308
|
if (this.m != null) {
|
|
1200
|
-
var
|
|
1201
|
-
if (this.view != null &&
|
|
1202
|
-
var
|
|
1203
|
-
var
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1309
|
+
var c = this.m;
|
|
1310
|
+
if (this.view != null && c.q == null) {
|
|
1311
|
+
var d = this.view.v;
|
|
1312
|
+
var e = FontUtil.getFontInfoFromString(d, c.fontString);
|
|
1313
|
+
c.q = e.q;
|
|
1314
|
+
c.f = e.f;
|
|
1315
|
+
c.r = e.r;
|
|
1316
|
+
c.t = e.t;
|
|
1317
|
+
c.u = e.u;
|
|
1318
|
+
c.v = e.v;
|
|
1210
1319
|
}
|
|
1211
|
-
if (
|
|
1212
|
-
a.
|
|
1320
|
+
if (c.q != null) {
|
|
1321
|
+
a.o = c.q;
|
|
1213
1322
|
}
|
|
1214
|
-
if (!isNaN_(
|
|
1215
|
-
a.
|
|
1323
|
+
if (!isNaN_(c.f)) {
|
|
1324
|
+
a.h = c.f;
|
|
1216
1325
|
}
|
|
1217
|
-
if (
|
|
1218
|
-
a.
|
|
1326
|
+
if (c.v != null) {
|
|
1327
|
+
a.s = c.v;
|
|
1219
1328
|
}
|
|
1220
|
-
if (
|
|
1221
|
-
a.
|
|
1329
|
+
if (c.t != null) {
|
|
1330
|
+
a.q = c.t;
|
|
1222
1331
|
}
|
|
1223
|
-
if (
|
|
1224
|
-
a.
|
|
1332
|
+
if (c.r != null) {
|
|
1333
|
+
a.p = c.t;
|
|
1225
1334
|
}
|
|
1226
1335
|
}
|
|
1227
1336
|
return a;
|
|
1228
1337
|
};
|
|
1229
1338
|
XIcon.prototype.provideContainer = function (a) {
|
|
1230
|
-
this.view.
|
|
1339
|
+
this.view.ai(a);
|
|
1231
1340
|
};
|
|
1232
1341
|
XIcon.$t = markType(XIcon, 'XIcon', Base.$, [INotifyPropertyChanged_$type, IIcon_$type]);
|
|
1233
1342
|
XIcon.cz = null;
|