UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

39 lines (38 loc) 2.12 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, EnumUtil, fromEnum, markType } from "./type"; import { CodeGenerationTargetPlatforms_$type } from "./CodeGenerationTargetPlatforms"; import { stringEndsWith, stringStartsWith } from "./string"; /** * @hidden */ export let WebImportsHalper = /*@__PURE__*/ (() => { class WebImportsHalper extends Base { static a(a, b, c, d, e, f, g) { for (let h of fromEnum(f)) { let i = h; if (stringEndsWith(i, "Component")) { i = i.substr(0, i.length - ("Component").length); } if (stringStartsWith(i, d)) { i = i.substr(d.length); } if (e.getMetadata(i, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, a.platform)) != null) { g.addPackageImport(e.getMetadata(i, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, a.platform)).specificExternalType, h); } else if (e.getMetadata("Web" + i, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, a.platform)) != null) { g.addPackageImport(e.getMetadata("Web" + i, "__importTypes" + EnumUtil.getName(CodeGenerationTargetPlatforms_$type, a.platform)).specificExternalType, h); } else { g.addPackageImport("igniteui-" + b + "-" + c, h); } } } } WebImportsHalper.$t = markType(WebImportsHalper, 'WebImportsHalper'); return WebImportsHalper; })();