dockview-core 7.0.4 → 8.1.0
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/LICENCE.md +21 -0
- package/README.md +17 -86
- package/dist/cjs/api/component.api.d.ts +100 -9
- package/dist/cjs/api/dockviewGroupPanelApi.d.ts +45 -1
- package/dist/cjs/api/dockviewPanelApi.d.ts +21 -0
- package/dist/cjs/dismissableLayer.d.ts +57 -0
- package/dist/cjs/dnd/backend.d.ts +2 -2
- package/dist/cjs/dnd/dataTransfer.d.ts +1 -0
- package/dist/cjs/dnd/dropTargetAnchorContainer.d.ts +12 -0
- package/dist/cjs/dnd/droptarget.d.ts +94 -0
- package/dist/cjs/dnd/ghost.d.ts +1 -0
- package/dist/cjs/dnd/pointer/longPress.d.ts +2 -2
- package/dist/cjs/dnd/pointer/pointerDragController.d.ts +5 -2
- package/dist/cjs/dnd/pointer/pointerDragSource.d.ts +1 -1
- package/dist/cjs/dnd/pointer/pointerDropTarget.d.ts +30 -1
- package/dist/cjs/dnd/pointer/pointerGhost.d.ts +1 -1
- package/dist/cjs/dockview/accessibilityMessages.d.ts +6 -0
- package/dist/cjs/dockview/advancedDnDService.d.ts +31 -0
- package/dist/cjs/dockview/components/panel/content.d.ts +1 -1
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +2 -0
- package/dist/cjs/dockview/components/tab/tab.d.ts +2 -0
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.d.ts +2 -2
- package/dist/cjs/dockview/components/titlebar/groupDragSource.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabGroupChip.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.d.ts +73 -2
- package/dist/cjs/dockview/components/titlebar/tabGroups.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabReorderController.d.ts +295 -0
- package/dist/cjs/dockview/components/titlebar/tabs.d.ts +120 -50
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +48 -0
- package/dist/cjs/dockview/dndCapabilities.d.ts +1 -1
- package/dist/cjs/dockview/dockviewComponent.d.ts +307 -19
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +5 -0
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +76 -2
- package/dist/cjs/dockview/dockviewPanel.d.ts +12 -0
- package/dist/cjs/dockview/dockviewShell.d.ts +48 -24
- package/dist/cjs/dockview/edgeGroupService.d.ts +20 -0
- package/dist/cjs/dockview/events.d.ts +6 -0
- package/dist/cjs/dockview/liveRegionService.d.ts +18 -5
- package/dist/cjs/dockview/moduleContracts.d.ts +485 -14
- package/dist/cjs/dockview/modules.d.ts +101 -22
- package/dist/cjs/dockview/options.d.ts +336 -30
- package/dist/cjs/dockview/optionsModules.d.ts +73 -0
- package/dist/cjs/dockview/popoutWindowService.d.ts +15 -10
- package/dist/cjs/dockview/rootDropTargetService.d.ts +11 -0
- package/dist/cjs/dockview/tabGroup.d.ts +3 -0
- package/dist/cjs/dockview/tabGroupAccent.d.ts +1 -1
- package/dist/cjs/dockview/tabGroupChipsService.d.ts +10 -0
- package/dist/cjs/dockview/theme.d.ts +2 -2
- package/dist/cjs/dockview/types.d.ts +3 -0
- package/dist/cjs/dom.d.ts +9 -1
- package/dist/cjs/events.d.ts +1 -1
- package/dist/cjs/gridview/baseComponentGridview.d.ts +2 -2
- package/dist/cjs/gridview/branchNode.d.ts +16 -0
- package/dist/cjs/gridview/gridview.d.ts +2 -0
- package/dist/cjs/index.d.ts +35 -29
- package/dist/cjs/lifecycle.d.ts +1 -0
- package/dist/cjs/overlay/overlay.d.ts +4 -2
- package/dist/cjs/overlay/overlayRenderContainer.d.ts +8 -0
- package/dist/cjs/paneview/paneview.d.ts +2 -1
- package/dist/cjs/paneview/paneviewComponent.d.ts +3 -0
- package/dist/cjs/paneview/paneviewPanel.d.ts +5 -0
- package/dist/cjs/scrollbar.d.ts +10 -0
- package/dist/cjs/splitview/viewItem.d.ts +10 -0
- package/dist/cjs/svg.d.ts +1 -0
- package/dist/cjs/types.d.ts +8 -0
- package/dist/dockview-core.js +18513 -19679
- package/dist/dockview-core.min.js +4138 -6
- package/dist/dockview-core.min.noStyle.js +6 -7
- package/dist/dockview-core.noStyle.js +18512 -19656
- package/dist/package/main.cjs.js +18123 -19267
- package/dist/package/main.cjs.min.js +6 -6
- package/dist/package/main.esm.min.mjs +6 -6
- package/dist/package/main.esm.mjs +18081 -19260
- package/package.json +81 -77
- package/dist/cjs/api/component.api.js +0 -1242
- package/dist/cjs/api/dockviewGroupPanelApi.js +0 -200
- package/dist/cjs/api/dockviewPanelApi.js +0 -172
- package/dist/cjs/api/entryPoints.js +0 -27
- package/dist/cjs/api/gridviewPanelApi.js +0 -45
- package/dist/cjs/api/panelApi.js +0 -133
- package/dist/cjs/api/paneviewPanelApi.js +0 -57
- package/dist/cjs/api/splitviewPanelApi.js +0 -47
- package/dist/cjs/array.js +0 -66
- package/dist/cjs/constants.js +0 -11
- package/dist/cjs/dnd/backend.js +0 -171
- package/dist/cjs/dnd/dataTransfer.js +0 -100
- package/dist/cjs/dnd/dnd.js +0 -74
- package/dist/cjs/dnd/dropOverlay.js +0 -197
- package/dist/cjs/dnd/dropTargetAnchorContainer.js +0 -104
- package/dist/cjs/dnd/droptarget.js +0 -362
- package/dist/cjs/dnd/ghost.js +0 -17
- package/dist/cjs/dnd/pointer/index.js +0 -13
- package/dist/cjs/dnd/pointer/longPress.js +0 -151
- package/dist/cjs/dnd/pointer/pointerDragController.js +0 -243
- package/dist/cjs/dnd/pointer/pointerDragSource.js +0 -197
- package/dist/cjs/dnd/pointer/pointerDropTarget.js +0 -198
- package/dist/cjs/dnd/pointer/pointerGhost.js +0 -44
- package/dist/cjs/dnd/pointer/types.js +0 -2
- package/dist/cjs/dockview/accessibilityMessages.js +0 -51
- package/dist/cjs/dockview/allModules.js +0 -25
- package/dist/cjs/dockview/components/panel/content.js +0 -213
- package/dist/cjs/dockview/components/popupService.js +0 -132
- package/dist/cjs/dockview/components/tab/defaultTab.js +0 -70
- package/dist/cjs/dockview/components/tab/tab.js +0 -281
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.js +0 -95
- package/dist/cjs/dockview/components/titlebar/groupDragSource.js +0 -218
- package/dist/cjs/dockview/components/titlebar/tabGroupChip.js +0 -104
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.js +0 -477
- package/dist/cjs/dockview/components/titlebar/tabGroups.js +0 -854
- package/dist/cjs/dockview/components/titlebar/tabOverflowControl.js +0 -19
- package/dist/cjs/dockview/components/titlebar/tabs.js +0 -2016
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +0 -458
- package/dist/cjs/dockview/components/titlebar/voidContainer.js +0 -120
- package/dist/cjs/dockview/components/watermark/watermark.js +0 -40
- package/dist/cjs/dockview/deserializer.js +0 -39
- package/dist/cjs/dockview/dndCapabilities.js +0 -39
- package/dist/cjs/dockview/dockviewComponent.js +0 -3896
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +0 -70
- package/dist/cjs/dockview/dockviewGroupPanel.js +0 -204
- package/dist/cjs/dockview/dockviewGroupPanelModel.js +0 -1514
- package/dist/cjs/dockview/dockviewPanel.js +0 -265
- package/dist/cjs/dockview/dockviewPanelModel.js +0 -105
- package/dist/cjs/dockview/dockviewShell.js +0 -744
- package/dist/cjs/dockview/edgeGroupService.js +0 -128
- package/dist/cjs/dockview/events.js +0 -67
- package/dist/cjs/dockview/floatingGroupService.js +0 -231
- package/dist/cjs/dockview/framework.js +0 -2
- package/dist/cjs/dockview/headerActionsService.js +0 -149
- package/dist/cjs/dockview/liveRegionService.js +0 -185
- package/dist/cjs/dockview/moduleContracts.js +0 -2
- package/dist/cjs/dockview/modules.js +0 -304
- package/dist/cjs/dockview/options.js +0 -103
- package/dist/cjs/dockview/popoutWindowService.js +0 -261
- package/dist/cjs/dockview/rootDropTargetService.js +0 -87
- package/dist/cjs/dockview/strictEventsSequencing.js +0 -63
- package/dist/cjs/dockview/tabGroup.js +0 -219
- package/dist/cjs/dockview/tabGroupAccent.js +0 -126
- package/dist/cjs/dockview/theme.js +0 -139
- package/dist/cjs/dockview/types.js +0 -2
- package/dist/cjs/dockview/validate.js +0 -76
- package/dist/cjs/dockview/watermarkService.js +0 -61
- package/dist/cjs/dom.js +0 -543
- package/dist/cjs/events.js +0 -296
- package/dist/cjs/framwork.js +0 -2
- package/dist/cjs/gridview/baseComponentGridview.js +0 -330
- package/dist/cjs/gridview/basePanelView.js +0 -162
- package/dist/cjs/gridview/branchNode.js +0 -372
- package/dist/cjs/gridview/gridview.js +0 -776
- package/dist/cjs/gridview/gridviewComponent.js +0 -363
- package/dist/cjs/gridview/gridviewPanel.js +0 -249
- package/dist/cjs/gridview/leafNode.js +0 -169
- package/dist/cjs/gridview/options.js +0 -17
- package/dist/cjs/gridview/types.js +0 -2
- package/dist/cjs/index.js +0 -105
- package/dist/cjs/lifecycle.js +0 -80
- package/dist/cjs/math.js +0 -38
- package/dist/cjs/overlay/overlay.js +0 -602
- package/dist/cjs/overlay/overlayRenderContainer.js +0 -309
- package/dist/cjs/panel/types.js +0 -2
- package/dist/cjs/paneview/defaultPaneviewHeader.js +0 -92
- package/dist/cjs/paneview/draggablePaneviewPanel.js +0 -141
- package/dist/cjs/paneview/options.js +0 -44
- package/dist/cjs/paneview/paneview.js +0 -203
- package/dist/cjs/paneview/paneviewComponent.js +0 -430
- package/dist/cjs/paneview/paneviewPanel.js +0 -275
- package/dist/cjs/popoutWindow.js +0 -244
- package/dist/cjs/resizable.js +0 -97
- package/dist/cjs/scrollbar.js +0 -169
- package/dist/cjs/splitview/options.js +0 -19
- package/dist/cjs/splitview/splitview.js +0 -999
- package/dist/cjs/splitview/splitviewComponent.js +0 -401
- package/dist/cjs/splitview/splitviewPanel.js +0 -179
- package/dist/cjs/splitview/viewItem.js +0 -119
- package/dist/cjs/svg.js +0 -43
- package/dist/cjs/types.js +0 -2
- package/dist/dockview-core.min.js.map +0 -1
- package/dist/dockview-core.min.noStyle.js.map +0 -1
- package/dist/esm/api/component.api.d.ts +0 -640
- package/dist/esm/api/component.api.js +0 -887
- package/dist/esm/api/dockviewGroupPanelApi.d.ts +0 -109
- package/dist/esm/api/dockviewGroupPanelApi.js +0 -155
- package/dist/esm/api/dockviewPanelApi.d.ts +0 -84
- package/dist/esm/api/dockviewPanelApi.js +0 -124
- package/dist/esm/api/entryPoints.d.ts +0 -9
- package/dist/esm/api/entryPoints.js +0 -21
- package/dist/esm/api/gridviewPanelApi.d.ts +0 -37
- package/dist/esm/api/gridviewPanelApi.js +0 -23
- package/dist/esm/api/panelApi.d.ts +0 -100
- package/dist/esm/api/panelApi.js +0 -87
- package/dist/esm/api/paneviewPanelApi.d.ts +0 -26
- package/dist/esm/api/paneviewPanelApi.js +0 -27
- package/dist/esm/api/splitviewPanelApi.d.ts +0 -32
- package/dist/esm/api/splitviewPanelApi.js +0 -25
- package/dist/esm/array.d.ts +0 -13
- package/dist/esm/array.js +0 -57
- package/dist/esm/constants.d.ts +0 -8
- package/dist/esm/constants.js +0 -8
- package/dist/esm/dnd/backend.d.ts +0 -70
- package/dist/esm/dnd/backend.js +0 -148
- package/dist/esm/dnd/dataTransfer.d.ts +0 -31
- package/dist/esm/dnd/dataTransfer.js +0 -67
- package/dist/esm/dnd/dnd.d.ts +0 -32
- package/dist/esm/dnd/dnd.js +0 -51
- package/dist/esm/dnd/dropOverlay.d.ts +0 -20
- package/dist/esm/dnd/dropOverlay.js +0 -192
- package/dist/esm/dnd/dropTargetAnchorContainer.d.ts +0 -16
- package/dist/esm/dnd/dropTargetAnchorContainer.js +0 -73
- package/dist/esm/dnd/droptarget.d.ts +0 -116
- package/dist/esm/dnd/droptarget.js +0 -316
- package/dist/esm/dnd/ghost.d.ts +0 -4
- package/dist/esm/dnd/ghost.js +0 -14
- package/dist/esm/dnd/pointer/index.d.ts +0 -11
- package/dist/esm/dnd/pointer/index.js +0 -5
- package/dist/esm/dnd/pointer/longPress.d.ts +0 -32
- package/dist/esm/dnd/pointer/longPress.js +0 -127
- package/dist/esm/dnd/pointer/pointerDragController.d.ts +0 -60
- package/dist/esm/dnd/pointer/pointerDragController.js +0 -193
- package/dist/esm/dnd/pointer/pointerDragSource.d.ts +0 -61
- package/dist/esm/dnd/pointer/pointerDragSource.js +0 -173
- package/dist/esm/dnd/pointer/pointerDropTarget.d.ts +0 -39
- package/dist/esm/dnd/pointer/pointerDropTarget.js +0 -168
- package/dist/esm/dnd/pointer/pointerGhost.d.ts +0 -30
- package/dist/esm/dnd/pointer/pointerGhost.js +0 -39
- package/dist/esm/dnd/pointer/types.d.ts +0 -16
- package/dist/esm/dnd/pointer/types.js +0 -1
- package/dist/esm/dockview/accessibilityMessages.d.ts +0 -32
- package/dist/esm/dockview/accessibilityMessages.js +0 -30
- package/dist/esm/dockview/allModules.d.ts +0 -8
- package/dist/esm/dockview/allModules.js +0 -22
- package/dist/esm/dockview/components/panel/content.d.ts +0 -54
- package/dist/esm/dockview/components/panel/content.js +0 -185
- package/dist/esm/dockview/components/popupService.d.ts +0 -21
- package/dist/esm/dockview/components/popupService.js +0 -108
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +0 -12
- package/dist/esm/dockview/components/tab/defaultTab.js +0 -43
- package/dist/esm/dockview/components/tab/tab.d.ts +0 -44
- package/dist/esm/dockview/components/tab/tab.js +0 -242
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.d.ts +0 -34
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.js +0 -65
- package/dist/esm/dockview/components/titlebar/groupDragSource.d.ts +0 -51
- package/dist/esm/dockview/components/titlebar/groupDragSource.js +0 -178
- package/dist/esm/dockview/components/titlebar/tabGroupChip.d.ts +0 -37
- package/dist/esm/dockview/components/titlebar/tabGroupChip.js +0 -77
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.d.ts +0 -72
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.js +0 -360
- package/dist/esm/dockview/components/titlebar/tabGroups.d.ts +0 -107
- package/dist/esm/dockview/components/titlebar/tabGroups.js +0 -621
- package/dist/esm/dockview/components/titlebar/tabOverflowControl.d.ts +0 -8
- package/dist/esm/dockview/components/titlebar/tabOverflowControl.js +0 -16
- package/dist/esm/dockview/components/titlebar/tabs.d.ts +0 -167
- package/dist/esm/dockview/components/titlebar/tabs.js +0 -1653
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +0 -104
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +0 -359
- package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +0 -21
- package/dist/esm/dockview/components/titlebar/voidContainer.js +0 -92
- package/dist/esm/dockview/components/watermark/watermark.d.ts +0 -8
- package/dist/esm/dockview/components/watermark/watermark.js +0 -14
- package/dist/esm/dockview/deserializer.d.ts +0 -12
- package/dist/esm/dockview/deserializer.js +0 -34
- package/dist/esm/dockview/dndCapabilities.d.ts +0 -19
- package/dist/esm/dockview/dndCapabilities.js +0 -36
- package/dist/esm/dockview/dockviewComponent.d.ts +0 -626
- package/dist/esm/dockview/dockviewComponent.js +0 -3214
- package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +0 -45
- package/dist/esm/dockview/dockviewFloatingGroupPanel.js +0 -44
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +0 -35
- package/dist/esm/dockview/dockviewGroupPanel.js +0 -142
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +0 -358
- package/dist/esm/dockview/dockviewGroupPanelModel.js +0 -1180
- package/dist/esm/dockview/dockviewPanel.d.ts +0 -69
- package/dist/esm/dockview/dockviewPanel.js +0 -178
- package/dist/esm/dockview/dockviewPanelModel.d.ts +0 -37
- package/dist/esm/dockview/dockviewPanelModel.js +0 -81
- package/dist/esm/dockview/dockviewShell.d.ts +0 -150
- package/dist/esm/dockview/dockviewShell.js +0 -678
- package/dist/esm/dockview/edgeGroupService.d.ts +0 -38
- package/dist/esm/dockview/edgeGroupService.js +0 -63
- package/dist/esm/dockview/events.d.ts +0 -38
- package/dist/esm/dockview/events.js +0 -34
- package/dist/esm/dockview/floatingGroupService.d.ts +0 -37
- package/dist/esm/dockview/floatingGroupService.js +0 -150
- package/dist/esm/dockview/framework.d.ts +0 -65
- package/dist/esm/dockview/framework.js +0 -1
- package/dist/esm/dockview/headerActionsService.d.ts +0 -32
- package/dist/esm/dockview/headerActionsService.js +0 -86
- package/dist/esm/dockview/liveRegionService.d.ts +0 -53
- package/dist/esm/dockview/liveRegionService.js +0 -159
- package/dist/esm/dockview/moduleContracts.d.ts +0 -119
- package/dist/esm/dockview/moduleContracts.js +0 -1
- package/dist/esm/dockview/modules.d.ts +0 -110
- package/dist/esm/dockview/modules.js +0 -170
- package/dist/esm/dockview/options.d.ts +0 -474
- package/dist/esm/dockview/options.js +0 -77
- package/dist/esm/dockview/popoutWindowService.d.ts +0 -95
- package/dist/esm/dockview/popoutWindowService.js +0 -175
- package/dist/esm/dockview/rootDropTargetService.d.ts +0 -35
- package/dist/esm/dockview/rootDropTargetService.js +0 -82
- package/dist/esm/dockview/strictEventsSequencing.d.ts +0 -7
- package/dist/esm/dockview/strictEventsSequencing.js +0 -41
- package/dist/esm/dockview/tabGroup.d.ts +0 -99
- package/dist/esm/dockview/tabGroup.js +0 -144
- package/dist/esm/dockview/tabGroupAccent.d.ts +0 -65
- package/dist/esm/dockview/tabGroupAccent.js +0 -114
- package/dist/esm/dockview/theme.d.ts +0 -86
- package/dist/esm/dockview/theme.js +0 -136
- package/dist/esm/dockview/types.d.ts +0 -53
- package/dist/esm/dockview/types.js +0 -1
- package/dist/esm/dockview/validate.d.ts +0 -0
- package/dist/esm/dockview/validate.js +0 -76
- package/dist/esm/dockview/watermarkService.d.ts +0 -30
- package/dist/esm/dockview/watermarkService.js +0 -56
- package/dist/esm/dom.d.ts +0 -60
- package/dist/esm/dom.js +0 -375
- package/dist/esm/events.d.ts +0 -79
- package/dist/esm/events.js +0 -219
- package/dist/esm/framwork.d.ts +0 -4
- package/dist/esm/framwork.js +0 -1
- package/dist/esm/gridview/baseComponentGridview.d.ts +0 -111
- package/dist/esm/gridview/baseComponentGridview.js +0 -237
- package/dist/esm/gridview/basePanelView.d.ts +0 -40
- package/dist/esm/gridview/basePanelView.js +0 -91
- package/dist/esm/gridview/branchNode.d.ts +0 -57
- package/dist/esm/gridview/branchNode.js +0 -257
- package/dist/esm/gridview/gridview.d.ts +0 -158
- package/dist/esm/gridview/gridview.js +0 -681
- package/dist/esm/gridview/gridviewComponent.d.ts +0 -88
- package/dist/esm/gridview/gridviewComponent.js +0 -265
- package/dist/esm/gridview/gridviewPanel.d.ts +0 -77
- package/dist/esm/gridview/gridviewPanel.js +0 -182
- package/dist/esm/gridview/leafNode.d.ts +0 -34
- package/dist/esm/gridview/leafNode.js +0 -102
- package/dist/esm/gridview/options.d.ts +0 -15
- package/dist/esm/gridview/options.js +0 -14
- package/dist/esm/gridview/types.d.ts +0 -3
- package/dist/esm/gridview/types.js +0 -1
- package/dist/esm/index.d.ts +0 -58
- package/dist/esm/index.js +0 -44
- package/dist/esm/lifecycle.d.ts +0 -25
- package/dist/esm/lifecycle.js +0 -56
- package/dist/esm/math.d.ts +0 -5
- package/dist/esm/math.js +0 -32
- package/dist/esm/overlay/overlay.d.ts +0 -91
- package/dist/esm/overlay/overlay.js +0 -520
- package/dist/esm/overlay/overlayRenderContainer.d.ts +0 -24
- package/dist/esm/overlay/overlayRenderContainer.js +0 -249
- package/dist/esm/panel/types.d.ts +0 -33
- package/dist/esm/panel/types.js +0 -1
- package/dist/esm/paneview/defaultPaneviewHeader.d.ts +0 -21
- package/dist/esm/paneview/defaultPaneviewHeader.js +0 -65
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +0 -38
- package/dist/esm/paneview/draggablePaneviewPanel.js +0 -107
- package/dist/esm/paneview/options.d.ts +0 -30
- package/dist/esm/paneview/options.js +0 -22
- package/dist/esm/paneview/paneview.d.ts +0 -41
- package/dist/esm/paneview/paneview.js +0 -148
- package/dist/esm/paneview/paneviewComponent.d.ts +0 -133
- package/dist/esm/paneview/paneviewComponent.js +0 -306
- package/dist/esm/paneview/paneviewPanel.d.ts +0 -98
- package/dist/esm/paneview/paneviewPanel.js +0 -192
- package/dist/esm/popoutWindow.d.ts +0 -38
- package/dist/esm/popoutWindow.js +0 -170
- package/dist/esm/resizable.d.ts +0 -12
- package/dist/esm/resizable.js +0 -66
- package/dist/esm/scrollbar.d.ts +0 -15
- package/dist/esm/scrollbar.js +0 -139
- package/dist/esm/splitview/options.d.ts +0 -21
- package/dist/esm/splitview/options.js +0 -16
- package/dist/esm/splitview/splitview.d.ts +0 -145
- package/dist/esm/splitview/splitview.js +0 -770
- package/dist/esm/splitview/splitviewComponent.d.ts +0 -101
- package/dist/esm/splitview/splitviewComponent.js +0 -267
- package/dist/esm/splitview/splitviewPanel.d.ts +0 -45
- package/dist/esm/splitview/splitviewPanel.js +0 -108
- package/dist/esm/splitview/viewItem.d.ts +0 -25
- package/dist/esm/splitview/viewItem.js +0 -74
- package/dist/esm/svg.d.ts +0 -3
- package/dist/esm/svg.js +0 -31
- package/dist/esm/types.d.ts +0 -31
- package/dist/esm/types.js +0 -1
- package/dist/styles/dockview.css +0 -3436
|
@@ -1,887 +0,0 @@
|
|
|
1
|
-
export class SplitviewApi {
|
|
2
|
-
/**
|
|
3
|
-
* The minimum size the component can reach where size is measured in the direction of orientation provided.
|
|
4
|
-
*/
|
|
5
|
-
get minimumSize() {
|
|
6
|
-
return this.component.minimumSize;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The maximum size the component can reach where size is measured in the direction of orientation provided.
|
|
10
|
-
*/
|
|
11
|
-
get maximumSize() {
|
|
12
|
-
return this.component.maximumSize;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Width of the component.
|
|
16
|
-
*/
|
|
17
|
-
get width() {
|
|
18
|
-
return this.component.width;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Height of the component.
|
|
22
|
-
*/
|
|
23
|
-
get height() {
|
|
24
|
-
return this.component.height;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The current number of panels.
|
|
28
|
-
*/
|
|
29
|
-
get length() {
|
|
30
|
-
return this.component.length;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* The current orientation of the component.
|
|
34
|
-
*/
|
|
35
|
-
get orientation() {
|
|
36
|
-
return this.component.orientation;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The list of current panels.
|
|
40
|
-
*/
|
|
41
|
-
get panels() {
|
|
42
|
-
return this.component.panels;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Invoked after a layout is loaded through the `fromJSON` method.
|
|
46
|
-
*/
|
|
47
|
-
get onDidLayoutFromJSON() {
|
|
48
|
-
return this.component.onDidLayoutFromJSON;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Invoked whenever any aspect of the layout changes.
|
|
52
|
-
* If listening to this event it may be worth debouncing ouputs.
|
|
53
|
-
*/
|
|
54
|
-
get onDidLayoutChange() {
|
|
55
|
-
return this.component.onDidLayoutChange;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Invoked when a view is added.
|
|
59
|
-
*/
|
|
60
|
-
get onDidAddView() {
|
|
61
|
-
return this.component.onDidAddView;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Invoked when a view is removed.
|
|
65
|
-
*/
|
|
66
|
-
get onDidRemoveView() {
|
|
67
|
-
return this.component.onDidRemoveView;
|
|
68
|
-
}
|
|
69
|
-
constructor(component) {
|
|
70
|
-
this.component = component;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Removes an existing panel and optionally provide a `Sizing` method
|
|
74
|
-
* for the subsequent resize.
|
|
75
|
-
*/
|
|
76
|
-
removePanel(panel, sizing) {
|
|
77
|
-
this.component.removePanel(panel, sizing);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Focus the component.
|
|
81
|
-
*/
|
|
82
|
-
focus() {
|
|
83
|
-
this.component.focus();
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Get the reference to a panel given it's `string` id.
|
|
87
|
-
*/
|
|
88
|
-
getPanel(id) {
|
|
89
|
-
return this.component.getPanel(id);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Layout the panel with a width and height.
|
|
93
|
-
*/
|
|
94
|
-
layout(width, height) {
|
|
95
|
-
return this.component.layout(width, height);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Add a new panel and return the created instance.
|
|
99
|
-
*/
|
|
100
|
-
addPanel(options) {
|
|
101
|
-
return this.component.addPanel(options);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Move a panel given it's current and desired index.
|
|
105
|
-
*/
|
|
106
|
-
movePanel(from, to) {
|
|
107
|
-
this.component.movePanel(from, to);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Deserialize a layout to built a splitivew.
|
|
111
|
-
*/
|
|
112
|
-
fromJSON(data) {
|
|
113
|
-
this.component.fromJSON(data);
|
|
114
|
-
}
|
|
115
|
-
/** Serialize a layout */
|
|
116
|
-
toJSON() {
|
|
117
|
-
return this.component.toJSON();
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Remove all panels and clear the component.
|
|
121
|
-
*/
|
|
122
|
-
clear() {
|
|
123
|
-
this.component.clear();
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Update configuratable options.
|
|
127
|
-
*/
|
|
128
|
-
updateOptions(options) {
|
|
129
|
-
this.component.updateOptions(options);
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Release resources and teardown component. Do not call when using framework versions of dockview.
|
|
133
|
-
*/
|
|
134
|
-
dispose() {
|
|
135
|
-
this.component.dispose();
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
export class PaneviewApi {
|
|
139
|
-
/**
|
|
140
|
-
* The minimum size the component can reach where size is measured in the direction of orientation provided.
|
|
141
|
-
*/
|
|
142
|
-
get minimumSize() {
|
|
143
|
-
return this.component.minimumSize;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The maximum size the component can reach where size is measured in the direction of orientation provided.
|
|
147
|
-
*/
|
|
148
|
-
get maximumSize() {
|
|
149
|
-
return this.component.maximumSize;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Width of the component.
|
|
153
|
-
*/
|
|
154
|
-
get width() {
|
|
155
|
-
return this.component.width;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Height of the component.
|
|
159
|
-
*/
|
|
160
|
-
get height() {
|
|
161
|
-
return this.component.height;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* All panel objects.
|
|
165
|
-
*/
|
|
166
|
-
get panels() {
|
|
167
|
-
return this.component.panels;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Invoked when any layout change occures, an aggregation of many events.
|
|
171
|
-
*/
|
|
172
|
-
get onDidLayoutChange() {
|
|
173
|
-
return this.component.onDidLayoutChange;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
177
|
-
*/
|
|
178
|
-
get onDidLayoutFromJSON() {
|
|
179
|
-
return this.component.onDidLayoutFromJSON;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
183
|
-
*/
|
|
184
|
-
get onDidAddView() {
|
|
185
|
-
return this.component.onDidAddView;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
189
|
-
*/
|
|
190
|
-
get onDidRemoveView() {
|
|
191
|
-
return this.component.onDidRemoveView;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
|
|
195
|
-
*/
|
|
196
|
-
get onDidDrop() {
|
|
197
|
-
return this.component.onDidDrop;
|
|
198
|
-
}
|
|
199
|
-
get onUnhandledDragOver() {
|
|
200
|
-
return this.component.onUnhandledDragOver;
|
|
201
|
-
}
|
|
202
|
-
constructor(component) {
|
|
203
|
-
this.component = component;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Remove a panel given the panel object.
|
|
207
|
-
*/
|
|
208
|
-
removePanel(panel) {
|
|
209
|
-
this.component.removePanel(panel);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Get a panel object given a `string` id. May return `undefined`.
|
|
213
|
-
*/
|
|
214
|
-
getPanel(id) {
|
|
215
|
-
return this.component.getPanel(id);
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Move a panel given it's current and desired index.
|
|
219
|
-
*/
|
|
220
|
-
movePanel(from, to) {
|
|
221
|
-
this.component.movePanel(from, to);
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Focus the component. Will try to focus an active panel if one exists.
|
|
225
|
-
*/
|
|
226
|
-
focus() {
|
|
227
|
-
this.component.focus();
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
231
|
-
*/
|
|
232
|
-
layout(width, height) {
|
|
233
|
-
this.component.layout(width, height);
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Add a panel and return the created object.
|
|
237
|
-
*/
|
|
238
|
-
addPanel(options) {
|
|
239
|
-
return this.component.addPanel(options);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Create a component from a serialized object.
|
|
243
|
-
*/
|
|
244
|
-
fromJSON(data) {
|
|
245
|
-
this.component.fromJSON(data);
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Create a serialized object of the current component.
|
|
249
|
-
*/
|
|
250
|
-
toJSON() {
|
|
251
|
-
return this.component.toJSON();
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Reset the component back to an empty and default state.
|
|
255
|
-
*/
|
|
256
|
-
clear() {
|
|
257
|
-
this.component.clear();
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Update configuratable options.
|
|
261
|
-
*/
|
|
262
|
-
updateOptions(options) {
|
|
263
|
-
this.component.updateOptions(options);
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Release resources and teardown component. Do not call when using framework versions of dockview.
|
|
267
|
-
*/
|
|
268
|
-
dispose() {
|
|
269
|
-
this.component.dispose();
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
export class GridviewApi {
|
|
273
|
-
/**
|
|
274
|
-
* Width of the component.
|
|
275
|
-
*/
|
|
276
|
-
get width() {
|
|
277
|
-
return this.component.width;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Height of the component.
|
|
281
|
-
*/
|
|
282
|
-
get height() {
|
|
283
|
-
return this.component.height;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Minimum height of the component.
|
|
287
|
-
*/
|
|
288
|
-
get minimumHeight() {
|
|
289
|
-
return this.component.minimumHeight;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Maximum height of the component.
|
|
293
|
-
*/
|
|
294
|
-
get maximumHeight() {
|
|
295
|
-
return this.component.maximumHeight;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Minimum width of the component.
|
|
299
|
-
*/
|
|
300
|
-
get minimumWidth() {
|
|
301
|
-
return this.component.minimumWidth;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Maximum width of the component.
|
|
305
|
-
*/
|
|
306
|
-
get maximumWidth() {
|
|
307
|
-
return this.component.maximumWidth;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Invoked when any layout change occures, an aggregation of many events.
|
|
311
|
-
*/
|
|
312
|
-
get onDidLayoutChange() {
|
|
313
|
-
return this.component.onDidLayoutChange;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
317
|
-
*/
|
|
318
|
-
get onDidAddPanel() {
|
|
319
|
-
return this.component.onDidAddGroup;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
323
|
-
*/
|
|
324
|
-
get onDidRemovePanel() {
|
|
325
|
-
return this.component.onDidRemoveGroup;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Invoked when the active panel changes. May be undefined if no panel is active.
|
|
329
|
-
*/
|
|
330
|
-
get onDidActivePanelChange() {
|
|
331
|
-
return this.component.onDidActiveGroupChange;
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
335
|
-
*/
|
|
336
|
-
get onDidLayoutFromJSON() {
|
|
337
|
-
return this.component.onDidLayoutFromJSON;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* All panel objects.
|
|
341
|
-
*/
|
|
342
|
-
get panels() {
|
|
343
|
-
return this.component.groups;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Current orientation. Can be changed after initialization.
|
|
347
|
-
*/
|
|
348
|
-
get orientation() {
|
|
349
|
-
return this.component.orientation;
|
|
350
|
-
}
|
|
351
|
-
set orientation(value) {
|
|
352
|
-
this.component.updateOptions({ orientation: value });
|
|
353
|
-
}
|
|
354
|
-
constructor(component) {
|
|
355
|
-
this.component = component;
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Focus the component. Will try to focus an active panel if one exists.
|
|
359
|
-
*/
|
|
360
|
-
focus() {
|
|
361
|
-
this.component.focus();
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
365
|
-
*/
|
|
366
|
-
layout(width, height, force = false) {
|
|
367
|
-
this.component.layout(width, height, force);
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Add a panel and return the created object.
|
|
371
|
-
*/
|
|
372
|
-
addPanel(options) {
|
|
373
|
-
return this.component.addPanel(options);
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* Remove a panel given the panel object.
|
|
377
|
-
*/
|
|
378
|
-
removePanel(panel, sizing) {
|
|
379
|
-
this.component.removePanel(panel, sizing);
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Move a panel in a particular direction relative to another panel.
|
|
383
|
-
*/
|
|
384
|
-
movePanel(panel, options) {
|
|
385
|
-
this.component.movePanel(panel, options);
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Get a panel object given a `string` id. May return `undefined`.
|
|
389
|
-
*/
|
|
390
|
-
getPanel(id) {
|
|
391
|
-
return this.component.getPanel(id);
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Create a component from a serialized object.
|
|
395
|
-
*/
|
|
396
|
-
fromJSON(data) {
|
|
397
|
-
return this.component.fromJSON(data);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Create a serialized object of the current component.
|
|
401
|
-
*/
|
|
402
|
-
toJSON() {
|
|
403
|
-
return this.component.toJSON();
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Reset the component back to an empty and default state.
|
|
407
|
-
*/
|
|
408
|
-
clear() {
|
|
409
|
-
this.component.clear();
|
|
410
|
-
}
|
|
411
|
-
updateOptions(options) {
|
|
412
|
-
this.component.updateOptions(options);
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Release resources and teardown component. Do not call when using framework versions of dockview.
|
|
416
|
-
*/
|
|
417
|
-
dispose() {
|
|
418
|
-
this.component.dispose();
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
export class DockviewApi {
|
|
422
|
-
/**
|
|
423
|
-
* The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
|
|
424
|
-
*/
|
|
425
|
-
get id() {
|
|
426
|
-
return this.component.id;
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Width of the component.
|
|
430
|
-
*/
|
|
431
|
-
get width() {
|
|
432
|
-
return this.component.width;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Height of the component.
|
|
436
|
-
*/
|
|
437
|
-
get height() {
|
|
438
|
-
return this.component.height;
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Minimum height of the component.
|
|
442
|
-
*/
|
|
443
|
-
get minimumHeight() {
|
|
444
|
-
return this.component.minimumHeight;
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Maximum height of the component.
|
|
448
|
-
*/
|
|
449
|
-
get maximumHeight() {
|
|
450
|
-
return this.component.maximumHeight;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Minimum width of the component.
|
|
454
|
-
*/
|
|
455
|
-
get minimumWidth() {
|
|
456
|
-
return this.component.minimumWidth;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Maximum width of the component.
|
|
460
|
-
*/
|
|
461
|
-
get maximumWidth() {
|
|
462
|
-
return this.component.maximumWidth;
|
|
463
|
-
}
|
|
464
|
-
/**
|
|
465
|
-
* Total number of groups.
|
|
466
|
-
*/
|
|
467
|
-
get size() {
|
|
468
|
-
return this.component.size;
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* The active tab-group color palette. Reflects the configured
|
|
472
|
-
* `tabGroupColors` option, or the built-in defaults when unset.
|
|
473
|
-
* Useful for custom chip renderers that want to roll their own
|
|
474
|
-
* picker UI.
|
|
475
|
-
*/
|
|
476
|
-
get tabGroupColors() {
|
|
477
|
-
return this.component.tabGroupColorPalette.entries();
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Total number of panels.
|
|
481
|
-
*/
|
|
482
|
-
get totalPanels() {
|
|
483
|
-
return this.component.totalPanels;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Invoked when the active group changes. May be undefined if no group is active.
|
|
487
|
-
*/
|
|
488
|
-
get onDidActiveGroupChange() {
|
|
489
|
-
return this.component.onDidActiveGroupChange;
|
|
490
|
-
}
|
|
491
|
-
/**
|
|
492
|
-
* Invoked when a group is added. May be called multiple times when moving groups.
|
|
493
|
-
*/
|
|
494
|
-
get onDidAddGroup() {
|
|
495
|
-
return this.component.onDidAddGroup;
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Invoked when a group is removed. May be called multiple times when moving groups.
|
|
499
|
-
*/
|
|
500
|
-
get onDidRemoveGroup() {
|
|
501
|
-
return this.component.onDidRemoveGroup;
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* Invoked when the active panel changes. The event carries the active
|
|
505
|
-
* `panel` (may be undefined if no panel is active) and the
|
|
506
|
-
* {@link DockviewOrigin} (`'user'` vs `'api'`) of the change.
|
|
507
|
-
*/
|
|
508
|
-
get onDidActivePanelChange() {
|
|
509
|
-
return this.component.onDidActivePanelChange;
|
|
510
|
-
}
|
|
511
|
-
/**
|
|
512
|
-
* Invoked when a panel is added. May be called multiple times when moving panels.
|
|
513
|
-
*/
|
|
514
|
-
get onDidAddPanel() {
|
|
515
|
-
return this.component.onDidAddPanel;
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Invoked when a panel is removed. May be called multiple times when moving panels.
|
|
519
|
-
*/
|
|
520
|
-
get onDidRemovePanel() {
|
|
521
|
-
return this.component.onDidRemovePanel;
|
|
522
|
-
}
|
|
523
|
-
get onDidMovePanel() {
|
|
524
|
-
return this.component.onDidMovePanel;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Invoked after a layout is deserialzied using the `fromJSON` method.
|
|
528
|
-
*/
|
|
529
|
-
get onDidLayoutFromJSON() {
|
|
530
|
-
return this.component.onDidLayoutFromJSON;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* Invoked when any layout change occures, an aggregation of many events.
|
|
534
|
-
*/
|
|
535
|
-
get onDidLayoutChange() {
|
|
536
|
-
return this.component.onDidLayoutChange;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
|
|
540
|
-
*/
|
|
541
|
-
get onDidDrop() {
|
|
542
|
-
return this.component.onDidDrop;
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Invoked when a Drag'n'Drop event occurs but before dockview handles it giving the user an opportunity to intecept and
|
|
546
|
-
* prevent the event from occuring using the standard `preventDefault()` syntax.
|
|
547
|
-
*
|
|
548
|
-
* Preventing certain events may causes unexpected behaviours, use carefully.
|
|
549
|
-
*/
|
|
550
|
-
get onWillDrop() {
|
|
551
|
-
return this.component.onWillDrop;
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* Fires before each top-level structural layout mutation (add / remove /
|
|
555
|
-
* move / float / popout / maximize / load / clear). Compound operations
|
|
556
|
-
* (e.g. a drag) fire once. Pair with `onDidMutateLayout` to bracket a
|
|
557
|
-
* change — useful for undo/redo, autosave and dirty-tracking.
|
|
558
|
-
*/
|
|
559
|
-
get onWillMutateLayout() {
|
|
560
|
-
return this.component.onWillMutateLayout;
|
|
561
|
-
}
|
|
562
|
-
/** Fires after each top-level structural layout mutation. See `onWillMutateLayout`. */
|
|
563
|
-
get onDidMutateLayout() {
|
|
564
|
-
return this.component.onDidMutateLayout;
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* Invoked before an overlay is shown indicating a drop target.
|
|
568
|
-
*
|
|
569
|
-
* Calling `event.preventDefault()` will prevent the overlay being shown and prevent
|
|
570
|
-
* the any subsequent drop event.
|
|
571
|
-
*/
|
|
572
|
-
get onWillShowOverlay() {
|
|
573
|
-
return this.component.onWillShowOverlay;
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* Invoked before a group is dragged.
|
|
577
|
-
*
|
|
578
|
-
* Calling `event.nativeEvent.preventDefault()` will prevent the group drag starting.
|
|
579
|
-
*
|
|
580
|
-
*/
|
|
581
|
-
get onWillDragGroup() {
|
|
582
|
-
return this.component.onWillDragGroup;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Invoked before a panel is dragged.
|
|
586
|
-
*
|
|
587
|
-
* Calling `event.nativeEvent.preventDefault()` will prevent the panel drag starting.
|
|
588
|
-
*/
|
|
589
|
-
get onWillDragPanel() {
|
|
590
|
-
return this.component.onWillDragPanel;
|
|
591
|
-
}
|
|
592
|
-
get onUnhandledDragOver() {
|
|
593
|
-
return this.component.onUnhandledDragOver;
|
|
594
|
-
}
|
|
595
|
-
get onDidPopoutGroupSizeChange() {
|
|
596
|
-
return this.component.onDidPopoutGroupSizeChange;
|
|
597
|
-
}
|
|
598
|
-
get onDidPopoutGroupPositionChange() {
|
|
599
|
-
return this.component.onDidPopoutGroupPositionChange;
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
* Fires when a popout group successfully opens in its own window, carrying
|
|
603
|
-
* the live `Window` handle. Use it to route focus or attach per-document
|
|
604
|
-
* listeners. Enumerate the current popouts at any time with `getPopouts()`.
|
|
605
|
-
*/
|
|
606
|
-
get onDidAddPopoutGroup() {
|
|
607
|
-
return this.component.onDidAddPopoutGroup;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* Fires when a popout group is removed — whether the user closed its window
|
|
611
|
-
* or it was docked back programmatically. Symmetric with
|
|
612
|
-
* {@link onDidAddPopoutGroup}; not fired during component disposal.
|
|
613
|
-
*/
|
|
614
|
-
get onDidRemovePopoutGroup() {
|
|
615
|
-
return this.component.onDidRemovePopoutGroup;
|
|
616
|
-
}
|
|
617
|
-
get onDidOpenPopoutWindowFail() {
|
|
618
|
-
return this.component.onDidOpenPopoutWindowFail;
|
|
619
|
-
}
|
|
620
|
-
/** Enumerate the popout groups currently open in their own windows. */
|
|
621
|
-
getPopouts() {
|
|
622
|
-
return this.component.getPopouts();
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Invoked when a tab group is created in any group.
|
|
626
|
-
*/
|
|
627
|
-
get onDidCreateTabGroup() {
|
|
628
|
-
return this.component.onDidCreateTabGroup;
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* Invoked when a tab group is destroyed in any group.
|
|
632
|
-
*/
|
|
633
|
-
get onDidDestroyTabGroup() {
|
|
634
|
-
return this.component.onDidDestroyTabGroup;
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* Invoked when a panel is added to a tab group.
|
|
638
|
-
*/
|
|
639
|
-
get onDidAddPanelToTabGroup() {
|
|
640
|
-
return this.component.onDidAddPanelToTabGroup;
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* Invoked when a panel is removed from a tab group.
|
|
644
|
-
*/
|
|
645
|
-
get onDidRemovePanelFromTabGroup() {
|
|
646
|
-
return this.component.onDidRemovePanelFromTabGroup;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* Invoked when a tab group's properties (label, color) change.
|
|
650
|
-
*/
|
|
651
|
-
get onDidTabGroupChange() {
|
|
652
|
-
return this.component.onDidTabGroupChange;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Invoked when a tab group is collapsed or expanded.
|
|
656
|
-
*/
|
|
657
|
-
get onDidTabGroupCollapsedChange() {
|
|
658
|
-
return this.component.onDidTabGroupCollapsedChange;
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* All panel objects.
|
|
662
|
-
*/
|
|
663
|
-
get panels() {
|
|
664
|
-
return this.component.panels;
|
|
665
|
-
}
|
|
666
|
-
/**
|
|
667
|
-
* All group objects.
|
|
668
|
-
*/
|
|
669
|
-
get groups() {
|
|
670
|
-
return this.component.groups;
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* The nearest grid group in a spatial direction from `group`, comparing
|
|
674
|
-
* group centre points — e.g. the group visually to the left. Floating and
|
|
675
|
-
* popout groups are ignored. Returns `undefined` when there is no group in
|
|
676
|
-
* that direction. Pair with `group.api.boundingBox` to build your own
|
|
677
|
-
* spatial navigation.
|
|
678
|
-
*/
|
|
679
|
-
adjacentGroupInDirection(group, direction) {
|
|
680
|
-
return this.component.adjacentGroupInDirection(group, direction);
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* Active panel object.
|
|
684
|
-
*/
|
|
685
|
-
get activePanel() {
|
|
686
|
-
return this.component.activePanel;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Active group object.
|
|
690
|
-
*/
|
|
691
|
-
get activeGroup() {
|
|
692
|
-
return this.component.activeGroup;
|
|
693
|
-
}
|
|
694
|
-
constructor(component) {
|
|
695
|
-
this.component = component;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Focus the component. Will try to focus an active panel if one exists.
|
|
699
|
-
*/
|
|
700
|
-
focus() {
|
|
701
|
-
this.component.focus();
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* Get a panel object given a `string` id. May return `undefined`.
|
|
705
|
-
*/
|
|
706
|
-
getPanel(id) {
|
|
707
|
-
return this.component.getGroupPanel(id);
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Force resize the component to an exact width and height. Read about auto-resizing before using.
|
|
711
|
-
*/
|
|
712
|
-
layout(width, height, force = false) {
|
|
713
|
-
this.component.layout(width, height, force);
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* Add a panel and return the created object.
|
|
717
|
-
*/
|
|
718
|
-
addPanel(options) {
|
|
719
|
-
return this.component.withOrigin('api', () => this.component.addPanel(options));
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Remove a panel given the panel object.
|
|
723
|
-
*/
|
|
724
|
-
removePanel(panel) {
|
|
725
|
-
this.component.withOrigin('api', () => this.component.removePanel(panel));
|
|
726
|
-
}
|
|
727
|
-
/**
|
|
728
|
-
* Add a group and return the created object.
|
|
729
|
-
*/
|
|
730
|
-
addGroup(options) {
|
|
731
|
-
return this.component.addGroup(options);
|
|
732
|
-
}
|
|
733
|
-
/**
|
|
734
|
-
* Close all groups and panels.
|
|
735
|
-
*/
|
|
736
|
-
closeAllGroups() {
|
|
737
|
-
return this.component.withOrigin('api', () => this.component.closeAllGroups());
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* Remove a group and any panels within the group.
|
|
741
|
-
*/
|
|
742
|
-
removeGroup(group) {
|
|
743
|
-
this.component.withOrigin('api', () => this.component.removeGroup(group));
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Get a group object given a `string` id. May return undefined.
|
|
747
|
-
*/
|
|
748
|
-
getGroup(id) {
|
|
749
|
-
return this.component.getPanel(id);
|
|
750
|
-
}
|
|
751
|
-
/**
|
|
752
|
-
* Add a floating group
|
|
753
|
-
*/
|
|
754
|
-
addFloatingGroup(item, options) {
|
|
755
|
-
return this.component.withOrigin('api', () => this.component.addFloatingGroup(item, options));
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Create a component from a serialized object.
|
|
759
|
-
*/
|
|
760
|
-
fromJSON(data, options) {
|
|
761
|
-
this.component.withOrigin('api', () => this.component.fromJSON(data, options));
|
|
762
|
-
}
|
|
763
|
-
/**
|
|
764
|
-
* Create a serialized object of the current component.
|
|
765
|
-
*/
|
|
766
|
-
toJSON() {
|
|
767
|
-
return this.component.toJSON();
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Reset the component back to an empty and default state.
|
|
771
|
-
*/
|
|
772
|
-
clear() {
|
|
773
|
-
this.component.withOrigin('api', () => this.component.clear());
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* Move the focus progmatically to the next panel or group.
|
|
777
|
-
*/
|
|
778
|
-
moveToNext(options) {
|
|
779
|
-
this.component.moveToNext(options);
|
|
780
|
-
}
|
|
781
|
-
/**
|
|
782
|
-
* Move the focus progmatically to the previous panel or group.
|
|
783
|
-
*/
|
|
784
|
-
moveToPrevious(options) {
|
|
785
|
-
this.component.moveToPrevious(options);
|
|
786
|
-
}
|
|
787
|
-
maximizeGroup(panel) {
|
|
788
|
-
this.component.maximizeGroup(panel.group);
|
|
789
|
-
}
|
|
790
|
-
hasMaximizedGroup() {
|
|
791
|
-
return this.component.hasMaximizedGroup();
|
|
792
|
-
}
|
|
793
|
-
exitMaximizedGroup() {
|
|
794
|
-
this.component.exitMaximizedGroup();
|
|
795
|
-
}
|
|
796
|
-
get onDidMaximizedGroupChange() {
|
|
797
|
-
return this.component.onDidMaximizedGroupChange;
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* Add a popout group in a new Window
|
|
801
|
-
*/
|
|
802
|
-
addPopoutGroup(item, options) {
|
|
803
|
-
return this.component.withOrigin('api', () => this.component.addPopoutGroup(item, options));
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* Add an edge group at the given position. Returns the group panel API
|
|
807
|
-
* for the newly created group. Throws if a group already exists there.
|
|
808
|
-
*/
|
|
809
|
-
addEdgeGroup(position, options) {
|
|
810
|
-
return this.component.addEdgeGroup(position, options);
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Get the group panel API for an edge group at the given position.
|
|
814
|
-
* Returns `undefined` if no edge group is configured at that position.
|
|
815
|
-
*/
|
|
816
|
-
getEdgeGroup(position) {
|
|
817
|
-
return this.component.getEdgeGroup(position);
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* Set the visibility of an edge group.
|
|
821
|
-
*/
|
|
822
|
-
setEdgeGroupVisible(position, visible) {
|
|
823
|
-
this.component.setEdgeGroupVisible(position, visible);
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* Check whether an edge group is currently visible.
|
|
827
|
-
*/
|
|
828
|
-
isEdgeGroupVisible(position) {
|
|
829
|
-
return this.component.isEdgeGroupVisible(position);
|
|
830
|
-
}
|
|
831
|
-
/**
|
|
832
|
-
* Remove an edge group and reclaim its slot in the layout.
|
|
833
|
-
* All panels inside the group are disposed. Throws if no group exists at position.
|
|
834
|
-
*/
|
|
835
|
-
removeEdgeGroup(position) {
|
|
836
|
-
this.component.removeEdgeGroup(position);
|
|
837
|
-
}
|
|
838
|
-
updateOptions(options) {
|
|
839
|
-
this.component.updateOptions(options);
|
|
840
|
-
}
|
|
841
|
-
// === Tab Group API ===
|
|
842
|
-
_getGroupModel(groupId) {
|
|
843
|
-
const group = this.component.getPanel(groupId);
|
|
844
|
-
if (!group) {
|
|
845
|
-
throw new Error(`dockview: group '${groupId}' not found`);
|
|
846
|
-
}
|
|
847
|
-
return group.model;
|
|
848
|
-
}
|
|
849
|
-
createTabGroup(options) {
|
|
850
|
-
const model = this._getGroupModel(options.groupId);
|
|
851
|
-
return this.component.withOrigin('api', () => model.createTabGroup({
|
|
852
|
-
label: options.label,
|
|
853
|
-
color: options.color,
|
|
854
|
-
componentParams: options.componentParams,
|
|
855
|
-
}));
|
|
856
|
-
}
|
|
857
|
-
dissolveTabGroup(options) {
|
|
858
|
-
const model = this._getGroupModel(options.groupId);
|
|
859
|
-
this.component.withOrigin('api', () => model.dissolveTabGroup(options.tabGroupId));
|
|
860
|
-
}
|
|
861
|
-
addPanelToTabGroup(options) {
|
|
862
|
-
const model = this._getGroupModel(options.groupId);
|
|
863
|
-
this.component.withOrigin('api', () => model.addPanelToTabGroup(options.tabGroupId, options.panelId, options.index));
|
|
864
|
-
}
|
|
865
|
-
removePanelFromTabGroup(options) {
|
|
866
|
-
const model = this._getGroupModel(options.groupId);
|
|
867
|
-
this.component.withOrigin('api', () => model.removePanelFromTabGroup(options.panelId));
|
|
868
|
-
}
|
|
869
|
-
getTabGroups(options) {
|
|
870
|
-
const model = this._getGroupModel(options.groupId);
|
|
871
|
-
return model.getTabGroups();
|
|
872
|
-
}
|
|
873
|
-
getTabGroupForPanel(options) {
|
|
874
|
-
const model = this._getGroupModel(options.groupId);
|
|
875
|
-
return model.getTabGroupForPanel(options.panelId);
|
|
876
|
-
}
|
|
877
|
-
moveTabGroup(options) {
|
|
878
|
-
const model = this._getGroupModel(options.groupId);
|
|
879
|
-
model.moveTabGroup(options.tabGroupId, options.index);
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* Release resources and teardown component. Do not call when using framework versions of dockview.
|
|
883
|
-
*/
|
|
884
|
-
dispose() {
|
|
885
|
-
this.component.dispose();
|
|
886
|
-
}
|
|
887
|
-
}
|