UNPKG

igniteui-react-core

Version:
35 lines (34 loc) 1.49 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 { UIElementPropertyAccessor } from "./UIElementPropertyAccessor"; import { enumGetBox, EnumUtil, markType } from "./type"; import { Visibility_$type } from "./Visibility"; /** * @hidden */ export let CssVisibilityPropertyAccessor = /*@__PURE__*/ (() => { class CssVisibilityPropertyAccessor extends UIElementPropertyAccessor { b(a) { let b = a; if (b.getStyleProperty("display") == "none") { return enumGetBox(Visibility_$type, 1); } return enumGetBox(Visibility_$type, 0); } c(a, b) { let c = a; if (EnumUtil.getEnumValue(Visibility_$type, b) == 1) { c.hide(); } else { c.show(); } } } CssVisibilityPropertyAccessor.$t = /*@__PURE__*/ markType(CssVisibilityPropertyAccessor, 'CssVisibilityPropertyAccessor', UIElementPropertyAccessor.$); return CssVisibilityPropertyAccessor; })();