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
|
*/
|
|
@@ -2675,6 +2675,7 @@
|
|
|
2675
2675
|
this.gridview.locked = value;
|
|
2676
2676
|
}
|
|
2677
2677
|
constructor(options) {
|
|
2678
|
+
var _a, _b;
|
|
2678
2679
|
super(document.createElement('div'), options.disableAutoResizing);
|
|
2679
2680
|
this._id = nextLayoutId$1.next();
|
|
2680
2681
|
this._groups = new Map();
|
|
@@ -2688,10 +2689,12 @@
|
|
|
2688
2689
|
this.onDidLayoutChange = this._bufferOnDidLayoutChange.onEvent;
|
|
2689
2690
|
this._onDidViewVisibilityChangeMicroTaskQueue = new AsapEvent();
|
|
2690
2691
|
this.onDidViewVisibilityChangeMicroTaskQueue = this._onDidViewVisibilityChangeMicroTaskQueue.onEvent;
|
|
2692
|
+
this.classNames = [];
|
|
2691
2693
|
this.element.style.height = '100%';
|
|
2692
2694
|
this.element.style.width = '100%';
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2696
|
+
for (const className of this.classNames) {
|
|
2697
|
+
toggleClass(this.element, className, true);
|
|
2695
2698
|
}
|
|
2696
2699
|
options.parentElement.appendChild(this.element);
|
|
2697
2700
|
this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
|
|
@@ -2716,6 +2719,18 @@
|
|
|
2716
2719
|
isVisible(panel) {
|
|
2717
2720
|
return this.gridview.isViewVisible(getGridLocation(panel.element));
|
|
2718
2721
|
}
|
|
2722
|
+
updateOptions(options) {
|
|
2723
|
+
var _a, _b;
|
|
2724
|
+
if ('className' in options) {
|
|
2725
|
+
for (const className of this.classNames) {
|
|
2726
|
+
toggleClass(this.element, className, false);
|
|
2727
|
+
}
|
|
2728
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
2729
|
+
for (const className of this.classNames) {
|
|
2730
|
+
toggleClass(this.element, className, true);
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2719
2734
|
maximizeGroup(panel) {
|
|
2720
2735
|
this.gridview.maximizeView(panel);
|
|
2721
2736
|
this.doSetGroupActive(panel);
|
|
@@ -7804,6 +7819,7 @@
|
|
|
7804
7819
|
}
|
|
7805
7820
|
updateOptions(options) {
|
|
7806
7821
|
var _a, _b;
|
|
7822
|
+
super.updateOptions(options);
|
|
7807
7823
|
const changed_floatingGroupBounds = 'floatingGroupBounds' in options &&
|
|
7808
7824
|
options.floatingGroupBounds !== this.options.floatingGroupBounds;
|
|
7809
7825
|
const changed_rootOverlayOptions = 'rootOverlayModel' in options &&
|
|
@@ -8748,6 +8764,7 @@
|
|
|
8748
8764
|
}
|
|
8749
8765
|
}
|
|
8750
8766
|
updateOptions(options) {
|
|
8767
|
+
super.updateOptions(options);
|
|
8751
8768
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
8752
8769
|
this.gridview.orientation !== options.orientation;
|
|
8753
8770
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9015,6 +9032,7 @@
|
|
|
9015
9032
|
: this.splitview.orthogonalSize;
|
|
9016
9033
|
}
|
|
9017
9034
|
constructor(parentElement, options) {
|
|
9035
|
+
var _a, _b;
|
|
9018
9036
|
super(parentElement, options.disableAutoResizing);
|
|
9019
9037
|
this._splitviewChangeDisposable = new MutableDisposable();
|
|
9020
9038
|
this._panels = new Map();
|
|
@@ -9026,8 +9044,10 @@
|
|
|
9026
9044
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9027
9045
|
this._onDidLayoutChange = new Emitter();
|
|
9028
9046
|
this.onDidLayoutChange = this._onDidLayoutChange.event;
|
|
9029
|
-
|
|
9030
|
-
|
|
9047
|
+
this.classNames = [];
|
|
9048
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9049
|
+
for (const className of this.classNames) {
|
|
9050
|
+
toggleClass(this.element, className, true);
|
|
9031
9051
|
}
|
|
9032
9052
|
this._options = options;
|
|
9033
9053
|
if (!options.components) {
|
|
@@ -9040,6 +9060,16 @@
|
|
|
9040
9060
|
this.addDisposables(this._onDidAddView, this._onDidLayoutfromJSON, this._onDidRemoveView, this._onDidLayoutChange);
|
|
9041
9061
|
}
|
|
9042
9062
|
updateOptions(options) {
|
|
9063
|
+
var _a, _b;
|
|
9064
|
+
if ('className' in options) {
|
|
9065
|
+
for (const className of this.classNames) {
|
|
9066
|
+
toggleClass(this.element, className, false);
|
|
9067
|
+
}
|
|
9068
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9069
|
+
for (const className of this.classNames) {
|
|
9070
|
+
toggleClass(this.element, className, true);
|
|
9071
|
+
}
|
|
9072
|
+
}
|
|
9043
9073
|
const hasOrientationChanged = typeof options.orientation === 'string' &&
|
|
9044
9074
|
this.options.orientation !== options.orientation;
|
|
9045
9075
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
@@ -9342,6 +9372,7 @@
|
|
|
9342
9372
|
return this._options;
|
|
9343
9373
|
}
|
|
9344
9374
|
constructor(parentElement, options) {
|
|
9375
|
+
var _a, _b;
|
|
9345
9376
|
super(parentElement, options.disableAutoResizing);
|
|
9346
9377
|
this._id = nextLayoutId.next();
|
|
9347
9378
|
this._disposable = new MutableDisposable();
|
|
@@ -9356,10 +9387,12 @@
|
|
|
9356
9387
|
this.onDidAddView = this._onDidAddView.event;
|
|
9357
9388
|
this._onDidRemoveView = new Emitter();
|
|
9358
9389
|
this.onDidRemoveView = this._onDidRemoveView.event;
|
|
9359
|
-
|
|
9360
|
-
this.element.classList.add(options.className);
|
|
9361
|
-
}
|
|
9390
|
+
this.classNames = [];
|
|
9362
9391
|
this.addDisposables(this._onDidLayoutChange, this._onDidLayoutfromJSON, this._onDidDrop, this._onDidAddView, this._onDidRemoveView);
|
|
9392
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9393
|
+
for (const className of this.classNames) {
|
|
9394
|
+
toggleClass(this.element, className, true);
|
|
9395
|
+
}
|
|
9363
9396
|
this._options = options;
|
|
9364
9397
|
if (!options.components) {
|
|
9365
9398
|
options.components = {};
|
|
@@ -9381,6 +9414,16 @@
|
|
|
9381
9414
|
//noop
|
|
9382
9415
|
}
|
|
9383
9416
|
updateOptions(options) {
|
|
9417
|
+
var _a, _b;
|
|
9418
|
+
if ('className' in options) {
|
|
9419
|
+
for (const className of this.classNames) {
|
|
9420
|
+
toggleClass(this.element, className, false);
|
|
9421
|
+
}
|
|
9422
|
+
this.classNames = (_b = (_a = options.className) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
|
|
9423
|
+
for (const className of this.classNames) {
|
|
9424
|
+
toggleClass(this.element, className, true);
|
|
9425
|
+
}
|
|
9426
|
+
}
|
|
9384
9427
|
this._options = Object.assign(Object.assign({}, this.options), options);
|
|
9385
9428
|
}
|
|
9386
9429
|
addPanel(options) {
|