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
package/dist/cjs/events.js
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __values = (this && this.__values) || function(o) {
|
|
3
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
-
if (m) return m.call(o);
|
|
5
|
-
if (o && typeof o.length === "number") return {
|
|
6
|
-
next: function () {
|
|
7
|
-
if (o && i >= o.length) o = void 0;
|
|
8
|
-
return { value: o && o[i++], done: !o };
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AsapEvent = exports.Emitter = exports.AcceptableEvent = exports.DockviewEvent = exports.Event = void 0;
|
|
15
|
-
exports.addDisposableListener = addDisposableListener;
|
|
16
|
-
var lifecycle_1 = require("./lifecycle");
|
|
17
|
-
var Event;
|
|
18
|
-
(function (Event) {
|
|
19
|
-
Event.any = function () {
|
|
20
|
-
var children = [];
|
|
21
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
22
|
-
children[_i] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return function (listener) {
|
|
25
|
-
var disposables = children.map(function (child) { return child(listener); });
|
|
26
|
-
return {
|
|
27
|
-
dispose: function () {
|
|
28
|
-
disposables.forEach(function (d) {
|
|
29
|
-
d.dispose();
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
})(Event || (exports.Event = Event = {}));
|
|
36
|
-
var DockviewEvent = /** @class */ (function () {
|
|
37
|
-
function DockviewEvent() {
|
|
38
|
-
this._defaultPrevented = false;
|
|
39
|
-
}
|
|
40
|
-
Object.defineProperty(DockviewEvent.prototype, "defaultPrevented", {
|
|
41
|
-
get: function () {
|
|
42
|
-
return this._defaultPrevented;
|
|
43
|
-
},
|
|
44
|
-
enumerable: false,
|
|
45
|
-
configurable: true
|
|
46
|
-
});
|
|
47
|
-
DockviewEvent.prototype.preventDefault = function () {
|
|
48
|
-
this._defaultPrevented = true;
|
|
49
|
-
};
|
|
50
|
-
return DockviewEvent;
|
|
51
|
-
}());
|
|
52
|
-
exports.DockviewEvent = DockviewEvent;
|
|
53
|
-
var AcceptableEvent = /** @class */ (function () {
|
|
54
|
-
function AcceptableEvent() {
|
|
55
|
-
this._isAccepted = false;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(AcceptableEvent.prototype, "isAccepted", {
|
|
58
|
-
get: function () {
|
|
59
|
-
return this._isAccepted;
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
AcceptableEvent.prototype.accept = function () {
|
|
65
|
-
this._isAccepted = true;
|
|
66
|
-
};
|
|
67
|
-
return AcceptableEvent;
|
|
68
|
-
}());
|
|
69
|
-
exports.AcceptableEvent = AcceptableEvent;
|
|
70
|
-
var LeakageMonitor = /** @class */ (function () {
|
|
71
|
-
function LeakageMonitor() {
|
|
72
|
-
this.events = new Map();
|
|
73
|
-
}
|
|
74
|
-
Object.defineProperty(LeakageMonitor.prototype, "size", {
|
|
75
|
-
get: function () {
|
|
76
|
-
return this.events.size;
|
|
77
|
-
},
|
|
78
|
-
enumerable: false,
|
|
79
|
-
configurable: true
|
|
80
|
-
});
|
|
81
|
-
LeakageMonitor.prototype.add = function (event, stacktrace) {
|
|
82
|
-
this.events.set(event, stacktrace);
|
|
83
|
-
};
|
|
84
|
-
LeakageMonitor.prototype.delete = function (event) {
|
|
85
|
-
this.events.delete(event);
|
|
86
|
-
};
|
|
87
|
-
LeakageMonitor.prototype.clear = function () {
|
|
88
|
-
this.events.clear();
|
|
89
|
-
};
|
|
90
|
-
return LeakageMonitor;
|
|
91
|
-
}());
|
|
92
|
-
var Stacktrace = /** @class */ (function () {
|
|
93
|
-
function Stacktrace(value) {
|
|
94
|
-
this.value = value;
|
|
95
|
-
}
|
|
96
|
-
Stacktrace.create = function () {
|
|
97
|
-
var _a;
|
|
98
|
-
return new Stacktrace((_a = new Error('listener stacktrace').stack) !== null && _a !== void 0 ? _a : '');
|
|
99
|
-
};
|
|
100
|
-
Stacktrace.prototype.print = function () {
|
|
101
|
-
console.warn('dockview: stacktrace', this.value);
|
|
102
|
-
};
|
|
103
|
-
return Stacktrace;
|
|
104
|
-
}());
|
|
105
|
-
var Listener = /** @class */ (function () {
|
|
106
|
-
function Listener(callback, stacktrace) {
|
|
107
|
-
this.callback = callback;
|
|
108
|
-
this.stacktrace = stacktrace;
|
|
109
|
-
}
|
|
110
|
-
return Listener;
|
|
111
|
-
}());
|
|
112
|
-
// relatively simple event emitter taken from https://github.com/microsoft/vscode/blob/master/src/vs/base/common/event.ts
|
|
113
|
-
var Emitter = /** @class */ (function () {
|
|
114
|
-
function Emitter(options) {
|
|
115
|
-
this.options = options;
|
|
116
|
-
this._listeners = [];
|
|
117
|
-
this._disposed = false;
|
|
118
|
-
this._pauseTokens = new Set();
|
|
119
|
-
}
|
|
120
|
-
Emitter.setLeakageMonitorEnabled = function (isEnabled) {
|
|
121
|
-
if (isEnabled !== Emitter.ENABLE_TRACKING) {
|
|
122
|
-
Emitter.MEMORY_LEAK_WATCHER.clear();
|
|
123
|
-
}
|
|
124
|
-
Emitter.ENABLE_TRACKING = isEnabled;
|
|
125
|
-
};
|
|
126
|
-
Object.defineProperty(Emitter.prototype, "value", {
|
|
127
|
-
get: function () {
|
|
128
|
-
return this._last;
|
|
129
|
-
},
|
|
130
|
-
enumerable: false,
|
|
131
|
-
configurable: true
|
|
132
|
-
});
|
|
133
|
-
Object.defineProperty(Emitter.prototype, "event", {
|
|
134
|
-
get: function () {
|
|
135
|
-
var _this = this;
|
|
136
|
-
if (!this._event) {
|
|
137
|
-
this._event = function (callback) {
|
|
138
|
-
var _a;
|
|
139
|
-
if (((_a = _this.options) === null || _a === void 0 ? void 0 : _a.replay) && _this._last !== undefined) {
|
|
140
|
-
callback(_this._last);
|
|
141
|
-
}
|
|
142
|
-
var listener = new Listener(callback, Emitter.ENABLE_TRACKING ? Stacktrace.create() : undefined);
|
|
143
|
-
_this._listeners.push(listener);
|
|
144
|
-
return {
|
|
145
|
-
dispose: function () {
|
|
146
|
-
var index = _this._listeners.indexOf(listener);
|
|
147
|
-
if (index > -1) {
|
|
148
|
-
_this._listeners.splice(index, 1);
|
|
149
|
-
}
|
|
150
|
-
else if (Emitter.ENABLE_TRACKING) {
|
|
151
|
-
// console.warn(
|
|
152
|
-
// `dockview: listener already disposed`,
|
|
153
|
-
// Stacktrace.create().print()
|
|
154
|
-
// );
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
if (Emitter.ENABLE_TRACKING) {
|
|
160
|
-
Emitter.MEMORY_LEAK_WATCHER.add(this._event, Stacktrace.create());
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return this._event;
|
|
164
|
-
},
|
|
165
|
-
enumerable: false,
|
|
166
|
-
configurable: true
|
|
167
|
-
});
|
|
168
|
-
Emitter.prototype.fire = function (e) {
|
|
169
|
-
var e_1, _a;
|
|
170
|
-
var _b;
|
|
171
|
-
if (this._pauseTokens.size > 0) {
|
|
172
|
-
// while paused, the event is dropped entirely — `_last` is not
|
|
173
|
-
// updated, so replay subscribers won't see values fired during a pause
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
if ((_b = this.options) === null || _b === void 0 ? void 0 : _b.replay) {
|
|
177
|
-
this._last = e;
|
|
178
|
-
}
|
|
179
|
-
try {
|
|
180
|
-
for (var _c = __values(this._listeners), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
181
|
-
var listener = _d.value;
|
|
182
|
-
listener.callback(e);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
186
|
-
finally {
|
|
187
|
-
try {
|
|
188
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
189
|
-
}
|
|
190
|
-
finally { if (e_1) throw e_1.error; }
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
Emitter.prototype.pause = function () {
|
|
194
|
-
var _this = this;
|
|
195
|
-
var token = {};
|
|
196
|
-
this._pauseTokens.add(token);
|
|
197
|
-
return lifecycle_1.Disposable.from(function () { return _this._pauseTokens.delete(token); });
|
|
198
|
-
};
|
|
199
|
-
Emitter.prototype.dispose = function () {
|
|
200
|
-
var _this = this;
|
|
201
|
-
if (!this._disposed) {
|
|
202
|
-
this._disposed = true;
|
|
203
|
-
if (this._listeners.length > 0) {
|
|
204
|
-
if (Emitter.ENABLE_TRACKING) {
|
|
205
|
-
queueMicrotask(function () {
|
|
206
|
-
var e_2, _a;
|
|
207
|
-
var _b;
|
|
208
|
-
try {
|
|
209
|
-
// don't check until stack of execution is completed to allow for out-of-order disposals within the same execution block
|
|
210
|
-
for (var _c = __values(_this._listeners), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
211
|
-
var listener = _d.value;
|
|
212
|
-
console.warn('dockview: stacktrace', (_b = listener.stacktrace) === null || _b === void 0 ? void 0 : _b.print());
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
216
|
-
finally {
|
|
217
|
-
try {
|
|
218
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
219
|
-
}
|
|
220
|
-
finally { if (e_2) throw e_2.error; }
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
this._listeners = [];
|
|
225
|
-
}
|
|
226
|
-
if (Emitter.ENABLE_TRACKING && this._event) {
|
|
227
|
-
Emitter.MEMORY_LEAK_WATCHER.delete(this._event);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
Emitter.ENABLE_TRACKING = false;
|
|
232
|
-
Emitter.MEMORY_LEAK_WATCHER = new LeakageMonitor();
|
|
233
|
-
return Emitter;
|
|
234
|
-
}());
|
|
235
|
-
exports.Emitter = Emitter;
|
|
236
|
-
function addDisposableListener(element, type, listener, options) {
|
|
237
|
-
element.addEventListener(type, listener, options);
|
|
238
|
-
return {
|
|
239
|
-
dispose: function () {
|
|
240
|
-
element.removeEventListener(type, listener, options);
|
|
241
|
-
},
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
* Event Emitter that fires events from a Microtask callback, only one event will fire per event-loop cycle.
|
|
247
|
-
*
|
|
248
|
-
* It's kind of like using an `asapScheduler` in RxJs with additional logic to only fire once per event-loop cycle.
|
|
249
|
-
* This implementation exists to avoid external dependencies.
|
|
250
|
-
*
|
|
251
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask
|
|
252
|
-
* @see https://rxjs.dev/api/index/const/asapScheduler
|
|
253
|
-
*/
|
|
254
|
-
var AsapEvent = /** @class */ (function () {
|
|
255
|
-
function AsapEvent() {
|
|
256
|
-
var _this = this;
|
|
257
|
-
this._onFired = new Emitter();
|
|
258
|
-
this._currentFireCount = 0;
|
|
259
|
-
this._queued = false;
|
|
260
|
-
this.onEvent = function (e) {
|
|
261
|
-
/**
|
|
262
|
-
* when the event is first subscribed to take note of the current fire count
|
|
263
|
-
*/
|
|
264
|
-
var fireCountAtTimeOfEventSubscription = _this._currentFireCount;
|
|
265
|
-
return _this._onFired.event(function () {
|
|
266
|
-
/**
|
|
267
|
-
* if the current fire count is greater than the fire count at event subscription
|
|
268
|
-
* then the event has been fired since we subscribed and it's ok to "on_next" the event.
|
|
269
|
-
*
|
|
270
|
-
* if the count is not greater then what we are recieving is an event from the microtask
|
|
271
|
-
* queue that was triggered before we actually subscribed and therfore we should ignore it.
|
|
272
|
-
*/
|
|
273
|
-
if (_this._currentFireCount > fireCountAtTimeOfEventSubscription) {
|
|
274
|
-
e();
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
AsapEvent.prototype.fire = function () {
|
|
280
|
-
var _this = this;
|
|
281
|
-
this._currentFireCount++;
|
|
282
|
-
if (this._queued) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
this._queued = true;
|
|
286
|
-
queueMicrotask(function () {
|
|
287
|
-
_this._queued = false;
|
|
288
|
-
_this._onFired.fire();
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
AsapEvent.prototype.dispose = function () {
|
|
292
|
-
this._onFired.dispose();
|
|
293
|
-
};
|
|
294
|
-
return AsapEvent;
|
|
295
|
-
}());
|
|
296
|
-
exports.AsapEvent = AsapEvent;
|
package/dist/cjs/framwork.js
DELETED
|
@@ -1,330 +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 __values = (this && this.__values) || function(o) {
|
|
18
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
19
|
-
if (m) return m.call(o);
|
|
20
|
-
if (o && typeof o.length === "number") return {
|
|
21
|
-
next: function () {
|
|
22
|
-
if (o && i >= o.length) o = void 0;
|
|
23
|
-
return { value: o && o[i++], done: !o };
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BaseGrid = void 0;
|
|
30
|
-
exports.toTarget = toTarget;
|
|
31
|
-
var events_1 = require("../events");
|
|
32
|
-
var gridview_1 = require("./gridview");
|
|
33
|
-
var lifecycle_1 = require("../lifecycle");
|
|
34
|
-
var math_1 = require("../math");
|
|
35
|
-
var splitview_1 = require("../splitview/splitview");
|
|
36
|
-
var resizable_1 = require("../resizable");
|
|
37
|
-
var dom_1 = require("../dom");
|
|
38
|
-
var nextLayoutId = (0, math_1.sequentialNumberGenerator)();
|
|
39
|
-
function toTarget(direction) {
|
|
40
|
-
switch (direction) {
|
|
41
|
-
case 'left':
|
|
42
|
-
return 'left';
|
|
43
|
-
case 'right':
|
|
44
|
-
return 'right';
|
|
45
|
-
case 'above':
|
|
46
|
-
return 'top';
|
|
47
|
-
case 'below':
|
|
48
|
-
return 'bottom';
|
|
49
|
-
case 'within':
|
|
50
|
-
default:
|
|
51
|
-
return 'center';
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
var BaseGrid = /** @class */ (function (_super) {
|
|
55
|
-
__extends(BaseGrid, _super);
|
|
56
|
-
function BaseGrid(container, options) {
|
|
57
|
-
var _a;
|
|
58
|
-
var _this = _super.call(this, document.createElement('div'), options.disableAutoResizing) || this;
|
|
59
|
-
_this._id = nextLayoutId.next();
|
|
60
|
-
_this._groups = new Map();
|
|
61
|
-
_this._onDidRemove = new events_1.Emitter();
|
|
62
|
-
_this.onDidRemove = _this._onDidRemove.event;
|
|
63
|
-
_this._onDidAdd = new events_1.Emitter();
|
|
64
|
-
_this.onDidAdd = _this._onDidAdd.event;
|
|
65
|
-
_this._onDidMaximizedChange = new events_1.Emitter();
|
|
66
|
-
_this.onDidMaximizedChange = _this._onDidMaximizedChange.event;
|
|
67
|
-
_this._onDidActiveChange = new events_1.Emitter();
|
|
68
|
-
_this.onDidActiveChange = _this._onDidActiveChange.event;
|
|
69
|
-
_this._bufferOnDidLayoutChange = new events_1.AsapEvent();
|
|
70
|
-
_this.onDidLayoutChange = _this._bufferOnDidLayoutChange.onEvent;
|
|
71
|
-
_this._onDidViewVisibilityChangeMicroTaskQueue = new events_1.AsapEvent();
|
|
72
|
-
_this.onDidViewVisibilityChangeMicroTaskQueue = _this._onDidViewVisibilityChangeMicroTaskQueue.onEvent;
|
|
73
|
-
_this.element.style.height = '100%';
|
|
74
|
-
_this.element.style.width = '100%';
|
|
75
|
-
_this._classNames = new dom_1.Classnames(_this.element);
|
|
76
|
-
_this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
77
|
-
// the container is owned by the third-party, do not modify/delete it
|
|
78
|
-
container.appendChild(_this.element);
|
|
79
|
-
_this.gridview = new gridview_1.Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
80
|
-
_this.gridview.locked = !!options.locked;
|
|
81
|
-
_this.element.appendChild(_this.gridview.element);
|
|
82
|
-
_this.layout(0, 0, true); // set some elements height/widths
|
|
83
|
-
_this.addDisposables(_this.gridview.onDidMaximizedNodeChange(function (event) {
|
|
84
|
-
_this._onDidMaximizedChange.fire({
|
|
85
|
-
panel: event.view,
|
|
86
|
-
isMaximized: event.isMaximized,
|
|
87
|
-
});
|
|
88
|
-
}), _this.gridview.onDidViewVisibilityChange(function () {
|
|
89
|
-
return _this._onDidViewVisibilityChangeMicroTaskQueue.fire();
|
|
90
|
-
}), _this.onDidViewVisibilityChangeMicroTaskQueue(function () {
|
|
91
|
-
_this.forceRelayout();
|
|
92
|
-
}), lifecycle_1.Disposable.from(function () {
|
|
93
|
-
_this.element.remove();
|
|
94
|
-
}), _this.gridview.onDidChange(function () {
|
|
95
|
-
_this._bufferOnDidLayoutChange.fire();
|
|
96
|
-
}), events_1.Event.any(_this.onDidAdd, _this.onDidRemove, _this.onDidActiveChange)(function () {
|
|
97
|
-
_this._bufferOnDidLayoutChange.fire();
|
|
98
|
-
}), _this._onDidMaximizedChange, _this._onDidViewVisibilityChangeMicroTaskQueue, _this._bufferOnDidLayoutChange);
|
|
99
|
-
return _this;
|
|
100
|
-
}
|
|
101
|
-
Object.defineProperty(BaseGrid.prototype, "id", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this._id;
|
|
104
|
-
},
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(BaseGrid.prototype, "size", {
|
|
109
|
-
get: function () {
|
|
110
|
-
return this._groups.size;
|
|
111
|
-
},
|
|
112
|
-
enumerable: false,
|
|
113
|
-
configurable: true
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(BaseGrid.prototype, "groups", {
|
|
116
|
-
get: function () {
|
|
117
|
-
return Array.from(this._groups.values()).map(function (_) { return _.value; });
|
|
118
|
-
},
|
|
119
|
-
enumerable: false,
|
|
120
|
-
configurable: true
|
|
121
|
-
});
|
|
122
|
-
Object.defineProperty(BaseGrid.prototype, "width", {
|
|
123
|
-
get: function () {
|
|
124
|
-
return this.gridview.width;
|
|
125
|
-
},
|
|
126
|
-
enumerable: false,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(BaseGrid.prototype, "height", {
|
|
130
|
-
get: function () {
|
|
131
|
-
return this.gridview.height;
|
|
132
|
-
},
|
|
133
|
-
enumerable: false,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(BaseGrid.prototype, "minimumHeight", {
|
|
137
|
-
get: function () {
|
|
138
|
-
return this.gridview.minimumHeight;
|
|
139
|
-
},
|
|
140
|
-
enumerable: false,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(BaseGrid.prototype, "maximumHeight", {
|
|
144
|
-
get: function () {
|
|
145
|
-
return this.gridview.maximumHeight;
|
|
146
|
-
},
|
|
147
|
-
enumerable: false,
|
|
148
|
-
configurable: true
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(BaseGrid.prototype, "minimumWidth", {
|
|
151
|
-
get: function () {
|
|
152
|
-
return this.gridview.minimumWidth;
|
|
153
|
-
},
|
|
154
|
-
enumerable: false,
|
|
155
|
-
configurable: true
|
|
156
|
-
});
|
|
157
|
-
Object.defineProperty(BaseGrid.prototype, "maximumWidth", {
|
|
158
|
-
get: function () {
|
|
159
|
-
return this.gridview.maximumWidth;
|
|
160
|
-
},
|
|
161
|
-
enumerable: false,
|
|
162
|
-
configurable: true
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(BaseGrid.prototype, "activeGroup", {
|
|
165
|
-
get: function () {
|
|
166
|
-
return this._activeGroup;
|
|
167
|
-
},
|
|
168
|
-
enumerable: false,
|
|
169
|
-
configurable: true
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(BaseGrid.prototype, "locked", {
|
|
172
|
-
get: function () {
|
|
173
|
-
return this.gridview.locked;
|
|
174
|
-
},
|
|
175
|
-
set: function (value) {
|
|
176
|
-
this.gridview.locked = value;
|
|
177
|
-
},
|
|
178
|
-
enumerable: false,
|
|
179
|
-
configurable: true
|
|
180
|
-
});
|
|
181
|
-
BaseGrid.prototype.setVisible = function (panel, visible) {
|
|
182
|
-
this.gridview.setViewVisible((0, gridview_1.getGridLocation)(panel.element), visible);
|
|
183
|
-
this._bufferOnDidLayoutChange.fire();
|
|
184
|
-
};
|
|
185
|
-
BaseGrid.prototype.isVisible = function (panel) {
|
|
186
|
-
return this.gridview.isViewVisible((0, gridview_1.getGridLocation)(panel.element));
|
|
187
|
-
};
|
|
188
|
-
BaseGrid.prototype.updateOptions = function (options) {
|
|
189
|
-
var _a, _b, _c, _d;
|
|
190
|
-
if (typeof options.proportionalLayout === 'boolean') {
|
|
191
|
-
// this.gridview.proportionalLayout = options.proportionalLayout; // not supported
|
|
192
|
-
}
|
|
193
|
-
if (options.orientation) {
|
|
194
|
-
this.gridview.orientation = options.orientation;
|
|
195
|
-
}
|
|
196
|
-
if ('styles' in options) {
|
|
197
|
-
// this.gridview.styles = options.styles; // not supported
|
|
198
|
-
}
|
|
199
|
-
if ('disableResizing' in options) {
|
|
200
|
-
this.disableResizing = (_a = options.disableAutoResizing) !== null && _a !== void 0 ? _a : false;
|
|
201
|
-
}
|
|
202
|
-
if ('locked' in options) {
|
|
203
|
-
this.locked = (_b = options.locked) !== null && _b !== void 0 ? _b : false;
|
|
204
|
-
}
|
|
205
|
-
if ('margin' in options) {
|
|
206
|
-
this.gridview.margin = (_c = options.margin) !== null && _c !== void 0 ? _c : 0;
|
|
207
|
-
}
|
|
208
|
-
if ('className' in options) {
|
|
209
|
-
this._classNames.setClassNames((_d = options.className) !== null && _d !== void 0 ? _d : '');
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
BaseGrid.prototype.maximizeGroup = function (panel) {
|
|
213
|
-
this.gridview.maximizeView(panel);
|
|
214
|
-
this.doSetGroupActive(panel);
|
|
215
|
-
};
|
|
216
|
-
BaseGrid.prototype.isMaximizedGroup = function (panel) {
|
|
217
|
-
return this.gridview.maximizedView() === panel;
|
|
218
|
-
};
|
|
219
|
-
BaseGrid.prototype.exitMaximizedGroup = function () {
|
|
220
|
-
this.gridview.exitMaximizedView();
|
|
221
|
-
};
|
|
222
|
-
BaseGrid.prototype.hasMaximizedGroup = function () {
|
|
223
|
-
return this.gridview.hasMaximizedView();
|
|
224
|
-
};
|
|
225
|
-
BaseGrid.prototype.doAddGroup = function (group, location, size, gridview) {
|
|
226
|
-
if (location === void 0) { location = [0]; }
|
|
227
|
-
if (gridview === void 0) { gridview = this.gridview; }
|
|
228
|
-
gridview.addView(group, size !== null && size !== void 0 ? size : splitview_1.Sizing.Distribute, location);
|
|
229
|
-
this._onDidAdd.fire(group);
|
|
230
|
-
};
|
|
231
|
-
BaseGrid.prototype.doRemoveGroup = function (group, options) {
|
|
232
|
-
if (!this._groups.has(group.id)) {
|
|
233
|
-
throw new Error('invalid operation');
|
|
234
|
-
}
|
|
235
|
-
var item = this._groups.get(group.id);
|
|
236
|
-
var view = this.gridview.remove(group, splitview_1.Sizing.Distribute);
|
|
237
|
-
if (item && !(options === null || options === void 0 ? void 0 : options.skipDispose)) {
|
|
238
|
-
item.disposable.dispose();
|
|
239
|
-
item.value.dispose();
|
|
240
|
-
this._groups.delete(group.id);
|
|
241
|
-
this._onDidRemove.fire(group);
|
|
242
|
-
}
|
|
243
|
-
if (!(options === null || options === void 0 ? void 0 : options.skipActive) && this._activeGroup === group) {
|
|
244
|
-
var groups = Array.from(this._groups.values());
|
|
245
|
-
this.doSetGroupActive(groups.length > 0 ? groups[0].value : undefined);
|
|
246
|
-
}
|
|
247
|
-
return view;
|
|
248
|
-
};
|
|
249
|
-
BaseGrid.prototype.getPanel = function (id) {
|
|
250
|
-
var _a;
|
|
251
|
-
return (_a = this._groups.get(id)) === null || _a === void 0 ? void 0 : _a.value;
|
|
252
|
-
};
|
|
253
|
-
BaseGrid.prototype.doSetGroupActive = function (group) {
|
|
254
|
-
if (this._activeGroup === group) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
if (this._activeGroup) {
|
|
258
|
-
this._activeGroup.setActive(false);
|
|
259
|
-
}
|
|
260
|
-
if (group) {
|
|
261
|
-
group.setActive(true);
|
|
262
|
-
}
|
|
263
|
-
this._activeGroup = group;
|
|
264
|
-
this._onDidActiveChange.fire(group);
|
|
265
|
-
};
|
|
266
|
-
BaseGrid.prototype.removeGroup = function (group) {
|
|
267
|
-
this.doRemoveGroup(group);
|
|
268
|
-
};
|
|
269
|
-
BaseGrid.prototype.moveToNext = function (options) {
|
|
270
|
-
var _a;
|
|
271
|
-
options !== null && options !== void 0 ? options : (options = {});
|
|
272
|
-
if (!options.group) {
|
|
273
|
-
if (!this.activeGroup) {
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
options.group = this.activeGroup;
|
|
277
|
-
}
|
|
278
|
-
var location = (0, gridview_1.getGridLocation)(options.group.element);
|
|
279
|
-
var next = (_a = this.gridview.next(location)) === null || _a === void 0 ? void 0 : _a.view;
|
|
280
|
-
this.doSetGroupActive(next);
|
|
281
|
-
};
|
|
282
|
-
BaseGrid.prototype.moveToPrevious = function (options) {
|
|
283
|
-
var _a;
|
|
284
|
-
options !== null && options !== void 0 ? options : (options = {});
|
|
285
|
-
if (!options.group) {
|
|
286
|
-
if (!this.activeGroup) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
options.group = this.activeGroup;
|
|
290
|
-
}
|
|
291
|
-
var location = (0, gridview_1.getGridLocation)(options.group.element);
|
|
292
|
-
var next = (_a = this.gridview.previous(location)) === null || _a === void 0 ? void 0 : _a.view;
|
|
293
|
-
this.doSetGroupActive(next);
|
|
294
|
-
};
|
|
295
|
-
BaseGrid.prototype.forceRelayout = function () {
|
|
296
|
-
this.layout(this.width, this.height, true);
|
|
297
|
-
};
|
|
298
|
-
BaseGrid.prototype.layout = function (width, height, forceResize) {
|
|
299
|
-
var different = forceResize || width !== this.width || height !== this.height;
|
|
300
|
-
if (!different) {
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
this.gridview.element.style.height = "".concat(height, "px");
|
|
304
|
-
this.gridview.element.style.width = "".concat(width, "px");
|
|
305
|
-
this.gridview.layout(width, height);
|
|
306
|
-
};
|
|
307
|
-
BaseGrid.prototype.dispose = function () {
|
|
308
|
-
var e_1, _a;
|
|
309
|
-
this._onDidActiveChange.dispose();
|
|
310
|
-
this._onDidAdd.dispose();
|
|
311
|
-
this._onDidRemove.dispose();
|
|
312
|
-
try {
|
|
313
|
-
for (var _b = __values(this.groups), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
314
|
-
var group = _c.value;
|
|
315
|
-
group.dispose();
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
319
|
-
finally {
|
|
320
|
-
try {
|
|
321
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
322
|
-
}
|
|
323
|
-
finally { if (e_1) throw e_1.error; }
|
|
324
|
-
}
|
|
325
|
-
this.gridview.dispose();
|
|
326
|
-
_super.prototype.dispose.call(this);
|
|
327
|
-
};
|
|
328
|
-
return BaseGrid;
|
|
329
|
-
}(resizable_1.Resizable));
|
|
330
|
-
exports.BaseGrid = BaseGrid;
|