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,47 +1,47 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IContentRenderer, GroupPanelContentPartInitParameters } from '../../groupview/types';
|
|
3
|
-
import { ReactPortalStore } from '../react';
|
|
4
|
-
import { IDockviewPanelProps } from '../dockview/dockview';
|
|
5
|
-
import { PanelUpdateEvent } from '../../panel/types';
|
|
6
|
-
import { DockviewPanelApi } from '../../api/groupPanelApi';
|
|
7
|
-
import { DockviewApi } from '../../api/component.api';
|
|
8
|
-
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
9
|
-
import { Event } from '../../events';
|
|
10
|
-
import { WrappedTab } from '../../dockview/components/tab/defaultTab';
|
|
11
|
-
export interface IGroupPanelActionbarProps {
|
|
12
|
-
api: DockviewPanelApi;
|
|
13
|
-
containerApi: DockviewApi;
|
|
14
|
-
}
|
|
15
|
-
export interface ReactContentPartContext {
|
|
16
|
-
api: DockviewPanelApi;
|
|
17
|
-
containerApi: DockviewApi;
|
|
18
|
-
actionsPortalElement: HTMLElement;
|
|
19
|
-
tabPortalElement: WrappedTab;
|
|
20
|
-
}
|
|
21
|
-
export declare class ReactPanelContentPart implements IContentRenderer {
|
|
22
|
-
readonly id: string;
|
|
23
|
-
private readonly component;
|
|
24
|
-
private readonly reactPortalStore;
|
|
25
|
-
private _element;
|
|
26
|
-
private part?;
|
|
27
|
-
private _actionsElement;
|
|
28
|
-
private actionsPart?;
|
|
29
|
-
private _group;
|
|
30
|
-
private readonly _onDidFocus;
|
|
31
|
-
readonly onDidFocus: Event<void>;
|
|
32
|
-
private readonly _onDidBlur;
|
|
33
|
-
readonly onDidBlur: Event<void>;
|
|
34
|
-
get element(): HTMLElement;
|
|
35
|
-
get actions(): HTMLElement;
|
|
36
|
-
constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
|
|
37
|
-
focus(): void;
|
|
38
|
-
init(parameters: GroupPanelContentPartInitParameters): void;
|
|
39
|
-
toJSON(): {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
update(event: PanelUpdateEvent): void;
|
|
43
|
-
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
44
|
-
layout(width: number, height: number): void;
|
|
45
|
-
close(): Promise<boolean>;
|
|
46
|
-
dispose(): void;
|
|
47
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IContentRenderer, GroupPanelContentPartInitParameters } from '../../groupview/types';
|
|
3
|
+
import { ReactPortalStore } from '../react';
|
|
4
|
+
import { IDockviewPanelProps } from '../dockview/dockview';
|
|
5
|
+
import { PanelUpdateEvent } from '../../panel/types';
|
|
6
|
+
import { DockviewPanelApi } from '../../api/groupPanelApi';
|
|
7
|
+
import { DockviewApi } from '../../api/component.api';
|
|
8
|
+
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
9
|
+
import { Event } from '../../events';
|
|
10
|
+
import { WrappedTab } from '../../dockview/components/tab/defaultTab';
|
|
11
|
+
export interface IGroupPanelActionbarProps {
|
|
12
|
+
api: DockviewPanelApi;
|
|
13
|
+
containerApi: DockviewApi;
|
|
14
|
+
}
|
|
15
|
+
export interface ReactContentPartContext {
|
|
16
|
+
api: DockviewPanelApi;
|
|
17
|
+
containerApi: DockviewApi;
|
|
18
|
+
actionsPortalElement: HTMLElement;
|
|
19
|
+
tabPortalElement: WrappedTab;
|
|
20
|
+
}
|
|
21
|
+
export declare class ReactPanelContentPart implements IContentRenderer {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
private readonly component;
|
|
24
|
+
private readonly reactPortalStore;
|
|
25
|
+
private _element;
|
|
26
|
+
private part?;
|
|
27
|
+
private _actionsElement;
|
|
28
|
+
private actionsPart?;
|
|
29
|
+
private _group;
|
|
30
|
+
private readonly _onDidFocus;
|
|
31
|
+
readonly onDidFocus: Event<void>;
|
|
32
|
+
private readonly _onDidBlur;
|
|
33
|
+
readonly onDidBlur: Event<void>;
|
|
34
|
+
get element(): HTMLElement;
|
|
35
|
+
get actions(): HTMLElement;
|
|
36
|
+
constructor(id: string, component: React.FunctionComponent<IDockviewPanelProps>, reactPortalStore: ReactPortalStore);
|
|
37
|
+
focus(): void;
|
|
38
|
+
init(parameters: GroupPanelContentPartInitParameters): void;
|
|
39
|
+
toJSON(): {
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
update(event: PanelUpdateEvent): void;
|
|
43
|
+
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
44
|
+
layout(width: number, height: number): void;
|
|
45
|
+
close(): Promise<boolean>;
|
|
46
|
+
dispose(): void;
|
|
47
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactPanelContentPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var events_1 = require("../../events");
|
|
6
|
-
var ReactPanelContentPart = /** @class */ (function () {
|
|
7
|
-
function ReactPanelContentPart(id, component, reactPortalStore) {
|
|
8
|
-
this.id = id;
|
|
9
|
-
this.component = component;
|
|
10
|
-
this.reactPortalStore = reactPortalStore;
|
|
11
|
-
// private hostedContainer: HostedContainer;
|
|
12
|
-
this._onDidFocus = new events_1.Emitter();
|
|
13
|
-
this.onDidFocus = this._onDidFocus.event;
|
|
14
|
-
this._onDidBlur = new events_1.Emitter();
|
|
15
|
-
this.onDidBlur = this._onDidBlur.event;
|
|
16
|
-
this._element = document.createElement('div');
|
|
17
|
-
this._element.style.height = '100%';
|
|
18
|
-
this._element.style.width = '100%';
|
|
19
|
-
// this.hostedContainer = new HostedContainer({
|
|
20
|
-
// id,
|
|
21
|
-
// });
|
|
22
|
-
// this.hostedContainer.onDidFocus(() => this._onDidFocus.fire());
|
|
23
|
-
// this.hostedContainer.onDidBlur(() => this._onDidBlur.fire());
|
|
24
|
-
this._actionsElement = document.createElement('div');
|
|
25
|
-
this._actionsElement.style.height = '100%';
|
|
26
|
-
this._actionsElement.style.width = '100%';
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(ReactPanelContentPart.prototype, "element", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return this._element;
|
|
31
|
-
},
|
|
32
|
-
enumerable: false,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(ReactPanelContentPart.prototype, "actions", {
|
|
36
|
-
get: function () {
|
|
37
|
-
return this._actionsElement;
|
|
38
|
-
},
|
|
39
|
-
enumerable: false,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
ReactPanelContentPart.prototype.focus = function () {
|
|
43
|
-
// TODO
|
|
44
|
-
};
|
|
45
|
-
ReactPanelContentPart.prototype.init = function (parameters) {
|
|
46
|
-
var context = {
|
|
47
|
-
api: parameters.api,
|
|
48
|
-
containerApi: parameters.containerApi,
|
|
49
|
-
actionsPortalElement: this._actionsElement,
|
|
50
|
-
tabPortalElement: parameters.tab,
|
|
51
|
-
};
|
|
52
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
53
|
-
params: parameters.params,
|
|
54
|
-
api: parameters.api,
|
|
55
|
-
containerApi: parameters.containerApi,
|
|
56
|
-
}, context);
|
|
57
|
-
};
|
|
58
|
-
ReactPanelContentPart.prototype.toJSON = function () {
|
|
59
|
-
return {
|
|
60
|
-
id: this.id,
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
ReactPanelContentPart.prototype.update = function (event) {
|
|
64
|
-
var _a;
|
|
65
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
66
|
-
};
|
|
67
|
-
ReactPanelContentPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
68
|
-
this._group = group;
|
|
69
|
-
};
|
|
70
|
-
ReactPanelContentPart.prototype.layout = function (width, height) {
|
|
71
|
-
// noop
|
|
72
|
-
// this.hostedContainer.layout(
|
|
73
|
-
// this.element
|
|
74
|
-
// // { width, height }
|
|
75
|
-
// );
|
|
76
|
-
};
|
|
77
|
-
ReactPanelContentPart.prototype.close = function () {
|
|
78
|
-
return Promise.resolve(true);
|
|
79
|
-
};
|
|
80
|
-
ReactPanelContentPart.prototype.dispose = function () {
|
|
81
|
-
var _a, _b;
|
|
82
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
83
|
-
// this.hostedContainer?.dispose();
|
|
84
|
-
(_b = this.actionsPart) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
85
|
-
};
|
|
86
|
-
return ReactPanelContentPart;
|
|
87
|
-
}());
|
|
88
|
-
exports.ReactPanelContentPart = ReactPanelContentPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactPanelContentPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var events_1 = require("../../events");
|
|
6
|
+
var ReactPanelContentPart = /** @class */ (function () {
|
|
7
|
+
function ReactPanelContentPart(id, component, reactPortalStore) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.component = component;
|
|
10
|
+
this.reactPortalStore = reactPortalStore;
|
|
11
|
+
// private hostedContainer: HostedContainer;
|
|
12
|
+
this._onDidFocus = new events_1.Emitter();
|
|
13
|
+
this.onDidFocus = this._onDidFocus.event;
|
|
14
|
+
this._onDidBlur = new events_1.Emitter();
|
|
15
|
+
this.onDidBlur = this._onDidBlur.event;
|
|
16
|
+
this._element = document.createElement('div');
|
|
17
|
+
this._element.style.height = '100%';
|
|
18
|
+
this._element.style.width = '100%';
|
|
19
|
+
// this.hostedContainer = new HostedContainer({
|
|
20
|
+
// id,
|
|
21
|
+
// });
|
|
22
|
+
// this.hostedContainer.onDidFocus(() => this._onDidFocus.fire());
|
|
23
|
+
// this.hostedContainer.onDidBlur(() => this._onDidBlur.fire());
|
|
24
|
+
this._actionsElement = document.createElement('div');
|
|
25
|
+
this._actionsElement.style.height = '100%';
|
|
26
|
+
this._actionsElement.style.width = '100%';
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(ReactPanelContentPart.prototype, "element", {
|
|
29
|
+
get: function () {
|
|
30
|
+
return this._element;
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(ReactPanelContentPart.prototype, "actions", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return this._actionsElement;
|
|
38
|
+
},
|
|
39
|
+
enumerable: false,
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
42
|
+
ReactPanelContentPart.prototype.focus = function () {
|
|
43
|
+
// TODO
|
|
44
|
+
};
|
|
45
|
+
ReactPanelContentPart.prototype.init = function (parameters) {
|
|
46
|
+
var context = {
|
|
47
|
+
api: parameters.api,
|
|
48
|
+
containerApi: parameters.containerApi,
|
|
49
|
+
actionsPortalElement: this._actionsElement,
|
|
50
|
+
tabPortalElement: parameters.tab,
|
|
51
|
+
};
|
|
52
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
53
|
+
params: parameters.params,
|
|
54
|
+
api: parameters.api,
|
|
55
|
+
containerApi: parameters.containerApi,
|
|
56
|
+
}, context);
|
|
57
|
+
};
|
|
58
|
+
ReactPanelContentPart.prototype.toJSON = function () {
|
|
59
|
+
return {
|
|
60
|
+
id: this.id,
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
ReactPanelContentPart.prototype.update = function (event) {
|
|
64
|
+
var _a;
|
|
65
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
66
|
+
};
|
|
67
|
+
ReactPanelContentPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
68
|
+
this._group = group;
|
|
69
|
+
};
|
|
70
|
+
ReactPanelContentPart.prototype.layout = function (width, height) {
|
|
71
|
+
// noop
|
|
72
|
+
// this.hostedContainer.layout(
|
|
73
|
+
// this.element
|
|
74
|
+
// // { width, height }
|
|
75
|
+
// );
|
|
76
|
+
};
|
|
77
|
+
ReactPanelContentPart.prototype.close = function () {
|
|
78
|
+
return Promise.resolve(true);
|
|
79
|
+
};
|
|
80
|
+
ReactPanelContentPart.prototype.dispose = function () {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
83
|
+
// this.hostedContainer?.dispose();
|
|
84
|
+
(_b = this.actionsPart) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
85
|
+
};
|
|
86
|
+
return ReactPanelContentPart;
|
|
87
|
+
}());
|
|
88
|
+
exports.ReactPanelContentPart = ReactPanelContentPart;
|
|
89
89
|
//# sourceMappingURL=reactContentPart.js.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ITabRenderer, GroupPanelPartInitParameters } from '../../groupview/types';
|
|
3
|
-
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
4
|
-
import { PanelUpdateEvent } from '../../panel/types';
|
|
5
|
-
import { ReactPortalStore } from '../react';
|
|
6
|
-
import { IGroupPanelBaseProps } from './dockview';
|
|
7
|
-
export declare class ReactPanelHeaderPart implements ITabRenderer {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
private readonly component;
|
|
10
|
-
private readonly reactPortalStore;
|
|
11
|
-
private _element;
|
|
12
|
-
private part?;
|
|
13
|
-
get element(): HTMLElement;
|
|
14
|
-
constructor(id: string, component: React.FunctionComponent<IGroupPanelBaseProps>, reactPortalStore: ReactPortalStore);
|
|
15
|
-
focus(): void;
|
|
16
|
-
init(parameters: GroupPanelPartInitParameters): void;
|
|
17
|
-
update(event: PanelUpdateEvent): void;
|
|
18
|
-
toJSON(): {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
layout(width: number, height: number): void;
|
|
22
|
-
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
23
|
-
dispose(): void;
|
|
24
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ITabRenderer, GroupPanelPartInitParameters } from '../../groupview/types';
|
|
3
|
+
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
4
|
+
import { PanelUpdateEvent } from '../../panel/types';
|
|
5
|
+
import { ReactPortalStore } from '../react';
|
|
6
|
+
import { IGroupPanelBaseProps } from './dockview';
|
|
7
|
+
export declare class ReactPanelHeaderPart implements ITabRenderer {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
private readonly component;
|
|
10
|
+
private readonly reactPortalStore;
|
|
11
|
+
private _element;
|
|
12
|
+
private part?;
|
|
13
|
+
get element(): HTMLElement;
|
|
14
|
+
constructor(id: string, component: React.FunctionComponent<IGroupPanelBaseProps>, reactPortalStore: ReactPortalStore);
|
|
15
|
+
focus(): void;
|
|
16
|
+
init(parameters: GroupPanelPartInitParameters): void;
|
|
17
|
+
update(event: PanelUpdateEvent): void;
|
|
18
|
+
toJSON(): {
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
layout(width: number, height: number): void;
|
|
22
|
+
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactPanelHeaderPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var ReactPanelHeaderPart = /** @class */ (function () {
|
|
6
|
-
function ReactPanelHeaderPart(id, component, reactPortalStore) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.component = component;
|
|
9
|
-
this.reactPortalStore = reactPortalStore;
|
|
10
|
-
this._element = document.createElement('div');
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(ReactPanelHeaderPart.prototype, "element", {
|
|
13
|
-
get: function () {
|
|
14
|
-
return this._element;
|
|
15
|
-
},
|
|
16
|
-
enumerable: false,
|
|
17
|
-
configurable: true
|
|
18
|
-
});
|
|
19
|
-
ReactPanelHeaderPart.prototype.focus = function () {
|
|
20
|
-
//noop
|
|
21
|
-
};
|
|
22
|
-
ReactPanelHeaderPart.prototype.init = function (parameters) {
|
|
23
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
24
|
-
params: parameters.params,
|
|
25
|
-
api: parameters.api,
|
|
26
|
-
containerApi: parameters.containerApi,
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
ReactPanelHeaderPart.prototype.update = function (event) {
|
|
30
|
-
var _a;
|
|
31
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
32
|
-
};
|
|
33
|
-
ReactPanelHeaderPart.prototype.toJSON = function () {
|
|
34
|
-
return {
|
|
35
|
-
id: this.id,
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
ReactPanelHeaderPart.prototype.layout = function (width, height) {
|
|
39
|
-
// noop - retrieval from api
|
|
40
|
-
};
|
|
41
|
-
ReactPanelHeaderPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
42
|
-
// noop - retrieval from api
|
|
43
|
-
};
|
|
44
|
-
ReactPanelHeaderPart.prototype.dispose = function () {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47
|
-
};
|
|
48
|
-
return ReactPanelHeaderPart;
|
|
49
|
-
}());
|
|
50
|
-
exports.ReactPanelHeaderPart = ReactPanelHeaderPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactPanelHeaderPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var ReactPanelHeaderPart = /** @class */ (function () {
|
|
6
|
+
function ReactPanelHeaderPart(id, component, reactPortalStore) {
|
|
7
|
+
this.id = id;
|
|
8
|
+
this.component = component;
|
|
9
|
+
this.reactPortalStore = reactPortalStore;
|
|
10
|
+
this._element = document.createElement('div');
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(ReactPanelHeaderPart.prototype, "element", {
|
|
13
|
+
get: function () {
|
|
14
|
+
return this._element;
|
|
15
|
+
},
|
|
16
|
+
enumerable: false,
|
|
17
|
+
configurable: true
|
|
18
|
+
});
|
|
19
|
+
ReactPanelHeaderPart.prototype.focus = function () {
|
|
20
|
+
//noop
|
|
21
|
+
};
|
|
22
|
+
ReactPanelHeaderPart.prototype.init = function (parameters) {
|
|
23
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
24
|
+
params: parameters.params,
|
|
25
|
+
api: parameters.api,
|
|
26
|
+
containerApi: parameters.containerApi,
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
ReactPanelHeaderPart.prototype.update = function (event) {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update(event.params);
|
|
32
|
+
};
|
|
33
|
+
ReactPanelHeaderPart.prototype.toJSON = function () {
|
|
34
|
+
return {
|
|
35
|
+
id: this.id,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
ReactPanelHeaderPart.prototype.layout = function (width, height) {
|
|
39
|
+
// noop - retrieval from api
|
|
40
|
+
};
|
|
41
|
+
ReactPanelHeaderPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
42
|
+
// noop - retrieval from api
|
|
43
|
+
};
|
|
44
|
+
ReactPanelHeaderPart.prototype.dispose = function () {
|
|
45
|
+
var _a;
|
|
46
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47
|
+
};
|
|
48
|
+
return ReactPanelHeaderPart;
|
|
49
|
+
}());
|
|
50
|
+
exports.ReactPanelHeaderPart = ReactPanelHeaderPart;
|
|
51
51
|
//# sourceMappingURL=reactHeaderPart.js.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GroupPanelPartInitParameters, IWatermarkRenderer } from '../../groupview/types';
|
|
3
|
-
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
4
|
-
import { ReactPortalStore } from '../react';
|
|
5
|
-
import { IGroupPanelBaseProps } from './dockview';
|
|
6
|
-
import { PanelUpdateEvent } from '../../panel/types';
|
|
7
|
-
interface IWatermarkPanelProps extends IGroupPanelBaseProps {
|
|
8
|
-
close: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare class ReactWatermarkPart implements IWatermarkRenderer {
|
|
11
|
-
readonly id: string;
|
|
12
|
-
private readonly component;
|
|
13
|
-
private readonly reactPortalStore;
|
|
14
|
-
private _element;
|
|
15
|
-
private part?;
|
|
16
|
-
private _groupRef;
|
|
17
|
-
private parameters;
|
|
18
|
-
get element(): HTMLElement;
|
|
19
|
-
constructor(id: string, component: React.FunctionComponent<IWatermarkPanelProps>, reactPortalStore: ReactPortalStore);
|
|
20
|
-
init(parameters: GroupPanelPartInitParameters): void;
|
|
21
|
-
focus(): void;
|
|
22
|
-
update(params: PanelUpdateEvent): void;
|
|
23
|
-
toJSON(): {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
layout(width: number, height: number): void;
|
|
27
|
-
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
28
|
-
dispose(): void;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GroupPanelPartInitParameters, IWatermarkRenderer } from '../../groupview/types';
|
|
3
|
+
import { GroupviewPanel } from '../../groupview/groupviewPanel';
|
|
4
|
+
import { ReactPortalStore } from '../react';
|
|
5
|
+
import { IGroupPanelBaseProps } from './dockview';
|
|
6
|
+
import { PanelUpdateEvent } from '../../panel/types';
|
|
7
|
+
interface IWatermarkPanelProps extends IGroupPanelBaseProps {
|
|
8
|
+
close: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare class ReactWatermarkPart implements IWatermarkRenderer {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
private readonly component;
|
|
13
|
+
private readonly reactPortalStore;
|
|
14
|
+
private _element;
|
|
15
|
+
private part?;
|
|
16
|
+
private _groupRef;
|
|
17
|
+
private parameters;
|
|
18
|
+
get element(): HTMLElement;
|
|
19
|
+
constructor(id: string, component: React.FunctionComponent<IWatermarkPanelProps>, reactPortalStore: ReactPortalStore);
|
|
20
|
+
init(parameters: GroupPanelPartInitParameters): void;
|
|
21
|
+
focus(): void;
|
|
22
|
+
update(params: PanelUpdateEvent): void;
|
|
23
|
+
toJSON(): {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
layout(width: number, height: number): void;
|
|
27
|
+
updateParentGroup(group: GroupviewPanel, isPanelVisible: boolean): void;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactWatermarkPart = void 0;
|
|
4
|
-
var react_1 = require("../react");
|
|
5
|
-
var ReactWatermarkPart = /** @class */ (function () {
|
|
6
|
-
function ReactWatermarkPart(id, component, reactPortalStore) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.component = component;
|
|
9
|
-
this.reactPortalStore = reactPortalStore;
|
|
10
|
-
this._groupRef = {
|
|
11
|
-
value: undefined,
|
|
12
|
-
};
|
|
13
|
-
this._element = document.createElement('div');
|
|
14
|
-
this._element.style.height = '100%';
|
|
15
|
-
this._element.style.width = '100%';
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(ReactWatermarkPart.prototype, "element", {
|
|
18
|
-
get: function () {
|
|
19
|
-
return this._element;
|
|
20
|
-
},
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
ReactWatermarkPart.prototype.init = function (parameters) {
|
|
25
|
-
var _this = this;
|
|
26
|
-
this.parameters = parameters;
|
|
27
|
-
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
28
|
-
params: parameters.params,
|
|
29
|
-
api: parameters.api,
|
|
30
|
-
containerApi: parameters.containerApi,
|
|
31
|
-
close: function () {
|
|
32
|
-
if (_this._groupRef.value) {
|
|
33
|
-
parameters.containerApi.removeGroup(_this._groupRef.value);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
ReactWatermarkPart.prototype.focus = function () {
|
|
39
|
-
// noop
|
|
40
|
-
};
|
|
41
|
-
ReactWatermarkPart.prototype.update = function (params) {
|
|
42
|
-
var _a, _b;
|
|
43
|
-
if (this.parameters) {
|
|
44
|
-
this.parameters.params = params.params;
|
|
45
|
-
}
|
|
46
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} });
|
|
47
|
-
};
|
|
48
|
-
ReactWatermarkPart.prototype.toJSON = function () {
|
|
49
|
-
return {
|
|
50
|
-
id: this.id,
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
ReactWatermarkPart.prototype.layout = function (width, height) {
|
|
54
|
-
// noop - retrieval from api
|
|
55
|
-
};
|
|
56
|
-
ReactWatermarkPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
57
|
-
// noop - retrieval from api
|
|
58
|
-
this._groupRef.value = group;
|
|
59
|
-
};
|
|
60
|
-
ReactWatermarkPart.prototype.dispose = function () {
|
|
61
|
-
var _a;
|
|
62
|
-
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
63
|
-
};
|
|
64
|
-
return ReactWatermarkPart;
|
|
65
|
-
}());
|
|
66
|
-
exports.ReactWatermarkPart = ReactWatermarkPart;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReactWatermarkPart = void 0;
|
|
4
|
+
var react_1 = require("../react");
|
|
5
|
+
var ReactWatermarkPart = /** @class */ (function () {
|
|
6
|
+
function ReactWatermarkPart(id, component, reactPortalStore) {
|
|
7
|
+
this.id = id;
|
|
8
|
+
this.component = component;
|
|
9
|
+
this.reactPortalStore = reactPortalStore;
|
|
10
|
+
this._groupRef = {
|
|
11
|
+
value: undefined,
|
|
12
|
+
};
|
|
13
|
+
this._element = document.createElement('div');
|
|
14
|
+
this._element.style.height = '100%';
|
|
15
|
+
this._element.style.width = '100%';
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(ReactWatermarkPart.prototype, "element", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return this._element;
|
|
20
|
+
},
|
|
21
|
+
enumerable: false,
|
|
22
|
+
configurable: true
|
|
23
|
+
});
|
|
24
|
+
ReactWatermarkPart.prototype.init = function (parameters) {
|
|
25
|
+
var _this = this;
|
|
26
|
+
this.parameters = parameters;
|
|
27
|
+
this.part = new react_1.ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
28
|
+
params: parameters.params,
|
|
29
|
+
api: parameters.api,
|
|
30
|
+
containerApi: parameters.containerApi,
|
|
31
|
+
close: function () {
|
|
32
|
+
if (_this._groupRef.value) {
|
|
33
|
+
parameters.containerApi.removeGroup(_this._groupRef.value);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
ReactWatermarkPart.prototype.focus = function () {
|
|
39
|
+
// noop
|
|
40
|
+
};
|
|
41
|
+
ReactWatermarkPart.prototype.update = function (params) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
if (this.parameters) {
|
|
44
|
+
this.parameters.params = params.params;
|
|
45
|
+
}
|
|
46
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.update({ params: ((_b = this.parameters) === null || _b === void 0 ? void 0 : _b.params) || {} });
|
|
47
|
+
};
|
|
48
|
+
ReactWatermarkPart.prototype.toJSON = function () {
|
|
49
|
+
return {
|
|
50
|
+
id: this.id,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
ReactWatermarkPart.prototype.layout = function (width, height) {
|
|
54
|
+
// noop - retrieval from api
|
|
55
|
+
};
|
|
56
|
+
ReactWatermarkPart.prototype.updateParentGroup = function (group, isPanelVisible) {
|
|
57
|
+
// noop - retrieval from api
|
|
58
|
+
this._groupRef.value = group;
|
|
59
|
+
};
|
|
60
|
+
ReactWatermarkPart.prototype.dispose = function () {
|
|
61
|
+
var _a;
|
|
62
|
+
(_a = this.part) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
63
|
+
};
|
|
64
|
+
return ReactWatermarkPart;
|
|
65
|
+
}());
|
|
66
|
+
exports.ReactWatermarkPart = ReactWatermarkPart;
|
|
67
67
|
//# sourceMappingURL=reactWatermarkPart.js.map
|