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
|
*/
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
this._margin = value;
|
|
855
855
|
}
|
|
856
856
|
constructor(container, options) {
|
|
857
|
-
var _a;
|
|
857
|
+
var _a, _b;
|
|
858
858
|
this.container = container;
|
|
859
859
|
this.viewItems = [];
|
|
860
860
|
this.sashes = [];
|
|
@@ -952,9 +952,9 @@
|
|
|
952
952
|
//
|
|
953
953
|
return delta;
|
|
954
954
|
};
|
|
955
|
-
this._orientation = options.orientation;
|
|
955
|
+
this._orientation = (_a = options.orientation) !== null && _a !== void 0 ? _a : exports.Orientation.VERTICAL;
|
|
956
956
|
this.element = this.createContainer();
|
|
957
|
-
this.margin = (
|
|
957
|
+
this.margin = (_b = options.margin) !== null && _b !== void 0 ? _b : 0;
|
|
958
958
|
this.proportionalLayout =
|
|
959
959
|
options.proportionalLayout === undefined
|
|
960
960
|
? true
|
|
@@ -2773,9 +2773,9 @@
|
|
|
2773
2773
|
set locked(value) {
|
|
2774
2774
|
this.gridview.locked = value;
|
|
2775
2775
|
}
|
|
2776
|
-
constructor(
|
|
2776
|
+
constructor(container, options) {
|
|
2777
2777
|
var _a;
|
|
2778
|
-
super(
|
|
2778
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
2779
2779
|
this._id = nextLayoutId$1.next();
|
|
2780
2780
|
this._groups = new Map();
|
|
2781
2781
|
this._onDidRemove = new Emitter();
|
|
@@ -2794,6 +2794,8 @@
|
|
|
2794
2794
|
this.element.style.width = '100%';
|
|
2795
2795
|
this._classNames = new Classnames(this.element);
|
|
2796
2796
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
2797
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
2798
|
+
container.appendChild(this.element);
|
|
2797
2799
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
2798
2800
|
this.gridview.locked = !!options.locked;
|
|
2799
2801
|
this.element.appendChild(this.gridview.element);
|
|
@@ -7513,9 +7515,9 @@
|
|
|
7513
7515
|
get floatingGroups() {
|
|
7514
7516
|
return this._floatingGroups;
|
|
7515
7517
|
}
|
|
7516
|
-
constructor(
|
|
7518
|
+
constructor(container, options) {
|
|
7517
7519
|
var _a;
|
|
7518
|
-
super(
|
|
7520
|
+
super(container, {
|
|
7519
7521
|
proportionalLayout: true,
|
|
7520
7522
|
orientation: exports.Orientation.HORIZONTAL,
|
|
7521
7523
|
styles: options.hideBorders
|
|
@@ -7871,6 +7873,16 @@
|
|
|
7871
7873
|
group.model.renderContainer =
|
|
7872
7874
|
this.overlayRenderContainer;
|
|
7873
7875
|
returnedGroup = group;
|
|
7876
|
+
const alreadyRemoved = !this._popoutGroups.find((p) => p.popoutGroup === group);
|
|
7877
|
+
if (alreadyRemoved) {
|
|
7878
|
+
/**
|
|
7879
|
+
* If this popout group was explicitly removed then we shouldn't run the additional
|
|
7880
|
+
* steps. To tell if the running of this disposable is the result of this popout group
|
|
7881
|
+
* being explicitly removed we can check if this popout group is still referenced in
|
|
7882
|
+
* the `this._popoutGroups` list.
|
|
7883
|
+
*/
|
|
7884
|
+
return;
|
|
7885
|
+
}
|
|
7874
7886
|
if (floatingBox) {
|
|
7875
7887
|
this.addFloatingGroup(group, {
|
|
7876
7888
|
height: floatingBox.height,
|
|
@@ -9047,9 +9059,9 @@
|
|
|
9047
9059
|
set deserializer(value) {
|
|
9048
9060
|
this._deserializer = value;
|
|
9049
9061
|
}
|
|
9050
|
-
constructor(
|
|
9062
|
+
constructor(container, options) {
|
|
9051
9063
|
var _a;
|
|
9052
|
-
super(
|
|
9064
|
+
super(container, {
|
|
9053
9065
|
proportionalLayout: (_a = options.proportionalLayout) !== null && _a !== void 0 ? _a : true,
|
|
9054
9066
|
orientation: options.orientation,
|
|
9055
9067
|
styles: options.hideBorders
|
|
@@ -9338,9 +9350,9 @@
|
|
|
9338
9350
|
? this.splitview.size
|
|
9339
9351
|
: this.splitview.orthogonalSize;
|
|
9340
9352
|
}
|
|
9341
|
-
constructor(
|
|
9353
|
+
constructor(container, options) {
|
|
9342
9354
|
var _a;
|
|
9343
|
-
super(
|
|
9355
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9344
9356
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9345
9357
|
this._panels = new Map();
|
|
9346
9358
|
this._onDidLayoutfromJSON = new Emitter();
|
|
@@ -9351,8 +9363,12 @@
|
|
|
9351
9363
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9352
9364
|
this._onDidLayoutChange = new Emitter();
|
|
9353
9365
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9366
|
+
this.element.style.height = '100%';
|
|
9367
|
+
this.element.style.width = '100%';
|
|
9354
9368
|
this._classNames = new Classnames(this.element);
|
|
9355
9369
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9370
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9371
|
+
container.appendChild(this.element);
|
|
9356
9372
|
this._options = options;
|
|
9357
9373
|
this.splitview = new Splitview(this.element, options);
|
|
9358
9374
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
@@ -9662,9 +9678,9 @@
|
|
|
9662
9678
|
get options() {
|
|
9663
9679
|
return this._options;
|
|
9664
9680
|
}
|
|
9665
|
-
constructor(
|
|
9681
|
+
constructor(container, options) {
|
|
9666
9682
|
var _a;
|
|
9667
|
-
super(
|
|
9683
|
+
super(document.createElement('div'), options.disableAutoResizing);
|
|
9668
9684
|
this._id = nextLayoutId.next();
|
|
9669
9685
|
this._disposable = new MutableDisposable();
|
|
9670
9686
|
this._viewDisposables = new Map();
|
|
@@ -9680,9 +9696,13 @@
|
|
|
9680
9696
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9681
9697
|
this._onUnhandledDragOverEvent = new Emitter();
|
|
9682
9698
|
this.onUnhandledDragOverEvent = this._onUnhandledDragOverEvent.event;
|
|
9699
|
+
this.element.style.height = '100%';
|
|
9700
|
+
this.element.style.width = '100%';
|
|
9683
9701
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView, this._onUnhandledDragOverEvent);
|
|
9684
9702
|
this._classNames = new Classnames(this.element);
|
|
9685
9703
|
this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
9704
|
+
// the container is owned by the third-party, do not modify/delete it
|
|
9705
|
+
container.appendChild(this.element);
|
|
9686
9706
|
this._options = options;
|
|
9687
9707
|
this.paneview = new Paneview(this.element, {
|
|
9688
9708
|
// only allow paneview in the vertical orientation for now
|