UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

75 lines (74 loc) 2.93 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 { GridCellBase } from "./GridCellBase"; import { markType } from "igniteui-react-core"; /** * @hidden */ export let SummaryCell = /*@__PURE__*/ (() => { class SummaryCell extends GridCellBase { get cn() { return this.ck; } get co() { return this.cl; } b9(a, b) { super.b9(a, b); let c = Math.max(0, a - b); if (this.cq != c) { this.cq = c; } } b3(a, b) { super.b3(a, b); let c = Math.max(0, a - b); if (this.cp != c) { this.cp = c; } } constructor(a) { super(a); this.ck = null; this.cl = null; this.cm = null; this.cq = -1; this.cp = -1; this.ah.setRawStyleProperty("vertical-align", "middle"); this.cm = a.createElement("div"); this.ck = a.createElement("span"); this.ck.setRawStyleProperty("display", "inline-block"); this.ck.setRawStyleProperty("width", "40%"); this.ck.setRawStyleProperty("white-space", "nowrap"); this.ck.setRawStyleProperty("text-overflow", "ellipsis"); this.ck.setRawStyleProperty("vertical-align", "middle"); this.ck.setRawStyleProperty("overflow", "hidden"); this.cm.append(this.ck); this.cl = a.createElement("span"); this.cl.setRawStyleProperty("display", "inline-block"); this.cl.setRawStyleProperty("width", "60%"); this.cl.setRawStyleProperty("text-align", "right"); this.cl.setRawStyleProperty("white-space", "nowrap"); this.cl.setRawStyleProperty("text-overflow", "ellipsis"); this.cl.setRawStyleProperty("vertical-align", "middle"); this.cl.setRawStyleProperty("overflow", "hidden"); this.cm.append(this.cl); this.ah.append(this.cm); } get_z() { return false; } bs(a, b, c) { super.bs(a, b, c); if (a == "Indent" || a == "IsCollapsable") { this.cm.setRawStyleProperty("margin-left", this.a3 + this.a5 + this.a4 + "px"); } } } SummaryCell.$t = /*@__PURE__*/ markType(SummaryCell, 'SummaryCell', GridCellBase.$); return SummaryCell; })();