UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

73 lines (72 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"; import { intDivide } from "igniteui-react-core"; /** * @hidden */ export let VerticalSeparatorCell = /*@__PURE__*/ (() => { class VerticalSeparatorCell extends GridCellBase { constructor(a) { super(a); this.cl = null; this.ck = null; this.cm = 0; this.cn = 0; this.cl = a.createElement("div"); this.cl.setRawStyleProperty("position", "absolute"); this.cl.setRawStyleProperty("pointer-events", "none"); this.ah.append(this.cl); } b1(a, b, c, d, e) { if (a == null) { if (this.ck != null) { this.ck.remove(); this.ck = null; } } else { this.co(); this.cm = b; this.cn = d; } this.cp(); } b9(a, b) { super.b9(a, b); this.cp(); } b0(a) { this.cl.setRawStyleProperty("background-color", a.colorString); } cp() { if (this.ck != null) { this.cl.setRawStyleProperty("height", "100%"); this.cl.setRawStyleProperty("width", this.ah.width() - (this.cm + this.cn) + "px"); this.cl.setRawStyleProperty("left", intDivide(this.ah.width(), 2) + "px"); this.ck.setRawStyleProperty("width", "100%"); this.ck.setRawStyleProperty("height", "100%"); } else { this.cl.setRawStyleProperty("height", "100%"); this.cl.setRawStyleProperty("width", this.ah.width() + "px"); this.cl.setRawStyleProperty("left", "0px"); } } co() { if (this.ck == null) { this.ck = this.ae.createElement("div"); this.ck.setRawStyleProperty("position", "absolute"); this.ck.setRawStyleProperty("background-color", "rgba(0,0,0,0)"); this.ah.getNativeElement().insertBefore(this.ck.getNativeElement(), this.cl.getNativeElement()); } } } VerticalSeparatorCell.$t = /*@__PURE__*/ markType(VerticalSeparatorCell, 'VerticalSeparatorCell', GridCellBase.$); return VerticalSeparatorCell; })();