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.
Files changed (67) hide show
  1. package/bundles/igniteui-angular-inputs.umd.js +971 -753
  2. package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
  3. package/esm2015/lib/ButtonGroupVisualModelExport.js +1 -1
  4. package/esm2015/lib/ButtonView_combined.js +28 -33
  5. package/esm2015/lib/ButtonVisualModelExport.js +14 -13
  6. package/esm2015/lib/CalendarView_combined.js +2 -0
  7. package/esm2015/lib/CalendarVisualModelExport.js +1 -1
  8. package/esm2015/lib/CheckboxView_combined.js +2 -2
  9. package/esm2015/lib/DatePickerView_combined.js +325 -322
  10. package/esm2015/lib/IconView_combined.js +310 -201
  11. package/esm2015/lib/IconVisualModelExport.js +46 -33
  12. package/esm2015/lib/NativeUIXInputsFactory.js +9 -9
  13. package/esm2015/lib/TextBlockVisualModelExport.js +64 -0
  14. package/esm2015/lib/XButtonBridge.js +11 -4
  15. package/esm2015/lib/XCheckboxBridge.js +19 -0
  16. package/esm2015/lib/{DatePicker.js → XDatePicker.js} +1 -1
  17. package/esm2015/lib/XIconBridge.js +6 -0
  18. package/esm2015/lib/XIconButtonBridge.js +1 -1
  19. package/esm2015/lib/XInputBridge.js +3 -0
  20. package/esm2015/lib/XPopupBridge.js +11 -8
  21. package/esm2015/lib/{igx-date-picker-component.js → igx-x-date-picker-component.js} +40 -40
  22. package/esm2015/lib/{igx-date-picker-dynamic-module.js → igx-x-date-picker-dynamic-module.js} +20 -20
  23. package/esm2015/lib/{igx-date-picker-module.js → igx-x-date-picker-module.js} +14 -14
  24. package/esm2015/public_api.js +5 -4
  25. package/esm5/lib/ButtonGroupVisualModelExport.js +1 -1
  26. package/esm5/lib/ButtonView_combined.js +33 -38
  27. package/esm5/lib/ButtonVisualModelExport.js +14 -13
  28. package/esm5/lib/CalendarView_combined.js +2 -0
  29. package/esm5/lib/CalendarVisualModelExport.js +1 -1
  30. package/esm5/lib/CheckboxView_combined.js +2 -2
  31. package/esm5/lib/DatePickerView_combined.js +336 -333
  32. package/esm5/lib/IconView_combined.js +308 -199
  33. package/esm5/lib/IconVisualModelExport.js +50 -33
  34. package/esm5/lib/NativeUIXInputsFactory.js +9 -9
  35. package/esm5/lib/TextBlockVisualModelExport.js +66 -0
  36. package/esm5/lib/XButtonBridge.js +11 -4
  37. package/esm5/lib/XCheckboxBridge.js +19 -0
  38. package/esm5/lib/{DatePicker.js → XDatePicker.js} +1 -1
  39. package/esm5/lib/XIconBridge.js +6 -0
  40. package/esm5/lib/XIconButtonBridge.js +1 -1
  41. package/esm5/lib/XInputBridge.js +3 -0
  42. package/esm5/lib/XPopupBridge.js +11 -8
  43. package/esm5/lib/{igx-date-picker-component.js → igx-x-date-picker-component.js} +87 -87
  44. package/esm5/lib/{igx-date-picker-dynamic-module.js → igx-x-date-picker-dynamic-module.js} +21 -21
  45. package/esm5/lib/{igx-date-picker-module.js → igx-x-date-picker-module.js} +15 -15
  46. package/esm5/public_api.js +5 -4
  47. package/fesm2015/igniteui-angular-inputs.js +906 -693
  48. package/fesm5/igniteui-angular-inputs.js +968 -751
  49. package/lib/ButtonVisualModelExport.d.ts +6 -5
  50. package/lib/DatePickerView_combined.d.ts +75 -74
  51. package/lib/IconView_combined.d.ts +35 -32
  52. package/lib/IconVisualModelExport.d.ts +17 -12
  53. package/lib/TextBlockVisualModelExport.d.ts +21 -0
  54. package/lib/XButtonBridge.d.ts +1 -0
  55. package/lib/XCheckboxBridge.d.ts +1 -0
  56. package/lib/XDatePicker.d.ts +1 -0
  57. package/lib/XIconBridge.d.ts +1 -0
  58. package/lib/XInputBridge.d.ts +1 -0
  59. package/lib/XPopupBridge.d.ts +1 -0
  60. package/lib/{igx-date-picker-component.d.ts → igx-x-date-picker-component.d.ts} +6 -6
  61. package/lib/igx-x-date-picker-dynamic-module.d.ts +13 -0
  62. package/lib/igx-x-date-picker-module.d.ts +13 -0
  63. package/package.json +5 -5
  64. package/public_api.d.ts +5 -4
  65. package/lib/DatePicker.d.ts +0 -1
  66. package/lib/igx-date-picker-dynamic-module.d.ts +0 -13
  67. 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.t = null;
43
+ _this.v = null;
35
44
  _this.g = null;
36
- _this.m = new List$1(Delegate_$type, 0);
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.a = null;
46
- _this.aa = null;
47
- _this.z = null;
48
- _this.l = new Dictionary$2(Brush.$, String_$type, 0);
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.v = null;
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.aj = function () {
69
+ IconView.prototype.ak = function () {
64
70
  };
65
- IconView.prototype.j = function () {
71
+ IconView.prototype.l = function () {
66
72
  return true;
67
73
  };
68
- Object.defineProperty(IconView.prototype, "x", {
74
+ Object.defineProperty(IconView.prototype, "z", {
69
75
  get: function () {
70
- return this.w;
76
+ return this.y;
71
77
  },
72
78
  enumerable: false,
73
79
  configurable: true
74
80
  });
75
- Object.defineProperty(IconView.prototype, "y", {
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.n.toArray();
90
+ return this.p.toArray();
85
91
  },
86
92
  enumerable: false,
87
93
  configurable: true
88
94
  });
89
- Object.defineProperty(IconView.prototype, "k", {
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.ah = function (a) {
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.m)), _c = _b.next(); !_c.done; _c = _b.next()) {
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.m.clear();
119
- if (this.w != null) {
120
- this.w.unlistenAll();
124
+ this.o.clear();
125
+ if (this.y != null) {
126
+ this.y.unlistenAll();
121
127
  }
122
- if (this.v != null) {
123
- this.v.unlistenAll();
128
+ if (this.x != null) {
129
+ this.x.unlistenAll();
124
130
  }
125
131
  }
126
- this.t = a;
132
+ this.v = a;
127
133
  a.rootWrapper.setStyleProperty("position", "relative");
128
- this.t.rootWrapper.setStyleProperty("display", "flex");
129
- this.t.rootWrapper.setStyleProperty("flex-direction", "row");
130
- this.t.rootWrapper.setStyleProperty("flex-wrap", "no-wrap");
131
- this.t.rootWrapper.setStyleProperty("align-items", "center");
132
- this.t.rootWrapper.setStyleProperty("justify-content", "center");
133
- this.ap();
134
- var c = this.t.createElementNS("svg", "http://www.w3.org/2000/svg");
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.w = c;
141
- var d = this.t.createElement("img");
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.v = d;
146
- this.au();
147
- this.u = a.createElementNS("defs", "http://www.w3.org/2000/svg");
148
- this.w.append(this.u);
149
- this.t.append(this.w);
150
- this.m.add(c.listen("click", runOn(this, this.ag)));
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.ar = function (a) {
154
- this.l.clear();
155
- if (this.ab != a) {
156
- this.ab = a;
157
- this.t.rootWrapper.removeChildren();
158
- this.t.rootWrapper.append(this.w);
159
- this.w.removeChildren();
160
- this.u.removeChildren();
161
- this.n.clear();
162
- var b = this.t.createElementNS("path", "http://www.w3.org/2000/svg");
163
- b.setAttribute("d", this.ab);
164
- this.w.append(this.u);
165
- this.w.append(b);
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.as = function (a) {
170
- this.l.clear();
171
- if (this.a != a) {
172
- this.a = a;
173
- this.t.rootWrapper.removeChildren();
174
- this.t.rootWrapper.append(this.w);
175
- this.w.removeChildren();
176
- this.u.removeChildren();
177
- this.n.clear();
178
- if (this.a != null && this.a.length > 0) {
179
- this.w.append(this.u);
180
- for (var b = 0; b < this.a.length; b++) {
181
- var c = this.t.createElementNS("path", "http://www.w3.org/2000/svg");
182
- c.setAttribute("d", this.a[b]);
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.aq = function (a) {
190
- if (this.aa != a) {
191
- this.aa = a;
192
- this.t.rootWrapper.removeChildren();
193
- var b = this.t.rootWrapper.getNativeElement();
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.ao = function (a) {
198
- if (this.z != a) {
199
- this.z = a;
200
- this.t.rootWrapper.removeChildren();
201
- this.t.rootWrapper.append(this.v);
202
- this.v.setAttribute("src", a);
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.i = function () {
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.ap = function () {
209
- this.t.rootWrapper.setStyleProperty("width", isNaN_(this.d.aq) ? "1.5rem" : this.d.aq + "px");
210
- this.t.rootWrapper.setStyleProperty("height", isNaN_(this.d.ai) ? "1.5rem" : this.d.ai + "px");
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.au = function () {
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.w.setAttribute("viewBox", a + " " + b + " " + c + " " + d);
218
+ this.y.setAttribute("viewBox", a + " " + b + " " + c + " " + d);
218
219
  };
219
- IconView.prototype.al = function (a, b) {
220
+ IconView.prototype.am = function (a, b) {
220
221
  var c = a.color;
221
- if (!this.l.containsKey(a)) {
222
+ if (!this.n.containsKey(a)) {
222
223
  if (a.isGradient) {
223
- var d = this.u.getChildCount();
224
+ var d = this.w.getChildCount();
224
225
  var e = a;
225
- var f = this.t.createElementNS("linearGradient", "http://www.w3.org/2000/svg");
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.t.createElementNS("stop", "http://www.w3.org/2000/svg");
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.u.append(f);
241
- this.l.addItem(a, g);
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.am = function (a, b) {
248
+ IconView.prototype.an = function (a, b) {
248
249
  var c = a;
249
- if (this.l.containsKey(b)) {
250
- c.setAttribute("fill", "url(#" + this.l.item(b) + ")");
251
- this.t.rootWrapper.removeChildren();
252
- this.t.rootWrapper.append(this.w);
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.an = function (a, b) {
259
+ IconView.prototype.ao = function (a, b) {
259
260
  var c = a;
260
- if (this.l.containsKey(b)) {
261
- c.setAttribute("stroke", "url('#" + this.l.item(b) + "')");
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.ak = function () {
270
- if (this.j()) {
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.af = function () {
280
- this.h = true;
281
- this.m.add(this.t.rootWrapper.listen("mouseenter", runOn(this, this.ad)));
282
- this.m.add(this.t.rootWrapper.listen("mouseleave", runOn(this, this.ae)));
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.ai = function () {
285
+ IconView.prototype.aj = function () {
285
286
  var e_2, _a;
286
- this.h = false;
287
+ this.j = false;
287
288
  try {
288
- for (var _b = __values(fromEnum(this.m)), _c = _b.next(); !_c.done; _c = _b.next()) {
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.m.clear();
307
+ this.o.clear();
307
308
  };
308
- IconView.prototype.at = function (a) {
309
+ IconView.prototype.av = function (a) {
309
310
  if (a != null) {
310
- this.t.rootWrapper.setStyleProperty("font", a.fontString);
311
+ this.v.rootWrapper.setStyleProperty("font", a.fontString);
311
312
  }
312
313
  };
313
314
  IconView.prototype.b = function () {
314
- var rect_ = this.t.rootWrapper.getNativeElement().getBoundingClientRect();
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.ag = function (a) {
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.aj();
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
- case "SVG":
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.au();
542
+ this.view.aw();
431
543
  break;
432
544
  case "Width":
433
545
  case "Height":
434
- this.view.ap();
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.k;
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.x, this.ak);
576
+ NativeUI.y(this.view.z, this.ak);
465
577
  };
466
578
  XIcon.prototype.cg = function () {
467
- var a = this.view.x;
579
+ var a = this.view.z;
468
580
  if (this.r) {
469
- var b = this.view.y;
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.aq(this.svgPath);
590
+ this.view.as(this.svgPath);
479
591
  c = true;
480
592
  }
481
593
  else {
482
- this.view.ar(this.svgPath);
594
+ this.view.at(this.svgPath);
483
595
  }
484
596
  }
485
597
  else if (this.b != null) {
486
- this.view.as(this.b);
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.am);
493
- f = runOn(this.view, this.view.an);
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.at(this.m);
628
+ this.view.av(this.m);
517
629
  }
518
630
  return;
519
631
  }
520
632
  else if (this.svg != null) {
521
- this.view.aq(this.svg);
633
+ this.view.as(this.svg);
522
634
  c = true;
523
635
  }
524
636
  else if (this.a7 != null) {
525
- this.view.ao(this.a7);
637
+ this.view.ap(this.a7);
526
638
  }
527
639
  if (c) {
528
- for (var h = 0; h < this.view.p.count; h++) {
529
- var i = this.view.p._inner[h].c;
530
- NativeUI.r(this.view.p._inner[h].d, i.l.f(this.c8));
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.q.count; j++) {
533
- var k = this.view.q._inner[j].c;
534
- NativeUI.aa(this.view.q._inner[j].d, k.m.f(this.c9));
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.r.count; l++) {
537
- var m = this.view.r._inner[l].c;
538
- NativeUI.r(this.view.r._inner[l].d, m.l.f(this.da));
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.s.count; n++) {
541
- var o = this.view.s._inner[n].c;
542
- NativeUI.aa(this.view.s._inner[n].d, o.m.f(this.db));
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.o.count; ab++) {
567
- var ac = this.view.o._inner[ab].c;
568
- NativeUI.r(this.view.o._inner[ab].d, ac.l.f(this.cw));
569
- NativeUI.aa(this.view.o._inner[ab].d, ac.m.f(this.cx));
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.x;
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.at(this.m);
696
+ this.view.av(this.m);
585
697
  }
586
698
  if (this.cy != null) {
587
- NativeUI.q(this.view.x, this.cy);
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.al(this.cw, "fill");
705
+ this.view.am(this.cw, "fill");
594
706
  }
595
707
  if (this.cx != null) {
596
- this.view.al(this.cx, "stroke");
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.al(a, "fills");
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.al(b, "strokes");
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.ai();
1274
+ this.view.aj();
1163
1275
  };
1164
1276
  XIcon.prototype.onAttachedToUI = function () {
1165
- this.view.af();
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.j();
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.k();
1295
+ return a.l();
1184
1296
  };
1185
1297
  XIcon.prototype.g = function () {
1186
1298
  var a = new IconVisualModelExport();
1187
- var b = this.view.x;
1188
- a.a = AppearanceHelper.a(NativeUI.al(b));
1189
- a.c = AppearanceHelper.a(NativeUI.al(b));
1190
- a.b = AppearanceHelper.a(NativeUI.am(b));
1191
- a.d = this.af;
1192
- var c = this.view.b();
1193
- a.h = c[0];
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.j = this.a7;
1307
+ a.k = this.a7;
1199
1308
  if (this.m != null) {
1200
- var d = this.m;
1201
- if (this.view != null && d.q == null) {
1202
- var e = this.view.t;
1203
- var f = FontUtil.getFontInfoFromString(e, d.fontString);
1204
- d.q = f.q;
1205
- d.f = f.f;
1206
- d.r = f.r;
1207
- d.t = f.t;
1208
- d.u = f.u;
1209
- d.v = f.v;
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 (d.q != null) {
1212
- a.m = d.q;
1320
+ if (c.q != null) {
1321
+ a.o = c.q;
1213
1322
  }
1214
- if (!isNaN_(d.f)) {
1215
- a.g = d.f;
1323
+ if (!isNaN_(c.f)) {
1324
+ a.h = c.f;
1216
1325
  }
1217
- if (d.v != null) {
1218
- a.q = d.v;
1326
+ if (c.v != null) {
1327
+ a.s = c.v;
1219
1328
  }
1220
- if (d.t != null) {
1221
- a.o = d.t;
1329
+ if (c.t != null) {
1330
+ a.q = c.t;
1222
1331
  }
1223
- if (d.r != null) {
1224
- a.n = d.t;
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.ah(a);
1339
+ this.view.ai(a);
1231
1340
  };
1232
1341
  XIcon.$t = markType(XIcon, 'XIcon', Base.$, [INotifyPropertyChanged_$type, IIcon_$type]);
1233
1342
  XIcon.cz = null;