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
|
*/
|
|
@@ -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,7 +2769,7 @@ 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
2774
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2775
2775
|
this._id = nextLayoutId$1.next();
|
|
@@ -2790,7 +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
|
-
|
|
2793
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2794
|
+
container.appendChild(this.element);
|
|
2794
2795
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2795
2796
|
this.gridview.locked = !!options.locked;
|
|
2796
2797
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7510,9 +7511,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7510
7511
|
get floatingGroups() {
|
|
7511
7512
|
return this._floatingGroups;
|
|
7512
7513
|
}
|
|
7513
|
-
constructor(
|
|
7514
|
+
constructor(container, options) {
|
|
7514
7515
|
var _a;
|
|
7515
|
-
super(
|
|
7516
|
+
super(container, {
|
|
7516
7517
|
proportionalLayout: true,
|
|
7517
7518
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7518
7519
|
styles: options.hideBorders
|
|
@@ -7868,6 +7869,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7868
7869
|
group.model.renderContainer =
|
|
7869
7870
|
this.overlayRenderContainer;
|
|
7870
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
|
+
}
|
|
7871
7882
|
if (floatingBox) {
|
|
7872
7883
|
this.addFloatingGroup(group, {
|
|
7873
7884
|
height: floatingBox.height,
|
|
@@ -9044,9 +9055,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9044
9055
|
set deserializer(value) {
|
|
9045
9056
|
this._deserializer = value;
|
|
9046
9057
|
}
|
|
9047
|
-
constructor(
|
|
9058
|
+
constructor(container, options) {
|
|
9048
9059
|
var _a;
|
|
9049
|
-
super(
|
|
9060
|
+
super(container, {
|
|
9050
9061
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9051
9062
|
orientation: options.orientation,
|
|
9052
9063
|
styles: options.hideBorders
|
|
@@ -9335,9 +9346,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9335
9346
|
? this.splitview.size
|
|
9336
9347
|
: this.splitview.orthogonalSize;
|
|
9337
9348
|
}
|
|
9338
|
-
constructor(
|
|
9349
|
+
constructor(container, options) {
|
|
9339
9350
|
var _a;
|
|
9340
|
-
super(
|
|
9351
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9341
9352
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9342
9353
|
this._panels = new Map();
|
|
9343
9354
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9348,8 +9359,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9348
9359
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9349
9360
|
this._onDidLayoutChange = new Emitter();
|
|
9350
9361
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9362
|
+
this.element.style.height = '100%';
|
|
9363
|
+
this.element.style.width = '100%';
|
|
9351
9364
|
this._classNames = new Classnames(this.element);
|
|
9352
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);
|
|
9353
9368
|
this._options = options;
|
|
9354
9369
|
this.splitview = new Splitview(this.element, options);
|
|
9355
9370
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9659,9 +9674,9 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9659
9674
|
get options() {
|
|
9660
9675
|
return this._options;
|
|
9661
9676
|
}
|
|
9662
|
-
constructor(
|
|
9677
|
+
constructor(container, options) {
|
|
9663
9678
|
var _a;
|
|
9664
|
-
super(
|
|
9679
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9665
9680
|
this._id = nextLayoutId.next();
|
|
9666
9681
|
this._disposable = new MutableDisposable();
|
|
9667
9682
|
this._viewDisposables = new Map();
|
|
@@ -9677,9 +9692,13 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9677
9692
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9678
9693
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9679
9694
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9695
|
+
this.element.style.height = '100%';
|
|
9696
|
+
this.element.style.width = '100%';
|
|
9680
9697
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9681
9698
|
this._classNames = new Classnames(this.element);
|
|
9682
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);
|
|
9683
9702
|
this._options = options;
|
|
9684
9703
|
this.paneview = new Paneview(this.element, {
|
|
9685
9704
|
// only allow paneview in the vertical orientation for now
|