dockview-react 3.0.1 → 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 +38 -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 +38 -18
- package/dist/dockview-react.amd.noStyle.js.map +1 -1
- package/dist/dockview-react.cjs.js +38 -18
- package/dist/dockview-react.cjs.js.map +1 -1
- package/dist/dockview-react.esm.js +38 -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 +38 -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 +38 -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
|
*/
|
|
@@ -880,7 +880,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
880
880
|
this._margin = value;
|
|
881
881
|
}
|
|
882
882
|
constructor(container, options) {
|
|
883
|
-
var _a;
|
|
883
|
+
var _a, _b;
|
|
884
884
|
this.container = container;
|
|
885
885
|
this.viewItems = [];
|
|
886
886
|
this.sashes = [];
|
|
@@ -978,9 +978,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
978
978
|
//
|
|
979
979
|
return delta;
|
|
980
980
|
};
|
|
981
|
-
this._orientation = options.orientation;
|
|
981
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : exports.Orientation.VERTICAL;
|
|
982
982
|
this.element = this.createContainer();
|
|
983
|
-
this.margin = (
|
|
983
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
984
984
|
this.proportionalLayout =
|
|
985
985
|
options.proportionalLayout === undefined
|
|
986
986
|
? true
|
|
@@ -2799,9 +2799,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2799
2799
|
set locked(value) {
|
|
2800
2800
|
this.gridview.locked = value;
|
|
2801
2801
|
}
|
|
2802
|
-
constructor(
|
|
2802
|
+
constructor(container, options) {
|
|
2803
2803
|
var _a;
|
|
2804
|
-
super(
|
|
2804
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
2805
2805
|
this._id = nextLayoutId$1.next();
|
|
2806
2806
|
this._groups = new Map();
|
|
2807
2807
|
this._onDidRemove = new Emitter();
|
|
@@ -2820,6 +2820,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2820
2820
|
this.element.style.width = '100%';
|
|
2821
2821
|
this._classNames = new Classnames(this.element);
|
|
2822
2822
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2823
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2824
|
+
container.appendChild(this.element);
|
|
2823
2825
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2824
2826
|
this.gridview.locked = !!options.locked;
|
|
2825
2827
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7516,9 +7518,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
7516
7518
|
get floatingGroups() {
|
|
7517
7519
|
return this._floatingGroups;
|
|
7518
7520
|
}
|
|
7519
|
-
constructor(
|
|
7521
|
+
constructor(container, options) {
|
|
7520
7522
|
var _a;
|
|
7521
|
-
super(
|
|
7523
|
+
super(container, {
|
|
7522
7524
|
proportionalLayout: true,
|
|
7523
7525
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7524
7526
|
styles: options.hideBorders
|
|
@@ -7874,6 +7876,16 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
7874
7876
|
group.model.renderContainer =
|
|
7875
7877
|
this.overlayRenderContainer;
|
|
7876
7878
|
returnedGroup = group;
|
|
7879
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7880
|
+
if (alreadyRemoved) {
|
|
7881
|
+
/**
|
|
7882
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7883
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7884
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7885
|
+
* the `this._popoutGroups` list.
|
|
7886
|
+
*/
|
|
7887
|
+
return;
|
|
7888
|
+
}
|
|
7877
7889
|
if (floatingBox) {
|
|
7878
7890
|
this.addFloatingGroup(group, {
|
|
7879
7891
|
height: floatingBox.height,
|
|
@@ -9050,9 +9062,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9050
9062
|
set deserializer(value) {
|
|
9051
9063
|
this._deserializer = value;
|
|
9052
9064
|
}
|
|
9053
|
-
constructor(
|
|
9065
|
+
constructor(container, options) {
|
|
9054
9066
|
var _a;
|
|
9055
|
-
super(
|
|
9067
|
+
super(container, {
|
|
9056
9068
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9057
9069
|
orientation: options.orientation,
|
|
9058
9070
|
styles: options.hideBorders
|
|
@@ -9341,9 +9353,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9341
9353
|
? this.splitview.size
|
|
9342
9354
|
: this.splitview.orthogonalSize;
|
|
9343
9355
|
}
|
|
9344
|
-
constructor(
|
|
9356
|
+
constructor(container, options) {
|
|
9345
9357
|
var _a;
|
|
9346
|
-
super(
|
|
9358
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9347
9359
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9348
9360
|
this._panels = new Map();
|
|
9349
9361
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9354,8 +9366,12 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9354
9366
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9355
9367
|
this._onDidLayoutChange = new Emitter();
|
|
9356
9368
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9369
|
+
this.element.style.height = '100%';
|
|
9370
|
+
this.element.style.width = '100%';
|
|
9357
9371
|
this._classNames = new Classnames(this.element);
|
|
9358
9372
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9373
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9374
|
+
container.appendChild(this.element);
|
|
9359
9375
|
this._options = options;
|
|
9360
9376
|
this.splitview = new Splitview(this.element, options);
|
|
9361
9377
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9665,9 +9681,9 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9665
9681
|
get options() {
|
|
9666
9682
|
return this._options;
|
|
9667
9683
|
}
|
|
9668
|
-
constructor(
|
|
9684
|
+
constructor(container, options) {
|
|
9669
9685
|
var _a;
|
|
9670
|
-
super(
|
|
9686
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9671
9687
|
this._id = nextLayoutId.next();
|
|
9672
9688
|
this._disposable = new MutableDisposable();
|
|
9673
9689
|
this._viewDisposables = new Map();
|
|
@@ -9683,9 +9699,13 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
9683
9699
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9684
9700
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9685
9701
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9702
|
+
this.element.style.height = '100%';
|
|
9703
|
+
this.element.style.width = '100%';
|
|
9686
9704
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9687
9705
|
this._classNames = new Classnames(this.element);
|
|
9688
9706
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9707
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9708
|
+
container.appendChild(this.element);
|
|
9689
9709
|
this._options = options;
|
|
9690
9710
|
this.paneview = new Paneview(this.element, {
|
|
9691
9711
|
// only allow paneview in the vertical orientation for now
|
|
@@ -10505,7 +10525,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10505
10525
|
createPrefixHeaderActionComponent: createGroupControlElement(props.prefixHeaderActionsComponent, { addPortal }),
|
|
10506
10526
|
});
|
|
10507
10527
|
}, [props.prefixHeaderActionsComponent]);
|
|
10508
|
-
return (React.createElement("div", {
|
|
10528
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10509
10529
|
});
|
|
10510
10530
|
DockviewReact.displayName = 'DockviewComponent';
|
|
10511
10531
|
|
|
@@ -10642,7 +10662,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10642
10662
|
},
|
|
10643
10663
|
});
|
|
10644
10664
|
}, [props.components]);
|
|
10645
|
-
return (React.createElement("div", {
|
|
10665
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10646
10666
|
});
|
|
10647
10667
|
SplitviewReact.displayName = 'SplitviewComponent';
|
|
10648
10668
|
|
|
@@ -10725,7 +10745,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10725
10745
|
},
|
|
10726
10746
|
});
|
|
10727
10747
|
}, [props.components]);
|
|
10728
|
-
return (React.createElement("div", {
|
|
10748
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10729
10749
|
});
|
|
10730
10750
|
GridviewReact.displayName = 'GridviewComponent';
|
|
10731
10751
|
|
|
@@ -10857,7 +10877,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
10857
10877
|
disposable.dispose();
|
|
10858
10878
|
};
|
|
10859
10879
|
}, [props.onDidDrop]);
|
|
10860
|
-
return (React.createElement("div", {
|
|
10880
|
+
return (React.createElement("div", { style: { height: '100%', width: '100%' }, ref: domRef }, portals));
|
|
10861
10881
|
});
|
|
10862
10882
|
PaneviewReact.displayName = 'PaneviewComponent';
|
|
10863
10883
|
|