dockview-core 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/cjs/dockview/dockviewComponent.d.ts +1 -1
- package/dist/cjs/dockview/dockviewComponent.js +12 -2
- package/dist/cjs/gridview/baseComponentGridview.d.ts +1 -1
- package/dist/cjs/gridview/baseComponentGridview.js +3 -2
- package/dist/cjs/gridview/gridviewComponent.d.ts +1 -1
- package/dist/cjs/gridview/gridviewComponent.js +2 -2
- package/dist/cjs/paneview/paneviewComponent.d.ts +1 -1
- package/dist/cjs/paneview/paneviewComponent.js +6 -2
- package/dist/cjs/splitview/splitview.d.ts +1 -1
- package/dist/cjs/splitview/splitview.js +3 -3
- package/dist/cjs/splitview/splitviewComponent.d.ts +1 -1
- package/dist/cjs/splitview/splitviewComponent.js +6 -2
- package/dist/dockview-core.amd.js +33 -14
- package/dist/dockview-core.amd.js.map +1 -1
- package/dist/dockview-core.amd.min.js +2 -2
- package/dist/dockview-core.amd.min.js.map +1 -1
- package/dist/dockview-core.amd.min.noStyle.js +2 -2
- package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
- package/dist/dockview-core.amd.noStyle.js +33 -14
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +33 -14
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +33 -14
- package/dist/dockview-core.esm.js.map +1 -1
- package/dist/dockview-core.esm.min.js +2 -2
- package/dist/dockview-core.esm.min.js.map +1 -1
- package/dist/dockview-core.js +33 -14
- package/dist/dockview-core.js.map +1 -1
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.js.map +1 -1
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.min.noStyle.js.map +1 -1
- package/dist/dockview-core.noStyle.js +33 -14
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/dockview/dockviewComponent.d.ts +1 -1
- package/dist/esm/dockview/dockviewComponent.js +12 -2
- package/dist/esm/gridview/baseComponentGridview.d.ts +1 -1
- package/dist/esm/gridview/baseComponentGridview.js +3 -2
- package/dist/esm/gridview/gridviewComponent.d.ts +1 -1
- package/dist/esm/gridview/gridviewComponent.js +2 -2
- package/dist/esm/paneview/paneviewComponent.d.ts +1 -1
- package/dist/esm/paneview/paneviewComponent.js +6 -2
- package/dist/esm/splitview/splitview.d.ts +1 -1
- package/dist/esm/splitview/splitview.js +3 -3
- package/dist/esm/splitview/splitviewComponent.d.ts +1 -1
- package/dist/esm/splitview/splitviewComponent.js +6 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 3.0.
|
|
3
|
+
* @version 3.0.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
this._margin = value;
|
|
855
855
|
}
|
|
856
856
|
constructor(container, options) {
|
|
857
|
-
var _a;
|
|
857
|
+
var _a, _b;
|
|
858
858
|
this.container = container;
|
|
859
859
|
this.viewItems = [];
|
|
860
860
|
this.sashes = [];
|
|
@@ -952,9 +952,9 @@
|
|
|
952
952
|
//
|
|
953
953
|
return delta;
|
|
954
954
|
};
|
|
955
|
-
this._orientation = options.orientation;
|
|
955
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : exports.Orientation.VERTICAL;
|
|
956
956
|
this.element = this.createContainer();
|
|
957
|
-
this.margin = (
|
|
957
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
958
958
|
this.proportionalLayout =
|
|
959
959
|
options.proportionalLayout === undefined
|
|
960
960
|
? true
|
|
@@ -2773,7 +2773,7 @@
|
|
|
2773
2773
|
set locked(value) {
|
|
2774
2774
|
this.gridview.locked = value;
|
|
2775
2775
|
}
|
|
2776
|
-
constructor(
|
|
2776
|
+
constructor(container, options) {
|
|
2777
2777
|
var _a;
|
|
2778
2778
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2779
2779
|
this._id = nextLayoutId$1.next();
|
|
@@ -2794,7 +2794,8 @@
|
|
|
2794
2794
|
this.element.style.width = '100%';
|
|
2795
2795
|
this._classNames = new Classnames(this.element);
|
|
2796
2796
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2797
|
-
|
|
2797
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2798
|
+
container.appendChild(this.element);
|
|
2798
2799
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2799
2800
|
this.gridview.locked = !!options.locked;
|
|
2800
2801
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7514,9 +7515,9 @@
|
|
|
7514
7515
|
get floatingGroups() {
|
|
7515
7516
|
return this._floatingGroups;
|
|
7516
7517
|
}
|
|
7517
|
-
constructor(
|
|
7518
|
+
constructor(container, options) {
|
|
7518
7519
|
var _a;
|
|
7519
|
-
super(
|
|
7520
|
+
super(container, {
|
|
7520
7521
|
proportionalLayout: true,
|
|
7521
7522
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7522
7523
|
styles: options.hideBorders
|
|
@@ -7872,6 +7873,16 @@
|
|
|
7872
7873
|
group.model.renderContainer =
|
|
7873
7874
|
this.overlayRenderContainer;
|
|
7874
7875
|
returnedGroup = group;
|
|
7876
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7877
|
+
if (alreadyRemoved) {
|
|
7878
|
+
/**
|
|
7879
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7880
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7881
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7882
|
+
* the `this._popoutGroups` list.
|
|
7883
|
+
*/
|
|
7884
|
+
return;
|
|
7885
|
+
}
|
|
7875
7886
|
if (floatingBox) {
|
|
7876
7887
|
this.addFloatingGroup(group, {
|
|
7877
7888
|
height: floatingBox.height,
|
|
@@ -9048,9 +9059,9 @@
|
|
|
9048
9059
|
set deserializer(value) {
|
|
9049
9060
|
this._deserializer = value;
|
|
9050
9061
|
}
|
|
9051
|
-
constructor(
|
|
9062
|
+
constructor(container, options) {
|
|
9052
9063
|
var _a;
|
|
9053
|
-
super(
|
|
9064
|
+
super(container, {
|
|
9054
9065
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9055
9066
|
orientation: options.orientation,
|
|
9056
9067
|
styles: options.hideBorders
|
|
@@ -9339,9 +9350,9 @@
|
|
|
9339
9350
|
? this.splitview.size
|
|
9340
9351
|
: this.splitview.orthogonalSize;
|
|
9341
9352
|
}
|
|
9342
|
-
constructor(
|
|
9353
|
+
constructor(container, options) {
|
|
9343
9354
|
var _a;
|
|
9344
|
-
super(
|
|
9355
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9345
9356
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9346
9357
|
this._panels = new Map();
|
|
9347
9358
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9352,8 +9363,12 @@
|
|
|
9352
9363
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9353
9364
|
this._onDidLayoutChange = new Emitter();
|
|
9354
9365
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9366
|
+
this.element.style.height = '100%';
|
|
9367
|
+
this.element.style.width = '100%';
|
|
9355
9368
|
this._classNames = new Classnames(this.element);
|
|
9356
9369
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9370
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9371
|
+
container.appendChild(this.element);
|
|
9357
9372
|
this._options = options;
|
|
9358
9373
|
this.splitview = new Splitview(this.element, options);
|
|
9359
9374
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9663,9 +9678,9 @@
|
|
|
9663
9678
|
get options() {
|
|
9664
9679
|
return this._options;
|
|
9665
9680
|
}
|
|
9666
|
-
constructor(
|
|
9681
|
+
constructor(container, options) {
|
|
9667
9682
|
var _a;
|
|
9668
|
-
super(
|
|
9683
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9669
9684
|
this._id = nextLayoutId.next();
|
|
9670
9685
|
this._disposable = new MutableDisposable();
|
|
9671
9686
|
this._viewDisposables = new Map();
|
|
@@ -9681,9 +9696,13 @@
|
|
|
9681
9696
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9682
9697
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9683
9698
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9699
|
+
this.element.style.height = '100%';
|
|
9700
|
+
this.element.style.width = '100%';
|
|
9684
9701
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9685
9702
|
this._classNames = new Classnames(this.element);
|
|
9686
9703
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9704
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9705
|
+
container.appendChild(this.element);
|
|
9687
9706
|
this._options = options;
|
|
9688
9707
|
this.paneview = new Paneview(this.element, {
|
|
9689
9708
|
// only allow paneview in the vertical orientation for now
|