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
|
*/
|
|
@@ -850,7 +850,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
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'], (function (exports) { 'use strict';
|
|
|
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,9 +2769,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2769
2769
|
set locked(value) {
|
|
2770
2770
|
this.gridview.locked = value;
|
|
2771
2771
|
}
|
|
2772
|
-
constructor(
|
|
2772
|
+
constructor(container, options) {
|
|
2773
2773
|
var _a;
|
|
2774
|
-
super(
|
|
2774
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
2775
2775
|
this._id = nextLayoutId$1.next();
|
|
2776
2776
|
this._groups = new Map();
|
|
2777
2777
|
this._onDidRemove = new Emitter();
|
|
@@ -2790,6 +2790,8 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
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
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2794
|
+
container.appendChild(this.element);
|
|
2793
2795
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2794
2796
|
this.gridview.locked = !!options.locked;
|
|
2795
2797
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7509,9 +7511,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7509
7511
|
get floatingGroups() {
|
|
7510
7512
|
return this._floatingGroups;
|
|
7511
7513
|
}
|
|
7512
|
-
constructor(
|
|
7514
|
+
constructor(container, options) {
|
|
7513
7515
|
var _a;
|
|
7514
|
-
super(
|
|
7516
|
+
super(container, {
|
|
7515
7517
|
proportionalLayout: true,
|
|
7516
7518
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7517
7519
|
styles: options.hideBorders
|
|
@@ -7867,6 +7869,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7867
7869
|
group.model.renderContainer =
|
|
7868
7870
|
this.overlayRenderContainer;
|
|
7869
7871
|
returnedGroup = group;
|
|
7872
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7873
|
+
if (alreadyRemoved) {
|
|
7874
|
+
/**
|
|
7875
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7876
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7877
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7878
|
+
* the `this._popoutGroups` list.
|
|
7879
|
+
*/
|
|
7880
|
+
return;
|
|
7881
|
+
}
|
|
7870
7882
|
if (floatingBox) {
|
|
7871
7883
|
this.addFloatingGroup(group, {
|
|
7872
7884
|
height: floatingBox.height,
|
|
@@ -9043,9 +9055,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9043
9055
|
set deserializer(value) {
|
|
9044
9056
|
this._deserializer = value;
|
|
9045
9057
|
}
|
|
9046
|
-
constructor(
|
|
9058
|
+
constructor(container, options) {
|
|
9047
9059
|
var _a;
|
|
9048
|
-
super(
|
|
9060
|
+
super(container, {
|
|
9049
9061
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9050
9062
|
orientation: options.orientation,
|
|
9051
9063
|
styles: options.hideBorders
|
|
@@ -9334,9 +9346,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9334
9346
|
? this.splitview.size
|
|
9335
9347
|
: this.splitview.orthogonalSize;
|
|
9336
9348
|
}
|
|
9337
|
-
constructor(
|
|
9349
|
+
constructor(container, options) {
|
|
9338
9350
|
var _a;
|
|
9339
|
-
super(
|
|
9351
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9340
9352
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9341
9353
|
this._panels = new Map();
|
|
9342
9354
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9347,8 +9359,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9347
9359
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9348
9360
|
this._onDidLayoutChange = new Emitter();
|
|
9349
9361
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9362
|
+
this.element.style.height = '100%';
|
|
9363
|
+
this.element.style.width = '100%';
|
|
9350
9364
|
this._classNames = new Classnames(this.element);
|
|
9351
9365
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9366
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9367
|
+
container.appendChild(this.element);
|
|
9352
9368
|
this._options = options;
|
|
9353
9369
|
this.splitview = new Splitview(this.element, options);
|
|
9354
9370
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9658,9 +9674,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9658
9674
|
get options() {
|
|
9659
9675
|
return this._options;
|
|
9660
9676
|
}
|
|
9661
|
-
constructor(
|
|
9677
|
+
constructor(container, options) {
|
|
9662
9678
|
var _a;
|
|
9663
|
-
super(
|
|
9679
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9664
9680
|
this._id = nextLayoutId.next();
|
|
9665
9681
|
this._disposable = new MutableDisposable();
|
|
9666
9682
|
this._viewDisposables = new Map();
|
|
@@ -9676,9 +9692,13 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9676
9692
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9677
9693
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9678
9694
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9695
|
+
this.element.style.height = '100%';
|
|
9696
|
+
this.element.style.width = '100%';
|
|
9679
9697
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9680
9698
|
this._classNames = new Classnames(this.element);
|
|
9681
9699
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9700
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9701
|
+
container.appendChild(this.element);
|
|
9682
9702
|
this._options = options;
|
|
9683
9703
|
this.paneview = new Paneview(this.element, {
|
|
9684
9704
|
// only allow paneview in the vertical orientation for now
|