igniteui-react-grids
Version:
Ignite UI React grid components.
32 lines (31 loc) • 1.28 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 { TextEditorView } from "./TextEditorView";
import { markType } from "igniteui-react-core";
import { tryParseNumber } from "igniteui-react-core";
/**
* @hidden
*/
export let NumericEditorView = /*@__PURE__*/ (() => {
class NumericEditorView extends TextEditorView {
constructor(a, b, c) {
super(a, b, c);
this.z.b8 = "number";
}
getEditorValue() {
if (this.z == null || this.z.cq == null) {
return null;
}
let a = NaN;
let b = tryParseNumber(this.z.cq, a);
a = b.p1;
return a;
}
}
NumericEditorView.$t = /*@__PURE__*/ markType(NumericEditorView, 'NumericEditorView', TextEditorView.$);
return NumericEditorView;
})();