dockview-core 7.0.4 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENCE.md +21 -0
- package/README.md +17 -86
- package/dist/cjs/api/component.api.d.ts +100 -9
- package/dist/cjs/api/dockviewGroupPanelApi.d.ts +45 -1
- package/dist/cjs/api/dockviewPanelApi.d.ts +21 -0
- package/dist/cjs/dismissableLayer.d.ts +57 -0
- package/dist/cjs/dnd/backend.d.ts +2 -2
- package/dist/cjs/dnd/dataTransfer.d.ts +1 -0
- package/dist/cjs/dnd/dropTargetAnchorContainer.d.ts +12 -0
- package/dist/cjs/dnd/droptarget.d.ts +94 -0
- package/dist/cjs/dnd/ghost.d.ts +1 -0
- package/dist/cjs/dnd/pointer/longPress.d.ts +2 -2
- package/dist/cjs/dnd/pointer/pointerDragController.d.ts +5 -2
- package/dist/cjs/dnd/pointer/pointerDragSource.d.ts +1 -1
- package/dist/cjs/dnd/pointer/pointerDropTarget.d.ts +30 -1
- package/dist/cjs/dnd/pointer/pointerGhost.d.ts +1 -1
- package/dist/cjs/dockview/accessibilityMessages.d.ts +6 -0
- package/dist/cjs/dockview/advancedDnDService.d.ts +31 -0
- package/dist/cjs/dockview/components/panel/content.d.ts +1 -1
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +2 -0
- package/dist/cjs/dockview/components/tab/tab.d.ts +2 -0
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.d.ts +2 -2
- package/dist/cjs/dockview/components/titlebar/groupDragSource.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabGroupChip.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.d.ts +73 -2
- package/dist/cjs/dockview/components/titlebar/tabGroups.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabReorderController.d.ts +295 -0
- package/dist/cjs/dockview/components/titlebar/tabs.d.ts +120 -50
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +48 -0
- package/dist/cjs/dockview/dndCapabilities.d.ts +1 -1
- package/dist/cjs/dockview/dockviewComponent.d.ts +307 -19
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +5 -0
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +76 -2
- package/dist/cjs/dockview/dockviewPanel.d.ts +12 -0
- package/dist/cjs/dockview/dockviewShell.d.ts +48 -24
- package/dist/cjs/dockview/edgeGroupService.d.ts +20 -0
- package/dist/cjs/dockview/events.d.ts +6 -0
- package/dist/cjs/dockview/liveRegionService.d.ts +18 -5
- package/dist/cjs/dockview/moduleContracts.d.ts +485 -14
- package/dist/cjs/dockview/modules.d.ts +101 -22
- package/dist/cjs/dockview/options.d.ts +336 -30
- package/dist/cjs/dockview/optionsModules.d.ts +73 -0
- package/dist/cjs/dockview/popoutWindowService.d.ts +15 -10
- package/dist/cjs/dockview/rootDropTargetService.d.ts +11 -0
- package/dist/cjs/dockview/tabGroup.d.ts +3 -0
- package/dist/cjs/dockview/tabGroupAccent.d.ts +1 -1
- package/dist/cjs/dockview/tabGroupChipsService.d.ts +10 -0
- package/dist/cjs/dockview/theme.d.ts +2 -2
- package/dist/cjs/dockview/types.d.ts +3 -0
- package/dist/cjs/dom.d.ts +9 -1
- package/dist/cjs/events.d.ts +1 -1
- package/dist/cjs/gridview/baseComponentGridview.d.ts +2 -2
- package/dist/cjs/gridview/branchNode.d.ts +16 -0
- package/dist/cjs/gridview/gridview.d.ts +2 -0
- package/dist/cjs/index.d.ts +35 -29
- package/dist/cjs/lifecycle.d.ts +1 -0
- package/dist/cjs/overlay/overlay.d.ts +4 -2
- package/dist/cjs/overlay/overlayRenderContainer.d.ts +8 -0
- package/dist/cjs/paneview/paneview.d.ts +2 -1
- package/dist/cjs/paneview/paneviewComponent.d.ts +3 -0
- package/dist/cjs/paneview/paneviewPanel.d.ts +5 -0
- package/dist/cjs/scrollbar.d.ts +10 -0
- package/dist/cjs/splitview/viewItem.d.ts +10 -0
- package/dist/cjs/svg.d.ts +1 -0
- package/dist/cjs/types.d.ts +8 -0
- package/dist/dockview-core.js +18513 -19679
- package/dist/dockview-core.min.js +4138 -6
- package/dist/dockview-core.min.noStyle.js +6 -7
- package/dist/dockview-core.noStyle.js +18512 -19656
- package/dist/package/main.cjs.js +18123 -19267
- package/dist/package/main.cjs.min.js +6 -6
- package/dist/package/main.esm.min.mjs +6 -6
- package/dist/package/main.esm.mjs +18081 -19260
- package/package.json +81 -77
- package/dist/cjs/api/component.api.js +0 -1242
- package/dist/cjs/api/dockviewGroupPanelApi.js +0 -200
- package/dist/cjs/api/dockviewPanelApi.js +0 -172
- package/dist/cjs/api/entryPoints.js +0 -27
- package/dist/cjs/api/gridviewPanelApi.js +0 -45
- package/dist/cjs/api/panelApi.js +0 -133
- package/dist/cjs/api/paneviewPanelApi.js +0 -57
- package/dist/cjs/api/splitviewPanelApi.js +0 -47
- package/dist/cjs/array.js +0 -66
- package/dist/cjs/constants.js +0 -11
- package/dist/cjs/dnd/backend.js +0 -171
- package/dist/cjs/dnd/dataTransfer.js +0 -100
- package/dist/cjs/dnd/dnd.js +0 -74
- package/dist/cjs/dnd/dropOverlay.js +0 -197
- package/dist/cjs/dnd/dropTargetAnchorContainer.js +0 -104
- package/dist/cjs/dnd/droptarget.js +0 -362
- package/dist/cjs/dnd/ghost.js +0 -17
- package/dist/cjs/dnd/pointer/index.js +0 -13
- package/dist/cjs/dnd/pointer/longPress.js +0 -151
- package/dist/cjs/dnd/pointer/pointerDragController.js +0 -243
- package/dist/cjs/dnd/pointer/pointerDragSource.js +0 -197
- package/dist/cjs/dnd/pointer/pointerDropTarget.js +0 -198
- package/dist/cjs/dnd/pointer/pointerGhost.js +0 -44
- package/dist/cjs/dnd/pointer/types.js +0 -2
- package/dist/cjs/dockview/accessibilityMessages.js +0 -51
- package/dist/cjs/dockview/allModules.js +0 -25
- package/dist/cjs/dockview/components/panel/content.js +0 -213
- package/dist/cjs/dockview/components/popupService.js +0 -132
- package/dist/cjs/dockview/components/tab/defaultTab.js +0 -70
- package/dist/cjs/dockview/components/tab/tab.js +0 -281
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.js +0 -95
- package/dist/cjs/dockview/components/titlebar/groupDragSource.js +0 -218
- package/dist/cjs/dockview/components/titlebar/tabGroupChip.js +0 -104
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.js +0 -477
- package/dist/cjs/dockview/components/titlebar/tabGroups.js +0 -854
- package/dist/cjs/dockview/components/titlebar/tabOverflowControl.js +0 -19
- package/dist/cjs/dockview/components/titlebar/tabs.js +0 -2016
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +0 -458
- package/dist/cjs/dockview/components/titlebar/voidContainer.js +0 -120
- package/dist/cjs/dockview/components/watermark/watermark.js +0 -40
- package/dist/cjs/dockview/deserializer.js +0 -39
- package/dist/cjs/dockview/dndCapabilities.js +0 -39
- package/dist/cjs/dockview/dockviewComponent.js +0 -3896
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +0 -70
- package/dist/cjs/dockview/dockviewGroupPanel.js +0 -204
- package/dist/cjs/dockview/dockviewGroupPanelModel.js +0 -1514
- package/dist/cjs/dockview/dockviewPanel.js +0 -265
- package/dist/cjs/dockview/dockviewPanelModel.js +0 -105
- package/dist/cjs/dockview/dockviewShell.js +0 -744
- package/dist/cjs/dockview/edgeGroupService.js +0 -128
- package/dist/cjs/dockview/events.js +0 -67
- package/dist/cjs/dockview/floatingGroupService.js +0 -231
- package/dist/cjs/dockview/framework.js +0 -2
- package/dist/cjs/dockview/headerActionsService.js +0 -149
- package/dist/cjs/dockview/liveRegionService.js +0 -185
- package/dist/cjs/dockview/moduleContracts.js +0 -2
- package/dist/cjs/dockview/modules.js +0 -304
- package/dist/cjs/dockview/options.js +0 -103
- package/dist/cjs/dockview/popoutWindowService.js +0 -261
- package/dist/cjs/dockview/rootDropTargetService.js +0 -87
- package/dist/cjs/dockview/strictEventsSequencing.js +0 -63
- package/dist/cjs/dockview/tabGroup.js +0 -219
- package/dist/cjs/dockview/tabGroupAccent.js +0 -126
- package/dist/cjs/dockview/theme.js +0 -139
- package/dist/cjs/dockview/types.js +0 -2
- package/dist/cjs/dockview/validate.js +0 -76
- package/dist/cjs/dockview/watermarkService.js +0 -61
- package/dist/cjs/dom.js +0 -543
- package/dist/cjs/events.js +0 -296
- package/dist/cjs/framwork.js +0 -2
- package/dist/cjs/gridview/baseComponentGridview.js +0 -330
- package/dist/cjs/gridview/basePanelView.js +0 -162
- package/dist/cjs/gridview/branchNode.js +0 -372
- package/dist/cjs/gridview/gridview.js +0 -776
- package/dist/cjs/gridview/gridviewComponent.js +0 -363
- package/dist/cjs/gridview/gridviewPanel.js +0 -249
- package/dist/cjs/gridview/leafNode.js +0 -169
- package/dist/cjs/gridview/options.js +0 -17
- package/dist/cjs/gridview/types.js +0 -2
- package/dist/cjs/index.js +0 -105
- package/dist/cjs/lifecycle.js +0 -80
- package/dist/cjs/math.js +0 -38
- package/dist/cjs/overlay/overlay.js +0 -602
- package/dist/cjs/overlay/overlayRenderContainer.js +0 -309
- package/dist/cjs/panel/types.js +0 -2
- package/dist/cjs/paneview/defaultPaneviewHeader.js +0 -92
- package/dist/cjs/paneview/draggablePaneviewPanel.js +0 -141
- package/dist/cjs/paneview/options.js +0 -44
- package/dist/cjs/paneview/paneview.js +0 -203
- package/dist/cjs/paneview/paneviewComponent.js +0 -430
- package/dist/cjs/paneview/paneviewPanel.js +0 -275
- package/dist/cjs/popoutWindow.js +0 -244
- package/dist/cjs/resizable.js +0 -97
- package/dist/cjs/scrollbar.js +0 -169
- package/dist/cjs/splitview/options.js +0 -19
- package/dist/cjs/splitview/splitview.js +0 -999
- package/dist/cjs/splitview/splitviewComponent.js +0 -401
- package/dist/cjs/splitview/splitviewPanel.js +0 -179
- package/dist/cjs/splitview/viewItem.js +0 -119
- package/dist/cjs/svg.js +0 -43
- package/dist/cjs/types.js +0 -2
- package/dist/dockview-core.min.js.map +0 -1
- package/dist/dockview-core.min.noStyle.js.map +0 -1
- package/dist/esm/api/component.api.d.ts +0 -640
- package/dist/esm/api/component.api.js +0 -887
- package/dist/esm/api/dockviewGroupPanelApi.d.ts +0 -109
- package/dist/esm/api/dockviewGroupPanelApi.js +0 -155
- package/dist/esm/api/dockviewPanelApi.d.ts +0 -84
- package/dist/esm/api/dockviewPanelApi.js +0 -124
- package/dist/esm/api/entryPoints.d.ts +0 -9
- package/dist/esm/api/entryPoints.js +0 -21
- package/dist/esm/api/gridviewPanelApi.d.ts +0 -37
- package/dist/esm/api/gridviewPanelApi.js +0 -23
- package/dist/esm/api/panelApi.d.ts +0 -100
- package/dist/esm/api/panelApi.js +0 -87
- package/dist/esm/api/paneviewPanelApi.d.ts +0 -26
- package/dist/esm/api/paneviewPanelApi.js +0 -27
- package/dist/esm/api/splitviewPanelApi.d.ts +0 -32
- package/dist/esm/api/splitviewPanelApi.js +0 -25
- package/dist/esm/array.d.ts +0 -13
- package/dist/esm/array.js +0 -57
- package/dist/esm/constants.d.ts +0 -8
- package/dist/esm/constants.js +0 -8
- package/dist/esm/dnd/backend.d.ts +0 -70
- package/dist/esm/dnd/backend.js +0 -148
- package/dist/esm/dnd/dataTransfer.d.ts +0 -31
- package/dist/esm/dnd/dataTransfer.js +0 -67
- package/dist/esm/dnd/dnd.d.ts +0 -32
- package/dist/esm/dnd/dnd.js +0 -51
- package/dist/esm/dnd/dropOverlay.d.ts +0 -20
- package/dist/esm/dnd/dropOverlay.js +0 -192
- package/dist/esm/dnd/dropTargetAnchorContainer.d.ts +0 -16
- package/dist/esm/dnd/dropTargetAnchorContainer.js +0 -73
- package/dist/esm/dnd/droptarget.d.ts +0 -116
- package/dist/esm/dnd/droptarget.js +0 -316
- package/dist/esm/dnd/ghost.d.ts +0 -4
- package/dist/esm/dnd/ghost.js +0 -14
- package/dist/esm/dnd/pointer/index.d.ts +0 -11
- package/dist/esm/dnd/pointer/index.js +0 -5
- package/dist/esm/dnd/pointer/longPress.d.ts +0 -32
- package/dist/esm/dnd/pointer/longPress.js +0 -127
- package/dist/esm/dnd/pointer/pointerDragController.d.ts +0 -60
- package/dist/esm/dnd/pointer/pointerDragController.js +0 -193
- package/dist/esm/dnd/pointer/pointerDragSource.d.ts +0 -61
- package/dist/esm/dnd/pointer/pointerDragSource.js +0 -173
- package/dist/esm/dnd/pointer/pointerDropTarget.d.ts +0 -39
- package/dist/esm/dnd/pointer/pointerDropTarget.js +0 -168
- package/dist/esm/dnd/pointer/pointerGhost.d.ts +0 -30
- package/dist/esm/dnd/pointer/pointerGhost.js +0 -39
- package/dist/esm/dnd/pointer/types.d.ts +0 -16
- package/dist/esm/dnd/pointer/types.js +0 -1
- package/dist/esm/dockview/accessibilityMessages.d.ts +0 -32
- package/dist/esm/dockview/accessibilityMessages.js +0 -30
- package/dist/esm/dockview/allModules.d.ts +0 -8
- package/dist/esm/dockview/allModules.js +0 -22
- package/dist/esm/dockview/components/panel/content.d.ts +0 -54
- package/dist/esm/dockview/components/panel/content.js +0 -185
- package/dist/esm/dockview/components/popupService.d.ts +0 -21
- package/dist/esm/dockview/components/popupService.js +0 -108
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +0 -12
- package/dist/esm/dockview/components/tab/defaultTab.js +0 -43
- package/dist/esm/dockview/components/tab/tab.d.ts +0 -44
- package/dist/esm/dockview/components/tab/tab.js +0 -242
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.d.ts +0 -34
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.js +0 -65
- package/dist/esm/dockview/components/titlebar/groupDragSource.d.ts +0 -51
- package/dist/esm/dockview/components/titlebar/groupDragSource.js +0 -178
- package/dist/esm/dockview/components/titlebar/tabGroupChip.d.ts +0 -37
- package/dist/esm/dockview/components/titlebar/tabGroupChip.js +0 -77
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.d.ts +0 -72
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.js +0 -360
- package/dist/esm/dockview/components/titlebar/tabGroups.d.ts +0 -107
- package/dist/esm/dockview/components/titlebar/tabGroups.js +0 -621
- package/dist/esm/dockview/components/titlebar/tabOverflowControl.d.ts +0 -8
- package/dist/esm/dockview/components/titlebar/tabOverflowControl.js +0 -16
- package/dist/esm/dockview/components/titlebar/tabs.d.ts +0 -167
- package/dist/esm/dockview/components/titlebar/tabs.js +0 -1653
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +0 -104
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +0 -359
- package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +0 -21
- package/dist/esm/dockview/components/titlebar/voidContainer.js +0 -92
- package/dist/esm/dockview/components/watermark/watermark.d.ts +0 -8
- package/dist/esm/dockview/components/watermark/watermark.js +0 -14
- package/dist/esm/dockview/deserializer.d.ts +0 -12
- package/dist/esm/dockview/deserializer.js +0 -34
- package/dist/esm/dockview/dndCapabilities.d.ts +0 -19
- package/dist/esm/dockview/dndCapabilities.js +0 -36
- package/dist/esm/dockview/dockviewComponent.d.ts +0 -626
- package/dist/esm/dockview/dockviewComponent.js +0 -3214
- package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +0 -45
- package/dist/esm/dockview/dockviewFloatingGroupPanel.js +0 -44
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +0 -35
- package/dist/esm/dockview/dockviewGroupPanel.js +0 -142
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +0 -358
- package/dist/esm/dockview/dockviewGroupPanelModel.js +0 -1180
- package/dist/esm/dockview/dockviewPanel.d.ts +0 -69
- package/dist/esm/dockview/dockviewPanel.js +0 -178
- package/dist/esm/dockview/dockviewPanelModel.d.ts +0 -37
- package/dist/esm/dockview/dockviewPanelModel.js +0 -81
- package/dist/esm/dockview/dockviewShell.d.ts +0 -150
- package/dist/esm/dockview/dockviewShell.js +0 -678
- package/dist/esm/dockview/edgeGroupService.d.ts +0 -38
- package/dist/esm/dockview/edgeGroupService.js +0 -63
- package/dist/esm/dockview/events.d.ts +0 -38
- package/dist/esm/dockview/events.js +0 -34
- package/dist/esm/dockview/floatingGroupService.d.ts +0 -37
- package/dist/esm/dockview/floatingGroupService.js +0 -150
- package/dist/esm/dockview/framework.d.ts +0 -65
- package/dist/esm/dockview/framework.js +0 -1
- package/dist/esm/dockview/headerActionsService.d.ts +0 -32
- package/dist/esm/dockview/headerActionsService.js +0 -86
- package/dist/esm/dockview/liveRegionService.d.ts +0 -53
- package/dist/esm/dockview/liveRegionService.js +0 -159
- package/dist/esm/dockview/moduleContracts.d.ts +0 -119
- package/dist/esm/dockview/moduleContracts.js +0 -1
- package/dist/esm/dockview/modules.d.ts +0 -110
- package/dist/esm/dockview/modules.js +0 -170
- package/dist/esm/dockview/options.d.ts +0 -474
- package/dist/esm/dockview/options.js +0 -77
- package/dist/esm/dockview/popoutWindowService.d.ts +0 -95
- package/dist/esm/dockview/popoutWindowService.js +0 -175
- package/dist/esm/dockview/rootDropTargetService.d.ts +0 -35
- package/dist/esm/dockview/rootDropTargetService.js +0 -82
- package/dist/esm/dockview/strictEventsSequencing.d.ts +0 -7
- package/dist/esm/dockview/strictEventsSequencing.js +0 -41
- package/dist/esm/dockview/tabGroup.d.ts +0 -99
- package/dist/esm/dockview/tabGroup.js +0 -144
- package/dist/esm/dockview/tabGroupAccent.d.ts +0 -65
- package/dist/esm/dockview/tabGroupAccent.js +0 -114
- package/dist/esm/dockview/theme.d.ts +0 -86
- package/dist/esm/dockview/theme.js +0 -136
- package/dist/esm/dockview/types.d.ts +0 -53
- package/dist/esm/dockview/types.js +0 -1
- package/dist/esm/dockview/validate.d.ts +0 -0
- package/dist/esm/dockview/validate.js +0 -76
- package/dist/esm/dockview/watermarkService.d.ts +0 -30
- package/dist/esm/dockview/watermarkService.js +0 -56
- package/dist/esm/dom.d.ts +0 -60
- package/dist/esm/dom.js +0 -375
- package/dist/esm/events.d.ts +0 -79
- package/dist/esm/events.js +0 -219
- package/dist/esm/framwork.d.ts +0 -4
- package/dist/esm/framwork.js +0 -1
- package/dist/esm/gridview/baseComponentGridview.d.ts +0 -111
- package/dist/esm/gridview/baseComponentGridview.js +0 -237
- package/dist/esm/gridview/basePanelView.d.ts +0 -40
- package/dist/esm/gridview/basePanelView.js +0 -91
- package/dist/esm/gridview/branchNode.d.ts +0 -57
- package/dist/esm/gridview/branchNode.js +0 -257
- package/dist/esm/gridview/gridview.d.ts +0 -158
- package/dist/esm/gridview/gridview.js +0 -681
- package/dist/esm/gridview/gridviewComponent.d.ts +0 -88
- package/dist/esm/gridview/gridviewComponent.js +0 -265
- package/dist/esm/gridview/gridviewPanel.d.ts +0 -77
- package/dist/esm/gridview/gridviewPanel.js +0 -182
- package/dist/esm/gridview/leafNode.d.ts +0 -34
- package/dist/esm/gridview/leafNode.js +0 -102
- package/dist/esm/gridview/options.d.ts +0 -15
- package/dist/esm/gridview/options.js +0 -14
- package/dist/esm/gridview/types.d.ts +0 -3
- package/dist/esm/gridview/types.js +0 -1
- package/dist/esm/index.d.ts +0 -58
- package/dist/esm/index.js +0 -44
- package/dist/esm/lifecycle.d.ts +0 -25
- package/dist/esm/lifecycle.js +0 -56
- package/dist/esm/math.d.ts +0 -5
- package/dist/esm/math.js +0 -32
- package/dist/esm/overlay/overlay.d.ts +0 -91
- package/dist/esm/overlay/overlay.js +0 -520
- package/dist/esm/overlay/overlayRenderContainer.d.ts +0 -24
- package/dist/esm/overlay/overlayRenderContainer.js +0 -249
- package/dist/esm/panel/types.d.ts +0 -33
- package/dist/esm/panel/types.js +0 -1
- package/dist/esm/paneview/defaultPaneviewHeader.d.ts +0 -21
- package/dist/esm/paneview/defaultPaneviewHeader.js +0 -65
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +0 -38
- package/dist/esm/paneview/draggablePaneviewPanel.js +0 -107
- package/dist/esm/paneview/options.d.ts +0 -30
- package/dist/esm/paneview/options.js +0 -22
- package/dist/esm/paneview/paneview.d.ts +0 -41
- package/dist/esm/paneview/paneview.js +0 -148
- package/dist/esm/paneview/paneviewComponent.d.ts +0 -133
- package/dist/esm/paneview/paneviewComponent.js +0 -306
- package/dist/esm/paneview/paneviewPanel.d.ts +0 -98
- package/dist/esm/paneview/paneviewPanel.js +0 -192
- package/dist/esm/popoutWindow.d.ts +0 -38
- package/dist/esm/popoutWindow.js +0 -170
- package/dist/esm/resizable.d.ts +0 -12
- package/dist/esm/resizable.js +0 -66
- package/dist/esm/scrollbar.d.ts +0 -15
- package/dist/esm/scrollbar.js +0 -139
- package/dist/esm/splitview/options.d.ts +0 -21
- package/dist/esm/splitview/options.js +0 -16
- package/dist/esm/splitview/splitview.d.ts +0 -145
- package/dist/esm/splitview/splitview.js +0 -770
- package/dist/esm/splitview/splitviewComponent.d.ts +0 -101
- package/dist/esm/splitview/splitviewComponent.js +0 -267
- package/dist/esm/splitview/splitviewPanel.d.ts +0 -45
- package/dist/esm/splitview/splitviewPanel.js +0 -108
- package/dist/esm/splitview/viewItem.d.ts +0 -25
- package/dist/esm/splitview/viewItem.js +0 -74
- package/dist/esm/svg.d.ts +0 -3
- package/dist/esm/svg.js +0 -31
- package/dist/esm/types.d.ts +0 -31
- package/dist/esm/types.js +0 -1
- package/dist/styles/dockview.css +0 -3436
|
@@ -1,200 +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 __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DockviewGroupPanelApiImpl = void 0;
|
|
30
|
-
var droptarget_1 = require("../dnd/droptarget");
|
|
31
|
-
var events_1 = require("../events");
|
|
32
|
-
var gridviewPanelApi_1 = require("./gridviewPanelApi");
|
|
33
|
-
var NOT_INITIALIZED_MESSAGE = 'dockview: DockviewGroupPanelApiImpl not initialized';
|
|
34
|
-
var DockviewGroupPanelApiImpl = /** @class */ (function (_super) {
|
|
35
|
-
__extends(DockviewGroupPanelApiImpl, _super);
|
|
36
|
-
function DockviewGroupPanelApiImpl(id, accessor) {
|
|
37
|
-
var _this = _super.call(this, id, '__dockviewgroup__') || this;
|
|
38
|
-
_this.accessor = accessor;
|
|
39
|
-
_this._onDidLocationChange = new events_1.Emitter();
|
|
40
|
-
_this.onDidLocationChange = _this._onDidLocationChange.event;
|
|
41
|
-
_this._onDidActivePanelChange = new events_1.Emitter();
|
|
42
|
-
_this.onDidActivePanelChange = _this._onDidActivePanelChange.event;
|
|
43
|
-
_this._onDidCollapsedChange = new events_1.Emitter();
|
|
44
|
-
_this.onDidCollapsedChange = _this._onDidCollapsedChange.event;
|
|
45
|
-
_this.addDisposables(_this._onDidLocationChange, _this._onDidActivePanelChange, _this._onDidCollapsedChange, _this._onDidVisibilityChange.event(function (event) {
|
|
46
|
-
// When becoming visible, apply any pending size change
|
|
47
|
-
if (event.isVisible && _this._pendingSize) {
|
|
48
|
-
_super.prototype.setSize.call(_this, _this._pendingSize);
|
|
49
|
-
_this._pendingSize = undefined;
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
return _this;
|
|
53
|
-
}
|
|
54
|
-
Object.defineProperty(DockviewGroupPanelApiImpl.prototype, "location", {
|
|
55
|
-
get: function () {
|
|
56
|
-
if (!this._group) {
|
|
57
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
58
|
-
}
|
|
59
|
-
return this._group.model.location;
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(DockviewGroupPanelApiImpl.prototype, "boundingBox", {
|
|
65
|
-
/**
|
|
66
|
-
* The group's bounding box relative to the top-left of the dockview root,
|
|
67
|
-
* in pixels. Covers grid and floating groups; returns `undefined` for a
|
|
68
|
-
* popout group (it lives in a separate window). Reflects the live rendered
|
|
69
|
-
* geometry, so it is only meaningful once the layout has been sized.
|
|
70
|
-
*/
|
|
71
|
-
get: function () {
|
|
72
|
-
if (!this._group || this._group.model.location.type === 'popout') {
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
var root = this.accessor.element.getBoundingClientRect();
|
|
76
|
-
var rect = this._group.element.getBoundingClientRect();
|
|
77
|
-
return {
|
|
78
|
-
left: rect.left - root.left,
|
|
79
|
-
top: rect.top - root.top,
|
|
80
|
-
width: rect.width,
|
|
81
|
-
height: rect.height,
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
enumerable: false,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(DockviewGroupPanelApiImpl.prototype, "locked", {
|
|
88
|
-
get: function () {
|
|
89
|
-
if (!this._group) {
|
|
90
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
91
|
-
}
|
|
92
|
-
return this._group.locked;
|
|
93
|
-
},
|
|
94
|
-
set: function (value) {
|
|
95
|
-
if (!this._group) {
|
|
96
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
97
|
-
}
|
|
98
|
-
this._group.locked = value;
|
|
99
|
-
},
|
|
100
|
-
enumerable: false,
|
|
101
|
-
configurable: true
|
|
102
|
-
});
|
|
103
|
-
DockviewGroupPanelApiImpl.prototype.setSize = function (event) {
|
|
104
|
-
// Always store the requested size
|
|
105
|
-
this._pendingSize = __assign({}, event);
|
|
106
|
-
// Apply the size change immediately
|
|
107
|
-
_super.prototype.setSize.call(this, event);
|
|
108
|
-
};
|
|
109
|
-
DockviewGroupPanelApiImpl.prototype.close = function () {
|
|
110
|
-
if (!this._group) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
return this.accessor.removeGroup(this._group);
|
|
114
|
-
};
|
|
115
|
-
DockviewGroupPanelApiImpl.prototype.getWindow = function () {
|
|
116
|
-
return this.location.type === 'popout'
|
|
117
|
-
? this.location.getWindow()
|
|
118
|
-
: globalThis.window;
|
|
119
|
-
};
|
|
120
|
-
DockviewGroupPanelApiImpl.prototype.setHeaderPosition = function (position) {
|
|
121
|
-
if (!this._group) {
|
|
122
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
123
|
-
}
|
|
124
|
-
this._group.model.headerPosition = position;
|
|
125
|
-
};
|
|
126
|
-
DockviewGroupPanelApiImpl.prototype.getHeaderPosition = function () {
|
|
127
|
-
if (!this._group) {
|
|
128
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
129
|
-
}
|
|
130
|
-
return this._group.model.headerPosition;
|
|
131
|
-
};
|
|
132
|
-
DockviewGroupPanelApiImpl.prototype.moveTo = function (options) {
|
|
133
|
-
var _a, _b, _c, _d;
|
|
134
|
-
if (!this._group) {
|
|
135
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
136
|
-
}
|
|
137
|
-
var group = (_a = options.group) !== null && _a !== void 0 ? _a : this.accessor.addGroup({
|
|
138
|
-
direction: (0, droptarget_1.positionToDirection)((_b = options.position) !== null && _b !== void 0 ? _b : 'right'),
|
|
139
|
-
skipSetActive: (_c = options.skipSetActive) !== null && _c !== void 0 ? _c : false,
|
|
140
|
-
});
|
|
141
|
-
this.accessor.moveGroupOrPanel({
|
|
142
|
-
from: { groupId: this._group.id },
|
|
143
|
-
to: {
|
|
144
|
-
group: group,
|
|
145
|
-
position: options.group
|
|
146
|
-
? ((_d = options.position) !== null && _d !== void 0 ? _d : 'center')
|
|
147
|
-
: 'center',
|
|
148
|
-
index: options.index,
|
|
149
|
-
},
|
|
150
|
-
skipSetActive: options.skipSetActive,
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
DockviewGroupPanelApiImpl.prototype.maximize = function () {
|
|
154
|
-
if (!this._group) {
|
|
155
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
156
|
-
}
|
|
157
|
-
if (this.location.type !== 'grid') {
|
|
158
|
-
// only grid groups can be maximized
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
this.accessor.maximizeGroup(this._group);
|
|
162
|
-
};
|
|
163
|
-
DockviewGroupPanelApiImpl.prototype.isMaximized = function () {
|
|
164
|
-
if (!this._group) {
|
|
165
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
166
|
-
}
|
|
167
|
-
return this.accessor.isMaximizedGroup(this._group);
|
|
168
|
-
};
|
|
169
|
-
DockviewGroupPanelApiImpl.prototype.exitMaximized = function () {
|
|
170
|
-
if (!this._group) {
|
|
171
|
-
throw new Error(NOT_INITIALIZED_MESSAGE);
|
|
172
|
-
}
|
|
173
|
-
if (this.isMaximized()) {
|
|
174
|
-
this.accessor.exitMaximizedGroup();
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
DockviewGroupPanelApiImpl.prototype.collapse = function () {
|
|
178
|
-
if (!this._group) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
this.accessor.setEdgeGroupCollapsed(this._group, true);
|
|
182
|
-
};
|
|
183
|
-
DockviewGroupPanelApiImpl.prototype.expand = function () {
|
|
184
|
-
if (!this._group) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
this.accessor.setEdgeGroupCollapsed(this._group, false);
|
|
188
|
-
};
|
|
189
|
-
DockviewGroupPanelApiImpl.prototype.isCollapsed = function () {
|
|
190
|
-
if (!this._group) {
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
return this.accessor.isEdgeGroupCollapsed(this._group);
|
|
194
|
-
};
|
|
195
|
-
DockviewGroupPanelApiImpl.prototype.initialize = function (group) {
|
|
196
|
-
this._group = group;
|
|
197
|
-
};
|
|
198
|
-
return DockviewGroupPanelApiImpl;
|
|
199
|
-
}(gridviewPanelApi_1.GridviewPanelApiImpl));
|
|
200
|
-
exports.DockviewGroupPanelApiImpl = DockviewGroupPanelApiImpl;
|
|
@@ -1,172 +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.DockviewPanelApiImpl = void 0;
|
|
19
|
-
var events_1 = require("../events");
|
|
20
|
-
var gridviewPanelApi_1 = require("./gridviewPanelApi");
|
|
21
|
-
var lifecycle_1 = require("../lifecycle");
|
|
22
|
-
var DockviewPanelApiImpl = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DockviewPanelApiImpl, _super);
|
|
24
|
-
function DockviewPanelApiImpl(panel, group, accessor, component, tabComponent) {
|
|
25
|
-
var _this = _super.call(this, panel.id, component) || this;
|
|
26
|
-
_this.panel = panel;
|
|
27
|
-
_this.accessor = accessor;
|
|
28
|
-
_this._onDidTitleChange = new events_1.Emitter();
|
|
29
|
-
_this.onDidTitleChange = _this._onDidTitleChange.event;
|
|
30
|
-
_this._onDidActiveGroupChange = new events_1.Emitter();
|
|
31
|
-
_this.onDidActiveGroupChange = _this._onDidActiveGroupChange.event;
|
|
32
|
-
_this._onDidGroupChange = new events_1.Emitter();
|
|
33
|
-
_this.onDidGroupChange = _this._onDidGroupChange.event;
|
|
34
|
-
_this._onDidRendererChange = new events_1.Emitter();
|
|
35
|
-
_this.onDidRendererChange = _this._onDidRendererChange.event;
|
|
36
|
-
_this._onDidLocationChange = new events_1.Emitter();
|
|
37
|
-
_this.onDidLocationChange = _this._onDidLocationChange.event;
|
|
38
|
-
_this.groupEventsDisposable = new lifecycle_1.MutableDisposable();
|
|
39
|
-
_this._tabComponent = tabComponent;
|
|
40
|
-
_this.initialize(panel);
|
|
41
|
-
_this._group = group;
|
|
42
|
-
_this.setupGroupEventListeners();
|
|
43
|
-
_this.addDisposables(_this.groupEventsDisposable, _this._onDidRendererChange, _this._onDidTitleChange, _this._onDidGroupChange, _this._onDidActiveGroupChange, _this._onDidLocationChange);
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "location", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this.group.api.location;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "title", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return this.panel.title;
|
|
56
|
-
},
|
|
57
|
-
enumerable: false,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "isGroupActive", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return this.group.isActive;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "renderer", {
|
|
68
|
-
get: function () {
|
|
69
|
-
return this.panel.renderer;
|
|
70
|
-
},
|
|
71
|
-
enumerable: false,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "group", {
|
|
75
|
-
get: function () {
|
|
76
|
-
return this._group;
|
|
77
|
-
},
|
|
78
|
-
set: function (value) {
|
|
79
|
-
var oldGroup = this._group;
|
|
80
|
-
if (this._group !== value) {
|
|
81
|
-
this._group = value;
|
|
82
|
-
this._onDidGroupChange.fire({});
|
|
83
|
-
this.setupGroupEventListeners(oldGroup);
|
|
84
|
-
this._onDidLocationChange.fire({
|
|
85
|
-
location: this.group.api.location,
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
enumerable: false,
|
|
90
|
-
configurable: true
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(DockviewPanelApiImpl.prototype, "tabComponent", {
|
|
93
|
-
get: function () {
|
|
94
|
-
return this._tabComponent;
|
|
95
|
-
},
|
|
96
|
-
enumerable: false,
|
|
97
|
-
configurable: true
|
|
98
|
-
});
|
|
99
|
-
DockviewPanelApiImpl.prototype.getWindow = function () {
|
|
100
|
-
return this.group.api.getWindow();
|
|
101
|
-
};
|
|
102
|
-
DockviewPanelApiImpl.prototype.setActive = function () {
|
|
103
|
-
var _this = this;
|
|
104
|
-
// A bare `panel.api.setActive()` from application code is a
|
|
105
|
-
// programmatic activation. Tag it `'api'` so `onDidActivePanelChange`
|
|
106
|
-
// reports the correct origin; user-gesture call sites that route
|
|
107
|
-
// through here wrap the call in `withOrigin('user')` first, which wins.
|
|
108
|
-
this.accessor.withOrigin('api', function () { return _super.prototype.setActive.call(_this); });
|
|
109
|
-
};
|
|
110
|
-
DockviewPanelApiImpl.prototype.moveTo = function (options) {
|
|
111
|
-
var _a, _b;
|
|
112
|
-
this.accessor.moveGroupOrPanel({
|
|
113
|
-
from: { groupId: this._group.id, panelId: this.panel.id },
|
|
114
|
-
to: {
|
|
115
|
-
group: (_a = options.group) !== null && _a !== void 0 ? _a : this._group,
|
|
116
|
-
position: options.group
|
|
117
|
-
? ((_b = options.position) !== null && _b !== void 0 ? _b : 'center')
|
|
118
|
-
: 'center',
|
|
119
|
-
index: options.index,
|
|
120
|
-
},
|
|
121
|
-
skipSetActive: options.skipSetActive,
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
DockviewPanelApiImpl.prototype.setTitle = function (title) {
|
|
125
|
-
this.panel.setTitle(title);
|
|
126
|
-
};
|
|
127
|
-
DockviewPanelApiImpl.prototype.setRenderer = function (renderer) {
|
|
128
|
-
this.panel.setRenderer(renderer);
|
|
129
|
-
};
|
|
130
|
-
DockviewPanelApiImpl.prototype.close = function () {
|
|
131
|
-
this.group.model.closePanel(this.panel);
|
|
132
|
-
};
|
|
133
|
-
DockviewPanelApiImpl.prototype.maximize = function () {
|
|
134
|
-
this.group.api.maximize();
|
|
135
|
-
};
|
|
136
|
-
DockviewPanelApiImpl.prototype.isMaximized = function () {
|
|
137
|
-
return this.group.api.isMaximized();
|
|
138
|
-
};
|
|
139
|
-
DockviewPanelApiImpl.prototype.exitMaximized = function () {
|
|
140
|
-
this.group.api.exitMaximized();
|
|
141
|
-
};
|
|
142
|
-
DockviewPanelApiImpl.prototype.setupGroupEventListeners = function (previousGroup) {
|
|
143
|
-
var _this = this;
|
|
144
|
-
var _a;
|
|
145
|
-
var _trackGroupActive = (_a = previousGroup === null || previousGroup === void 0 ? void 0 : previousGroup.isActive) !== null && _a !== void 0 ? _a : false; // prevent duplicate events with same state
|
|
146
|
-
this.groupEventsDisposable.value = new lifecycle_1.CompositeDisposable(this.group.api.onDidVisibilityChange(function (event) {
|
|
147
|
-
var hasBecomeHidden = !event.isVisible && _this.isVisible;
|
|
148
|
-
var hasBecomeVisible = event.isVisible && !_this.isVisible;
|
|
149
|
-
var isActivePanel = _this.group.model.isPanelActive(_this.panel);
|
|
150
|
-
if (hasBecomeHidden || (hasBecomeVisible && isActivePanel)) {
|
|
151
|
-
_this._onDidVisibilityChange.fire(event);
|
|
152
|
-
}
|
|
153
|
-
}), this.group.api.onDidLocationChange(function (event) {
|
|
154
|
-
if (_this.group !== _this.panel.group) {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
_this._onDidLocationChange.fire(event);
|
|
158
|
-
}), this.group.api.onDidActiveChange(function () {
|
|
159
|
-
if (_this.group !== _this.panel.group) {
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
if (_trackGroupActive !== _this.isGroupActive) {
|
|
163
|
-
_trackGroupActive = _this.isGroupActive;
|
|
164
|
-
_this._onDidActiveGroupChange.fire({
|
|
165
|
-
isActive: _this.isGroupActive,
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
}));
|
|
169
|
-
};
|
|
170
|
-
return DockviewPanelApiImpl;
|
|
171
|
-
}(gridviewPanelApi_1.GridviewPanelApiImpl));
|
|
172
|
-
exports.DockviewPanelApiImpl = DockviewPanelApiImpl;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createDockview = createDockview;
|
|
4
|
-
exports.createSplitview = createSplitview;
|
|
5
|
-
exports.createGridview = createGridview;
|
|
6
|
-
exports.createPaneview = createPaneview;
|
|
7
|
-
var component_api_1 = require("../api/component.api");
|
|
8
|
-
var dockviewComponent_1 = require("../dockview/dockviewComponent");
|
|
9
|
-
var gridviewComponent_1 = require("../gridview/gridviewComponent");
|
|
10
|
-
var paneviewComponent_1 = require("../paneview/paneviewComponent");
|
|
11
|
-
var splitviewComponent_1 = require("../splitview/splitviewComponent");
|
|
12
|
-
function createDockview(element, options) {
|
|
13
|
-
var component = new dockviewComponent_1.DockviewComponent(element, options);
|
|
14
|
-
return component.api;
|
|
15
|
-
}
|
|
16
|
-
function createSplitview(element, options) {
|
|
17
|
-
var component = new splitviewComponent_1.SplitviewComponent(element, options);
|
|
18
|
-
return new component_api_1.SplitviewApi(component);
|
|
19
|
-
}
|
|
20
|
-
function createGridview(element, options) {
|
|
21
|
-
var component = new gridviewComponent_1.GridviewComponent(element, options);
|
|
22
|
-
return new component_api_1.GridviewApi(component);
|
|
23
|
-
}
|
|
24
|
-
function createPaneview(element, options) {
|
|
25
|
-
var component = new paneviewComponent_1.PaneviewComponent(element, options);
|
|
26
|
-
return new component_api_1.PaneviewApi(component);
|
|
27
|
-
}
|
|
@@ -1,45 +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.GridviewPanelApiImpl = void 0;
|
|
19
|
-
var events_1 = require("../events");
|
|
20
|
-
var panelApi_1 = require("./panelApi");
|
|
21
|
-
var GridviewPanelApiImpl = /** @class */ (function (_super) {
|
|
22
|
-
__extends(GridviewPanelApiImpl, _super);
|
|
23
|
-
function GridviewPanelApiImpl(id, component, panel) {
|
|
24
|
-
var _this = _super.call(this, id, component) || this;
|
|
25
|
-
_this._onDidConstraintsChangeInternal = new events_1.Emitter();
|
|
26
|
-
_this.onDidConstraintsChangeInternal = _this._onDidConstraintsChangeInternal.event;
|
|
27
|
-
_this._onDidConstraintsChange = new events_1.Emitter();
|
|
28
|
-
_this.onDidConstraintsChange = _this._onDidConstraintsChange.event;
|
|
29
|
-
_this._onDidSizeChange = new events_1.Emitter();
|
|
30
|
-
_this.onDidSizeChange = _this._onDidSizeChange.event;
|
|
31
|
-
_this.addDisposables(_this._onDidConstraintsChangeInternal, _this._onDidConstraintsChange, _this._onDidSizeChange);
|
|
32
|
-
if (panel) {
|
|
33
|
-
_this.initialize(panel);
|
|
34
|
-
}
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
GridviewPanelApiImpl.prototype.setConstraints = function (value) {
|
|
38
|
-
this._onDidConstraintsChangeInternal.fire(value);
|
|
39
|
-
};
|
|
40
|
-
GridviewPanelApiImpl.prototype.setSize = function (event) {
|
|
41
|
-
this._onDidSizeChange.fire(event);
|
|
42
|
-
};
|
|
43
|
-
return GridviewPanelApiImpl;
|
|
44
|
-
}(panelApi_1.PanelApiImpl));
|
|
45
|
-
exports.GridviewPanelApiImpl = GridviewPanelApiImpl;
|
package/dist/cjs/api/panelApi.js
DELETED
|
@@ -1,133 +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.PanelApiImpl = exports.WillFocusEvent = void 0;
|
|
19
|
-
var events_1 = require("../events");
|
|
20
|
-
var lifecycle_1 = require("../lifecycle");
|
|
21
|
-
var WillFocusEvent = /** @class */ (function (_super) {
|
|
22
|
-
__extends(WillFocusEvent, _super);
|
|
23
|
-
function WillFocusEvent() {
|
|
24
|
-
return _super.call(this) || this;
|
|
25
|
-
}
|
|
26
|
-
return WillFocusEvent;
|
|
27
|
-
}(events_1.DockviewEvent));
|
|
28
|
-
exports.WillFocusEvent = WillFocusEvent;
|
|
29
|
-
/**
|
|
30
|
-
* A core api implementation that should be used across all panel-like objects
|
|
31
|
-
*/
|
|
32
|
-
var PanelApiImpl = /** @class */ (function (_super) {
|
|
33
|
-
__extends(PanelApiImpl, _super);
|
|
34
|
-
function PanelApiImpl(id, component) {
|
|
35
|
-
var _this = _super.call(this) || this;
|
|
36
|
-
_this.id = id;
|
|
37
|
-
_this.component = component;
|
|
38
|
-
_this._isFocused = false;
|
|
39
|
-
_this._isActive = false;
|
|
40
|
-
_this._isVisible = true;
|
|
41
|
-
_this._width = 0;
|
|
42
|
-
_this._height = 0;
|
|
43
|
-
_this._parameters = {};
|
|
44
|
-
_this.panelUpdatesDisposable = new lifecycle_1.MutableDisposable();
|
|
45
|
-
_this._onDidDimensionChange = new events_1.Emitter();
|
|
46
|
-
_this.onDidDimensionsChange = _this._onDidDimensionChange.event;
|
|
47
|
-
_this._onDidChangeFocus = new events_1.Emitter();
|
|
48
|
-
_this.onDidFocusChange = _this._onDidChangeFocus.event;
|
|
49
|
-
//
|
|
50
|
-
_this._onWillFocus = new events_1.Emitter();
|
|
51
|
-
_this.onWillFocus = _this._onWillFocus.event;
|
|
52
|
-
//
|
|
53
|
-
_this._onDidVisibilityChange = new events_1.Emitter();
|
|
54
|
-
_this.onDidVisibilityChange = _this._onDidVisibilityChange.event;
|
|
55
|
-
_this._onWillVisibilityChange = new events_1.Emitter();
|
|
56
|
-
_this.onWillVisibilityChange = _this._onWillVisibilityChange.event;
|
|
57
|
-
_this._onDidActiveChange = new events_1.Emitter();
|
|
58
|
-
_this.onDidActiveChange = _this._onDidActiveChange.event;
|
|
59
|
-
_this._onActiveChange = new events_1.Emitter();
|
|
60
|
-
_this.onActiveChange = _this._onActiveChange.event;
|
|
61
|
-
_this._onDidParametersChange = new events_1.Emitter();
|
|
62
|
-
_this.onDidParametersChange = _this._onDidParametersChange.event;
|
|
63
|
-
_this.addDisposables(_this.onDidFocusChange(function (event) {
|
|
64
|
-
_this._isFocused = event.isFocused;
|
|
65
|
-
}), _this.onDidActiveChange(function (event) {
|
|
66
|
-
_this._isActive = event.isActive;
|
|
67
|
-
}), _this.onDidVisibilityChange(function (event) {
|
|
68
|
-
_this._isVisible = event.isVisible;
|
|
69
|
-
}), _this.onDidDimensionsChange(function (event) {
|
|
70
|
-
_this._width = event.width;
|
|
71
|
-
_this._height = event.height;
|
|
72
|
-
}), _this.panelUpdatesDisposable, _this._onDidDimensionChange, _this._onDidChangeFocus, _this._onDidVisibilityChange, _this._onDidActiveChange, _this._onWillFocus, _this._onActiveChange, _this._onWillFocus, _this._onWillVisibilityChange, _this._onDidParametersChange);
|
|
73
|
-
return _this;
|
|
74
|
-
}
|
|
75
|
-
Object.defineProperty(PanelApiImpl.prototype, "isFocused", {
|
|
76
|
-
get: function () {
|
|
77
|
-
return this._isFocused;
|
|
78
|
-
},
|
|
79
|
-
enumerable: false,
|
|
80
|
-
configurable: true
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(PanelApiImpl.prototype, "isActive", {
|
|
83
|
-
get: function () {
|
|
84
|
-
return this._isActive;
|
|
85
|
-
},
|
|
86
|
-
enumerable: false,
|
|
87
|
-
configurable: true
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(PanelApiImpl.prototype, "isVisible", {
|
|
90
|
-
get: function () {
|
|
91
|
-
return this._isVisible;
|
|
92
|
-
},
|
|
93
|
-
enumerable: false,
|
|
94
|
-
configurable: true
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(PanelApiImpl.prototype, "width", {
|
|
97
|
-
get: function () {
|
|
98
|
-
return this._width;
|
|
99
|
-
},
|
|
100
|
-
enumerable: false,
|
|
101
|
-
configurable: true
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(PanelApiImpl.prototype, "height", {
|
|
104
|
-
get: function () {
|
|
105
|
-
return this._height;
|
|
106
|
-
},
|
|
107
|
-
enumerable: false,
|
|
108
|
-
configurable: true
|
|
109
|
-
});
|
|
110
|
-
PanelApiImpl.prototype.getParameters = function () {
|
|
111
|
-
return this._parameters;
|
|
112
|
-
};
|
|
113
|
-
PanelApiImpl.prototype.initialize = function (panel) {
|
|
114
|
-
var _this = this;
|
|
115
|
-
this.panelUpdatesDisposable.value = this._onDidParametersChange.event(function (parameters) {
|
|
116
|
-
_this._parameters = parameters;
|
|
117
|
-
panel.update({
|
|
118
|
-
params: parameters,
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
PanelApiImpl.prototype.setVisible = function (isVisible) {
|
|
123
|
-
this._onWillVisibilityChange.fire({ isVisible: isVisible });
|
|
124
|
-
};
|
|
125
|
-
PanelApiImpl.prototype.setActive = function () {
|
|
126
|
-
this._onActiveChange.fire();
|
|
127
|
-
};
|
|
128
|
-
PanelApiImpl.prototype.updateParameters = function (parameters) {
|
|
129
|
-
this._onDidParametersChange.fire(parameters);
|
|
130
|
-
};
|
|
131
|
-
return PanelApiImpl;
|
|
132
|
-
}(lifecycle_1.CompositeDisposable));
|
|
133
|
-
exports.PanelApiImpl = PanelApiImpl;
|
|
@@ -1,57 +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.PaneviewPanelApiImpl = void 0;
|
|
19
|
-
var events_1 = require("../events");
|
|
20
|
-
var splitviewPanelApi_1 = require("./splitviewPanelApi");
|
|
21
|
-
var PaneviewPanelApiImpl = /** @class */ (function (_super) {
|
|
22
|
-
__extends(PaneviewPanelApiImpl, _super);
|
|
23
|
-
function PaneviewPanelApiImpl(id, component) {
|
|
24
|
-
var _this = _super.call(this, id, component) || this;
|
|
25
|
-
_this._onDidExpansionChange = new events_1.Emitter({
|
|
26
|
-
replay: true,
|
|
27
|
-
});
|
|
28
|
-
_this.onDidExpansionChange = _this._onDidExpansionChange.event;
|
|
29
|
-
_this._onMouseEnter = new events_1.Emitter({});
|
|
30
|
-
_this.onMouseEnter = _this._onMouseEnter.event;
|
|
31
|
-
_this._onMouseLeave = new events_1.Emitter({});
|
|
32
|
-
_this.onMouseLeave = _this._onMouseLeave.event;
|
|
33
|
-
_this.addDisposables(_this._onDidExpansionChange, _this._onMouseEnter, _this._onMouseLeave);
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
Object.defineProperty(PaneviewPanelApiImpl.prototype, "pane", {
|
|
37
|
-
set: function (pane) {
|
|
38
|
-
this._pane = pane;
|
|
39
|
-
},
|
|
40
|
-
enumerable: false,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
PaneviewPanelApiImpl.prototype.setExpanded = function (isExpanded) {
|
|
44
|
-
var _a;
|
|
45
|
-
(_a = this._pane) === null || _a === void 0 ? void 0 : _a.setExpanded(isExpanded);
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(PaneviewPanelApiImpl.prototype, "isExpanded", {
|
|
48
|
-
get: function () {
|
|
49
|
-
var _a;
|
|
50
|
-
return !!((_a = this._pane) === null || _a === void 0 ? void 0 : _a.isExpanded());
|
|
51
|
-
},
|
|
52
|
-
enumerable: false,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
return PaneviewPanelApiImpl;
|
|
56
|
-
}(splitviewPanelApi_1.SplitviewPanelApiImpl));
|
|
57
|
-
exports.PaneviewPanelApiImpl = PaneviewPanelApiImpl;
|
|
@@ -1,47 +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.SplitviewPanelApiImpl = void 0;
|
|
19
|
-
var events_1 = require("../events");
|
|
20
|
-
var panelApi_1 = require("./panelApi");
|
|
21
|
-
var SplitviewPanelApiImpl = /** @class */ (function (_super) {
|
|
22
|
-
__extends(SplitviewPanelApiImpl, _super);
|
|
23
|
-
//
|
|
24
|
-
function SplitviewPanelApiImpl(id, component) {
|
|
25
|
-
var _this = _super.call(this, id, component) || this;
|
|
26
|
-
_this._onDidConstraintsChangeInternal = new events_1.Emitter();
|
|
27
|
-
_this.onDidConstraintsChangeInternal = _this._onDidConstraintsChangeInternal.event;
|
|
28
|
-
//
|
|
29
|
-
_this._onDidConstraintsChange = new events_1.Emitter({
|
|
30
|
-
replay: true,
|
|
31
|
-
});
|
|
32
|
-
_this.onDidConstraintsChange = _this._onDidConstraintsChange.event;
|
|
33
|
-
//
|
|
34
|
-
_this._onDidSizeChange = new events_1.Emitter();
|
|
35
|
-
_this.onDidSizeChange = _this._onDidSizeChange.event;
|
|
36
|
-
_this.addDisposables(_this._onDidConstraintsChangeInternal, _this._onDidConstraintsChange, _this._onDidSizeChange);
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
SplitviewPanelApiImpl.prototype.setConstraints = function (value) {
|
|
40
|
-
this._onDidConstraintsChangeInternal.fire(value);
|
|
41
|
-
};
|
|
42
|
-
SplitviewPanelApiImpl.prototype.setSize = function (event) {
|
|
43
|
-
this._onDidSizeChange.fire(event);
|
|
44
|
-
};
|
|
45
|
-
return SplitviewPanelApiImpl;
|
|
46
|
-
}(panelApi_1.PanelApiImpl));
|
|
47
|
-
exports.SplitviewPanelApiImpl = SplitviewPanelApiImpl;
|