dockview 1.7.1 → 1.7.2
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.amd.js +13 -16
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.noStyle.js +13 -16
- package/dist/dockview.cjs.js +13 -16
- package/dist/dockview.esm.js +13 -16
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.js +13 -16
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.noStyle.js +13 -16
- package/package.json +3 -3
package/dist/dockview.amd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.7.
|
|
3
|
+
* @version 1.7.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -4833,7 +4833,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4833
4833
|
return this._tab;
|
|
4834
4834
|
}
|
|
4835
4835
|
constructor(accessor, id, contentComponent, tabComponent) {
|
|
4836
|
-
var _a;
|
|
4837
4836
|
this.accessor = accessor;
|
|
4838
4837
|
this.id = id;
|
|
4839
4838
|
this.contentComponent = contentComponent;
|
|
@@ -4841,8 +4840,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4841
4840
|
this._group = null;
|
|
4842
4841
|
this._isPanelVisible = null;
|
|
4843
4842
|
this._content = this.createContentComponent(this.id, contentComponent);
|
|
4844
|
-
this._tab =
|
|
4845
|
-
(_a = this.createTabComponent(this.id, tabComponent)) !== null && _a !== void 0 ? _a : new DefaultTab();
|
|
4843
|
+
this._tab = this.createTabComponent(this.id, tabComponent);
|
|
4846
4844
|
}
|
|
4847
4845
|
init(params) {
|
|
4848
4846
|
this.content.init(Object.assign(Object.assign({}, params), { tab: this.tab }));
|
|
@@ -4887,8 +4885,16 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4887
4885
|
return createComponent(id, componentName, this.accessor.options.components || {}, this.accessor.options.frameworkComponents, (_a = this.accessor.options.frameworkComponentFactory) === null || _a === void 0 ? void 0 : _a.content);
|
|
4888
4886
|
}
|
|
4889
4887
|
createTabComponent(id, componentName) {
|
|
4890
|
-
var _a;
|
|
4891
|
-
|
|
4888
|
+
var _a, _b;
|
|
4889
|
+
if (componentName) {
|
|
4890
|
+
return createComponent(id, componentName, this.accessor.options.tabComponents, this.accessor.options.frameworkTabComponents, (_a = this.accessor.options.frameworkComponentFactory) === null || _a === void 0 ? void 0 : _a.tab, () => new DefaultTab());
|
|
4891
|
+
}
|
|
4892
|
+
else if (this.accessor.options.defaultTabComponent) {
|
|
4893
|
+
return createComponent(id, this.accessor.options.defaultTabComponent, this.accessor.options.tabComponents, this.accessor.options.frameworkTabComponents, (_b = this.accessor.options.frameworkComponentFactory) === null || _b === void 0 ? void 0 : _b.tab, () => new DefaultTab());
|
|
4894
|
+
}
|
|
4895
|
+
else {
|
|
4896
|
+
return new DefaultTab();
|
|
4897
|
+
}
|
|
4892
4898
|
}
|
|
4893
4899
|
}
|
|
4894
4900
|
|
|
@@ -4897,7 +4903,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4897
4903
|
this.layout = layout;
|
|
4898
4904
|
}
|
|
4899
4905
|
fromJSON(panelData, group) {
|
|
4900
|
-
var _a
|
|
4906
|
+
var _a;
|
|
4901
4907
|
const panelId = panelData.id;
|
|
4902
4908
|
const params = panelData.params;
|
|
4903
4909
|
const title = panelData.title;
|
|
@@ -4908,15 +4914,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4908
4914
|
const tabComponent = viewData
|
|
4909
4915
|
? (_a = viewData.tab) === null || _a === void 0 ? void 0 : _a.id
|
|
4910
4916
|
: panelData.tabComponent;
|
|
4911
|
-
if (tabComponent) {
|
|
4912
|
-
createComponent(panelId, tabComponent, this.layout.options.tabComponents, this.layout.options.frameworkTabComponents, (_b = this.layout.options.frameworkComponentFactory) === null || _b === void 0 ? void 0 : _b.tab, () => new DefaultTab());
|
|
4913
|
-
}
|
|
4914
|
-
else if (this.layout.options.defaultTabComponent) {
|
|
4915
|
-
createComponent(panelId, this.layout.options.defaultTabComponent, this.layout.options.tabComponents, this.layout.options.frameworkTabComponents, (_c = this.layout.options.frameworkComponentFactory) === null || _c === void 0 ? void 0 : _c.tab, () => new DefaultTab());
|
|
4916
|
-
}
|
|
4917
|
-
else {
|
|
4918
|
-
new DefaultTab();
|
|
4919
|
-
}
|
|
4920
4917
|
const view = new DockviewPanelModel(this.layout, panelId, contentComponent, tabComponent);
|
|
4921
4918
|
const panel = new DockviewPanel(panelId, this.layout, new DockviewApi(this.layout), group, view);
|
|
4922
4919
|
panel.init({
|