UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

93 lines (92 loc) 3.53 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 { CellPresenterBase } from "./CellPresenterBase"; import { CellModel } from "./CellModel"; import { TextCellModel } from "./TextCellModel"; import { ContentCellModelHelper } from "./ContentCellModelHelper"; import { TypeRegistrar, markType } from "igniteui-react-core"; /** * @hidden */ var TextHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(TextHeaderCellPresenter, _super); function TextHeaderCellPresenter(a) { return _super.call(this, a) || this; } Object.defineProperty(TextHeaderCellPresenter.prototype, "d", { get: function () { return this.a; }, enumerable: false, configurable: true }); TextHeaderCellPresenter.prototype.b = function (a) { _super.prototype.b.call(this, a); var 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)) { var 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)) { var 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")) { var 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)) { var 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); } }; TextHeaderCellPresenter.prototype.e = function () { return TypeRegistrar.isRegistered("IgxGridColumnOptionsComponent"); }; TextHeaderCellPresenter.$t = markType(TextHeaderCellPresenter, 'TextHeaderCellPresenter', CellPresenterBase.$); return TextHeaderCellPresenter; }(CellPresenterBase)); export { TextHeaderCellPresenter };