UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

51 lines (50 loc) 2.14 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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase"; import { NumericCellModel } from "./NumericCellModel"; import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper"; import { markType } from "igniteui-react-core"; import { NumericCellFormatter } from "./NumericCellFormatter"; /** * @hidden */ var CanvasNumericCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CanvasNumericCellPresenter, _super); function CanvasNumericCellPresenter(a) { return _super.call(this, a) || this; } Object.defineProperty(CanvasNumericCellPresenter.prototype, "d", { get: function () { return this.a; }, enumerable: false, configurable: true }); CanvasNumericCellPresenter.prototype.b = function (a) { _super.prototype.b.call(this, a); var b = a; if (a.a3) { if (a.a8(NumericCellModel.m4) || b.ml()) { b.j1 = this.e(b); this.d.cr(b.j1); } CanvasContentCellModelHelper.a(this.a.bq, b, this.a); } }; CanvasNumericCellPresenter.prototype.e = function (a) { if (a.na != null) { var val_ = a.mo; var override_ = a.na; return (override_.format(val_)); } return NumericCellFormatter.c(a); }; CanvasNumericCellPresenter.$t = markType(CanvasNumericCellPresenter, 'CanvasNumericCellPresenter', CanvasCellPresenterBase.$); return CanvasNumericCellPresenter; }(CanvasCellPresenterBase)); export { CanvasNumericCellPresenter };