igniteui-angular-inputs 18.0.0 → 18.1.1
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 +976 -772
- 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 +1 -1
- 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 +319 -219
- 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 +3 -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 +1 -1
- 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 +316 -216
- 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 +3 -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 +910 -711
- package/fesm5/igniteui-angular-inputs.js +973 -770
- package/lib/ButtonVisualModelExport.d.ts +6 -5
- package/lib/DatePickerView_combined.d.ts +75 -74
- package/lib/IconView_combined.d.ts +45 -39
- 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 +2 -2
- 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
|
@@ -4,7 +4,7 @@ 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 { Base, String_$type, Delegate_$type, fromEnum, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-angular-core";
|
|
7
|
+
import { Base, String_$type, Delegate_$type, fromEnum, runOn, typeCast, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-angular-core";
|
|
8
8
|
import { DomWrapper_$type } from "igniteui-angular-core";
|
|
9
9
|
import { List$1 } from "igniteui-angular-core";
|
|
10
10
|
import { Tuple$2 } from "igniteui-angular-core";
|
|
@@ -13,12 +13,21 @@ import { FastIterationDictionary$2 } from "igniteui-angular-core";
|
|
|
13
13
|
import { Dictionary$2 } from "igniteui-angular-core";
|
|
14
14
|
import { Brush } from "igniteui-angular-core";
|
|
15
15
|
import { NativeUI } from "igniteui-angular-core";
|
|
16
|
+
import { PrimitiveVisualData } from "igniteui-angular-core";
|
|
17
|
+
import { Path } from "igniteui-angular-core";
|
|
18
|
+
import { Line } from "igniteui-angular-core";
|
|
19
|
+
import { Rectangle } from "igniteui-angular-core";
|
|
20
|
+
import { Ellipse } from "igniteui-angular-core";
|
|
21
|
+
import { PathVisualData } from "igniteui-angular-core";
|
|
22
|
+
import { LineVisualData } from "igniteui-angular-core";
|
|
23
|
+
import { RectangleVisualData } from "igniteui-angular-core";
|
|
24
|
+
import { EllipseVisualData } from "igniteui-angular-core";
|
|
25
|
+
import { DoubleCollection } from "igniteui-angular-core";
|
|
16
26
|
import { isNaN_ } from "igniteui-angular-core";
|
|
17
27
|
import { IIcon_$type } from "igniteui-angular-core";
|
|
18
28
|
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
19
29
|
import { IconClickedEventArgs } from "./IconClickedEventArgs";
|
|
20
30
|
import { IconVisualModelExport } from "./IconVisualModelExport";
|
|
21
|
-
import { AppearanceHelper } from "igniteui-angular-core";
|
|
22
31
|
import { FontUtil } from "igniteui-angular-core";
|
|
23
32
|
import { stringStartsWith } from "igniteui-angular-core";
|
|
24
33
|
import { trimStart } from "igniteui-angular-core";
|
|
@@ -29,157 +38,157 @@ export let IconView = /*@__PURE__*/ (() => {
|
|
|
29
38
|
class IconView extends Base {
|
|
30
39
|
constructor() {
|
|
31
40
|
super();
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.n = null;
|
|
37
|
-
this.o = null;
|
|
38
|
-
this.p = null;
|
|
41
|
+
this.d = null;
|
|
42
|
+
this.v = null;
|
|
43
|
+
this.g = null;
|
|
44
|
+
this.o = new List$1(Delegate_$type, 0);
|
|
39
45
|
this.q = null;
|
|
40
46
|
this.r = null;
|
|
41
|
-
this.
|
|
47
|
+
this.s = null;
|
|
48
|
+
this.t = null;
|
|
49
|
+
this.u = null;
|
|
42
50
|
this.e = null;
|
|
51
|
+
this.f = null;
|
|
52
|
+
this.ab = null;
|
|
53
|
+
this.n = new Dictionary$2(Brush.$, String_$type, 0);
|
|
54
|
+
this.j = true;
|
|
43
55
|
this.y = null;
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.u = null;
|
|
48
|
-
this.t = null;
|
|
49
|
-
this.m = new List$1(DomWrapper_$type, 0);
|
|
50
|
-
this.n = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
51
|
-
this.o = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
52
|
-
this.p = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
56
|
+
this.x = null;
|
|
57
|
+
this.w = null;
|
|
58
|
+
this.p = new List$1(DomWrapper_$type, 0);
|
|
53
59
|
this.q = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
54
60
|
this.r = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
55
|
-
this.
|
|
61
|
+
this.s = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
62
|
+
this.t = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
63
|
+
this.u = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0);
|
|
56
64
|
this.e = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0);
|
|
65
|
+
this.f = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0);
|
|
57
66
|
}
|
|
58
|
-
|
|
67
|
+
ak() {
|
|
59
68
|
}
|
|
60
|
-
|
|
69
|
+
l() {
|
|
61
70
|
return true;
|
|
62
71
|
}
|
|
63
|
-
get
|
|
64
|
-
return this.
|
|
72
|
+
get z() {
|
|
73
|
+
return this.y;
|
|
65
74
|
}
|
|
66
|
-
get
|
|
75
|
+
get aa() {
|
|
67
76
|
return null;
|
|
68
77
|
}
|
|
69
|
-
get
|
|
70
|
-
return this.
|
|
78
|
+
get c() {
|
|
79
|
+
return this.p.toArray();
|
|
71
80
|
}
|
|
72
|
-
get
|
|
81
|
+
get m() {
|
|
73
82
|
return true;
|
|
74
83
|
}
|
|
75
|
-
|
|
84
|
+
ai(a) {
|
|
76
85
|
if (a == null) {
|
|
77
|
-
for (let b of fromEnum(this.
|
|
86
|
+
for (let b of fromEnum(this.o)) {
|
|
78
87
|
b();
|
|
79
88
|
}
|
|
80
|
-
this.
|
|
81
|
-
if (this.
|
|
82
|
-
this.
|
|
89
|
+
this.o.clear();
|
|
90
|
+
if (this.y != null) {
|
|
91
|
+
this.y.unlistenAll();
|
|
83
92
|
}
|
|
84
|
-
if (this.
|
|
85
|
-
this.
|
|
93
|
+
if (this.x != null) {
|
|
94
|
+
this.x.unlistenAll();
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
|
-
this.
|
|
97
|
+
this.v = a;
|
|
89
98
|
a.rootWrapper.setStyleProperty("position", "relative");
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
let c = this.
|
|
99
|
+
this.v.rootWrapper.setStyleProperty("display", "flex");
|
|
100
|
+
this.v.rootWrapper.setStyleProperty("flex-direction", "row");
|
|
101
|
+
this.v.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
|
|
102
|
+
this.v.rootWrapper.setStyleProperty("align-items", "center");
|
|
103
|
+
this.v.rootWrapper.setStyleProperty("justify-content", "center");
|
|
104
|
+
this.ar();
|
|
105
|
+
let c = this.v.createElementNS("svg", "http://www.w3.org/2000/svg");
|
|
97
106
|
c.setStyleProperty("position", "absolute");
|
|
98
107
|
c.setStyleProperty("top", "0");
|
|
99
108
|
c.setStyleProperty("left", "0");
|
|
100
109
|
c.setStyleProperty("right", "0");
|
|
101
110
|
c.setStyleProperty("bottom", "0");
|
|
102
|
-
this.
|
|
103
|
-
let d = this.
|
|
111
|
+
this.y = c;
|
|
112
|
+
let d = this.v.createElement("img");
|
|
104
113
|
d.setStyleProperty("height", "100%");
|
|
105
114
|
d.setStyleProperty("width", "100%");
|
|
106
115
|
d.setStyleProperty("object-fit", "contain");
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
this.
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
116
|
+
this.x = d;
|
|
117
|
+
this.aw();
|
|
118
|
+
this.w = a.createElementNS("defs", "http://www.w3.org/2000/svg");
|
|
119
|
+
this.y.append(this.w);
|
|
120
|
+
this.v.append(this.y);
|
|
121
|
+
this.o.add(c.listen("click", runOn(this, this.ah)));
|
|
122
|
+
this.d.cc();
|
|
123
|
+
}
|
|
124
|
+
at(a) {
|
|
125
|
+
this.n.clear();
|
|
126
|
+
this.v.rootWrapper.removeChildren();
|
|
127
|
+
this.v.rootWrapper.append(this.y);
|
|
128
|
+
this.y.removeChildren();
|
|
129
|
+
this.w.removeChildren();
|
|
130
|
+
this.p.clear();
|
|
122
131
|
if (a != null) {
|
|
123
|
-
let b = this.
|
|
132
|
+
let b = this.v.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
124
133
|
b.setAttribute("d", a);
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
134
|
+
this.y.append(this.w);
|
|
135
|
+
this.y.append(b);
|
|
136
|
+
this.p.add(b);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
au(a) {
|
|
140
|
+
this.n.clear();
|
|
141
|
+
this.v.rootWrapper.removeChildren();
|
|
142
|
+
this.v.rootWrapper.append(this.y);
|
|
143
|
+
this.y.removeChildren();
|
|
144
|
+
this.w.removeChildren();
|
|
145
|
+
this.p.clear();
|
|
137
146
|
if (a != null && a.length > 0) {
|
|
138
|
-
this.
|
|
147
|
+
this.y.append(this.w);
|
|
139
148
|
for (let b = 0; b < a.length; b++) {
|
|
140
|
-
let c = this.
|
|
149
|
+
let c = this.v.createElementNS("path", "http://www.w3.org/2000/svg");
|
|
141
150
|
c.setAttribute("d", a[b]);
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
151
|
+
this.y.append(c);
|
|
152
|
+
this.p.add(c);
|
|
144
153
|
}
|
|
145
154
|
}
|
|
146
155
|
}
|
|
147
|
-
|
|
148
|
-
this.
|
|
156
|
+
as(a) {
|
|
157
|
+
this.v.rootWrapper.removeChildren();
|
|
149
158
|
if (a != null) {
|
|
150
|
-
let b = this.
|
|
159
|
+
let b = this.v.rootWrapper.getNativeElement();
|
|
151
160
|
b.innerHTML = a;
|
|
152
161
|
}
|
|
153
162
|
}
|
|
154
|
-
|
|
155
|
-
if (this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
163
|
+
ap(a) {
|
|
164
|
+
if (this.ab != a) {
|
|
165
|
+
this.ab = a;
|
|
166
|
+
this.v.rootWrapper.removeChildren();
|
|
167
|
+
this.v.rootWrapper.append(this.x);
|
|
168
|
+
this.x.setAttribute("src", a);
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
|
-
|
|
163
|
-
return this.
|
|
164
|
-
}
|
|
165
|
-
am() {
|
|
166
|
-
this.s.rootWrapper.setStyleProperty("width", isNaN_(this.c.aq) ? "1.5rem" : this.c.aq + "px");
|
|
167
|
-
this.s.rootWrapper.setStyleProperty("height", isNaN_(this.c.ai) ? "1.5rem" : this.c.ai + "px");
|
|
171
|
+
k() {
|
|
172
|
+
return this.d.svgPath != null || this.d.svg != null || this.d.b != null;
|
|
168
173
|
}
|
|
169
174
|
ar() {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
this.v.rootWrapper.setStyleProperty("width", isNaN_(this.d.aq) ? "1.5rem" : this.d.aq + "px");
|
|
176
|
+
this.v.rootWrapper.setStyleProperty("height", isNaN_(this.d.ai) ? "1.5rem" : this.d.ai + "px");
|
|
177
|
+
}
|
|
178
|
+
aw() {
|
|
179
|
+
let a = isNaN_(this.d.an) ? 0 : this.d.an;
|
|
180
|
+
let b = isNaN_(this.d.ao) ? 0 : this.d.ao;
|
|
181
|
+
let c = isNaN_(this.d.ap) ? 24 : this.d.ap;
|
|
182
|
+
let d = isNaN_(this.d.am) ? 24 : this.d.am;
|
|
183
|
+
this.y.setAttribute("viewBox", a + " " + b + " " + c + " " + d);
|
|
175
184
|
}
|
|
176
|
-
|
|
185
|
+
am(a, b) {
|
|
177
186
|
let c = a.color;
|
|
178
|
-
if (!this.
|
|
187
|
+
if (!this.n.containsKey(a)) {
|
|
179
188
|
if (a.isGradient) {
|
|
180
|
-
let d = this.
|
|
189
|
+
let d = this.w.getChildCount();
|
|
181
190
|
let e = a;
|
|
182
|
-
let f = this.
|
|
191
|
+
let f = this.v.createElementNS("linearGradient", "http://www.w3.org/2000/svg");
|
|
183
192
|
let g = "ig_gradient_" + b + "_" + d;
|
|
184
193
|
f.setAttribute("id", g);
|
|
185
194
|
f.setAttribute("x1", e.startX.toString());
|
|
@@ -189,69 +198,69 @@ export let IconView = /*@__PURE__*/ (() => {
|
|
|
189
198
|
let j = e.gradientStops;
|
|
190
199
|
for (let i = 0; i < j.length; i++) {
|
|
191
200
|
let h = j[i];
|
|
192
|
-
let k = this.
|
|
201
|
+
let k = this.v.createElementNS("stop", "http://www.w3.org/2000/svg");
|
|
193
202
|
k.setAttribute("offset", h.offset * 100 + "%");
|
|
194
203
|
k.setAttribute("stop-color", h._fill);
|
|
195
204
|
f.append(k);
|
|
196
205
|
}
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
206
|
+
this.w.append(f);
|
|
207
|
+
this.n.addItem(a, g);
|
|
199
208
|
}
|
|
200
209
|
else if (a.isRadialGradient) {
|
|
201
210
|
}
|
|
202
211
|
}
|
|
203
212
|
}
|
|
204
|
-
|
|
213
|
+
an(a, b) {
|
|
205
214
|
let c = a;
|
|
206
|
-
if (this.
|
|
207
|
-
c.setAttribute("fill", "url(#" + this.
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
215
|
+
if (this.n.containsKey(b)) {
|
|
216
|
+
c.setAttribute("fill", "url(#" + this.n.item(b) + ")");
|
|
217
|
+
this.v.rootWrapper.removeChildren();
|
|
218
|
+
this.v.rootWrapper.append(this.y);
|
|
210
219
|
}
|
|
211
220
|
else {
|
|
212
221
|
NativeUI.r(a, b);
|
|
213
222
|
}
|
|
214
223
|
}
|
|
215
|
-
|
|
224
|
+
ao(a, b) {
|
|
216
225
|
let c = a;
|
|
217
|
-
if (this.
|
|
218
|
-
c.setAttribute("stroke", "url('#" + this.
|
|
226
|
+
if (this.n.containsKey(b)) {
|
|
227
|
+
c.setAttribute("stroke", "url('#" + this.n.item(b) + "')");
|
|
219
228
|
}
|
|
220
229
|
else {
|
|
221
230
|
NativeUI.aa(a, b);
|
|
222
231
|
}
|
|
223
232
|
}
|
|
224
|
-
|
|
233
|
+
ac(a) {
|
|
225
234
|
}
|
|
226
|
-
|
|
227
|
-
if (this.
|
|
235
|
+
al() {
|
|
236
|
+
if (this.l()) {
|
|
228
237
|
}
|
|
229
238
|
}
|
|
230
|
-
|
|
231
|
-
this.
|
|
239
|
+
ad(a) {
|
|
240
|
+
this.d.b9();
|
|
232
241
|
}
|
|
233
|
-
|
|
234
|
-
this.
|
|
242
|
+
ae(a) {
|
|
243
|
+
this.d.ca();
|
|
235
244
|
}
|
|
236
|
-
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
245
|
+
ag() {
|
|
246
|
+
this.j = true;
|
|
247
|
+
this.o.add(this.v.rootWrapper.listen("mouseenter", runOn(this, this.ad)));
|
|
248
|
+
this.o.add(this.v.rootWrapper.listen("mouseleave", runOn(this, this.ae)));
|
|
240
249
|
}
|
|
241
|
-
|
|
242
|
-
this.
|
|
243
|
-
for (let a of fromEnum(this.
|
|
250
|
+
aj() {
|
|
251
|
+
this.j = false;
|
|
252
|
+
for (let a of fromEnum(this.o)) {
|
|
244
253
|
a();
|
|
245
254
|
}
|
|
246
|
-
this.
|
|
255
|
+
this.o.clear();
|
|
247
256
|
}
|
|
248
|
-
|
|
257
|
+
av(a) {
|
|
249
258
|
if (a != null) {
|
|
250
|
-
this.
|
|
259
|
+
this.v.rootWrapper.setStyleProperty("font", a.fontString);
|
|
251
260
|
}
|
|
252
261
|
}
|
|
253
|
-
|
|
254
|
-
let rect_ = this.
|
|
262
|
+
b() {
|
|
263
|
+
let rect_ = this.v.rootWrapper.getNativeElement().getBoundingClientRect();
|
|
255
264
|
let a = (rect_.top);
|
|
256
265
|
let b = (rect_.left);
|
|
257
266
|
let c = new Array(2);
|
|
@@ -259,8 +268,102 @@ export let IconView = /*@__PURE__*/ (() => {
|
|
|
259
268
|
c[1] = b;
|
|
260
269
|
return c;
|
|
261
270
|
}
|
|
262
|
-
|
|
263
|
-
this.
|
|
271
|
+
ah(a) {
|
|
272
|
+
this.d.b7();
|
|
273
|
+
}
|
|
274
|
+
a() {
|
|
275
|
+
let a = new List$1(PrimitiveVisualData.$, 0);
|
|
276
|
+
let b = this.v.rootWrapper.getNativeElement();
|
|
277
|
+
return a.toArray();
|
|
278
|
+
}
|
|
279
|
+
af(a, b) {
|
|
280
|
+
for (let c = 0; c < b.e.count; c++) {
|
|
281
|
+
let d = b.e._inner[c];
|
|
282
|
+
let e = this.h(d);
|
|
283
|
+
if (e != null) {
|
|
284
|
+
a.add(e);
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
this.af(a, d);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
h(a) {
|
|
292
|
+
let b = null;
|
|
293
|
+
switch (a.c) {
|
|
294
|
+
case 7:
|
|
295
|
+
let c = ((() => {
|
|
296
|
+
let $ret = new Path();
|
|
297
|
+
$ret.an = a.w;
|
|
298
|
+
return $ret;
|
|
299
|
+
})());
|
|
300
|
+
this.aq(c, a);
|
|
301
|
+
b = new PathVisualData(1, "path1", c);
|
|
302
|
+
break;
|
|
303
|
+
case 3:
|
|
304
|
+
let d = a;
|
|
305
|
+
let e = new Line();
|
|
306
|
+
e.an = d.w;
|
|
307
|
+
e.ao = d.x;
|
|
308
|
+
e.ap = d.y;
|
|
309
|
+
e.aq = d.z;
|
|
310
|
+
this.aq(e, a);
|
|
311
|
+
b = new LineVisualData(1, "line1", e);
|
|
312
|
+
break;
|
|
313
|
+
case 4:
|
|
314
|
+
let f = a;
|
|
315
|
+
let g = new Rectangle();
|
|
316
|
+
g.width = f.z;
|
|
317
|
+
g.height = f.w;
|
|
318
|
+
g.ap = f.x;
|
|
319
|
+
g.aq = f.y;
|
|
320
|
+
this.aq(g, a);
|
|
321
|
+
b = new RectangleVisualData(1, "rect1", g);
|
|
322
|
+
break;
|
|
323
|
+
case 5:
|
|
324
|
+
case 6:
|
|
325
|
+
let h = a;
|
|
326
|
+
let i = new Ellipse();
|
|
327
|
+
i.width = h.y * 2;
|
|
328
|
+
i.height = h.z * 2;
|
|
329
|
+
this.aq(i, a);
|
|
330
|
+
b = new EllipseVisualData(1, "ellipse1", i);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
return b;
|
|
334
|
+
}
|
|
335
|
+
aq(a, b) {
|
|
336
|
+
let c = b;
|
|
337
|
+
a.ad = b.t;
|
|
338
|
+
a.j = c.h;
|
|
339
|
+
a.am = c.v;
|
|
340
|
+
a.al = c.u;
|
|
341
|
+
a.ak = c.u;
|
|
342
|
+
a._opacity = c.q;
|
|
343
|
+
if (c.i != null) {
|
|
344
|
+
let d = new DoubleCollection();
|
|
345
|
+
let g = c.i;
|
|
346
|
+
for (let f = 0; f < g.length; f++) {
|
|
347
|
+
let e = g[f];
|
|
348
|
+
d.add(e);
|
|
349
|
+
}
|
|
350
|
+
a.ai = d;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
i(a) {
|
|
354
|
+
if (typeCast(Path.$, a) !== null) {
|
|
355
|
+
return new PathVisualData(1, "path1", a);
|
|
356
|
+
}
|
|
357
|
+
else if (typeCast(Line.$, a) !== null) {
|
|
358
|
+
return new LineVisualData(1, "line1", a);
|
|
359
|
+
}
|
|
360
|
+
else if (typeCast(Rectangle.$, a) !== null) {
|
|
361
|
+
return new RectangleVisualData(1, "rect1", a);
|
|
362
|
+
}
|
|
363
|
+
else if (typeCast(Ellipse.$, a) !== null) {
|
|
364
|
+
return new EllipseVisualData(1, "ellipse1", a);
|
|
365
|
+
}
|
|
366
|
+
return null;
|
|
264
367
|
}
|
|
265
368
|
}
|
|
266
369
|
IconView.$t = markType(IconView, 'IconView');
|
|
@@ -314,9 +417,9 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
314
417
|
this.clicked = null;
|
|
315
418
|
this.propertyChanged = null;
|
|
316
419
|
let a = new IconView();
|
|
317
|
-
a.
|
|
420
|
+
a.d = this;
|
|
318
421
|
this.view = a;
|
|
319
|
-
this.view.
|
|
422
|
+
this.view.ak();
|
|
320
423
|
}
|
|
321
424
|
get view() {
|
|
322
425
|
return this._view;
|
|
@@ -379,11 +482,11 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
379
482
|
case "ViewBoxTop":
|
|
380
483
|
case "ViewBoxWidth":
|
|
381
484
|
case "ViewBoxHeight":
|
|
382
|
-
this.view.
|
|
485
|
+
this.view.aw();
|
|
383
486
|
break;
|
|
384
487
|
case "Width":
|
|
385
488
|
case "Height":
|
|
386
|
-
this.view.
|
|
489
|
+
this.view.ar();
|
|
387
490
|
break;
|
|
388
491
|
}
|
|
389
492
|
}
|
|
@@ -406,15 +509,15 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
406
509
|
}
|
|
407
510
|
}
|
|
408
511
|
get r() {
|
|
409
|
-
return this.svgPath != null && !this.view.
|
|
512
|
+
return this.svgPath != null && !this.view.m;
|
|
410
513
|
}
|
|
411
514
|
ch() {
|
|
412
|
-
NativeUI.y(this.view.
|
|
515
|
+
NativeUI.y(this.view.z, this.ak);
|
|
413
516
|
}
|
|
414
517
|
cg() {
|
|
415
|
-
let a = this.view.
|
|
518
|
+
let a = this.view.z;
|
|
416
519
|
if (this.r) {
|
|
417
|
-
let b = this.view.
|
|
520
|
+
let b = this.view.aa;
|
|
418
521
|
NativeUI.r(b, this.cw);
|
|
419
522
|
NativeUI.aa(b, this.cx);
|
|
420
523
|
NativeUI.ad(b, this.af);
|
|
@@ -423,22 +526,22 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
423
526
|
let c = false;
|
|
424
527
|
if (this.svgPath != null) {
|
|
425
528
|
if (stringStartsWith(trimStart(this.svgPath, ' ', '\n', '\r', '\t'), "<svg")) {
|
|
426
|
-
this.view.
|
|
529
|
+
this.view.as(this.svgPath);
|
|
427
530
|
c = true;
|
|
428
531
|
}
|
|
429
532
|
else {
|
|
430
|
-
this.view.
|
|
533
|
+
this.view.at(this.svgPath);
|
|
431
534
|
}
|
|
432
535
|
}
|
|
433
536
|
else if (this.b != null) {
|
|
434
|
-
this.view.
|
|
435
|
-
let d = this.view.
|
|
537
|
+
this.view.au(this.b);
|
|
538
|
+
let d = this.view.c;
|
|
436
539
|
if (d != null && d.length > 0) {
|
|
437
540
|
let e = NativeUI.r;
|
|
438
541
|
let f = NativeUI.aa;
|
|
439
542
|
this.cd();
|
|
440
|
-
e = runOn(this.view, this.view.
|
|
441
|
-
f = runOn(this.view, this.view.
|
|
543
|
+
e = runOn(this.view, this.view.an);
|
|
544
|
+
f = runOn(this.view, this.view.ao);
|
|
442
545
|
for (let g = 0; g < d.length; g++) {
|
|
443
546
|
if (this.cw != null) {
|
|
444
547
|
e(d[g], this.cw);
|
|
@@ -461,63 +564,63 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
461
564
|
}
|
|
462
565
|
}
|
|
463
566
|
if (this.m != null) {
|
|
464
|
-
this.view.
|
|
567
|
+
this.view.av(this.m);
|
|
465
568
|
}
|
|
466
569
|
return;
|
|
467
570
|
}
|
|
468
571
|
else if (this.svg != null) {
|
|
469
|
-
this.view.
|
|
572
|
+
this.view.as(this.svg);
|
|
470
573
|
c = true;
|
|
471
574
|
}
|
|
472
575
|
else if (this.a7 != null) {
|
|
473
|
-
this.view.
|
|
576
|
+
this.view.ap(this.a7);
|
|
474
577
|
}
|
|
475
578
|
if (c) {
|
|
476
|
-
for (let h = 0; h < this.view.
|
|
477
|
-
let i = this.view.
|
|
478
|
-
NativeUI.r(this.view.
|
|
579
|
+
for (let h = 0; h < this.view.r.count; h++) {
|
|
580
|
+
let i = this.view.r._inner[h].c;
|
|
581
|
+
NativeUI.r(this.view.r._inner[h].d, i.l.f(this.c8));
|
|
479
582
|
}
|
|
480
|
-
for (let j = 0; j < this.view.
|
|
481
|
-
let k = this.view.
|
|
482
|
-
NativeUI.aa(this.view.
|
|
583
|
+
for (let j = 0; j < this.view.s.count; j++) {
|
|
584
|
+
let k = this.view.s._inner[j].c;
|
|
585
|
+
NativeUI.aa(this.view.s._inner[j].d, k.m.f(this.c9));
|
|
483
586
|
}
|
|
484
|
-
for (let l = 0; l < this.view.
|
|
485
|
-
let m = this.view.
|
|
486
|
-
NativeUI.r(this.view.
|
|
587
|
+
for (let l = 0; l < this.view.t.count; l++) {
|
|
588
|
+
let m = this.view.t._inner[l].c;
|
|
589
|
+
NativeUI.r(this.view.t._inner[l].d, m.l.f(this.da));
|
|
487
590
|
}
|
|
488
|
-
for (let n = 0; n < this.view.
|
|
489
|
-
let o = this.view.
|
|
490
|
-
NativeUI.aa(this.view.
|
|
591
|
+
for (let n = 0; n < this.view.u.count; n++) {
|
|
592
|
+
let o = this.view.u._inner[n].c;
|
|
593
|
+
NativeUI.aa(this.view.u._inner[n].d, o.m.f(this.db));
|
|
491
594
|
}
|
|
492
|
-
for (let p = 0; p < this.view.
|
|
493
|
-
let q = this.view.
|
|
595
|
+
for (let p = 0; p < this.view.e.o.count; p++) {
|
|
596
|
+
let q = this.view.e.o._inner[p];
|
|
494
597
|
let r = q.split('-');
|
|
495
598
|
let s = parseInt(r[r.length - 1]);
|
|
496
599
|
if (s < this.e.count) {
|
|
497
|
-
for (let t = 0; t < this.view.
|
|
498
|
-
let u = this.view.
|
|
499
|
-
NativeUI.r(this.view.
|
|
600
|
+
for (let t = 0; t < this.view.e.q._inner[p].count; t++) {
|
|
601
|
+
let u = this.view.e.q._inner[p]._inner[t].c;
|
|
602
|
+
NativeUI.r(this.view.e.q._inner[p]._inner[t].d, u.l.f(this.e.item(s)));
|
|
500
603
|
}
|
|
501
604
|
}
|
|
502
605
|
}
|
|
503
|
-
for (let v = 0; v < this.view.
|
|
504
|
-
let w = this.view.
|
|
606
|
+
for (let v = 0; v < this.view.f.o.count; v++) {
|
|
607
|
+
let w = this.view.f.o._inner[v];
|
|
505
608
|
let x = w.split('-');
|
|
506
609
|
let y = parseInt(x[x.length - 1]);
|
|
507
610
|
if (y < this.f.count) {
|
|
508
|
-
for (let z = 0; z < this.view.
|
|
509
|
-
let aa = this.view.
|
|
510
|
-
NativeUI.aa(this.view.
|
|
611
|
+
for (let z = 0; z < this.view.f.q._inner[v].count; z++) {
|
|
612
|
+
let aa = this.view.f.q._inner[v]._inner[z].c;
|
|
613
|
+
NativeUI.aa(this.view.f.q._inner[v]._inner[z].d, aa.m.f(this.f.item(y)));
|
|
511
614
|
}
|
|
512
615
|
}
|
|
513
616
|
}
|
|
514
|
-
for (let ab = 0; ab < this.view.
|
|
515
|
-
let ac = this.view.
|
|
516
|
-
NativeUI.r(this.view.
|
|
517
|
-
NativeUI.aa(this.view.
|
|
617
|
+
for (let ab = 0; ab < this.view.q.count; ab++) {
|
|
618
|
+
let ac = this.view.q._inner[ab].c;
|
|
619
|
+
NativeUI.r(this.view.q._inner[ab].d, ac.l.f(this.cw));
|
|
620
|
+
NativeUI.aa(this.view.q._inner[ab].d, ac.m.f(this.cx));
|
|
518
621
|
}
|
|
519
622
|
}
|
|
520
|
-
let ad = this.view.
|
|
623
|
+
let ad = this.view.z;
|
|
521
624
|
if (this.cw != null) {
|
|
522
625
|
NativeUI.r(ad, this.cw);
|
|
523
626
|
}
|
|
@@ -529,27 +632,27 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
529
632
|
}
|
|
530
633
|
}
|
|
531
634
|
if (this.m != null) {
|
|
532
|
-
this.view.
|
|
635
|
+
this.view.av(this.m);
|
|
533
636
|
}
|
|
534
637
|
if (this.cy != null) {
|
|
535
|
-
NativeUI.q(this.view.
|
|
638
|
+
NativeUI.q(this.view.z, this.cy);
|
|
536
639
|
}
|
|
537
640
|
}
|
|
538
641
|
cd() {
|
|
539
642
|
if (this.cw != null) {
|
|
540
|
-
this.view.
|
|
643
|
+
this.view.am(this.cw, "fill");
|
|
541
644
|
}
|
|
542
645
|
if (this.cx != null) {
|
|
543
|
-
this.view.
|
|
646
|
+
this.view.am(this.cx, "stroke");
|
|
544
647
|
}
|
|
545
648
|
if (this.e != null) {
|
|
546
649
|
for (let a of fromEnum(this.e)) {
|
|
547
|
-
this.view.
|
|
650
|
+
this.view.am(a, "fills");
|
|
548
651
|
}
|
|
549
652
|
}
|
|
550
653
|
if (this.f != null) {
|
|
551
654
|
for (let b of fromEnum(this.f)) {
|
|
552
|
-
this.view.
|
|
655
|
+
this.view.am(b, "strokes");
|
|
553
656
|
}
|
|
554
657
|
}
|
|
555
658
|
}
|
|
@@ -926,10 +1029,10 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
926
1029
|
cc() {
|
|
927
1030
|
}
|
|
928
1031
|
onDetachedFromUI() {
|
|
929
|
-
this.view.
|
|
1032
|
+
this.view.aj();
|
|
930
1033
|
}
|
|
931
1034
|
onAttachedToUI() {
|
|
932
|
-
this.view.
|
|
1035
|
+
this.view.ag();
|
|
933
1036
|
}
|
|
934
1037
|
b7() {
|
|
935
1038
|
if (this.disabled) {
|
|
@@ -940,61 +1043,58 @@ export let XIcon = /*@__PURE__*/ (() => {
|
|
|
940
1043
|
}
|
|
941
1044
|
}
|
|
942
1045
|
u() {
|
|
943
|
-
return this.view.
|
|
1046
|
+
return this.view.l();
|
|
944
1047
|
}
|
|
945
1048
|
au() {
|
|
946
1049
|
return this.g();
|
|
947
1050
|
}
|
|
948
1051
|
a9() {
|
|
949
1052
|
let a = this.g();
|
|
950
|
-
return a.
|
|
1053
|
+
return a.l();
|
|
951
1054
|
}
|
|
952
1055
|
g() {
|
|
953
1056
|
let a = new IconVisualModelExport();
|
|
954
|
-
let b = this.view.
|
|
955
|
-
a.
|
|
956
|
-
a.
|
|
957
|
-
a.
|
|
958
|
-
a.
|
|
959
|
-
|
|
960
|
-
a.
|
|
961
|
-
a.f = c[1];
|
|
962
|
-
a.e = NativeUI.d(b);
|
|
963
|
-
a.i = NativeUI.k(b);
|
|
1057
|
+
let b = this.view.b();
|
|
1058
|
+
a.i = b[0];
|
|
1059
|
+
a.g = b[1];
|
|
1060
|
+
a.f = NativeUI.d(this.view.z);
|
|
1061
|
+
a.j = NativeUI.k(this.view.z);
|
|
1062
|
+
a.a = this.view.a();
|
|
1063
|
+
a.svg = this.svg;
|
|
964
1064
|
a.svgPath = this.svgPath;
|
|
965
|
-
a.
|
|
1065
|
+
a.k = this.a7;
|
|
966
1066
|
if (this.m != null) {
|
|
967
|
-
let
|
|
968
|
-
if (this.view != null &&
|
|
969
|
-
let
|
|
970
|
-
let
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1067
|
+
let c = this.m;
|
|
1068
|
+
if (this.view != null && c.q == null) {
|
|
1069
|
+
let d = this.view.v;
|
|
1070
|
+
let e = FontUtil.getFontInfoFromString(d, c.fontString);
|
|
1071
|
+
c.q = e.q;
|
|
1072
|
+
c.f = e.f;
|
|
1073
|
+
c.r = e.r;
|
|
1074
|
+
c.t = e.t;
|
|
1075
|
+
c.u = e.u;
|
|
1076
|
+
c.v = e.v;
|
|
977
1077
|
}
|
|
978
|
-
if (
|
|
979
|
-
a.
|
|
1078
|
+
if (c.q != null) {
|
|
1079
|
+
a.o = c.q;
|
|
980
1080
|
}
|
|
981
|
-
if (!isNaN_(
|
|
982
|
-
a.
|
|
1081
|
+
if (!isNaN_(c.f)) {
|
|
1082
|
+
a.h = c.f;
|
|
983
1083
|
}
|
|
984
|
-
if (
|
|
985
|
-
a.
|
|
1084
|
+
if (c.v != null) {
|
|
1085
|
+
a.s = c.v;
|
|
986
1086
|
}
|
|
987
|
-
if (
|
|
988
|
-
a.
|
|
1087
|
+
if (c.t != null) {
|
|
1088
|
+
a.q = c.t;
|
|
989
1089
|
}
|
|
990
|
-
if (
|
|
991
|
-
a.
|
|
1090
|
+
if (c.r != null) {
|
|
1091
|
+
a.p = c.t;
|
|
992
1092
|
}
|
|
993
1093
|
}
|
|
994
1094
|
return a;
|
|
995
1095
|
}
|
|
996
1096
|
provideContainer(a) {
|
|
997
|
-
this.view.
|
|
1097
|
+
this.view.ai(a);
|
|
998
1098
|
}
|
|
999
1099
|
}
|
|
1000
1100
|
XIcon.$t = markType(XIcon, 'XIcon', Base.$, [INotifyPropertyChanged_$type, IIcon_$type]);
|