dockview-react 3.0.0 → 3.0.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-react.amd.js +37 -18
- package/dist/dockview-react.amd.js.map +1 -1
- package/dist/dockview-react.amd.min.js +2 -2
- package/dist/dockview-react.amd.min.js.map +1 -1
- package/dist/dockview-react.amd.min.noStyle.js +2 -2
- package/dist/dockview-react.amd.min.noStyle.js.map +1 -1
- package/dist/dockview-react.amd.noStyle.js +37 -18
- package/dist/dockview-react.amd.noStyle.js.map +1 -1
- package/dist/dockview-react.cjs.js +37 -18
- package/dist/dockview-react.cjs.js.map +1 -1
- package/dist/dockview-react.esm.js +37 -18
- package/dist/dockview-react.esm.js.map +1 -1
- package/dist/dockview-react.esm.min.js +2 -2
- package/dist/dockview-react.esm.min.js.map +1 -1
- package/dist/dockview-react.js +37 -18
- package/dist/dockview-react.js.map +1 -1
- package/dist/dockview-react.min.js +2 -2
- package/dist/dockview-react.min.js.map +1 -1
- package/dist/dockview-react.min.noStyle.js +2 -2
- package/dist/dockview-react.min.noStyle.js.map +1 -1
- package/dist/dockview-react.noStyle.js +37 -18
- package/dist/dockview-react.noStyle.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-react
|
|
3
|
-
* @version 3.0.
|
|
3
|
+
* @version 3.0.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -850,7 +850,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
850
850
|
this._margin = value;
|
|
851
851
|
}
|
|
852
852
|
constructor(container, options) {
|
|
853
|
-
var _a;
|
|
853
|
+
var _a, _b;
|
|
854
854
|
this.container = container;
|
|
855
855
|
this.viewItems = [];
|
|
856
856
|
this.sashes = [];
|
|
@@ -948,9 +948,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
948
948
|
//
|
|
949
949
|
return delta;
|
|
950
950
|
};
|
|
951
|
-
this._orientation = options.orientation;
|
|
951
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : exports.Orientation.VERTICAL;
|
|
952
952
|
this.element = this.createContainer();
|
|
953
|
-
this.margin = (
|
|
953
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
954
954
|
this.proportionalLayout =
|
|
955
955
|
options.proportionalLayout === undefined
|
|
956
956
|
? true
|
|
@@ -2769,7 +2769,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2769
2769
|
set locked(value) {
|
|
2770
2770
|
this.gridview.locked = value;
|
|
2771
2771
|
}
|
|
2772
|
-
constructor(
|
|
2772
|
+
constructor(container, options) {
|
|
2773
2773
|
var _a;
|
|
2774
2774
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2775
2775
|
this._id = nextLayoutId$1.next();
|
|
@@ -2790,7 +2790,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2790
2790
|
this.element.style.width = '100%';
|
|
2791
2791
|
this._classNames = new Classnames(this.element);
|
|
2792
2792
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2793
|
-
|
|
2793
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2794
|
+
container.appendChild(this.element);
|
|
2794
2795
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2795
2796
|
this.gridview.locked = !!options.locked;
|
|
2796
2797
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7487,9 +7488,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
7487
7488
|
get floatingGroups() {
|
|
7488
7489
|
return this._floatingGroups;
|
|
7489
7490
|
}
|
|
7490
|
-
constructor(
|
|
7491
|
+
constructor(container, options) {
|
|
7491
7492
|
var _a;
|
|
7492
|
-
super(
|
|
7493
|
+
super(container, {
|
|
7493
7494
|
proportionalLayout: true,
|
|
7494
7495
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7495
7496
|
styles: options.hideBorders
|
|
@@ -7845,6 +7846,16 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
7845
7846
|
group.model.renderContainer =
|
|
7846
7847
|
this.overlayRenderContainer;
|
|
7847
7848
|
returnedGroup = group;
|
|
7849
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7850
|
+
if (alreadyRemoved) {
|
|
7851
|
+
/**
|
|
7852
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7853
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7854
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7855
|
+
* the `this._popoutGroups` list.
|
|
7856
|
+
*/
|
|
7857
|
+
return;
|
|
7858
|
+
}
|
|
7848
7859
|
if (floatingBox) {
|
|
7849
7860
|
this.addFloatingGroup(group, {
|
|
7850
7861
|
height: floatingBox.height,
|
|
@@ -9021,9 +9032,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9021
9032
|
set deserializer(value) {
|
|
9022
9033
|
this._deserializer = value;
|
|
9023
9034
|
}
|
|
9024
|
-
constructor(
|
|
9035
|
+
constructor(container, options) {
|
|
9025
9036
|
var _a;
|
|
9026
|
-
super(
|
|
9037
|
+
super(container, {
|
|
9027
9038
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9028
9039
|
orientation: options.orientation,
|
|
9029
9040
|
styles: options.hideBorders
|
|
@@ -9312,9 +9323,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9312
9323
|
? this.splitview.size
|
|
9313
9324
|
: this.splitview.orthogonalSize;
|
|
9314
9325
|
}
|
|
9315
|
-
constructor(
|
|
9326
|
+
constructor(container, options) {
|
|
9316
9327
|
var _a;
|
|
9317
|
-
super(
|
|
9328
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9318
9329
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9319
9330
|
this._panels = new Map();
|
|
9320
9331
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9325,8 +9336,12 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9325
9336
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9326
9337
|
this._onDidLayoutChange = new Emitter();
|
|
9327
9338
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9339
|
+
this.element.style.height = '100%';
|
|
9340
|
+
this.element.style.width = '100%';
|
|
9328
9341
|
this._classNames = new Classnames(this.element);
|
|
9329
9342
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9343
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9344
|
+
container.appendChild(this.element);
|
|
9330
9345
|
this._options = options;
|
|
9331
9346
|
this.splitview = new Splitview(this.element, options);
|
|
9332
9347
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9636,9 +9651,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9636
9651
|
get options() {
|
|
9637
9652
|
return this._options;
|
|
9638
9653
|
}
|
|
9639
|
-
constructor(
|
|
9654
|
+
constructor(container, options) {
|
|
9640
9655
|
var _a;
|
|
9641
|
-
super(
|
|
9656
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9642
9657
|
this._id = nextLayoutId.next();
|
|
9643
9658
|
this._disposable = new MutableDisposable();
|
|
9644
9659
|
this._viewDisposables = new Map();
|
|
@@ -9654,9 +9669,13 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9654
9669
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9655
9670
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9656
9671
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9672
|
+
this.element.style.height = '100%';
|
|
9673
|
+
this.element.style.width = '100%';
|
|
9657
9674
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9658
9675
|
this._classNames = new Classnames(this.element);
|
|
9659
9676
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9677
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9678
|
+
container.appendChild(this.element);
|
|
9660
9679
|
this._options = options;
|
|
9661
9680
|
this.paneview = new Paneview(this.element, {
|
|
9662
9681
|
// only allow paneview in the vertical orientation for now
|
|
@@ -10476,7 +10495,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10476
10495
|
createPrefixHeaderActionComponent: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }),
|
|
10477
10496
|
});
|
|
10478
10497
|
}, [props.prefixHeaderActionsComponent]);
|
|
10479
|
-
return (React.createElement("div", {
|
|
10498
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10480
10499
|
});
|
|
10481
10500
|
DockviewReact.displayName = 'DockviewComponent';
|
|
10482
10501
|
|
|
@@ -10613,7 +10632,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10613
10632
|
},
|
|
10614
10633
|
});
|
|
10615
10634
|
}, [props.components]);
|
|
10616
|
-
return (React.createElement("div", {
|
|
10635
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10617
10636
|
});
|
|
10618
10637
|
SplitviewReact.displayName = 'SplitviewComponent';
|
|
10619
10638
|
|
|
@@ -10696,7 +10715,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10696
10715
|
},
|
|
10697
10716
|
});
|
|
10698
10717
|
}, [props.components]);
|
|
10699
|
-
return (React.createElement("div", {
|
|
10718
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10700
10719
|
});
|
|
10701
10720
|
GridviewReact.displayName = 'GridviewComponent';
|
|
10702
10721
|
|
|
@@ -10828,7 +10847,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10828
10847
|
disposable.dispose();
|
|
10829
10848
|
};
|
|
10830
10849
|
}, [props.onDidDrop]);
|
|
10831
|
-
return (React.createElement("div", {
|
|
10850
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10832
10851
|
});
|
|
10833
10852
|
PaneviewReact.displayName = 'PaneviewComponent';
|
|
10834
10853
|
|