dockview 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +52 -52
- package/dist/cjs/actionbar/actionsContainer.d.ts +7 -7
- package/dist/cjs/actionbar/actionsContainer.js +26 -26
- package/dist/cjs/api/component.api.d.ts +144 -144
- package/dist/cjs/api/component.api.js +571 -571
- package/dist/cjs/api/gridviewPanelApi.d.ts +36 -36
- package/dist/cjs/api/gridviewPanelApi.js +47 -47
- package/dist/cjs/api/groupPanelApi.d.ts +34 -41
- package/dist/cjs/api/groupPanelApi.js +85 -96
- package/dist/cjs/api/groupPanelApi.js.map +1 -1
- package/dist/cjs/api/panelApi.d.ts +81 -81
- package/dist/cjs/api/panelApi.js +121 -121
- package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
- package/dist/cjs/api/paneviewPanelApi.js +57 -57
- package/dist/cjs/api/splitviewPanelApi.d.ts +32 -32
- package/dist/cjs/api/splitviewPanelApi.js +47 -47
- package/dist/cjs/array.d.ts +13 -13
- package/dist/cjs/array.js +77 -77
- package/dist/cjs/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/cjs/dnd/abstractDragHandler.js +115 -115
- package/dist/cjs/dnd/dataTransfer.d.ts +31 -31
- package/dist/cjs/dnd/dataTransfer.js +100 -100
- package/dist/cjs/dnd/dnd.d.ts +27 -27
- package/dist/cjs/dnd/dnd.js +64 -64
- package/dist/cjs/dnd/droptarget.d.ts +37 -37
- package/dist/cjs/dnd/droptarget.js +201 -201
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +27 -27
- package/dist/cjs/dockview/components/tab/defaultTab.js +121 -126
- package/dist/cjs/dockview/components/tab/defaultTab.js.map +1 -1
- package/dist/cjs/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/cjs/dockview/components/watermark/watermark.js +101 -101
- package/dist/cjs/dockview/defaultGroupPanelView.d.ts +29 -29
- package/dist/cjs/dockview/defaultGroupPanelView.js +68 -68
- package/dist/cjs/dockview/deserializer.d.ts +5 -5
- package/dist/cjs/dockview/deserializer.js +2 -2
- package/dist/cjs/dockview/dockviewComponent.d.ts +125 -130
- package/dist/cjs/dockview/dockviewComponent.js +614 -629
- package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +31 -33
- package/dist/cjs/dockview/dockviewGroupPanel.js +156 -175
- package/dist/cjs/dockview/dockviewGroupPanel.js.map +1 -1
- package/dist/cjs/dockview/options.d.ts +88 -89
- package/dist/cjs/dockview/options.js +2 -2
- package/dist/cjs/dom.d.ts +14 -14
- package/dist/cjs/dom.js +182 -182
- package/dist/cjs/events.d.ts +30 -30
- package/dist/cjs/events.js +129 -129
- package/dist/cjs/gridview/baseComponentGridview.d.ts +87 -87
- package/dist/cjs/gridview/baseComponentGridview.js +279 -279
- package/dist/cjs/gridview/basePanelView.d.ts +43 -43
- package/dist/cjs/gridview/basePanelView.js +123 -123
- package/dist/cjs/gridview/branchNode.d.ts +49 -46
- package/dist/cjs/gridview/branchNode.js +342 -342
- package/dist/cjs/gridview/branchNode.js.map +1 -1
- package/dist/cjs/gridview/gridview.d.ts +126 -123
- package/dist/cjs/gridview/gridview.js +479 -479
- package/dist/cjs/gridview/gridview.js.map +1 -1
- package/dist/cjs/gridview/gridviewComponent.d.ts +85 -85
- package/dist/cjs/gridview/gridviewComponent.js +325 -325
- package/dist/cjs/gridview/gridviewPanel.d.ts +60 -60
- package/dist/cjs/gridview/gridviewPanel.js +202 -202
- package/dist/cjs/gridview/leafNode.d.ts +34 -31
- package/dist/cjs/gridview/leafNode.js +170 -165
- package/dist/cjs/gridview/leafNode.js.map +1 -1
- package/dist/cjs/gridview/options.d.ts +18 -18
- package/dist/cjs/gridview/options.js +2 -2
- package/dist/cjs/gridview/types.d.ts +3 -3
- package/dist/cjs/gridview/types.js +2 -2
- package/dist/cjs/groupview/dnd.d.ts +5 -5
- package/dist/cjs/groupview/dnd.js +9 -9
- package/dist/cjs/groupview/groupPanel.d.ts +32 -35
- package/dist/cjs/groupview/groupPanel.js +2 -2
- package/dist/cjs/groupview/groupview.d.ts +177 -177
- package/dist/cjs/groupview/groupview.js +589 -589
- package/dist/cjs/groupview/groupviewPanel.d.ts +35 -35
- package/dist/cjs/groupview/groupviewPanel.js +128 -128
- package/dist/cjs/groupview/panel/content.d.ts +30 -30
- package/dist/cjs/groupview/panel/content.js +100 -100
- package/dist/cjs/groupview/tab.d.ts +41 -42
- package/dist/cjs/groupview/tab.js +120 -126
- package/dist/cjs/groupview/tab.js.map +1 -1
- package/dist/cjs/groupview/titlebar/tabsContainer.d.ts +68 -68
- package/dist/cjs/groupview/titlebar/tabsContainer.js +258 -270
- package/dist/cjs/groupview/titlebar/tabsContainer.js.map +1 -1
- package/dist/cjs/groupview/types.d.ts +52 -53
- package/dist/cjs/groupview/types.js +2 -2
- package/dist/cjs/hostedContainer.d.ts +23 -23
- package/dist/cjs/hostedContainer.js +73 -73
- package/dist/cjs/index.d.ts +30 -30
- package/dist/cjs/index.js +46 -46
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lifecycle.d.ts +22 -22
- package/dist/cjs/lifecycle.js +88 -88
- package/dist/cjs/math.d.ts +4 -4
- package/dist/cjs/math.js +15 -15
- package/dist/cjs/panel/componentFactory.d.ts +8 -8
- package/dist/cjs/panel/componentFactory.js +30 -30
- package/dist/cjs/panel/types.d.ts +33 -33
- package/dist/cjs/panel/types.js +2 -2
- package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +21 -21
- package/dist/cjs/paneview/defaultPaneviewHeader.js +90 -90
- package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +19 -19
- package/dist/cjs/paneview/draggablePaneviewPanel.js +129 -129
- package/dist/cjs/paneview/options.d.ts +27 -27
- package/dist/cjs/paneview/options.js +2 -2
- package/dist/cjs/paneview/paneview.d.ts +40 -40
- package/dist/cjs/paneview/paneview.js +201 -201
- package/dist/cjs/paneview/paneviewComponent.d.ts +129 -129
- package/dist/cjs/paneview/paneviewComponent.js +394 -394
- package/dist/cjs/paneview/paneviewPanel.d.ts +92 -89
- package/dist/cjs/paneview/paneviewPanel.js +274 -274
- package/dist/cjs/paneview/paneviewPanel.js.map +1 -1
- package/dist/cjs/react/deserializer.d.ts +9 -9
- package/dist/cjs/react/deserializer.js +43 -45
- package/dist/cjs/react/deserializer.js.map +1 -1
- package/dist/cjs/react/dockview/defaultTab.d.ts +4 -4
- package/dist/cjs/react/dockview/defaultTab.js +72 -72
- package/dist/cjs/react/dockview/defaultTab.js.map +1 -1
- package/dist/cjs/react/dockview/dockview.d.ts +34 -35
- package/dist/cjs/react/dockview/dockview.js +212 -227
- package/dist/cjs/react/dockview/dockview.js.map +1 -1
- package/dist/cjs/react/dockview/groupControlsRenderer.d.ts +43 -43
- package/dist/cjs/react/dockview/groupControlsRenderer.js +86 -86
- package/dist/cjs/react/dockview/reactContentPart.d.ts +30 -30
- package/dist/cjs/react/dockview/reactContentPart.js +58 -58
- package/dist/cjs/react/dockview/reactHeaderPart.d.ts +26 -26
- package/dist/cjs/react/dockview/reactHeaderPart.js +55 -55
- package/dist/cjs/react/dockview/reactWatermarkPart.d.ts +29 -29
- package/dist/cjs/react/dockview/reactWatermarkPart.js +65 -65
- package/dist/cjs/react/dockview/v2/reactContentRenderer.d.ts +29 -29
- package/dist/cjs/react/dockview/v2/reactContentRenderer.js +87 -87
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.js +34 -34
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.js +45 -45
- package/dist/cjs/react/gridview/gridview.d.ts +24 -24
- package/dist/cjs/react/gridview/gridview.js +112 -112
- package/dist/cjs/react/gridview/view.d.ts +11 -11
- package/dist/cjs/react/gridview/view.js +40 -40
- package/dist/cjs/react/index.d.ts +9 -9
- package/dist/cjs/react/index.js +23 -23
- package/dist/cjs/react/paneview/paneview.d.ts +30 -30
- package/dist/cjs/react/paneview/paneview.js +155 -155
- package/dist/cjs/react/paneview/view.d.ts +20 -20
- package/dist/cjs/react/paneview/view.js +44 -44
- package/dist/cjs/react/react.d.ts +36 -36
- package/dist/cjs/react/react.js +194 -194
- package/dist/cjs/react/splitview/splitview.d.ts +24 -24
- package/dist/cjs/react/splitview/splitview.js +108 -108
- package/dist/cjs/react/splitview/view.d.ts +10 -10
- package/dist/cjs/react/splitview/view.js +40 -40
- package/dist/cjs/react/svg.d.ts +3 -3
- package/dist/cjs/react/svg.js +35 -35
- package/dist/cjs/react/types.d.ts +7 -7
- package/dist/cjs/react/types.js +2 -2
- package/dist/cjs/splitview/core/options.d.ts +26 -26
- package/dist/cjs/splitview/core/options.js +2 -2
- package/dist/cjs/splitview/core/splitview.d.ts +127 -124
- package/dist/cjs/splitview/core/splitview.js +908 -908
- package/dist/cjs/splitview/core/splitview.js.map +1 -1
- package/dist/cjs/splitview/core/viewItem.d.ts +25 -25
- package/dist/cjs/splitview/core/viewItem.js +124 -124
- package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
- package/dist/cjs/splitview/splitviewComponent.js +373 -373
- package/dist/cjs/splitview/splitviewPanel.d.ts +45 -42
- package/dist/cjs/splitview/splitviewPanel.js +178 -178
- package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
- package/dist/cjs/svg.d.ts +3 -3
- package/dist/cjs/svg.js +43 -43
- package/dist/cjs/types.d.ts +7 -7
- package/dist/cjs/types.js +2 -2
- package/dist/dockview.amd.js +6737 -6797
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.noStyle.js +6743 -6803
- package/dist/dockview.cjs.js +6737 -6797
- package/dist/dockview.esm.js +6731 -6791
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.js +6737 -6797
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.noStyle.js +6743 -6803
- package/dist/esm/actionbar/actionsContainer.d.ts +7 -7
- package/dist/esm/actionbar/actionsContainer.js +17 -17
- package/dist/esm/api/component.api.d.ts +144 -144
- package/dist/esm/api/component.api.js +326 -326
- package/dist/esm/api/gridviewPanelApi.d.ts +36 -36
- package/dist/esm/api/gridviewPanelApi.js +25 -25
- package/dist/esm/api/groupPanelApi.d.ts +34 -41
- package/dist/esm/api/groupPanelApi.js +50 -57
- package/dist/esm/api/panelApi.d.ts +81 -81
- package/dist/esm/api/panelApi.js +79 -79
- package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
- package/dist/esm/api/paneviewPanelApi.js +27 -27
- package/dist/esm/api/splitviewPanelApi.d.ts +32 -32
- package/dist/esm/api/splitviewPanelApi.js +25 -25
- package/dist/esm/array.d.ts +13 -13
- package/dist/esm/array.js +67 -67
- package/dist/esm/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/esm/dnd/abstractDragHandler.js +37 -37
- package/dist/esm/dnd/dataTransfer.d.ts +31 -31
- package/dist/esm/dnd/dataTransfer.js +69 -69
- package/dist/esm/dnd/dnd.d.ts +27 -27
- package/dist/esm/dnd/dnd.js +41 -41
- package/dist/esm/dnd/droptarget.d.ts +37 -37
- package/dist/esm/dnd/droptarget.js +167 -167
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +27 -27
- package/dist/esm/dockview/components/tab/defaultTab.js +79 -84
- package/dist/esm/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/esm/dockview/components/watermark/watermark.js +70 -70
- package/dist/esm/dockview/defaultGroupPanelView.d.ts +29 -29
- package/dist/esm/dockview/defaultGroupPanelView.js +44 -44
- package/dist/esm/dockview/deserializer.d.ts +5 -5
- package/dist/esm/dockview/deserializer.js +1 -1
- package/dist/esm/dockview/dockviewComponent.d.ts +125 -130
- package/dist/esm/dockview/dockviewComponent.js +468 -483
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +31 -33
- package/dist/esm/dockview/dockviewGroupPanel.js +107 -122
- package/dist/esm/dockview/options.d.ts +88 -89
- package/dist/esm/dockview/options.js +1 -1
- package/dist/esm/dom.d.ts +14 -14
- package/dist/esm/dom.js +113 -113
- package/dist/esm/events.d.ts +30 -30
- package/dist/esm/events.js +88 -88
- package/dist/esm/gridview/baseComponentGridview.d.ts +87 -87
- package/dist/esm/gridview/baseComponentGridview.js +189 -189
- package/dist/esm/gridview/basePanelView.d.ts +43 -43
- package/dist/esm/gridview/basePanelView.js +74 -74
- package/dist/esm/gridview/branchNode.d.ts +49 -46
- package/dist/esm/gridview/branchNode.js +218 -218
- package/dist/esm/gridview/gridview.d.ts +126 -123
- package/dist/esm/gridview/gridview.js +397 -397
- package/dist/esm/gridview/gridviewComponent.d.ts +85 -85
- package/dist/esm/gridview/gridviewComponent.js +238 -238
- package/dist/esm/gridview/gridviewPanel.d.ts +60 -60
- package/dist/esm/gridview/gridviewPanel.js +138 -138
- package/dist/esm/gridview/leafNode.d.ts +34 -31
- package/dist/esm/gridview/leafNode.js +103 -98
- package/dist/esm/gridview/options.d.ts +18 -18
- package/dist/esm/gridview/options.js +1 -1
- package/dist/esm/gridview/types.d.ts +3 -3
- package/dist/esm/gridview/types.js +1 -1
- package/dist/esm/groupview/dnd.d.ts +5 -5
- package/dist/esm/groupview/dnd.js +6 -6
- package/dist/esm/groupview/groupPanel.d.ts +32 -35
- package/dist/esm/groupview/groupPanel.js +1 -1
- package/dist/esm/groupview/groupview.d.ts +177 -177
- package/dist/esm/groupview/groupview.js +444 -444
- package/dist/esm/groupview/groupviewPanel.d.ts +35 -35
- package/dist/esm/groupview/groupviewPanel.js +61 -61
- package/dist/esm/groupview/panel/content.d.ts +30 -30
- package/dist/esm/groupview/panel/content.js +73 -73
- package/dist/esm/groupview/tab.d.ts +41 -42
- package/dist/esm/groupview/tab.js +90 -96
- package/dist/esm/groupview/titlebar/tabsContainer.d.ts +68 -68
- package/dist/esm/groupview/titlebar/tabsContainer.js +190 -191
- package/dist/esm/groupview/types.d.ts +52 -53
- package/dist/esm/groupview/types.js +1 -1
- package/dist/esm/hostedContainer.d.ts +23 -23
- package/dist/esm/hostedContainer.js +63 -63
- package/dist/esm/index.d.ts +30 -30
- package/dist/esm/index.js +23 -23
- package/dist/esm/lifecycle.d.ts +22 -22
- package/dist/esm/lifecycle.js +39 -39
- package/dist/esm/math.d.ts +4 -4
- package/dist/esm/math.js +10 -10
- package/dist/esm/panel/componentFactory.d.ts +8 -8
- package/dist/esm/panel/componentFactory.js +24 -24
- package/dist/esm/panel/types.d.ts +33 -33
- package/dist/esm/panel/types.js +1 -1
- package/dist/esm/paneview/defaultPaneviewHeader.d.ts +21 -21
- package/dist/esm/paneview/defaultPaneviewHeader.js +63 -63
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +19 -19
- package/dist/esm/paneview/draggablePaneviewPanel.js +90 -90
- package/dist/esm/paneview/options.d.ts +27 -27
- package/dist/esm/paneview/options.js +1 -1
- package/dist/esm/paneview/paneview.d.ts +40 -40
- package/dist/esm/paneview/paneview.js +145 -145
- package/dist/esm/paneview/paneviewComponent.d.ts +129 -129
- package/dist/esm/paneview/paneviewComponent.js +270 -270
- package/dist/esm/paneview/paneviewPanel.d.ts +92 -89
- package/dist/esm/paneview/paneviewPanel.js +191 -191
- package/dist/esm/react/deserializer.d.ts +9 -9
- package/dist/esm/react/deserializer.js +38 -40
- package/dist/esm/react/dockview/defaultTab.d.ts +4 -4
- package/dist/esm/react/dockview/defaultTab.js +34 -34
- package/dist/esm/react/dockview/dockview.d.ts +34 -35
- package/dist/esm/react/dockview/dockview.js +157 -172
- package/dist/esm/react/dockview/groupControlsRenderer.d.ts +43 -43
- package/dist/esm/react/dockview/groupControlsRenderer.js +68 -68
- package/dist/esm/react/dockview/reactContentPart.d.ts +30 -30
- package/dist/esm/react/dockview/reactContentPart.js +49 -49
- package/dist/esm/react/dockview/reactHeaderPart.d.ts +26 -26
- package/dist/esm/react/dockview/reactHeaderPart.js +46 -46
- package/dist/esm/react/dockview/reactWatermarkPart.d.ts +29 -29
- package/dist/esm/react/dockview/reactWatermarkPart.js +55 -55
- package/dist/esm/react/dockview/v2/reactContentRenderer.d.ts +29 -29
- package/dist/esm/react/dockview/v2/reactContentRenderer.js +69 -69
- package/dist/esm/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/esm/react/dockview/v2/reactGroupPanelView.js +12 -12
- package/dist/esm/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/esm/react/dockview/v2/webviewContentRenderer.js +36 -36
- package/dist/esm/react/gridview/gridview.d.ts +24 -24
- package/dist/esm/react/gridview/gridview.js +70 -70
- package/dist/esm/react/gridview/view.d.ts +11 -11
- package/dist/esm/react/gridview/view.js +18 -18
- package/dist/esm/react/index.d.ts +9 -9
- package/dist/esm/react/index.js +7 -7
- package/dist/esm/react/paneview/paneview.d.ts +30 -30
- package/dist/esm/react/paneview/paneview.js +100 -100
- package/dist/esm/react/paneview/view.d.ts +20 -20
- package/dist/esm/react/paneview/view.js +35 -35
- package/dist/esm/react/react.d.ts +36 -36
- package/dist/esm/react/react.js +125 -125
- package/dist/esm/react/splitview/splitview.d.ts +24 -24
- package/dist/esm/react/splitview/splitview.js +66 -66
- package/dist/esm/react/splitview/view.d.ts +10 -10
- package/dist/esm/react/splitview/view.js +18 -18
- package/dist/esm/react/svg.d.ts +3 -3
- package/dist/esm/react/svg.js +7 -7
- package/dist/esm/react/types.d.ts +7 -7
- package/dist/esm/react/types.js +1 -1
- package/dist/esm/splitview/core/options.d.ts +26 -26
- package/dist/esm/splitview/core/options.js +1 -1
- package/dist/esm/splitview/core/splitview.d.ts +127 -124
- package/dist/esm/splitview/core/splitview.js +689 -689
- package/dist/esm/splitview/core/viewItem.d.ts +25 -25
- package/dist/esm/splitview/core/viewItem.js +79 -79
- package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
- package/dist/esm/splitview/splitviewComponent.js +249 -249
- package/dist/esm/splitview/splitviewPanel.d.ts +45 -42
- package/dist/esm/splitview/splitviewPanel.js +107 -107
- package/dist/esm/svg.d.ts +3 -3
- package/dist/esm/svg.js +31 -31
- package/dist/esm/types.d.ts +7 -7
- package/dist/esm/types.js +1 -1
- package/dist/styles/dockview.css +0 -3
- package/package.json +2 -2
|
@@ -1,572 +1,572 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0;
|
|
15
|
-
var events_1 = require("../events");
|
|
16
|
-
var SplitviewApi = /** @class */ (function () {
|
|
17
|
-
function SplitviewApi(component) {
|
|
18
|
-
this.component = component;
|
|
19
|
-
}
|
|
20
|
-
Object.defineProperty(SplitviewApi.prototype, "minimumSize", {
|
|
21
|
-
get: function () {
|
|
22
|
-
return this.component.minimumSize;
|
|
23
|
-
},
|
|
24
|
-
enumerable: false,
|
|
25
|
-
configurable: true
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
|
|
28
|
-
get: function () {
|
|
29
|
-
return this.component.maximumSize;
|
|
30
|
-
},
|
|
31
|
-
enumerable: false,
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(SplitviewApi.prototype, "height", {
|
|
35
|
-
get: function () {
|
|
36
|
-
return this.component.height;
|
|
37
|
-
},
|
|
38
|
-
enumerable: false,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(SplitviewApi.prototype, "width", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this.component.width;
|
|
44
|
-
},
|
|
45
|
-
enumerable: false,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(SplitviewApi.prototype, "length", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this.component.length;
|
|
51
|
-
},
|
|
52
|
-
enumerable: false,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(SplitviewApi.prototype, "orientation", {
|
|
56
|
-
get: function () {
|
|
57
|
-
return this.component.orientation;
|
|
58
|
-
},
|
|
59
|
-
enumerable: false,
|
|
60
|
-
configurable: true
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(SplitviewApi.prototype, "panels", {
|
|
63
|
-
get: function () {
|
|
64
|
-
return this.component.panels;
|
|
65
|
-
},
|
|
66
|
-
enumerable: false,
|
|
67
|
-
configurable: true
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
|
|
70
|
-
get: function () {
|
|
71
|
-
return this.component.onDidLayoutFromJSON;
|
|
72
|
-
},
|
|
73
|
-
enumerable: false,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
|
|
77
|
-
get: function () {
|
|
78
|
-
return this.component.onDidLayoutChange;
|
|
79
|
-
},
|
|
80
|
-
enumerable: false,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
|
|
84
|
-
get: function () {
|
|
85
|
-
return this.component.onDidAddView;
|
|
86
|
-
},
|
|
87
|
-
enumerable: false,
|
|
88
|
-
configurable: true
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
|
|
91
|
-
get: function () {
|
|
92
|
-
return this.component.onDidRemoveView;
|
|
93
|
-
},
|
|
94
|
-
enumerable: false,
|
|
95
|
-
configurable: true
|
|
96
|
-
});
|
|
97
|
-
SplitviewApi.prototype.updateOptions = function (options) {
|
|
98
|
-
this.component.updateOptions(options);
|
|
99
|
-
};
|
|
100
|
-
SplitviewApi.prototype.removePanel = function (panel, sizing) {
|
|
101
|
-
this.component.removePanel(panel, sizing);
|
|
102
|
-
};
|
|
103
|
-
SplitviewApi.prototype.focus = function () {
|
|
104
|
-
this.component.focus();
|
|
105
|
-
};
|
|
106
|
-
SplitviewApi.prototype.getPanel = function (id) {
|
|
107
|
-
return this.component.getPanel(id);
|
|
108
|
-
};
|
|
109
|
-
SplitviewApi.prototype.layout = function (width, height) {
|
|
110
|
-
return this.component.layout(width, height);
|
|
111
|
-
};
|
|
112
|
-
SplitviewApi.prototype.addPanel = function (options) {
|
|
113
|
-
return this.component.addPanel(options);
|
|
114
|
-
};
|
|
115
|
-
SplitviewApi.prototype.movePanel = function (from, to) {
|
|
116
|
-
this.component.movePanel(from, to);
|
|
117
|
-
};
|
|
118
|
-
SplitviewApi.prototype.fromJSON = function (data) {
|
|
119
|
-
this.component.fromJSON(data);
|
|
120
|
-
};
|
|
121
|
-
SplitviewApi.prototype.toJSON = function () {
|
|
122
|
-
return this.component.toJSON();
|
|
123
|
-
};
|
|
124
|
-
SplitviewApi.prototype.clear = function () {
|
|
125
|
-
this.component.clear();
|
|
126
|
-
};
|
|
127
|
-
return SplitviewApi;
|
|
128
|
-
}());
|
|
129
|
-
exports.SplitviewApi = SplitviewApi;
|
|
130
|
-
var PaneviewApi = /** @class */ (function () {
|
|
131
|
-
function PaneviewApi(component) {
|
|
132
|
-
this.component = component;
|
|
133
|
-
}
|
|
134
|
-
Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
|
|
135
|
-
get: function () {
|
|
136
|
-
return this.component.minimumSize;
|
|
137
|
-
},
|
|
138
|
-
enumerable: false,
|
|
139
|
-
configurable: true
|
|
140
|
-
});
|
|
141
|
-
Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
|
|
142
|
-
get: function () {
|
|
143
|
-
return this.component.maximumSize;
|
|
144
|
-
},
|
|
145
|
-
enumerable: false,
|
|
146
|
-
configurable: true
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(PaneviewApi.prototype, "height", {
|
|
149
|
-
get: function () {
|
|
150
|
-
return this.component.height;
|
|
151
|
-
},
|
|
152
|
-
enumerable: false,
|
|
153
|
-
configurable: true
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(PaneviewApi.prototype, "width", {
|
|
156
|
-
get: function () {
|
|
157
|
-
return this.component.width;
|
|
158
|
-
},
|
|
159
|
-
enumerable: false,
|
|
160
|
-
configurable: true
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(PaneviewApi.prototype, "panels", {
|
|
163
|
-
get: function () {
|
|
164
|
-
return this.component.panels;
|
|
165
|
-
},
|
|
166
|
-
enumerable: false,
|
|
167
|
-
configurable: true
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
|
|
170
|
-
get: function () {
|
|
171
|
-
return this.component.onDidLayoutChange;
|
|
172
|
-
},
|
|
173
|
-
enumerable: false,
|
|
174
|
-
configurable: true
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
|
|
177
|
-
get: function () {
|
|
178
|
-
return this.component.onDidLayoutFromJSON;
|
|
179
|
-
},
|
|
180
|
-
enumerable: false,
|
|
181
|
-
configurable: true
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
|
|
184
|
-
get: function () {
|
|
185
|
-
return this.component.onDidAddView;
|
|
186
|
-
},
|
|
187
|
-
enumerable: false,
|
|
188
|
-
configurable: true
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
|
|
191
|
-
get: function () {
|
|
192
|
-
return this.component.onDidRemoveView;
|
|
193
|
-
},
|
|
194
|
-
enumerable: false,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
|
|
198
|
-
get: function () {
|
|
199
|
-
var _this = this;
|
|
200
|
-
var emitter = new events_1.Emitter();
|
|
201
|
-
var disposable = this.component.onDidDrop(function (e) {
|
|
202
|
-
emitter.fire(__assign(__assign({}, e), { api: _this }));
|
|
203
|
-
});
|
|
204
|
-
emitter.dispose = function () {
|
|
205
|
-
disposable.dispose();
|
|
206
|
-
emitter.dispose();
|
|
207
|
-
};
|
|
208
|
-
return emitter.event;
|
|
209
|
-
},
|
|
210
|
-
enumerable: false,
|
|
211
|
-
configurable: true
|
|
212
|
-
});
|
|
213
|
-
PaneviewApi.prototype.removePanel = function (panel) {
|
|
214
|
-
this.component.removePanel(panel);
|
|
215
|
-
};
|
|
216
|
-
PaneviewApi.prototype.getPanel = function (id) {
|
|
217
|
-
return this.component.getPanel(id);
|
|
218
|
-
};
|
|
219
|
-
PaneviewApi.prototype.movePanel = function (from, to) {
|
|
220
|
-
this.component.movePanel(from, to);
|
|
221
|
-
};
|
|
222
|
-
PaneviewApi.prototype.focus = function () {
|
|
223
|
-
this.component.focus();
|
|
224
|
-
};
|
|
225
|
-
PaneviewApi.prototype.layout = function (width, height) {
|
|
226
|
-
this.component.layout(width, height);
|
|
227
|
-
};
|
|
228
|
-
PaneviewApi.prototype.addPanel = function (options) {
|
|
229
|
-
return this.component.addPanel(options);
|
|
230
|
-
};
|
|
231
|
-
PaneviewApi.prototype.fromJSON = function (data) {
|
|
232
|
-
this.component.fromJSON(data);
|
|
233
|
-
};
|
|
234
|
-
PaneviewApi.prototype.toJSON = function () {
|
|
235
|
-
return this.component.toJSON();
|
|
236
|
-
};
|
|
237
|
-
PaneviewApi.prototype.clear = function () {
|
|
238
|
-
this.component.clear();
|
|
239
|
-
};
|
|
240
|
-
return PaneviewApi;
|
|
241
|
-
}());
|
|
242
|
-
exports.PaneviewApi = PaneviewApi;
|
|
243
|
-
var GridviewApi = /** @class */ (function () {
|
|
244
|
-
function GridviewApi(component) {
|
|
245
|
-
this.component = component;
|
|
246
|
-
}
|
|
247
|
-
Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
|
|
248
|
-
get: function () {
|
|
249
|
-
return this.component.minimumHeight;
|
|
250
|
-
},
|
|
251
|
-
enumerable: false,
|
|
252
|
-
configurable: true
|
|
253
|
-
});
|
|
254
|
-
Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
|
|
255
|
-
get: function () {
|
|
256
|
-
return this.component.maximumHeight;
|
|
257
|
-
},
|
|
258
|
-
enumerable: false,
|
|
259
|
-
configurable: true
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
|
|
262
|
-
get: function () {
|
|
263
|
-
return this.component.minimumWidth;
|
|
264
|
-
},
|
|
265
|
-
enumerable: false,
|
|
266
|
-
configurable: true
|
|
267
|
-
});
|
|
268
|
-
Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
|
|
269
|
-
get: function () {
|
|
270
|
-
return this.component.maximumWidth;
|
|
271
|
-
},
|
|
272
|
-
enumerable: false,
|
|
273
|
-
configurable: true
|
|
274
|
-
});
|
|
275
|
-
Object.defineProperty(GridviewApi.prototype, "width", {
|
|
276
|
-
get: function () {
|
|
277
|
-
return this.component.width;
|
|
278
|
-
},
|
|
279
|
-
enumerable: false,
|
|
280
|
-
configurable: true
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(GridviewApi.prototype, "height", {
|
|
283
|
-
get: function () {
|
|
284
|
-
return this.component.height;
|
|
285
|
-
},
|
|
286
|
-
enumerable: false,
|
|
287
|
-
configurable: true
|
|
288
|
-
});
|
|
289
|
-
Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
|
|
290
|
-
get: function () {
|
|
291
|
-
return this.component.onDidLayoutChange;
|
|
292
|
-
},
|
|
293
|
-
enumerable: false,
|
|
294
|
-
configurable: true
|
|
295
|
-
});
|
|
296
|
-
Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
|
|
297
|
-
get: function () {
|
|
298
|
-
return this.component.onDidAddGroup;
|
|
299
|
-
},
|
|
300
|
-
enumerable: false,
|
|
301
|
-
configurable: true
|
|
302
|
-
});
|
|
303
|
-
Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
|
|
304
|
-
get: function () {
|
|
305
|
-
return this.component.onDidRemoveGroup;
|
|
306
|
-
},
|
|
307
|
-
enumerable: false,
|
|
308
|
-
configurable: true
|
|
309
|
-
});
|
|
310
|
-
Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
|
|
311
|
-
get: function () {
|
|
312
|
-
return this.component.onDidActiveGroupChange;
|
|
313
|
-
},
|
|
314
|
-
enumerable: false,
|
|
315
|
-
configurable: true
|
|
316
|
-
});
|
|
317
|
-
Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
|
|
318
|
-
get: function () {
|
|
319
|
-
return this.component.onDidLayoutFromJSON;
|
|
320
|
-
},
|
|
321
|
-
enumerable: false,
|
|
322
|
-
configurable: true
|
|
323
|
-
});
|
|
324
|
-
Object.defineProperty(GridviewApi.prototype, "panels", {
|
|
325
|
-
get: function () {
|
|
326
|
-
return this.component.groups;
|
|
327
|
-
},
|
|
328
|
-
enumerable: false,
|
|
329
|
-
configurable: true
|
|
330
|
-
});
|
|
331
|
-
Object.defineProperty(GridviewApi.prototype, "orientation", {
|
|
332
|
-
get: function () {
|
|
333
|
-
return this.component.orientation;
|
|
334
|
-
},
|
|
335
|
-
set: function (value) {
|
|
336
|
-
this.component.updateOptions({ orientation: value });
|
|
337
|
-
},
|
|
338
|
-
enumerable: false,
|
|
339
|
-
configurable: true
|
|
340
|
-
});
|
|
341
|
-
GridviewApi.prototype.focus = function () {
|
|
342
|
-
this.component.focus();
|
|
343
|
-
};
|
|
344
|
-
GridviewApi.prototype.layout = function (width, height, force) {
|
|
345
|
-
if (force === void 0) { force = false; }
|
|
346
|
-
this.component.layout(width, height, force);
|
|
347
|
-
};
|
|
348
|
-
GridviewApi.prototype.addPanel = function (options) {
|
|
349
|
-
return this.component.addPanel(options);
|
|
350
|
-
};
|
|
351
|
-
GridviewApi.prototype.removePanel = function (panel, sizing) {
|
|
352
|
-
this.component.removePanel(panel, sizing);
|
|
353
|
-
};
|
|
354
|
-
GridviewApi.prototype.movePanel = function (panel, options) {
|
|
355
|
-
this.component.movePanel(panel, options);
|
|
356
|
-
};
|
|
357
|
-
GridviewApi.prototype.getPanel = function (id) {
|
|
358
|
-
return this.component.getPanel(id);
|
|
359
|
-
};
|
|
360
|
-
GridviewApi.prototype.fromJSON = function (data) {
|
|
361
|
-
return this.component.fromJSON(data);
|
|
362
|
-
};
|
|
363
|
-
GridviewApi.prototype.toJSON = function () {
|
|
364
|
-
return this.component.toJSON();
|
|
365
|
-
};
|
|
366
|
-
GridviewApi.prototype.clear = function () {
|
|
367
|
-
this.component.clear();
|
|
368
|
-
};
|
|
369
|
-
return GridviewApi;
|
|
370
|
-
}());
|
|
371
|
-
exports.GridviewApi = GridviewApi;
|
|
372
|
-
var DockviewApi = /** @class */ (function () {
|
|
373
|
-
function DockviewApi(component) {
|
|
374
|
-
this.component = component;
|
|
375
|
-
}
|
|
376
|
-
Object.defineProperty(DockviewApi.prototype, "width", {
|
|
377
|
-
get: function () {
|
|
378
|
-
return this.component.width;
|
|
379
|
-
},
|
|
380
|
-
enumerable: false,
|
|
381
|
-
configurable: true
|
|
382
|
-
});
|
|
383
|
-
Object.defineProperty(DockviewApi.prototype, "height", {
|
|
384
|
-
get: function () {
|
|
385
|
-
return this.component.height;
|
|
386
|
-
},
|
|
387
|
-
enumerable: false,
|
|
388
|
-
configurable: true
|
|
389
|
-
});
|
|
390
|
-
Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
|
|
391
|
-
get: function () {
|
|
392
|
-
return this.component.minimumHeight;
|
|
393
|
-
},
|
|
394
|
-
enumerable: false,
|
|
395
|
-
configurable: true
|
|
396
|
-
});
|
|
397
|
-
Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
|
|
398
|
-
get: function () {
|
|
399
|
-
return this.component.maximumHeight;
|
|
400
|
-
},
|
|
401
|
-
enumerable: false,
|
|
402
|
-
configurable: true
|
|
403
|
-
});
|
|
404
|
-
Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
|
|
405
|
-
get: function () {
|
|
406
|
-
return this.component.minimumWidth;
|
|
407
|
-
},
|
|
408
|
-
enumerable: false,
|
|
409
|
-
configurable: true
|
|
410
|
-
});
|
|
411
|
-
Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
|
|
412
|
-
get: function () {
|
|
413
|
-
return this.component.maximumWidth;
|
|
414
|
-
},
|
|
415
|
-
enumerable: false,
|
|
416
|
-
configurable: true
|
|
417
|
-
});
|
|
418
|
-
Object.defineProperty(DockviewApi.prototype, "size", {
|
|
419
|
-
get: function () {
|
|
420
|
-
return this.component.size;
|
|
421
|
-
},
|
|
422
|
-
enumerable: false,
|
|
423
|
-
configurable: true
|
|
424
|
-
});
|
|
425
|
-
Object.defineProperty(DockviewApi.prototype, "totalPanels", {
|
|
426
|
-
get: function () {
|
|
427
|
-
return this.component.totalPanels;
|
|
428
|
-
},
|
|
429
|
-
enumerable: false,
|
|
430
|
-
configurable: true
|
|
431
|
-
});
|
|
432
|
-
Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
|
|
433
|
-
get: function () {
|
|
434
|
-
return this.component.onDidActiveGroupChange;
|
|
435
|
-
},
|
|
436
|
-
enumerable: false,
|
|
437
|
-
configurable: true
|
|
438
|
-
});
|
|
439
|
-
Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
|
|
440
|
-
get: function () {
|
|
441
|
-
return this.component.onDidAddGroup;
|
|
442
|
-
},
|
|
443
|
-
enumerable: false,
|
|
444
|
-
configurable: true
|
|
445
|
-
});
|
|
446
|
-
Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
|
|
447
|
-
get: function () {
|
|
448
|
-
return this.component.onDidRemoveGroup;
|
|
449
|
-
},
|
|
450
|
-
enumerable: false,
|
|
451
|
-
configurable: true
|
|
452
|
-
});
|
|
453
|
-
Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
|
|
454
|
-
get: function () {
|
|
455
|
-
return this.component.onDidActivePanelChange;
|
|
456
|
-
},
|
|
457
|
-
enumerable: false,
|
|
458
|
-
configurable: true
|
|
459
|
-
});
|
|
460
|
-
Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
|
|
461
|
-
get: function () {
|
|
462
|
-
return this.component.onDidAddPanel;
|
|
463
|
-
},
|
|
464
|
-
enumerable: false,
|
|
465
|
-
configurable: true
|
|
466
|
-
});
|
|
467
|
-
Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
|
|
468
|
-
get: function () {
|
|
469
|
-
return this.component.onDidRemovePanel;
|
|
470
|
-
},
|
|
471
|
-
enumerable: false,
|
|
472
|
-
configurable: true
|
|
473
|
-
});
|
|
474
|
-
Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
|
|
475
|
-
get: function () {
|
|
476
|
-
return this.component.onDidLayoutFromJSON;
|
|
477
|
-
},
|
|
478
|
-
enumerable: false,
|
|
479
|
-
configurable: true
|
|
480
|
-
});
|
|
481
|
-
Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
|
|
482
|
-
get: function () {
|
|
483
|
-
return this.component.onDidLayoutChange;
|
|
484
|
-
},
|
|
485
|
-
enumerable: false,
|
|
486
|
-
configurable: true
|
|
487
|
-
});
|
|
488
|
-
Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
|
|
489
|
-
get: function () {
|
|
490
|
-
return this.component.onDidDrop;
|
|
491
|
-
},
|
|
492
|
-
enumerable: false,
|
|
493
|
-
configurable: true
|
|
494
|
-
});
|
|
495
|
-
Object.defineProperty(DockviewApi.prototype, "panels", {
|
|
496
|
-
get: function () {
|
|
497
|
-
return this.component.panels;
|
|
498
|
-
},
|
|
499
|
-
enumerable: false,
|
|
500
|
-
configurable: true
|
|
501
|
-
});
|
|
502
|
-
Object.defineProperty(DockviewApi.prototype, "groups", {
|
|
503
|
-
get: function () {
|
|
504
|
-
return this.component.groups;
|
|
505
|
-
},
|
|
506
|
-
enumerable: false,
|
|
507
|
-
configurable: true
|
|
508
|
-
});
|
|
509
|
-
Object.defineProperty(DockviewApi.prototype, "activePanel", {
|
|
510
|
-
get: function () {
|
|
511
|
-
return this.component.activePanel;
|
|
512
|
-
},
|
|
513
|
-
enumerable: false,
|
|
514
|
-
configurable: true
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(DockviewApi.prototype, "activeGroup", {
|
|
517
|
-
get: function () {
|
|
518
|
-
return this.component.activeGroup;
|
|
519
|
-
},
|
|
520
|
-
enumerable: false,
|
|
521
|
-
configurable: true
|
|
522
|
-
});
|
|
523
|
-
DockviewApi.prototype.getTabHeight = function () {
|
|
524
|
-
return this.component.tabHeight;
|
|
525
|
-
};
|
|
526
|
-
DockviewApi.prototype.setTabHeight = function (height) {
|
|
527
|
-
this.component.tabHeight = height;
|
|
528
|
-
};
|
|
529
|
-
DockviewApi.prototype.focus = function () {
|
|
530
|
-
this.component.focus();
|
|
531
|
-
};
|
|
532
|
-
DockviewApi.prototype.getPanel = function (id) {
|
|
533
|
-
return this.component.getGroupPanel(id);
|
|
534
|
-
};
|
|
535
|
-
DockviewApi.prototype.layout = function (width, height, force) {
|
|
536
|
-
if (force === void 0) { force = false; }
|
|
537
|
-
this.component.layout(width, height, force);
|
|
538
|
-
};
|
|
539
|
-
DockviewApi.prototype.addPanel = function (options) {
|
|
540
|
-
return this.component.addPanel(options);
|
|
541
|
-
};
|
|
542
|
-
DockviewApi.prototype.addEmptyGroup = function (options) {
|
|
543
|
-
this.component.addEmptyGroup(options);
|
|
544
|
-
};
|
|
545
|
-
DockviewApi.prototype.moveToNext = function (options) {
|
|
546
|
-
this.component.moveToNext(options);
|
|
547
|
-
};
|
|
548
|
-
DockviewApi.prototype.moveToPrevious = function (options) {
|
|
549
|
-
this.component.moveToPrevious(options);
|
|
550
|
-
};
|
|
551
|
-
DockviewApi.prototype.closeAllGroups = function () {
|
|
552
|
-
return this.component.closeAllGroups();
|
|
553
|
-
};
|
|
554
|
-
DockviewApi.prototype.removeGroup = function (group) {
|
|
555
|
-
this.component.removeGroup(group);
|
|
556
|
-
};
|
|
557
|
-
DockviewApi.prototype.getGroup = function (id) {
|
|
558
|
-
return this.component.getPanel(id);
|
|
559
|
-
};
|
|
560
|
-
DockviewApi.prototype.fromJSON = function (data) {
|
|
561
|
-
this.component.fromJSON(data);
|
|
562
|
-
};
|
|
563
|
-
DockviewApi.prototype.toJSON = function () {
|
|
564
|
-
return this.component.toJSON();
|
|
565
|
-
};
|
|
566
|
-
DockviewApi.prototype.clear = function () {
|
|
567
|
-
this.component.clear();
|
|
568
|
-
};
|
|
569
|
-
return DockviewApi;
|
|
570
|
-
}());
|
|
571
|
-
exports.DockviewApi = DockviewApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.DockviewApi = exports.GridviewApi = exports.PaneviewApi = exports.SplitviewApi = void 0;
|
|
15
|
+
var events_1 = require("../events");
|
|
16
|
+
var SplitviewApi = /** @class */ (function () {
|
|
17
|
+
function SplitviewApi(component) {
|
|
18
|
+
this.component = component;
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(SplitviewApi.prototype, "minimumSize", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return this.component.minimumSize;
|
|
23
|
+
},
|
|
24
|
+
enumerable: false,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this.component.maximumSize;
|
|
30
|
+
},
|
|
31
|
+
enumerable: false,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(SplitviewApi.prototype, "height", {
|
|
35
|
+
get: function () {
|
|
36
|
+
return this.component.height;
|
|
37
|
+
},
|
|
38
|
+
enumerable: false,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(SplitviewApi.prototype, "width", {
|
|
42
|
+
get: function () {
|
|
43
|
+
return this.component.width;
|
|
44
|
+
},
|
|
45
|
+
enumerable: false,
|
|
46
|
+
configurable: true
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(SplitviewApi.prototype, "length", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this.component.length;
|
|
51
|
+
},
|
|
52
|
+
enumerable: false,
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(SplitviewApi.prototype, "orientation", {
|
|
56
|
+
get: function () {
|
|
57
|
+
return this.component.orientation;
|
|
58
|
+
},
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(SplitviewApi.prototype, "panels", {
|
|
63
|
+
get: function () {
|
|
64
|
+
return this.component.panels;
|
|
65
|
+
},
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
|
|
70
|
+
get: function () {
|
|
71
|
+
return this.component.onDidLayoutFromJSON;
|
|
72
|
+
},
|
|
73
|
+
enumerable: false,
|
|
74
|
+
configurable: true
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this.component.onDidLayoutChange;
|
|
79
|
+
},
|
|
80
|
+
enumerable: false,
|
|
81
|
+
configurable: true
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
|
|
84
|
+
get: function () {
|
|
85
|
+
return this.component.onDidAddView;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
|
|
91
|
+
get: function () {
|
|
92
|
+
return this.component.onDidRemoveView;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
SplitviewApi.prototype.updateOptions = function (options) {
|
|
98
|
+
this.component.updateOptions(options);
|
|
99
|
+
};
|
|
100
|
+
SplitviewApi.prototype.removePanel = function (panel, sizing) {
|
|
101
|
+
this.component.removePanel(panel, sizing);
|
|
102
|
+
};
|
|
103
|
+
SplitviewApi.prototype.focus = function () {
|
|
104
|
+
this.component.focus();
|
|
105
|
+
};
|
|
106
|
+
SplitviewApi.prototype.getPanel = function (id) {
|
|
107
|
+
return this.component.getPanel(id);
|
|
108
|
+
};
|
|
109
|
+
SplitviewApi.prototype.layout = function (width, height) {
|
|
110
|
+
return this.component.layout(width, height);
|
|
111
|
+
};
|
|
112
|
+
SplitviewApi.prototype.addPanel = function (options) {
|
|
113
|
+
return this.component.addPanel(options);
|
|
114
|
+
};
|
|
115
|
+
SplitviewApi.prototype.movePanel = function (from, to) {
|
|
116
|
+
this.component.movePanel(from, to);
|
|
117
|
+
};
|
|
118
|
+
SplitviewApi.prototype.fromJSON = function (data) {
|
|
119
|
+
this.component.fromJSON(data);
|
|
120
|
+
};
|
|
121
|
+
SplitviewApi.prototype.toJSON = function () {
|
|
122
|
+
return this.component.toJSON();
|
|
123
|
+
};
|
|
124
|
+
SplitviewApi.prototype.clear = function () {
|
|
125
|
+
this.component.clear();
|
|
126
|
+
};
|
|
127
|
+
return SplitviewApi;
|
|
128
|
+
}());
|
|
129
|
+
exports.SplitviewApi = SplitviewApi;
|
|
130
|
+
var PaneviewApi = /** @class */ (function () {
|
|
131
|
+
function PaneviewApi(component) {
|
|
132
|
+
this.component = component;
|
|
133
|
+
}
|
|
134
|
+
Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
|
|
135
|
+
get: function () {
|
|
136
|
+
return this.component.minimumSize;
|
|
137
|
+
},
|
|
138
|
+
enumerable: false,
|
|
139
|
+
configurable: true
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
|
|
142
|
+
get: function () {
|
|
143
|
+
return this.component.maximumSize;
|
|
144
|
+
},
|
|
145
|
+
enumerable: false,
|
|
146
|
+
configurable: true
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(PaneviewApi.prototype, "height", {
|
|
149
|
+
get: function () {
|
|
150
|
+
return this.component.height;
|
|
151
|
+
},
|
|
152
|
+
enumerable: false,
|
|
153
|
+
configurable: true
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(PaneviewApi.prototype, "width", {
|
|
156
|
+
get: function () {
|
|
157
|
+
return this.component.width;
|
|
158
|
+
},
|
|
159
|
+
enumerable: false,
|
|
160
|
+
configurable: true
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(PaneviewApi.prototype, "panels", {
|
|
163
|
+
get: function () {
|
|
164
|
+
return this.component.panels;
|
|
165
|
+
},
|
|
166
|
+
enumerable: false,
|
|
167
|
+
configurable: true
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
|
|
170
|
+
get: function () {
|
|
171
|
+
return this.component.onDidLayoutChange;
|
|
172
|
+
},
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
|
|
177
|
+
get: function () {
|
|
178
|
+
return this.component.onDidLayoutFromJSON;
|
|
179
|
+
},
|
|
180
|
+
enumerable: false,
|
|
181
|
+
configurable: true
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
|
|
184
|
+
get: function () {
|
|
185
|
+
return this.component.onDidAddView;
|
|
186
|
+
},
|
|
187
|
+
enumerable: false,
|
|
188
|
+
configurable: true
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
|
|
191
|
+
get: function () {
|
|
192
|
+
return this.component.onDidRemoveView;
|
|
193
|
+
},
|
|
194
|
+
enumerable: false,
|
|
195
|
+
configurable: true
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
|
|
198
|
+
get: function () {
|
|
199
|
+
var _this = this;
|
|
200
|
+
var emitter = new events_1.Emitter();
|
|
201
|
+
var disposable = this.component.onDidDrop(function (e) {
|
|
202
|
+
emitter.fire(__assign(__assign({}, e), { api: _this }));
|
|
203
|
+
});
|
|
204
|
+
emitter.dispose = function () {
|
|
205
|
+
disposable.dispose();
|
|
206
|
+
emitter.dispose();
|
|
207
|
+
};
|
|
208
|
+
return emitter.event;
|
|
209
|
+
},
|
|
210
|
+
enumerable: false,
|
|
211
|
+
configurable: true
|
|
212
|
+
});
|
|
213
|
+
PaneviewApi.prototype.removePanel = function (panel) {
|
|
214
|
+
this.component.removePanel(panel);
|
|
215
|
+
};
|
|
216
|
+
PaneviewApi.prototype.getPanel = function (id) {
|
|
217
|
+
return this.component.getPanel(id);
|
|
218
|
+
};
|
|
219
|
+
PaneviewApi.prototype.movePanel = function (from, to) {
|
|
220
|
+
this.component.movePanel(from, to);
|
|
221
|
+
};
|
|
222
|
+
PaneviewApi.prototype.focus = function () {
|
|
223
|
+
this.component.focus();
|
|
224
|
+
};
|
|
225
|
+
PaneviewApi.prototype.layout = function (width, height) {
|
|
226
|
+
this.component.layout(width, height);
|
|
227
|
+
};
|
|
228
|
+
PaneviewApi.prototype.addPanel = function (options) {
|
|
229
|
+
return this.component.addPanel(options);
|
|
230
|
+
};
|
|
231
|
+
PaneviewApi.prototype.fromJSON = function (data) {
|
|
232
|
+
this.component.fromJSON(data);
|
|
233
|
+
};
|
|
234
|
+
PaneviewApi.prototype.toJSON = function () {
|
|
235
|
+
return this.component.toJSON();
|
|
236
|
+
};
|
|
237
|
+
PaneviewApi.prototype.clear = function () {
|
|
238
|
+
this.component.clear();
|
|
239
|
+
};
|
|
240
|
+
return PaneviewApi;
|
|
241
|
+
}());
|
|
242
|
+
exports.PaneviewApi = PaneviewApi;
|
|
243
|
+
var GridviewApi = /** @class */ (function () {
|
|
244
|
+
function GridviewApi(component) {
|
|
245
|
+
this.component = component;
|
|
246
|
+
}
|
|
247
|
+
Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
|
|
248
|
+
get: function () {
|
|
249
|
+
return this.component.minimumHeight;
|
|
250
|
+
},
|
|
251
|
+
enumerable: false,
|
|
252
|
+
configurable: true
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
|
|
255
|
+
get: function () {
|
|
256
|
+
return this.component.maximumHeight;
|
|
257
|
+
},
|
|
258
|
+
enumerable: false,
|
|
259
|
+
configurable: true
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
|
|
262
|
+
get: function () {
|
|
263
|
+
return this.component.minimumWidth;
|
|
264
|
+
},
|
|
265
|
+
enumerable: false,
|
|
266
|
+
configurable: true
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
|
|
269
|
+
get: function () {
|
|
270
|
+
return this.component.maximumWidth;
|
|
271
|
+
},
|
|
272
|
+
enumerable: false,
|
|
273
|
+
configurable: true
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperty(GridviewApi.prototype, "width", {
|
|
276
|
+
get: function () {
|
|
277
|
+
return this.component.width;
|
|
278
|
+
},
|
|
279
|
+
enumerable: false,
|
|
280
|
+
configurable: true
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(GridviewApi.prototype, "height", {
|
|
283
|
+
get: function () {
|
|
284
|
+
return this.component.height;
|
|
285
|
+
},
|
|
286
|
+
enumerable: false,
|
|
287
|
+
configurable: true
|
|
288
|
+
});
|
|
289
|
+
Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
|
|
290
|
+
get: function () {
|
|
291
|
+
return this.component.onDidLayoutChange;
|
|
292
|
+
},
|
|
293
|
+
enumerable: false,
|
|
294
|
+
configurable: true
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
|
|
297
|
+
get: function () {
|
|
298
|
+
return this.component.onDidAddGroup;
|
|
299
|
+
},
|
|
300
|
+
enumerable: false,
|
|
301
|
+
configurable: true
|
|
302
|
+
});
|
|
303
|
+
Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
|
|
304
|
+
get: function () {
|
|
305
|
+
return this.component.onDidRemoveGroup;
|
|
306
|
+
},
|
|
307
|
+
enumerable: false,
|
|
308
|
+
configurable: true
|
|
309
|
+
});
|
|
310
|
+
Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
|
|
311
|
+
get: function () {
|
|
312
|
+
return this.component.onDidActiveGroupChange;
|
|
313
|
+
},
|
|
314
|
+
enumerable: false,
|
|
315
|
+
configurable: true
|
|
316
|
+
});
|
|
317
|
+
Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
|
|
318
|
+
get: function () {
|
|
319
|
+
return this.component.onDidLayoutFromJSON;
|
|
320
|
+
},
|
|
321
|
+
enumerable: false,
|
|
322
|
+
configurable: true
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(GridviewApi.prototype, "panels", {
|
|
325
|
+
get: function () {
|
|
326
|
+
return this.component.groups;
|
|
327
|
+
},
|
|
328
|
+
enumerable: false,
|
|
329
|
+
configurable: true
|
|
330
|
+
});
|
|
331
|
+
Object.defineProperty(GridviewApi.prototype, "orientation", {
|
|
332
|
+
get: function () {
|
|
333
|
+
return this.component.orientation;
|
|
334
|
+
},
|
|
335
|
+
set: function (value) {
|
|
336
|
+
this.component.updateOptions({ orientation: value });
|
|
337
|
+
},
|
|
338
|
+
enumerable: false,
|
|
339
|
+
configurable: true
|
|
340
|
+
});
|
|
341
|
+
GridviewApi.prototype.focus = function () {
|
|
342
|
+
this.component.focus();
|
|
343
|
+
};
|
|
344
|
+
GridviewApi.prototype.layout = function (width, height, force) {
|
|
345
|
+
if (force === void 0) { force = false; }
|
|
346
|
+
this.component.layout(width, height, force);
|
|
347
|
+
};
|
|
348
|
+
GridviewApi.prototype.addPanel = function (options) {
|
|
349
|
+
return this.component.addPanel(options);
|
|
350
|
+
};
|
|
351
|
+
GridviewApi.prototype.removePanel = function (panel, sizing) {
|
|
352
|
+
this.component.removePanel(panel, sizing);
|
|
353
|
+
};
|
|
354
|
+
GridviewApi.prototype.movePanel = function (panel, options) {
|
|
355
|
+
this.component.movePanel(panel, options);
|
|
356
|
+
};
|
|
357
|
+
GridviewApi.prototype.getPanel = function (id) {
|
|
358
|
+
return this.component.getPanel(id);
|
|
359
|
+
};
|
|
360
|
+
GridviewApi.prototype.fromJSON = function (data) {
|
|
361
|
+
return this.component.fromJSON(data);
|
|
362
|
+
};
|
|
363
|
+
GridviewApi.prototype.toJSON = function () {
|
|
364
|
+
return this.component.toJSON();
|
|
365
|
+
};
|
|
366
|
+
GridviewApi.prototype.clear = function () {
|
|
367
|
+
this.component.clear();
|
|
368
|
+
};
|
|
369
|
+
return GridviewApi;
|
|
370
|
+
}());
|
|
371
|
+
exports.GridviewApi = GridviewApi;
|
|
372
|
+
var DockviewApi = /** @class */ (function () {
|
|
373
|
+
function DockviewApi(component) {
|
|
374
|
+
this.component = component;
|
|
375
|
+
}
|
|
376
|
+
Object.defineProperty(DockviewApi.prototype, "width", {
|
|
377
|
+
get: function () {
|
|
378
|
+
return this.component.width;
|
|
379
|
+
},
|
|
380
|
+
enumerable: false,
|
|
381
|
+
configurable: true
|
|
382
|
+
});
|
|
383
|
+
Object.defineProperty(DockviewApi.prototype, "height", {
|
|
384
|
+
get: function () {
|
|
385
|
+
return this.component.height;
|
|
386
|
+
},
|
|
387
|
+
enumerable: false,
|
|
388
|
+
configurable: true
|
|
389
|
+
});
|
|
390
|
+
Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
|
|
391
|
+
get: function () {
|
|
392
|
+
return this.component.minimumHeight;
|
|
393
|
+
},
|
|
394
|
+
enumerable: false,
|
|
395
|
+
configurable: true
|
|
396
|
+
});
|
|
397
|
+
Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
|
|
398
|
+
get: function () {
|
|
399
|
+
return this.component.maximumHeight;
|
|
400
|
+
},
|
|
401
|
+
enumerable: false,
|
|
402
|
+
configurable: true
|
|
403
|
+
});
|
|
404
|
+
Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
|
|
405
|
+
get: function () {
|
|
406
|
+
return this.component.minimumWidth;
|
|
407
|
+
},
|
|
408
|
+
enumerable: false,
|
|
409
|
+
configurable: true
|
|
410
|
+
});
|
|
411
|
+
Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
|
|
412
|
+
get: function () {
|
|
413
|
+
return this.component.maximumWidth;
|
|
414
|
+
},
|
|
415
|
+
enumerable: false,
|
|
416
|
+
configurable: true
|
|
417
|
+
});
|
|
418
|
+
Object.defineProperty(DockviewApi.prototype, "size", {
|
|
419
|
+
get: function () {
|
|
420
|
+
return this.component.size;
|
|
421
|
+
},
|
|
422
|
+
enumerable: false,
|
|
423
|
+
configurable: true
|
|
424
|
+
});
|
|
425
|
+
Object.defineProperty(DockviewApi.prototype, "totalPanels", {
|
|
426
|
+
get: function () {
|
|
427
|
+
return this.component.totalPanels;
|
|
428
|
+
},
|
|
429
|
+
enumerable: false,
|
|
430
|
+
configurable: true
|
|
431
|
+
});
|
|
432
|
+
Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
|
|
433
|
+
get: function () {
|
|
434
|
+
return this.component.onDidActiveGroupChange;
|
|
435
|
+
},
|
|
436
|
+
enumerable: false,
|
|
437
|
+
configurable: true
|
|
438
|
+
});
|
|
439
|
+
Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
|
|
440
|
+
get: function () {
|
|
441
|
+
return this.component.onDidAddGroup;
|
|
442
|
+
},
|
|
443
|
+
enumerable: false,
|
|
444
|
+
configurable: true
|
|
445
|
+
});
|
|
446
|
+
Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
|
|
447
|
+
get: function () {
|
|
448
|
+
return this.component.onDidRemoveGroup;
|
|
449
|
+
},
|
|
450
|
+
enumerable: false,
|
|
451
|
+
configurable: true
|
|
452
|
+
});
|
|
453
|
+
Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
|
|
454
|
+
get: function () {
|
|
455
|
+
return this.component.onDidActivePanelChange;
|
|
456
|
+
},
|
|
457
|
+
enumerable: false,
|
|
458
|
+
configurable: true
|
|
459
|
+
});
|
|
460
|
+
Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
|
|
461
|
+
get: function () {
|
|
462
|
+
return this.component.onDidAddPanel;
|
|
463
|
+
},
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: true
|
|
466
|
+
});
|
|
467
|
+
Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
|
|
468
|
+
get: function () {
|
|
469
|
+
return this.component.onDidRemovePanel;
|
|
470
|
+
},
|
|
471
|
+
enumerable: false,
|
|
472
|
+
configurable: true
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
|
|
475
|
+
get: function () {
|
|
476
|
+
return this.component.onDidLayoutFromJSON;
|
|
477
|
+
},
|
|
478
|
+
enumerable: false,
|
|
479
|
+
configurable: true
|
|
480
|
+
});
|
|
481
|
+
Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
|
|
482
|
+
get: function () {
|
|
483
|
+
return this.component.onDidLayoutChange;
|
|
484
|
+
},
|
|
485
|
+
enumerable: false,
|
|
486
|
+
configurable: true
|
|
487
|
+
});
|
|
488
|
+
Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
|
|
489
|
+
get: function () {
|
|
490
|
+
return this.component.onDidDrop;
|
|
491
|
+
},
|
|
492
|
+
enumerable: false,
|
|
493
|
+
configurable: true
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(DockviewApi.prototype, "panels", {
|
|
496
|
+
get: function () {
|
|
497
|
+
return this.component.panels;
|
|
498
|
+
},
|
|
499
|
+
enumerable: false,
|
|
500
|
+
configurable: true
|
|
501
|
+
});
|
|
502
|
+
Object.defineProperty(DockviewApi.prototype, "groups", {
|
|
503
|
+
get: function () {
|
|
504
|
+
return this.component.groups;
|
|
505
|
+
},
|
|
506
|
+
enumerable: false,
|
|
507
|
+
configurable: true
|
|
508
|
+
});
|
|
509
|
+
Object.defineProperty(DockviewApi.prototype, "activePanel", {
|
|
510
|
+
get: function () {
|
|
511
|
+
return this.component.activePanel;
|
|
512
|
+
},
|
|
513
|
+
enumerable: false,
|
|
514
|
+
configurable: true
|
|
515
|
+
});
|
|
516
|
+
Object.defineProperty(DockviewApi.prototype, "activeGroup", {
|
|
517
|
+
get: function () {
|
|
518
|
+
return this.component.activeGroup;
|
|
519
|
+
},
|
|
520
|
+
enumerable: false,
|
|
521
|
+
configurable: true
|
|
522
|
+
});
|
|
523
|
+
DockviewApi.prototype.getTabHeight = function () {
|
|
524
|
+
return this.component.tabHeight;
|
|
525
|
+
};
|
|
526
|
+
DockviewApi.prototype.setTabHeight = function (height) {
|
|
527
|
+
this.component.tabHeight = height;
|
|
528
|
+
};
|
|
529
|
+
DockviewApi.prototype.focus = function () {
|
|
530
|
+
this.component.focus();
|
|
531
|
+
};
|
|
532
|
+
DockviewApi.prototype.getPanel = function (id) {
|
|
533
|
+
return this.component.getGroupPanel(id);
|
|
534
|
+
};
|
|
535
|
+
DockviewApi.prototype.layout = function (width, height, force) {
|
|
536
|
+
if (force === void 0) { force = false; }
|
|
537
|
+
this.component.layout(width, height, force);
|
|
538
|
+
};
|
|
539
|
+
DockviewApi.prototype.addPanel = function (options) {
|
|
540
|
+
return this.component.addPanel(options);
|
|
541
|
+
};
|
|
542
|
+
DockviewApi.prototype.addEmptyGroup = function (options) {
|
|
543
|
+
this.component.addEmptyGroup(options);
|
|
544
|
+
};
|
|
545
|
+
DockviewApi.prototype.moveToNext = function (options) {
|
|
546
|
+
this.component.moveToNext(options);
|
|
547
|
+
};
|
|
548
|
+
DockviewApi.prototype.moveToPrevious = function (options) {
|
|
549
|
+
this.component.moveToPrevious(options);
|
|
550
|
+
};
|
|
551
|
+
DockviewApi.prototype.closeAllGroups = function () {
|
|
552
|
+
return this.component.closeAllGroups();
|
|
553
|
+
};
|
|
554
|
+
DockviewApi.prototype.removeGroup = function (group) {
|
|
555
|
+
this.component.removeGroup(group);
|
|
556
|
+
};
|
|
557
|
+
DockviewApi.prototype.getGroup = function (id) {
|
|
558
|
+
return this.component.getPanel(id);
|
|
559
|
+
};
|
|
560
|
+
DockviewApi.prototype.fromJSON = function (data) {
|
|
561
|
+
this.component.fromJSON(data);
|
|
562
|
+
};
|
|
563
|
+
DockviewApi.prototype.toJSON = function () {
|
|
564
|
+
return this.component.toJSON();
|
|
565
|
+
};
|
|
566
|
+
DockviewApi.prototype.clear = function () {
|
|
567
|
+
this.component.clear();
|
|
568
|
+
};
|
|
569
|
+
return DockviewApi;
|
|
570
|
+
}());
|
|
571
|
+
exports.DockviewApi = DockviewApi;
|
|
572
572
|
//# sourceMappingURL=component.api.js.map
|