igniteui-react-core
Version:
Ignite UI React Core.
40 lines (39 loc) • 1.72 kB
JavaScript
/*
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 { NativeUICursor_$type } from "./NativeUICursor";
/**
* @hidden
*/
export let CssCursorPropertyAccessor = /*@__PURE__*/ (() => {
class CssCursorPropertyAccessor extends UIElementPropertyAccessor {
b(a) {
let b = a;
let c = b.getStyleProperty("cursor");
if (c != null) {
switch (c.toLowerCase()) {
case "pointer": return enumGetBox(NativeUICursor_$type, 1);
}
}
return enumGetBox(NativeUICursor_$type, 0);
}
c(a, b) {
let c = a;
switch (EnumUtil.getEnumValue(NativeUICursor_$type, b)) {
case 1:
c.setStyleProperty("cursor", "pointer");
break;
case 0:
c.setStyleProperty("cursor", "auto");
break;
}
}
}
CssCursorPropertyAccessor.$t = /*@__PURE__*/ markType(CssCursorPropertyAccessor, 'CssCursorPropertyAccessor', UIElementPropertyAccessor.$);
return CssCursorPropertyAccessor;
})();