UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

76 lines (75 loc) 2.88 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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase"; import { runOn, markType } from "igniteui-react-core"; import { CellModel } from "./CellModel"; import { TextCellModel } from "./TextCellModel"; import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper"; /** * @hidden */ var CanvasTextHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CanvasTextHeaderCellPresenter, _super); function CanvasTextHeaderCellPresenter(a) { var _this = _super.call(this, a) || this; _this.e = null; return _this; } Object.defineProperty(CanvasTextHeaderCellPresenter.prototype, "d", { get: function () { return this.a; }, enumerable: false, configurable: true }); CanvasTextHeaderCellPresenter.prototype.f = function () { if (this.e != null) { this.e(); } }; CanvasTextHeaderCellPresenter.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.cr(b.j1); } if (a.a8(CellModel.g4)) { if (a.bp) { this.d.db.l = false; } if (this.e == null) { var c_1 = a.p; this.e = function () { return c_1.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 = markType(CanvasTextHeaderCellPresenter, 'CanvasTextHeaderCellPresenter', CanvasCellPresenterBase.$); return CanvasTextHeaderCellPresenter; }(CanvasCellPresenterBase)); export { CanvasTextHeaderCellPresenter };