UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

102 lines (101 loc) 4.87 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, markType } from "./type"; import { CssColorPropertyAccessor } from "./CssColorPropertyAccessor"; import { CssThicknessPropertyAccessor } from "./CssThicknessPropertyAccessor"; import { CssPixelsPropertyAccessor } from "./CssPixelsPropertyAccessor"; import { CssLengthPropertyAccessor } from "./CssLengthPropertyAccessor"; import { CssLengthArrayPropertyAccessor } from "./CssLengthArrayPropertyAccessor"; import { CssFloatPropertyAccessor } from "./CssFloatPropertyAccessor"; import { CssCornerRadiusPropertyAccessor } from "./CssCornerRadiusPropertyAccessor"; import { CssTransformPropertyAccessor } from "./CssTransformPropertyAccessor"; import { CssCursorPropertyAccessor } from "./CssCursorPropertyAccessor"; import { CssHitTestVisiblePropertyAccessor } from "./CssHitTestVisiblePropertyAccessor"; import { CssVisibilityPropertyAccessor } from "./CssVisibilityPropertyAccessor"; /** * @hidden */ export let UIElementPropertyAccessorFactory = /*@__PURE__*/ (() => { class UIElementPropertyAccessorFactory extends Base { static get c() { if (UIElementPropertyAccessorFactory.b == null) { UIElementPropertyAccessorFactory.b = new PlatformUIElementPropertyAccessorFactory(); } return UIElementPropertyAccessorFactory.b; } } UIElementPropertyAccessorFactory.$t = markType(UIElementPropertyAccessorFactory, 'UIElementPropertyAccessorFactory'); UIElementPropertyAccessorFactory.b = null; return UIElementPropertyAccessorFactory; })(); /** * @hidden */ export let PlatformUIElementPropertyAccessorFactory = /*@__PURE__*/ (() => { class PlatformUIElementPropertyAccessorFactory extends UIElementPropertyAccessorFactory { constructor() { super(); } a(a, b) { switch (a) { case 2: case 3: case 7: case 15: case 16: return new CssColorPropertyAccessor(this.d(a)); case 4: case 13: case 6: return new CssThicknessPropertyAccessor(this.d(a)); case 11: case 10: case 12: case 8: case 9: case 26: case 27: return new CssPixelsPropertyAccessor(this.d(a)); case 17: case 19: return new CssLengthPropertyAccessor(this.d(a)); case 18: return new CssLengthArrayPropertyAccessor(this.d(a)); case 1: return new CssFloatPropertyAccessor(this.d(a)); case 5: return new CssCornerRadiusPropertyAccessor(this.d(a)); case 14: return new CssTransformPropertyAccessor(this.d(a)); case 20: return new CssCursorPropertyAccessor(); case 21: return new CssHitTestVisiblePropertyAccessor(); case 24: return new CssVisibilityPropertyAccessor(); } return null; } d(a) { switch (a) { case 2: return "background-color"; case 3: return "border-color"; case 7: return "color"; case 4: return "border-width"; case 13: return "margin"; case 6: return "padding"; case 11: return "left"; case 10: return "height"; case 12: return "top"; case 9: return "width"; case 5: return "border-radius"; case 8: return "font-size"; case 1: return "opacity"; case 14: return "transform"; case 15: return "stroke"; case 16: return "fill"; case 18: return "stroke-dasharray"; case 19: return "stroke-dashoffset"; case 17: return "stroke-width"; case 26: return "min-width"; case 27: return "min-height"; } return ""; } } PlatformUIElementPropertyAccessorFactory.$t = markType(PlatformUIElementPropertyAccessorFactory, 'PlatformUIElementPropertyAccessorFactory', UIElementPropertyAccessorFactory.$); return PlatformUIElementPropertyAccessorFactory; })();