UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

133 lines (132 loc) 4.71 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 { PanelBridge } from "./PanelBridge"; import { INativeUIGridBridge_$type } from "./INativeUIGridBridge"; import { List$1 } from "./List$1"; import { GridBridgeColumnDefinition } from "./GridBridgeColumnDefinition"; import { GridBridgeRowDefinition } from "./GridBridgeRowDefinition"; import { markType } from "./type"; /** * @hidden */ var GridBridge = /** @class */ /*@__PURE__*/ (function (_super) { __extends(GridBridge, _super); function GridBridge() { var _this = _super.call(this) || this; _this.i = new List$1(GridBridgeColumnDefinition.$, 0); _this.j = new List$1(GridBridgeRowDefinition.$, 0); return _this; } GridBridge.prototype.addColumnDefinition = function (a, b, c, d) { var e = new GridBridgeColumnDefinition(); e.a = c; e.b = d; this.i.add(e); this.k(a); }; GridBridge.prototype.k = function (a) { var b = ""; for (var c = 0; c < this.i.count; c++) { if (c > 0) { b += " "; } b += this.i._inner[c].c(); } a.setStyleProperty("grid-template-columns", b); }; GridBridge.prototype.l = function (a) { var b = ""; for (var c = 0; c < this.j.count; c++) { if (c > 0) { b += " "; } b += this.j._inner[c].c(); } a.setStyleProperty("grid-template-rows", b); }; GridBridge.prototype.addHandler = function (a, b, c, d) { }; GridBridge.prototype.addRowDefinition = function (a, b, c, d) { var e = new GridBridgeRowDefinition(); e.a = c; e.b = d; this.j.add(e); this.l(a); }; GridBridge.prototype.getColumn = function (a, b) { var c = b.v.getStyleProperty("grid-column"); var d = parseInt(c); return d - 1; }; GridBridge.prototype.getColumnDefinitionsCount = function (a) { return this.i.count; }; GridBridge.prototype.getRow = function (a, b) { var c = b.v.getStyleProperty("grid-row"); var d = parseInt(c); return d - 1; }; GridBridge.prototype.getRowDefinitionsCount = function (a) { return this.j.count; }; GridBridge.prototype.getValue = function (a, b) { switch (b) { } return null; }; GridBridge.prototype.removeColumnDefinition = function (a, b) { this.i.removeAt(b); this.k(a); }; GridBridge.prototype.removeHandler = function (a, b, c, d) { }; GridBridge.prototype.removeRowDefinition = function (a, b) { this.j.removeAt(b); this.l(a); }; GridBridge.prototype.setColumn = function (a, b, c) { b.v.setStyleProperty("grid-column", (c + 1).toString()); }; GridBridge.prototype.setRow = function (a, b, c) { b.v.setStyleProperty("grid-row", (c + 1).toString()); }; GridBridge.prototype.setValue = function (a, b, c) { switch (b) { } }; GridBridge.prototype.updateColumnDefinition = function (a, b, c, d) { var e = this.i._inner[b]; e.a = c; e.b = d; this.l(a); }; GridBridge.prototype.updateRowDefinition = function (a, b, c, d) { var e = this.j._inner[b]; e.a = c; e.b = d; this.l(a); }; GridBridge.prototype.getChildAt = function (a, b) { return this.c.apply(this, arguments); }; GridBridge.prototype.removeChildAt = function (a, b) { this.h.apply(this, arguments); }; GridBridge.prototype.addChild = function (a, b) { this.f.apply(this, arguments); }; GridBridge.prototype.removeChild = function (a, b) { this.g.apply(this, arguments); }; GridBridge.prototype.getChildrenCount = function (a) { return this.e.apply(this, arguments); }; GridBridge.$t = markType(GridBridge, 'GridBridge', PanelBridge.$, [INativeUIGridBridge_$type]); return GridBridge; }(PanelBridge)); export { GridBridge };