UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

38 lines (37 loc) 1.52 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 { markType } from "igniteui-react-core"; /** * @hidden */ export let TemplateCellPresenter = /*@__PURE__*/ (() => { class TemplateCellPresenter extends CellPresenterBase { constructor(a, b) { super(a); this.d = null; this.d = b; } get e() { return this.a; } b(a) { super.b(a); let b = a; let c = this.d.actualColumns._inner[a.l.a5]; if (a.a8(CellModel.fa) || a.a8(CellModel.hc)) { let d = Math.min(1, Math.max(0, a.ct)); let e = a.cj * (1 - d); this.e.cl.element.setRawStyleProperty("opacity", e.toString()); } c.n3(a, this.e.cl); } } TemplateCellPresenter.$t = /*@__PURE__*/ markType(TemplateCellPresenter, 'TemplateCellPresenter', CellPresenterBase.$); return TemplateCellPresenter; })();