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,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
-
if (!m) return o;
|
|
16
|
-
var i = m.call(o), r, ar = [], e;
|
|
17
|
-
try {
|
|
18
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
-
}
|
|
20
|
-
catch (error) { e = { error: error }; }
|
|
21
|
-
finally {
|
|
22
|
-
try {
|
|
23
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
-
}
|
|
25
|
-
finally { if (e) throw e.error; }
|
|
26
|
-
}
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.EdgeGroupModule = exports.EdgeGroupService = void 0;
|
|
31
|
-
var modules_1 = require("./modules");
|
|
32
|
-
var EdgeGroupService = /** @class */ (function () {
|
|
33
|
-
function EdgeGroupService() {
|
|
34
|
-
this._edgeGroups = new Map();
|
|
35
|
-
this._edgeGroupDisposables = new Map();
|
|
36
|
-
}
|
|
37
|
-
// No constructor needed — the host is currently unused. The
|
|
38
|
-
// IEdgeGroupServiceHost slot stays for symmetry with the other modules
|
|
39
|
-
// and to leave room for future host callbacks.
|
|
40
|
-
EdgeGroupService.prototype.add = function (position, group, autoCollapseDisposable) {
|
|
41
|
-
this._edgeGroups.set(position, group);
|
|
42
|
-
this._edgeGroupDisposables.set(position, autoCollapseDisposable);
|
|
43
|
-
};
|
|
44
|
-
EdgeGroupService.prototype.remove = function (position) {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = this._edgeGroupDisposables.get(position)) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47
|
-
this._edgeGroupDisposables.delete(position);
|
|
48
|
-
this._edgeGroups.delete(position);
|
|
49
|
-
};
|
|
50
|
-
EdgeGroupService.prototype.get = function (position) {
|
|
51
|
-
return this._edgeGroups.get(position);
|
|
52
|
-
};
|
|
53
|
-
EdgeGroupService.prototype.has = function (position) {
|
|
54
|
-
return this._edgeGroups.has(position);
|
|
55
|
-
};
|
|
56
|
-
EdgeGroupService.prototype.hasAny = function () {
|
|
57
|
-
return this._edgeGroups.size > 0;
|
|
58
|
-
};
|
|
59
|
-
EdgeGroupService.prototype.entries = function () {
|
|
60
|
-
return this._edgeGroups.entries();
|
|
61
|
-
};
|
|
62
|
-
EdgeGroupService.prototype.includes = function (group) {
|
|
63
|
-
var e_1, _a;
|
|
64
|
-
try {
|
|
65
|
-
for (var _b = __values(this._edgeGroups.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
66
|
-
var edgeGroup = _c.value;
|
|
67
|
-
if (edgeGroup === group) {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
73
|
-
finally {
|
|
74
|
-
try {
|
|
75
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
76
|
-
}
|
|
77
|
-
finally { if (e_1) throw e_1.error; }
|
|
78
|
-
}
|
|
79
|
-
return false;
|
|
80
|
-
};
|
|
81
|
-
EdgeGroupService.prototype.findPositionOf = function (group) {
|
|
82
|
-
var e_2, _a;
|
|
83
|
-
try {
|
|
84
|
-
for (var _b = __values(this._edgeGroups), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
85
|
-
var _d = __read(_c.value, 2), position = _d[0], edgeGroup = _d[1];
|
|
86
|
-
if (edgeGroup === group) {
|
|
87
|
-
return position;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
92
|
-
finally {
|
|
93
|
-
try {
|
|
94
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
95
|
-
}
|
|
96
|
-
finally { if (e_2) throw e_2.error; }
|
|
97
|
-
}
|
|
98
|
-
return undefined;
|
|
99
|
-
};
|
|
100
|
-
EdgeGroupService.prototype.disposeAll = function () {
|
|
101
|
-
var e_3, _a;
|
|
102
|
-
try {
|
|
103
|
-
for (var _b = __values(this._edgeGroupDisposables.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
104
|
-
var disposable = _c.value;
|
|
105
|
-
disposable.dispose();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
109
|
-
finally {
|
|
110
|
-
try {
|
|
111
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
112
|
-
}
|
|
113
|
-
finally { if (e_3) throw e_3.error; }
|
|
114
|
-
}
|
|
115
|
-
this._edgeGroupDisposables.clear();
|
|
116
|
-
this._edgeGroups.clear();
|
|
117
|
-
};
|
|
118
|
-
EdgeGroupService.prototype.dispose = function () {
|
|
119
|
-
this.disposeAll();
|
|
120
|
-
};
|
|
121
|
-
return EdgeGroupService;
|
|
122
|
-
}());
|
|
123
|
-
exports.EdgeGroupService = EdgeGroupService;
|
|
124
|
-
exports.EdgeGroupModule = (0, modules_1.defineModule)({
|
|
125
|
-
name: 'EdgeGroup',
|
|
126
|
-
serviceKey: 'edgeGroupService',
|
|
127
|
-
create: function () { return new EdgeGroupService(); },
|
|
128
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DockviewWillShowOverlayLocationEvent = void 0;
|
|
4
|
-
var DockviewWillShowOverlayLocationEvent = /** @class */ (function () {
|
|
5
|
-
function DockviewWillShowOverlayLocationEvent(event, options) {
|
|
6
|
-
this.event = event;
|
|
7
|
-
this.options = options;
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "kind", {
|
|
10
|
-
get: function () {
|
|
11
|
-
return this.options.kind;
|
|
12
|
-
},
|
|
13
|
-
enumerable: false,
|
|
14
|
-
configurable: true
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "nativeEvent", {
|
|
17
|
-
/** Narrow with `instanceof DragEvent` before reading `dataTransfer`. */
|
|
18
|
-
get: function () {
|
|
19
|
-
return this.event.nativeEvent;
|
|
20
|
-
},
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "position", {
|
|
25
|
-
get: function () {
|
|
26
|
-
return this.event.position;
|
|
27
|
-
},
|
|
28
|
-
enumerable: false,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "defaultPrevented", {
|
|
32
|
-
get: function () {
|
|
33
|
-
return this.event.defaultPrevented;
|
|
34
|
-
},
|
|
35
|
-
enumerable: false,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "panel", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return this.options.panel;
|
|
41
|
-
},
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "api", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.options.api;
|
|
48
|
-
},
|
|
49
|
-
enumerable: false,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(DockviewWillShowOverlayLocationEvent.prototype, "group", {
|
|
53
|
-
get: function () {
|
|
54
|
-
return this.options.group;
|
|
55
|
-
},
|
|
56
|
-
enumerable: false,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
|
-
DockviewWillShowOverlayLocationEvent.prototype.preventDefault = function () {
|
|
60
|
-
this.event.preventDefault();
|
|
61
|
-
};
|
|
62
|
-
DockviewWillShowOverlayLocationEvent.prototype.getData = function () {
|
|
63
|
-
return this.options.getData();
|
|
64
|
-
};
|
|
65
|
-
return DockviewWillShowOverlayLocationEvent;
|
|
66
|
-
}());
|
|
67
|
-
exports.DockviewWillShowOverlayLocationEvent = DockviewWillShowOverlayLocationEvent;
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
-
if (!m) return o;
|
|
16
|
-
var i = m.call(o), r, ar = [], e;
|
|
17
|
-
try {
|
|
18
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
-
}
|
|
20
|
-
catch (error) { e = { error: error }; }
|
|
21
|
-
finally {
|
|
22
|
-
try {
|
|
23
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
-
}
|
|
25
|
-
finally { if (e) throw e.error; }
|
|
26
|
-
}
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
30
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
31
|
-
if (ar || !(i in from)) {
|
|
32
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
33
|
-
ar[i] = from[i];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.FloatingGroupModule = exports.FloatingGroupService = void 0;
|
|
40
|
-
var lifecycle_1 = require("../lifecycle");
|
|
41
|
-
var array_1 = require("../array");
|
|
42
|
-
var dom_1 = require("../dom");
|
|
43
|
-
var constants_1 = require("../constants");
|
|
44
|
-
var dockviewFloatingGroupPanel_1 = require("./dockviewFloatingGroupPanel");
|
|
45
|
-
var modules_1 = require("./modules");
|
|
46
|
-
var FloatingGroupService = /** @class */ (function () {
|
|
47
|
-
function FloatingGroupService(host) {
|
|
48
|
-
this._floatingGroups = [];
|
|
49
|
-
this._host = host;
|
|
50
|
-
}
|
|
51
|
-
Object.defineProperty(FloatingGroupService.prototype, "floatingGroups", {
|
|
52
|
-
get: function () {
|
|
53
|
-
return this._floatingGroups;
|
|
54
|
-
},
|
|
55
|
-
enumerable: false,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
FloatingGroupService.prototype.add = function (group, overlay, gridview) {
|
|
59
|
-
var _this = this;
|
|
60
|
-
var floatingGroupPanel = new dockviewFloatingGroupPanel_1.DockviewFloatingGroupPanel(group, overlay, gridview);
|
|
61
|
-
var disposable = new lifecycle_1.CompositeDisposable(group.api.onDidActiveChange(function (event) {
|
|
62
|
-
if (event.isActive) {
|
|
63
|
-
overlay.bringToFront();
|
|
64
|
-
}
|
|
65
|
-
}), (function () {
|
|
66
|
-
// The floating window's nested gridview fills the overlay
|
|
67
|
-
// beneath the (optional) title bar; size it from its own
|
|
68
|
-
// measured box so it follows the overlay as the user drags
|
|
69
|
-
// / resizes the window.
|
|
70
|
-
var lastWidth = -1;
|
|
71
|
-
var lastHeight = -1;
|
|
72
|
-
return (0, dom_1.watchElementResize)(gridview.element, function (entry) {
|
|
73
|
-
var width = Math.round(entry.contentRect.width);
|
|
74
|
-
var height = Math.round(entry.contentRect.height);
|
|
75
|
-
if (width === lastWidth && height === lastHeight) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
lastWidth = width;
|
|
79
|
-
lastHeight = height;
|
|
80
|
-
gridview.layout(width, height);
|
|
81
|
-
});
|
|
82
|
-
})());
|
|
83
|
-
// Floating windows are non-modal dialogs (role set in Overlay). Give
|
|
84
|
-
// the dialog an accessible name from the representative group's active
|
|
85
|
-
// panel, refreshed as the active panel changes. An untitled panel
|
|
86
|
-
// leaves the dialog unnamed rather than hard-coding a label string.
|
|
87
|
-
var updateDialogLabel = function () {
|
|
88
|
-
var _a;
|
|
89
|
-
var title = (_a = group.activePanel) === null || _a === void 0 ? void 0 : _a.title;
|
|
90
|
-
if (title) {
|
|
91
|
-
overlay.element.setAttribute('aria-label', title);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
overlay.element.removeAttribute('aria-label');
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
updateDialogLabel();
|
|
98
|
-
floatingGroupPanel.addDisposables(group.api.onDidActivePanelChange(function () { return updateDialogLabel(); }), overlay.onDidChange(function () {
|
|
99
|
-
gridview.layout(gridview.width, gridview.height);
|
|
100
|
-
}), overlay.onDidChangeEnd(function () {
|
|
101
|
-
_this._host.fireLayoutChange();
|
|
102
|
-
}), group.onDidChange(function (event) {
|
|
103
|
-
// `event.height` is the group's requested *content* height.
|
|
104
|
-
// When a dedicated title bar is present the overlay's outer
|
|
105
|
-
// box is taller by the header, so add it back to preserve the
|
|
106
|
-
// requested content size.
|
|
107
|
-
overlay.setBounds({
|
|
108
|
-
height: typeof (event === null || event === void 0 ? void 0 : event.height) === 'number'
|
|
109
|
-
? event.height + overlay.headerHeight
|
|
110
|
-
: event === null || event === void 0 ? void 0 : event.height,
|
|
111
|
-
width: event === null || event === void 0 ? void 0 : event.width,
|
|
112
|
-
});
|
|
113
|
-
}), {
|
|
114
|
-
dispose: function () {
|
|
115
|
-
disposable.dispose();
|
|
116
|
-
(0, array_1.remove)(_this._floatingGroups, floatingGroupPanel);
|
|
117
|
-
group.model.location = { type: 'grid' };
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
this._floatingGroups.push(floatingGroupPanel);
|
|
121
|
-
return floatingGroupPanel;
|
|
122
|
-
};
|
|
123
|
-
FloatingGroupService.prototype.findByGroup = function (group) {
|
|
124
|
-
// A floating window may host several groups in a nested gridview, so
|
|
125
|
-
// match by membership (DOM containment) rather than only the anchor
|
|
126
|
-
// group. `floating.group === group` covers the brief window before the
|
|
127
|
-
// anchor's element is attached to the gridview.
|
|
128
|
-
return this._floatingGroups.find(function (floating) {
|
|
129
|
-
return floating.group === group ||
|
|
130
|
-
floating.gridview.element.contains(group.element);
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
FloatingGroupService.prototype.serialize = function () {
|
|
134
|
-
return this._floatingGroups.map(function (floating) {
|
|
135
|
-
var grid = floating.gridview.serialize();
|
|
136
|
-
var position = floating.overlay.toJSON();
|
|
137
|
-
var root = grid.root;
|
|
138
|
-
// A single-group window keeps the legacy `data` shape so layouts
|
|
139
|
-
// round-trip byte-stably and older readers keep working; only
|
|
140
|
-
// genuine multi-group windows emit the nested `grid` form.
|
|
141
|
-
if (root.type === 'branch' &&
|
|
142
|
-
root.data.length === 1 &&
|
|
143
|
-
root.data[0].type === 'leaf') {
|
|
144
|
-
return {
|
|
145
|
-
data: root.data[0].data,
|
|
146
|
-
position: position,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
return { grid: grid, position: position };
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
FloatingGroupService.prototype.constrainBounds = function () {
|
|
153
|
-
var e_1, _a;
|
|
154
|
-
try {
|
|
155
|
-
for (var _b = __values(this._floatingGroups), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
156
|
-
var floating = _c.value;
|
|
157
|
-
floating.overlay.setBounds();
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
161
|
-
finally {
|
|
162
|
-
try {
|
|
163
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
164
|
-
}
|
|
165
|
-
finally { if (e_1) throw e_1.error; }
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
FloatingGroupService.prototype.updateBounds = function (options) {
|
|
169
|
-
var e_2, _a;
|
|
170
|
-
var _b, _c;
|
|
171
|
-
if (!('floatingGroupBounds' in options)) {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
try {
|
|
175
|
-
for (var _d = __values(this._floatingGroups), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
176
|
-
var group = _e.value;
|
|
177
|
-
switch (options.floatingGroupBounds) {
|
|
178
|
-
case 'boundedWithinViewport':
|
|
179
|
-
group.overlay.minimumInViewportHeight = undefined;
|
|
180
|
-
group.overlay.minimumInViewportWidth = undefined;
|
|
181
|
-
break;
|
|
182
|
-
case undefined:
|
|
183
|
-
group.overlay.minimumInViewportHeight =
|
|
184
|
-
constants_1.DEFAULT_FLOATING_GROUP_OVERFLOW_SIZE;
|
|
185
|
-
group.overlay.minimumInViewportWidth =
|
|
186
|
-
constants_1.DEFAULT_FLOATING_GROUP_OVERFLOW_SIZE;
|
|
187
|
-
break;
|
|
188
|
-
default:
|
|
189
|
-
group.overlay.minimumInViewportHeight =
|
|
190
|
-
(_b = options.floatingGroupBounds) === null || _b === void 0 ? void 0 : _b.minimumHeightWithinViewport;
|
|
191
|
-
group.overlay.minimumInViewportWidth =
|
|
192
|
-
(_c = options.floatingGroupBounds) === null || _c === void 0 ? void 0 : _c.minimumWidthWithinViewport;
|
|
193
|
-
}
|
|
194
|
-
group.overlay.setBounds();
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
198
|
-
finally {
|
|
199
|
-
try {
|
|
200
|
-
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
201
|
-
}
|
|
202
|
-
finally { if (e_2) throw e_2.error; }
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
FloatingGroupService.prototype.disposeAll = function () {
|
|
206
|
-
var e_3, _a;
|
|
207
|
-
try {
|
|
208
|
-
for (var _b = __values(__spreadArray([], __read(this._floatingGroups), false)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
209
|
-
var floating = _c.value;
|
|
210
|
-
floating.dispose();
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
214
|
-
finally {
|
|
215
|
-
try {
|
|
216
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
217
|
-
}
|
|
218
|
-
finally { if (e_3) throw e_3.error; }
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
FloatingGroupService.prototype.dispose = function () {
|
|
222
|
-
this.disposeAll();
|
|
223
|
-
};
|
|
224
|
-
return FloatingGroupService;
|
|
225
|
-
}());
|
|
226
|
-
exports.FloatingGroupService = FloatingGroupService;
|
|
227
|
-
exports.FloatingGroupModule = (0, modules_1.defineModule)({
|
|
228
|
-
name: 'FloatingGroup',
|
|
229
|
-
serviceKey: 'floatingGroupService',
|
|
230
|
-
create: function (host) { return new FloatingGroupService(host); },
|
|
231
|
-
});
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
-
if (!m) return o;
|
|
16
|
-
var i = m.call(o), r, ar = [], e;
|
|
17
|
-
try {
|
|
18
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
-
}
|
|
20
|
-
catch (error) { e = { error: error }; }
|
|
21
|
-
finally {
|
|
22
|
-
try {
|
|
23
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
-
}
|
|
25
|
-
finally { if (e) throw e.error; }
|
|
26
|
-
}
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
30
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
31
|
-
if (ar || !(i in from)) {
|
|
32
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
33
|
-
ar[i] = from[i];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.HeaderActionsModule = exports.HeaderActionsService = void 0;
|
|
40
|
-
var lifecycle_1 = require("../lifecycle");
|
|
41
|
-
var modules_1 = require("./modules");
|
|
42
|
-
var SLOT_OPTION_KEY = {
|
|
43
|
-
left: 'createLeftHeaderActionComponent',
|
|
44
|
-
right: 'createRightHeaderActionComponent',
|
|
45
|
-
prefix: 'createPrefixHeaderActionComponent',
|
|
46
|
-
};
|
|
47
|
-
var HeaderActionsService = /** @class */ (function () {
|
|
48
|
-
function HeaderActionsService(host) {
|
|
49
|
-
this._perGroup = new Map();
|
|
50
|
-
this._host = host;
|
|
51
|
-
}
|
|
52
|
-
HeaderActionsService.prototype.refresh = function (group) {
|
|
53
|
-
// The headerPosition setter on DockviewGroupPanelModel fires inside
|
|
54
|
-
// the model's constructor — before the parent DockviewGroupPanel has
|
|
55
|
-
// assigned its `_model` field, and in tests where the parent panel
|
|
56
|
-
// may be null. Skip; DockviewGroupPanel.initialize() will refresh
|
|
57
|
-
// once construction completes for real groups.
|
|
58
|
-
if (!(group === null || group === void 0 ? void 0 : group.model)) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
var state = this._ensureState(group);
|
|
62
|
-
this._refreshSlot('left', group, state.left);
|
|
63
|
-
this._refreshSlot('right', group, state.right);
|
|
64
|
-
this._refreshSlot('prefix', group, state.prefix);
|
|
65
|
-
};
|
|
66
|
-
HeaderActionsService.prototype.refreshAll = function () {
|
|
67
|
-
var e_1, _a;
|
|
68
|
-
try {
|
|
69
|
-
for (var _b = __values(this._host.groups), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
70
|
-
var group = _c.value;
|
|
71
|
-
this.refresh(group);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
75
|
-
finally {
|
|
76
|
-
try {
|
|
77
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
78
|
-
}
|
|
79
|
-
finally { if (e_1) throw e_1.error; }
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
HeaderActionsService.prototype.disposeGroup = function (group) {
|
|
83
|
-
var state = this._perGroup.get(group);
|
|
84
|
-
if (!state) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
state.left.dispose();
|
|
88
|
-
state.right.dispose();
|
|
89
|
-
state.prefix.dispose();
|
|
90
|
-
this._perGroup.delete(group);
|
|
91
|
-
};
|
|
92
|
-
HeaderActionsService.prototype.dispose = function () {
|
|
93
|
-
var e_2, _a;
|
|
94
|
-
try {
|
|
95
|
-
for (var _b = __values(__spreadArray([], __read(this._perGroup.keys()), false)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
96
|
-
var group = _c.value;
|
|
97
|
-
this.disposeGroup(group);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
101
|
-
finally {
|
|
102
|
-
try {
|
|
103
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
104
|
-
}
|
|
105
|
-
finally { if (e_2) throw e_2.error; }
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
HeaderActionsService.prototype._ensureState = function (group) {
|
|
109
|
-
var state = this._perGroup.get(group);
|
|
110
|
-
if (!state) {
|
|
111
|
-
state = {
|
|
112
|
-
left: new lifecycle_1.MutableDisposable(),
|
|
113
|
-
right: new lifecycle_1.MutableDisposable(),
|
|
114
|
-
prefix: new lifecycle_1.MutableDisposable(),
|
|
115
|
-
};
|
|
116
|
-
this._perGroup.set(group, state);
|
|
117
|
-
}
|
|
118
|
-
return state;
|
|
119
|
-
};
|
|
120
|
-
HeaderActionsService.prototype._refreshSlot = function (slot, group, disposable) {
|
|
121
|
-
var factory = this._host.options[SLOT_OPTION_KEY[slot]];
|
|
122
|
-
if (factory) {
|
|
123
|
-
var renderer = factory(group);
|
|
124
|
-
disposable.value = renderer;
|
|
125
|
-
renderer.init({
|
|
126
|
-
containerApi: this._host.api,
|
|
127
|
-
api: group.api,
|
|
128
|
-
group: group,
|
|
129
|
-
});
|
|
130
|
-
group.model.attachHeaderAction(slot, renderer.element);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
disposable.dispose();
|
|
134
|
-
group.model.attachHeaderAction(slot, undefined);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
return HeaderActionsService;
|
|
138
|
-
}());
|
|
139
|
-
exports.HeaderActionsService = HeaderActionsService;
|
|
140
|
-
exports.HeaderActionsModule = (0, modules_1.defineModule)({
|
|
141
|
-
name: 'HeaderActions',
|
|
142
|
-
serviceKey: 'headerActionsService',
|
|
143
|
-
create: function (host) { return new HeaderActionsService(host); },
|
|
144
|
-
init: function (host, service) {
|
|
145
|
-
return new lifecycle_1.CompositeDisposable(host.onDidRemoveGroup(function (group) {
|
|
146
|
-
service.disposeGroup(group);
|
|
147
|
-
}));
|
|
148
|
-
},
|
|
149
|
-
});
|