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
|
*/
|
|
@@ -880,7 +880,7 @@ class Splitview {
|
|
|
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 @@ class Splitview {
|
|
|
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 @@ class BaseGrid extends Resizable {
|
|
|
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 @@ class BaseGrid extends Resizable {
|
|
|
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);
|
|
@@ -7539,9 +7541,9 @@ class DockviewComponent extends BaseGrid {
|
|
|
7539
7541
|
get floatingGroups() {
|
|
7540
7542
|
return this._floatingGroups;
|
|
7541
7543
|
}
|
|
7542
|
-
constructor(
|
|
7544
|
+
constructor(container, options) {
|
|
7543
7545
|
var _a;
|
|
7544
|
-
super(
|
|
7546
|
+
super(container, {
|
|
7545
7547
|
proportionalLayout: true,
|
|
7546
7548
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7547
7549
|
styles: options.hideBorders
|
|
@@ -7897,6 +7899,16 @@ class DockviewComponent extends BaseGrid {
|
|
|
7897
7899
|
group.model.renderContainer =
|
|
7898
7900
|
this.overlayRenderContainer;
|
|
7899
7901
|
returnedGroup = group;
|
|
7902
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7903
|
+
if (alreadyRemoved) {
|
|
7904
|
+
/**
|
|
7905
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7906
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7907
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7908
|
+
* the `this._popoutGroups` list.
|
|
7909
|
+
*/
|
|
7910
|
+
return;
|
|
7911
|
+
}
|
|
7900
7912
|
if (floatingBox) {
|
|
7901
7913
|
this.addFloatingGroup(group, {
|
|
7902
7914
|
height: floatingBox.height,
|
|
@@ -9073,9 +9085,9 @@ class GridviewComponent extends BaseGrid {
|
|
|
9073
9085
|
set deserializer(value) {
|
|
9074
9086
|
this._deserializer = value;
|
|
9075
9087
|
}
|
|
9076
|
-
constructor(
|
|
9088
|
+
constructor(container, options) {
|
|
9077
9089
|
var _a;
|
|
9078
|
-
super(
|
|
9090
|
+
super(container, {
|
|
9079
9091
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9080
9092
|
orientation: options.orientation,
|
|
9081
9093
|
styles: options.hideBorders
|
|
@@ -9364,9 +9376,9 @@ class SplitviewComponent extends Resizable {
|
|
|
9364
9376
|
? this.splitview.size
|
|
9365
9377
|
: this.splitview.orthogonalSize;
|
|
9366
9378
|
}
|
|
9367
|
-
constructor(
|
|
9379
|
+
constructor(container, options) {
|
|
9368
9380
|
var _a;
|
|
9369
|
-
super(
|
|
9381
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9370
9382
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9371
9383
|
this._panels = new Map();
|
|
9372
9384
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9377,8 +9389,12 @@ class SplitviewComponent extends Resizable {
|
|
|
9377
9389
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9378
9390
|
this._onDidLayoutChange = new Emitter();
|
|
9379
9391
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9392
|
+
this.element.style.height = '100%';
|
|
9393
|
+
this.element.style.width = '100%';
|
|
9380
9394
|
this._classNames = new Classnames(this.element);
|
|
9381
9395
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9396
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9397
|
+
container.appendChild(this.element);
|
|
9382
9398
|
this._options = options;
|
|
9383
9399
|
this.splitview = new Splitview(this.element, options);
|
|
9384
9400
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9688,9 +9704,9 @@ class PaneviewComponent extends Resizable {
|
|
|
9688
9704
|
get options() {
|
|
9689
9705
|
return this._options;
|
|
9690
9706
|
}
|
|
9691
|
-
constructor(
|
|
9707
|
+
constructor(container, options) {
|
|
9692
9708
|
var _a;
|
|
9693
|
-
super(
|
|
9709
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9694
9710
|
this._id = nextLayoutId.next();
|
|
9695
9711
|
this._disposable = new MutableDisposable();
|
|
9696
9712
|
this._viewDisposables = new Map();
|
|
@@ -9706,9 +9722,13 @@ class PaneviewComponent extends Resizable {
|
|
|
9706
9722
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9707
9723
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9708
9724
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9725
|
+
this.element.style.height = '100%';
|
|
9726
|
+
this.element.style.width = '100%';
|
|
9709
9727
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9710
9728
|
this._classNames = new Classnames(this.element);
|
|
9711
9729
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9730
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9731
|
+
container.appendChild(this.element);
|
|
9712
9732
|
this._options = options;
|
|
9713
9733
|
this.paneview = new Paneview(this.element, {
|
|
9714
9734
|
// only allow paneview in the vertical orientation for now
|