UNPKG

igniteui-react-core

Version:
93 lines (92 loc) 3.68 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, fromEnum, EnumUtil, markType } from "./type"; import { CodeGenerationTargetPlatforms_$type } from "./CodeGenerationTargetPlatforms"; import { stringContains, stringEndsWith, stringStartsWith } from "./string"; /** * @hidden */ var WebImportsHalper = /** @class */ /*@__PURE__*/ (function (_super) { __extends(WebImportsHalper, _super); function WebImportsHalper() { return _super !== null && _super.apply(this, arguments) || this; } WebImportsHalper.d = function (a, b, c, d, e, f, g) { var e_1, _a; var _loop_1 = function (h) { var i = h; var j = h; var k = null; if (stringContains(i, ":")) { var l = i.split(':'); i = l[0]; k = l[1]; j = i; } if (stringEndsWith(i, "Component")) { i = i.substr(0, i.length - ("Component").length); } if (stringStartsWith(i, d)) { i = i.substr(d.length); } k = ((function (m) { return m != null ? m : k; })(WebImportsHalper.c(i, e, a))); if (k != null) { g.addPackageImport(k, j); } else { g.addPackageImport("igniteui-" + b + "-" + c, j); } }; try { for (var _b = __values(fromEnum(f)), _c = _b.next(); !_c.done; _c = _b.next()) { var h = _c.value; _loop_1(h); } } 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; } } }; WebImportsHalper.c = function (a, b, c) { var d = null; if (b.getMetadata(a, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, c.platform)) != null) { d = b.getMetadata(a, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, c.platform)).specificExternalType; } else if (b.getMetadata("Web" + a, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, c.platform)) != null) { d = b.getMetadata("Web" + a, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, c.platform)).specificExternalType; } return d; }; WebImportsHalper.b = function (a, b) { var c = WebImportsHalper.c(a.b.owningType, a.b.owningContext, b); if (c != null) { return a.b.specificType + ":" + c; } return a.b.specificType; }; WebImportsHalper.prototype.a = function (a, b) { var c = false; if (b.getMetadata(a, "__isPlainObject") != null && b.getMetadata(a, "__marshalByValue") == null) { c = true; } return c; }; WebImportsHalper.$t = markType(WebImportsHalper, 'WebImportsHalper'); return WebImportsHalper; }(Base)); export { WebImportsHalper };