dockview-core 1.8.3 → 1.8.5
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/README.md +51 -51
- package/dist/cjs/api/component.api.d.ts +455 -152
- package/dist/cjs/api/component.api.d.ts.map +1 -1
- package/dist/cjs/api/component.api.js +895 -592
- package/dist/cjs/api/component.api.js.map +1 -1
- package/dist/cjs/api/dockviewGroupPanelApi.d.ts +29 -29
- package/dist/cjs/api/dockviewGroupPanelApi.js +53 -53
- package/dist/cjs/api/dockviewPanelApi.d.ts +47 -47
- package/dist/cjs/api/dockviewPanelApi.js +88 -88
- package/dist/cjs/api/gridviewPanelApi.d.ts +37 -37
- package/dist/cjs/api/gridviewPanelApi.js +47 -47
- package/dist/cjs/api/panelApi.d.ts +88 -88
- package/dist/cjs/api/panelApi.js +135 -135
- 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 +67 -67
- package/dist/cjs/dnd/abstractDragHandler.d.ts +12 -12
- package/dist/cjs/dnd/abstractDragHandler.js +141 -141
- package/dist/cjs/dnd/dataTransfer.d.ts +30 -31
- package/dist/cjs/dnd/dataTransfer.d.ts.map +1 -1
- package/dist/cjs/dnd/dataTransfer.js +99 -100
- package/dist/cjs/dnd/dataTransfer.js.map +1 -1
- package/dist/cjs/dnd/dnd.d.ts +27 -27
- package/dist/cjs/dnd/dnd.js +59 -59
- package/dist/cjs/dnd/droptarget.d.ts +53 -53
- package/dist/cjs/dnd/droptarget.js +304 -304
- package/dist/cjs/dnd/droptarget.js.map +1 -1
- package/dist/cjs/dnd/ghost.d.ts +1 -1
- package/dist/cjs/dnd/ghost.js +15 -15
- package/dist/cjs/dnd/groupDragHandler.d.ts +12 -12
- package/dist/cjs/dnd/groupDragHandler.js +77 -77
- package/dist/cjs/dnd/overlay.d.ts +43 -43
- package/dist/cjs/dnd/overlay.d.ts.map +1 -1
- package/dist/cjs/dnd/overlay.js +412 -412
- package/dist/cjs/dnd/overlay.js.map +1 -1
- package/dist/cjs/dockview/components/panel/content.d.ts +30 -30
- package/dist/cjs/dockview/components/panel/content.js +100 -100
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +21 -21
- package/dist/cjs/dockview/components/tab/defaultTab.js +105 -105
- package/dist/cjs/dockview/components/tab/tab.d.ts +34 -34
- package/dist/cjs/dockview/components/tab/tab.js +120 -120
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +81 -77
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts.map +1 -1
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +325 -309
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js.map +1 -1
- package/dist/cjs/dockview/components/titlebar/voidContainer.d.ts +17 -17
- package/dist/cjs/dockview/components/titlebar/voidContainer.js +77 -77
- package/dist/cjs/dockview/components/watermark/watermark.d.ts +18 -18
- package/dist/cjs/dockview/components/watermark/watermark.js +87 -87
- package/dist/cjs/dockview/deserializer.d.ts +12 -12
- package/dist/cjs/dockview/deserializer.js +33 -33
- package/dist/cjs/dockview/deserializer.js.map +1 -1
- package/dist/cjs/dockview/dockviewComponent.d.ts +159 -159
- package/dist/cjs/dockview/dockviewComponent.d.ts.map +1 -1
- package/dist/cjs/dockview/dockviewComponent.js +1170 -1002
- package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +34 -34
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +30 -30
- package/dist/cjs/dockview/dockviewGroupPanel.js +97 -97
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +185 -184
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts.map +1 -1
- package/dist/cjs/dockview/dockviewGroupPanelModel.js +632 -621
- package/dist/cjs/dockview/dockviewGroupPanelModel.js.map +1 -1
- package/dist/cjs/dockview/dockviewPanel.d.ts +41 -41
- package/dist/cjs/dockview/dockviewPanel.js +172 -171
- package/dist/cjs/dockview/dockviewPanel.js.map +1 -1
- package/dist/cjs/dockview/dockviewPanelModel.d.ts +35 -35
- package/dist/cjs/dockview/dockviewPanelModel.js +98 -98
- package/dist/cjs/dockview/dockviewPanelModel.js.map +1 -1
- package/dist/cjs/dockview/options.d.ts +133 -135
- package/dist/cjs/dockview/options.d.ts.map +1 -1
- package/dist/cjs/dockview/options.js +31 -31
- package/dist/cjs/dockview/options.js.map +1 -1
- package/dist/cjs/dockview/types.d.ts +63 -63
- package/dist/cjs/dockview/types.js +10 -10
- package/dist/cjs/dockview/types.js.map +1 -1
- package/dist/cjs/dom.d.ts +16 -16
- package/dist/cjs/dom.js +197 -197
- package/dist/cjs/events.d.ts +47 -47
- package/dist/cjs/events.js +216 -216
- package/dist/cjs/events.js.map +1 -1
- package/dist/cjs/gridview/baseComponentGridview.d.ts +88 -87
- package/dist/cjs/gridview/baseComponentGridview.d.ts.map +1 -1
- package/dist/cjs/gridview/baseComponentGridview.js +270 -270
- package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
- package/dist/cjs/gridview/basePanelView.d.ts +40 -40
- package/dist/cjs/gridview/basePanelView.js +156 -156
- package/dist/cjs/gridview/branchNode.d.ts +49 -49
- package/dist/cjs/gridview/branchNode.d.ts.map +1 -1
- package/dist/cjs/gridview/branchNode.js +343 -342
- package/dist/cjs/gridview/branchNode.js.map +1 -1
- package/dist/cjs/gridview/gridview.d.ts +133 -133
- package/dist/cjs/gridview/gridview.d.ts.map +1 -1
- package/dist/cjs/gridview/gridview.js +547 -539
- package/dist/cjs/gridview/gridview.js.map +1 -1
- package/dist/cjs/gridview/gridviewComponent.d.ts +80 -80
- package/dist/cjs/gridview/gridviewComponent.d.ts.map +1 -1
- package/dist/cjs/gridview/gridviewComponent.js +362 -328
- package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
- package/dist/cjs/gridview/gridviewPanel.d.ts +65 -65
- package/dist/cjs/gridview/gridviewPanel.js +214 -214
- package/dist/cjs/gridview/leafNode.d.ts +34 -34
- package/dist/cjs/gridview/leafNode.js +170 -170
- package/dist/cjs/gridview/leafNode.js.map +1 -1
- package/dist/cjs/gridview/options.d.ts +17 -18
- package/dist/cjs/gridview/options.d.ts.map +1 -1
- 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/index.d.ts +42 -41
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +61 -61
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lifecycle.d.ts +23 -23
- package/dist/cjs/lifecycle.js +65 -65
- package/dist/cjs/lifecycle.js.map +1 -1
- package/dist/cjs/math.d.ts +5 -5
- package/dist/cjs/math.js +34 -34
- package/dist/cjs/panel/componentFactory.d.ts +11 -10
- package/dist/cjs/panel/componentFactory.d.ts.map +1 -1
- package/dist/cjs/panel/componentFactory.js +30 -30
- package/dist/cjs/panel/componentFactory.js.map +1 -1
- 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 +21 -21
- package/dist/cjs/paneview/draggablePaneviewPanel.js +131 -131
- package/dist/cjs/paneview/options.d.ts +25 -28
- package/dist/cjs/paneview/options.d.ts.map +1 -1
- package/dist/cjs/paneview/options.js +2 -2
- package/dist/cjs/paneview/paneview.d.ts +40 -40
- package/dist/cjs/paneview/paneview.d.ts.map +1 -1
- package/dist/cjs/paneview/paneview.js +200 -201
- package/dist/cjs/paneview/paneview.js.map +1 -1
- package/dist/cjs/paneview/paneviewComponent.d.ts +128 -128
- package/dist/cjs/paneview/paneviewComponent.js +400 -397
- package/dist/cjs/paneview/paneviewComponent.js.map +1 -1
- package/dist/cjs/paneview/paneviewPanel.d.ts +92 -92
- package/dist/cjs/paneview/paneviewPanel.d.ts.map +1 -1
- package/dist/cjs/paneview/paneviewPanel.js +275 -275
- package/dist/cjs/resizable.d.ts +10 -7
- package/dist/cjs/resizable.d.ts.map +1 -1
- package/dist/cjs/resizable.js +79 -56
- package/dist/cjs/resizable.js.map +1 -1
- package/dist/cjs/splitview/options.d.ts +26 -27
- package/dist/cjs/splitview/options.d.ts.map +1 -1
- package/dist/cjs/splitview/options.js +2 -2
- package/dist/cjs/splitview/splitview.d.ts +128 -128
- package/dist/cjs/splitview/splitview.d.ts.map +1 -1
- package/dist/cjs/splitview/splitview.js +936 -926
- package/dist/cjs/splitview/splitview.js.map +1 -1
- package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
- package/dist/cjs/splitview/splitviewComponent.js +395 -392
- package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
- package/dist/cjs/splitview/splitviewPanel.d.ts +45 -45
- package/dist/cjs/splitview/splitviewPanel.d.ts.map +1 -1
- package/dist/cjs/splitview/splitviewPanel.js +179 -179
- package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
- package/dist/cjs/splitview/viewItem.d.ts +25 -25
- package/dist/cjs/splitview/viewItem.js +119 -119
- package/dist/cjs/svg.d.ts +3 -3
- package/dist/cjs/svg.js +43 -43
- package/dist/cjs/types.d.ts +2 -2
- package/dist/cjs/types.js +2 -2
- package/dist/dockview-core.amd.js +7650 -7188
- package/dist/dockview-core.amd.js.map +1 -1
- package/dist/dockview-core.amd.min.js +2 -2
- package/dist/dockview-core.amd.min.js.map +1 -1
- package/dist/dockview-core.amd.min.noStyle.js +2 -2
- package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
- package/dist/dockview-core.amd.noStyle.js +7601 -7139
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +7650 -7188
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +7650 -7188
- package/dist/dockview-core.esm.js.map +1 -1
- package/dist/dockview-core.esm.min.js +2 -2
- package/dist/dockview-core.esm.min.js.map +1 -1
- package/dist/dockview-core.js +7650 -7188
- package/dist/dockview-core.js.map +1 -1
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.js.map +1 -1
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.min.noStyle.js.map +1 -1
- package/dist/dockview-core.noStyle.js +7601 -7139
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/api/component.api.d.ts +455 -152
- package/dist/esm/api/component.api.d.ts.map +1 -1
- package/dist/esm/api/component.api.js +638 -335
- package/dist/esm/api/component.api.js.map +1 -1
- package/dist/esm/api/dockviewGroupPanelApi.d.ts +29 -29
- package/dist/esm/api/dockviewGroupPanelApi.js +27 -27
- package/dist/esm/api/dockviewPanelApi.d.ts +47 -47
- package/dist/esm/api/dockviewPanelApi.js +53 -53
- package/dist/esm/api/gridviewPanelApi.d.ts +37 -37
- package/dist/esm/api/gridviewPanelApi.js +25 -25
- package/dist/esm/api/panelApi.d.ts +88 -88
- package/dist/esm/api/panelApi.js +93 -93
- 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 +57 -57
- package/dist/esm/dnd/abstractDragHandler.d.ts +12 -12
- package/dist/esm/dnd/abstractDragHandler.js +63 -63
- package/dist/esm/dnd/dataTransfer.d.ts +30 -31
- package/dist/esm/dnd/dataTransfer.d.ts.map +1 -1
- package/dist/esm/dnd/dataTransfer.js +66 -69
- package/dist/esm/dnd/dataTransfer.js.map +1 -1
- package/dist/esm/dnd/dnd.d.ts +27 -27
- package/dist/esm/dnd/dnd.js +36 -36
- package/dist/esm/dnd/droptarget.d.ts +53 -53
- package/dist/esm/dnd/droptarget.js +274 -274
- package/dist/esm/dnd/droptarget.js.map +1 -1
- package/dist/esm/dnd/ghost.d.ts +1 -1
- package/dist/esm/dnd/ghost.js +11 -11
- package/dist/esm/dnd/groupDragHandler.d.ts +12 -12
- package/dist/esm/dnd/groupDragHandler.js +54 -54
- package/dist/esm/dnd/overlay.d.ts +43 -43
- package/dist/esm/dnd/overlay.d.ts.map +1 -1
- package/dist/esm/dnd/overlay.js +304 -304
- package/dist/esm/dnd/overlay.js.map +1 -1
- package/dist/esm/dockview/components/panel/content.d.ts +30 -30
- package/dist/esm/dockview/components/panel/content.js +73 -73
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +21 -21
- package/dist/esm/dockview/components/tab/defaultTab.js +67 -67
- package/dist/esm/dockview/components/tab/tab.d.ts +34 -34
- package/dist/esm/dockview/components/tab/tab.js +90 -90
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +81 -77
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts.map +1 -1
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +239 -223
- package/dist/esm/dockview/components/titlebar/tabsContainer.js.map +1 -1
- package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +17 -17
- package/dist/esm/dockview/components/titlebar/voidContainer.js +51 -51
- package/dist/esm/dockview/components/watermark/watermark.d.ts +18 -18
- package/dist/esm/dockview/components/watermark/watermark.js +61 -61
- package/dist/esm/dockview/deserializer.d.ts +12 -12
- package/dist/esm/dockview/deserializer.js +28 -28
- package/dist/esm/dockview/deserializer.js.map +1 -1
- package/dist/esm/dockview/dockviewComponent.d.ts +159 -159
- package/dist/esm/dockview/dockviewComponent.d.ts.map +1 -1
- package/dist/esm/dockview/dockviewComponent.js +932 -804
- package/dist/esm/dockview/dockviewComponent.js.map +1 -1
- package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
- package/dist/esm/dockview/dockviewFloatingGroupPanel.js +12 -12
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +30 -30
- package/dist/esm/dockview/dockviewGroupPanel.js +51 -51
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +185 -184
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts.map +1 -1
- package/dist/esm/dockview/dockviewGroupPanelModel.js +499 -488
- package/dist/esm/dockview/dockviewGroupPanelModel.js.map +1 -1
- package/dist/esm/dockview/dockviewPanel.d.ts +41 -41
- package/dist/esm/dockview/dockviewPanel.js +105 -104
- package/dist/esm/dockview/dockviewPanel.js.map +1 -1
- package/dist/esm/dockview/dockviewPanelModel.d.ts +35 -35
- package/dist/esm/dockview/dockviewPanelModel.js +74 -74
- package/dist/esm/dockview/dockviewPanelModel.js.map +1 -1
- package/dist/esm/dockview/options.d.ts +133 -135
- package/dist/esm/dockview/options.d.ts.map +1 -1
- package/dist/esm/dockview/options.js +24 -24
- package/dist/esm/dockview/options.js.map +1 -1
- package/dist/esm/dockview/types.d.ts +63 -63
- package/dist/esm/dockview/types.js +7 -7
- package/dist/esm/dom.d.ts +16 -16
- package/dist/esm/dom.js +126 -126
- package/dist/esm/events.d.ts +47 -47
- package/dist/esm/events.js +156 -156
- package/dist/esm/events.js.map +1 -1
- package/dist/esm/gridview/baseComponentGridview.d.ts +88 -87
- package/dist/esm/gridview/baseComponentGridview.d.ts.map +1 -1
- package/dist/esm/gridview/baseComponentGridview.js +184 -184
- package/dist/esm/gridview/baseComponentGridview.js.map +1 -1
- package/dist/esm/gridview/basePanelView.d.ts +40 -40
- package/dist/esm/gridview/basePanelView.js +85 -85
- package/dist/esm/gridview/branchNode.d.ts +49 -49
- package/dist/esm/gridview/branchNode.d.ts.map +1 -1
- package/dist/esm/gridview/branchNode.js +219 -218
- package/dist/esm/gridview/branchNode.js.map +1 -1
- package/dist/esm/gridview/gridview.d.ts +133 -133
- package/dist/esm/gridview/gridview.d.ts.map +1 -1
- package/dist/esm/gridview/gridview.js +461 -453
- package/dist/esm/gridview/gridview.js.map +1 -1
- package/dist/esm/gridview/gridviewComponent.d.ts +80 -80
- package/dist/esm/gridview/gridviewComponent.d.ts.map +1 -1
- package/dist/esm/gridview/gridviewComponent.js +264 -241
- package/dist/esm/gridview/gridviewComponent.js.map +1 -1
- package/dist/esm/gridview/gridviewPanel.d.ts +65 -65
- package/dist/esm/gridview/gridviewPanel.js +151 -151
- package/dist/esm/gridview/leafNode.d.ts +34 -34
- package/dist/esm/gridview/leafNode.js +103 -103
- package/dist/esm/gridview/options.d.ts +17 -18
- package/dist/esm/gridview/options.d.ts.map +1 -1
- 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/index.d.ts +42 -41
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +34 -34
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lifecycle.d.ts +23 -23
- package/dist/esm/lifecycle.js +41 -41
- package/dist/esm/math.d.ts +5 -5
- package/dist/esm/math.js +28 -28
- package/dist/esm/panel/componentFactory.d.ts +11 -10
- package/dist/esm/panel/componentFactory.d.ts.map +1 -1
- package/dist/esm/panel/componentFactory.js +24 -24
- package/dist/esm/panel/componentFactory.js.map +1 -1
- 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 +21 -21
- package/dist/esm/paneview/draggablePaneviewPanel.js +92 -92
- package/dist/esm/paneview/options.d.ts +25 -28
- package/dist/esm/paneview/options.d.ts.map +1 -1
- package/dist/esm/paneview/options.js +1 -1
- package/dist/esm/paneview/paneview.d.ts +40 -40
- package/dist/esm/paneview/paneview.d.ts.map +1 -1
- package/dist/esm/paneview/paneview.js +145 -145
- package/dist/esm/paneview/paneviewComponent.d.ts +128 -128
- package/dist/esm/paneview/paneviewComponent.js +276 -273
- package/dist/esm/paneview/paneviewComponent.js.map +1 -1
- package/dist/esm/paneview/paneviewPanel.d.ts +92 -92
- package/dist/esm/paneview/paneviewPanel.d.ts.map +1 -1
- package/dist/esm/paneview/paneviewPanel.js +192 -192
- package/dist/esm/resizable.d.ts +10 -7
- package/dist/esm/resizable.d.ts.map +1 -1
- package/dist/esm/resizable.js +48 -30
- package/dist/esm/resizable.js.map +1 -1
- package/dist/esm/splitview/options.d.ts +26 -27
- package/dist/esm/splitview/options.d.ts.map +1 -1
- package/dist/esm/splitview/options.js +1 -1
- package/dist/esm/splitview/splitview.d.ts +128 -128
- package/dist/esm/splitview/splitview.d.ts.map +1 -1
- package/dist/esm/splitview/splitview.js +704 -694
- package/dist/esm/splitview/splitview.js.map +1 -1
- package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
- package/dist/esm/splitview/splitviewComponent.js +261 -258
- package/dist/esm/splitview/splitviewComponent.js.map +1 -1
- package/dist/esm/splitview/splitviewPanel.d.ts +45 -45
- package/dist/esm/splitview/splitviewPanel.d.ts.map +1 -1
- package/dist/esm/splitview/splitviewPanel.js +108 -108
- package/dist/esm/splitview/splitviewPanel.js.map +1 -1
- package/dist/esm/splitview/viewItem.d.ts +25 -25
- package/dist/esm/splitview/viewItem.js +74 -74
- package/dist/esm/svg.d.ts +3 -3
- package/dist/esm/svg.js +31 -31
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/types.js +1 -1
- package/package.json +30 -43
- package/LICENSE +0 -21
|
@@ -1,593 +1,896 @@
|
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
get: function () {
|
|
85
|
-
return this.component.
|
|
86
|
-
},
|
|
87
|
-
enumerable: false,
|
|
88
|
-
configurable: true
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(SplitviewApi.prototype, "
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
};
|
|
100
|
-
SplitviewApi.prototype
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
};
|
|
121
|
-
SplitviewApi.prototype
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
Object.defineProperty(PaneviewApi.prototype, "
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
};
|
|
237
|
-
PaneviewApi.prototype
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
Object.defineProperty(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
this.component.
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
this.component.
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
get: function () {
|
|
392
|
-
return this.component.
|
|
393
|
-
},
|
|
394
|
-
enumerable: false,
|
|
395
|
-
configurable: true
|
|
396
|
-
});
|
|
397
|
-
Object.defineProperty(
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
get: function () {
|
|
462
|
-
return this.component.
|
|
463
|
-
},
|
|
464
|
-
enumerable: false,
|
|
465
|
-
configurable: true
|
|
466
|
-
});
|
|
467
|
-
Object.defineProperty(
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
};
|
|
572
|
-
DockviewApi.prototype
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
|
|
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
|
+
/**
|
|
22
|
+
* The minimum size the component can reach where size is measured in the direction of orientation provided.
|
|
23
|
+
*/
|
|
24
|
+
get: function () {
|
|
25
|
+
return this.component.minimumSize;
|
|
26
|
+
},
|
|
27
|
+
enumerable: false,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(SplitviewApi.prototype, "maximumSize", {
|
|
31
|
+
/**
|
|
32
|
+
* The maximum size the component can reach where size is measured in the direction of orientation provided.
|
|
33
|
+
*/
|
|
34
|
+
get: function () {
|
|
35
|
+
return this.component.maximumSize;
|
|
36
|
+
},
|
|
37
|
+
enumerable: false,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(SplitviewApi.prototype, "width", {
|
|
41
|
+
/**
|
|
42
|
+
* Width of the component.
|
|
43
|
+
*/
|
|
44
|
+
get: function () {
|
|
45
|
+
return this.component.width;
|
|
46
|
+
},
|
|
47
|
+
enumerable: false,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(SplitviewApi.prototype, "height", {
|
|
51
|
+
/**
|
|
52
|
+
* Height of the component.
|
|
53
|
+
*/
|
|
54
|
+
get: function () {
|
|
55
|
+
return this.component.height;
|
|
56
|
+
},
|
|
57
|
+
enumerable: false,
|
|
58
|
+
configurable: true
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(SplitviewApi.prototype, "length", {
|
|
61
|
+
/**
|
|
62
|
+
* The current number of panels.
|
|
63
|
+
*/
|
|
64
|
+
get: function () {
|
|
65
|
+
return this.component.length;
|
|
66
|
+
},
|
|
67
|
+
enumerable: false,
|
|
68
|
+
configurable: true
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(SplitviewApi.prototype, "orientation", {
|
|
71
|
+
/**
|
|
72
|
+
* The current orientation of the component.
|
|
73
|
+
*/
|
|
74
|
+
get: function () {
|
|
75
|
+
return this.component.orientation;
|
|
76
|
+
},
|
|
77
|
+
enumerable: false,
|
|
78
|
+
configurable: true
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(SplitviewApi.prototype, "panels", {
|
|
81
|
+
/**
|
|
82
|
+
* The list of current panels.
|
|
83
|
+
*/
|
|
84
|
+
get: function () {
|
|
85
|
+
return this.component.panels;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutFromJSON", {
|
|
91
|
+
/**
|
|
92
|
+
* Invoked after a layout is loaded through the `fromJSON` method.
|
|
93
|
+
*/
|
|
94
|
+
get: function () {
|
|
95
|
+
return this.component.onDidLayoutFromJSON;
|
|
96
|
+
},
|
|
97
|
+
enumerable: false,
|
|
98
|
+
configurable: true
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidLayoutChange", {
|
|
101
|
+
/**
|
|
102
|
+
* Invoked whenever any aspect of the layout changes.
|
|
103
|
+
* If listening to this event it may be worth debouncing ouputs.
|
|
104
|
+
*/
|
|
105
|
+
get: function () {
|
|
106
|
+
return this.component.onDidLayoutChange;
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidAddView", {
|
|
112
|
+
/**
|
|
113
|
+
* Invoked when a view is added.
|
|
114
|
+
*/
|
|
115
|
+
get: function () {
|
|
116
|
+
return this.component.onDidAddView;
|
|
117
|
+
},
|
|
118
|
+
enumerable: false,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(SplitviewApi.prototype, "onDidRemoveView", {
|
|
122
|
+
/**
|
|
123
|
+
* Invoked when a view is removed.
|
|
124
|
+
*/
|
|
125
|
+
get: function () {
|
|
126
|
+
return this.component.onDidRemoveView;
|
|
127
|
+
},
|
|
128
|
+
enumerable: false,
|
|
129
|
+
configurable: true
|
|
130
|
+
});
|
|
131
|
+
/**
|
|
132
|
+
* Update configuratable options.
|
|
133
|
+
*/
|
|
134
|
+
SplitviewApi.prototype.updateOptions = function (options) {
|
|
135
|
+
this.component.updateOptions(options);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Removes an existing panel and optionally provide a `Sizing` method
|
|
139
|
+
* for the subsequent resize.
|
|
140
|
+
*/
|
|
141
|
+
SplitviewApi.prototype.removePanel = function (panel, sizing) {
|
|
142
|
+
this.component.removePanel(panel, sizing);
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Focus the component.
|
|
146
|
+
*/
|
|
147
|
+
SplitviewApi.prototype.focus = function () {
|
|
148
|
+
this.component.focus();
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Get the reference to a panel given it's `string` id.
|
|
152
|
+
*/
|
|
153
|
+
SplitviewApi.prototype.getPanel = function (id) {
|
|
154
|
+
return this.component.getPanel(id);
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Layout the panel with a width and height.
|
|
158
|
+
*/
|
|
159
|
+
SplitviewApi.prototype.layout = function (width, height) {
|
|
160
|
+
return this.component.layout(width, height);
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Add a new panel and return the created instance.
|
|
164
|
+
*/
|
|
165
|
+
SplitviewApi.prototype.addPanel = function (options) {
|
|
166
|
+
return this.component.addPanel(options);
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Move a panel given it's current and desired index.
|
|
170
|
+
*/
|
|
171
|
+
SplitviewApi.prototype.movePanel = function (from, to) {
|
|
172
|
+
this.component.movePanel(from, to);
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Deserialize a layout to built a splitivew.
|
|
176
|
+
*/
|
|
177
|
+
SplitviewApi.prototype.fromJSON = function (data) {
|
|
178
|
+
this.component.fromJSON(data);
|
|
179
|
+
};
|
|
180
|
+
/** Serialize a layout */
|
|
181
|
+
SplitviewApi.prototype.toJSON = function () {
|
|
182
|
+
return this.component.toJSON();
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Remove all panels and clear the component.
|
|
186
|
+
*/
|
|
187
|
+
SplitviewApi.prototype.clear = function () {
|
|
188
|
+
this.component.clear();
|
|
189
|
+
};
|
|
190
|
+
return SplitviewApi;
|
|
191
|
+
}());
|
|
192
|
+
exports.SplitviewApi = SplitviewApi;
|
|
193
|
+
var PaneviewApi = /** @class */ (function () {
|
|
194
|
+
function PaneviewApi(component) {
|
|
195
|
+
this.component = component;
|
|
196
|
+
}
|
|
197
|
+
Object.defineProperty(PaneviewApi.prototype, "minimumSize", {
|
|
198
|
+
/**
|
|
199
|
+
* The minimum size the component can reach where size is measured in the direction of orientation provided.
|
|
200
|
+
*/
|
|
201
|
+
get: function () {
|
|
202
|
+
return this.component.minimumSize;
|
|
203
|
+
},
|
|
204
|
+
enumerable: false,
|
|
205
|
+
configurable: true
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(PaneviewApi.prototype, "maximumSize", {
|
|
208
|
+
/**
|
|
209
|
+
* The maximum size the component can reach where size is measured in the direction of orientation provided.
|
|
210
|
+
*/
|
|
211
|
+
get: function () {
|
|
212
|
+
return this.component.maximumSize;
|
|
213
|
+
},
|
|
214
|
+
enumerable: false,
|
|
215
|
+
configurable: true
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(PaneviewApi.prototype, "width", {
|
|
218
|
+
/**
|
|
219
|
+
* Width of the component.
|
|
220
|
+
*/
|
|
221
|
+
get: function () {
|
|
222
|
+
return this.component.width;
|
|
223
|
+
},
|
|
224
|
+
enumerable: false,
|
|
225
|
+
configurable: true
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(PaneviewApi.prototype, "height", {
|
|
228
|
+
/**
|
|
229
|
+
* Height of the component.
|
|
230
|
+
*/
|
|
231
|
+
get: function () {
|
|
232
|
+
return this.component.height;
|
|
233
|
+
},
|
|
234
|
+
enumerable: false,
|
|
235
|
+
configurable: true
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(PaneviewApi.prototype, "panels", {
|
|
238
|
+
/**
|
|
239
|
+
* All panel objects.
|
|
240
|
+
*/
|
|
241
|
+
get: function () {
|
|
242
|
+
return this.component.panels;
|
|
243
|
+
},
|
|
244
|
+
enumerable: false,
|
|
245
|
+
configurable: true
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutChange", {
|
|
248
|
+
/**
|
|
249
|
+
* Invoked when any layout change occures, an aggregation of many events.
|
|
250
|
+
*/
|
|
251
|
+
get: function () {
|
|
252
|
+
return this.component.onDidLayoutChange;
|
|
253
|
+
},
|
|
254
|
+
enumerable: false,
|
|
255
|
+
configurable: true
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidLayoutFromJSON", {
|
|
258
|
+
/**
|
|
259
|
+
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
260
|
+
*/
|
|
261
|
+
get: function () {
|
|
262
|
+
return this.component.onDidLayoutFromJSON;
|
|
263
|
+
},
|
|
264
|
+
enumerable: false,
|
|
265
|
+
configurable: true
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidAddView", {
|
|
268
|
+
/**
|
|
269
|
+
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
270
|
+
*/
|
|
271
|
+
get: function () {
|
|
272
|
+
return this.component.onDidAddView;
|
|
273
|
+
},
|
|
274
|
+
enumerable: false,
|
|
275
|
+
configurable: true
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidRemoveView", {
|
|
278
|
+
/**
|
|
279
|
+
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
280
|
+
*/
|
|
281
|
+
get: function () {
|
|
282
|
+
return this.component.onDidRemoveView;
|
|
283
|
+
},
|
|
284
|
+
enumerable: false,
|
|
285
|
+
configurable: true
|
|
286
|
+
});
|
|
287
|
+
Object.defineProperty(PaneviewApi.prototype, "onDidDrop", {
|
|
288
|
+
/**
|
|
289
|
+
* Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
|
|
290
|
+
*/
|
|
291
|
+
get: function () {
|
|
292
|
+
var _this = this;
|
|
293
|
+
var emitter = new events_1.Emitter();
|
|
294
|
+
var disposable = this.component.onDidDrop(function (e) {
|
|
295
|
+
emitter.fire(__assign(__assign({}, e), { api: _this }));
|
|
296
|
+
});
|
|
297
|
+
emitter.dispose = function () {
|
|
298
|
+
disposable.dispose();
|
|
299
|
+
emitter.dispose();
|
|
300
|
+
};
|
|
301
|
+
return emitter.event;
|
|
302
|
+
},
|
|
303
|
+
enumerable: false,
|
|
304
|
+
configurable: true
|
|
305
|
+
});
|
|
306
|
+
/**
|
|
307
|
+
* Remove a panel given the panel object.
|
|
308
|
+
*/
|
|
309
|
+
PaneviewApi.prototype.removePanel = function (panel) {
|
|
310
|
+
this.component.removePanel(panel);
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Get a panel object given a `string` id. May return `undefined`.
|
|
314
|
+
*/
|
|
315
|
+
PaneviewApi.prototype.getPanel = function (id) {
|
|
316
|
+
return this.component.getPanel(id);
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Move a panel given it's current and desired index.
|
|
320
|
+
*/
|
|
321
|
+
PaneviewApi.prototype.movePanel = function (from, to) {
|
|
322
|
+
this.component.movePanel(from, to);
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Focus the component. Will try to focus an active panel if one exists.
|
|
326
|
+
*/
|
|
327
|
+
PaneviewApi.prototype.focus = function () {
|
|
328
|
+
this.component.focus();
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
332
|
+
*/
|
|
333
|
+
PaneviewApi.prototype.layout = function (width, height) {
|
|
334
|
+
this.component.layout(width, height);
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Add a panel and return the created object.
|
|
338
|
+
*/
|
|
339
|
+
PaneviewApi.prototype.addPanel = function (options) {
|
|
340
|
+
return this.component.addPanel(options);
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* Create a component from a serialized object.
|
|
344
|
+
*/
|
|
345
|
+
PaneviewApi.prototype.fromJSON = function (data) {
|
|
346
|
+
this.component.fromJSON(data);
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Create a serialized object of the current component.
|
|
350
|
+
*/
|
|
351
|
+
PaneviewApi.prototype.toJSON = function () {
|
|
352
|
+
return this.component.toJSON();
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Reset the component back to an empty and default state.
|
|
356
|
+
*/
|
|
357
|
+
PaneviewApi.prototype.clear = function () {
|
|
358
|
+
this.component.clear();
|
|
359
|
+
};
|
|
360
|
+
return PaneviewApi;
|
|
361
|
+
}());
|
|
362
|
+
exports.PaneviewApi = PaneviewApi;
|
|
363
|
+
var GridviewApi = /** @class */ (function () {
|
|
364
|
+
function GridviewApi(component) {
|
|
365
|
+
this.component = component;
|
|
366
|
+
}
|
|
367
|
+
Object.defineProperty(GridviewApi.prototype, "width", {
|
|
368
|
+
/**
|
|
369
|
+
* Width of the component.
|
|
370
|
+
*/
|
|
371
|
+
get: function () {
|
|
372
|
+
return this.component.width;
|
|
373
|
+
},
|
|
374
|
+
enumerable: false,
|
|
375
|
+
configurable: true
|
|
376
|
+
});
|
|
377
|
+
Object.defineProperty(GridviewApi.prototype, "height", {
|
|
378
|
+
/**
|
|
379
|
+
* Height of the component.
|
|
380
|
+
*/
|
|
381
|
+
get: function () {
|
|
382
|
+
return this.component.height;
|
|
383
|
+
},
|
|
384
|
+
enumerable: false,
|
|
385
|
+
configurable: true
|
|
386
|
+
});
|
|
387
|
+
Object.defineProperty(GridviewApi.prototype, "minimumHeight", {
|
|
388
|
+
/**
|
|
389
|
+
* Minimum height of the component.
|
|
390
|
+
*/
|
|
391
|
+
get: function () {
|
|
392
|
+
return this.component.minimumHeight;
|
|
393
|
+
},
|
|
394
|
+
enumerable: false,
|
|
395
|
+
configurable: true
|
|
396
|
+
});
|
|
397
|
+
Object.defineProperty(GridviewApi.prototype, "maximumHeight", {
|
|
398
|
+
/**
|
|
399
|
+
* Maximum height of the component.
|
|
400
|
+
*/
|
|
401
|
+
get: function () {
|
|
402
|
+
return this.component.maximumHeight;
|
|
403
|
+
},
|
|
404
|
+
enumerable: false,
|
|
405
|
+
configurable: true
|
|
406
|
+
});
|
|
407
|
+
Object.defineProperty(GridviewApi.prototype, "minimumWidth", {
|
|
408
|
+
/**
|
|
409
|
+
* Minimum width of the component.
|
|
410
|
+
*/
|
|
411
|
+
get: function () {
|
|
412
|
+
return this.component.minimumWidth;
|
|
413
|
+
},
|
|
414
|
+
enumerable: false,
|
|
415
|
+
configurable: true
|
|
416
|
+
});
|
|
417
|
+
Object.defineProperty(GridviewApi.prototype, "maximumWidth", {
|
|
418
|
+
/**
|
|
419
|
+
* Maximum width of the component.
|
|
420
|
+
*/
|
|
421
|
+
get: function () {
|
|
422
|
+
return this.component.maximumWidth;
|
|
423
|
+
},
|
|
424
|
+
enumerable: false,
|
|
425
|
+
configurable: true
|
|
426
|
+
});
|
|
427
|
+
Object.defineProperty(GridviewApi.prototype, "onDidLayoutChange", {
|
|
428
|
+
/**
|
|
429
|
+
* Invoked when any layout change occures, an aggregation of many events.
|
|
430
|
+
*/
|
|
431
|
+
get: function () {
|
|
432
|
+
return this.component.onDidLayoutChange;
|
|
433
|
+
},
|
|
434
|
+
enumerable: false,
|
|
435
|
+
configurable: true
|
|
436
|
+
});
|
|
437
|
+
Object.defineProperty(GridviewApi.prototype, "onDidAddPanel", {
|
|
438
|
+
/**
|
|
439
|
+
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
440
|
+
*/
|
|
441
|
+
get: function () {
|
|
442
|
+
return this.component.onDidAddGroup;
|
|
443
|
+
},
|
|
444
|
+
enumerable: false,
|
|
445
|
+
configurable: true
|
|
446
|
+
});
|
|
447
|
+
Object.defineProperty(GridviewApi.prototype, "onDidRemovePanel", {
|
|
448
|
+
/**
|
|
449
|
+
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
450
|
+
*/
|
|
451
|
+
get: function () {
|
|
452
|
+
return this.component.onDidRemoveGroup;
|
|
453
|
+
},
|
|
454
|
+
enumerable: false,
|
|
455
|
+
configurable: true
|
|
456
|
+
});
|
|
457
|
+
Object.defineProperty(GridviewApi.prototype, "onDidActivePanelChange", {
|
|
458
|
+
/**
|
|
459
|
+
* Invoked when the active panel changes. May be undefined if no panel is active.
|
|
460
|
+
*/
|
|
461
|
+
get: function () {
|
|
462
|
+
return this.component.onDidActiveGroupChange;
|
|
463
|
+
},
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: true
|
|
466
|
+
});
|
|
467
|
+
Object.defineProperty(GridviewApi.prototype, "onDidLayoutFromJSON", {
|
|
468
|
+
/**
|
|
469
|
+
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
470
|
+
*/
|
|
471
|
+
get: function () {
|
|
472
|
+
return this.component.onDidLayoutFromJSON;
|
|
473
|
+
},
|
|
474
|
+
enumerable: false,
|
|
475
|
+
configurable: true
|
|
476
|
+
});
|
|
477
|
+
Object.defineProperty(GridviewApi.prototype, "panels", {
|
|
478
|
+
/**
|
|
479
|
+
* All panel objects.
|
|
480
|
+
*/
|
|
481
|
+
get: function () {
|
|
482
|
+
return this.component.groups;
|
|
483
|
+
},
|
|
484
|
+
enumerable: false,
|
|
485
|
+
configurable: true
|
|
486
|
+
});
|
|
487
|
+
Object.defineProperty(GridviewApi.prototype, "orientation", {
|
|
488
|
+
/**
|
|
489
|
+
* Current orientation. Can be changed after initialization.
|
|
490
|
+
*/
|
|
491
|
+
get: function () {
|
|
492
|
+
return this.component.orientation;
|
|
493
|
+
},
|
|
494
|
+
set: function (value) {
|
|
495
|
+
this.component.updateOptions({ orientation: value });
|
|
496
|
+
},
|
|
497
|
+
enumerable: false,
|
|
498
|
+
configurable: true
|
|
499
|
+
});
|
|
500
|
+
/**
|
|
501
|
+
* Focus the component. Will try to focus an active panel if one exists.
|
|
502
|
+
*/
|
|
503
|
+
GridviewApi.prototype.focus = function () {
|
|
504
|
+
this.component.focus();
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
508
|
+
*/
|
|
509
|
+
GridviewApi.prototype.layout = function (width, height, force) {
|
|
510
|
+
if (force === void 0) { force = false; }
|
|
511
|
+
this.component.layout(width, height, force);
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Add a panel and return the created object.
|
|
515
|
+
*/
|
|
516
|
+
GridviewApi.prototype.addPanel = function (options) {
|
|
517
|
+
return this.component.addPanel(options);
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Remove a panel given the panel object.
|
|
521
|
+
*/
|
|
522
|
+
GridviewApi.prototype.removePanel = function (panel, sizing) {
|
|
523
|
+
this.component.removePanel(panel, sizing);
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Move a panel in a particular direction relative to another panel.
|
|
527
|
+
*/
|
|
528
|
+
GridviewApi.prototype.movePanel = function (panel, options) {
|
|
529
|
+
this.component.movePanel(panel, options);
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* Get a panel object given a `string` id. May return `undefined`.
|
|
533
|
+
*/
|
|
534
|
+
GridviewApi.prototype.getPanel = function (id) {
|
|
535
|
+
return this.component.getPanel(id);
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Create a component from a serialized object.
|
|
539
|
+
*/
|
|
540
|
+
GridviewApi.prototype.fromJSON = function (data) {
|
|
541
|
+
return this.component.fromJSON(data);
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Create a serialized object of the current component.
|
|
545
|
+
*/
|
|
546
|
+
GridviewApi.prototype.toJSON = function () {
|
|
547
|
+
return this.component.toJSON();
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Reset the component back to an empty and default state.
|
|
551
|
+
*/
|
|
552
|
+
GridviewApi.prototype.clear = function () {
|
|
553
|
+
this.component.clear();
|
|
554
|
+
};
|
|
555
|
+
return GridviewApi;
|
|
556
|
+
}());
|
|
557
|
+
exports.GridviewApi = GridviewApi;
|
|
558
|
+
var DockviewApi = /** @class */ (function () {
|
|
559
|
+
function DockviewApi(component) {
|
|
560
|
+
this.component = component;
|
|
561
|
+
}
|
|
562
|
+
Object.defineProperty(DockviewApi.prototype, "id", {
|
|
563
|
+
/**
|
|
564
|
+
* The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
|
|
565
|
+
*/
|
|
566
|
+
get: function () {
|
|
567
|
+
return this.component.id;
|
|
568
|
+
},
|
|
569
|
+
enumerable: false,
|
|
570
|
+
configurable: true
|
|
571
|
+
});
|
|
572
|
+
Object.defineProperty(DockviewApi.prototype, "width", {
|
|
573
|
+
/**
|
|
574
|
+
* Width of the component.
|
|
575
|
+
*/
|
|
576
|
+
get: function () {
|
|
577
|
+
return this.component.width;
|
|
578
|
+
},
|
|
579
|
+
enumerable: false,
|
|
580
|
+
configurable: true
|
|
581
|
+
});
|
|
582
|
+
Object.defineProperty(DockviewApi.prototype, "height", {
|
|
583
|
+
/**
|
|
584
|
+
* Height of the component.
|
|
585
|
+
*/
|
|
586
|
+
get: function () {
|
|
587
|
+
return this.component.height;
|
|
588
|
+
},
|
|
589
|
+
enumerable: false,
|
|
590
|
+
configurable: true
|
|
591
|
+
});
|
|
592
|
+
Object.defineProperty(DockviewApi.prototype, "minimumHeight", {
|
|
593
|
+
/**
|
|
594
|
+
* Minimum height of the component.
|
|
595
|
+
*/
|
|
596
|
+
get: function () {
|
|
597
|
+
return this.component.minimumHeight;
|
|
598
|
+
},
|
|
599
|
+
enumerable: false,
|
|
600
|
+
configurable: true
|
|
601
|
+
});
|
|
602
|
+
Object.defineProperty(DockviewApi.prototype, "maximumHeight", {
|
|
603
|
+
/**
|
|
604
|
+
* Maximum height of the component.
|
|
605
|
+
*/
|
|
606
|
+
get: function () {
|
|
607
|
+
return this.component.maximumHeight;
|
|
608
|
+
},
|
|
609
|
+
enumerable: false,
|
|
610
|
+
configurable: true
|
|
611
|
+
});
|
|
612
|
+
Object.defineProperty(DockviewApi.prototype, "minimumWidth", {
|
|
613
|
+
/**
|
|
614
|
+
* Minimum width of the component.
|
|
615
|
+
*/
|
|
616
|
+
get: function () {
|
|
617
|
+
return this.component.minimumWidth;
|
|
618
|
+
},
|
|
619
|
+
enumerable: false,
|
|
620
|
+
configurable: true
|
|
621
|
+
});
|
|
622
|
+
Object.defineProperty(DockviewApi.prototype, "maximumWidth", {
|
|
623
|
+
/**
|
|
624
|
+
* Maximum width of the component.
|
|
625
|
+
*/
|
|
626
|
+
get: function () {
|
|
627
|
+
return this.component.maximumWidth;
|
|
628
|
+
},
|
|
629
|
+
enumerable: false,
|
|
630
|
+
configurable: true
|
|
631
|
+
});
|
|
632
|
+
Object.defineProperty(DockviewApi.prototype, "size", {
|
|
633
|
+
/**
|
|
634
|
+
* Total number of groups.
|
|
635
|
+
*/
|
|
636
|
+
get: function () {
|
|
637
|
+
return this.component.size;
|
|
638
|
+
},
|
|
639
|
+
enumerable: false,
|
|
640
|
+
configurable: true
|
|
641
|
+
});
|
|
642
|
+
Object.defineProperty(DockviewApi.prototype, "totalPanels", {
|
|
643
|
+
/**
|
|
644
|
+
* Total number of panels.
|
|
645
|
+
*/
|
|
646
|
+
get: function () {
|
|
647
|
+
return this.component.totalPanels;
|
|
648
|
+
},
|
|
649
|
+
enumerable: false,
|
|
650
|
+
configurable: true
|
|
651
|
+
});
|
|
652
|
+
Object.defineProperty(DockviewApi.prototype, "onDidActiveGroupChange", {
|
|
653
|
+
/**
|
|
654
|
+
* Invoked when the active group changes. May be undefined if no group is active.
|
|
655
|
+
*/
|
|
656
|
+
get: function () {
|
|
657
|
+
return this.component.onDidActiveGroupChange;
|
|
658
|
+
},
|
|
659
|
+
enumerable: false,
|
|
660
|
+
configurable: true
|
|
661
|
+
});
|
|
662
|
+
Object.defineProperty(DockviewApi.prototype, "onDidAddGroup", {
|
|
663
|
+
/**
|
|
664
|
+
* Invoked when a group is added. May be called multiple times when moving groups.
|
|
665
|
+
*/
|
|
666
|
+
get: function () {
|
|
667
|
+
return this.component.onDidAddGroup;
|
|
668
|
+
},
|
|
669
|
+
enumerable: false,
|
|
670
|
+
configurable: true
|
|
671
|
+
});
|
|
672
|
+
Object.defineProperty(DockviewApi.prototype, "onDidRemoveGroup", {
|
|
673
|
+
/**
|
|
674
|
+
* Invoked when a group is removed. May be called multiple times when moving groups.
|
|
675
|
+
*/
|
|
676
|
+
get: function () {
|
|
677
|
+
return this.component.onDidRemoveGroup;
|
|
678
|
+
},
|
|
679
|
+
enumerable: false,
|
|
680
|
+
configurable: true
|
|
681
|
+
});
|
|
682
|
+
Object.defineProperty(DockviewApi.prototype, "onDidActivePanelChange", {
|
|
683
|
+
/**
|
|
684
|
+
* Invoked when the active panel changes. May be undefined if no panel is active.
|
|
685
|
+
*/
|
|
686
|
+
get: function () {
|
|
687
|
+
return this.component.onDidActivePanelChange;
|
|
688
|
+
},
|
|
689
|
+
enumerable: false,
|
|
690
|
+
configurable: true
|
|
691
|
+
});
|
|
692
|
+
Object.defineProperty(DockviewApi.prototype, "onDidAddPanel", {
|
|
693
|
+
/**
|
|
694
|
+
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
695
|
+
*/
|
|
696
|
+
get: function () {
|
|
697
|
+
return this.component.onDidAddPanel;
|
|
698
|
+
},
|
|
699
|
+
enumerable: false,
|
|
700
|
+
configurable: true
|
|
701
|
+
});
|
|
702
|
+
Object.defineProperty(DockviewApi.prototype, "onDidRemovePanel", {
|
|
703
|
+
/**
|
|
704
|
+
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
705
|
+
*/
|
|
706
|
+
get: function () {
|
|
707
|
+
return this.component.onDidRemovePanel;
|
|
708
|
+
},
|
|
709
|
+
enumerable: false,
|
|
710
|
+
configurable: true
|
|
711
|
+
});
|
|
712
|
+
Object.defineProperty(DockviewApi.prototype, "onDidLayoutFromJSON", {
|
|
713
|
+
/**
|
|
714
|
+
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
715
|
+
*/
|
|
716
|
+
get: function () {
|
|
717
|
+
return this.component.onDidLayoutFromJSON;
|
|
718
|
+
},
|
|
719
|
+
enumerable: false,
|
|
720
|
+
configurable: true
|
|
721
|
+
});
|
|
722
|
+
Object.defineProperty(DockviewApi.prototype, "onDidLayoutChange", {
|
|
723
|
+
/**
|
|
724
|
+
* Invoked when any layout change occures, an aggregation of many events.
|
|
725
|
+
*/
|
|
726
|
+
get: function () {
|
|
727
|
+
return this.component.onDidLayoutChange;
|
|
728
|
+
},
|
|
729
|
+
enumerable: false,
|
|
730
|
+
configurable: true
|
|
731
|
+
});
|
|
732
|
+
Object.defineProperty(DockviewApi.prototype, "onDidDrop", {
|
|
733
|
+
/**
|
|
734
|
+
* Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
|
|
735
|
+
*/
|
|
736
|
+
get: function () {
|
|
737
|
+
return this.component.onDidDrop;
|
|
738
|
+
},
|
|
739
|
+
enumerable: false,
|
|
740
|
+
configurable: true
|
|
741
|
+
});
|
|
742
|
+
Object.defineProperty(DockviewApi.prototype, "onWillDragGroup", {
|
|
743
|
+
/**
|
|
744
|
+
* Invoked before a group is dragged. Exposed for custom Drag'n'Drop functionality.
|
|
745
|
+
*/
|
|
746
|
+
get: function () {
|
|
747
|
+
return this.component.onWillDragGroup;
|
|
748
|
+
},
|
|
749
|
+
enumerable: false,
|
|
750
|
+
configurable: true
|
|
751
|
+
});
|
|
752
|
+
Object.defineProperty(DockviewApi.prototype, "onWillDragPanel", {
|
|
753
|
+
/**
|
|
754
|
+
* Invoked before a panel is dragged. Exposed for custom Drag'n'Drop functionality.
|
|
755
|
+
*/
|
|
756
|
+
get: function () {
|
|
757
|
+
return this.component.onWillDragPanel;
|
|
758
|
+
},
|
|
759
|
+
enumerable: false,
|
|
760
|
+
configurable: true
|
|
761
|
+
});
|
|
762
|
+
Object.defineProperty(DockviewApi.prototype, "panels", {
|
|
763
|
+
/**
|
|
764
|
+
* All panel objects.
|
|
765
|
+
*/
|
|
766
|
+
get: function () {
|
|
767
|
+
return this.component.panels;
|
|
768
|
+
},
|
|
769
|
+
enumerable: false,
|
|
770
|
+
configurable: true
|
|
771
|
+
});
|
|
772
|
+
Object.defineProperty(DockviewApi.prototype, "groups", {
|
|
773
|
+
/**
|
|
774
|
+
* All group objects.
|
|
775
|
+
*/
|
|
776
|
+
get: function () {
|
|
777
|
+
return this.component.groups;
|
|
778
|
+
},
|
|
779
|
+
enumerable: false,
|
|
780
|
+
configurable: true
|
|
781
|
+
});
|
|
782
|
+
Object.defineProperty(DockviewApi.prototype, "activePanel", {
|
|
783
|
+
/**
|
|
784
|
+
* Active panel object.
|
|
785
|
+
*/
|
|
786
|
+
get: function () {
|
|
787
|
+
return this.component.activePanel;
|
|
788
|
+
},
|
|
789
|
+
enumerable: false,
|
|
790
|
+
configurable: true
|
|
791
|
+
});
|
|
792
|
+
Object.defineProperty(DockviewApi.prototype, "activeGroup", {
|
|
793
|
+
/**
|
|
794
|
+
* Active group object.
|
|
795
|
+
*/
|
|
796
|
+
get: function () {
|
|
797
|
+
return this.component.activeGroup;
|
|
798
|
+
},
|
|
799
|
+
enumerable: false,
|
|
800
|
+
configurable: true
|
|
801
|
+
});
|
|
802
|
+
/**
|
|
803
|
+
* Focus the component. Will try to focus an active panel if one exists.
|
|
804
|
+
*/
|
|
805
|
+
DockviewApi.prototype.focus = function () {
|
|
806
|
+
this.component.focus();
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Get a panel object given a `string` id. May return `undefined`.
|
|
810
|
+
*/
|
|
811
|
+
DockviewApi.prototype.getPanel = function (id) {
|
|
812
|
+
return this.component.getGroupPanel(id);
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
816
|
+
*/
|
|
817
|
+
DockviewApi.prototype.layout = function (width, height, force) {
|
|
818
|
+
if (force === void 0) { force = false; }
|
|
819
|
+
this.component.layout(width, height, force);
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Add a panel and return the created object.
|
|
823
|
+
*/
|
|
824
|
+
DockviewApi.prototype.addPanel = function (options) {
|
|
825
|
+
return this.component.addPanel(options);
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* Remove a panel given the panel object.
|
|
829
|
+
*/
|
|
830
|
+
DockviewApi.prototype.removePanel = function (panel) {
|
|
831
|
+
this.component.removePanel(panel);
|
|
832
|
+
};
|
|
833
|
+
/**
|
|
834
|
+
* Add a group and return the created object.
|
|
835
|
+
*/
|
|
836
|
+
DockviewApi.prototype.addGroup = function (options) {
|
|
837
|
+
return this.component.addGroup(options);
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Close all groups and panels.
|
|
841
|
+
*/
|
|
842
|
+
DockviewApi.prototype.closeAllGroups = function () {
|
|
843
|
+
return this.component.closeAllGroups();
|
|
844
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* Remove a group and any panels within the group.
|
|
847
|
+
*/
|
|
848
|
+
DockviewApi.prototype.removeGroup = function (group) {
|
|
849
|
+
this.component.removeGroup(group);
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Get a group object given a `string` id. May return undefined.
|
|
853
|
+
*/
|
|
854
|
+
DockviewApi.prototype.getGroup = function (id) {
|
|
855
|
+
return this.component.getPanel(id);
|
|
856
|
+
};
|
|
857
|
+
/**
|
|
858
|
+
* Add a floating group
|
|
859
|
+
*/
|
|
860
|
+
DockviewApi.prototype.addFloatingGroup = function (item, coord) {
|
|
861
|
+
return this.component.addFloatingGroup(item, coord);
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* Create a component from a serialized object.
|
|
865
|
+
*/
|
|
866
|
+
DockviewApi.prototype.fromJSON = function (data) {
|
|
867
|
+
this.component.fromJSON(data);
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* Create a serialized object of the current component.
|
|
871
|
+
*/
|
|
872
|
+
DockviewApi.prototype.toJSON = function () {
|
|
873
|
+
return this.component.toJSON();
|
|
874
|
+
};
|
|
875
|
+
/**
|
|
876
|
+
* Reset the component back to an empty and default state.
|
|
877
|
+
*/
|
|
878
|
+
DockviewApi.prototype.clear = function () {
|
|
879
|
+
this.component.clear();
|
|
880
|
+
};
|
|
881
|
+
/**
|
|
882
|
+
* Move the focus progmatically to the next panel or group.
|
|
883
|
+
*/
|
|
884
|
+
DockviewApi.prototype.moveToNext = function (options) {
|
|
885
|
+
this.component.moveToNext(options);
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Move the focus progmatically to the previous panel or group.
|
|
889
|
+
*/
|
|
890
|
+
DockviewApi.prototype.moveToPrevious = function (options) {
|
|
891
|
+
this.component.moveToPrevious(options);
|
|
892
|
+
};
|
|
893
|
+
return DockviewApi;
|
|
894
|
+
}());
|
|
895
|
+
exports.DockviewApi = DockviewApi;
|
|
593
896
|
//# sourceMappingURL=component.api.js.map
|