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,10 +1,10 @@
|
|
|
1
1
|
import { SerializedGridObject, Gridview, SerializedGridview } from '../gridview/gridview';
|
|
2
|
-
import { DroptargetOverlayModel, Position } from '../dnd/droptarget';
|
|
2
|
+
import { DroptargetOverlayModel, Position, PositionResolver } from '../dnd/droptarget';
|
|
3
3
|
import { DockviewPanel, IDockviewPanel } from './dockviewPanel';
|
|
4
4
|
import { IDisposable } from '../lifecycle';
|
|
5
5
|
import { Event, Emitter } from '../events';
|
|
6
6
|
import { IWatermarkRenderer, GroupviewPanelState } from './types';
|
|
7
|
-
import { AddGroupOptions, AddPanelOptions, DockviewComponentOptions, DockviewDndOverlayEvent, DockviewOptions, MovementOptions, DockviewHeaderPosition } from './options';
|
|
7
|
+
import { AddGroupOptions, AddPanelOptions, DockviewComponentOptions, DockviewDndOverlayEvent, DockviewOptions, MovementOptions, DockviewHeaderPosition, SmartGuidesOptions } from './options';
|
|
8
8
|
import { BaseGrid, IBaseGrid } from '../gridview/baseComponentGridview';
|
|
9
9
|
import { DockviewApi } from '../api/component.api';
|
|
10
10
|
import { Orientation } from '../splitview/splitview';
|
|
@@ -18,7 +18,7 @@ import { IFloatingGroupHost } from './floatingGroupService';
|
|
|
18
18
|
import { IPopoutWindowHost } from './popoutWindowService';
|
|
19
19
|
import { IWatermarkHost } from './watermarkService';
|
|
20
20
|
import { IEdgeGroupServiceHost } from './edgeGroupService';
|
|
21
|
-
import {
|
|
21
|
+
import { IKeyboardNavigationHost, IAdvancedDnDHost, IAutoHideEdgeGroupHost, IContextMenuHost, IContextMenuService, IDndCompassHost, ILayoutHistoryHost, LayoutHistoryChangeEvent, IMultiRowTabsHost, ISmartGuidesHost, SmartGuidesSnapEvent, SmartGuidesSnapTogetherEvent, ITabGroupChipsHost, IPinnedTabsService, IAdvancedOverflowService } from './moduleContracts';
|
|
22
22
|
import { IHeaderActionsHost } from './headerActionsService';
|
|
23
23
|
import { AnchoredBox, AnchorPosition, Box } from '../types';
|
|
24
24
|
import { DockviewPanelRenderer, OverlayRenderContainer } from '../overlay/overlayRenderContainer';
|
|
@@ -27,7 +27,7 @@ import { IRootDropTargetHost } from './rootDropTargetService';
|
|
|
27
27
|
import { ILiveRegionHost } from './liveRegionService';
|
|
28
28
|
import { IDragGhostSpec } from '../dnd/backend';
|
|
29
29
|
import { DropTargetAnchorContainer } from '../dnd/dropTargetAnchorContainer';
|
|
30
|
-
import { EdgeGroupPosition,
|
|
30
|
+
import { EdgeGroupPosition, AddEdgeGroupOptions, SerializedEdgeGroups } from './dockviewShell';
|
|
31
31
|
import { DockviewGroupPanelApi } from '../api/dockviewGroupPanelApi';
|
|
32
32
|
import { TabGroupColorPalette } from './tabGroupAccent';
|
|
33
33
|
export interface DockviewPopoutGroupOptions {
|
|
@@ -147,6 +147,12 @@ export interface FloatingGroupOptions {
|
|
|
147
147
|
* group only. See {@link DockviewOptions.floatingGroupDragHandle}.
|
|
148
148
|
*/
|
|
149
149
|
dragHandle?: 'titlebar' | 'tabbar';
|
|
150
|
+
/**
|
|
151
|
+
* Exclude this floating group from Smart Guides so it never snaps and shows
|
|
152
|
+
* no guides when dragged (e.g. a pinned HUD). See
|
|
153
|
+
* {@link DockviewOptions.smartGuides}.
|
|
154
|
+
*/
|
|
155
|
+
disableSmartGuides?: boolean;
|
|
150
156
|
}
|
|
151
157
|
interface FloatingGroupOptionsInternal extends FloatingGroupOptions {
|
|
152
158
|
skipRemoveGroup?: boolean;
|
|
@@ -181,6 +187,14 @@ export interface DockviewActivePanelChangeEvent {
|
|
|
181
187
|
readonly panel: IDockviewPanel | undefined;
|
|
182
188
|
readonly origin: DockviewOrigin;
|
|
183
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Fired by `onDidPanelPinnedChange` when a panel is pinned or unpinned via the
|
|
192
|
+
* PinnedTabs module. `isPinned` is the new state.
|
|
193
|
+
*/
|
|
194
|
+
export interface DockviewPanelPinnedChangeEvent {
|
|
195
|
+
readonly panel: IDockviewPanel;
|
|
196
|
+
readonly isPinned: boolean;
|
|
197
|
+
}
|
|
184
198
|
export interface PopoutGroupChangeSizeEvent {
|
|
185
199
|
width: number;
|
|
186
200
|
height: number;
|
|
@@ -219,6 +233,7 @@ export interface IDockviewComponent extends IBaseGrid<DockviewGroupPanel> {
|
|
|
219
233
|
readonly onDidAddPanel: Event<IDockviewPanel>;
|
|
220
234
|
readonly onDidLayoutFromJSON: Event<void>;
|
|
221
235
|
readonly onDidActivePanelChange: Event<DockviewActivePanelChangeEvent>;
|
|
236
|
+
readonly onDidPanelPinnedChange: Event<DockviewPanelPinnedChangeEvent>;
|
|
222
237
|
readonly onWillDragPanel: Event<TabDragEvent>;
|
|
223
238
|
readonly onWillDragGroup: Event<GroupDragEvent>;
|
|
224
239
|
readonly onDidRemoveGroup: Event<DockviewGroupPanel>;
|
|
@@ -244,6 +259,7 @@ export interface IDockviewComponent extends IBaseGrid<DockviewGroupPanel> {
|
|
|
244
259
|
updateOptions(options: DockviewOptions): void;
|
|
245
260
|
moveGroupOrPanel(options: MoveGroupOrPanelOptions): void;
|
|
246
261
|
moveGroup(options: MoveGroupOptions): void;
|
|
262
|
+
setPanelPinned(panel: DockviewPanel, pinned: boolean): void;
|
|
247
263
|
doSetGroupActive: (group: DockviewGroupPanel, skipFocus?: boolean) => void;
|
|
248
264
|
removeGroup: (group: DockviewGroupPanel) => void;
|
|
249
265
|
addPanel<T extends object = Parameters>(options: AddPanelOptions<T>): IDockviewPanel;
|
|
@@ -253,8 +269,8 @@ export interface IDockviewComponent extends IBaseGrid<DockviewGroupPanel> {
|
|
|
253
269
|
addGroup(options?: AddGroupOptions): DockviewGroupPanel;
|
|
254
270
|
closeAllGroups(): void;
|
|
255
271
|
adjacentGroupInDirection(group: DockviewGroupPanel, direction: GroupNavigationDirection): DockviewGroupPanel | undefined;
|
|
256
|
-
|
|
257
|
-
|
|
272
|
+
activateNext(options?: MovementOptions): void;
|
|
273
|
+
activatePrevious(options?: MovementOptions): void;
|
|
258
274
|
setActivePanel(panel: IDockviewPanel): void;
|
|
259
275
|
focus(): void;
|
|
260
276
|
toJSON(): SerializedDockview;
|
|
@@ -264,13 +280,40 @@ export interface IDockviewComponent extends IBaseGrid<DockviewGroupPanel> {
|
|
|
264
280
|
fromJSON(data: any, options?: {
|
|
265
281
|
reuseExistingPanels: boolean;
|
|
266
282
|
}): void;
|
|
267
|
-
addEdgeGroup(position: EdgeGroupPosition, options:
|
|
283
|
+
addEdgeGroup(position: EdgeGroupPosition, options: AddEdgeGroupOptions): DockviewGroupPanelApi;
|
|
284
|
+
revealEdgeGroupWithData(position: EdgeGroupPosition, data: {
|
|
285
|
+
groupId: string;
|
|
286
|
+
panelId?: string | null;
|
|
287
|
+
}, options?: {
|
|
288
|
+
autoHide?: boolean;
|
|
289
|
+
}): void;
|
|
268
290
|
getEdgeGroup(position: EdgeGroupPosition): DockviewGroupPanelApi | undefined;
|
|
269
291
|
setEdgeGroupVisible(position: EdgeGroupPosition, visible: boolean): void;
|
|
270
292
|
isEdgeGroupVisible(position: EdgeGroupPosition): boolean;
|
|
271
293
|
removeEdgeGroup(position: EdgeGroupPosition): void;
|
|
294
|
+
getEdgeGroupPanel(position: EdgeGroupPosition): DockviewGroupPanel | undefined;
|
|
295
|
+
pinEdgeGroup(position: EdgeGroupPosition): void;
|
|
296
|
+
autoHideEdgeGroup(position: EdgeGroupPosition): void;
|
|
297
|
+
peekEdgeGroup(position: EdgeGroupPosition, peek: boolean): void;
|
|
298
|
+
isEdgeGroupAutoHide(group: DockviewGroupPanel): boolean;
|
|
299
|
+
setEdgeGroupAutoHide(group: DockviewGroupPanel, value: boolean | undefined): void;
|
|
300
|
+
readonly onDidEdgeGroupAutoHideChange: Event<DockviewGroupPanel>;
|
|
301
|
+
readonly overlayRoot: HTMLElement;
|
|
302
|
+
getEdgeGroupExpandedSize(position: EdgeGroupPosition): number;
|
|
303
|
+
undo(): void;
|
|
304
|
+
redo(): void;
|
|
305
|
+
readonly canUndo: boolean;
|
|
306
|
+
readonly canRedo: boolean;
|
|
307
|
+
clearHistory(): void;
|
|
308
|
+
readonly onDidChangeHistory: Event<LayoutHistoryChangeEvent>;
|
|
309
|
+
readonly popoutRestorationPromise: Promise<void>;
|
|
310
|
+
readonly smartGuidesEnabled: boolean;
|
|
311
|
+
setSmartGuidesEnabled(enabled: boolean): void;
|
|
312
|
+
updateSmartGuidesOptions(options: Partial<SmartGuidesOptions>): void;
|
|
313
|
+
readonly onDidSnapFloat: Event<SmartGuidesSnapEvent>;
|
|
314
|
+
readonly onDidSnapTogether: Event<SmartGuidesSnapTogetherEvent>;
|
|
272
315
|
}
|
|
273
|
-
export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> implements IDockviewComponent, IFloatingGroupHost, IPopoutWindowHost, IWatermarkHost, IEdgeGroupServiceHost, ITabGroupChipsHost, IContextMenuHost, IRootDropTargetHost, IHeaderActionsHost, IAdvancedDnDHost, ILiveRegionHost,
|
|
316
|
+
export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> implements IDockviewComponent, IFloatingGroupHost, IPopoutWindowHost, IWatermarkHost, IEdgeGroupServiceHost, ITabGroupChipsHost, IContextMenuHost, IRootDropTargetHost, IHeaderActionsHost, IAdvancedDnDHost, ILiveRegionHost, IKeyboardNavigationHost, ILayoutHistoryHost, IDndCompassHost, ISmartGuidesHost, IAutoHideEdgeGroupHost, IMultiRowTabsHost {
|
|
274
317
|
private readonly nextGroupId;
|
|
275
318
|
private readonly _deserializer;
|
|
276
319
|
private readonly _api;
|
|
@@ -281,6 +324,18 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
281
324
|
readonly overlayRenderContainer: OverlayRenderContainer;
|
|
282
325
|
readonly popupService: PopupService;
|
|
283
326
|
readonly rootDropTargetContainer: DropTargetAnchorContainer;
|
|
327
|
+
/**
|
|
328
|
+
* Shell-level anchor container dedicated to floating groups. Unlike
|
|
329
|
+
* {@link rootDropTargetContainer} it is never disabled by the
|
|
330
|
+
* `dndOverlayMounting: 'relative'` theme setting: a floating group cannot
|
|
331
|
+
* use an in-place ('relative') overlay because the overlay would be
|
|
332
|
+
* appended inside the floating window's stacking context
|
|
333
|
+
* (`.dv-resize-container`, a lower z-index than the shell-level render
|
|
334
|
+
* overlay that hosts the floating panel's content) and be painted over.
|
|
335
|
+
* Routing floating groups through this always-anchored container keeps
|
|
336
|
+
* their drop overlays visible in both mounting modes.
|
|
337
|
+
*/
|
|
338
|
+
readonly floatingDropTargetContainer: DropTargetAnchorContainer;
|
|
284
339
|
private readonly _onWillDragPanel;
|
|
285
340
|
readonly onWillDragPanel: Event<TabDragEvent>;
|
|
286
341
|
private readonly _onWillDragGroup;
|
|
@@ -312,12 +367,29 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
312
367
|
readonly onDidAddPopoutGroup: Event<PopoutGroup>;
|
|
313
368
|
private readonly _onDidRemovePopoutGroup;
|
|
314
369
|
readonly onDidRemovePopoutGroup: Event<PopoutGroup>;
|
|
370
|
+
private readonly _onDidChangePopouts;
|
|
371
|
+
/** Fires whenever a popout window opens or closes, i.e. the set of popout
|
|
372
|
+
* documents changed. Used by accessibility services that mirror per-window
|
|
373
|
+
* state (e.g. a live region in each popout). */
|
|
374
|
+
readonly onDidChangePopouts: Event<void>;
|
|
315
375
|
private readonly _onDidOpenPopoutWindowFail;
|
|
316
376
|
readonly onDidOpenPopoutWindowFail: Event<void>;
|
|
377
|
+
private readonly _onDidStartFloatingGroupDrag;
|
|
378
|
+
/** Fires with the dragged group when a floating group move-drag first moves.
|
|
379
|
+
* Consumed by the Smart Guides service (`ISmartGuidesHost`) to start each
|
|
380
|
+
* drag from a clean slate (a redock long-press aborts with no end event). */
|
|
381
|
+
readonly onDidStartFloatingGroupDrag: Event<DockviewGroupPanel>;
|
|
382
|
+
private readonly _onDidEndFloatingGroupDrag;
|
|
383
|
+
/** Fires with the dragged group when a floating group's move/resize drag
|
|
384
|
+
* ends. Consumed by the Smart Guides service (`ISmartGuidesHost`) to tear
|
|
385
|
+
* down its per-drag guides. */
|
|
386
|
+
readonly onDidEndFloatingGroupDrag: Event<DockviewGroupPanel>;
|
|
317
387
|
private readonly _onDidLayoutFromJSON;
|
|
318
388
|
readonly onDidLayoutFromJSON: Event<void>;
|
|
319
389
|
private readonly _onDidActivePanelChange;
|
|
320
390
|
readonly onDidActivePanelChange: Event<DockviewActivePanelChangeEvent>;
|
|
391
|
+
private readonly _onDidPanelPinnedChange;
|
|
392
|
+
readonly onDidPanelPinnedChange: Event<DockviewPanelPinnedChangeEvent>;
|
|
321
393
|
private readonly _onDidMovePanel;
|
|
322
394
|
readonly onDidMovePanel: Event<MovePanelEvent>;
|
|
323
395
|
private readonly _onDidCreateTabGroup;
|
|
@@ -345,6 +417,8 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
345
417
|
private _inShellLayout;
|
|
346
418
|
private readonly _onDidRemoveGroup;
|
|
347
419
|
readonly onDidRemoveGroup: Event<DockviewGroupPanel>;
|
|
420
|
+
private readonly _onDidEdgeGroupAutoHideChange;
|
|
421
|
+
readonly onDidEdgeGroupAutoHideChange: Event<DockviewGroupPanel>;
|
|
348
422
|
protected readonly _onDidAddGroup: Emitter<DockviewGroupPanel>;
|
|
349
423
|
readonly onDidAddGroup: Event<DockviewGroupPanel>;
|
|
350
424
|
private readonly _onDidOptionsChange;
|
|
@@ -361,6 +435,16 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
361
435
|
get defaultHeaderPosition(): DockviewHeaderPosition;
|
|
362
436
|
get api(): DockviewApi;
|
|
363
437
|
get floatingGroups(): readonly DockviewFloatingGroupPanel[];
|
|
438
|
+
/**
|
|
439
|
+
* Resolve the floating window hosting `group`, matched by membership so it
|
|
440
|
+
* finds nested (non-anchor) members too — a floating window can host a
|
|
441
|
+
* whole nested gridview, not just its anchor group. Returns `undefined`
|
|
442
|
+
* when the group isn't in any floating window. `floatingGroups` alone only
|
|
443
|
+
* exposes each window's anchor, so consumers that must act on any member
|
|
444
|
+
* (e.g. lifting an `always`-rendered panel's overlay above the window)
|
|
445
|
+
* should use this instead of a `.find(f => f.group === group)`.
|
|
446
|
+
*/
|
|
447
|
+
getFloatingWindowForGroup(group: DockviewGroupPanel): DockviewFloatingGroupPanel | undefined;
|
|
364
448
|
/**
|
|
365
449
|
* Boxes of the floating groups other than `exclude`, in coordinates
|
|
366
450
|
* relative to the floating overlay container. Supplied to a
|
|
@@ -368,13 +452,108 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
368
452
|
* align the dragged float against its siblings.
|
|
369
453
|
*/
|
|
370
454
|
private _gatherFloatingGroupBoxes;
|
|
455
|
+
/**
|
|
456
|
+
* ISmartGuidesHost: the positioning parent floats are placed in, also the
|
|
457
|
+
* coordinate space the Smart Guides overlay draws its alignment lines in.
|
|
458
|
+
*/
|
|
459
|
+
getFloatingContainer(): HTMLElement;
|
|
460
|
+
/** ISmartGuidesHost: the other floats' group identity + container-relative
|
|
461
|
+
* box, for the snap-together detector. */
|
|
462
|
+
getFloatingGroupSnapshots(exclude: DockviewGroupPanel): readonly {
|
|
463
|
+
group: DockviewGroupPanel;
|
|
464
|
+
box: Box;
|
|
465
|
+
}[];
|
|
466
|
+
/** ISmartGuidesHost: dock/merge a dragged float into a target group via the
|
|
467
|
+
* existing move primitive (so events + undo cover it). */
|
|
468
|
+
mergeFloatInto(dragged: DockviewGroupPanel, target: DockviewGroupPanel, position: Position): void;
|
|
469
|
+
/** ISmartGuidesHost: the main grid's splitter (sash) rectangles, in the
|
|
470
|
+
* floating container's coordinate space, for the optional splitter target. */
|
|
471
|
+
getGridSplitterRects(): Box[];
|
|
472
|
+
private get _smartGuidesService();
|
|
473
|
+
/** Whether Smart Guides snapping is currently active. */
|
|
474
|
+
get smartGuidesEnabled(): boolean;
|
|
475
|
+
/** Toggle Smart Guides snapping at runtime (no-op if the module is absent). */
|
|
476
|
+
setSmartGuidesEnabled(enabled: boolean): void;
|
|
477
|
+
/** Merge a partial Smart Guides option override in at runtime. */
|
|
478
|
+
updateSmartGuidesOptions(options: Partial<SmartGuidesOptions>): void;
|
|
479
|
+
/** Fires when a dragged float commits an alignment snap on drop. */
|
|
480
|
+
get onDidSnapFloat(): Event<SmartGuidesSnapEvent>;
|
|
481
|
+
/** Fires when a dragged float commits a dock/merge on drop. */
|
|
482
|
+
get onDidSnapTogether(): Event<SmartGuidesSnapTogetherEvent>;
|
|
483
|
+
/**
|
|
484
|
+
* Compose the float drag-position transform from the public
|
|
485
|
+
* `transformFloatingGroupDrag` option and the optional Smart Guides module,
|
|
486
|
+
* so an app and the module can both nudge a single drag rather than one
|
|
487
|
+
* clobbering the other. Returns `undefined` only when the app option is
|
|
488
|
+
* unset and the module is absent (the removability case); then no transform
|
|
489
|
+
* is installed and the sibling-box snapshot is skipped, so the drag loop is
|
|
490
|
+
* truly byte-for-byte unchanged. When the module is present but `smartGuides`
|
|
491
|
+
* is unset it installs a cheap pass-through (the service snaps nothing and
|
|
492
|
+
* early-returns), so observable drag behaviour is still unchanged.
|
|
493
|
+
*/
|
|
494
|
+
private _buildFloatingDragTransform;
|
|
371
495
|
private get _floatingGroupService();
|
|
372
496
|
private get _popoutWindowService();
|
|
373
497
|
private get _watermarkService();
|
|
374
498
|
private get _edgeGroupService();
|
|
375
499
|
private get _rootDropTargetService();
|
|
376
500
|
private get _advancedDnDService();
|
|
501
|
+
private get _dndCompassService();
|
|
502
|
+
/** IDndCompassHost: whether a content drop at `position` on `group` is
|
|
503
|
+
* allowed, for compass cell gating (only legal cells are shown). The same
|
|
504
|
+
* predicate the content drop target uses, so the compass and the real drop
|
|
505
|
+
* agree. */
|
|
506
|
+
canDropOnGroup(group: DockviewGroupPanel, position: Position, event: DragEvent | PointerEvent): boolean;
|
|
507
|
+
/** IDndCompassHost: the frame the content drop target measures (mirrors the
|
|
508
|
+
* `getOverlayOutline` rule in `content.ts`): the whole group when
|
|
509
|
+
* `dndPanelOverlay === 'group'`, else just the content. The compass paints
|
|
510
|
+
* in this frame so its cells align with where a drop resolves. */
|
|
511
|
+
getDropOverlayElement(group: DockviewGroupPanel): HTMLElement | undefined;
|
|
512
|
+
/** IMultiRowTabsHost: the group's scrollable tab list (`.dv-tabs-container`),
|
|
513
|
+
* the element the wrap controller toggles + measures. */
|
|
514
|
+
getTabsListElement(group: DockviewGroupPanel): HTMLElement | undefined;
|
|
515
|
+
/** IMultiRowTabsHost: re-run a group's layout so a wrapped-header height
|
|
516
|
+
* change propagates to the content + active panel. */
|
|
517
|
+
relayoutGroup(group: DockviewGroupPanel): void;
|
|
518
|
+
/** IMultiRowTabsHost: force the wrap controller's surplus set (rows beyond
|
|
519
|
+
* `overflow.maxRows`) into the group's overflow dropdown. */
|
|
520
|
+
setForcedOverflow(group: DockviewGroupPanel, fn: (panelId: string) => boolean): void;
|
|
521
|
+
/** IDndCompassHost: the layout root (`.dv-dockview`, a positioned element),
|
|
522
|
+
* the surface the outer-cell landing preview is drawn over. */
|
|
523
|
+
getLayoutElement(): HTMLElement;
|
|
524
|
+
/**
|
|
525
|
+
* The drop-position resolver installed on the group content drop targets:
|
|
526
|
+
* the app's `dropPositionResolver` option if set, else the DnD compass
|
|
527
|
+
* module's compass resolver (undefined when the compass is disabled). Read
|
|
528
|
+
* live by the content drop targets; undefined ⇒ default cursor-quadrant.
|
|
529
|
+
*/
|
|
530
|
+
getDropPositionResolver(): PositionResolver | undefined;
|
|
531
|
+
/**
|
|
532
|
+
* Dock the dragged item against the whole-layout edge at `position` (the
|
|
533
|
+
* orthogonalized root group), as the layout-edge drop zones do. Shared by
|
|
534
|
+
* the root drop target and by an `edge`-flagged drop on a group content
|
|
535
|
+
* target (a position resolver that marks an outer "dock to the layout edge"
|
|
536
|
+
* cell). No-op when there is no active drag data.
|
|
537
|
+
*/
|
|
538
|
+
dockToLayoutEdge(nativeEvent: DragEvent | PointerEvent, position: Position): void;
|
|
377
539
|
get headerActionsService(): import("./headerActionsService").IHeaderActionsService | undefined;
|
|
540
|
+
private get _layoutHistoryService();
|
|
541
|
+
/** Undo the previous recorded layout mutation (no-op if nothing to undo or
|
|
542
|
+
* the LayoutHistory module is absent). Requires `layoutHistory.enabled`. */
|
|
543
|
+
undo(): void;
|
|
544
|
+
/** Re-apply the next layout mutation (no-op if nothing to redo). */
|
|
545
|
+
redo(): void;
|
|
546
|
+
get canUndo(): boolean;
|
|
547
|
+
get canRedo(): boolean;
|
|
548
|
+
/** Drop both undo and redo stacks. */
|
|
549
|
+
clearHistory(): void;
|
|
550
|
+
get onDidChangeHistory(): Event<LayoutHistoryChangeEvent>;
|
|
551
|
+
/**
|
|
552
|
+
* Whether the two-band edge drag-reveal affordance is registered. See
|
|
553
|
+
* {@link IRootDropTargetHost.hasEdgeDragReveal}; must not be read during
|
|
554
|
+
* module initialisation, only from `init`/postConstruct onwards.
|
|
555
|
+
*/
|
|
556
|
+
get hasEdgeDragReveal(): boolean;
|
|
378
557
|
isGridEmpty(): boolean;
|
|
379
558
|
rootDropTargetOverrideTarget(): import("../dnd/droptarget").DropTargetTargetModel | undefined;
|
|
380
559
|
dispatchUnhandledDragOver(nativeEvent: DragEvent | PointerEvent, position: Position): boolean;
|
|
@@ -385,7 +564,7 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
385
564
|
/**
|
|
386
565
|
* Resolve the custom group drag ghost (via the AdvancedDnD module), or
|
|
387
566
|
* `undefined` to fall back to the default chip. Returns `undefined` when
|
|
388
|
-
* the module is absent
|
|
567
|
+
* the module is absent, and the default ghost then renders.
|
|
389
568
|
*/
|
|
390
569
|
buildGroupDragGhost(group: DockviewGroupPanel): IDragGhostSpec | undefined;
|
|
391
570
|
/**
|
|
@@ -393,13 +572,22 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
393
572
|
* for a group drop target, or `undefined` to keep the target's default.
|
|
394
573
|
*/
|
|
395
574
|
resolveDropOverlayModel(location: DockviewGroupDropLocation, group?: DockviewGroupPanel): DroptargetOverlayModel | undefined;
|
|
396
|
-
/** Outermost element
|
|
575
|
+
/** Outermost element: the shell (incl. edge groups) once built, else the gridview. */
|
|
397
576
|
get rootElement(): HTMLElement;
|
|
577
|
+
/**
|
|
578
|
+
* Does this dock own `node`, in any of its windows? True when the node is
|
|
579
|
+
* inside the main shell, or inside one of this component's popout documents.
|
|
580
|
+
* A popout window hosts only this component's content, so whole-document
|
|
581
|
+
* membership is sufficient there; the main document may hold sibling docks,
|
|
582
|
+
* so it must be a containment check. A same-document popout (the jsdom mock)
|
|
583
|
+
* is already covered by the main check and contributes nothing.
|
|
584
|
+
*/
|
|
585
|
+
ownsElement(node: Node): boolean;
|
|
398
586
|
/**
|
|
399
587
|
* The next / previous group in gridview (spatial) order, wrapping round.
|
|
400
588
|
* The keyboard accessibility module's focus navigation is built on this
|
|
401
|
-
* primitive
|
|
402
|
-
* the navigation logic lives in the
|
|
589
|
+
* primitive, the only piece that needs the grid internals; the rest of
|
|
590
|
+
* the navigation logic lives in the KeyboardNavigationService.
|
|
403
591
|
*/
|
|
404
592
|
adjacentGroup(group: DockviewGroupPanel, reverse: boolean): DockviewGroupPanel | undefined;
|
|
405
593
|
/**
|
|
@@ -412,7 +600,22 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
412
600
|
showDropPreview(group: DockviewGroupPanel, position: Position): IDisposable;
|
|
413
601
|
announce(message: string): void;
|
|
414
602
|
dockPanel(panel: IDockviewPanel, group: DockviewGroupPanel, position: Position): void;
|
|
603
|
+
floatPanel(panel: IDockviewPanel): void;
|
|
415
604
|
get contextMenuService(): IContextMenuService | undefined;
|
|
605
|
+
get pinnedTabsService(): IPinnedTabsService | undefined;
|
|
606
|
+
get advancedOverflowService(): IAdvancedOverflowService | undefined;
|
|
607
|
+
/**
|
|
608
|
+
* Pin/unpin a panel's tab. The single gated entry point behind
|
|
609
|
+
* `panel.api.setPinned`. Dormant unless `pinnedTabs.enabled` is set (a
|
|
610
|
+
* silent no-op), and a silent no-op when the PinnedTabs module is not
|
|
611
|
+
* registered: reaching past the `enabled` check means the option was set,
|
|
612
|
+
* so the option rule has already named the missing module. When active it
|
|
613
|
+
* mutates the panel's pinned flag (which fires
|
|
614
|
+
* `panel.api.onDidChangePinned`) and the component-level
|
|
615
|
+
* `onDidPanelPinnedChange`; the module reacts to enforce pinned-first
|
|
616
|
+
* ordering.
|
|
617
|
+
*/
|
|
618
|
+
setPanelPinned(panel: DockviewPanel, pinned: boolean): void;
|
|
416
619
|
get mountElement(): HTMLElement;
|
|
417
620
|
hasVisibleGridGroup(): boolean;
|
|
418
621
|
fireLayoutChange(): void;
|
|
@@ -433,9 +636,12 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
433
636
|
addPopoutGroup(itemToPopout: DockviewPanel | DockviewGroupPanel, options?: DockviewPopoutGroupOptionsInternal): Promise<boolean>;
|
|
434
637
|
/** Enumerate the popout groups currently open in their own windows. */
|
|
435
638
|
getPopouts(): PopoutGroup[];
|
|
639
|
+
/** The live popout `Window` handles, one per open popout group. The
|
|
640
|
+
* narrow surface accessibility services need to mirror per-window state. */
|
|
641
|
+
getPopoutWindows(): Window[];
|
|
436
642
|
private _doAddPopoutGroup;
|
|
437
643
|
/**
|
|
438
|
-
* The popout window was blocked (e.g. by the browser's popup blocker
|
|
644
|
+
* The popout window was blocked (e.g. by the browser's popup blocker,
|
|
439
645
|
* common when restoring popouts on load). Fall back gracefully so the
|
|
440
646
|
* group(s) end up valid and visible in the main grid rather than as
|
|
441
647
|
* orphans that later crash clear()/remove().
|
|
@@ -445,7 +651,7 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
445
651
|
* Wire a group that has been displaced from a floating / popout window back
|
|
446
652
|
* to the main grid's render & drop-target containers and dock it at the
|
|
447
653
|
* root. The caller is responsible for first detaching it from its old
|
|
448
|
-
* gridview
|
|
654
|
+
* gridview; the detach strategy differs between the window-teardown path
|
|
449
655
|
* (`doRemoveGroup`) and the blocked-window path (`gridview.remove`).
|
|
450
656
|
*/
|
|
451
657
|
private redockGroupToMainGrid;
|
|
@@ -472,29 +678,111 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
472
678
|
private mountFloatingWindow;
|
|
473
679
|
private orthogonalize;
|
|
474
680
|
updateOptions(options: Partial<DockviewComponentOptions>): void;
|
|
681
|
+
/**
|
|
682
|
+
* Report any option the caller set whose module isn't registered. Logs
|
|
683
|
+
* once per module+reason; never throws, matching the module system's
|
|
684
|
+
* degrade-to-no-op contract.
|
|
685
|
+
*/
|
|
686
|
+
private reportMissingOptionModules;
|
|
475
687
|
layout(width: number, height: number, forceResize?: boolean | undefined): void;
|
|
476
688
|
private _syncFloatingOverlayHost;
|
|
477
689
|
private _layoutFromShell;
|
|
478
690
|
protected forceRelayout(): void;
|
|
479
|
-
addEdgeGroup(position: EdgeGroupPosition, options:
|
|
691
|
+
addEdgeGroup(position: EdgeGroupPosition, options: AddEdgeGroupOptions): DockviewGroupPanelApi;
|
|
692
|
+
/**
|
|
693
|
+
* Reveal (create-or-fill) the edge group at `position` and move the dragged
|
|
694
|
+
* item described by `data` into it. A newly created edge group is created
|
|
695
|
+
* collapsed, flagged `autoReveal` so it tears down to zero footprint when
|
|
696
|
+
* later emptied, and takes its auto-hide state from `options.autoHide`. If an
|
|
697
|
+
* edge group already exists there it is reused: the panel is added to its
|
|
698
|
+
* tabs and its collapsed/toggled *and auto-hide* state are left as-is (never
|
|
699
|
+
* re-created; `addEdgeGroup` throws on a duplicate position). This keeps a
|
|
700
|
+
* drag-reveal from silently converting a static edge group into an
|
|
701
|
+
* auto-hiding one; to change an existing group's auto-hide, call
|
|
702
|
+
* `api.getEdgeGroup(position)?.setAutoHide(...)` directly. No-op if the
|
|
703
|
+
* EdgeGroup module is absent.
|
|
704
|
+
*
|
|
705
|
+
* This is the primitive behind the dock-to-edge groups: the two-band
|
|
706
|
+
* drag-reveal affordance routes its outer-band drops here.
|
|
707
|
+
*/
|
|
708
|
+
revealEdgeGroupWithData(position: EdgeGroupPosition, data: {
|
|
709
|
+
groupId: string;
|
|
710
|
+
panelId?: string | null;
|
|
711
|
+
}, options?: {
|
|
712
|
+
autoHide?: boolean;
|
|
713
|
+
}): void;
|
|
480
714
|
getEdgeGroup(position: EdgeGroupPosition): DockviewGroupPanelApi | undefined;
|
|
715
|
+
/** The edge group panel at a position (the model, not the api). */
|
|
716
|
+
getEdgeGroupPanel(position: EdgeGroupPosition): DockviewGroupPanel | undefined;
|
|
717
|
+
/** Pin (expand) the edge group at a position. Reports the missing module if
|
|
718
|
+
* AutoHideEdgeGroup is absent, since this command is reachable without the
|
|
719
|
+
* `autoHideEdgeGroups` option that would otherwise have named it. */
|
|
720
|
+
pinEdgeGroup(position: EdgeGroupPosition): void;
|
|
721
|
+
/** Auto-hide (collapse to strip) the edge group at a position. */
|
|
722
|
+
autoHideEdgeGroup(position: EdgeGroupPosition): void;
|
|
723
|
+
/** Peek (slide out) / close the collapsed edge group at a position. */
|
|
724
|
+
peekEdgeGroup(position: EdgeGroupPosition, peek: boolean): void;
|
|
725
|
+
/** The auto-hide peek mounts on the shell, the same element the
|
|
726
|
+
* `OverlayRenderContainer` roots on, so `always` content re-anchors in the
|
|
727
|
+
* peek's coordinate space. */
|
|
728
|
+
get overlayRoot(): HTMLElement;
|
|
729
|
+
/** Viewport rect of the docked content area (the element the root/group drop
|
|
730
|
+
* targets hit-test against), used by the two-band drag-reveal affordance to
|
|
731
|
+
* classify a pointer's distance from each edge. This is the gridview/center
|
|
732
|
+
* container, which is inset when edge groups are present, so the outer band
|
|
733
|
+
* sits at the boundary of the content area (adjacent to any existing edge
|
|
734
|
+
* group) rather than at the shell's outer edge. */
|
|
735
|
+
getDropZoneRect(): DOMRect;
|
|
736
|
+
/** The size an edge group expands to (pre-collapse); sizes the peek. */
|
|
737
|
+
getEdgeGroupExpandedSize(position: EdgeGroupPosition): number;
|
|
738
|
+
/** Reposition a single `renderer:'always'` panel's overlay over its
|
|
739
|
+
* reference container, optionally forcing it visible (the auto-hide peek
|
|
740
|
+
* slides an `always` panel out without reparenting it or touching its
|
|
741
|
+
* visibility state). No-op for non-overlay-rendered panels. */
|
|
742
|
+
repositionPanelOverlay(panel: IDockviewPanel, forceVisible: boolean, clip?: DOMRect): void;
|
|
481
743
|
setEdgeGroupVisible(position: EdgeGroupPosition, visible: boolean): void;
|
|
482
744
|
isEdgeGroupVisible(position: EdgeGroupPosition): boolean;
|
|
483
745
|
removeEdgeGroup(position: EdgeGroupPosition): void;
|
|
484
746
|
setEdgeGroupCollapsed(group: DockviewGroupPanel, collapsed: boolean): void;
|
|
485
747
|
isEdgeGroupCollapsed(group: DockviewGroupPanel): boolean;
|
|
748
|
+
/** Edge groups currently peeking (auto-hide). The peek state is owned by the
|
|
749
|
+
* auto-hide module; the component just records it so `group.api.isPeeking()`
|
|
750
|
+
* / `onDidPeekChange` work. */
|
|
751
|
+
private readonly _peekingGroups;
|
|
752
|
+
isEdgeGroupPeeking(group: DockviewGroupPanel): boolean;
|
|
753
|
+
/** Set the peek state and fire the group's `onDidPeekChange` (called by the
|
|
754
|
+
* auto-hide service). */
|
|
755
|
+
setEdgeGroupPeeking(group: DockviewGroupPanel, peeking: boolean): void;
|
|
756
|
+
/**
|
|
757
|
+
* Resolve whether an edge group should behave as an auto-hide (pinnable)
|
|
758
|
+
* tool window: the per-group flag when set, otherwise the per-edge
|
|
759
|
+
* `autoHideEdgeGroups` option for the group's edge. This is what lets a
|
|
760
|
+
* static edge group and an auto-hiding one co-exist in the same layout.
|
|
761
|
+
*/
|
|
762
|
+
isEdgeGroupAutoHide(group: DockviewGroupPanel): boolean;
|
|
763
|
+
/**
|
|
764
|
+
* Set (or clear, via `undefined`) the per-group auto-hide flag and notify
|
|
765
|
+
* the auto-hide module so it can dock/undock the group at runtime.
|
|
766
|
+
*/
|
|
767
|
+
setEdgeGroupAutoHide(group: DockviewGroupPanel, value: boolean | undefined): void;
|
|
486
768
|
private updateDragAndDropState;
|
|
487
769
|
focus(): void;
|
|
488
770
|
getGroupPanel(id: string): IDockviewPanel | undefined;
|
|
489
771
|
setActivePanel(panel: IDockviewPanel): void;
|
|
490
|
-
|
|
491
|
-
|
|
772
|
+
activateNext(options?: MovementOptions): void;
|
|
773
|
+
activatePrevious(options?: MovementOptions): void;
|
|
492
774
|
/**
|
|
493
775
|
* Serialize the current state of the layout
|
|
494
776
|
*
|
|
495
777
|
* @returns A JSON respresentation of the layout
|
|
496
778
|
*/
|
|
497
779
|
toJSON(): SerializedDockview;
|
|
780
|
+
/**
|
|
781
|
+
* Serialize the edge groups, augmenting each shell entry with the serialized
|
|
782
|
+
* group state + the component-owned per-group presentation flags (the shell
|
|
783
|
+
* only knows geometry/collapse). Returns `undefined` when there are none.
|
|
784
|
+
*/
|
|
785
|
+
private _serializeEdgeGroups;
|
|
498
786
|
fromJSON(data: SerializedDockview, options?: {
|
|
499
787
|
reuseExistingPanels: boolean;
|
|
500
788
|
}): void;
|
|
@@ -536,7 +824,7 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
536
824
|
*
|
|
537
825
|
* @returns `true` if the group was detached from a multi-member window;
|
|
538
826
|
* `false` if `group` is not in a nested window, or is the window's only
|
|
539
|
-
* member
|
|
827
|
+
* member, in which case the caller is responsible for disposing the whole
|
|
540
828
|
* window.
|
|
541
829
|
*/
|
|
542
830
|
private detachFromNestedWindow;
|
|
@@ -579,7 +867,7 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
579
867
|
* Run `func` with the operation origin set to `origin`, restoring the
|
|
580
868
|
* previous value afterwards. Used by the DockviewApi boundary to tag
|
|
581
869
|
* programmatic operations as `'api'`, and by user-gesture handlers to tag
|
|
582
|
-
* `'user'`. Only the outermost caller sets the origin
|
|
870
|
+
* `'user'`. Only the outermost caller sets the origin; a nested call (or a
|
|
583
871
|
* call made while a mutation is already in flight) keeps whatever the
|
|
584
872
|
* enclosing operation established, so the trigger always wins.
|
|
585
873
|
*/
|
|
@@ -30,6 +30,11 @@ export declare class DockviewGroupPanel extends GridviewPanel<DockviewGroupPanel
|
|
|
30
30
|
initialize(): void;
|
|
31
31
|
setActive(isActive: boolean): void;
|
|
32
32
|
layout(width: number, height: number): void;
|
|
33
|
+
/**
|
|
34
|
+
* Re-run the group's layout with its current dimensions, propagating a
|
|
35
|
+
* header-size change down to the content + active panel.
|
|
36
|
+
*/
|
|
37
|
+
relayout(): void;
|
|
33
38
|
getComponent(): IFrameworkPart;
|
|
34
39
|
toJSON(): any;
|
|
35
40
|
}
|