dockview-core 1.16.0 → 1.16.1
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/api/component.api.d.ts +6 -4
- package/dist/cjs/dockview/dockviewComponent.js +1 -0
- package/dist/cjs/gridview/baseComponentGridview.d.ts +2 -0
- package/dist/cjs/gridview/baseComponentGridview.js +53 -5
- package/dist/cjs/gridview/gridviewComponent.d.ts +2 -3
- package/dist/cjs/gridview/gridviewComponent.js +1 -0
- package/dist/cjs/paneview/paneviewComponent.d.ts +1 -0
- package/dist/cjs/paneview/paneviewComponent.js +66 -20
- package/dist/cjs/splitview/splitviewComponent.d.ts +4 -4
- package/dist/cjs/splitview/splitviewComponent.js +67 -21
- package/dist/dockview-core.amd.js +51 -8
- 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 +51 -8
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +51 -8
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +51 -8
- 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 +51 -8
- 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 +51 -8
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/api/component.api.d.ts +6 -4
- package/dist/esm/dockview/dockviewComponent.js +1 -0
- package/dist/esm/gridview/baseComponentGridview.d.ts +2 -0
- package/dist/esm/gridview/baseComponentGridview.js +18 -2
- package/dist/esm/gridview/gridviewComponent.d.ts +2 -3
- package/dist/esm/gridview/gridviewComponent.js +1 -0
- package/dist/esm/paneview/paneviewComponent.d.ts +1 -0
- package/dist/esm/paneview/paneviewComponent.js +17 -3
- package/dist/esm/splitview/splitviewComponent.d.ts +4 -4
- package/dist/esm/splitview/splitviewComponent.js +16 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 1.16.
|
|
3
|
+
* @version 1.16.1
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2701,6 +2701,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2701
2701
|
this.gridview.locked = value;
|
|
2702
2702
|
}
|
|
2703
2703
|
constructor(options) {
|
|
2704
|
+
var _a, _b;
|
|
2704
2705
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2705
2706
|
this._id = nextLayoutId$1.next();
|
|
2706
2707
|
this._groups = new Map();
|
|
@@ -2714,10 +2715,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2714
2715
|
this.onDidLayoutChange = this._bufferOnDidLayoutChange.onEvent;
|
|
2715
2716
|
this._onDidViewVisibilityChangeMicroTaskQueue = new AsapEvent();
|
|
2716
2717
|
this.onDidViewVisibilityChangeMicroTaskQueue = this._onDidViewVisibilityChangeMicroTaskQueue.onEvent;
|
|
2718
|
+
this.classNames = [];
|
|
2717
2719
|
this.element.style.height = '100%';
|
|
2718
2720
|
this.element.style.width = '100%';
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2722
|
+
for (const className of this.classNames) {
|
|
2723
|
+
toggleClass(this.element, className, true);
|
|
2721
2724
|
}
|
|
2722
2725
|
options.parentElement.appendChild(this.element);
|
|
2723
2726
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
@@ -2742,6 +2745,18 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2742
2745
|
isVisible(panel) {
|
|
2743
2746
|
return this.gridview.isViewVisible(getGridLocation(panel.element));
|
|
2744
2747
|
}
|
|
2748
|
+
updateOptions(options) {
|
|
2749
|
+
var _a, _b;
|
|
2750
|
+
if ('className' in options) {
|
|
2751
|
+
for (const className of this.classNames) {
|
|
2752
|
+
toggleClass(this.element, className, false);
|
|
2753
|
+
}
|
|
2754
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2755
|
+
for (const className of this.classNames) {
|
|
2756
|
+
toggleClass(this.element, className, true);
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2745
2760
|
maximizeGroup(panel) {
|
|
2746
2761
|
this.gridview.maximizeView(panel);
|
|
2747
2762
|
this.doSetGroupActive(panel);
|
|
@@ -7830,6 +7845,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7830
7845
|
}
|
|
7831
7846
|
updateOptions(options) {
|
|
7832
7847
|
var _a, _b;
|
|
7848
|
+
super.updateOptions(options);
|
|
7833
7849
|
const changed_floatingGroupBounds = 'floatingGroupBounds' in options &&
|
|
7834
7850
|
options.floatingGroupBounds !== this.options.floatingGroupBounds;
|
|
7835
7851
|
const changed_rootOverlayOptions = 'rootOverlayModel' in options &&
|
|
@@ -8774,6 +8790,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
8774
8790
|
}
|
|
8775
8791
|
}
|
|
8776
8792
|
updateOptions(options) {
|
|
8793
|
+
super.updateOptions(options);
|
|
8777
8794
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
8778
8795
|
this.gridview.orientation !== options.orientation;
|
|
8779
8796
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9041,6 +9058,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9041
9058
|
: this.splitview.orthogonalSize;
|
|
9042
9059
|
}
|
|
9043
9060
|
constructor(parentElement, options) {
|
|
9061
|
+
var _a, _b;
|
|
9044
9062
|
super(parentElement, options.disableAutoResizing);
|
|
9045
9063
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9046
9064
|
this._panels = new Map();
|
|
@@ -9052,8 +9070,10 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9052
9070
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9053
9071
|
this._onDidLayoutChange = new Emitter();
|
|
9054
9072
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9055
|
-
|
|
9056
|
-
|
|
9073
|
+
this.classNames = [];
|
|
9074
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9075
|
+
for (const className of this.classNames) {
|
|
9076
|
+
toggleClass(this.element, className, true);
|
|
9057
9077
|
}
|
|
9058
9078
|
this._options = options;
|
|
9059
9079
|
if (!options.components) {
|
|
@@ -9066,6 +9086,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9066
9086
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
9067
9087
|
}
|
|
9068
9088
|
updateOptions(options) {
|
|
9089
|
+
var _a, _b;
|
|
9090
|
+
if ('className' in options) {
|
|
9091
|
+
for (const className of this.classNames) {
|
|
9092
|
+
toggleClass(this.element, className, false);
|
|
9093
|
+
}
|
|
9094
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9095
|
+
for (const className of this.classNames) {
|
|
9096
|
+
toggleClass(this.element, className, true);
|
|
9097
|
+
}
|
|
9098
|
+
}
|
|
9069
9099
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
9070
9100
|
this.options.orientation !== options.orientation;
|
|
9071
9101
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9368,6 +9398,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9368
9398
|
return this._options;
|
|
9369
9399
|
}
|
|
9370
9400
|
constructor(parentElement, options) {
|
|
9401
|
+
var _a, _b;
|
|
9371
9402
|
super(parentElement, options.disableAutoResizing);
|
|
9372
9403
|
this._id = nextLayoutId.next();
|
|
9373
9404
|
this._disposable = new MutableDisposable();
|
|
@@ -9382,10 +9413,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9382
9413
|
this.onDidAddView = this._onDidAddView.event;
|
|
9383
9414
|
this._onDidRemoveView = new Emitter();
|
|
9384
9415
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9385
|
-
|
|
9386
|
-
this.element.classList.add(options.className);
|
|
9387
|
-
}
|
|
9416
|
+
this.classNames = [];
|
|
9388
9417
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView);
|
|
9418
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9419
|
+
for (const className of this.classNames) {
|
|
9420
|
+
toggleClass(this.element, className, true);
|
|
9421
|
+
}
|
|
9389
9422
|
this._options = options;
|
|
9390
9423
|
if (!options.components) {
|
|
9391
9424
|
options.components = {};
|
|
@@ -9407,6 +9440,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9407
9440
|
//noop
|
|
9408
9441
|
}
|
|
9409
9442
|
updateOptions(options) {
|
|
9443
|
+
var _a, _b;
|
|
9444
|
+
if ('className' in options) {
|
|
9445
|
+
for (const className of this.classNames) {
|
|
9446
|
+
toggleClass(this.element, className, false);
|
|
9447
|
+
}
|
|
9448
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9449
|
+
for (const className of this.classNames) {
|
|
9450
|
+
toggleClass(this.element, className, true);
|
|
9451
|
+
}
|
|
9452
|
+
}
|
|
9410
9453
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
9411
9454
|
}
|
|
9412
9455
|
addPanel(options) {
|