igniteui-react-grids
Version:
Ignite UI React grid components.
46 lines (45 loc) • 1.79 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 { CellPresenterBase } from "./CellPresenterBase";
import { NumericCellModel } from "./NumericCellModel";
import { ContentCellModelHelper } from "./ContentCellModelHelper";
import { markType } from "igniteui-react-core";
import { NumericCellFormatter } from "./NumericCellFormatter";
/**
* @hidden
*/
export let NumericCellPresenter = /*@__PURE__*/ (() => {
class NumericCellPresenter extends CellPresenterBase {
get d() {
return this.a;
}
constructor(a) {
super(a);
}
b(a) {
super.b(a);
let b = a;
if (a.a3) {
if (a.a8(NumericCellModel.m4) || b.ml()) {
b.j1 = this.e(b);
this.d.cl.setRawText(b.j1);
}
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cl, this.a);
}
}
e(a) {
if (a.na != null) {
let val_ = a.mo;
let override_ = a.na;
return (override_.format(val_));
}
return NumericCellFormatter.c(a);
}
}
NumericCellPresenter.$t = /*@__PURE__*/ markType(NumericCellPresenter, 'NumericCellPresenter', CellPresenterBase.$);
return NumericCellPresenter;
})();