dockview-core 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/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 +4 -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 +34 -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 +34 -14
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +34 -14
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +34 -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 +34 -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 +34 -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 +4 -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
|
*/
|
|
@@ -878,7 +878,7 @@ class Splitview {
|
|
|
878
878
|
this._margin = value;
|
|
879
879
|
}
|
|
880
880
|
constructor(container, options) {
|
|
881
|
-
var _a;
|
|
881
|
+
var _a, _b;
|
|
882
882
|
this.container = container;
|
|
883
883
|
this.viewItems = [];
|
|
884
884
|
this.sashes = [];
|
|
@@ -976,9 +976,9 @@ class Splitview {
|
|
|
976
976
|
//
|
|
977
977
|
return delta;
|
|
978
978
|
};
|
|
979
|
-
this._orientation = options.orientation;
|
|
979
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : Orientation.VERTICAL;
|
|
980
980
|
this.element = this.createContainer();
|
|
981
|
-
this.margin = (
|
|
981
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
982
982
|
this.proportionalLayout =
|
|
983
983
|
options.proportionalLayout === undefined
|
|
984
984
|
? true
|
|
@@ -2797,9 +2797,9 @@ class BaseGrid extends Resizable {
|
|
|
2797
2797
|
set locked(value) {
|
|
2798
2798
|
this.gridview.locked = value;
|
|
2799
2799
|
}
|
|
2800
|
-
constructor(
|
|
2800
|
+
constructor(container, options) {
|
|
2801
2801
|
var _a;
|
|
2802
|
-
super(
|
|
2802
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
2803
2803
|
this._id = nextLayoutId$1.next();
|
|
2804
2804
|
this._groups = new Map();
|
|
2805
2805
|
this._onDidRemove = new Emitter();
|
|
@@ -2818,6 +2818,8 @@ class BaseGrid extends Resizable {
|
|
|
2818
2818
|
this.element.style.width = '100%';
|
|
2819
2819
|
this._classNames = new Classnames(this.element);
|
|
2820
2820
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2821
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2822
|
+
container.appendChild(this.element);
|
|
2821
2823
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2822
2824
|
this.gridview.locked = !!options.locked;
|
|
2823
2825
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7537,9 +7539,9 @@ class DockviewComponent extends BaseGrid {
|
|
|
7537
7539
|
get floatingGroups() {
|
|
7538
7540
|
return this._floatingGroups;
|
|
7539
7541
|
}
|
|
7540
|
-
constructor(
|
|
7542
|
+
constructor(container, options) {
|
|
7541
7543
|
var _a;
|
|
7542
|
-
super(
|
|
7544
|
+
super(container, {
|
|
7543
7545
|
proportionalLayout: true,
|
|
7544
7546
|
orientation: Orientation.HORIZONTAL,
|
|
7545
7547
|
styles: options.hideBorders
|
|
@@ -7895,6 +7897,16 @@ class DockviewComponent extends BaseGrid {
|
|
|
7895
7897
|
group.model.renderContainer =
|
|
7896
7898
|
this.overlayRenderContainer;
|
|
7897
7899
|
returnedGroup = group;
|
|
7900
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7901
|
+
if (alreadyRemoved) {
|
|
7902
|
+
/**
|
|
7903
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7904
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7905
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7906
|
+
* the `this._popoutGroups` list.
|
|
7907
|
+
*/
|
|
7908
|
+
return;
|
|
7909
|
+
}
|
|
7898
7910
|
if (floatingBox) {
|
|
7899
7911
|
this.addFloatingGroup(group, {
|
|
7900
7912
|
height: floatingBox.height,
|
|
@@ -9071,9 +9083,9 @@ class GridviewComponent extends BaseGrid {
|
|
|
9071
9083
|
set deserializer(value) {
|
|
9072
9084
|
this._deserializer = value;
|
|
9073
9085
|
}
|
|
9074
|
-
constructor(
|
|
9086
|
+
constructor(container, options) {
|
|
9075
9087
|
var _a;
|
|
9076
|
-
super(
|
|
9088
|
+
super(container, {
|
|
9077
9089
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9078
9090
|
orientation: options.orientation,
|
|
9079
9091
|
styles: options.hideBorders
|
|
@@ -9362,9 +9374,9 @@ class SplitviewComponent extends Resizable {
|
|
|
9362
9374
|
? this.splitview.size
|
|
9363
9375
|
: this.splitview.orthogonalSize;
|
|
9364
9376
|
}
|
|
9365
|
-
constructor(
|
|
9377
|
+
constructor(container, options) {
|
|
9366
9378
|
var _a;
|
|
9367
|
-
super(
|
|
9379
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9368
9380
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9369
9381
|
this._panels = new Map();
|
|
9370
9382
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9375,8 +9387,12 @@ class SplitviewComponent extends Resizable {
|
|
|
9375
9387
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9376
9388
|
this._onDidLayoutChange = new Emitter();
|
|
9377
9389
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9390
|
+
this.element.style.height = '100%';
|
|
9391
|
+
this.element.style.width = '100%';
|
|
9378
9392
|
this._classNames = new Classnames(this.element);
|
|
9379
9393
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9394
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9395
|
+
container.appendChild(this.element);
|
|
9380
9396
|
this._options = options;
|
|
9381
9397
|
this.splitview = new Splitview(this.element, options);
|
|
9382
9398
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9686,9 +9702,9 @@ class PaneviewComponent extends Resizable {
|
|
|
9686
9702
|
get options() {
|
|
9687
9703
|
return this._options;
|
|
9688
9704
|
}
|
|
9689
|
-
constructor(
|
|
9705
|
+
constructor(container, options) {
|
|
9690
9706
|
var _a;
|
|
9691
|
-
super(
|
|
9707
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9692
9708
|
this._id = nextLayoutId.next();
|
|
9693
9709
|
this._disposable = new MutableDisposable();
|
|
9694
9710
|
this._viewDisposables = new Map();
|
|
@@ -9704,9 +9720,13 @@ class PaneviewComponent extends Resizable {
|
|
|
9704
9720
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9705
9721
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9706
9722
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9723
|
+
this.element.style.height = '100%';
|
|
9724
|
+
this.element.style.width = '100%';
|
|
9707
9725
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9708
9726
|
this._classNames = new Classnames(this.element);
|
|
9709
9727
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9728
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9729
|
+
container.appendChild(this.element);
|
|
9710
9730
|
this._options = options;
|
|
9711
9731
|
this.paneview = new Paneview(this.element, {
|
|
9712
9732
|
// only allow paneview in the vertical orientation for now
|