UNPKG

dockview

Version:

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

445 lines 15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0; var SplitviewApi = /** @class */ (function () { function SplitviewApi(component) { this.component = component; } Object.defineProperty(SplitviewApi.prototype, "minimumSize", { get: function () { return this.component.minimumSize; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "maximumSize", { get: function () { return this.component.maximumSize; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "height", { get: function () { return this.component.height; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "width", { get: function () { return this.component.width; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "length", { get: function () { return this.component.length; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", { get: function () { return this.component.onDidLayoutChange; }, enumerable: false, configurable: true }); Object.defineProperty(SplitviewApi.prototype, "orientation", { get: function () { return this.component.orientation; }, enumerable: false, configurable: true }); SplitviewApi.prototype.updateOptions = function (options) { this.component.updateOptions(options); }; SplitviewApi.prototype.removePanel = function (panel, sizing) { this.component.removePanel(panel, sizing); }; SplitviewApi.prototype.setVisible = function (panel, isVisible) { this.component.setVisible(panel, isVisible); }; SplitviewApi.prototype.getPanels = function () { return this.component.getPanels(); }; SplitviewApi.prototype.focus = function () { this.component.focus(); }; SplitviewApi.prototype.getPanel = function (id) { return this.component.getPanel(id); }; SplitviewApi.prototype.setActive = function (panel) { this.component.setActive(panel); }; SplitviewApi.prototype.layout = function (width, height) { return this.component.layout(width, height); }; SplitviewApi.prototype.addPanel = function (options) { this.component.addPanel(options); }; SplitviewApi.prototype.resizeToFit = function () { this.component.resizeToFit(); }; SplitviewApi.prototype.movePanel = function (from, to) { this.component.movePanel(from, to); }; SplitviewApi.prototype.fromJSON = function (data, deferComponentLayout) { this.component.fromJSON(data, deferComponentLayout); }; SplitviewApi.prototype.toJSON = function () { return this.component.toJSON(); }; return SplitviewApi; }()); exports.SplitviewApi = SplitviewApi; var PaneviewApi = /** @class */ (function () { function PaneviewApi(component) { this.component = component; } Object.defineProperty(PaneviewApi.prototype, "width", { get: function () { return this.component.width; }, enumerable: false, configurable: true }); Object.defineProperty(PaneviewApi.prototype, "height", { get: function () { return this.component.height; }, enumerable: false, configurable: true }); Object.defineProperty(PaneviewApi.prototype, "minimumSize", { get: function () { return this.component.minimumSize; }, enumerable: false, configurable: true }); Object.defineProperty(PaneviewApi.prototype, "maximumSize", { get: function () { return this.component.maximumSize; }, enumerable: false, configurable: true }); Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", { get: function () { return this.component.onDidLayoutChange; }, enumerable: false, configurable: true }); PaneviewApi.prototype.getPanels = function () { return this.component.getPanels(); }; PaneviewApi.prototype.removePanel = function (panel) { this.component.removePanel(panel); }; PaneviewApi.prototype.getPanel = function (id) { return this.component.getPanel(id); }; PaneviewApi.prototype.movePanel = function (from, to) { this.component.movePanel(from, to); }; PaneviewApi.prototype.focus = function () { this.component.focus(); }; PaneviewApi.prototype.layout = function (width, height) { this.component.layout(width, height); }; PaneviewApi.prototype.addPanel = function (options) { return this.component.addPanel(options); }; PaneviewApi.prototype.resizeToFit = function () { this.component.resizeToFit(); }; PaneviewApi.prototype.fromJSON = function (data, deferComponentLayout) { this.component.fromJSON(data, deferComponentLayout); }; PaneviewApi.prototype.toJSON = function () { return this.component.toJSON(); }; return PaneviewApi; }()); exports.PaneviewApi = PaneviewApi; var GridviewApi = /** @class */ (function () { function GridviewApi(component) { this.component = component; } Object.defineProperty(GridviewApi.prototype, "width", { get: function () { return this.component.width; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "height", { get: function () { return this.component.height; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "minimumHeight", { get: function () { return this.component.minimumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "maximumHeight", { get: function () { return this.component.maximumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "minimumWidth", { get: function () { return this.component.minimumWidth; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "maximumWidth", { get: function () { return this.component.maximumWidth; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "onGridEvent", { get: function () { return this.component.onGridEvent; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", { get: function () { return this.component.onDidLayoutChange; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "panels", { get: function () { return this.component.groups; }, enumerable: false, configurable: true }); Object.defineProperty(GridviewApi.prototype, "orientation", { get: function () { return this.component.orientation; }, set: function (value) { this.component.updateOptions({ orientation: value }); }, enumerable: false, configurable: true }); GridviewApi.prototype.focus = function () { this.component.focus(); }; GridviewApi.prototype.layout = function (width, height, force) { if (force === void 0) { force = false; } this.component.layout(width, height, force); }; GridviewApi.prototype.addPanel = function (options) { this.component.addPanel(options); }; GridviewApi.prototype.removePanel = function (panel, sizing) { this.component.removePanel(panel, sizing); }; GridviewApi.prototype.movePanel = function (panel, options) { this.component.movePanel(panel, options); }; GridviewApi.prototype.resizeToFit = function () { this.component.resizeToFit(); }; GridviewApi.prototype.getPanel = function (id) { return this.component.getPanel(id); }; GridviewApi.prototype.toggleVisibility = function (panel) { this.component.toggleVisibility(panel); }; GridviewApi.prototype.setVisible = function (panel, visible) { this.component.setVisible(panel, visible); }; GridviewApi.prototype.setActive = function (panel) { this.component.setActive(panel); }; GridviewApi.prototype.fromJSON = function (data, deferComponentLayout) { return this.component.fromJSON(data, deferComponentLayout); }; GridviewApi.prototype.toJSON = function () { return this.component.toJSON(); }; return GridviewApi; }()); exports.GridviewApi = GridviewApi; var DockviewApi = /** @class */ (function () { function DockviewApi(component) { this.component = component; } Object.defineProperty(DockviewApi.prototype, "width", { get: function () { return this.component.width; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "height", { get: function () { return this.component.height; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "minimumHeight", { get: function () { return this.component.minimumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "maximumHeight", { get: function () { return this.component.maximumHeight; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "minimumWidth", { get: function () { return this.component.minimumWidth; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "maximumWidth", { get: function () { return this.component.maximumWidth; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "size", { get: function () { return this.component.size; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "totalPanels", { get: function () { return this.component.totalPanels; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "onGridEvent", { get: function () { return this.component.onGridEvent; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", { get: function () { return this.component.onDidLayoutChange; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "panels", { get: function () { return this.component.panels; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "groups", { get: function () { return this.component.groups; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "activePanel", { get: function () { return this.component.activePanel; }, enumerable: false, configurable: true }); Object.defineProperty(DockviewApi.prototype, "activeGroup", { get: function () { return this.component.activeGroup; }, enumerable: false, configurable: true }); DockviewApi.prototype.getTabHeight = function () { return this.component.tabHeight; }; DockviewApi.prototype.setTabHeight = function (height) { this.component.tabHeight = height; }; DockviewApi.prototype.focus = function () { this.component.focus(); }; DockviewApi.prototype.getPanel = function (id) { return this.component.getGroupPanel(id); }; DockviewApi.prototype.setActivePanel = function (panel) { this.component.setActivePanel(panel); }; DockviewApi.prototype.layout = function (width, height, force) { if (force === void 0) { force = false; } this.component.layout(width, height, force); }; DockviewApi.prototype.addPanel = function (options) { return this.component.addPanel(options); }; DockviewApi.prototype.removePanel = function (panel) { this.component.removePanel(panel); }; DockviewApi.prototype.addEmptyGroup = function (options) { this.component.addEmptyGroup(options); }; DockviewApi.prototype.moveToNext = function (options) { this.component.moveToNext(options); }; DockviewApi.prototype.moveToPrevious = function (options) { this.component.moveToPrevious(options); }; DockviewApi.prototype.closeAllGroups = function () { return this.component.closeAllGroups(); }; DockviewApi.prototype.removeGroup = function (group) { this.component.removeGroup(group); }; DockviewApi.prototype.resizeToFit = function () { return this.component.resizeToFit(); }; DockviewApi.prototype.getGroup = function (id) { return this.component.getPanel(id); }; DockviewApi.prototype.fromJSON = function (data) { this.component.fromJSON(data); }; DockviewApi.prototype.toJSON = function () { return this.component.toJSON(); }; return DockviewApi; }()); exports.DockviewApi = DockviewApi; //# sourceMappingURL=component.api.js.map