igniteui-react-core
Version:
Ignite UI React Core.
33 lines (32 loc) • 1.44 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 { markType } from "./type";
/**
* @hidden
*/
export let CssHitTestVisiblePropertyAccessor = /*@__PURE__*/ (() => {
class CssHitTestVisiblePropertyAccessor extends UIElementPropertyAccessor {
b(a) {
let b = a;
let c = b.getStyleProperty("pointer-events");
if (c != null) {
switch (c.toLowerCase()) {
case "none": return false;
default: return true;
}
}
return true;
}
c(a, b) {
let c = a;
c.setStyleProperty("pointer-events", b ? "auto" : "none");
}
}
CssHitTestVisiblePropertyAccessor.$t = /*@__PURE__*/ markType(CssHitTestVisiblePropertyAccessor, 'CssHitTestVisiblePropertyAccessor', UIElementPropertyAccessor.$);
return CssHitTestVisiblePropertyAccessor;
})();