UNPKG

igniteui-webcomponents-inputs

Version:

Ignite UI Web Components inputs components.

130 lines (129 loc) 4.31 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 { XComponentBridge } from "./XComponentBridge"; import { enumGetBox, markType } from "igniteui-webcomponents-core"; import { BaseControlTheme_$type } from "igniteui-webcomponents-core"; import { SvgIconRegistry } from "igniteui-webcomponents-core"; import { stringStartsWith } from "igniteui-webcomponents-core"; import { trimStart } from "igniteui-webcomponents-core"; /** * @hidden */ export let XIconBridge = /*@__PURE__*/ (() => { class XIconBridge extends XComponentBridge { constructor(a) { super(a); this.u = "default"; this.v = null; } getValue(a, b) { let c = a; switch (b) { case 16: return this.v; case 15: return this.u; case 18: return enumGetBox(BaseControlTheme_$type, c.m); case 44: return c.aq; case 45: return c.ar; case 46: return c.as; case 47: return c.ap; case 48: return c.at; case 49: return c.al; case 63: return c.e; case 64: return c.f; case 65: return c.ao; } return super.getValue(a, b); } setValue(a, b, c) { super.setValue(a, b, c); let d = a; switch (b) { case 15: { this.u = c; this.w(d); } break; case 16: { this.v = c; this.w(d); } break; case 44: d.aq = c; break; case 45: d.ar = c; break; case 46: d.as = c; break; case 47: d.ap = c; break; case 48: d.at = c; break; case 49: d.al = c; break; case 63: d.e = c; break; case 64: d.f = c; break; case 65: d.ao = c; break; } } getTargetForProperty(a, b) { switch (a) { case 24: return b; } return super.getTargetForProperty(a, b); } w(a) { a.svg = null; a.svgPath = null; a.b = null; a.bg = null; a.a1 = null; let b = SvgIconRegistry.instance.getSvgPathString(this.u, this.v); if (b != null) { if (stringStartsWith(trimStart(b, ' ', '\n', '\r', '\t'), "<svg")) { a.svg = b; } else { a.svgPath = b; } return; } let c = SvgIconRegistry.instance.getSvgPathsString(this.u, this.v); if (c != null) { a.b = c; return; } let d = SvgIconRegistry.instance.getDataURLString(this.u, this.v); if (d != null) { a.bg = d; return; } let e = SvgIconRegistry.instance.getIconSource(this.u, this.v); if (e != null) { a.a1 = e; } } exportVisualData(a) { return a.a0(); } } XIconBridge.$t = /*@__PURE__*/ markType(XIconBridge, 'XIconBridge', XComponentBridge.$); return XIconBridge; })();