UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

46 lines (45 loc) 1.9 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 { CellPresenterBase } from "./CellPresenterBase"; import { DateTimeCellModel } from "./DateTimeCellModel"; import { ContentCellModelHelper } from "./ContentCellModelHelper"; import { typeCast, Date_$type, markType } from "igniteui-react-core"; import { stringEmpty } from "igniteui-react-core"; /** * @hidden */ export let DateTimeCellPresenter = /*@__PURE__*/ (() => { class DateTimeCellPresenter 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(DateTimeCellModel.mr) || a.a8(DateTimeCellModel.ms) || a.a8(DateTimeCellModel.mq) || a.a8(DateTimeCellModel.gj)) { 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) { a.j1 = a.m3(a.mp); if (a.j1 == stringEmpty()) { if (a.hm != null && !(typeCast(Date_$type, a.hm) !== null)) { a.j1 = a.hm.toString(); } } } } DateTimeCellPresenter.$t = /*@__PURE__*/ markType(DateTimeCellPresenter, 'DateTimeCellPresenter', CellPresenterBase.$); return DateTimeCellPresenter; })();