dockview-core 7.0.3 → 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,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
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
|
-
var __values = (this && this.__values) || function(o) {
|
|
39
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
40
|
-
if (m) return m.call(o);
|
|
41
|
-
if (o && typeof o.length === "number") return {
|
|
42
|
-
next: function () {
|
|
43
|
-
if (o && i >= o.length) o = void 0;
|
|
44
|
-
return { value: o && o[i++], done: !o };
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.PopoutWindowModule = exports.PopoutWindowService = void 0;
|
|
51
|
-
var events_1 = require("../events");
|
|
52
|
-
var array_1 = require("../array");
|
|
53
|
-
var modules_1 = require("./modules");
|
|
54
|
-
var PopoutWindowService = /** @class */ (function () {
|
|
55
|
-
function PopoutWindowService(host) {
|
|
56
|
-
this._entries = [];
|
|
57
|
-
this._popupServices = new Map();
|
|
58
|
-
this._restorationCleanups = new Set();
|
|
59
|
-
this._restorationPromise = Promise.resolve();
|
|
60
|
-
this._onDidRemove = new events_1.Emitter();
|
|
61
|
-
this.onDidRemove = this._onDidRemove.event;
|
|
62
|
-
this._host = host;
|
|
63
|
-
}
|
|
64
|
-
Object.defineProperty(PopoutWindowService.prototype, "entries", {
|
|
65
|
-
get: function () {
|
|
66
|
-
return this._entries;
|
|
67
|
-
},
|
|
68
|
-
enumerable: false,
|
|
69
|
-
configurable: true
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(PopoutWindowService.prototype, "restorationPromise", {
|
|
72
|
-
get: function () {
|
|
73
|
-
return this._restorationPromise;
|
|
74
|
-
},
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
PopoutWindowService.prototype.add = function (entry) {
|
|
79
|
-
this._entries.push(entry);
|
|
80
|
-
};
|
|
81
|
-
PopoutWindowService.prototype.remove = function (entry) {
|
|
82
|
-
// Fire only on a genuine removal, and not while the host component is
|
|
83
|
-
// tearing down (consumers don't want popout-removed events during
|
|
84
|
-
// dispose).
|
|
85
|
-
if ((0, array_1.remove)(this._entries, entry) && !this._host.isDisposed) {
|
|
86
|
-
this._onDidRemove.fire(entry);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
PopoutWindowService.prototype.findByGroup = function (group) {
|
|
90
|
-
// A popout window may host several groups in a nested gridview, so
|
|
91
|
-
// match by membership (DOM containment) rather than only the anchor.
|
|
92
|
-
return this._entries.find(function (entry) {
|
|
93
|
-
return entry.popoutGroup === group ||
|
|
94
|
-
entry.gridview.element.contains(group.element);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
PopoutWindowService.prototype.findReferenceGroupId = function (group) {
|
|
98
|
-
var _a;
|
|
99
|
-
return (_a = this._entries.find(function (entry) { return entry.popoutGroup === group; })) === null || _a === void 0 ? void 0 : _a.referenceGroup;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* The popout window's innerWidth/innerHeight are often 0/stale until it has
|
|
103
|
-
* painted, and the nested gridview lays its children out to the size passed
|
|
104
|
-
* to layout() (a plain group fills via CSS instead). To stop content
|
|
105
|
-
* rendering into a zero box until a manual resize — and to avoid the race a
|
|
106
|
-
* fixed number of animation frames had — observe the gridview element with
|
|
107
|
-
* a ResizeObserver created in the POPOUT window's OWN realm. A parent-realm
|
|
108
|
-
* observer fires unreliably across the window boundary; a same-realm one
|
|
109
|
-
* fires reliably, including the initial observation once the window is
|
|
110
|
-
* sized.
|
|
111
|
-
*
|
|
112
|
-
* @returns a disposable that disconnects the observer, or `undefined` when
|
|
113
|
-
* the popout realm has no ResizeObserver (e.g. jsdom).
|
|
114
|
-
*/
|
|
115
|
-
PopoutWindowService.prototype.observeGridviewSize = function (popoutWindow, gridview, overlayRenderContainer) {
|
|
116
|
-
var _this = this;
|
|
117
|
-
var _a;
|
|
118
|
-
var PopoutResizeObserver = (_a = popoutWindow.window) === null || _a === void 0 ? void 0 : _a.ResizeObserver;
|
|
119
|
-
if (!PopoutResizeObserver) {
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
122
|
-
var lastWidth = -1;
|
|
123
|
-
var lastHeight = -1;
|
|
124
|
-
var relayout = function () {
|
|
125
|
-
var win = popoutWindow.window;
|
|
126
|
-
if (_this._host.isDisposed || !win || win.closed) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
var width = Math.round(gridview.element.clientWidth);
|
|
130
|
-
var height = Math.round(gridview.element.clientHeight);
|
|
131
|
-
if (width === lastWidth && height === lastHeight) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
lastWidth = width;
|
|
135
|
-
lastHeight = height;
|
|
136
|
-
if (width > 0 && height > 0) {
|
|
137
|
-
gridview.layout(width, height);
|
|
138
|
-
}
|
|
139
|
-
overlayRenderContainer.updateAllPositions();
|
|
140
|
-
};
|
|
141
|
-
var observer = new PopoutResizeObserver(function () {
|
|
142
|
-
var _a;
|
|
143
|
-
// Defer out of the observer callback into the popout's own frame to
|
|
144
|
-
// size against the settled layout and to avoid resize-loop warnings.
|
|
145
|
-
var raf = (_a = popoutWindow.window) === null || _a === void 0 ? void 0 : _a.requestAnimationFrame;
|
|
146
|
-
if (raf) {
|
|
147
|
-
raf.call(popoutWindow.window, relayout);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
relayout();
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
observer.observe(gridview.element);
|
|
154
|
-
return { dispose: function () { return observer.disconnect(); } };
|
|
155
|
-
};
|
|
156
|
-
PopoutWindowService.prototype.getPopupService = function (groupId) {
|
|
157
|
-
return this._popupServices.get(groupId);
|
|
158
|
-
};
|
|
159
|
-
PopoutWindowService.prototype.setPopupService = function (groupId, service) {
|
|
160
|
-
this._popupServices.set(groupId, service);
|
|
161
|
-
};
|
|
162
|
-
PopoutWindowService.prototype.deletePopupService = function (groupId) {
|
|
163
|
-
this._popupServices.delete(groupId);
|
|
164
|
-
};
|
|
165
|
-
PopoutWindowService.prototype.scheduleRestoration = function (delayMs, work, onCancel) {
|
|
166
|
-
var _this = this;
|
|
167
|
-
return new Promise(function (resolve) {
|
|
168
|
-
var cleanup = function () {
|
|
169
|
-
_this._restorationCleanups.delete(cleanup);
|
|
170
|
-
clearTimeout(handle);
|
|
171
|
-
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
172
|
-
resolve();
|
|
173
|
-
};
|
|
174
|
-
var handle = setTimeout(function () {
|
|
175
|
-
_this._restorationCleanups.delete(cleanup);
|
|
176
|
-
// Guard against the component being disposed before this
|
|
177
|
-
// timer fires. Under React StrictMode the component is
|
|
178
|
-
// mounted -> disposed -> remounted, and without this guard
|
|
179
|
-
// the first instance's queued restoration would open a
|
|
180
|
-
// second popout window. See issue #851.
|
|
181
|
-
if (_this._host.isDisposed) {
|
|
182
|
-
resolve();
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
work();
|
|
186
|
-
resolve();
|
|
187
|
-
}, delayMs);
|
|
188
|
-
_this._restorationCleanups.add(cleanup);
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
PopoutWindowService.prototype.finishRestoration = function (promises) {
|
|
192
|
-
this._restorationPromise = Promise.all(promises).then(function () { return void 0; });
|
|
193
|
-
};
|
|
194
|
-
PopoutWindowService.prototype.cancelPendingRestorations = function () {
|
|
195
|
-
var e_1, _a;
|
|
196
|
-
try {
|
|
197
|
-
for (var _b = __values(__spreadArray([], __read(this._restorationCleanups), false)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
198
|
-
var cleanup = _c.value;
|
|
199
|
-
cleanup();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_1) throw e_1.error; }
|
|
208
|
-
}
|
|
209
|
-
this._restorationCleanups.clear();
|
|
210
|
-
};
|
|
211
|
-
PopoutWindowService.prototype.serialize = function () {
|
|
212
|
-
return this._entries.map(function (entry) {
|
|
213
|
-
var grid = entry.gridview.serialize();
|
|
214
|
-
var root = grid.root;
|
|
215
|
-
var url = entry.popoutGroup.api.location.type === 'popout'
|
|
216
|
-
? entry.popoutGroup.api.location.popoutUrl
|
|
217
|
-
: undefined;
|
|
218
|
-
var base = {
|
|
219
|
-
gridReferenceGroup: entry.referenceGroup,
|
|
220
|
-
position: entry.window.dimensions(),
|
|
221
|
-
url: url,
|
|
222
|
-
};
|
|
223
|
-
// Single-group window keeps the legacy `data` shape so layouts
|
|
224
|
-
// round-trip byte-stably and older readers keep working.
|
|
225
|
-
if (root.type === 'branch' &&
|
|
226
|
-
root.data.length === 1 &&
|
|
227
|
-
root.data[0].type === 'leaf') {
|
|
228
|
-
return __assign(__assign({}, base), { data: root.data[0].data });
|
|
229
|
-
}
|
|
230
|
-
return __assign(__assign({}, base), { grid: grid });
|
|
231
|
-
});
|
|
232
|
-
};
|
|
233
|
-
PopoutWindowService.prototype.disposeAll = function () {
|
|
234
|
-
var e_2, _a;
|
|
235
|
-
try {
|
|
236
|
-
for (var _b = __values(__spreadArray([], __read(this._entries), false)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
237
|
-
var entry = _c.value;
|
|
238
|
-
entry.disposable.dispose();
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
242
|
-
finally {
|
|
243
|
-
try {
|
|
244
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
245
|
-
}
|
|
246
|
-
finally { if (e_2) throw e_2.error; }
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
PopoutWindowService.prototype.dispose = function () {
|
|
250
|
-
this.cancelPendingRestorations();
|
|
251
|
-
this.disposeAll();
|
|
252
|
-
this._onDidRemove.dispose();
|
|
253
|
-
};
|
|
254
|
-
return PopoutWindowService;
|
|
255
|
-
}());
|
|
256
|
-
exports.PopoutWindowService = PopoutWindowService;
|
|
257
|
-
exports.PopoutWindowModule = (0, modules_1.defineModule)({
|
|
258
|
-
name: 'PopoutWindow',
|
|
259
|
-
serviceKey: 'popoutWindowService',
|
|
260
|
-
create: function (host) { return new PopoutWindowService(host); },
|
|
261
|
-
});
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RootDropTargetModule = exports.RootDropTargetService = void 0;
|
|
4
|
-
var events_1 = require("../events");
|
|
5
|
-
var backend_1 = require("../dnd/backend");
|
|
6
|
-
var dataTransfer_1 = require("../dnd/dataTransfer");
|
|
7
|
-
var modules_1 = require("./modules");
|
|
8
|
-
var DEFAULT_ROOT_OVERLAY_MODEL = {
|
|
9
|
-
activationSize: { type: 'pixels', value: 10 },
|
|
10
|
-
size: { type: 'pixels', value: 20 },
|
|
11
|
-
};
|
|
12
|
-
var RootDropTargetService = /** @class */ (function () {
|
|
13
|
-
function RootDropTargetService(host) {
|
|
14
|
-
var canDisplayOverlay = function (event, position) {
|
|
15
|
-
var data = (0, dataTransfer_1.getPanelData)();
|
|
16
|
-
if (data) {
|
|
17
|
-
if (data.viewId !== host.id) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (position === 'center') {
|
|
21
|
-
// center drop target only allowed if no panels in primary
|
|
22
|
-
// grid; floating panels are allowed
|
|
23
|
-
return host.isGridEmpty();
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
if (position === 'center' && !host.isGridEmpty()) {
|
|
28
|
-
// for external events only show the four-corner drag overlays,
|
|
29
|
-
// disable center so external drag events can fall through to
|
|
30
|
-
// the group and panel drop target handlers
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
return host.dispatchUnhandledDragOver(event, position);
|
|
34
|
-
};
|
|
35
|
-
var overlayModel = typeof host.options.dndEdges === 'object' &&
|
|
36
|
-
host.options.dndEdges !== null
|
|
37
|
-
? host.options.dndEdges
|
|
38
|
-
: DEFAULT_ROOT_OVERLAY_MODEL;
|
|
39
|
-
this._html5Target = backend_1.html5Backend.createDropTarget(host.element, {
|
|
40
|
-
className: 'dv-drop-target-edge',
|
|
41
|
-
canDisplayOverlay: canDisplayOverlay,
|
|
42
|
-
acceptedTargetZones: ['top', 'bottom', 'left', 'right', 'center'],
|
|
43
|
-
overlayModel: overlayModel,
|
|
44
|
-
getOverrideTarget: function () { return host.rootDropTargetOverrideTarget(); },
|
|
45
|
-
});
|
|
46
|
-
this._pointerTarget = backend_1.pointerBackend.createDropTarget(host.element, {
|
|
47
|
-
className: 'dv-drop-target-edge',
|
|
48
|
-
canDisplayOverlay: canDisplayOverlay,
|
|
49
|
-
acceptedTargetZones: ['top', 'bottom', 'left', 'right', 'center'],
|
|
50
|
-
overlayModel: overlayModel,
|
|
51
|
-
getOverrideTarget: function () { return host.rootDropTargetOverrideTarget(); },
|
|
52
|
-
});
|
|
53
|
-
this.onWillShowOverlay = events_1.Event.any(this._html5Target.onWillShowOverlay, this._pointerTarget.onWillShowOverlay);
|
|
54
|
-
this.onDrop = events_1.Event.any(this._html5Target.onDrop, this._pointerTarget.onDrop);
|
|
55
|
-
// Apply initial-state options now that the targets exist; setOptions
|
|
56
|
-
// handles dndEdges (disable + overlay model) and late changes.
|
|
57
|
-
this.setOptions(host.options);
|
|
58
|
-
}
|
|
59
|
-
RootDropTargetService.prototype.setOptions = function (options) {
|
|
60
|
-
if ('dndEdges' in options) {
|
|
61
|
-
var disabled = typeof options.dndEdges === 'boolean' &&
|
|
62
|
-
options.dndEdges === false;
|
|
63
|
-
this._html5Target.disabled = disabled;
|
|
64
|
-
this._pointerTarget.disabled = disabled;
|
|
65
|
-
if (typeof options.dndEdges === 'object' &&
|
|
66
|
-
options.dndEdges !== null) {
|
|
67
|
-
this._html5Target.setOverlayModel(options.dndEdges);
|
|
68
|
-
this._pointerTarget.setOverlayModel(options.dndEdges);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
this._html5Target.setOverlayModel(DEFAULT_ROOT_OVERLAY_MODEL);
|
|
72
|
-
this._pointerTarget.setOverlayModel(DEFAULT_ROOT_OVERLAY_MODEL);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
RootDropTargetService.prototype.dispose = function () {
|
|
77
|
-
this._html5Target.dispose();
|
|
78
|
-
this._pointerTarget.dispose();
|
|
79
|
-
};
|
|
80
|
-
return RootDropTargetService;
|
|
81
|
-
}());
|
|
82
|
-
exports.RootDropTargetService = RootDropTargetService;
|
|
83
|
-
exports.RootDropTargetModule = (0, modules_1.defineModule)({
|
|
84
|
-
name: 'RootDropTarget',
|
|
85
|
-
serviceKey: 'rootDropTargetService',
|
|
86
|
-
create: function (host) { return new RootDropTargetService(host); },
|
|
87
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.StrictEventsSequencing = void 0;
|
|
19
|
-
var lifecycle_1 = require("../lifecycle");
|
|
20
|
-
var StrictEventsSequencing = /** @class */ (function (_super) {
|
|
21
|
-
__extends(StrictEventsSequencing, _super);
|
|
22
|
-
function StrictEventsSequencing(accessor) {
|
|
23
|
-
var _this = _super.call(this) || this;
|
|
24
|
-
_this.accessor = accessor;
|
|
25
|
-
_this.init();
|
|
26
|
-
return _this;
|
|
27
|
-
}
|
|
28
|
-
StrictEventsSequencing.prototype.init = function () {
|
|
29
|
-
var panels = new Set();
|
|
30
|
-
var groups = new Set();
|
|
31
|
-
this.addDisposables(this.accessor.onDidAddPanel(function (panel) {
|
|
32
|
-
if (panels.has(panel.api.id)) {
|
|
33
|
-
throw new Error("dockview: Invalid event sequence. [onDidAddPanel] called for panel ".concat(panel.api.id, " but panel already exists"));
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
panels.add(panel.api.id);
|
|
37
|
-
}
|
|
38
|
-
}), this.accessor.onDidRemovePanel(function (panel) {
|
|
39
|
-
if (panels.has(panel.api.id)) {
|
|
40
|
-
panels.delete(panel.api.id);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
throw new Error("dockview: Invalid event sequence. [onDidRemovePanel] called for panel ".concat(panel.api.id, " but panel does not exists"));
|
|
44
|
-
}
|
|
45
|
-
}), this.accessor.onDidAddGroup(function (group) {
|
|
46
|
-
if (groups.has(group.api.id)) {
|
|
47
|
-
throw new Error("dockview: Invalid event sequence. [onDidAddGroup] called for group ".concat(group.api.id, " but group already exists"));
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
groups.add(group.api.id);
|
|
51
|
-
}
|
|
52
|
-
}), this.accessor.onDidRemoveGroup(function (group) {
|
|
53
|
-
if (groups.has(group.api.id)) {
|
|
54
|
-
groups.delete(group.api.id);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
throw new Error("dockview: Invalid event sequence. [onDidRemoveGroup] called for group ".concat(group.api.id, " but group does not exists"));
|
|
58
|
-
}
|
|
59
|
-
}));
|
|
60
|
-
};
|
|
61
|
-
return StrictEventsSequencing;
|
|
62
|
-
}(lifecycle_1.CompositeDisposable));
|
|
63
|
-
exports.StrictEventsSequencing = StrictEventsSequencing;
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
18
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
|
-
if (!m) return o;
|
|
20
|
-
var i = m.call(o), r, ar = [], e;
|
|
21
|
-
try {
|
|
22
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
23
|
-
}
|
|
24
|
-
catch (error) { e = { error: error }; }
|
|
25
|
-
finally {
|
|
26
|
-
try {
|
|
27
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
-
}
|
|
29
|
-
finally { if (e) throw e.error; }
|
|
30
|
-
}
|
|
31
|
-
return ar;
|
|
32
|
-
};
|
|
33
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
-
if (ar || !(i in from)) {
|
|
36
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
-
ar[i] = from[i];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.TabGroup = void 0;
|
|
44
|
-
var events_1 = require("../events");
|
|
45
|
-
var lifecycle_1 = require("../lifecycle");
|
|
46
|
-
var TabGroup = /** @class */ (function (_super) {
|
|
47
|
-
__extends(TabGroup, _super);
|
|
48
|
-
function TabGroup(id, options) {
|
|
49
|
-
var _a, _b;
|
|
50
|
-
var _this = _super.call(this) || this;
|
|
51
|
-
_this.id = id;
|
|
52
|
-
_this._collapsed = false;
|
|
53
|
-
_this._panelIds = [];
|
|
54
|
-
_this._onDidChange = new events_1.Emitter();
|
|
55
|
-
_this.onDidChange = _this._onDidChange.event;
|
|
56
|
-
_this._onDidPanelChange = new events_1.Emitter();
|
|
57
|
-
_this.onDidPanelChange = _this._onDidPanelChange.event;
|
|
58
|
-
_this._onDidCollapseChange = new events_1.Emitter();
|
|
59
|
-
_this.onDidCollapseChange = _this._onDidCollapseChange.event;
|
|
60
|
-
_this._onDidDestroy = new events_1.Emitter();
|
|
61
|
-
_this.onDidDestroy = _this._onDidDestroy.event;
|
|
62
|
-
_this._label = (_a = options === null || options === void 0 ? void 0 : options.label) !== null && _a !== void 0 ? _a : '';
|
|
63
|
-
_this._color = (options === null || options === void 0 ? void 0 : options.color) === '' ? undefined : options === null || options === void 0 ? void 0 : options.color;
|
|
64
|
-
_this._collapsed = (_b = options === null || options === void 0 ? void 0 : options.collapsed) !== null && _b !== void 0 ? _b : false;
|
|
65
|
-
_this._componentParams = options === null || options === void 0 ? void 0 : options.componentParams;
|
|
66
|
-
_this.addDisposables(_this._onDidChange, _this._onDidPanelChange, _this._onDidCollapseChange, _this._onDidDestroy);
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
Object.defineProperty(TabGroup.prototype, "label", {
|
|
70
|
-
get: function () {
|
|
71
|
-
return this._label;
|
|
72
|
-
},
|
|
73
|
-
enumerable: false,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(TabGroup.prototype, "color", {
|
|
77
|
-
get: function () {
|
|
78
|
-
return this._color;
|
|
79
|
-
},
|
|
80
|
-
enumerable: false,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(TabGroup.prototype, "componentParams", {
|
|
84
|
-
get: function () {
|
|
85
|
-
return this._componentParams;
|
|
86
|
-
},
|
|
87
|
-
enumerable: false,
|
|
88
|
-
configurable: true
|
|
89
|
-
});
|
|
90
|
-
TabGroup.prototype.setLabel = function (value) {
|
|
91
|
-
if (this.isDisposed || this._label === value) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
this._label = value;
|
|
95
|
-
this._onDidChange.fire();
|
|
96
|
-
};
|
|
97
|
-
TabGroup.prototype.setColor = function (value) {
|
|
98
|
-
if (this.isDisposed) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
var next = value === '' ? undefined : value;
|
|
102
|
-
if (this._color === next) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
this._color = next;
|
|
106
|
-
this._onDidChange.fire();
|
|
107
|
-
};
|
|
108
|
-
TabGroup.prototype.setComponentParams = function (value) {
|
|
109
|
-
if (this.isDisposed) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
this._componentParams = value;
|
|
113
|
-
this._onDidChange.fire();
|
|
114
|
-
};
|
|
115
|
-
Object.defineProperty(TabGroup.prototype, "collapsed", {
|
|
116
|
-
get: function () {
|
|
117
|
-
return this._collapsed;
|
|
118
|
-
},
|
|
119
|
-
enumerable: false,
|
|
120
|
-
configurable: true
|
|
121
|
-
});
|
|
122
|
-
Object.defineProperty(TabGroup.prototype, "panelIds", {
|
|
123
|
-
get: function () {
|
|
124
|
-
return this._panelIds;
|
|
125
|
-
},
|
|
126
|
-
enumerable: false,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(TabGroup.prototype, "size", {
|
|
130
|
-
get: function () {
|
|
131
|
-
return this._panelIds.length;
|
|
132
|
-
},
|
|
133
|
-
enumerable: false,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(TabGroup.prototype, "isEmpty", {
|
|
137
|
-
get: function () {
|
|
138
|
-
return this._panelIds.length === 0;
|
|
139
|
-
},
|
|
140
|
-
enumerable: false,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
|
-
TabGroup.prototype.addPanel = function (panelId, index) {
|
|
144
|
-
if (this.isDisposed) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
if (this._panelIds.includes(panelId)) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
var insertIndex = index === undefined
|
|
151
|
-
? this._panelIds.length
|
|
152
|
-
: Math.max(0, Math.min(index, this._panelIds.length));
|
|
153
|
-
this._panelIds.splice(insertIndex, 0, panelId);
|
|
154
|
-
this._onDidPanelChange.fire({ panelId: panelId, type: 'add' });
|
|
155
|
-
};
|
|
156
|
-
TabGroup.prototype.removePanel = function (panelId) {
|
|
157
|
-
if (this.isDisposed) {
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
var index = this._panelIds.indexOf(panelId);
|
|
161
|
-
if (index === -1) {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
this._panelIds.splice(index, 1);
|
|
165
|
-
this._onDidPanelChange.fire({ panelId: panelId, type: 'remove' });
|
|
166
|
-
return true;
|
|
167
|
-
};
|
|
168
|
-
TabGroup.prototype.indexOfPanel = function (panelId) {
|
|
169
|
-
return this._panelIds.indexOf(panelId);
|
|
170
|
-
};
|
|
171
|
-
TabGroup.prototype.containsPanel = function (panelId) {
|
|
172
|
-
return this._panelIds.includes(panelId);
|
|
173
|
-
};
|
|
174
|
-
TabGroup.prototype.collapse = function () {
|
|
175
|
-
if (this.isDisposed || this._collapsed) {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
this._collapsed = true;
|
|
179
|
-
this._onDidCollapseChange.fire(true);
|
|
180
|
-
};
|
|
181
|
-
TabGroup.prototype.expand = function () {
|
|
182
|
-
if (this.isDisposed || !this._collapsed) {
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
this._collapsed = false;
|
|
186
|
-
this._onDidCollapseChange.fire(false);
|
|
187
|
-
};
|
|
188
|
-
TabGroup.prototype.toggle = function () {
|
|
189
|
-
if (this._collapsed) {
|
|
190
|
-
this.expand();
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
this.collapse();
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
TabGroup.prototype.toJSON = function () {
|
|
197
|
-
var result = {
|
|
198
|
-
id: this.id,
|
|
199
|
-
collapsed: this._collapsed,
|
|
200
|
-
panelIds: __spreadArray([], __read(this._panelIds), false),
|
|
201
|
-
};
|
|
202
|
-
if (this._label) {
|
|
203
|
-
result.label = this._label;
|
|
204
|
-
}
|
|
205
|
-
if (this._color !== undefined) {
|
|
206
|
-
result.color = this._color;
|
|
207
|
-
}
|
|
208
|
-
if (this._componentParams !== undefined) {
|
|
209
|
-
result.componentParams = this._componentParams;
|
|
210
|
-
}
|
|
211
|
-
return result;
|
|
212
|
-
};
|
|
213
|
-
TabGroup.prototype.dispose = function () {
|
|
214
|
-
this._onDidDestroy.fire();
|
|
215
|
-
_super.prototype.dispose.call(this);
|
|
216
|
-
};
|
|
217
|
-
return TabGroup;
|
|
218
|
-
}(lifecycle_1.CompositeDisposable));
|
|
219
|
-
exports.TabGroup = TabGroup;
|