UNPKG

igniteui-webcomponents-inputs

Version:

Ignite UI Web Components inputs components.

129 lines (128 loc) 4.33 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"; 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.a6; case 45: return c.a7; case 46: return c.a8; case 47: return c.a5; case 48: return c.a9; case 49: return c.a1; case 63: return c.e; case 64: return c.f; case 65: return c.a4; } 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.a6 = c; break; case 45: d.a7 = c; break; case 46: d.a8 = c; break; case 47: d.a5 = c; break; case 48: d.a9 = c; break; case 49: d.a1 = c; break; case 63: d.e = c; break; case 64: d.f = c; break; case 65: d.a4 = 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.b0 = null; a.bh = 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.b0 = d; return; } let e = SvgIconRegistry.instance.getIconSource(this.u, this.v); if (e != null) { a.bh = e; } } exportVisualData(a) { let b = a.bg(); return b; } } XIconBridge.$t = /*@__PURE__*/ markType(XIconBridge, 'XIconBridge', XComponentBridge.$); return XIconBridge; })(); export { XIconBridge };