UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

70 lines (69 loc) 2.61 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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase"; import { runOn, markType } from "igniteui-react-core"; import { CellModel } from "./CellModel"; import { TextCellModel } from "./TextCellModel"; import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper"; /** * @hidden */ export let CanvasTextHeaderCellPresenter = /*@__PURE__*/ (() => { class CanvasTextHeaderCellPresenter extends CanvasCellPresenterBase { constructor(a) { super(a); this.e = null; } get d() { return this.a; } f() { if (this.e != null) { this.e(); } } b(a) { super.b(a); let b = a; if (a.a3) { if (a.a8(TextCellModel.mf)) { b.j1 = b.mh; this.d.cr(b.j1); } if (a.a8(CellModel.g4)) { if (a.bp) { this.d.db.l = false; } if (this.e == null) { let c = a.p; this.e = () => c.refresh(); } this.d.de(a.n); this.d.cp(runOn(this, this.f)); if (a.bp) { this.d.db.l = true; } } if (a.a8(CellModel.g5)) { if (a.bp) { this.d.db.l = false; } this.d.db.a0 = a.ma; if (a.bp) { this.d.db.l = true; } } if (a.a7("SortIndicatorStyle")) { this.d.db.f = b.mo; } CanvasContentCellModelHelper.a(this.a.bq, b, this.a); } } } CanvasTextHeaderCellPresenter.$t = /*@__PURE__*/ markType(CanvasTextHeaderCellPresenter, 'CanvasTextHeaderCellPresenter', CanvasCellPresenterBase.$); return CanvasTextHeaderCellPresenter; })();