dockview-core 7.0.4 → 8.0.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/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 +46 -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 +303 -19
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +5 -0
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +52 -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 +480 -14
- package/dist/cjs/dockview/modules.d.ts +101 -22
- package/dist/cjs/dockview/options.d.ts +337 -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/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/gridview/baseComponentGridview.d.ts +2 -2
- 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/svg.d.ts +1 -0
- package/dist/cjs/types.d.ts +8 -0
- package/dist/dockview-core.js +18391 -19679
- package/dist/dockview-core.min.js +4138 -6
- package/dist/dockview-core.min.noStyle.js +6 -7
- package/dist/dockview-core.noStyle.js +18390 -19656
- package/dist/package/main.cjs.js +18002 -19268
- package/dist/package/main.cjs.min.js +6 -6
- package/dist/package/main.esm.min.mjs +6 -6
- package/dist/package/main.esm.mjs +17959 -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,257 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Accreditation: This file is largly based upon the MIT licenced VSCode sourcecode found at:
|
|
3
|
-
* https://github.com/microsoft/vscode/tree/main/src/vs/base/browser/ui/grid
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Splitview, Orientation, LayoutPriority, } from '../splitview/splitview';
|
|
6
|
-
import { Emitter, Event } from '../events';
|
|
7
|
-
import { LeafNode } from './leafNode';
|
|
8
|
-
import { CompositeDisposable, Disposable } from '../lifecycle';
|
|
9
|
-
export class BranchNode extends CompositeDisposable {
|
|
10
|
-
get width() {
|
|
11
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
12
|
-
? this.size
|
|
13
|
-
: this.orthogonalSize;
|
|
14
|
-
}
|
|
15
|
-
get height() {
|
|
16
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
17
|
-
? this.orthogonalSize
|
|
18
|
-
: this.size;
|
|
19
|
-
}
|
|
20
|
-
get minimumSize() {
|
|
21
|
-
return this.children.length === 0
|
|
22
|
-
? 0
|
|
23
|
-
: Math.max(...this.children.map((c, index) => this.splitview.isViewVisible(index)
|
|
24
|
-
? c.minimumOrthogonalSize
|
|
25
|
-
: 0));
|
|
26
|
-
}
|
|
27
|
-
get maximumSize() {
|
|
28
|
-
return Math.min(...this.children.map((c, index) => this.splitview.isViewVisible(index)
|
|
29
|
-
? c.maximumOrthogonalSize
|
|
30
|
-
: Number.POSITIVE_INFINITY));
|
|
31
|
-
}
|
|
32
|
-
get minimumOrthogonalSize() {
|
|
33
|
-
return this.splitview.minimumSize;
|
|
34
|
-
}
|
|
35
|
-
get maximumOrthogonalSize() {
|
|
36
|
-
return this.splitview.maximumSize;
|
|
37
|
-
}
|
|
38
|
-
get orthogonalSize() {
|
|
39
|
-
return this._orthogonalSize;
|
|
40
|
-
}
|
|
41
|
-
get size() {
|
|
42
|
-
return this._size;
|
|
43
|
-
}
|
|
44
|
-
get minimumWidth() {
|
|
45
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
46
|
-
? this.minimumOrthogonalSize
|
|
47
|
-
: this.minimumSize;
|
|
48
|
-
}
|
|
49
|
-
get minimumHeight() {
|
|
50
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
51
|
-
? this.minimumSize
|
|
52
|
-
: this.minimumOrthogonalSize;
|
|
53
|
-
}
|
|
54
|
-
get maximumWidth() {
|
|
55
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
56
|
-
? this.maximumOrthogonalSize
|
|
57
|
-
: this.maximumSize;
|
|
58
|
-
}
|
|
59
|
-
get maximumHeight() {
|
|
60
|
-
return this.orientation === Orientation.HORIZONTAL
|
|
61
|
-
? this.maximumSize
|
|
62
|
-
: this.maximumOrthogonalSize;
|
|
63
|
-
}
|
|
64
|
-
get priority() {
|
|
65
|
-
if (this.children.length === 0) {
|
|
66
|
-
return LayoutPriority.Normal;
|
|
67
|
-
}
|
|
68
|
-
const priorities = new Set(this.children.map((c) => { var _a; return (_a = c.priority) !== null && _a !== void 0 ? _a : LayoutPriority.Normal; }));
|
|
69
|
-
if (priorities.has(LayoutPriority.High)) {
|
|
70
|
-
return LayoutPriority.High;
|
|
71
|
-
}
|
|
72
|
-
else if (priorities.has(LayoutPriority.Low)) {
|
|
73
|
-
return LayoutPriority.Low;
|
|
74
|
-
}
|
|
75
|
-
return LayoutPriority.Normal;
|
|
76
|
-
}
|
|
77
|
-
get disabled() {
|
|
78
|
-
return this.splitview.disabled;
|
|
79
|
-
}
|
|
80
|
-
set disabled(value) {
|
|
81
|
-
this.splitview.disabled = value;
|
|
82
|
-
}
|
|
83
|
-
get margin() {
|
|
84
|
-
return this.splitview.margin;
|
|
85
|
-
}
|
|
86
|
-
set margin(value) {
|
|
87
|
-
this.splitview.margin = value;
|
|
88
|
-
this.children.forEach((child) => {
|
|
89
|
-
if (child instanceof BranchNode) {
|
|
90
|
-
child.margin = value;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
constructor(orientation, proportionalLayout, styles, size, orthogonalSize, disabled, margin, childDescriptors) {
|
|
95
|
-
super();
|
|
96
|
-
this.orientation = orientation;
|
|
97
|
-
this.proportionalLayout = proportionalLayout;
|
|
98
|
-
this.styles = styles;
|
|
99
|
-
this._childrenDisposable = Disposable.NONE;
|
|
100
|
-
this.children = [];
|
|
101
|
-
this._onDidChange = new Emitter();
|
|
102
|
-
this.onDidChange = this._onDidChange.event;
|
|
103
|
-
this._onDidVisibilityChange = new Emitter();
|
|
104
|
-
this.onDidVisibilityChange = this._onDidVisibilityChange.event;
|
|
105
|
-
this._orthogonalSize = orthogonalSize;
|
|
106
|
-
this._size = size;
|
|
107
|
-
this.element = document.createElement('div');
|
|
108
|
-
this.element.className = 'dv-branch-node';
|
|
109
|
-
if (childDescriptors) {
|
|
110
|
-
const descriptor = {
|
|
111
|
-
views: childDescriptors.map((childDescriptor) => {
|
|
112
|
-
return {
|
|
113
|
-
view: childDescriptor.node,
|
|
114
|
-
size: childDescriptor.node.size,
|
|
115
|
-
visible: childDescriptor.node instanceof LeafNode &&
|
|
116
|
-
childDescriptor.visible !== undefined
|
|
117
|
-
? childDescriptor.visible
|
|
118
|
-
: true,
|
|
119
|
-
};
|
|
120
|
-
}),
|
|
121
|
-
size: this.orthogonalSize,
|
|
122
|
-
};
|
|
123
|
-
this.children = childDescriptors.map((c) => c.node);
|
|
124
|
-
this.splitview = new Splitview(this.element, {
|
|
125
|
-
orientation: this.orientation,
|
|
126
|
-
descriptor,
|
|
127
|
-
proportionalLayout,
|
|
128
|
-
styles,
|
|
129
|
-
margin,
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this.splitview = new Splitview(this.element, {
|
|
134
|
-
orientation: this.orientation,
|
|
135
|
-
proportionalLayout,
|
|
136
|
-
styles,
|
|
137
|
-
margin,
|
|
138
|
-
});
|
|
139
|
-
this.splitview.layout(this.size, this.orthogonalSize);
|
|
140
|
-
}
|
|
141
|
-
this.disabled = disabled;
|
|
142
|
-
this.addDisposables(this._onDidChange, this._onDidVisibilityChange, this.splitview.onDidSashEnd(() => {
|
|
143
|
-
this._onDidChange.fire({});
|
|
144
|
-
}));
|
|
145
|
-
this.setupChildrenEvents();
|
|
146
|
-
}
|
|
147
|
-
setVisible(_visible) {
|
|
148
|
-
// noop
|
|
149
|
-
}
|
|
150
|
-
isChildVisible(index) {
|
|
151
|
-
if (index < 0 || index >= this.children.length) {
|
|
152
|
-
throw new Error('Invalid index');
|
|
153
|
-
}
|
|
154
|
-
return this.splitview.isViewVisible(index);
|
|
155
|
-
}
|
|
156
|
-
setChildVisible(index, visible) {
|
|
157
|
-
if (index < 0 || index >= this.children.length) {
|
|
158
|
-
throw new Error('Invalid index');
|
|
159
|
-
}
|
|
160
|
-
if (this.splitview.isViewVisible(index) === visible) {
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
const wereAllChildrenHidden = this.splitview.contentSize === 0;
|
|
164
|
-
this.splitview.setViewVisible(index, visible);
|
|
165
|
-
// }
|
|
166
|
-
const areAllChildrenHidden = this.splitview.contentSize === 0;
|
|
167
|
-
// If all children are hidden then the parent should hide the entire splitview
|
|
168
|
-
// If the entire splitview is hidden then the parent should show the splitview when a child is shown
|
|
169
|
-
if ((visible && wereAllChildrenHidden) ||
|
|
170
|
-
(!visible && areAllChildrenHidden)) {
|
|
171
|
-
this._onDidVisibilityChange.fire({ visible });
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
moveChild(from, to) {
|
|
175
|
-
if (from === to) {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
if (from < 0 || from >= this.children.length) {
|
|
179
|
-
throw new Error('Invalid from index');
|
|
180
|
-
}
|
|
181
|
-
if (from < to) {
|
|
182
|
-
to--;
|
|
183
|
-
}
|
|
184
|
-
this.splitview.moveView(from, to);
|
|
185
|
-
const child = this._removeChild(from);
|
|
186
|
-
this._addChild(child, to);
|
|
187
|
-
}
|
|
188
|
-
getChildSize(index) {
|
|
189
|
-
if (index < 0 || index >= this.children.length) {
|
|
190
|
-
throw new Error('Invalid index');
|
|
191
|
-
}
|
|
192
|
-
return this.splitview.getViewSize(index);
|
|
193
|
-
}
|
|
194
|
-
resizeChild(index, size) {
|
|
195
|
-
if (index < 0 || index >= this.children.length) {
|
|
196
|
-
throw new Error('Invalid index');
|
|
197
|
-
}
|
|
198
|
-
this.splitview.resizeView(index, size);
|
|
199
|
-
}
|
|
200
|
-
layout(size, orthogonalSize) {
|
|
201
|
-
this._size = orthogonalSize;
|
|
202
|
-
this._orthogonalSize = size;
|
|
203
|
-
this.splitview.layout(orthogonalSize, size);
|
|
204
|
-
}
|
|
205
|
-
addChild(node, size, index, skipLayout) {
|
|
206
|
-
if (index < 0 || index > this.children.length) {
|
|
207
|
-
throw new Error('Invalid index');
|
|
208
|
-
}
|
|
209
|
-
this.splitview.addView(node, size, index, skipLayout);
|
|
210
|
-
this._addChild(node, index);
|
|
211
|
-
}
|
|
212
|
-
getChildCachedVisibleSize(index) {
|
|
213
|
-
if (index < 0 || index >= this.children.length) {
|
|
214
|
-
throw new Error('Invalid index');
|
|
215
|
-
}
|
|
216
|
-
return this.splitview.getViewCachedVisibleSize(index);
|
|
217
|
-
}
|
|
218
|
-
removeChild(index, sizing) {
|
|
219
|
-
if (index < 0 || index >= this.children.length) {
|
|
220
|
-
throw new Error('Invalid index');
|
|
221
|
-
}
|
|
222
|
-
this.splitview.removeView(index, sizing);
|
|
223
|
-
return this._removeChild(index);
|
|
224
|
-
}
|
|
225
|
-
_addChild(node, index) {
|
|
226
|
-
this.children.splice(index, 0, node);
|
|
227
|
-
this.setupChildrenEvents();
|
|
228
|
-
}
|
|
229
|
-
_removeChild(index) {
|
|
230
|
-
const [child] = this.children.splice(index, 1);
|
|
231
|
-
this.setupChildrenEvents();
|
|
232
|
-
return child;
|
|
233
|
-
}
|
|
234
|
-
setupChildrenEvents() {
|
|
235
|
-
this._childrenDisposable.dispose();
|
|
236
|
-
this._childrenDisposable = new CompositeDisposable(Event.any(...this.children.map((c) => c.onDidChange))((e) => {
|
|
237
|
-
/**
|
|
238
|
-
* indicate a change has occured to allows any re-rendering but don't bubble
|
|
239
|
-
* event because that was specific to this branch
|
|
240
|
-
*/
|
|
241
|
-
this._onDidChange.fire({ size: e.orthogonalSize });
|
|
242
|
-
}), ...this.children.map((c, i) => {
|
|
243
|
-
if (c instanceof BranchNode) {
|
|
244
|
-
return c.onDidVisibilityChange(({ visible }) => {
|
|
245
|
-
this.setChildVisible(i, visible);
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
return Disposable.NONE;
|
|
249
|
-
}));
|
|
250
|
-
}
|
|
251
|
-
dispose() {
|
|
252
|
-
this._childrenDisposable.dispose();
|
|
253
|
-
this.splitview.dispose();
|
|
254
|
-
this.children.forEach((child) => child.dispose());
|
|
255
|
-
super.dispose();
|
|
256
|
-
}
|
|
257
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { ISplitviewStyles, LayoutPriority, Orientation, Sizing } from '../splitview/splitview';
|
|
2
|
-
import { LeafNode } from './leafNode';
|
|
3
|
-
import { Node } from './types';
|
|
4
|
-
import { Event } from '../events';
|
|
5
|
-
import { IDisposable } from '../lifecycle';
|
|
6
|
-
import { Position } from '../dnd/droptarget';
|
|
7
|
-
export declare function indexInParent(element: HTMLElement): number;
|
|
8
|
-
/**
|
|
9
|
-
* Find the grid location of a specific DOM element by traversing the parent
|
|
10
|
-
* chain and finding each child index on the way.
|
|
11
|
-
*
|
|
12
|
-
* This will break as soon as DOM structures of the Splitview or Gridview change.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getGridLocation(element: HTMLElement): number[];
|
|
15
|
-
export declare function getRelativeLocation(rootOrientation: Orientation, location: number[], direction: Position): number[];
|
|
16
|
-
export declare function getDirectionOrientation(direction: Position): Orientation;
|
|
17
|
-
export declare function getLocationOrientation(rootOrientation: Orientation, location: number[]): Orientation;
|
|
18
|
-
export interface IViewSize {
|
|
19
|
-
width?: number;
|
|
20
|
-
height?: number;
|
|
21
|
-
}
|
|
22
|
-
export interface IGridView {
|
|
23
|
-
readonly onDidChange: Event<IViewSize | undefined>;
|
|
24
|
-
readonly element: HTMLElement;
|
|
25
|
-
readonly minimumWidth: number;
|
|
26
|
-
readonly maximumWidth: number;
|
|
27
|
-
readonly minimumHeight: number;
|
|
28
|
-
readonly maximumHeight: number;
|
|
29
|
-
readonly isVisible: boolean;
|
|
30
|
-
priority?: LayoutPriority;
|
|
31
|
-
layout(width: number, height: number): void;
|
|
32
|
-
toJSON(): object;
|
|
33
|
-
fromJSON?(json: object): void;
|
|
34
|
-
snap?: boolean;
|
|
35
|
-
setVisible?(visible: boolean): void;
|
|
36
|
-
}
|
|
37
|
-
export declare const orthogonal: (orientation: Orientation) => Orientation;
|
|
38
|
-
export interface GridLeafNode<T extends IGridView> {
|
|
39
|
-
readonly view: T;
|
|
40
|
-
readonly cachedVisibleSize: number | undefined;
|
|
41
|
-
readonly box: {
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export interface GridBranchNode<T extends IGridView> {
|
|
47
|
-
readonly children: GridNode<T>[];
|
|
48
|
-
readonly box: {
|
|
49
|
-
width: number;
|
|
50
|
-
height: number;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export type GridNode<T extends IGridView> = GridLeafNode<T> | GridBranchNode<T>;
|
|
54
|
-
export declare function isGridBranchNode<T extends IGridView>(node: GridNode<T>): node is GridBranchNode<T>;
|
|
55
|
-
export interface SerializedGridObject<T> {
|
|
56
|
-
type: 'leaf' | 'branch';
|
|
57
|
-
data: T | SerializedGridObject<T>[];
|
|
58
|
-
size?: number;
|
|
59
|
-
visible?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface ISerializedLeafNode<T = any> {
|
|
62
|
-
type: 'leaf';
|
|
63
|
-
data: T;
|
|
64
|
-
size: number;
|
|
65
|
-
visible?: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface ISerializedBranchNode {
|
|
68
|
-
type: 'branch';
|
|
69
|
-
data: ISerializedNode[];
|
|
70
|
-
size: number;
|
|
71
|
-
}
|
|
72
|
-
export type ISerializedNode = ISerializedLeafNode | ISerializedBranchNode;
|
|
73
|
-
export interface INodeDescriptor {
|
|
74
|
-
node: Node;
|
|
75
|
-
visible?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface IViewDeserializer {
|
|
78
|
-
fromJSON: (data: ISerializedLeafNode) => IGridView;
|
|
79
|
-
}
|
|
80
|
-
export interface SerializedNodeDescriptor {
|
|
81
|
-
location: number[];
|
|
82
|
-
}
|
|
83
|
-
export interface SerializedGridview<T> {
|
|
84
|
-
root: SerializedGridObject<T>;
|
|
85
|
-
width: number;
|
|
86
|
-
height: number;
|
|
87
|
-
orientation: Orientation;
|
|
88
|
-
maximizedNode?: SerializedNodeDescriptor;
|
|
89
|
-
}
|
|
90
|
-
export interface MaximizedViewChanged {
|
|
91
|
-
view: IGridView;
|
|
92
|
-
isMaximized: boolean;
|
|
93
|
-
}
|
|
94
|
-
export declare class Gridview implements IDisposable {
|
|
95
|
-
readonly proportionalLayout: boolean;
|
|
96
|
-
readonly styles: ISplitviewStyles | undefined;
|
|
97
|
-
readonly element: HTMLElement;
|
|
98
|
-
private _root;
|
|
99
|
-
private _locked;
|
|
100
|
-
private _margin;
|
|
101
|
-
private _maximizedNode;
|
|
102
|
-
private readonly disposable;
|
|
103
|
-
private readonly _onDidChange;
|
|
104
|
-
readonly onDidChange: Event<{
|
|
105
|
-
size?: number;
|
|
106
|
-
orthogonalSize?: number;
|
|
107
|
-
}>;
|
|
108
|
-
private readonly _onDidViewVisibilityChange;
|
|
109
|
-
readonly onDidViewVisibilityChange: Event<void>;
|
|
110
|
-
private readonly _onDidMaximizedNodeChange;
|
|
111
|
-
readonly onDidMaximizedNodeChange: Event<MaximizedViewChanged>;
|
|
112
|
-
get length(): number;
|
|
113
|
-
get orientation(): Orientation;
|
|
114
|
-
set orientation(orientation: Orientation);
|
|
115
|
-
get width(): number;
|
|
116
|
-
get height(): number;
|
|
117
|
-
get minimumWidth(): number;
|
|
118
|
-
get minimumHeight(): number;
|
|
119
|
-
get maximumWidth(): number;
|
|
120
|
-
get maximumHeight(): number;
|
|
121
|
-
get locked(): boolean;
|
|
122
|
-
set locked(value: boolean);
|
|
123
|
-
get margin(): number;
|
|
124
|
-
set margin(value: number);
|
|
125
|
-
maximizedView(): IGridView | undefined;
|
|
126
|
-
hasMaximizedView(): boolean;
|
|
127
|
-
maximizeView(view: IGridView): void;
|
|
128
|
-
exitMaximizedView(): void;
|
|
129
|
-
serialize(): SerializedGridview<any>;
|
|
130
|
-
dispose(): void;
|
|
131
|
-
clear(): void;
|
|
132
|
-
deserialize<T>(json: SerializedGridview<T>, deserializer: IViewDeserializer): void;
|
|
133
|
-
private _deserialize;
|
|
134
|
-
private _deserializeNode;
|
|
135
|
-
private get root();
|
|
136
|
-
private set root(value);
|
|
137
|
-
normalize(): void;
|
|
138
|
-
/**
|
|
139
|
-
* If the root is orientated as a VERTICAL node then nest the existing root within a new HORIZIONTAL root node
|
|
140
|
-
* If the root is orientated as a HORIZONTAL node then nest the existing root within a new VERITCAL root node
|
|
141
|
-
*/
|
|
142
|
-
insertOrthogonalSplitviewAtRoot(): void;
|
|
143
|
-
next(location: number[]): LeafNode;
|
|
144
|
-
previous(location: number[]): LeafNode;
|
|
145
|
-
getView(): GridBranchNode<IGridView>;
|
|
146
|
-
getView(location?: number[]): GridNode<IGridView>;
|
|
147
|
-
private _getViews;
|
|
148
|
-
private progmaticSelect;
|
|
149
|
-
constructor(proportionalLayout: boolean, styles: ISplitviewStyles | undefined, orientation: Orientation, locked?: boolean, margin?: number);
|
|
150
|
-
isViewVisible(location: number[]): boolean;
|
|
151
|
-
setViewVisible(location: number[], visible: boolean): void;
|
|
152
|
-
moveView(parentLocation: number[], from: number, to: number): void;
|
|
153
|
-
addView(view: IGridView, size: number | Sizing, location: number[]): void;
|
|
154
|
-
remove(view: IGridView, sizing?: Sizing): IGridView;
|
|
155
|
-
removeView(location: number[], sizing?: Sizing): IGridView;
|
|
156
|
-
layout(width: number, height: number): void;
|
|
157
|
-
private getNode;
|
|
158
|
-
}
|