UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

52 lines (51 loc) 2.21 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 { SectionHeaderCellModel } from "./SectionHeaderCellModel"; import { markType } from "igniteui-react-core"; import { ContentCellModelHelper } from "./ContentCellModelHelper"; /** * @hidden */ export let SectionHeaderCellPresenter = /*@__PURE__*/ (() => { class SectionHeaderCellPresenter extends CellPresenterBase { constructor(a) { super(a); } get d() { return this.a; } b(a) { super.b(a); let b = a; if (a.a3) { if (a.a8(SectionHeaderCellModel.ml) || a.a8(SectionHeaderCellModel.mn) || a.a8(SectionHeaderCellModel.mm) || a.a8(SectionHeaderCellModel.mp)) { if (b.mh == null || (b.mh.length == 0 && b.mv == null)) { if (b.hm == null) { b.j1 = ""; } else { b.j1 = b.hm.toString(); } } else { if (b.mt != null && b.mk == 0) { b.j1 = b.mv + "    " + b.mt; } else { b.j1 = b.mv; } } this.d.cl.setRawText(b.j1); } ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cl, this.a); } } } SectionHeaderCellPresenter.$t = /*@__PURE__*/ markType(SectionHeaderCellPresenter, 'SectionHeaderCellPresenter', CellPresenterBase.$); return SectionHeaderCellPresenter; })();