UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

52 lines (51 loc) 1.94 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 { Base, String_$type, markType } from "./type"; import { SvgIconCollection } from "./SvgIconCollection"; import { Dictionary$2 } from "./Dictionary$2"; /** * @hidden */ export let SvgIconRegistry = /*@__PURE__*/ (() => { class SvgIconRegistry extends Base { constructor() { super(...arguments); this.c = new Dictionary$2(String_$type, SvgIconCollection.$, 0); } static get instance() { if (SvgIconRegistry.a == null) { SvgIconRegistry.a = new SvgIconRegistry(); } return SvgIconRegistry.a; } addSvgPathString(a, b, c) { if (a == null) { a = "default"; } if (!this.c.containsKey(a)) { this.c.item(a, ((() => { let $ret = new SvgIconCollection(); $ret.c = a; return $ret; })())); } this.c.item(a).d(b, c); } getSvgPathString(a, b) { if (a == null) { a = "default"; } if (this.c.containsKey(a)) { return this.c.item(a).b(b); } return null; } } SvgIconRegistry.$t = markType(SvgIconRegistry, 'SvgIconRegistry'); SvgIconRegistry.a = null; return SvgIconRegistry; })();