UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

58 lines (57 loc) 2.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 } from "tslib"; import { Base, String_$type, markType } from "./type"; import { SvgIconCollection } from "./SvgIconCollection"; import { Dictionary$2 } from "./Dictionary$2"; /** * @hidden */ var SvgIconRegistry = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SvgIconRegistry, _super); function SvgIconRegistry() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.c = new Dictionary$2(String_$type, SvgIconCollection.$, 0); return _this; } Object.defineProperty(SvgIconRegistry, "instance", { get: function () { if (SvgIconRegistry.a == null) { SvgIconRegistry.a = new SvgIconRegistry(); } return SvgIconRegistry.a; }, enumerable: false, configurable: true }); SvgIconRegistry.prototype.addSvgPathString = function (a, b, c) { if (a == null) { a = "default"; } if (!this.c.containsKey(a)) { this.c.item(a, ((function () { var $ret = new SvgIconCollection(); $ret.c = a; return $ret; })())); } this.c.item(a).d(b, c); }; SvgIconRegistry.prototype.getSvgPathString = function (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; }(Base)); export { SvgIconRegistry };