UNPKG

igniteui-react-core

Version:
44 lines (43 loc) 1.93 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 { UIElementPropertyAccessor } from "./UIElementPropertyAccessor"; import { enumGetBox, EnumUtil, markType } from "./type"; import { NativeUICursor_$type } from "./NativeUICursor"; /** * @hidden */ var CssCursorPropertyAccessor = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CssCursorPropertyAccessor, _super); function CssCursorPropertyAccessor() { return _super !== null && _super.apply(this, arguments) || this; } CssCursorPropertyAccessor.prototype.b = function (a) { var b = a; var c = b.getStyleProperty("cursor"); if (c != null) { switch (c.toLowerCase()) { case "pointer": return enumGetBox(NativeUICursor_$type, 1); } } return enumGetBox(NativeUICursor_$type, 0); }; CssCursorPropertyAccessor.prototype.c = function (a, b) { var c = a; switch (EnumUtil.getEnumValue(NativeUICursor_$type, b)) { case 1: c.setStyleProperty("cursor", "pointer"); break; case 0: c.setStyleProperty("cursor", "auto"); break; } }; CssCursorPropertyAccessor.$t = markType(CssCursorPropertyAccessor, 'CssCursorPropertyAccessor', UIElementPropertyAccessor.$); return CssCursorPropertyAccessor; }(UIElementPropertyAccessor)); export { CssCursorPropertyAccessor };