UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

62 lines (61 loc) 2.44 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 TextCell = /*@__PURE__*/ (() => { class TextCell extends GridCellBase { get cl() { return this.ck; } b9(a, b) { super.b9(a, b); let c = Math.max(0, a - b - (this.a3 + this.a5 + this.a4)); if (this.cn != c) { this.cn = c; this.ck.setRawStyleProperty("max-width", c.toString() + "px"); } } b3(a, b) { super.b3(a, b); let c = Math.max(0, a - b); if (this.cm != c) { this.cm = c; this.ck.setRawStyleProperty("max-height", c.toString() + "px"); } } constructor(a) { super(a); this.ck = null; this.cn = -1; this.cm = -1; this.ck = a.createElement("span"); this.ah.setRawStyleProperty("text-align", "left"); this.ck.setRawStyleProperty("display", "inline-block"); this.ck.setRawStyleProperty("line-height", "normal"); this.ck.setRawStyleProperty("vertical-align", "middle"); this.ck.setRawStyleProperty("overflow", "hidden"); this.ck.setRawStyleProperty("white-space", "nowrap"); this.ck.setRawStyleProperty("text-overflow", "ellipsis"); this.ah.setRawStyleProperty("vertical-align", "middle"); this.ah.append(this.ck); } get_z() { return true; } bs(a, b, c) { super.bs(a, b, c); if (a == "Indent" || a == "IsCollapsable") { this.ck.setRawStyleProperty("margin-left", this.a3 + this.a5 + this.a4 + "px"); } } } TextCell.$t = /*@__PURE__*/ markType(TextCell, 'TextCell', GridCellBase.$); return TextCell; })();