dockview 1.10.2 → 1.12.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/dist/cjs/dockview/defaultTab.d.ts +1 -1
- package/dist/cjs/dockview/defaultTab.js +11 -31
- package/dist/cjs/dockview/dockview.d.ts +1 -1
- package/dist/cjs/dockview/dockview.js +27 -47
- package/dist/cjs/dockview/headerActionsRenderer.d.ts +1 -1
- package/dist/cjs/dockview/headerActionsRenderer.js +2 -0
- package/dist/cjs/dockview/reactContentPart.d.ts +1 -1
- package/dist/cjs/dockview/reactContentPart.js +2 -0
- package/dist/cjs/dockview/reactHeaderPart.d.ts +1 -1
- package/dist/cjs/dockview/reactHeaderPart.js +2 -0
- package/dist/cjs/dockview/reactWatermarkPart.d.ts +1 -1
- package/dist/cjs/dockview/reactWatermarkPart.js +2 -0
- package/dist/cjs/gridview/gridview.d.ts +1 -1
- package/dist/cjs/gridview/gridview.js +13 -33
- package/dist/cjs/paneview/paneview.d.ts +1 -1
- package/dist/cjs/paneview/paneview.js +16 -36
- package/dist/cjs/paneview/view.d.ts +1 -1
- package/dist/cjs/react.d.ts +1 -1
- package/dist/cjs/react.js +16 -36
- package/dist/cjs/splitview/splitview.d.ts +1 -1
- package/dist/cjs/splitview/splitview.js +13 -33
- package/dist/cjs/svg.d.ts +1 -1
- package/dist/cjs/svg.js +7 -27
- package/dist/dockview.amd.js +119 -107
- package/dist/dockview.amd.js.map +1 -1
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.js.map +1 -1
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.min.noStyle.js.map +1 -1
- package/dist/dockview.amd.noStyle.js +118 -106
- package/dist/dockview.amd.noStyle.js.map +1 -1
- package/dist/dockview.cjs.js +119 -107
- package/dist/dockview.cjs.js.map +1 -1
- package/dist/dockview.esm.js +59 -27
- package/dist/dockview.esm.js.map +1 -1
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.esm.min.js.map +1 -1
- package/dist/dockview.js +119 -107
- package/dist/dockview.js.map +1 -1
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.js.map +1 -1
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.min.noStyle.js.map +1 -1
- package/dist/dockview.noStyle.js +118 -106
- package/dist/dockview.noStyle.js.map +1 -1
- package/dist/esm/dockview/defaultTab.d.ts +1 -1
- package/dist/esm/dockview/defaultTab.js +4 -4
- package/dist/esm/dockview/dockview.d.ts +1 -1
- package/dist/esm/dockview/dockview.js +1 -1
- package/dist/esm/dockview/headerActionsRenderer.d.ts +1 -1
- package/dist/esm/dockview/headerActionsRenderer.js +2 -0
- package/dist/esm/dockview/reactContentPart.d.ts +1 -1
- package/dist/esm/dockview/reactContentPart.js +2 -0
- package/dist/esm/dockview/reactHeaderPart.d.ts +1 -1
- package/dist/esm/dockview/reactHeaderPart.js +2 -0
- package/dist/esm/dockview/reactWatermarkPart.d.ts +1 -1
- package/dist/esm/dockview/reactWatermarkPart.js +2 -0
- package/dist/esm/gridview/gridview.d.ts +1 -1
- package/dist/esm/gridview/gridview.js +1 -1
- package/dist/esm/paneview/paneview.d.ts +1 -1
- package/dist/esm/paneview/paneview.js +1 -1
- package/dist/esm/paneview/view.d.ts +1 -1
- package/dist/esm/react.d.ts +1 -1
- package/dist/esm/react.js +2 -2
- package/dist/esm/splitview/splitview.d.ts +1 -1
- package/dist/esm/splitview/splitview.js +1 -1
- package/dist/esm/svg.d.ts +1 -1
- package/dist/esm/svg.js +1 -1
- package/dist/styles/dockview.css +849 -8
- package/package.json +3 -3
package/dist/dockview.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.
|
|
3
|
+
* @version 1.12.0
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -9,26 +9,6 @@
|
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var ReactDOM = require('react-dom');
|
|
11
11
|
|
|
12
|
-
function _interopNamespaceDefault(e) {
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return e[k]; }
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
30
|
-
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
31
|
-
|
|
32
12
|
function styleInject(css, ref) {
|
|
33
13
|
if ( ref === void 0 ) ref = {};
|
|
34
14
|
var insertAt = ref.insertAt;
|
|
@@ -56,7 +36,7 @@ function styleInject(css, ref) {
|
|
|
56
36
|
}
|
|
57
37
|
}
|
|
58
38
|
|
|
59
|
-
var css_248z = "@import \"dockview-core/dist/styles/dockview.css\";\n.tab .dockview-react-tab {\n display: flex;\n padding: 0px 8px;\n align-items: center;\n height: 100%;\n}\n.tab .dockview-react-tab .dockview-react-tab-title {\n padding: 0px 8px;\n flex-grow: 1;\n}\n.tab .dockview-react-tab .dv-react-tab-close-btn {\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n}\n.tab .dockview-react-tab .dv-react-tab-close-btn:hover {\n border-radius: 2px;\n background-color: var(--dv-icon-hover-background-color);\n}\n.tab.inactive-tab:not(:hover) .dv-react-tab-close-btn {\n visibility: hidden;\n}\n.dockview-react-part {\n height: 100%;\n width: 100%;\n}";
|
|
39
|
+
var css_248z = ".dv-render-overlay {\n position: absolute;\n z-index: 1;\n height: 100%;\n}\n.dv-render-overlay.dv-render-overlay-float {\n z-index: 999;\n}\n\n.dv-debug .dv-render-overlay {\n outline: 1px solid red;\n outline-offset: -1;\n}\n.dockview-svg {\n display: inline-block;\n fill: currentcolor;\n line-height: 1;\n stroke: currentcolor;\n stroke-width: 0;\n}\n.dockview-theme-dark {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-view-background-color: #1e1e1e;\n --dv-tabs-and-actions-container-background-color: #252526;\n --dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;\n --dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;\n --dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;\n --dv-tab-divider-color: #1e1e1e;\n --dv-activegroup-visiblepanel-tab-color: white;\n --dv-activegroup-hiddenpanel-tab-color: #969696;\n --dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;\n --dv-inactivegroup-hiddenpanel-tab-color: #626262;\n --dv-separator-border: rgb(68, 68, 68);\n --dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);\n}\n\n.dockview-theme-light {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-view-background-color: white;\n --dv-tabs-and-actions-container-background-color: #f3f3f3;\n --dv-activegroup-visiblepanel-tab-background-color: white;\n --dv-activegroup-hiddenpanel-tab-background-color: #ececec;\n --dv-inactivegroup-visiblepanel-tab-background-color: white;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #ececec;\n --dv-tab-divider-color: white;\n --dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);\n --dv-activegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.7);\n --dv-inactivegroup-visiblepanel-tab-color: rgba(51, 51, 51, 0.7);\n --dv-inactivegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.35);\n --dv-separator-border: rgba(128, 128, 128, 0.35);\n --dv-paneview-header-border-color: rgb(51, 51, 51);\n}\n\n.dockview-theme-vs {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-view-background-color: #1e1e1e;\n --dv-tabs-and-actions-container-background-color: #252526;\n --dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;\n --dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;\n --dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;\n --dv-tab-divider-color: #1e1e1e;\n --dv-activegroup-visiblepanel-tab-color: white;\n --dv-activegroup-hiddenpanel-tab-color: #969696;\n --dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;\n --dv-inactivegroup-hiddenpanel-tab-color: #626262;\n --dv-separator-border: rgb(68, 68, 68);\n --dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);\n --dv-tabs-and-actions-container-background-color: #2d2d30;\n --dv-tabs-and-actions-container-height: 20px;\n --dv-tabs-and-actions-container-font-size: 11px;\n --dv-activegroup-visiblepanel-tab-background-color: #007acc;\n --dv-inactivegroup-visiblepanel-tab-background-color: #3f3f46;\n --dv-activegroup-visiblepanel-tab-color: white;\n --dv-activegroup-hiddenpanel-tab-color: white;\n --dv-inactivegroup-visiblepanel-tab-color: white;\n --dv-inactivegroup-hiddenpanel-tab-color: white;\n}\n.dockview-theme-vs .groupview.active-group > .tabs-and-actions-container {\n box-sizing: content-box;\n border-bottom: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);\n}\n.dockview-theme-vs .groupview.active-group > .tabs-and-actions-container .tab.active-tab {\n border-top: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);\n}\n.dockview-theme-vs .groupview.active-group > .tabs-and-actions-container .tab.inactive-tab {\n border-top: 2px solid var(--dv-activegroup-hiddenpanel-tab-background-color);\n}\n.dockview-theme-vs .groupview.inactive-group > .tabs-and-actions-container {\n box-sizing: content-box;\n border-bottom: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);\n}\n.dockview-theme-vs .groupview.inactive-group > .tabs-and-actions-container .tab.active-tab {\n border-top: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);\n}\n.dockview-theme-vs .groupview.inactive-group > .tabs-and-actions-container .tab.inactive-tab {\n border-top: 2px solid var(--dv-inactivegroup-hiddenpanel-tab-background-color);\n}\n\n.dockview-theme-abyss {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-view-background-color: #000c18;\n --dv-tabs-and-actions-container-background-color: #1c1c2a;\n --dv-activegroup-visiblepanel-tab-background-color: #000c18;\n --dv-activegroup-hiddenpanel-tab-background-color: #10192c;\n --dv-inactivegroup-visiblepanel-tab-background-color: #000c18;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #10192c;\n --dv-tab-divider-color: #2b2b4a;\n --dv-activegroup-visiblepanel-tab-color: white;\n --dv-activegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.5);\n --dv-inactivegroup-visiblepanel-tab-color: rgba(255, 255, 255, 0.5);\n --dv-inactivegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.25);\n --dv-separator-border: #2b2b4a;\n --dv-paneview-header-border-color: #2b2b4a;\n --dv-paneview-active-outline-color: #596f99;\n}\n\n.dockview-theme-dracula {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-view-background-color: #282a36;\n --dv-tabs-and-actions-container-background-color: #191a21;\n --dv-activegroup-visiblepanel-tab-background-color: #282a36;\n --dv-activegroup-hiddenpanel-tab-background-color: #21222c;\n --dv-inactivegroup-visiblepanel-tab-background-color: #282a36;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #21222c;\n --dv-tab-divider-color: #191a21;\n --dv-activegroup-visiblepanel-tab-color: rgb(248, 248, 242);\n --dv-activegroup-hiddenpanel-tab-color: rgb(98, 114, 164);\n --dv-inactivegroup-visiblepanel-tab-color: rgba(248, 248, 242, 0.5);\n --dv-inactivegroup-hiddenpanel-tab-color: rgba(98, 114, 164, 0.5);\n --dv-separator-border: #bd93f9;\n --dv-paneview-header-border-color: #bd93f9;\n --dv-paneview-active-outline-color: #6272a4;\n}\n.dockview-theme-dracula .groupview.active-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab {\n position: relative;\n}\n.dockview-theme-dracula .groupview.active-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab::after {\n position: absolute;\n left: 0px;\n top: 0px;\n content: \"\";\n width: 100%;\n height: 1px;\n background-color: #94527e;\n z-index: 999;\n}\n.dockview-theme-dracula .groupview.inactive-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab {\n position: relative;\n}\n.dockview-theme-dracula .groupview.inactive-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab::after {\n position: absolute;\n left: 0px;\n bottom: 0px;\n content: \"\";\n width: 100%;\n height: 1px;\n background-color: #5e3d5a;\n z-index: 999;\n}\n\n.dockview-theme-replit {\n --dv-background-color: black;\n --dv-paneview-active-outline-color: dodgerblue;\n --dv-tabs-and-actions-container-font-size: 13px;\n --dv-tabs-and-actions-container-height: 35px;\n --dv-drag-over-background-color: rgba(83, 89, 93, 0.5);\n --dv-drag-over-border-color: white;\n --dv-tabs-container-scrollbar-color: #888;\n --dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);\n --dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);\n --dv-group-gap-size: 3px;\n --dv-group-view-background-color: #ebeced;\n --dv-tabs-and-actions-container-background-color: #fcfcfc;\n --dv-activegroup-visiblepanel-tab-background-color: #f0f1f2;\n --dv-activegroup-hiddenpanel-tab-background-color: ##fcfcfc;\n --dv-inactivegroup-visiblepanel-tab-background-color: #f0f1f2;\n --dv-inactivegroup-hiddenpanel-tab-background-color: #fcfcfc;\n --dv-tab-divider-color: transparent;\n --dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);\n --dv-activegroup-hiddenpanel-tab-color: rgb(51, 51, 51);\n --dv-inactivegroup-visiblepanel-tab-color: rgb(51, 51, 51);\n --dv-inactivegroup-hiddenpanel-tab-color: rgb(51, 51, 51);\n --dv-separator-border: transparent;\n --dv-paneview-header-border-color: rgb(51, 51, 51);\n --dv-background-color: #ebeced;\n --dv-separator-handle-background-color: #cfd1d3;\n --dv-separator-handle-hover-background-color: #babbbb;\n}\n.dockview-theme-replit .dv-resize-container:has(> .groupview) {\n border-radius: 8px;\n}\n.dockview-theme-replit .groupview {\n overflow: hidden;\n border-radius: 10px;\n}\n.dockview-theme-replit .groupview .tabs-and-actions-container {\n border-bottom: 1px solid rgba(128, 128, 128, 0.35);\n}\n.dockview-theme-replit .groupview .tabs-and-actions-container .tab {\n margin: 4px;\n border-radius: 8px;\n}\n.dockview-theme-replit .groupview .tabs-and-actions-container .tab .dockview-svg {\n height: 8px;\n width: 8px;\n}\n.dockview-theme-replit .groupview .tabs-and-actions-container .tab:hover {\n background-color: #e4e5e6 !important;\n}\n.dockview-theme-replit .groupview .content-container {\n background-color: #fcfcfc;\n}\n.dockview-theme-replit .groupview.active-group {\n border: 1px solid rgba(128, 128, 128, 0.35);\n}\n.dockview-theme-replit .groupview.inactive-group {\n border: 1px solid transparent;\n}\n.dockview-theme-replit .vertical > .sash-container > .sash::after {\n content: \"\";\n height: 4px;\n width: 40px;\n border-radius: 2px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: var(--dv-separator-handle-background-color);\n position: absolute;\n}\n.dockview-theme-replit .vertical > .sash-container > .sash:hover::after {\n background-color: var(--dv-separator-handle-hover-background-color);\n}\n.dockview-theme-replit .horizontal > .sash-container > .sash::after {\n content: \"\";\n height: 40px;\n width: 4px;\n border-radius: 2px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: var(--dv-separator-handle-background-color);\n position: absolute;\n}\n.dockview-theme-replit .horizontal > .sash-container > .sash:hover::after {\n background-color: var(--dv-separator-handle-hover-background-color);\n}\n.drop-target {\n position: relative;\n}\n.drop-target > .drop-target-dropzone {\n position: absolute;\n left: 0px;\n top: 0px;\n height: 100%;\n width: 100%;\n z-index: 1000;\n pointer-events: none;\n}\n.drop-target > .drop-target-dropzone > .drop-target-selection {\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n background-color: var(--dv-drag-over-background-color);\n transition: top 70ms ease-out, left 70ms ease-out, width 70ms ease-out, height 70ms ease-out, opacity 0.15s ease-out;\n will-change: transform;\n pointer-events: none;\n}\n.drop-target > .drop-target-dropzone > .drop-target-selection.dv-drop-target-top.dv-drop-target-small-vertical {\n border-top: 1px solid var(--dv-drag-over-border-color);\n}\n.drop-target > .drop-target-dropzone > .drop-target-selection.dv-drop-target-bottom.dv-drop-target-small-vertical {\n border-bottom: 1px solid var(--dv-drag-over-border-color);\n}\n.drop-target > .drop-target-dropzone > .drop-target-selection.dv-drop-target-left.dv-drop-target-small-horizontal {\n border-left: 1px solid var(--dv-drag-over-border-color);\n}\n.drop-target > .drop-target-dropzone > .drop-target-selection.dv-drop-target-right.dv-drop-target-small-horizontal {\n border-right: 1px solid var(--dv-drag-over-border-color);\n}\n.dv-debug .dv-resize-container .dv-resize-handle-top {\n background-color: red;\n}\n.dv-debug .dv-resize-container .dv-resize-handle-bottom {\n background-color: green;\n}\n.dv-debug .dv-resize-container .dv-resize-handle-left {\n background-color: yellow;\n}\n.dv-debug .dv-resize-container .dv-resize-handle-right {\n background-color: blue;\n}\n.dv-debug .dv-resize-container .dv-resize-handle-topleft,\n.dv-debug .dv-resize-container .dv-resize-handle-topright,\n.dv-debug .dv-resize-container .dv-resize-handle-bottomleft,\n.dv-debug .dv-resize-container .dv-resize-handle-bottomright {\n background-color: cyan;\n}\n\n.dv-resize-container {\n position: absolute;\n z-index: 997;\n border: 1px solid var(--dv-tab-divider-color);\n box-shadow: var(--dv-floating-box-shadow);\n}\n.dv-resize-container.dv-bring-to-front {\n z-index: 998;\n}\n.dv-resize-container.dv-resize-container-dragging {\n opacity: 0.5;\n}\n.dv-resize-container .dv-resize-handle-top {\n height: 4px;\n width: calc(100% - 8px);\n left: 4px;\n top: -2px;\n z-index: 999;\n position: absolute;\n cursor: ns-resize;\n}\n.dv-resize-container .dv-resize-handle-bottom {\n height: 4px;\n width: calc(100% - 8px);\n left: 4px;\n bottom: -2px;\n z-index: 999;\n position: absolute;\n cursor: ns-resize;\n}\n.dv-resize-container .dv-resize-handle-left {\n height: calc(100% - 8px);\n width: 4px;\n left: -2px;\n top: 4px;\n z-index: 999;\n position: absolute;\n cursor: ew-resize;\n}\n.dv-resize-container .dv-resize-handle-right {\n height: calc(100% - 8px);\n width: 4px;\n right: -2px;\n top: 4px;\n z-index: 999;\n position: absolute;\n cursor: ew-resize;\n}\n.dv-resize-container .dv-resize-handle-topleft {\n height: 4px;\n width: 4px;\n top: -2px;\n left: -2px;\n z-index: 999;\n position: absolute;\n cursor: nw-resize;\n}\n.dv-resize-container .dv-resize-handle-topright {\n height: 4px;\n width: 4px;\n right: -2px;\n top: -2px;\n z-index: 999;\n position: absolute;\n cursor: ne-resize;\n}\n.dv-resize-container .dv-resize-handle-bottomleft {\n height: 4px;\n width: 4px;\n left: -2px;\n bottom: -2px;\n z-index: 999;\n position: absolute;\n cursor: sw-resize;\n}\n.dv-resize-container .dv-resize-handle-bottomright {\n height: 4px;\n width: 4px;\n right: -2px;\n bottom: -2px;\n z-index: 999;\n position: absolute;\n cursor: se-resize;\n}\n.dv-dockview {\n position: relative;\n background-color: var(--dv-group-view-background-color);\n}\n.dv-dockview .dv-watermark-container {\n position: absolute;\n top: 0px;\n left: 0px;\n height: 100%;\n width: 100%;\n z-index: 1;\n}\n.dv-dockview .dv-overlay-render-container {\n position: relative;\n}\n.dv-dockview .split-view-container.horizontal > .view-container > .view:not(:last-child) {\n border-right: var(--dv-group-gap-size) solid transparent;\n}\n.dv-dockview .split-view-container.horizontal > .view-container > .view:not(:first-child) {\n border-left: var(--dv-group-gap-size) solid transparent;\n}\n.dv-dockview .split-view-container.vertical > .view-container > .view:not(:last-child) {\n border-bottom: var(--dv-group-gap-size) solid transparent;\n}\n.dv-dockview .split-view-container.vertical > .view-container > .view:not(:first-child) {\n border-top: var(--dv-group-gap-size) solid transparent;\n}\n\n.groupview.active-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab {\n background-color: var(--dv-activegroup-visiblepanel-tab-background-color);\n color: var(--dv-activegroup-visiblepanel-tab-color);\n}\n.groupview.active-group > .tabs-and-actions-container > .tabs-container > .tab.inactive-tab {\n background-color: var(--dv-activegroup-hiddenpanel-tab-background-color);\n color: var(--dv-activegroup-hiddenpanel-tab-color);\n}\n.groupview.inactive-group > .tabs-and-actions-container > .tabs-container > .tab.active-tab {\n background-color: var(--dv-inactivegroup-visiblepanel-tab-background-color);\n color: var(--dv-inactivegroup-visiblepanel-tab-color);\n}\n.groupview.inactive-group > .tabs-and-actions-container > .tabs-container > .tab.inactive-tab {\n background-color: var(--dv-inactivegroup-hiddenpanel-tab-background-color);\n color: var(--dv-inactivegroup-hiddenpanel-tab-color);\n}\n\n/**\n * when a tab is dragged we lose the above stylings because they are conditional on parent elements\n * therefore we also set some stylings for the dragging event\n **/\n.tab.dv-tab-dragging {\n background-color: var(--dv-activegroup-visiblepanel-tab-background-color);\n color: var(--dv-activegroup-visiblepanel-tab-color);\n}\n.groupview {\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: var(--dv-group-view-background-color);\n overflow: hidden;\n}\n.groupview:focus {\n outline: none;\n}\n.groupview.empty > .tabs-and-actions-container {\n display: none;\n}\n.groupview > .content-container {\n flex-grow: 1;\n min-height: 0;\n outline: none;\n}\n.dv-root-wrapper {\n height: 100%;\n width: 100%;\n}\n.grid-view,\n.branch-node {\n height: 100%;\n width: 100%;\n}\n.pane-container {\n height: 100%;\n width: 100%;\n}\n.pane-container.animated .view {\n transition-duration: 0.15s;\n transition-timing-function: ease-out;\n}\n.pane-container .view {\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding: 0px !important;\n}\n.pane-container .view:not(:first-child)::before {\n background-color: transparent !important;\n}\n.pane-container .view:not(:first-child) .pane > .pane-header {\n border-top: 1px solid var(--dv-paneview-header-border-color);\n}\n.pane-container .view .default-header {\n background-color: var(--dv-group-view-background-color);\n color: var(--dv-activegroup-visiblepanel-tab-color);\n display: flex;\n padding: 0px 8px;\n cursor: pointer;\n}\n.pane-container .view .default-header .dockview-pane-header-icon {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.pane-container .view .default-header > span {\n padding-left: 8px;\n flex-grow: 1;\n}\n.pane-container:first-of-type > .pane > .pane-header {\n border-top: none !important;\n}\n.pane-container .pane {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n height: 100%;\n}\n.pane-container .pane .pane-header {\n box-sizing: border-box;\n user-select: none;\n position: relative;\n outline: none;\n}\n.pane-container .pane .pane-header.pane-draggable {\n cursor: pointer;\n}\n.pane-container .pane .pane-header:focus:before, .pane-container .pane .pane-header:focus-within:before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 5;\n content: \"\";\n pointer-events: none;\n outline: 1px solid;\n outline-width: -1px;\n outline-style: solid;\n outline-offset: -1px;\n outline-color: var(--dv-paneview-active-outline-color);\n}\n.pane-container .pane .pane-body {\n overflow-y: auto;\n overflow-x: hidden;\n flex-grow: 1;\n position: relative;\n outline: none;\n}\n.pane-container .pane .pane-body:focus:before, .pane-container .pane .pane-body:focus-within:before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 5;\n content: \"\";\n pointer-events: none;\n outline: 1px solid;\n outline-width: -1px;\n outline-style: solid;\n outline-offset: -1px;\n outline-color: var(--dv-paneview-active-outline-color);\n}\n.dv-debug .split-view-container .sash-container .sash.enabled {\n background-color: black;\n}\n.dv-debug .split-view-container .sash-container .sash.disabled {\n background-color: orange;\n}\n.dv-debug .split-view-container .sash-container .sash.maximum {\n background-color: green;\n}\n.dv-debug .split-view-container .sash-container .sash.minimum {\n background-color: red;\n}\n\n.split-view-container {\n position: relative;\n overflow: hidden;\n height: 100%;\n width: 100%;\n}\n.split-view-container.dv-splitview-disabled > .sash-container > .sash {\n pointer-events: none;\n}\n.split-view-container.animation .view,\n.split-view-container.animation .sash {\n transition-duration: 0.15s;\n transition-timing-function: ease-out;\n}\n.split-view-container.horizontal {\n height: 100%;\n}\n.split-view-container.horizontal > .sash-container > .sash {\n height: 100%;\n width: 4px;\n}\n.split-view-container.horizontal > .sash-container > .sash.enabled {\n cursor: ew-resize;\n}\n.split-view-container.horizontal > .sash-container > .sash.disabled {\n cursor: default;\n}\n.split-view-container.horizontal > .sash-container > .sash.maximum {\n cursor: w-resize;\n}\n.split-view-container.horizontal > .sash-container > .sash.minimum {\n cursor: e-resize;\n}\n.split-view-container.horizontal > .view-container > .view:not(:first-child)::before {\n height: 100%;\n width: 1px;\n}\n.split-view-container.vertical {\n width: 100%;\n}\n.split-view-container.vertical > .sash-container > .sash {\n width: 100%;\n height: 4px;\n}\n.split-view-container.vertical > .sash-container > .sash.enabled {\n cursor: ns-resize;\n}\n.split-view-container.vertical > .sash-container > .sash.disabled {\n cursor: default;\n}\n.split-view-container.vertical > .sash-container > .sash.maximum {\n cursor: n-resize;\n}\n.split-view-container.vertical > .sash-container > .sash.minimum {\n cursor: s-resize;\n}\n.split-view-container.vertical > .view-container > .view {\n width: 100%;\n}\n.split-view-container.vertical > .view-container > .view:not(:first-child)::before {\n height: 1px;\n width: 100%;\n}\n.split-view-container .sash-container {\n height: 100%;\n width: 100%;\n position: absolute;\n}\n.split-view-container .sash-container .sash {\n position: absolute;\n z-index: 99;\n outline: none;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n touch-action: none;\n}\n.split-view-container .sash-container .sash:not(.disabled):active {\n transition: background-color 0.1s ease-in-out;\n background-color: var(--dv-active-sash-color, transparent);\n}\n.split-view-container .sash-container .sash:not(.disabled):hover {\n background-color: var(--dv-active-sash-color, transparent);\n transition: background-color 0.1s ease-in-out;\n transition-delay: 0.5s;\n}\n.split-view-container .view-container {\n position: relative;\n height: 100%;\n width: 100%;\n background-color: var(--dv-background-color);\n}\n.split-view-container .view-container .view {\n height: 100%;\n box-sizing: border-box;\n overflow: auto;\n position: absolute;\n}\n.split-view-container.separator-border .view:not(:first-child)::before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n pointer-events: none;\n background-color: var(--dv-separator-border);\n}\n.dv-dragged {\n transform: translate3d(0px, 0px, 0px); /* forces tab to be drawn on a separate layer (see https://github.com/microsoft/vscode/issues/18733) */\n}\n\n.tab {\n flex-shrink: 0;\n}\n.tab:focus-within, .tab:focus {\n position: relative;\n}\n.tab:focus-within::after, .tab:focus::after {\n position: absolute;\n content: \"\";\n height: 100%;\n width: 100%;\n top: 0px;\n left: 0px;\n pointer-events: none;\n outline: 1px solid var(--dv-tab-divider-color) !important;\n outline-offset: -1px;\n z-index: 5;\n}\n.tab.dv-tab-dragging .dv-default-tab-action {\n background-color: var(--dv-activegroup-visiblepanel-tab-color);\n}\n.tab.active-tab .dv-default-tab .dv-default-tab-action {\n visibility: visible;\n}\n.tab.inactive-tab .dv-default-tab .dv-default-tab-action {\n visibility: hidden;\n}\n.tab.inactive-tab .dv-default-tab:hover .dv-default-tab-action {\n visibility: visible;\n}\n.tab .dv-default-tab {\n position: relative;\n height: 100%;\n display: flex;\n min-width: 80px;\n align-items: center;\n padding: 0px 8px;\n white-space: nowrap;\n text-overflow: elipsis;\n}\n.tab .dv-default-tab .dv-default-tab-content {\n padding: 0px 8px;\n flex-grow: 1;\n}\n.tab .dv-default-tab .dv-default-tab-action {\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n}\n.tab .dv-default-tab .dv-default-tab-action:hover {\n border-radius: 2px;\n background-color: var(--dv-icon-hover-background-color);\n}\n.tabs-and-actions-container {\n display: flex;\n background-color: var(--dv-tabs-and-actions-container-background-color);\n flex-shrink: 0;\n box-sizing: border-box;\n height: var(--dv-tabs-and-actions-container-height);\n font-size: var(--dv-tabs-and-actions-container-font-size);\n}\n.tabs-and-actions-container.hidden {\n display: none;\n}\n.tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .tabs-container {\n flex-grow: 1;\n}\n.tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .tabs-container .tab {\n flex-grow: 1;\n}\n.tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .void-container {\n flex-grow: 0;\n}\n.tabs-and-actions-container .void-container {\n display: flex;\n flex-grow: 1;\n cursor: grab;\n}\n.tabs-and-actions-container .tabs-container {\n display: flex;\n overflow-x: overlay;\n overflow-y: hidden;\n scrollbar-width: thin;\n /* Track */\n /* Handle */\n}\n.tabs-and-actions-container .tabs-container::-webkit-scrollbar {\n height: 3px;\n}\n.tabs-and-actions-container .tabs-container::-webkit-scrollbar-track {\n background: transparent;\n}\n.tabs-and-actions-container .tabs-container::-webkit-scrollbar-thumb {\n background: var(--dv-tabs-container-scrollbar-color);\n}\n.tabs-and-actions-container .tabs-container .tab {\n -webkit-user-drag: element;\n outline: none;\n min-width: 75px;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n}\n.tabs-and-actions-container .tabs-container .tab:not(:first-child)::before {\n content: \" \";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n pointer-events: none;\n background-color: var(--dv-tab-divider-color);\n width: 1px;\n height: 100%;\n}\n.watermark {\n display: flex;\n width: 100%;\n}\n.watermark.has-actions .watermark-title .actions-container {\n display: none;\n}\n.watermark .watermark-title {\n height: 35px;\n width: 100%;\n display: flex;\n}\n.watermark .watermark-content {\n flex-grow: 1;\n}\n.watermark .actions-container {\n display: flex;\n align-items: center;\n padding: 0px 8px;\n}\n.watermark .actions-container .close-action {\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n cursor: pointer;\n color: var(--dv-activegroup-hiddenpanel-tab-color);\n}\n.watermark .actions-container .close-action:hover {\n border-radius: 2px;\n background-color: var(--dv-icon-hover-background-color);\n}";
|
|
60
40
|
styleInject(css_248z);
|
|
61
41
|
|
|
62
42
|
class TransferObject {
|
|
@@ -3596,7 +3576,7 @@ class ContentContainer extends CompositeDisposable {
|
|
|
3596
3576
|
this.panel = panel;
|
|
3597
3577
|
let container;
|
|
3598
3578
|
switch (panel.api.renderer) {
|
|
3599
|
-
case '
|
|
3579
|
+
case 'onlyWhenVisible':
|
|
3600
3580
|
this.group.renderContainer.detatch(panel);
|
|
3601
3581
|
if (this.panel) {
|
|
3602
3582
|
if (doRender) {
|
|
@@ -3642,7 +3622,7 @@ class ContentContainer extends CompositeDisposable {
|
|
|
3642
3622
|
closePanel() {
|
|
3643
3623
|
var _a;
|
|
3644
3624
|
if (this.panel) {
|
|
3645
|
-
if (this.panel.api.renderer === '
|
|
3625
|
+
if (this.panel.api.renderer === 'onlyWhenVisible') {
|
|
3646
3626
|
(_a = this.panel.view.content.element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(this.panel.view.content.element);
|
|
3647
3627
|
}
|
|
3648
3628
|
}
|
|
@@ -4031,6 +4011,10 @@ class TabsContainer extends CompositeDisposable {
|
|
|
4031
4011
|
}), this.voidContainer.onWillShowOverlay((event) => {
|
|
4032
4012
|
this._onWillShowOverlay.fire(new WillShowOverlayLocationEvent(event, {
|
|
4033
4013
|
kind: 'header_space',
|
|
4014
|
+
panel: this.group.activePanel,
|
|
4015
|
+
api: this.accessor.api,
|
|
4016
|
+
group: this.group,
|
|
4017
|
+
getData: getPanelData,
|
|
4034
4018
|
}));
|
|
4035
4019
|
}), addDisposableListener(this.voidContainer.element, 'mousedown', (event) => {
|
|
4036
4020
|
const isFloatingGroupsEnabled = !this.accessor.options.disableFloatingGroups;
|
|
@@ -4128,7 +4112,13 @@ class TabsContainer extends CompositeDisposable {
|
|
|
4128
4112
|
index: this.tabs.findIndex((x) => x.value === tab),
|
|
4129
4113
|
});
|
|
4130
4114
|
}), tab.onWillShowOverlay((event) => {
|
|
4131
|
-
this._onWillShowOverlay.fire(new WillShowOverlayLocationEvent(event, {
|
|
4115
|
+
this._onWillShowOverlay.fire(new WillShowOverlayLocationEvent(event, {
|
|
4116
|
+
kind: 'tab',
|
|
4117
|
+
panel: this.group.activePanel,
|
|
4118
|
+
api: this.accessor.api,
|
|
4119
|
+
group: this.group,
|
|
4120
|
+
getData: getPanelData,
|
|
4121
|
+
}));
|
|
4132
4122
|
}));
|
|
4133
4123
|
const value = { value: tab, disposable };
|
|
4134
4124
|
this.addTab(value, index);
|
|
@@ -4181,7 +4171,7 @@ class DockviewWillDropEvent extends DockviewDidDropEvent {
|
|
|
4181
4171
|
}
|
|
4182
4172
|
class WillShowOverlayLocationEvent {
|
|
4183
4173
|
get kind() {
|
|
4184
|
-
return this.
|
|
4174
|
+
return this.options.kind;
|
|
4185
4175
|
}
|
|
4186
4176
|
get nativeEvent() {
|
|
4187
4177
|
return this.event.nativeEvent;
|
|
@@ -4192,12 +4182,24 @@ class WillShowOverlayLocationEvent {
|
|
|
4192
4182
|
get defaultPrevented() {
|
|
4193
4183
|
return this.event.defaultPrevented;
|
|
4194
4184
|
}
|
|
4185
|
+
get panel() {
|
|
4186
|
+
return this.options.panel;
|
|
4187
|
+
}
|
|
4188
|
+
get api() {
|
|
4189
|
+
return this.options.api;
|
|
4190
|
+
}
|
|
4191
|
+
get group() {
|
|
4192
|
+
return this.options.group;
|
|
4193
|
+
}
|
|
4195
4194
|
preventDefault() {
|
|
4196
4195
|
this.event.preventDefault();
|
|
4197
4196
|
}
|
|
4197
|
+
getData() {
|
|
4198
|
+
return this.options.getData();
|
|
4199
|
+
}
|
|
4198
4200
|
constructor(event, options) {
|
|
4199
4201
|
this.event = event;
|
|
4200
|
-
this.
|
|
4202
|
+
this.options = options;
|
|
4201
4203
|
}
|
|
4202
4204
|
}
|
|
4203
4205
|
class DockviewGroupPanelModel extends CompositeDisposable {
|
|
@@ -4336,6 +4338,10 @@ class DockviewGroupPanelModel extends CompositeDisposable {
|
|
|
4336
4338
|
}), this.contentContainer.dropTarget.onWillShowOverlay((event) => {
|
|
4337
4339
|
this._onWillShowOverlay.fire(new WillShowOverlayLocationEvent(event, {
|
|
4338
4340
|
kind: 'content',
|
|
4341
|
+
panel: this.activePanel,
|
|
4342
|
+
api: this._api,
|
|
4343
|
+
group: this.groupPanel,
|
|
4344
|
+
getData: getPanelData,
|
|
4339
4345
|
}));
|
|
4340
4346
|
}), this._onMove, this._onDidChange, this._onDidDrop, this._onWillDrop, this._onDidAddPanel, this._onDidRemovePanel, this._onDidActivePanelChange);
|
|
4341
4347
|
}
|
|
@@ -6153,27 +6159,18 @@ class DefaultTab extends CompositeDisposable {
|
|
|
6153
6159
|
//
|
|
6154
6160
|
this.params = {};
|
|
6155
6161
|
this._element = document.createElement('div');
|
|
6156
|
-
this._element.className = 'default-tab';
|
|
6162
|
+
this._element.className = 'dv-default-tab';
|
|
6157
6163
|
//
|
|
6158
6164
|
this._content = document.createElement('div');
|
|
6159
|
-
this._content.className = 'tab-content';
|
|
6160
|
-
//
|
|
6161
|
-
this._actionContainer = document.createElement('div');
|
|
6162
|
-
this._actionContainer.className = 'action-container';
|
|
6163
|
-
//
|
|
6164
|
-
this._list = document.createElement('ul');
|
|
6165
|
-
this._list.className = 'tab-list';
|
|
6166
|
-
//
|
|
6165
|
+
this._content.className = 'dv-default-tab-content';
|
|
6167
6166
|
this.action = document.createElement('div');
|
|
6168
|
-
this.action.className = 'tab-action';
|
|
6167
|
+
this.action.className = 'dv-default-tab-action';
|
|
6169
6168
|
this.action.appendChild(createCloseButton());
|
|
6170
6169
|
//
|
|
6171
6170
|
this._element.appendChild(this._content);
|
|
6172
|
-
this._element.appendChild(this.
|
|
6173
|
-
this._actionContainer.appendChild(this._list);
|
|
6174
|
-
this._list.appendChild(this.action);
|
|
6171
|
+
this._element.appendChild(this.action);
|
|
6175
6172
|
//
|
|
6176
|
-
this.addDisposables(addDisposableListener(this.
|
|
6173
|
+
this.addDisposables(addDisposableListener(this.action, 'mousedown', (ev) => {
|
|
6177
6174
|
ev.preventDefault();
|
|
6178
6175
|
}));
|
|
6179
6176
|
this.render();
|
|
@@ -6990,7 +6987,10 @@ class DockviewComponent extends BaseGrid {
|
|
|
6990
6987
|
}
|
|
6991
6988
|
get renderer() {
|
|
6992
6989
|
var _a;
|
|
6993
|
-
return (_a = this.options.defaultRenderer) !== null && _a !== void 0 ? _a : '
|
|
6990
|
+
return (_a = this.options.defaultRenderer) !== null && _a !== void 0 ? _a : 'onlyWhenVisible';
|
|
6991
|
+
}
|
|
6992
|
+
get api() {
|
|
6993
|
+
return this._api;
|
|
6994
6994
|
}
|
|
6995
6995
|
constructor(options) {
|
|
6996
6996
|
var _a, _b;
|
|
@@ -7125,6 +7125,10 @@ class DockviewComponent extends BaseGrid {
|
|
|
7125
7125
|
}
|
|
7126
7126
|
this._onWillShowOverlay.fire(new WillShowOverlayLocationEvent(event, {
|
|
7127
7127
|
kind: 'edge',
|
|
7128
|
+
panel: undefined,
|
|
7129
|
+
api: this._api,
|
|
7130
|
+
group: undefined,
|
|
7131
|
+
getData: getPanelData,
|
|
7128
7132
|
}));
|
|
7129
7133
|
}), this._rootDropTarget.onDrop((event) => {
|
|
7130
7134
|
var _a;
|
|
@@ -9276,9 +9280,9 @@ class SplitviewPanel extends BasePanelView {
|
|
|
9276
9280
|
* component
|
|
9277
9281
|
*/
|
|
9278
9282
|
const ReactComponentBridge = (props, ref) => {
|
|
9279
|
-
const [_, triggerRender] =
|
|
9280
|
-
const _props =
|
|
9281
|
-
|
|
9283
|
+
const [_, triggerRender] = React.useState();
|
|
9284
|
+
const _props = React.useRef(props.componentProps);
|
|
9285
|
+
React.useImperativeHandle(ref, () => ({
|
|
9282
9286
|
update: (componentProps) => {
|
|
9283
9287
|
_props.current = Object.assign(Object.assign({}, _props.current), componentProps);
|
|
9284
9288
|
/**
|
|
@@ -9290,7 +9294,7 @@ const ReactComponentBridge = (props, ref) => {
|
|
|
9290
9294
|
triggerRender(Date.now());
|
|
9291
9295
|
},
|
|
9292
9296
|
}), []);
|
|
9293
|
-
return
|
|
9297
|
+
return React.createElement(props.component, _props.current);
|
|
9294
9298
|
};
|
|
9295
9299
|
ReactComponentBridge.displayName = 'DockviewReactJsBridge';
|
|
9296
9300
|
/**
|
|
@@ -9302,7 +9306,7 @@ const uniquePortalKeyGenerator = (() => {
|
|
|
9302
9306
|
let value = 1;
|
|
9303
9307
|
return { next: () => `dockview_react_portal_key_${(value++).toString()}` };
|
|
9304
9308
|
})();
|
|
9305
|
-
const ReactPartContext =
|
|
9309
|
+
const ReactPartContext = React.createContext({});
|
|
9306
9310
|
class ReactPart {
|
|
9307
9311
|
constructor(parent, portalStore, component, parameters, context) {
|
|
9308
9312
|
this.parent = parent;
|
|
@@ -9338,7 +9342,7 @@ class ReactPart {
|
|
|
9338
9342
|
*/
|
|
9339
9343
|
throw new Error('Dockview: Only React.memo(...), React.ForwardRef(...) and functional components are accepted as components');
|
|
9340
9344
|
}
|
|
9341
|
-
const bridgeComponent =
|
|
9345
|
+
const bridgeComponent = React.createElement(React.forwardRef(ReactComponentBridge), {
|
|
9342
9346
|
component: this
|
|
9343
9347
|
.component,
|
|
9344
9348
|
componentProps: this.parameters,
|
|
@@ -9351,9 +9355,9 @@ class ReactPart {
|
|
|
9351
9355
|
},
|
|
9352
9356
|
});
|
|
9353
9357
|
const node = this.context
|
|
9354
|
-
?
|
|
9358
|
+
? React.createElement(ReactPartContext.Provider, { value: this.context }, bridgeComponent)
|
|
9355
9359
|
: bridgeComponent;
|
|
9356
|
-
const portal =
|
|
9360
|
+
const portal = ReactDOM.createPortal(node, this.parent, uniquePortalKeyGenerator.next());
|
|
9357
9361
|
this.ref = {
|
|
9358
9362
|
portal,
|
|
9359
9363
|
disposable: this.portalStore.addPortal(portal),
|
|
@@ -9371,9 +9375,9 @@ class ReactPart {
|
|
|
9371
9375
|
* portal array
|
|
9372
9376
|
*/
|
|
9373
9377
|
const usePortalsLifecycle = () => {
|
|
9374
|
-
const [portals, setPortals] =
|
|
9375
|
-
|
|
9376
|
-
const addPortal =
|
|
9378
|
+
const [portals, setPortals] = React.useState([]);
|
|
9379
|
+
React.useDebugValue(`Portal count: ${portals.length}`);
|
|
9380
|
+
const addPortal = React.useCallback((portal) => {
|
|
9377
9381
|
setPortals((existingPortals) => [...existingPortals, portal]);
|
|
9378
9382
|
let disposed = false;
|
|
9379
9383
|
return {
|
|
@@ -9411,6 +9415,8 @@ class ReactPanelContentPart {
|
|
|
9411
9415
|
this.onDidBlur = this._onDidBlur.event;
|
|
9412
9416
|
this._element = document.createElement('div');
|
|
9413
9417
|
this._element.className = 'dockview-react-part';
|
|
9418
|
+
this._element.style.height = '100%';
|
|
9419
|
+
this._element.style.width = '100%';
|
|
9414
9420
|
}
|
|
9415
9421
|
focus() {
|
|
9416
9422
|
// TODO
|
|
@@ -9447,6 +9453,8 @@ class ReactPanelHeaderPart {
|
|
|
9447
9453
|
this.reactPortalStore = reactPortalStore;
|
|
9448
9454
|
this._element = document.createElement('div');
|
|
9449
9455
|
this._element.className = 'dockview-react-part';
|
|
9456
|
+
this._element.style.height = '100%';
|
|
9457
|
+
this._element.style.width = '100%';
|
|
9450
9458
|
}
|
|
9451
9459
|
focus() {
|
|
9452
9460
|
//noop
|
|
@@ -9481,6 +9489,8 @@ class ReactWatermarkPart {
|
|
|
9481
9489
|
this.reactPortalStore = reactPortalStore;
|
|
9482
9490
|
this._element = document.createElement('div');
|
|
9483
9491
|
this._element.className = 'dockview-react-part';
|
|
9492
|
+
this._element.style.height = '100%';
|
|
9493
|
+
this._element.style.width = '100%';
|
|
9484
9494
|
}
|
|
9485
9495
|
init(parameters) {
|
|
9486
9496
|
this.part = new ReactPart(this.element, this.reactPortalStore, this.component, {
|
|
@@ -9532,6 +9542,8 @@ class ReactHeaderActionsRendererPart {
|
|
|
9532
9542
|
this.mutableDisposable = new MutableDisposable();
|
|
9533
9543
|
this._element = document.createElement('div');
|
|
9534
9544
|
this._element.className = 'dockview-react-part';
|
|
9545
|
+
this._element.style.height = '100%';
|
|
9546
|
+
this._element.style.width = '100%';
|
|
9535
9547
|
}
|
|
9536
9548
|
focus() {
|
|
9537
9549
|
// TODO
|
|
@@ -9591,12 +9603,12 @@ function createGroupControlElement(component, store) {
|
|
|
9591
9603
|
: undefined;
|
|
9592
9604
|
}
|
|
9593
9605
|
const DEFAULT_REACT_TAB = 'props.defaultTabComponent';
|
|
9594
|
-
const DockviewReact =
|
|
9595
|
-
const domRef =
|
|
9596
|
-
const dockviewRef =
|
|
9606
|
+
const DockviewReact = React.forwardRef((props, ref) => {
|
|
9607
|
+
const domRef = React.useRef(null);
|
|
9608
|
+
const dockviewRef = React.useRef();
|
|
9597
9609
|
const [portals, addPortal] = usePortalsLifecycle();
|
|
9598
|
-
|
|
9599
|
-
|
|
9610
|
+
React.useImperativeHandle(ref, () => domRef.current, []);
|
|
9611
|
+
React.useEffect(() => {
|
|
9600
9612
|
var _a;
|
|
9601
9613
|
if (!domRef.current) {
|
|
9602
9614
|
return () => {
|
|
@@ -9667,13 +9679,13 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9667
9679
|
dockview.dispose();
|
|
9668
9680
|
};
|
|
9669
9681
|
}, []);
|
|
9670
|
-
|
|
9682
|
+
React.useEffect(() => {
|
|
9671
9683
|
if (!dockviewRef.current) {
|
|
9672
9684
|
return;
|
|
9673
9685
|
}
|
|
9674
9686
|
dockviewRef.current.locked = !!props.locked;
|
|
9675
9687
|
}, [props.locked]);
|
|
9676
|
-
|
|
9688
|
+
React.useEffect(() => {
|
|
9677
9689
|
if (!dockviewRef.current) {
|
|
9678
9690
|
return;
|
|
9679
9691
|
}
|
|
@@ -9681,7 +9693,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9681
9693
|
disableDnd: props.disableDnd,
|
|
9682
9694
|
});
|
|
9683
9695
|
}, [props.disableDnd]);
|
|
9684
|
-
|
|
9696
|
+
React.useEffect(() => {
|
|
9685
9697
|
if (!dockviewRef.current) {
|
|
9686
9698
|
return () => {
|
|
9687
9699
|
// noop
|
|
@@ -9696,7 +9708,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9696
9708
|
disposable.dispose();
|
|
9697
9709
|
};
|
|
9698
9710
|
}, [props.onDidDrop]);
|
|
9699
|
-
|
|
9711
|
+
React.useEffect(() => {
|
|
9700
9712
|
if (!dockviewRef.current) {
|
|
9701
9713
|
return () => {
|
|
9702
9714
|
// noop
|
|
@@ -9711,7 +9723,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9711
9723
|
disposable.dispose();
|
|
9712
9724
|
};
|
|
9713
9725
|
}, [props.onWillDrop]);
|
|
9714
|
-
|
|
9726
|
+
React.useEffect(() => {
|
|
9715
9727
|
if (!dockviewRef.current) {
|
|
9716
9728
|
return;
|
|
9717
9729
|
}
|
|
@@ -9719,7 +9731,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9719
9731
|
frameworkComponents: props.components,
|
|
9720
9732
|
});
|
|
9721
9733
|
}, [props.components]);
|
|
9722
|
-
|
|
9734
|
+
React.useEffect(() => {
|
|
9723
9735
|
if (!dockviewRef.current) {
|
|
9724
9736
|
return;
|
|
9725
9737
|
}
|
|
@@ -9727,7 +9739,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9727
9739
|
floatingGroupBounds: props.floatingGroupBounds,
|
|
9728
9740
|
});
|
|
9729
9741
|
}, [props.floatingGroupBounds]);
|
|
9730
|
-
|
|
9742
|
+
React.useEffect(() => {
|
|
9731
9743
|
if (!dockviewRef.current) {
|
|
9732
9744
|
return;
|
|
9733
9745
|
}
|
|
@@ -9735,7 +9747,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9735
9747
|
watermarkFrameworkComponent: props.watermarkComponent,
|
|
9736
9748
|
});
|
|
9737
9749
|
}, [props.watermarkComponent]);
|
|
9738
|
-
|
|
9750
|
+
React.useEffect(() => {
|
|
9739
9751
|
if (!dockviewRef.current) {
|
|
9740
9752
|
return;
|
|
9741
9753
|
}
|
|
@@ -9743,7 +9755,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9743
9755
|
showDndOverlay: props.showDndOverlay,
|
|
9744
9756
|
});
|
|
9745
9757
|
}, [props.showDndOverlay]);
|
|
9746
|
-
|
|
9758
|
+
React.useEffect(() => {
|
|
9747
9759
|
if (!dockviewRef.current) {
|
|
9748
9760
|
return;
|
|
9749
9761
|
}
|
|
@@ -9751,7 +9763,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9751
9763
|
frameworkTabComponents: props.tabComponents,
|
|
9752
9764
|
});
|
|
9753
9765
|
}, [props.tabComponents]);
|
|
9754
|
-
|
|
9766
|
+
React.useEffect(() => {
|
|
9755
9767
|
if (!dockviewRef.current) {
|
|
9756
9768
|
return;
|
|
9757
9769
|
}
|
|
@@ -9759,7 +9771,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9759
9771
|
disableFloatingGroups: props.disableFloatingGroups,
|
|
9760
9772
|
});
|
|
9761
9773
|
}, [props.disableFloatingGroups]);
|
|
9762
|
-
|
|
9774
|
+
React.useEffect(() => {
|
|
9763
9775
|
var _a;
|
|
9764
9776
|
if (!dockviewRef.current) {
|
|
9765
9777
|
return;
|
|
@@ -9776,7 +9788,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9776
9788
|
frameworkTabComponents,
|
|
9777
9789
|
});
|
|
9778
9790
|
}, [props.defaultTabComponent]);
|
|
9779
|
-
|
|
9791
|
+
React.useEffect(() => {
|
|
9780
9792
|
if (!dockviewRef.current) {
|
|
9781
9793
|
return;
|
|
9782
9794
|
}
|
|
@@ -9784,7 +9796,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9784
9796
|
createRightHeaderActionsElement: createGroupControlElement(props.rightHeaderActionsComponent, { addPortal }),
|
|
9785
9797
|
});
|
|
9786
9798
|
}, [props.rightHeaderActionsComponent]);
|
|
9787
|
-
|
|
9799
|
+
React.useEffect(() => {
|
|
9788
9800
|
if (!dockviewRef.current) {
|
|
9789
9801
|
return;
|
|
9790
9802
|
}
|
|
@@ -9792,7 +9804,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9792
9804
|
createLeftHeaderActionsElement: createGroupControlElement(props.leftHeaderActionsComponent, { addPortal }),
|
|
9793
9805
|
});
|
|
9794
9806
|
}, [props.leftHeaderActionsComponent]);
|
|
9795
|
-
|
|
9807
|
+
React.useEffect(() => {
|
|
9796
9808
|
if (!dockviewRef.current) {
|
|
9797
9809
|
return;
|
|
9798
9810
|
}
|
|
@@ -9800,7 +9812,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9800
9812
|
rootOverlayModel: props.rootOverlayModel,
|
|
9801
9813
|
});
|
|
9802
9814
|
}, [props.rootOverlayModel]);
|
|
9803
|
-
|
|
9815
|
+
React.useEffect(() => {
|
|
9804
9816
|
if (!dockviewRef.current) {
|
|
9805
9817
|
return;
|
|
9806
9818
|
}
|
|
@@ -9808,7 +9820,7 @@ const DockviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9808
9820
|
createPrefixHeaderActionsElement: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }),
|
|
9809
9821
|
});
|
|
9810
9822
|
}, [props.prefixHeaderActionsComponent]);
|
|
9811
|
-
return (
|
|
9823
|
+
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
9812
9824
|
});
|
|
9813
9825
|
DockviewReact.displayName = 'DockviewComponent';
|
|
9814
9826
|
|
|
@@ -9846,12 +9858,12 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
9846
9858
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
9847
9859
|
};
|
|
9848
9860
|
|
|
9849
|
-
const CloseButton = () => (
|
|
9850
|
-
|
|
9861
|
+
const CloseButton = () => (React.createElement("svg", { height: "11", width: "11", viewBox: "0 0 28 28", "aria-hidden": 'false', focusable: false, className: "dockview-svg" },
|
|
9862
|
+
React.createElement("path", { d: "M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z" })));
|
|
9851
9863
|
|
|
9852
9864
|
const DockviewDefaultTab = (_a) => {
|
|
9853
9865
|
var { api, containerApi: _containerApi, params: _params, hideClose, closeActionOverride } = _a, rest = __rest(_a, ["api", "containerApi", "params", "hideClose", "closeActionOverride"]);
|
|
9854
|
-
const onClose =
|
|
9866
|
+
const onClose = React.useCallback((event) => {
|
|
9855
9867
|
event.preventDefault();
|
|
9856
9868
|
if (closeActionOverride) {
|
|
9857
9869
|
closeActionOverride();
|
|
@@ -9860,10 +9872,10 @@ const DockviewDefaultTab = (_a) => {
|
|
|
9860
9872
|
api.close();
|
|
9861
9873
|
}
|
|
9862
9874
|
}, [api, closeActionOverride]);
|
|
9863
|
-
const onMouseDown =
|
|
9875
|
+
const onMouseDown = React.useCallback((e) => {
|
|
9864
9876
|
e.preventDefault();
|
|
9865
9877
|
}, []);
|
|
9866
|
-
const onClick =
|
|
9878
|
+
const onClick = React.useCallback((event) => {
|
|
9867
9879
|
if (event.defaultPrevented) {
|
|
9868
9880
|
return;
|
|
9869
9881
|
}
|
|
@@ -9872,10 +9884,10 @@ const DockviewDefaultTab = (_a) => {
|
|
|
9872
9884
|
rest.onClick(event);
|
|
9873
9885
|
}
|
|
9874
9886
|
}, [api, rest.onClick]);
|
|
9875
|
-
return (
|
|
9876
|
-
|
|
9877
|
-
!hideClose && (
|
|
9878
|
-
|
|
9887
|
+
return (React.createElement("div", Object.assign({ "data-testid": "dockview-dv-default-tab" }, rest, { onClick: onClick, className: "dv-default-tab" }),
|
|
9888
|
+
React.createElement("span", { className: "dv-default-tab-content" }, api.title),
|
|
9889
|
+
!hideClose && (React.createElement("div", { className: "dv-default-tab-action", onMouseDown: onMouseDown, onClick: onClose },
|
|
9890
|
+
React.createElement(CloseButton, null)))));
|
|
9879
9891
|
};
|
|
9880
9892
|
|
|
9881
9893
|
class ReactPanelView extends SplitviewPanel {
|
|
@@ -9894,12 +9906,12 @@ class ReactPanelView extends SplitviewPanel {
|
|
|
9894
9906
|
}
|
|
9895
9907
|
}
|
|
9896
9908
|
|
|
9897
|
-
const SplitviewReact =
|
|
9898
|
-
const domRef =
|
|
9899
|
-
const splitviewRef =
|
|
9909
|
+
const SplitviewReact = React.forwardRef((props, ref) => {
|
|
9910
|
+
const domRef = React.useRef(null);
|
|
9911
|
+
const splitviewRef = React.useRef();
|
|
9900
9912
|
const [portals, addPortal] = usePortalsLifecycle();
|
|
9901
|
-
|
|
9902
|
-
|
|
9913
|
+
React.useImperativeHandle(ref, () => domRef.current, []);
|
|
9914
|
+
React.useEffect(() => {
|
|
9903
9915
|
var _a;
|
|
9904
9916
|
const splitview = new SplitviewComponent({
|
|
9905
9917
|
parentElement: domRef.current,
|
|
@@ -9930,7 +9942,7 @@ const SplitviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9930
9942
|
splitview.dispose();
|
|
9931
9943
|
};
|
|
9932
9944
|
}, []);
|
|
9933
|
-
|
|
9945
|
+
React.useEffect(() => {
|
|
9934
9946
|
if (!splitviewRef.current) {
|
|
9935
9947
|
return;
|
|
9936
9948
|
}
|
|
@@ -9938,7 +9950,7 @@ const SplitviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
9938
9950
|
frameworkComponents: props.components,
|
|
9939
9951
|
});
|
|
9940
9952
|
}, [props.components]);
|
|
9941
|
-
return (
|
|
9953
|
+
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
9942
9954
|
});
|
|
9943
9955
|
SplitviewReact.displayName = 'SplitviewComponent';
|
|
9944
9956
|
|
|
@@ -9960,12 +9972,12 @@ class ReactGridPanelView extends GridviewPanel {
|
|
|
9960
9972
|
}
|
|
9961
9973
|
}
|
|
9962
9974
|
|
|
9963
|
-
const GridviewReact =
|
|
9964
|
-
const domRef =
|
|
9965
|
-
const gridviewRef =
|
|
9975
|
+
const GridviewReact = React.forwardRef((props, ref) => {
|
|
9976
|
+
const domRef = React.useRef(null);
|
|
9977
|
+
const gridviewRef = React.useRef();
|
|
9966
9978
|
const [portals, addPortal] = usePortalsLifecycle();
|
|
9967
|
-
|
|
9968
|
-
|
|
9979
|
+
React.useImperativeHandle(ref, () => domRef.current, []);
|
|
9980
|
+
React.useEffect(() => {
|
|
9969
9981
|
var _a;
|
|
9970
9982
|
if (!domRef.current) {
|
|
9971
9983
|
return () => {
|
|
@@ -10001,7 +10013,7 @@ const GridviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10001
10013
|
gridview.dispose();
|
|
10002
10014
|
};
|
|
10003
10015
|
}, []);
|
|
10004
|
-
|
|
10016
|
+
React.useEffect(() => {
|
|
10005
10017
|
if (!gridviewRef.current) {
|
|
10006
10018
|
return;
|
|
10007
10019
|
}
|
|
@@ -10009,7 +10021,7 @@ const GridviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10009
10021
|
frameworkComponents: props.components,
|
|
10010
10022
|
});
|
|
10011
10023
|
}, [props.components]);
|
|
10012
|
-
return (
|
|
10024
|
+
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10013
10025
|
});
|
|
10014
10026
|
GridviewReact.displayName = 'GridviewComponent';
|
|
10015
10027
|
|
|
@@ -10048,12 +10060,12 @@ class PanePanelSection {
|
|
|
10048
10060
|
}
|
|
10049
10061
|
}
|
|
10050
10062
|
|
|
10051
|
-
const PaneviewReact =
|
|
10052
|
-
const domRef =
|
|
10053
|
-
const paneviewRef =
|
|
10063
|
+
const PaneviewReact = React.forwardRef((props, ref) => {
|
|
10064
|
+
const domRef = React.useRef(null);
|
|
10065
|
+
const paneviewRef = React.useRef();
|
|
10054
10066
|
const [portals, addPortal] = usePortalsLifecycle();
|
|
10055
|
-
|
|
10056
|
-
|
|
10067
|
+
React.useImperativeHandle(ref, () => domRef.current, []);
|
|
10068
|
+
React.useEffect(() => {
|
|
10057
10069
|
const createComponent = (id, _componentId, component) => new PanePanelSection(id, component, {
|
|
10058
10070
|
addPortal,
|
|
10059
10071
|
});
|
|
@@ -10086,7 +10098,7 @@ const PaneviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10086
10098
|
paneview.dispose();
|
|
10087
10099
|
};
|
|
10088
10100
|
}, []);
|
|
10089
|
-
|
|
10101
|
+
React.useEffect(() => {
|
|
10090
10102
|
if (!paneviewRef.current) {
|
|
10091
10103
|
return;
|
|
10092
10104
|
}
|
|
@@ -10094,7 +10106,7 @@ const PaneviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10094
10106
|
frameworkComponents: props.components,
|
|
10095
10107
|
});
|
|
10096
10108
|
}, [props.components]);
|
|
10097
|
-
|
|
10109
|
+
React.useEffect(() => {
|
|
10098
10110
|
if (!paneviewRef.current) {
|
|
10099
10111
|
return;
|
|
10100
10112
|
}
|
|
@@ -10102,7 +10114,7 @@ const PaneviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10102
10114
|
headerframeworkComponents: props.headerComponents,
|
|
10103
10115
|
});
|
|
10104
10116
|
}, [props.headerComponents]);
|
|
10105
|
-
|
|
10117
|
+
React.useEffect(() => {
|
|
10106
10118
|
if (!paneviewRef.current) {
|
|
10107
10119
|
return () => {
|
|
10108
10120
|
//
|
|
@@ -10118,7 +10130,7 @@ const PaneviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10118
10130
|
disposable.dispose();
|
|
10119
10131
|
};
|
|
10120
10132
|
}, [props.onDidDrop]);
|
|
10121
|
-
|
|
10133
|
+
React.useEffect(() => {
|
|
10122
10134
|
if (!paneviewRef.current) {
|
|
10123
10135
|
return;
|
|
10124
10136
|
}
|
|
@@ -10126,7 +10138,7 @@ const PaneviewReact = React__namespace.forwardRef((props, ref) => {
|
|
|
10126
10138
|
showDndOverlay: props.showDndOverlay,
|
|
10127
10139
|
});
|
|
10128
10140
|
}, [props.showDndOverlay]);
|
|
10129
|
-
return (
|
|
10141
|
+
return (React.createElement("div", { className: props.className, style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10130
10142
|
});
|
|
10131
10143
|
PaneviewReact.displayName = 'PaneviewComponent';
|
|
10132
10144
|
|