UNPKG

igniteui-webcomponents-inputs

Version:

Ignite UI Web Components inputs components.

1,475 lines (1,474 loc) 45.2 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula 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. */ import { __extends, __values } from "tslib"; import { Base, String_$type, Delegate_$type, fromEnum, runOn, typeCast, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-webcomponents-core"; import { DomWrapper_$type } from "igniteui-webcomponents-core"; import { List$1 } from "igniteui-webcomponents-core"; import { Tuple$2 } from "igniteui-webcomponents-core"; import { SVGNode } from "igniteui-webcomponents-core"; import { FastIterationDictionary$2 } from "igniteui-webcomponents-core"; import { Dictionary$2 } from "igniteui-webcomponents-core"; import { Brush } from "igniteui-webcomponents-core"; import { NativeUI } from "igniteui-webcomponents-core"; import { PrimitiveVisualData } from "igniteui-webcomponents-core"; import { Path } from "igniteui-webcomponents-core"; import { Line } from "igniteui-webcomponents-core"; import { Rectangle } from "igniteui-webcomponents-core"; import { Ellipse } from "igniteui-webcomponents-core"; import { PathVisualData } from "igniteui-webcomponents-core"; import { LineVisualData } from "igniteui-webcomponents-core"; import { RectangleVisualData } from "igniteui-webcomponents-core"; import { EllipseVisualData } from "igniteui-webcomponents-core"; import { DoubleCollection } from "igniteui-webcomponents-core"; import { LegendItemHelper } from "igniteui-webcomponents-core"; import { isNaN_ } from "igniteui-webcomponents-core"; import { IIcon_$type } from "igniteui-webcomponents-core"; import { BaseControlTheme_$type } from "igniteui-webcomponents-core"; import { IconClickedEventArgs } from "./IconClickedEventArgs"; import { IconVisualModelExport } from "./IconVisualModelExport"; import { FontUtil } from "igniteui-webcomponents-core"; import { stringStartsWith } from "igniteui-webcomponents-core"; import { trimStart } from "igniteui-webcomponents-core"; /** * @hidden */ var IconView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IconView, _super); function IconView() { var _this = _super.call(this) || this; _this.d = null; _this.v = null; _this.g = null; _this.o = new List$1(Delegate_$type, 0); _this.q = null; _this.r = null; _this.s = null; _this.t = null; _this.u = null; _this.e = null; _this.f = null; _this.ab = null; _this.n = new Dictionary$2(Brush.$, String_$type, 0); _this.j = true; _this.y = null; _this.x = null; _this.w = null; _this.p = new List$1(DomWrapper_$type, 0); _this.q = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0); _this.r = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0); _this.s = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0); _this.t = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0); _this.u = new List$1(Tuple$2.$.specialize(SVGNode.$, Base.$), 0); _this.e = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0); _this.f = new FastIterationDictionary$2(String_$type, List$1.$.specialize(Tuple$2.$.specialize(SVGNode.$, Base.$)), 0); return _this; } IconView.prototype.am = function () { }; IconView.prototype.l = function () { return true; }; Object.defineProperty(IconView.prototype, "z", { get: function () { return this.y; }, enumerable: false, configurable: true }); Object.defineProperty(IconView.prototype, "aa", { get: function () { return null; }, enumerable: false, configurable: true }); Object.defineProperty(IconView.prototype, "c", { get: function () { return this.p.toArray(); }, enumerable: false, configurable: true }); Object.defineProperty(IconView.prototype, "m", { get: function () { return true; }, enumerable: false, configurable: true }); IconView.prototype.ak = function (a) { var e_1, _a; if (a == null) { try { for (var _b = __values(fromEnum(this.o)), _c = _b.next(); !_c.done; _c = _b.next()) { var b = _c.value; b(); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.o.clear(); if (this.y != null) { this.y.unlistenAll(); } if (this.x != null) { this.x.unlistenAll(); } } this.v = a; a.rootWrapper.setStyleProperty("position", "relative"); this.v.rootWrapper.setStyleProperty("display", "flex"); this.v.rootWrapper.setStyleProperty("flex-direction", "row"); this.v.rootWrapper.setStyleProperty("flex-wrap", "no-wrap"); this.v.rootWrapper.setStyleProperty("align-items", "center"); this.v.rootWrapper.setStyleProperty("justify-content", "center"); this.au(); var c = this.v.createElementNS("svg", "http://www.w3.org/2000/svg"); c.setStyleProperty("position", "absolute"); c.setStyleProperty("top", "0"); c.setStyleProperty("left", "0"); c.setStyleProperty("right", "0"); c.setStyleProperty("bottom", "0"); this.y = c; var d = this.v.createElement("img"); d.setStyleProperty("height", "100%"); d.setStyleProperty("width", "100%"); d.setStyleProperty("object-fit", "contain"); this.x = d; this.a0(); this.w = a.createElementNS("defs", "http://www.w3.org/2000/svg"); this.y.append(this.w); this.v.append(this.y); this.o.add(c.listen("click", runOn(this, this.aj))); this.d.cm(); }; IconView.prototype.ax = function (a) { this.n.clear(); this.v.rootWrapper.removeChildren(); this.v.rootWrapper.append(this.y); this.y.removeChildren(); this.w.removeChildren(); this.p.clear(); if (a != null) { var b = this.v.createElementNS("path", "http://www.w3.org/2000/svg"); b.setAttribute("d", a); this.y.append(this.w); this.y.append(b); this.p.add(b); } }; IconView.prototype.ay = function (a) { this.n.clear(); this.v.rootWrapper.removeChildren(); this.v.rootWrapper.append(this.y); this.y.removeChildren(); this.w.removeChildren(); this.p.clear(); if (a != null && a.length > 0) { this.y.append(this.w); for (var b = 0; b < a.length; b++) { var c = this.v.createElementNS("path", "http://www.w3.org/2000/svg"); c.setAttribute("d", a[b]); this.y.append(c); this.p.add(c); } } }; IconView.prototype.aw = function (a) { this.v.rootWrapper.removeChildren(); if (a != null) { var b = this.v.rootWrapper.getNativeElement(); b.innerHTML = a; } }; IconView.prototype.as = function (a) { if (this.ab != a) { this.ab = a; this.v.rootWrapper.removeChildren(); this.v.rootWrapper.append(this.x); this.x.setAttribute("src", a); } }; IconView.prototype.av = function (a) { if (typeof a === 'string') { this.as(typeCast(String_$type, a)); } }; IconView.prototype.ah = function () { if (this.d.k != 3 && this.d.k != 4) { this.ab = null; } }; IconView.prototype.k = function () { return this.d.svgPath != null || this.d.svg != null || this.d.b != null; }; IconView.prototype.au = function () { this.v.rootWrapper.setStyleProperty("width", isNaN_(this.d.at) ? "1.5rem" : this.d.at + "px"); this.v.rootWrapper.setStyleProperty("height", isNaN_(this.d.al) ? "1.5rem" : this.d.al + "px"); }; IconView.prototype.a0 = function () { var a = isNaN_(this.d.aq) ? 0 : this.d.aq; var b = isNaN_(this.d.ar) ? 0 : this.d.ar; var c = isNaN_(this.d.as) ? 24 : this.d.as; var d = isNaN_(this.d.ap) ? 24 : this.d.ap; this.y.setAttribute("viewBox", a + " " + b + " " + c + " " + d); }; IconView.prototype.ao = function (a, b) { var c = a.color; if (!this.n.containsKey(a)) { if (a.isGradient) { var d = this.w.getChildCount(); var e = a; var f = this.v.createElementNS("linearGradient", "http://www.w3.org/2000/svg"); var g = "ig_gradient_" + b + "_" + d; f.setAttribute("id", g); f.setAttribute("x1", e.startX.toString()); f.setAttribute("x2", e.endX.toString()); f.setAttribute("y1", e.startY.toString()); f.setAttribute("y2", e.endY.toString()); var j = e.gradientStops; for (var i = 0; i < j.length; i++) { var h = j[i]; var k = this.v.createElementNS("stop", "http://www.w3.org/2000/svg"); k.setAttribute("offset", h.offset * 100 + "%"); k.setAttribute("stop-color", h._fill); f.append(k); } this.w.append(f); this.n.addItem(a, g); } else if (a.isRadialGradient) { } } }; IconView.prototype.ap = function (a, b) { var c = a; if (this.n.containsKey(b)) { c.setAttribute("fill", "url(#" + this.n.item(b) + ")"); this.v.rootWrapper.removeChildren(); this.v.rootWrapper.append(this.y); } else { NativeUI.r(a, b); } }; IconView.prototype.aq = function (a, b) { var c = a; if (this.n.containsKey(b)) { c.setAttribute("stroke", "url('#" + this.n.item(b) + "')"); } else { NativeUI.aa(a, b); } }; IconView.prototype.ac = function (a) { }; IconView.prototype.an = function () { if (this.l()) { } }; IconView.prototype.ad = function (a) { this.d.cj(); }; IconView.prototype.ae = function (a) { this.d.ck(); }; IconView.prototype.ai = function () { this.j = true; this.o.add(this.v.rootWrapper.listen("mouseenter", runOn(this, this.ad))); this.o.add(this.v.rootWrapper.listen("mouseleave", runOn(this, this.ae))); }; IconView.prototype.al = function () { var e_2, _a; this.j = false; try { for (var _b = __values(fromEnum(this.o)), _c = _b.next(); !_c.done; _c = _b.next()) { var a = _c.value; a(); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } this.o.clear(); }; IconView.prototype.az = function (a) { if (a != null) { this.v.rootWrapper.setStyleProperty("font", a.fontString); } }; IconView.prototype.b = function () { var rect_ = this.v.rootWrapper.getNativeElement().getBoundingClientRect(); var a = (rect_.top); var b = (rect_.left); var c = new Array(2); c[0] = a; c[1] = b; return c; }; IconView.prototype.aj = function (a) { if (this.d.x()) { a.stopPropagation(); a.preventDefault(); } }; IconView.prototype.a = function () { var a = new List$1(PrimitiveVisualData.$, 0); var b = this.v.rootWrapper.getNativeElement(); return a.toArray(); }; IconView.prototype.ag = function (a, b) { for (var c = 0; c < b.e.count; c++) { var d = b.e._inner[c]; var e = this.h(d); if (e != null) { a.add(e); } else { this.ag(a, d); } } }; IconView.prototype.h = function (a) { var b = null; switch (a.c) { case 7: var c = ((function () { var $ret = new Path(); $ret.an = a.w; return $ret; })()); this.at(c, a); b = new PathVisualData(1, "path1", c); break; case 3: var d = a; var e = new Line(); e.an = d.w; e.ao = d.x; e.ap = d.y; e.aq = d.z; this.at(e, a); b = new LineVisualData(1, "line1", e); break; case 4: var f = a; var g = new Rectangle(); g.width = f.z; g.height = f.w; g.ap = f.x; g.aq = f.y; this.at(g, a); b = new RectangleVisualData(1, "rect1", g); break; case 5: case 6: var h = a; var i = new Ellipse(); i.width = h.y * 2; i.height = h.z * 2; this.at(i, a); b = new EllipseVisualData(1, "ellipse1", i); break; } return b; }; IconView.prototype.at = function (a, b) { var c = b; a.ad = b.t; a.j = c.h; a.am = c.v; a.al = c.u; a.ak = c.u; a._opacity = c.q; if (c.i != null) { var d = new DoubleCollection(); var g = c.i; for (var f = 0; f < g.length; f++) { var e = g[f]; d.add(e); } a.ai = d; } }; IconView.prototype.i = function (a) { if (typeCast(Path.$, a) !== null) { return new PathVisualData(1, "path1", a); } else if (typeCast(Line.$, a) !== null) { return new LineVisualData(1, "line1", a); } else if (typeCast(Rectangle.$, a) !== null) { return new RectangleVisualData(1, "rect1", a); } else if (typeCast(Ellipse.$, a) !== null) { return new EllipseVisualData(1, "ellipse1", a); } return null; }; IconView.prototype.ar = function (a, b) { this.v.rootWrapper.removeChildren(); if (a == null) { return; } LegendItemHelper.c(this.v, 0, 0, 24, 24, b, null, a, null); }; IconView.prototype.af = function () { this.v.rootWrapper.removeChildren(); }; IconView.$t = markType(IconView, 'IconView'); return IconView; }(Base)); export { IconView }; /** * @hidden */ var XIcon = /** @class */ /*@__PURE__*/ (function (_super) { __extends(XIcon, _super); function XIcon() { var _this = _super.call(this) || this; _this._view = null; _this.k = 0; _this.l = 0; _this.cv = XIcon.db; _this.cw = XIcon.df; _this.cx = XIcon.dg; _this.y = XIcon.ak; _this.cy = XIcon.db; _this.c6 = XIcon.df; _this.ac = XIcon.ak; _this.c7 = XIcon.dg; _this.cz = XIcon.dc; _this.c0 = XIcon.dd; _this.aa = XIcon.aj; _this.c1 = null; _this.c = null; _this.d = null; _this.c2 = null; _this.c3 = null; _this.c4 = null; _this.c5 = null; _this.ay = null; _this.a3 = null; _this.a6 = null; _this.a5 = null; _this.a = null; _this.ct = null; _this.ax = null; _this.n = null; _this.a4 = "ig-icon-" + XIcon.aw++; _this.au = 0; _this.p = false; _this.a2 = null; _this.r = false; _this.q = false; _this.ab = 1; _this.ae = NaN; _this.af = NaN; _this.ag = NaN; _this.ad = NaN; _this.ah = NaN; _this.z = NaN; _this.clicked = null; _this.propertyChanged = null; var a = new IconView(); a.d = _this; _this.view = a; _this.view.am(); return _this; } Object.defineProperty(XIcon.prototype, "view", { get: function () { return this._view; }, set: function (a) { this._view = a; }, enumerable: false, configurable: true }); XIcon.prototype.destroy = function () { this.provideContainer(null); }; XIcon.prototype.cl = function (a, b, c) { if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } this.co(a, b, c); }; XIcon.prototype.co = function (a, b, c) { switch (a) { case "Fill": case "Stroke": case "StrokeWidth": case "HoverFill": case "HoverStroke": case "HoverStrokeThickness": case "IsHover": this.cs(); break; case "FillColors": case "StrokeColors": case "ActualFill": case "ActualStroke": case "ActualStrokeWidth": this.cq(); break; case "SVG": this.a6 = null; this.a = null; this.cq(); break; case "SVGPath": this.a5 = null; this.a = null; this.cq(); break; case "SVGPaths": this.a5 = null; this.a6 = null; this.cq(); break; case "DataURL": this.a5 = null; this.a6 = null; this.a = null; this.cq(); break; case "Source": this.a5 = null; this.a6 = null; this.a = null; this.cq(); break; case "DataTemplate": case "DataTemplateContext": this.a5 = null; this.a6 = null; this.a = null; this.cq(); break; case "Opacity": this.cr(); break; case "ViewBoxLeft": case "ViewBoxTop": case "ViewBoxWidth": case "ViewBoxHeight": this.view.a0(); break; case "Width": case "Height": this.view.au(); break; } }; XIcon.prototype.cs = function () { var a = this.fill != null ? this.fill : XIcon.db; var b = this.dp != null ? this.dp : XIcon.df; var c = !isNaN_(this.ao) ? this.ao : XIcon.ak; var d = this.dq != null ? this.dq : XIcon.dg; if (this.v) { this.c8 = this.dh != null ? this.dh : a; this.c9 = this.di != null ? this.di : b; this.ai = !isNaN_(this.am) ? this.am : c; this.da = this.dj != null ? this.dj : d; } else { this.c8 = a; this.c9 = b; this.ai = c; this.da = d; } }; Object.defineProperty(XIcon.prototype, "t", { get: function () { return this.svgPath != null && !this.view.m; }, enumerable: false, configurable: true }); XIcon.prototype.cr = function () { NativeUI.y(this.view.z, this.an); }; XIcon.prototype.cf = function () { this.view.af(); }; XIcon.prototype.cq = function () { var a = this.view.z; if (this.t) { var b = this.view.aa; NativeUI.r(b, this.c8); NativeUI.aa(b, this.c9); NativeUI.ad(b, this.ai); } else { var c = this.j(); if (c != this.k) { this.k = c; this.view.ah(); } var d = false; if (this.cu != null) { this.view.ar(this.cu, this.az); } else if (this.svgPath != null) { if (stringStartsWith(trimStart(this.svgPath, ' ', '\n', '\r', '\t'), "<svg")) { this.view.aw(this.svgPath); d = true; } else { this.view.ax(this.svgPath); } } else if (this.b != null) { this.view.ay(this.b); var e = this.view.c; if (e != null && e.length > 0) { var f = NativeUI.r; var g = NativeUI.aa; this.cn(); f = runOn(this.view, this.view.ap); g = runOn(this.view, this.view.aq); for (var h = 0; h < e.length; h++) { if (this.c8 != null) { f(e[h], this.c8); } if (this.c9 != null) { g(e[h], this.c9); } if (!isNaN_(this.ai)) { NativeUI.ad(e[h], this.ai); } if (this.da != null) { NativeUI.q(e[h], this.da); } if (this.e != null && this.e.count == e.length) { f(e[h], this.e.item(h)); } if (this.f != null && this.f.count == e.length) { g(e[h], this.f.item(h)); } } } if (this.o != null) { this.view.az(this.o); } return; } else if (this.svg != null) { this.view.aw(this.svg); d = true; } else if (this.bg != null) { this.view.as(this.bg); } else if (this.a1 != null) { this.view.av(this.a1); } else { } if (d) { for (var i = 0; i < this.view.r.count; i++) { var j = this.view.r._inner[i].c; NativeUI.r(this.view.r._inner[i].d, j.l.f(this.dk)); } for (var k = 0; k < this.view.s.count; k++) { var l = this.view.s._inner[k].c; NativeUI.aa(this.view.s._inner[k].d, l.m.f(this.dl)); } for (var m = 0; m < this.view.t.count; m++) { var n = this.view.t._inner[m].c; NativeUI.r(this.view.t._inner[m].d, n.l.f(this.dm)); } for (var o = 0; o < this.view.u.count; o++) { var p = this.view.u._inner[o].c; NativeUI.aa(this.view.u._inner[o].d, p.m.f(this.dn)); } for (var q = 0; q < this.view.e.o.count; q++) { var r = this.view.e.o._inner[q]; var s = r.split('-'); var t = parseInt(s[s.length - 1]); if (t < this.e.count) { for (var u = 0; u < this.view.e.q._inner[q].count; u++) { var v = this.view.e.q._inner[q]._inner[u].c; NativeUI.r(this.view.e.q._inner[q]._inner[u].d, v.l.f(this.e.item(t))); } } } for (var w = 0; w < this.view.f.o.count; w++) { var x = this.view.f.o._inner[w]; var y = x.split('-'); var z = parseInt(y[y.length - 1]); if (z < this.f.count) { for (var aa = 0; aa < this.view.f.q._inner[w].count; aa++) { var ab = this.view.f.q._inner[w]._inner[aa].c; NativeUI.aa(this.view.f.q._inner[w]._inner[aa].d, ab.m.f(this.f.item(z))); } } } for (var ac = 0; ac < this.view.q.count; ac++) { var ad = this.view.q._inner[ac].c; NativeUI.r(this.view.q._inner[ac].d, ad.l.f(this.c8)); NativeUI.aa(this.view.q._inner[ac].d, ad.m.f(this.c9)); } } var ae = this.view.z; if (this.c8 != null) { NativeUI.r(ae, this.c8); } if (this.c9 != null) { NativeUI.aa(ae, this.c9); } if (!isNaN_(this.ai)) { NativeUI.ad(ae, this.ai); } } if (this.o != null) { this.view.az(this.o); } if (this.da != null) { NativeUI.q(this.view.z, this.da); } }; XIcon.prototype.cn = function () { var e_3, _a, e_4, _b; if (this.c8 != null) { this.view.ao(this.c8, "fill"); } if (this.c9 != null) { this.view.ao(this.c9, "stroke"); } if (this.e != null) { try { for (var _c = __values(fromEnum(this.e)), _d = _c.next(); !_d.done; _d = _c.next()) { var a = _d.value; this.view.ao(a, "fills"); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } } if (this.f != null) { try { for (var _e = __values(fromEnum(this.f)), _f = _e.next(); !_f.done; _f = _e.next()) { var b = _f.value; this.view.ao(b, "strokes"); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } } }; XIcon.prototype.j = function () { var a = 5; if (this.svgPath != null) { a = 1; } else if (this.b != null && this.b.length > 0) { a = 2; } else if (this.svg != null) { a = 0; } else if (this.bg != null) { a = 3; } else if (this.a1 != null) { a = 4; } return a; }; Object.defineProperty(XIcon.prototype, "m", { get: function () { return this.l; }, set: function (a) { var b = this.l; this.l = a; if (b != this.l) { this.cl("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, a)); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "c8", { get: function () { return this.cv; }, set: function (a) { var b = this.cv; this.cv = a; if (b != this.cv) { this.cl("ActualFill", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "c9", { get: function () { return this.cw; }, set: function (a) { var b = this.cw; this.cw = a; if (b != this.cw) { this.cl("ActualStroke", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "da", { get: function () { return this.cx; }, set: function (a) { var b = this.cx; this.cx = a; if (b != this.cx) { this.cl("ActualTextColor", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "ai", { get: function () { return this.y; }, set: function (a) { var b = this.y; this.y = a; if (b != this.y) { this.cl("ActualStrokeWidth", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "fill", { get: function () { return this.cy; }, set: function (a) { var b = this.cy; this.cy = a; if (b != this.cy) { this.cl("Fill", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dp", { get: function () { return this.c6; }, set: function (a) { var b = this.c6; this.c6 = a; if (b != this.c6) { this.cl("Stroke", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "ao", { get: function () { return this.ac; }, set: function (a) { var b = this.ac; this.ac = a; if (b != this.ac) { this.cl("StrokeWidth", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dq", { get: function () { return this.c7; }, set: function (a) { var b = this.c7; this.c7 = a; if (b != this.c7) { this.cl("TextColor", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dh", { get: function () { return this.cz; }, set: function (a) { var b = this.cz; this.cz = a; if (b != this.cz) { this.cl("HoverFill", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "di", { get: function () { return this.c0; }, set: function (a) { var b = this.c0; this.c0 = a; if (b != this.c0) { this.cl("HoverStroke", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "am", { get: function () { return this.aa; }, set: function (a) { var b = this.aa; this.aa = a; if (b != this.aa) { this.cl("HoverStrokeThickness", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dj", { get: function () { return this.c1; }, set: function (a) { var b = this.c1; this.c1 = a; if (b != this.c1) { this.cl("HoverTextColor", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "e", { get: function () { return this.c; }, set: function (a) { var b = this.c; this.c = a; if (b != this.c) { this.cl("FillColors", b, this.c); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "f", { get: function () { return this.d; }, set: function (a) { var b = this.d; this.d = a; if (b != this.d) { this.cl("StrokeColors", b, this.d); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dk", { get: function () { return this.c2; }, set: function (a) { var b = this.c2; this.c2 = a; if (b != this.c2) { this.cl("PrimaryFillColor", b, this.c2); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dl", { get: function () { return this.c3; }, set: function (a) { var b = this.c3; this.c3 = a; if (b != this.c3) { this.cl("PrimaryStrokeColor", b, this.c3); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dm", { get: function () { return this.c4; }, set: function (a) { var b = this.c4; this.c4 = a; if (b != this.c4) { this.cl("SecondaryFillColor", b, this.c4); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "dn", { get: function () { return this.c5; }, set: function (a) { var b = this.c5; this.c5 = a; if (b != this.c5) { this.cl("SecondaryStrokeColor", b, this.c5); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "a1", { get: function () { return this.ay; }, set: function (a) { var b = this.ay; this.ay = a; if (b != this.ay) { this.cl("Source", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "bg", { get: function () { return this.a3; }, set: function (a) { var b = this.a3; this.a3 = a; if (b != this.a3) { this.cl("DataURL", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "svgPath", { get: function () { return this.a6; }, set: function (a) { var b = this.a6; this.a6 = a; if (b != this.a6) { this.cl("SVGPath", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "svg", { get: function () { return this.a5; }, set: function (a) { var b = this.a5; this.a5 = a; if (b != this.a5) { this.cl("SVG", b, this.a5); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "b", { get: function () { return this.a; }, set: function (a) { var b = this.a; this.a = a; if (b != this.a) { this.cl("SVGPaths", b, this.a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "cu", { get: function () { return this.ct; }, set: function (a) { var b = this.ct; this.ct = a; if (b != this.ct) { this.cl("DataTemplate", b, this.ct); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "az", { get: function () { return this.ax; }, set: function (a) { var b = this.ax; this.ax = a; if (b != this.ax) { this.cl("DataTemplateContext", b, this.ax); } }, enumerable: false, configurable: true }); XIcon.prototype.cj = function () { this.v = true; }; XIcon.prototype.ck = function () { this.v = false; }; Object.defineProperty(XIcon.prototype, "o", { get: function () { return this.n; }, set: function (a) { var b = this.n; this.n = a; if (b != this.n) { this.cl("TextStyle", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "bq", { get: function () { return this.a4; }, set: function (a) { var b = this.a4; this.a4 = a; if (b != this.a4) { this.cl("Id", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "s", { get: function () { return this.p; }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "av", { get: function () { return this.au; }, set: function (a) { var b = this.au; this.au = a; this.p = true; if (b != this.au) { this.cl("TabIndex", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "bb", { get: function () { return this.a2; }, set: function (a) { var b = this.a2; this.a2 = a; if (b != this.a2) { this.cl("AriaLabel", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "v", { get: function () { return this.r; }, set: function (a) { var b = this.r; this.r = a; if (b != this.r) { this.cl("IsHover", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "disabled", { get: function () { return this.q; }, set: function (a) { var b = this.q; this.q = a; if (b != this.q) { this.cl("IsDisabled", b, a); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "an", { get: function () { return this.ab; }, set: function (a) { var b = this.ab; this.ab = a; if (b != this.ab) { this.cl("Opacity", b, this.ab); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "aq", { get: function () { return this.ae; }, set: function (a) { var b = this.ae; this.ae = a; if (b != this.ae) { this.cl("ViewBoxLeft", b, this.ae); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "ar", { get: function () { return this.af; }, set: function (a) { var b = this.af; this.af = a; if (b != this.af) { this.cl("ViewBoxTop", b, this.af); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "as", { get: function () { return this.ag; }, set: function (a) { var b = this.ag; this.ag = a; if (b != this.ag) { this.cl("ViewBoxWidth", b, this.ag); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "ap", { get: function () { return this.ad; }, set: function (a) { var b = this.ad; this.ad = a; if (b != this.ad) { this.cl("ViewBoxHeight", b, this.ad); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "at", { get: function () { return this.ah; }, set: function (a) { var b = this.ah; this.ah = a; if (b != this.ah) { this.cl("Width", b, this.ah); } }, enumerable: false, configurable: true }); Object.defineProperty(XIcon.prototype, "al", { get: function () { return this.z; }, set: function (a) { var b = this.z; this.z = a; if (b != this.z) { this.cl("Height", b, this.z); } }, enumerable: false, configurable: true }); XIcon.prototype.cm = function () { }; XIcon.prototype.onDetachedFromUI = function () { this.view.al(); }; XIcon.prototype.onAttachedToUI = function () { this.view.ai(); }; XIcon.prototype.x = function () { if (this.disabled) { return false; } if (this.clicked != null) { var a = new IconClickedEventArgs(); this.clicked(this, a); return a.handled; } return false; }; XIcon.prototype.w = function () { return this.view.l(); }; XIcon.prototype.a0 = function () { return this.g(); }; XIcon.prototype.bi = function () { var a = this.g(); return a.l(); }; XIcon.prototype.g = function () { var a = new IconVisualModelExport(); var b = this.view.b(); a.i = b[0]; a.g = b[1]; a.f = NativeUI.d(this.view.z); a.j = NativeUI.k(this.view.z); a.a = this.view.a(); a.svg = this.svg; a.svgPath = this.svgPath; a.k = this.bg; if (this.o != null) { var c = this.o; if (this.view != null && c.q == null) { var d = this.view.v; var e = FontUtil.getFontInfoFromString(d, c.fontString); c.q = e.q; c.f = e.f; c.r = e.r; c.t = e.t; c.u = e.u; c.v = e.v; } if (c.q != null) { a.o = c.q; } if (!isNaN_(c.f)) { a.h = c.f; } if (c.v != null) { a.s = c.v; } if (c.t != null) { a.q = c.t; } if (c.r != null) { a.p = c.t; } } return a; }; XIcon.prototype.provideContainer = function (a) { this.view.ak(a); }; XIcon.$t = markType(XIcon, 'XIcon', Base.$, [INotifyPropertyChanged_$type, IIcon_$type]); XIcon.db = null; XIcon.dg = null; XIcon.df = null; XIcon.dc = null; XIcon.dd = null; XIcon.de = null; XIcon.ak = NaN; XIcon.aj = NaN; XIcon.aw = 0; return XIcon; }(Base)); export { XIcon };