dockview 0.0.28 → 1.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/LICENSE +21 -21
- package/README.md +60 -0
- package/dist/cjs/actionbar/actionsContainer.d.ts +7 -7
- package/dist/cjs/actionbar/actionsContainer.js +26 -26
- package/dist/cjs/api/component.api.d.ts +131 -131
- package/dist/cjs/api/component.api.js +444 -444
- package/dist/cjs/api/gridviewPanelApi.d.ts +36 -36
- package/dist/cjs/api/gridviewPanelApi.js +46 -46
- package/dist/cjs/api/groupPanelApi.d.ts +44 -44
- package/dist/cjs/api/groupPanelApi.js +94 -94
- package/dist/cjs/api/groupPanelApi.js.map +1 -1
- package/dist/cjs/api/panelApi.d.ts +107 -107
- package/dist/cjs/api/panelApi.js +140 -140
- package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
- package/dist/cjs/api/paneviewPanelApi.js +56 -56
- package/dist/cjs/api/splitviewPanelApi.d.ts +33 -33
- package/dist/cjs/api/splitviewPanelApi.js +51 -51
- package/dist/cjs/array.d.ts +13 -13
- package/dist/cjs/array.js +77 -77
- package/dist/cjs/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/cjs/dnd/abstractDragHandler.js +115 -115
- package/dist/cjs/dnd/dataTransfer.d.ts +56 -56
- package/dist/cjs/dnd/dataTransfer.js +144 -144
- package/dist/cjs/dnd/dataTransfer.js.map +1 -1
- package/dist/cjs/dnd/dnd.d.ts +40 -40
- package/dist/cjs/dnd/dnd.js +142 -142
- package/dist/cjs/dnd/droptarget.d.ts +37 -37
- package/dist/cjs/dnd/droptarget.js +177 -177
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +44 -44
- package/dist/cjs/dockview/components/tab/defaultTab.js +186 -186
- package/dist/cjs/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/cjs/dockview/components/watermark/watermark.js +99 -99
- package/dist/cjs/dockview/defaultGroupPanelView.d.ts +34 -34
- package/dist/cjs/dockview/defaultGroupPanelView.js +83 -83
- package/dist/cjs/dockview/deserializer.d.ts +14 -14
- package/dist/cjs/dockview/deserializer.js +47 -47
- package/dist/cjs/dockview/dockviewComponent.d.ts +121 -121
- package/dist/cjs/dockview/dockviewComponent.js +692 -692
- package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +35 -35
- package/dist/cjs/dockview/dockviewGroupPanel.js +195 -195
- package/dist/cjs/dockview/options.d.ts +79 -79
- package/dist/cjs/dockview/options.js +2 -2
- package/dist/cjs/dom.d.ts +14 -14
- package/dist/cjs/dom.js +182 -182
- package/dist/cjs/events.d.ts +23 -23
- package/dist/cjs/events.js +87 -87
- package/dist/cjs/footnote.d.ts +1 -1
- package/dist/cjs/footnote.js +19 -19
- package/dist/cjs/footnote.js.map +1 -1
- package/dist/cjs/functions.d.ts +1 -1
- package/dist/cjs/functions.js +41 -41
- package/dist/cjs/gridview/baseComponentGridview.d.ts +98 -98
- package/dist/cjs/gridview/baseComponentGridview.js +292 -292
- package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
- package/dist/cjs/gridview/basePanelView.d.ts +46 -46
- package/dist/cjs/gridview/basePanelView.js +115 -115
- package/dist/cjs/gridview/branchNode.d.ts +46 -46
- package/dist/cjs/gridview/branchNode.js +342 -342
- package/dist/cjs/gridview/gridview.d.ts +123 -123
- package/dist/cjs/gridview/gridview.js +477 -477
- package/dist/cjs/gridview/gridviewComponent.d.ts +88 -88
- package/dist/cjs/gridview/gridviewComponent.js +303 -303
- package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
- package/dist/cjs/gridview/gridviewPanel.d.ts +62 -62
- package/dist/cjs/gridview/gridviewPanel.js +205 -205
- package/dist/cjs/gridview/leafNode.d.ts +31 -31
- package/dist/cjs/gridview/leafNode.js +164 -164
- package/dist/cjs/gridview/options.d.ts +18 -18
- package/dist/cjs/gridview/options.js +2 -2
- package/dist/cjs/gridview/types.d.ts +3 -3
- package/dist/cjs/gridview/types.js +2 -2
- package/dist/cjs/groupview/dnd.d.ts +5 -5
- package/dist/cjs/groupview/dnd.js +9 -9
- package/dist/cjs/groupview/groupPanel.d.ts +41 -41
- package/dist/cjs/groupview/groupPanel.js +2 -2
- package/dist/cjs/groupview/groupview.d.ts +154 -154
- package/dist/cjs/groupview/groupview.js +633 -633
- package/dist/cjs/groupview/groupviewPanel.d.ts +18 -18
- package/dist/cjs/groupview/groupviewPanel.js +83 -83
- package/dist/cjs/groupview/panel/content.d.ts +30 -30
- package/dist/cjs/groupview/panel/content.js +99 -99
- package/dist/cjs/groupview/panel/hostedPanel.d.ts +22 -22
- package/dist/cjs/groupview/panel/hostedPanel.js +56 -56
- package/dist/cjs/groupview/panel/hostedPanel.js.map +1 -1
- package/dist/cjs/groupview/tab.d.ts +44 -44
- package/dist/cjs/groupview/tab.js +182 -182
- package/dist/cjs/groupview/titlebar/tabsContainer.d.ts +66 -66
- package/dist/cjs/groupview/titlebar/tabsContainer.js +260 -260
- package/dist/cjs/groupview/titlebar/tabsContainer.js.map +1 -1
- package/dist/cjs/groupview/types.d.ts +59 -59
- package/dist/cjs/groupview/types.js +2 -2
- package/dist/cjs/hostedContainer.d.ts +23 -23
- package/dist/cjs/hostedContainer.js +73 -73
- package/dist/cjs/hostedContainer.js.map +1 -1
- package/dist/cjs/index.d.ts +29 -26
- package/dist/cjs/index.js +38 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/json.d.ts +1 -1
- package/dist/cjs/json.js +13 -13
- package/dist/cjs/lifecycle.d.ts +22 -22
- package/dist/cjs/lifecycle.js +87 -87
- package/dist/cjs/math.d.ts +4 -4
- package/dist/cjs/math.js +15 -15
- package/dist/cjs/math.js.map +1 -1
- package/dist/cjs/panel/componentFactory.d.ts +8 -8
- package/dist/cjs/panel/componentFactory.js +30 -30
- package/dist/cjs/panel/componentFactory.js.map +1 -1
- package/dist/cjs/panel/types.d.ts +34 -34
- package/dist/cjs/panel/types.js +2 -2
- package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +18 -18
- package/dist/cjs/paneview/defaultPaneviewHeader.js +64 -64
- package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +17 -17
- package/dist/cjs/paneview/draggablePaneviewPanel.js +111 -111
- package/dist/cjs/paneview/options.d.ts +25 -25
- package/dist/cjs/paneview/options.js +2 -2
- package/dist/cjs/paneview/paneview.d.ts +38 -38
- package/dist/cjs/paneview/paneview.js +198 -198
- package/dist/cjs/paneview/paneviewComponent.d.ts +113 -113
- package/dist/cjs/paneview/paneviewComponent.js +338 -338
- package/dist/cjs/paneview/paneviewPanel.d.ts +85 -85
- package/dist/cjs/paneview/paneviewPanel.js +262 -262
- package/dist/cjs/paneview/paneviewPanel.js.map +1 -1
- package/dist/cjs/react/deserializer.d.ts +8 -8
- package/dist/cjs/react/deserializer.js +39 -39
- package/dist/cjs/react/dockview/components.d.ts +11 -11
- package/dist/cjs/react/dockview/components.js +76 -76
- package/dist/cjs/react/dockview/dockview.d.ts +34 -34
- package/dist/cjs/react/dockview/dockview.js +135 -135
- package/dist/cjs/react/dockview/reactContentPart.d.ts +47 -47
- package/dist/cjs/react/dockview/reactContentPart.js +88 -88
- package/dist/cjs/react/dockview/reactHeaderPart.d.ts +24 -24
- package/dist/cjs/react/dockview/reactHeaderPart.js +50 -50
- package/dist/cjs/react/dockview/reactWatermarkPart.d.ts +30 -30
- package/dist/cjs/react/dockview/reactWatermarkPart.js +66 -66
- package/dist/cjs/react/dockview/v2/reactContentRenderer.d.ts +30 -30
- package/dist/cjs/react/dockview/v2/reactContentRenderer.js +90 -90
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.js +34 -34
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.js +45 -45
- package/dist/cjs/react/gridview/gridview.d.ts +24 -24
- package/dist/cjs/react/gridview/gridview.js +96 -96
- package/dist/cjs/react/gridview/view.d.ts +10 -10
- package/dist/cjs/react/gridview/view.js +40 -40
- package/dist/cjs/react/index.d.ts +9 -9
- package/dist/cjs/react/index.js +21 -21
- package/dist/cjs/react/paneview/paneview.d.ts +28 -28
- package/dist/cjs/react/paneview/paneview.js +138 -138
- package/dist/cjs/react/paneview/view.d.ts +20 -20
- package/dist/cjs/react/paneview/view.js +44 -44
- package/dist/cjs/react/react.d.ts +35 -35
- package/dist/cjs/react/react.js +181 -181
- package/dist/cjs/react/react.js.map +1 -1
- package/dist/cjs/react/splitview/splitview.d.ts +24 -24
- package/dist/cjs/react/splitview/splitview.js +93 -93
- package/dist/cjs/react/splitview/view.d.ts +10 -10
- package/dist/cjs/react/splitview/view.js +40 -40
- package/dist/cjs/react/types.d.ts +7 -7
- package/dist/cjs/react/types.js +2 -2
- package/dist/cjs/splitview/core/options.d.ts +26 -26
- package/dist/cjs/splitview/core/options.js +2 -2
- package/dist/cjs/splitview/core/splitview.d.ts +124 -124
- package/dist/cjs/splitview/core/splitview.js +908 -908
- package/dist/cjs/splitview/core/splitview.js.map +1 -1
- package/dist/cjs/splitview/core/viewItem.d.ts +25 -25
- package/dist/cjs/splitview/core/viewItem.js +124 -124
- package/dist/cjs/splitview/splitviewComponent.d.ts +100 -100
- package/dist/cjs/splitview/splitviewComponent.js +327 -327
- package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
- package/dist/cjs/splitview/splitviewPanel.d.ts +47 -47
- package/dist/cjs/splitview/splitviewPanel.js +178 -178
- package/dist/cjs/types.d.ts +7 -7
- package/dist/cjs/types.js +2 -2
- package/dist/dockview.amd.js +6714 -6711
- package/dist/dockview.amd.min.js +3 -3
- package/dist/dockview.amd.min.noStyle.js +3 -3
- package/dist/dockview.amd.noStyle.js +6706 -6703
- package/dist/dockview.cjs.js +6708 -6705
- package/dist/dockview.esm.js +6706 -6706
- package/dist/dockview.esm.min.js +3 -3
- package/dist/dockview.js +6714 -6711
- package/dist/dockview.min.js +3 -3
- package/dist/dockview.min.noStyle.js +3 -3
- package/dist/dockview.noStyle.js +6706 -6703
- package/dist/esm/actionbar/actionsContainer.d.ts +7 -7
- package/dist/esm/actionbar/actionsContainer.js +17 -17
- package/dist/esm/api/component.api.d.ts +131 -131
- package/dist/esm/api/component.api.js +287 -287
- package/dist/esm/api/gridviewPanelApi.d.ts +36 -36
- package/dist/esm/api/gridviewPanelApi.js +24 -24
- package/dist/esm/api/groupPanelApi.d.ts +44 -44
- package/dist/esm/api/groupPanelApi.js +52 -52
- package/dist/esm/api/panelApi.d.ts +107 -107
- package/dist/esm/api/panelApi.js +98 -98
- package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
- package/dist/esm/api/paneviewPanelApi.js +26 -26
- package/dist/esm/api/splitviewPanelApi.d.ts +33 -33
- package/dist/esm/api/splitviewPanelApi.js +29 -29
- package/dist/esm/array.d.ts +13 -13
- package/dist/esm/array.js +67 -67
- package/dist/esm/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/esm/dnd/abstractDragHandler.js +37 -37
- package/dist/esm/dnd/dataTransfer.d.ts +56 -56
- package/dist/esm/dnd/dataTransfer.js +109 -109
- package/dist/esm/dnd/dnd.d.ts +40 -40
- package/dist/esm/dnd/dnd.js +109 -109
- package/dist/esm/dnd/droptarget.d.ts +37 -37
- package/dist/esm/dnd/droptarget.js +143 -143
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +44 -44
- package/dist/esm/dockview/components/tab/defaultTab.js +130 -130
- package/dist/esm/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/esm/dockview/components/watermark/watermark.js +68 -68
- package/dist/esm/dockview/defaultGroupPanelView.d.ts +34 -34
- package/dist/esm/dockview/defaultGroupPanelView.js +55 -55
- package/dist/esm/dockview/deserializer.d.ts +14 -14
- package/dist/esm/dockview/deserializer.js +20 -20
- package/dist/esm/dockview/dockviewComponent.d.ts +121 -121
- package/dist/esm/dockview/dockviewComponent.js +533 -533
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +35 -35
- package/dist/esm/dockview/dockviewGroupPanel.js +145 -145
- package/dist/esm/dockview/options.d.ts +79 -79
- package/dist/esm/dockview/options.js +1 -1
- package/dist/esm/dom.d.ts +14 -14
- package/dist/esm/dom.js +113 -113
- package/dist/esm/events.d.ts +23 -23
- package/dist/esm/events.js +71 -71
- package/dist/esm/footnote.d.ts +1 -1
- package/dist/esm/footnote.js +19 -19
- package/dist/esm/functions.d.ts +1 -1
- package/dist/esm/functions.js +8 -8
- package/dist/esm/gridview/baseComponentGridview.d.ts +98 -98
- package/dist/esm/gridview/baseComponentGridview.js +224 -224
- package/dist/esm/gridview/basePanelView.d.ts +46 -46
- package/dist/esm/gridview/basePanelView.js +70 -70
- package/dist/esm/gridview/branchNode.d.ts +46 -46
- package/dist/esm/gridview/branchNode.js +218 -218
- package/dist/esm/gridview/gridview.d.ts +123 -123
- package/dist/esm/gridview/gridview.js +396 -396
- package/dist/esm/gridview/gridviewComponent.d.ts +88 -88
- package/dist/esm/gridview/gridviewComponent.js +238 -238
- package/dist/esm/gridview/gridviewPanel.d.ts +62 -62
- package/dist/esm/gridview/gridviewPanel.js +141 -141
- package/dist/esm/gridview/leafNode.d.ts +31 -31
- package/dist/esm/gridview/leafNode.js +97 -97
- package/dist/esm/gridview/options.d.ts +18 -18
- package/dist/esm/gridview/options.js +1 -1
- package/dist/esm/gridview/types.d.ts +3 -3
- package/dist/esm/gridview/types.js +1 -1
- package/dist/esm/groupview/dnd.d.ts +5 -5
- package/dist/esm/groupview/dnd.js +6 -6
- package/dist/esm/groupview/groupPanel.d.ts +41 -41
- package/dist/esm/groupview/groupPanel.js +1 -1
- package/dist/esm/groupview/groupview.d.ts +154 -154
- package/dist/esm/groupview/groupview.js +448 -448
- package/dist/esm/groupview/groupviewPanel.d.ts +18 -18
- package/dist/esm/groupview/groupviewPanel.js +41 -41
- package/dist/esm/groupview/panel/content.d.ts +30 -30
- package/dist/esm/groupview/panel/content.js +72 -72
- package/dist/esm/groupview/panel/hostedPanel.d.ts +22 -22
- package/dist/esm/groupview/panel/hostedPanel.js +43 -43
- package/dist/esm/groupview/tab.d.ts +44 -44
- package/dist/esm/groupview/tab.js +101 -101
- package/dist/esm/groupview/titlebar/tabsContainer.d.ts +66 -66
- package/dist/esm/groupview/titlebar/tabsContainer.js +185 -185
- package/dist/esm/groupview/types.d.ts +59 -59
- package/dist/esm/groupview/types.js +1 -1
- package/dist/esm/hostedContainer.d.ts +23 -23
- package/dist/esm/hostedContainer.js +63 -63
- package/dist/esm/index.d.ts +29 -26
- package/dist/esm/index.js +24 -21
- package/dist/esm/json.d.ts +1 -1
- package/dist/esm/json.js +9 -9
- package/dist/esm/lifecycle.d.ts +22 -22
- package/dist/esm/lifecycle.js +38 -38
- package/dist/esm/math.d.ts +4 -4
- package/dist/esm/math.js +10 -10
- package/dist/esm/panel/componentFactory.d.ts +8 -8
- package/dist/esm/panel/componentFactory.js +24 -24
- package/dist/esm/panel/types.d.ts +34 -34
- package/dist/esm/panel/types.js +1 -1
- package/dist/esm/paneview/defaultPaneviewHeader.d.ts +18 -18
- package/dist/esm/paneview/defaultPaneviewHeader.js +37 -37
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +17 -17
- package/dist/esm/paneview/draggablePaneviewPanel.js +72 -72
- package/dist/esm/paneview/options.d.ts +25 -25
- package/dist/esm/paneview/options.js +1 -1
- package/dist/esm/paneview/paneview.d.ts +38 -38
- package/dist/esm/paneview/paneview.js +144 -144
- package/dist/esm/paneview/paneviewComponent.d.ts +113 -113
- package/dist/esm/paneview/paneviewComponent.js +247 -247
- package/dist/esm/paneview/paneviewPanel.d.ts +85 -85
- package/dist/esm/paneview/paneviewPanel.js +183 -183
- package/dist/esm/react/deserializer.d.ts +8 -8
- package/dist/esm/react/deserializer.js +34 -34
- package/dist/esm/react/dockview/components.d.ts +11 -11
- package/dist/esm/react/dockview/components.js +54 -54
- package/dist/esm/react/dockview/dockview.d.ts +34 -34
- package/dist/esm/react/dockview/dockview.js +97 -97
- package/dist/esm/react/dockview/reactContentPart.d.ts +47 -47
- package/dist/esm/react/dockview/reactContentPart.js +75 -75
- package/dist/esm/react/dockview/reactHeaderPart.d.ts +24 -24
- package/dist/esm/react/dockview/reactHeaderPart.js +41 -41
- package/dist/esm/react/dockview/reactWatermarkPart.d.ts +30 -30
- package/dist/esm/react/dockview/reactWatermarkPart.js +56 -56
- package/dist/esm/react/dockview/v2/reactContentRenderer.d.ts +30 -30
- package/dist/esm/react/dockview/v2/reactContentRenderer.js +72 -72
- package/dist/esm/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/esm/react/dockview/v2/reactGroupPanelView.js +12 -12
- package/dist/esm/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/esm/react/dockview/v2/webviewContentRenderer.js +36 -36
- package/dist/esm/react/gridview/gridview.d.ts +24 -24
- package/dist/esm/react/gridview/gridview.js +58 -58
- package/dist/esm/react/gridview/view.d.ts +10 -10
- package/dist/esm/react/gridview/view.js +18 -18
- package/dist/esm/react/index.d.ts +9 -9
- package/dist/esm/react/index.js +9 -9
- package/dist/esm/react/paneview/paneview.d.ts +28 -28
- package/dist/esm/react/paneview/paneview.js +87 -87
- package/dist/esm/react/paneview/view.d.ts +20 -20
- package/dist/esm/react/paneview/view.js +35 -35
- package/dist/esm/react/react.d.ts +35 -35
- package/dist/esm/react/react.js +116 -116
- package/dist/esm/react/splitview/splitview.d.ts +24 -24
- package/dist/esm/react/splitview/splitview.js +55 -55
- package/dist/esm/react/splitview/view.d.ts +10 -10
- package/dist/esm/react/splitview/view.js +18 -18
- package/dist/esm/react/types.d.ts +7 -7
- package/dist/esm/react/types.js +1 -1
- package/dist/esm/splitview/core/options.d.ts +26 -26
- package/dist/esm/splitview/core/options.js +1 -1
- package/dist/esm/splitview/core/splitview.d.ts +124 -124
- package/dist/esm/splitview/core/splitview.js +689 -689
- package/dist/esm/splitview/core/viewItem.d.ts +25 -25
- package/dist/esm/splitview/core/viewItem.js +79 -79
- package/dist/esm/splitview/splitviewComponent.d.ts +100 -100
- package/dist/esm/splitview/splitviewComponent.js +241 -241
- package/dist/esm/splitview/splitviewPanel.d.ts +47 -47
- package/dist/esm/splitview/splitviewPanel.js +107 -107
- package/dist/esm/types.d.ts +7 -7
- package/dist/esm/types.js +1 -1
- package/package.json +75 -75
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { PanelInitParameters } from '../panel/types';
|
|
2
|
-
import { IGridPanelComponentView } from './gridviewComponent';
|
|
3
|
-
import { BasePanelView, BasePanelViewExported, BasePanelViewState } from './basePanelView';
|
|
4
|
-
import { GridviewPanelApiImpl } from '../api/gridviewPanelApi';
|
|
5
|
-
import { LayoutPriority } from '../splitview/core/splitview';
|
|
6
|
-
import { Event } from '../events';
|
|
7
|
-
import { IViewSize } from './gridview';
|
|
8
|
-
import { GridviewApi } from '../api/component.api';
|
|
9
|
-
export interface GridviewInitParameters extends PanelInitParameters {
|
|
10
|
-
minimumWidth?: number;
|
|
11
|
-
maximumWidth?: number;
|
|
12
|
-
minimumHeight?: number;
|
|
13
|
-
maximumHeight?: number;
|
|
14
|
-
priority?: LayoutPriority;
|
|
15
|
-
snap?: boolean;
|
|
16
|
-
containerApi: GridviewApi;
|
|
17
|
-
isVisible?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface IGridviewPanel extends BasePanelViewExported<GridviewPanelApiImpl> {
|
|
20
|
-
readonly minimumWidth: number;
|
|
21
|
-
readonly maximumWidth: number;
|
|
22
|
-
readonly minimumHeight: number;
|
|
23
|
-
readonly maximumHeight: number;
|
|
24
|
-
readonly priority: LayoutPriority | undefined;
|
|
25
|
-
readonly snap: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare abstract class GridviewPanel extends BasePanelView<GridviewPanelApiImpl> implements IGridPanelComponentView, IGridviewPanel {
|
|
28
|
-
private _evaluatedMinimumWidth;
|
|
29
|
-
private _evaluatedMaximumWidth;
|
|
30
|
-
private _evaluatedMinimumHeight;
|
|
31
|
-
private _evaluatedMaximumHeight;
|
|
32
|
-
private _minimumWidth;
|
|
33
|
-
private _minimumHeight;
|
|
34
|
-
private _maximumWidth;
|
|
35
|
-
private _maximumHeight;
|
|
36
|
-
private _priority?;
|
|
37
|
-
private _snap;
|
|
38
|
-
private readonly _onDidChange;
|
|
39
|
-
readonly onDidChange: Event<IViewSize | undefined>;
|
|
40
|
-
get priority(): LayoutPriority | undefined;
|
|
41
|
-
get snap(): boolean;
|
|
42
|
-
get minimumWidth(): number;
|
|
43
|
-
get minimumHeight(): number;
|
|
44
|
-
get maximumHeight(): number;
|
|
45
|
-
get maximumWidth(): number;
|
|
46
|
-
get isActive(): boolean;
|
|
47
|
-
constructor(id: string, component: string, api?: GridviewPanelApiImpl);
|
|
48
|
-
setVisible(isVisible: boolean): void;
|
|
49
|
-
setActive(isActive: boolean): void;
|
|
50
|
-
init(parameters: GridviewInitParameters): void;
|
|
51
|
-
private updateConstraints;
|
|
52
|
-
toJSON(): GridPanelViewState;
|
|
53
|
-
dispose(): void;
|
|
54
|
-
}
|
|
55
|
-
export interface GridPanelViewState extends BasePanelViewState {
|
|
56
|
-
minimumHeight?: number;
|
|
57
|
-
maximumHeight?: number;
|
|
58
|
-
minimumWidth?: number;
|
|
59
|
-
maximumWidth?: number;
|
|
60
|
-
snap?: boolean;
|
|
61
|
-
priority?: LayoutPriority;
|
|
62
|
-
}
|
|
1
|
+
import { PanelInitParameters } from '../panel/types';
|
|
2
|
+
import { IGridPanelComponentView } from './gridviewComponent';
|
|
3
|
+
import { BasePanelView, BasePanelViewExported, BasePanelViewState } from './basePanelView';
|
|
4
|
+
import { GridviewPanelApiImpl } from '../api/gridviewPanelApi';
|
|
5
|
+
import { LayoutPriority } from '../splitview/core/splitview';
|
|
6
|
+
import { Event } from '../events';
|
|
7
|
+
import { IViewSize } from './gridview';
|
|
8
|
+
import { GridviewApi } from '../api/component.api';
|
|
9
|
+
export interface GridviewInitParameters extends PanelInitParameters {
|
|
10
|
+
minimumWidth?: number;
|
|
11
|
+
maximumWidth?: number;
|
|
12
|
+
minimumHeight?: number;
|
|
13
|
+
maximumHeight?: number;
|
|
14
|
+
priority?: LayoutPriority;
|
|
15
|
+
snap?: boolean;
|
|
16
|
+
containerApi: GridviewApi;
|
|
17
|
+
isVisible?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IGridviewPanel extends BasePanelViewExported<GridviewPanelApiImpl> {
|
|
20
|
+
readonly minimumWidth: number;
|
|
21
|
+
readonly maximumWidth: number;
|
|
22
|
+
readonly minimumHeight: number;
|
|
23
|
+
readonly maximumHeight: number;
|
|
24
|
+
readonly priority: LayoutPriority | undefined;
|
|
25
|
+
readonly snap: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare abstract class GridviewPanel extends BasePanelView<GridviewPanelApiImpl> implements IGridPanelComponentView, IGridviewPanel {
|
|
28
|
+
private _evaluatedMinimumWidth;
|
|
29
|
+
private _evaluatedMaximumWidth;
|
|
30
|
+
private _evaluatedMinimumHeight;
|
|
31
|
+
private _evaluatedMaximumHeight;
|
|
32
|
+
private _minimumWidth;
|
|
33
|
+
private _minimumHeight;
|
|
34
|
+
private _maximumWidth;
|
|
35
|
+
private _maximumHeight;
|
|
36
|
+
private _priority?;
|
|
37
|
+
private _snap;
|
|
38
|
+
private readonly _onDidChange;
|
|
39
|
+
readonly onDidChange: Event<IViewSize | undefined>;
|
|
40
|
+
get priority(): LayoutPriority | undefined;
|
|
41
|
+
get snap(): boolean;
|
|
42
|
+
get minimumWidth(): number;
|
|
43
|
+
get minimumHeight(): number;
|
|
44
|
+
get maximumHeight(): number;
|
|
45
|
+
get maximumWidth(): number;
|
|
46
|
+
get isActive(): boolean;
|
|
47
|
+
constructor(id: string, component: string, api?: GridviewPanelApiImpl);
|
|
48
|
+
setVisible(isVisible: boolean): void;
|
|
49
|
+
setActive(isActive: boolean): void;
|
|
50
|
+
init(parameters: GridviewInitParameters): void;
|
|
51
|
+
private updateConstraints;
|
|
52
|
+
toJSON(): GridPanelViewState;
|
|
53
|
+
dispose(): void;
|
|
54
|
+
}
|
|
55
|
+
export interface GridPanelViewState extends BasePanelViewState {
|
|
56
|
+
minimumHeight?: number;
|
|
57
|
+
maximumHeight?: number;
|
|
58
|
+
minimumWidth?: number;
|
|
59
|
+
maximumWidth?: number;
|
|
60
|
+
snap?: boolean;
|
|
61
|
+
priority?: LayoutPriority;
|
|
62
|
+
}
|
|
@@ -1,206 +1,206 @@
|
|
|
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.GridviewPanel = void 0;
|
|
30
|
-
var basePanelView_1 = require("./basePanelView");
|
|
31
|
-
var gridviewPanelApi_1 = require("../api/gridviewPanelApi");
|
|
32
|
-
var events_1 = require("../events");
|
|
33
|
-
var GridviewPanel = /** @class */ (function (_super) {
|
|
34
|
-
__extends(GridviewPanel, _super);
|
|
35
|
-
function GridviewPanel(id, component, api) {
|
|
36
|
-
if (api === void 0) { api = new gridviewPanelApi_1.GridviewPanelApiImpl(id); }
|
|
37
|
-
var _this = _super.call(this, id, component, api) || this;
|
|
38
|
-
_this._evaluatedMinimumWidth = 0;
|
|
39
|
-
_this._evaluatedMaximumWidth = Number.MAX_SAFE_INTEGER;
|
|
40
|
-
_this._evaluatedMinimumHeight = 0;
|
|
41
|
-
_this._evaluatedMaximumHeight = Number.MAX_SAFE_INTEGER;
|
|
42
|
-
_this._minimumWidth = 0;
|
|
43
|
-
_this._minimumHeight = 0;
|
|
44
|
-
_this._maximumWidth = Number.MAX_SAFE_INTEGER;
|
|
45
|
-
_this._maximumHeight = Number.MAX_SAFE_INTEGER;
|
|
46
|
-
_this._snap = false;
|
|
47
|
-
_this._onDidChange = new events_1.Emitter();
|
|
48
|
-
_this.onDidChange = _this._onDidChange.event;
|
|
49
|
-
_this.addDisposables(_this.api.onVisibilityChange(function (event) {
|
|
50
|
-
var isVisible = event.isVisible;
|
|
51
|
-
var containerApi = _this.params.containerApi;
|
|
52
|
-
containerApi.setVisible(_this, isVisible);
|
|
53
|
-
}), _this.api.onActiveChange(function () {
|
|
54
|
-
var containerApi = _this.params.containerApi;
|
|
55
|
-
containerApi.setActive(_this);
|
|
56
|
-
}), _this.api.onDidConstraintsChangeInternal(function (event) {
|
|
57
|
-
if (typeof event.minimumWidth === 'number' ||
|
|
58
|
-
typeof event.minimumWidth === 'function') {
|
|
59
|
-
_this._minimumWidth = event.minimumWidth;
|
|
60
|
-
}
|
|
61
|
-
if (typeof event.minimumHeight === 'number' ||
|
|
62
|
-
typeof event.minimumHeight === 'function') {
|
|
63
|
-
_this._minimumHeight = event.minimumHeight;
|
|
64
|
-
}
|
|
65
|
-
if (typeof event.maximumWidth === 'number' ||
|
|
66
|
-
typeof event.maximumWidth === 'function') {
|
|
67
|
-
_this._maximumWidth = event.maximumWidth;
|
|
68
|
-
}
|
|
69
|
-
if (typeof event.maximumHeight === 'number' ||
|
|
70
|
-
typeof event.maximumHeight === 'function') {
|
|
71
|
-
_this._maximumHeight = event.maximumHeight;
|
|
72
|
-
}
|
|
73
|
-
}), _this.api.onDidSizeChange(function (event) {
|
|
74
|
-
_this._onDidChange.fire({
|
|
75
|
-
height: event.height,
|
|
76
|
-
width: event.width,
|
|
77
|
-
});
|
|
78
|
-
}));
|
|
79
|
-
return _this;
|
|
80
|
-
}
|
|
81
|
-
Object.defineProperty(GridviewPanel.prototype, "priority", {
|
|
82
|
-
get: function () {
|
|
83
|
-
return this._priority;
|
|
84
|
-
},
|
|
85
|
-
enumerable: false,
|
|
86
|
-
configurable: true
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(GridviewPanel.prototype, "snap", {
|
|
89
|
-
get: function () {
|
|
90
|
-
return this._snap;
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(GridviewPanel.prototype, "minimumWidth", {
|
|
96
|
-
get: function () {
|
|
97
|
-
var width = typeof this._minimumWidth === 'function'
|
|
98
|
-
? this._minimumWidth()
|
|
99
|
-
: this._minimumWidth;
|
|
100
|
-
if (width !== this._evaluatedMinimumWidth) {
|
|
101
|
-
this._evaluatedMinimumWidth = width;
|
|
102
|
-
this.updateConstraints();
|
|
103
|
-
}
|
|
104
|
-
return width;
|
|
105
|
-
},
|
|
106
|
-
enumerable: false,
|
|
107
|
-
configurable: true
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(GridviewPanel.prototype, "minimumHeight", {
|
|
110
|
-
get: function () {
|
|
111
|
-
var height = typeof this._minimumHeight === 'function'
|
|
112
|
-
? this._minimumHeight()
|
|
113
|
-
: this._minimumHeight;
|
|
114
|
-
if (height !== this._evaluatedMinimumHeight) {
|
|
115
|
-
this._evaluatedMinimumHeight = height;
|
|
116
|
-
this.updateConstraints();
|
|
117
|
-
}
|
|
118
|
-
return height;
|
|
119
|
-
},
|
|
120
|
-
enumerable: false,
|
|
121
|
-
configurable: true
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(GridviewPanel.prototype, "maximumHeight", {
|
|
124
|
-
get: function () {
|
|
125
|
-
var height = typeof this._maximumHeight === 'function'
|
|
126
|
-
? this._maximumHeight()
|
|
127
|
-
: this._maximumHeight;
|
|
128
|
-
if (height !== this._evaluatedMaximumHeight) {
|
|
129
|
-
this._evaluatedMaximumHeight = height;
|
|
130
|
-
this.updateConstraints();
|
|
131
|
-
}
|
|
132
|
-
return height;
|
|
133
|
-
},
|
|
134
|
-
enumerable: false,
|
|
135
|
-
configurable: true
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(GridviewPanel.prototype, "maximumWidth", {
|
|
138
|
-
get: function () {
|
|
139
|
-
var width = typeof this._maximumWidth === 'function'
|
|
140
|
-
? this._maximumWidth()
|
|
141
|
-
: this._maximumWidth;
|
|
142
|
-
if (width !== this._evaluatedMaximumWidth) {
|
|
143
|
-
this._evaluatedMaximumWidth = width;
|
|
144
|
-
this.updateConstraints();
|
|
145
|
-
}
|
|
146
|
-
return width;
|
|
147
|
-
},
|
|
148
|
-
enumerable: false,
|
|
149
|
-
configurable: true
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(GridviewPanel.prototype, "isActive", {
|
|
152
|
-
get: function () {
|
|
153
|
-
return this.api.isActive;
|
|
154
|
-
},
|
|
155
|
-
enumerable: false,
|
|
156
|
-
configurable: true
|
|
157
|
-
});
|
|
158
|
-
GridviewPanel.prototype.setVisible = function (isVisible) {
|
|
159
|
-
this.api._onDidVisibilityChange.fire({ isVisible: isVisible });
|
|
160
|
-
};
|
|
161
|
-
GridviewPanel.prototype.setActive = function (isActive) {
|
|
162
|
-
this.api._onDidActiveChange.fire({ isActive: isActive });
|
|
163
|
-
};
|
|
164
|
-
GridviewPanel.prototype.init = function (parameters) {
|
|
165
|
-
if (parameters.maximumHeight) {
|
|
166
|
-
this._maximumHeight = parameters.maximumHeight;
|
|
167
|
-
}
|
|
168
|
-
if (parameters.minimumHeight) {
|
|
169
|
-
this._minimumHeight = parameters.minimumHeight;
|
|
170
|
-
}
|
|
171
|
-
if (parameters.maximumWidth) {
|
|
172
|
-
this._maximumWidth = parameters.maximumWidth;
|
|
173
|
-
}
|
|
174
|
-
if (parameters.minimumWidth) {
|
|
175
|
-
this._minimumWidth = parameters.minimumWidth;
|
|
176
|
-
}
|
|
177
|
-
this._priority = parameters.priority;
|
|
178
|
-
this._snap = !!parameters.snap;
|
|
179
|
-
_super.prototype.init.call(this, parameters);
|
|
180
|
-
if (typeof parameters.isVisible === 'boolean') {
|
|
181
|
-
this.setVisible(parameters.isVisible);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
GridviewPanel.prototype.updateConstraints = function () {
|
|
185
|
-
this.api._onDidConstraintsChange.fire({
|
|
186
|
-
minimumWidth: this._evaluatedMinimumWidth,
|
|
187
|
-
maximumWidth: this._evaluatedMaximumWidth,
|
|
188
|
-
minimumHeight: this._evaluatedMinimumHeight,
|
|
189
|
-
maximumHeight: this._evaluatedMaximumHeight,
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
GridviewPanel.prototype.toJSON = function () {
|
|
193
|
-
var state = _super.prototype.toJSON.call(this);
|
|
194
|
-
var maximum = function (value) {
|
|
195
|
-
return value === Number.MAX_SAFE_INTEGER ? undefined : value;
|
|
196
|
-
};
|
|
197
|
-
var minimum = function (value) { return (value <= 0 ? undefined : value); };
|
|
198
|
-
return __assign(__assign({}, state), { minimumHeight: minimum(this.minimumHeight), maximumHeight: maximum(this.maximumHeight), minimumWidth: minimum(this.minimumWidth), maximumWidth: maximum(this.maximumWidth), snap: this.snap, priority: this.priority });
|
|
199
|
-
};
|
|
200
|
-
GridviewPanel.prototype.dispose = function () {
|
|
201
|
-
_super.prototype.dispose.call(this);
|
|
202
|
-
};
|
|
203
|
-
return GridviewPanel;
|
|
204
|
-
}(basePanelView_1.BasePanelView));
|
|
205
|
-
exports.GridviewPanel = GridviewPanel;
|
|
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.GridviewPanel = void 0;
|
|
30
|
+
var basePanelView_1 = require("./basePanelView");
|
|
31
|
+
var gridviewPanelApi_1 = require("../api/gridviewPanelApi");
|
|
32
|
+
var events_1 = require("../events");
|
|
33
|
+
var GridviewPanel = /** @class */ (function (_super) {
|
|
34
|
+
__extends(GridviewPanel, _super);
|
|
35
|
+
function GridviewPanel(id, component, api) {
|
|
36
|
+
if (api === void 0) { api = new gridviewPanelApi_1.GridviewPanelApiImpl(id); }
|
|
37
|
+
var _this = _super.call(this, id, component, api) || this;
|
|
38
|
+
_this._evaluatedMinimumWidth = 0;
|
|
39
|
+
_this._evaluatedMaximumWidth = Number.MAX_SAFE_INTEGER;
|
|
40
|
+
_this._evaluatedMinimumHeight = 0;
|
|
41
|
+
_this._evaluatedMaximumHeight = Number.MAX_SAFE_INTEGER;
|
|
42
|
+
_this._minimumWidth = 0;
|
|
43
|
+
_this._minimumHeight = 0;
|
|
44
|
+
_this._maximumWidth = Number.MAX_SAFE_INTEGER;
|
|
45
|
+
_this._maximumHeight = Number.MAX_SAFE_INTEGER;
|
|
46
|
+
_this._snap = false;
|
|
47
|
+
_this._onDidChange = new events_1.Emitter();
|
|
48
|
+
_this.onDidChange = _this._onDidChange.event;
|
|
49
|
+
_this.addDisposables(_this.api.onVisibilityChange(function (event) {
|
|
50
|
+
var isVisible = event.isVisible;
|
|
51
|
+
var containerApi = _this.params.containerApi;
|
|
52
|
+
containerApi.setVisible(_this, isVisible);
|
|
53
|
+
}), _this.api.onActiveChange(function () {
|
|
54
|
+
var containerApi = _this.params.containerApi;
|
|
55
|
+
containerApi.setActive(_this);
|
|
56
|
+
}), _this.api.onDidConstraintsChangeInternal(function (event) {
|
|
57
|
+
if (typeof event.minimumWidth === 'number' ||
|
|
58
|
+
typeof event.minimumWidth === 'function') {
|
|
59
|
+
_this._minimumWidth = event.minimumWidth;
|
|
60
|
+
}
|
|
61
|
+
if (typeof event.minimumHeight === 'number' ||
|
|
62
|
+
typeof event.minimumHeight === 'function') {
|
|
63
|
+
_this._minimumHeight = event.minimumHeight;
|
|
64
|
+
}
|
|
65
|
+
if (typeof event.maximumWidth === 'number' ||
|
|
66
|
+
typeof event.maximumWidth === 'function') {
|
|
67
|
+
_this._maximumWidth = event.maximumWidth;
|
|
68
|
+
}
|
|
69
|
+
if (typeof event.maximumHeight === 'number' ||
|
|
70
|
+
typeof event.maximumHeight === 'function') {
|
|
71
|
+
_this._maximumHeight = event.maximumHeight;
|
|
72
|
+
}
|
|
73
|
+
}), _this.api.onDidSizeChange(function (event) {
|
|
74
|
+
_this._onDidChange.fire({
|
|
75
|
+
height: event.height,
|
|
76
|
+
width: event.width,
|
|
77
|
+
});
|
|
78
|
+
}));
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
Object.defineProperty(GridviewPanel.prototype, "priority", {
|
|
82
|
+
get: function () {
|
|
83
|
+
return this._priority;
|
|
84
|
+
},
|
|
85
|
+
enumerable: false,
|
|
86
|
+
configurable: true
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(GridviewPanel.prototype, "snap", {
|
|
89
|
+
get: function () {
|
|
90
|
+
return this._snap;
|
|
91
|
+
},
|
|
92
|
+
enumerable: false,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(GridviewPanel.prototype, "minimumWidth", {
|
|
96
|
+
get: function () {
|
|
97
|
+
var width = typeof this._minimumWidth === 'function'
|
|
98
|
+
? this._minimumWidth()
|
|
99
|
+
: this._minimumWidth;
|
|
100
|
+
if (width !== this._evaluatedMinimumWidth) {
|
|
101
|
+
this._evaluatedMinimumWidth = width;
|
|
102
|
+
this.updateConstraints();
|
|
103
|
+
}
|
|
104
|
+
return width;
|
|
105
|
+
},
|
|
106
|
+
enumerable: false,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(GridviewPanel.prototype, "minimumHeight", {
|
|
110
|
+
get: function () {
|
|
111
|
+
var height = typeof this._minimumHeight === 'function'
|
|
112
|
+
? this._minimumHeight()
|
|
113
|
+
: this._minimumHeight;
|
|
114
|
+
if (height !== this._evaluatedMinimumHeight) {
|
|
115
|
+
this._evaluatedMinimumHeight = height;
|
|
116
|
+
this.updateConstraints();
|
|
117
|
+
}
|
|
118
|
+
return height;
|
|
119
|
+
},
|
|
120
|
+
enumerable: false,
|
|
121
|
+
configurable: true
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(GridviewPanel.prototype, "maximumHeight", {
|
|
124
|
+
get: function () {
|
|
125
|
+
var height = typeof this._maximumHeight === 'function'
|
|
126
|
+
? this._maximumHeight()
|
|
127
|
+
: this._maximumHeight;
|
|
128
|
+
if (height !== this._evaluatedMaximumHeight) {
|
|
129
|
+
this._evaluatedMaximumHeight = height;
|
|
130
|
+
this.updateConstraints();
|
|
131
|
+
}
|
|
132
|
+
return height;
|
|
133
|
+
},
|
|
134
|
+
enumerable: false,
|
|
135
|
+
configurable: true
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(GridviewPanel.prototype, "maximumWidth", {
|
|
138
|
+
get: function () {
|
|
139
|
+
var width = typeof this._maximumWidth === 'function'
|
|
140
|
+
? this._maximumWidth()
|
|
141
|
+
: this._maximumWidth;
|
|
142
|
+
if (width !== this._evaluatedMaximumWidth) {
|
|
143
|
+
this._evaluatedMaximumWidth = width;
|
|
144
|
+
this.updateConstraints();
|
|
145
|
+
}
|
|
146
|
+
return width;
|
|
147
|
+
},
|
|
148
|
+
enumerable: false,
|
|
149
|
+
configurable: true
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(GridviewPanel.prototype, "isActive", {
|
|
152
|
+
get: function () {
|
|
153
|
+
return this.api.isActive;
|
|
154
|
+
},
|
|
155
|
+
enumerable: false,
|
|
156
|
+
configurable: true
|
|
157
|
+
});
|
|
158
|
+
GridviewPanel.prototype.setVisible = function (isVisible) {
|
|
159
|
+
this.api._onDidVisibilityChange.fire({ isVisible: isVisible });
|
|
160
|
+
};
|
|
161
|
+
GridviewPanel.prototype.setActive = function (isActive) {
|
|
162
|
+
this.api._onDidActiveChange.fire({ isActive: isActive });
|
|
163
|
+
};
|
|
164
|
+
GridviewPanel.prototype.init = function (parameters) {
|
|
165
|
+
if (parameters.maximumHeight) {
|
|
166
|
+
this._maximumHeight = parameters.maximumHeight;
|
|
167
|
+
}
|
|
168
|
+
if (parameters.minimumHeight) {
|
|
169
|
+
this._minimumHeight = parameters.minimumHeight;
|
|
170
|
+
}
|
|
171
|
+
if (parameters.maximumWidth) {
|
|
172
|
+
this._maximumWidth = parameters.maximumWidth;
|
|
173
|
+
}
|
|
174
|
+
if (parameters.minimumWidth) {
|
|
175
|
+
this._minimumWidth = parameters.minimumWidth;
|
|
176
|
+
}
|
|
177
|
+
this._priority = parameters.priority;
|
|
178
|
+
this._snap = !!parameters.snap;
|
|
179
|
+
_super.prototype.init.call(this, parameters);
|
|
180
|
+
if (typeof parameters.isVisible === 'boolean') {
|
|
181
|
+
this.setVisible(parameters.isVisible);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
GridviewPanel.prototype.updateConstraints = function () {
|
|
185
|
+
this.api._onDidConstraintsChange.fire({
|
|
186
|
+
minimumWidth: this._evaluatedMinimumWidth,
|
|
187
|
+
maximumWidth: this._evaluatedMaximumWidth,
|
|
188
|
+
minimumHeight: this._evaluatedMinimumHeight,
|
|
189
|
+
maximumHeight: this._evaluatedMaximumHeight,
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
GridviewPanel.prototype.toJSON = function () {
|
|
193
|
+
var state = _super.prototype.toJSON.call(this);
|
|
194
|
+
var maximum = function (value) {
|
|
195
|
+
return value === Number.MAX_SAFE_INTEGER ? undefined : value;
|
|
196
|
+
};
|
|
197
|
+
var minimum = function (value) { return (value <= 0 ? undefined : value); };
|
|
198
|
+
return __assign(__assign({}, state), { minimumHeight: minimum(this.minimumHeight), maximumHeight: maximum(this.maximumHeight), minimumWidth: minimum(this.minimumWidth), maximumWidth: maximum(this.maximumWidth), snap: this.snap, priority: this.priority });
|
|
199
|
+
};
|
|
200
|
+
GridviewPanel.prototype.dispose = function () {
|
|
201
|
+
_super.prototype.dispose.call(this);
|
|
202
|
+
};
|
|
203
|
+
return GridviewPanel;
|
|
204
|
+
}(basePanelView_1.BasePanelView));
|
|
205
|
+
exports.GridviewPanel = GridviewPanel;
|
|
206
206
|
//# sourceMappingURL=gridviewPanel.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { IView, LayoutPriority, Orientation } from '../splitview/core/splitview';
|
|
2
|
-
import { Event } from '../events';
|
|
3
|
-
import { IGridView } from './gridview';
|
|
4
|
-
export declare class LeafNode implements IView {
|
|
5
|
-
readonly view: IGridView;
|
|
6
|
-
readonly orientation: Orientation;
|
|
7
|
-
private readonly _onDidChange;
|
|
8
|
-
readonly onDidChange: Event<number | undefined>;
|
|
9
|
-
private _size;
|
|
10
|
-
private _orthogonalSize;
|
|
11
|
-
private _disposable;
|
|
12
|
-
private get minimumWidth();
|
|
13
|
-
private get maximumWidth();
|
|
14
|
-
private get minimumHeight();
|
|
15
|
-
private get maximumHeight();
|
|
16
|
-
get priority(): LayoutPriority | undefined;
|
|
17
|
-
get snap(): boolean | undefined;
|
|
18
|
-
get minimumSize(): number;
|
|
19
|
-
get maximumSize(): number;
|
|
20
|
-
get minimumOrthogonalSize(): number;
|
|
21
|
-
get maximumOrthogonalSize(): number;
|
|
22
|
-
get orthogonalSize(): number;
|
|
23
|
-
get size(): number;
|
|
24
|
-
get element(): HTMLElement;
|
|
25
|
-
get width(): number;
|
|
26
|
-
get height(): number;
|
|
27
|
-
constructor(view: IGridView, orientation: Orientation, orthogonalSize: number, size?: number);
|
|
28
|
-
setVisible(visible: boolean): void;
|
|
29
|
-
layout(size: number, orthogonalSize: number): void;
|
|
30
|
-
dispose(): void;
|
|
31
|
-
}
|
|
1
|
+
import { IView, LayoutPriority, Orientation } from '../splitview/core/splitview';
|
|
2
|
+
import { Event } from '../events';
|
|
3
|
+
import { IGridView } from './gridview';
|
|
4
|
+
export declare class LeafNode implements IView {
|
|
5
|
+
readonly view: IGridView;
|
|
6
|
+
readonly orientation: Orientation;
|
|
7
|
+
private readonly _onDidChange;
|
|
8
|
+
readonly onDidChange: Event<number | undefined>;
|
|
9
|
+
private _size;
|
|
10
|
+
private _orthogonalSize;
|
|
11
|
+
private _disposable;
|
|
12
|
+
private get minimumWidth();
|
|
13
|
+
private get maximumWidth();
|
|
14
|
+
private get minimumHeight();
|
|
15
|
+
private get maximumHeight();
|
|
16
|
+
get priority(): LayoutPriority | undefined;
|
|
17
|
+
get snap(): boolean | undefined;
|
|
18
|
+
get minimumSize(): number;
|
|
19
|
+
get maximumSize(): number;
|
|
20
|
+
get minimumOrthogonalSize(): number;
|
|
21
|
+
get maximumOrthogonalSize(): number;
|
|
22
|
+
get orthogonalSize(): number;
|
|
23
|
+
get size(): number;
|
|
24
|
+
get element(): HTMLElement;
|
|
25
|
+
get width(): number;
|
|
26
|
+
get height(): number;
|
|
27
|
+
constructor(view: IGridView, orientation: Orientation, orthogonalSize: number, size?: number);
|
|
28
|
+
setVisible(visible: boolean): void;
|
|
29
|
+
layout(size: number, orthogonalSize: number): void;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
}
|