UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

88 lines (87 loc) 3.41 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 { CellModel } from "./CellModel"; import { TextCellModel } from "./TextCellModel"; import { ContentCellModelHelper } from "./ContentCellModelHelper"; import { TypeRegistrar, markType } from "igniteui-react-core"; /** * @hidden */ export let TextHeaderCellPresenter = /*@__PURE__*/ (() => { class TextHeaderCellPresenter 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(TextCellModel.mf)) { b.j1 = b.mh; this.d.cy.setRawText(b.j1); } if (a.a8(CellModel.g4)) { let c = this.d.cs.l; if (a.bp) { this.d.cs.l = false; } this.d.cs.b = a.n; if (a.bp) { this.d.cs.l = c; } } if (a.a8(CellModel.g5)) { let d = this.d.cs.l; if (a.bp) { this.d.cs.l = false; } this.d.cs.a0 = a.ma; if (a.bp) { this.d.cs.l = d; } } if (a.a7("IsColumnOptionsEnabled")) { let e = b.mq; if (e) { e = this.e(); } this.d.cu = e; this.d.cw.setRawStyleProperty("display", e ? "inline-block" : "none"); this.a.b9(a.hd, (a.gm + a.go + a.e2 + a.e5)); } if (a.a7("SortIndicatorStyle")) { this.d.cs.f = b.mo; } if (a.a7("ColumnOptionsIconAlignment")) { this.d.cm = b.mk; } if (a.a7("ColumnOptionsIconBehavior")) { this.d.co = b.mm; } if (a.a7("ColumnOptionsIconColor")) { this.d.cq.bw = b.m2; } if (a.a7("Path") || (this.d.cq.n != null && this.d.cq.n.grid == null)) { let f = a.e.getColumn(); if (f != this.d.cq.n) { this.d.cq.n = f; } } ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cy, this.a); } } e() { return TypeRegistrar.isRegistered("IgxGridColumnOptionsComponent"); } } TextHeaderCellPresenter.$t = /*@__PURE__*/ markType(TextHeaderCellPresenter, 'TextHeaderCellPresenter', CellPresenterBase.$); return TextHeaderCellPresenter; })();