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
|
*/
|
|
@@ -2671,6 +2671,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2671
2671
|
this.gridview.locked = value;
|
|
2672
2672
|
}
|
|
2673
2673
|
constructor(options) {
|
|
2674
|
+
var _a, _b;
|
|
2674
2675
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2675
2676
|
this._id = nextLayoutId$1.next();
|
|
2676
2677
|
this._groups = new Map();
|
|
@@ -2684,10 +2685,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2684
2685
|
this.onDidLayoutChange = this._bufferOnDidLayoutChange.onEvent;
|
|
2685
2686
|
this._onDidViewVisibilityChangeMicroTaskQueue = new AsapEvent();
|
|
2686
2687
|
this.onDidViewVisibilityChangeMicroTaskQueue = this._onDidViewVisibilityChangeMicroTaskQueue.onEvent;
|
|
2688
|
+
this.classNames = [];
|
|
2687
2689
|
this.element.style.height = '100%';
|
|
2688
2690
|
this.element.style.width = '100%';
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2692
|
+
for (const className of this.classNames) {
|
|
2693
|
+
toggleClass(this.element, className, true);
|
|
2691
2694
|
}
|
|
2692
2695
|
options.parentElement.appendChild(this.element);
|
|
2693
2696
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
@@ -2712,6 +2715,18 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
2712
2715
|
isVisible(panel) {
|
|
2713
2716
|
return this.gridview.isViewVisible(getGridLocation(panel.element));
|
|
2714
2717
|
}
|
|
2718
|
+
updateOptions(options) {
|
|
2719
|
+
var _a, _b;
|
|
2720
|
+
if ('className' in options) {
|
|
2721
|
+
for (const className of this.classNames) {
|
|
2722
|
+
toggleClass(this.element, className, false);
|
|
2723
|
+
}
|
|
2724
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2725
|
+
for (const className of this.classNames) {
|
|
2726
|
+
toggleClass(this.element, className, true);
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2715
2730
|
maximizeGroup(panel) {
|
|
2716
2731
|
this.gridview.maximizeView(panel);
|
|
2717
2732
|
this.doSetGroupActive(panel);
|
|
@@ -7800,6 +7815,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
7800
7815
|
}
|
|
7801
7816
|
updateOptions(options) {
|
|
7802
7817
|
var _a, _b;
|
|
7818
|
+
super.updateOptions(options);
|
|
7803
7819
|
const changed_floatingGroupBounds = 'floatingGroupBounds' in options &&
|
|
7804
7820
|
options.floatingGroupBounds !== this.options.floatingGroupBounds;
|
|
7805
7821
|
const changed_rootOverlayOptions = 'rootOverlayModel' in options &&
|
|
@@ -8744,6 +8760,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
8744
8760
|
}
|
|
8745
8761
|
}
|
|
8746
8762
|
updateOptions(options) {
|
|
8763
|
+
super.updateOptions(options);
|
|
8747
8764
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
8748
8765
|
this.gridview.orientation !== options.orientation;
|
|
8749
8766
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9011,6 +9028,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9011
9028
|
: this.splitview.orthogonalSize;
|
|
9012
9029
|
}
|
|
9013
9030
|
constructor(parentElement, options) {
|
|
9031
|
+
var _a, _b;
|
|
9014
9032
|
super(parentElement, options.disableAutoResizing);
|
|
9015
9033
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9016
9034
|
this._panels = new Map();
|
|
@@ -9022,8 +9040,10 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9022
9040
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9023
9041
|
this._onDidLayoutChange = new Emitter();
|
|
9024
9042
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9025
|
-
|
|
9026
|
-
|
|
9043
|
+
this.classNames = [];
|
|
9044
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9045
|
+
for (const className of this.classNames) {
|
|
9046
|
+
toggleClass(this.element, className, true);
|
|
9027
9047
|
}
|
|
9028
9048
|
this._options = options;
|
|
9029
9049
|
if (!options.components) {
|
|
@@ -9036,6 +9056,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9036
9056
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
9037
9057
|
}
|
|
9038
9058
|
updateOptions(options) {
|
|
9059
|
+
var _a, _b;
|
|
9060
|
+
if ('className' in options) {
|
|
9061
|
+
for (const className of this.classNames) {
|
|
9062
|
+
toggleClass(this.element, className, false);
|
|
9063
|
+
}
|
|
9064
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9065
|
+
for (const className of this.classNames) {
|
|
9066
|
+
toggleClass(this.element, className, true);
|
|
9067
|
+
}
|
|
9068
|
+
}
|
|
9039
9069
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
9040
9070
|
this.options.orientation !== options.orientation;
|
|
9041
9071
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9338,6 +9368,7 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9338
9368
|
return this._options;
|
|
9339
9369
|
}
|
|
9340
9370
|
constructor(parentElement, options) {
|
|
9371
|
+
var _a, _b;
|
|
9341
9372
|
super(parentElement, options.disableAutoResizing);
|
|
9342
9373
|
this._id = nextLayoutId.next();
|
|
9343
9374
|
this._disposable = new MutableDisposable();
|
|
@@ -9352,10 +9383,12 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9352
9383
|
this.onDidAddView = this._onDidAddView.event;
|
|
9353
9384
|
this._onDidRemoveView = new Emitter();
|
|
9354
9385
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9355
|
-
|
|
9356
|
-
this.element.classList.add(options.className);
|
|
9357
|
-
}
|
|
9386
|
+
this.classNames = [];
|
|
9358
9387
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView);
|
|
9388
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9389
|
+
for (const className of this.classNames) {
|
|
9390
|
+
toggleClass(this.element, className, true);
|
|
9391
|
+
}
|
|
9359
9392
|
this._options = options;
|
|
9360
9393
|
if (!options.components) {
|
|
9361
9394
|
options.components = {};
|
|
@@ -9377,6 +9410,16 @@ define(['exports'], (function (exports) { 'use strict';
|
|
|
9377
9410
|
//noop
|
|
9378
9411
|
}
|
|
9379
9412
|
updateOptions(options) {
|
|
9413
|
+
var _a, _b;
|
|
9414
|
+
if ('className' in options) {
|
|
9415
|
+
for (const className of this.classNames) {
|
|
9416
|
+
toggleClass(this.element, className, false);
|
|
9417
|
+
}
|
|
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
|
+
}
|
|
9422
|
+
}
|
|
9380
9423
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
9381
9424
|
}
|
|
9382
9425
|
addPanel(options) {
|