UNPKG

dockview

Version:

Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support

84 lines 3.34 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupviewPanel = void 0; var gridviewPanelApi_1 = require("../api/gridviewPanelApi"); var groupview_1 = require("./groupview"); var gridviewPanel_1 = require("../gridview/gridviewPanel"); var GroupviewPanel = /** @class */ (function (_super) { __extends(GroupviewPanel, _super); function GroupviewPanel(accessor, id, options) { var _this = _super.call(this, id, 'groupview_default', new gridviewPanelApi_1.GridviewPanelApiImpl(id)) || this; _this._model = new groupview_1.Groupview(_this.element, accessor, id, options, _this); return _this; } Object.defineProperty(GroupviewPanel.prototype, "model", { get: function () { return this._model; }, enumerable: false, configurable: true }); Object.defineProperty(GroupviewPanel.prototype, "minimumHeight", { get: function () { return this._model.minimumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(GroupviewPanel.prototype, "maximumHeight", { get: function () { return this._model.maximumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(GroupviewPanel.prototype, "minimumWidth", { get: function () { return this._model.minimumWidth; }, enumerable: false, configurable: true }); Object.defineProperty(GroupviewPanel.prototype, "maximumWidth", { get: function () { return this._model.maximumWidth; }, enumerable: false, configurable: true }); GroupviewPanel.prototype.initialize = function () { this.model.initialize(); }; GroupviewPanel.prototype.setActive = function (isActive) { _super.prototype.setActive.call(this, isActive); this.model.setActive(isActive); }; GroupviewPanel.prototype.layout = function (width, height) { _super.prototype.layout.call(this, width, height); this.model.layout(width, height); }; GroupviewPanel.prototype.getComponent = function () { return this._model; }; GroupviewPanel.prototype.toJSON = function () { return this.model.toJSON(); }; return GroupviewPanel; }(gridviewPanel_1.GridviewPanel)); exports.GroupviewPanel = GroupviewPanel; //# sourceMappingURL=groupviewPanel.js.map