dockview-core 8.4.1 → 8.5.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/dockview-core.js +17 -17
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.noStyle.js +17 -17
- package/dist/package/main.cjs.js +17 -17
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +17 -17
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 8.
|
|
3
|
+
* @version 8.5.0
|
|
4
4
|
* @link https://github.com/dockview/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -6069,24 +6069,25 @@ var ContentContainer = class extends CompositeDisposable {
|
|
|
6069
6069
|
else this._element.removeAttribute("aria-labelledby");
|
|
6070
6070
|
}
|
|
6071
6071
|
renderPanel(panel, options) {
|
|
6072
|
-
var _options$asActive
|
|
6073
|
-
const doRender = ((_options$asActive = options === null || options === void 0 ? void 0 : options.asActive) !== null && _options$asActive !== void 0 ? _options$asActive : true) || this.
|
|
6074
|
-
if (
|
|
6075
|
-
var _this$panel
|
|
6076
|
-
this.panel.view.content.element.
|
|
6077
|
-
|
|
6072
|
+
var _options$asActive;
|
|
6073
|
+
const doRender = ((_options$asActive = options === null || options === void 0 ? void 0 : options.asActive) !== null && _options$asActive !== void 0 ? _options$asActive : true) || this.group.isPanelActive(panel);
|
|
6074
|
+
if (doRender || this.panel === panel) {
|
|
6075
|
+
var _this$panel;
|
|
6076
|
+
if (((_this$panel = this.panel) === null || _this$panel === void 0 ? void 0 : _this$panel.view.content.element.parentElement) === this._element) {
|
|
6077
|
+
var _this$panel$view$cont, _this$panel$view$cont2;
|
|
6078
|
+
this.panel.view.content.element.remove();
|
|
6079
|
+
(_this$panel$view$cont = (_this$panel$view$cont2 = this.panel.view.content).onHide) === null || _this$panel$view$cont === void 0 || _this$panel$view$cont.call(_this$panel$view$cont2);
|
|
6080
|
+
}
|
|
6081
|
+
this.panel = panel;
|
|
6078
6082
|
}
|
|
6079
|
-
this.panel = panel;
|
|
6080
6083
|
let container;
|
|
6081
6084
|
switch (panel.api.renderer) {
|
|
6082
6085
|
case "onlyWhenVisible":
|
|
6083
6086
|
this.group.renderContainer.detatch(panel);
|
|
6084
|
-
if (
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
(_this$panel$view$cont3 = (_this$panel$view$cont4 = this.panel.view.content).onShow) === null || _this$panel$view$cont3 === void 0 || _this$panel$view$cont3.call(_this$panel$view$cont4);
|
|
6089
|
-
}
|
|
6087
|
+
if (doRender) {
|
|
6088
|
+
var _panel$view$content$o, _panel$view$content;
|
|
6089
|
+
this._element.appendChild(panel.view.content.element);
|
|
6090
|
+
(_panel$view$content$o = (_panel$view$content = panel.view.content).onShow) === null || _panel$view$content$o === void 0 || _panel$view$content$o.call(_panel$view$content);
|
|
6090
6091
|
}
|
|
6091
6092
|
container = this._element;
|
|
6092
6093
|
break;
|
|
@@ -6115,9 +6116,9 @@ var ContentContainer = class extends CompositeDisposable {
|
|
|
6115
6116
|
closePanel() {
|
|
6116
6117
|
if (this.panel) {
|
|
6117
6118
|
if (this.panel.api.renderer === "onlyWhenVisible") {
|
|
6118
|
-
var _this$panel$view$
|
|
6119
|
+
var _this$panel$view$cont3, _this$panel$view$cont4;
|
|
6119
6120
|
this.panel.view.content.element.remove();
|
|
6120
|
-
(_this$panel$view$
|
|
6121
|
+
(_this$panel$view$cont3 = (_this$panel$view$cont4 = this.panel.view.content).onHide) === null || _this$panel$view$cont3 === void 0 || _this$panel$view$cont3.call(_this$panel$view$cont4);
|
|
6121
6122
|
}
|
|
6122
6123
|
}
|
|
6123
6124
|
this.panel = void 0;
|
|
@@ -11150,7 +11151,6 @@ var DockviewGroupPanelModel = class extends CompositeDisposable {
|
|
|
11150
11151
|
this.rerender(panel);
|
|
11151
11152
|
});
|
|
11152
11153
|
if (this._activePanel) {
|
|
11153
|
-
this.contentContainer.renderPanel(this._activePanel, { asActive: true });
|
|
11154
11154
|
const { width, height } = this.contentDimensions();
|
|
11155
11155
|
this._activePanel.layout(width, height);
|
|
11156
11156
|
}
|