UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

51 lines (50 loc) 2.2 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 { DateTimeCellModel } from "./DateTimeCellModel"; import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper"; import { typeCast, Date_$type, markType } from "igniteui-react-core"; import { stringEmpty } from "igniteui-react-core"; /** * @hidden */ var CanvasDateTimeCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CanvasDateTimeCellPresenter, _super); function CanvasDateTimeCellPresenter(a) { return _super.call(this, a) || this; } Object.defineProperty(CanvasDateTimeCellPresenter.prototype, "d", { get: function () { return this.a; }, enumerable: false, configurable: true }); CanvasDateTimeCellPresenter.prototype.b = function (a) { _super.prototype.b.call(this, a); var b = a; if (a.a3) { if (a.a8(DateTimeCellModel.mr) || a.a8(DateTimeCellModel.ms) || a.a8(DateTimeCellModel.mq)) { this.e(b); this.d.cr(b.j1); } CanvasContentCellModelHelper.a(this.a.bq, b, this.a); } }; CanvasDateTimeCellPresenter.prototype.e = function (a) { a.j1 = a.m3(a.mp); if (a.j1 == stringEmpty()) { if (!(typeCast(Date_$type, a.hm) !== null)) { a.j1 = a.hm.toString(); } } }; CanvasDateTimeCellPresenter.$t = markType(CanvasDateTimeCellPresenter, 'CanvasDateTimeCellPresenter', CanvasCellPresenterBase.$); return CanvasDateTimeCellPresenter; }(CanvasCellPresenterBase)); export { CanvasDateTimeCellPresenter };