UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

75 lines (74 loc) 3.11 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 { GridCellBase } from "./GridCellBase"; import { markType } from "igniteui-react-core"; import { intDivide } from "igniteui-react-core"; /** * @hidden */ var VerticalSeparatorCell = /** @class */ /*@__PURE__*/ (function (_super) { __extends(VerticalSeparatorCell, _super); function VerticalSeparatorCell(a) { var _this = _super.call(this, a) || this; _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); return _this; } VerticalSeparatorCell.prototype.b1 = function (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(); }; VerticalSeparatorCell.prototype.b9 = function (a, b) { _super.prototype.b9.call(this, a, b); this.cp(); }; VerticalSeparatorCell.prototype.b0 = function (a) { this.cl.setRawStyleProperty("background-color", a.colorString); }; VerticalSeparatorCell.prototype.cp = function () { 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"); } }; VerticalSeparatorCell.prototype.co = function () { 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 = markType(VerticalSeparatorCell, 'VerticalSeparatorCell', GridCellBase.$); return VerticalSeparatorCell; }(GridCellBase)); export { VerticalSeparatorCell };