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
package/dist/dockview-core.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
this._margin = value;
|
|
885
885
|
}
|
|
886
886
|
constructor(container, options) {
|
|
887
|
-
var _a;
|
|
887
|
+
var _a, _b;
|
|
888
888
|
this.container = container;
|
|
889
889
|
this.viewItems = [];
|
|
890
890
|
this.sashes = [];
|
|
@@ -982,9 +982,9 @@
|
|
|
982
982
|
//
|
|
983
983
|
return delta;
|
|
984
984
|
};
|
|
985
|
-
this._orientation = options.orientation;
|
|
985
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : exports.Orientation.VERTICAL;
|
|
986
986
|
this.element = this.createContainer();
|
|
987
|
-
this.margin = (
|
|
987
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
988
988
|
this.proportionalLayout =
|
|
989
989
|
options.proportionalLayout === undefined
|
|
990
990
|
? true
|
|
@@ -2803,9 +2803,9 @@
|
|
|
2803
2803
|
set locked(value) {
|
|
2804
2804
|
this.gridview.locked = value;
|
|
2805
2805
|
}
|
|
2806
|
-
constructor(
|
|
2806
|
+
constructor(container, options) {
|
|
2807
2807
|
var _a;
|
|
2808
|
-
super(
|
|
2808
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
2809
2809
|
this._id = nextLayoutId$1.next();
|
|
2810
2810
|
this._groups = new Map();
|
|
2811
2811
|
this._onDidRemove = new Emitter();
|
|
@@ -2824,6 +2824,8 @@
|
|
|
2824
2824
|
this.element.style.width = '100%';
|
|
2825
2825
|
this._classNames = new Classnames(this.element);
|
|
2826
2826
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2827
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2828
|
+
container.appendChild(this.element);
|
|
2827
2829
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2828
2830
|
this.gridview.locked = !!options.locked;
|
|
2829
2831
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7543,9 +7545,9 @@
|
|
|
7543
7545
|
get floatingGroups() {
|
|
7544
7546
|
return this._floatingGroups;
|
|
7545
7547
|
}
|
|
7546
|
-
constructor(
|
|
7548
|
+
constructor(container, options) {
|
|
7547
7549
|
var _a;
|
|
7548
|
-
super(
|
|
7550
|
+
super(container, {
|
|
7549
7551
|
proportionalLayout: true,
|
|
7550
7552
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7551
7553
|
styles: options.hideBorders
|
|
@@ -7901,6 +7903,16 @@
|
|
|
7901
7903
|
group.model.renderContainer =
|
|
7902
7904
|
this.overlayRenderContainer;
|
|
7903
7905
|
returnedGroup = group;
|
|
7906
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7907
|
+
if (alreadyRemoved) {
|
|
7908
|
+
/**
|
|
7909
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7910
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7911
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7912
|
+
* the `this._popoutGroups` list.
|
|
7913
|
+
*/
|
|
7914
|
+
return;
|
|
7915
|
+
}
|
|
7904
7916
|
if (floatingBox) {
|
|
7905
7917
|
this.addFloatingGroup(group, {
|
|
7906
7918
|
height: floatingBox.height,
|
|
@@ -9077,9 +9089,9 @@
|
|
|
9077
9089
|
set deserializer(value) {
|
|
9078
9090
|
this._deserializer = value;
|
|
9079
9091
|
}
|
|
9080
|
-
constructor(
|
|
9092
|
+
constructor(container, options) {
|
|
9081
9093
|
var _a;
|
|
9082
|
-
super(
|
|
9094
|
+
super(container, {
|
|
9083
9095
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9084
9096
|
orientation: options.orientation,
|
|
9085
9097
|
styles: options.hideBorders
|
|
@@ -9368,9 +9380,9 @@
|
|
|
9368
9380
|
? this.splitview.size
|
|
9369
9381
|
: this.splitview.orthogonalSize;
|
|
9370
9382
|
}
|
|
9371
|
-
constructor(
|
|
9383
|
+
constructor(container, options) {
|
|
9372
9384
|
var _a;
|
|
9373
|
-
super(
|
|
9385
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9374
9386
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9375
9387
|
this._panels = new Map();
|
|
9376
9388
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9381,8 +9393,12 @@
|
|
|
9381
9393
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9382
9394
|
this._onDidLayoutChange = new Emitter();
|
|
9383
9395
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9396
|
+
this.element.style.height = '100%';
|
|
9397
|
+
this.element.style.width = '100%';
|
|
9384
9398
|
this._classNames = new Classnames(this.element);
|
|
9385
9399
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9400
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9401
|
+
container.appendChild(this.element);
|
|
9386
9402
|
this._options = options;
|
|
9387
9403
|
this.splitview = new Splitview(this.element, options);
|
|
9388
9404
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9692,9 +9708,9 @@
|
|
|
9692
9708
|
get options() {
|
|
9693
9709
|
return this._options;
|
|
9694
9710
|
}
|
|
9695
|
-
constructor(
|
|
9711
|
+
constructor(container, options) {
|
|
9696
9712
|
var _a;
|
|
9697
|
-
super(
|
|
9713
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9698
9714
|
this._id = nextLayoutId.next();
|
|
9699
9715
|
this._disposable = new MutableDisposable();
|
|
9700
9716
|
this._viewDisposables = new Map();
|
|
@@ -9710,9 +9726,13 @@
|
|
|
9710
9726
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9711
9727
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9712
9728
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9729
|
+
this.element.style.height = '100%';
|
|
9730
|
+
this.element.style.width = '100%';
|
|
9713
9731
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9714
9732
|
this._classNames = new Classnames(this.element);
|
|
9715
9733
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9734
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9735
|
+
container.appendChild(this.element);
|
|
9716
9736
|
this._options = options;
|
|
9717
9737
|
this.paneview = new Paneview(this.element, {
|
|
9718
9738
|
// only allow paneview in the vertical orientation for now
|