dockview-core 1.15.0 → 1.15.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/api/component.api.d.ts +1 -0
- package/dist/cjs/api/component.api.js +7 -0
- package/dist/cjs/dockview/dockviewComponent.d.ts +7 -3
- package/dist/cjs/dockview/dockviewComponent.js +18 -8
- package/dist/cjs/dockview/options.d.ts +2 -2
- package/dist/cjs/gridview/baseComponentGridview.js +1 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/dockview-core.amd.js +19 -10
- 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 +19 -10
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +19 -10
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +19 -10
- 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 +19 -10
- 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 +19 -10
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/api/component.api.d.ts +1 -0
- package/dist/esm/api/component.api.js +3 -0
- package/dist/esm/dockview/dockviewComponent.d.ts +7 -3
- package/dist/esm/dockview/dockviewComponent.js +14 -8
- package/dist/esm/dockview/options.d.ts +2 -2
- package/dist/esm/gridview/baseComponentGridview.js +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 1.15.
|
|
3
|
+
* @version 1.15.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2772,7 +2772,7 @@
|
|
|
2772
2772
|
this.doSetGroupActive(next);
|
|
2773
2773
|
}
|
|
2774
2774
|
layout(width, height, forceResize) {
|
|
2775
|
-
const different = forceResize
|
|
2775
|
+
const different = forceResize || width !== this.width || height !== this.height;
|
|
2776
2776
|
if (!different) {
|
|
2777
2777
|
return;
|
|
2778
2778
|
}
|
|
@@ -3245,6 +3245,9 @@
|
|
|
3245
3245
|
get totalPanels() {
|
|
3246
3246
|
return this.component.totalPanels;
|
|
3247
3247
|
}
|
|
3248
|
+
get gap() {
|
|
3249
|
+
return this.component.gap;
|
|
3250
|
+
}
|
|
3248
3251
|
/**
|
|
3249
3252
|
* Invoked when the active group changes. May be undefined if no group is active.
|
|
3250
3253
|
*/
|
|
@@ -7197,6 +7200,9 @@
|
|
|
7197
7200
|
get api() {
|
|
7198
7201
|
return this._api;
|
|
7199
7202
|
}
|
|
7203
|
+
get gap() {
|
|
7204
|
+
return this.gridview.margin;
|
|
7205
|
+
}
|
|
7200
7206
|
constructor(options) {
|
|
7201
7207
|
var _a;
|
|
7202
7208
|
super({
|
|
@@ -7366,7 +7372,7 @@
|
|
|
7366
7372
|
var _a, _b, _c;
|
|
7367
7373
|
if (itemToPopout instanceof DockviewPanel &&
|
|
7368
7374
|
itemToPopout.group.size === 1) {
|
|
7369
|
-
return this.addPopoutGroup(itemToPopout.group);
|
|
7375
|
+
return this.addPopoutGroup(itemToPopout.group, options);
|
|
7370
7376
|
}
|
|
7371
7377
|
const theme = getDockviewTheme(this.gridview.element);
|
|
7372
7378
|
const element = this.element;
|
|
@@ -7584,14 +7590,14 @@
|
|
|
7584
7590
|
else {
|
|
7585
7591
|
result.top = DEFAULT_FLOATING_GROUP_POSITION.top;
|
|
7586
7592
|
}
|
|
7587
|
-
if (
|
|
7588
|
-
result.width = Math.max(options.
|
|
7593
|
+
if (typeof options.width === 'number') {
|
|
7594
|
+
result.width = Math.max(options.width, 0);
|
|
7589
7595
|
}
|
|
7590
7596
|
else {
|
|
7591
7597
|
result.width = DEFAULT_FLOATING_GROUP_POSITION.width;
|
|
7592
7598
|
}
|
|
7593
|
-
if (
|
|
7594
|
-
result.height = Math.max(options.
|
|
7599
|
+
if (typeof options.height === 'number') {
|
|
7600
|
+
result.height = Math.max(options.height, 0);
|
|
7595
7601
|
}
|
|
7596
7602
|
else {
|
|
7597
7603
|
result.height = DEFAULT_FLOATING_GROUP_POSITION.height;
|
|
@@ -7722,7 +7728,10 @@
|
|
|
7722
7728
|
if (changed_rootOverlayOptions) {
|
|
7723
7729
|
this._rootDropTarget.setOverlayModel(options.rootOverlayModel);
|
|
7724
7730
|
}
|
|
7725
|
-
if (
|
|
7731
|
+
if (
|
|
7732
|
+
// if explicitly set as `undefined`
|
|
7733
|
+
'gap' in options &&
|
|
7734
|
+
options.gap === undefined) {
|
|
7726
7735
|
this.gridview.margin = 0;
|
|
7727
7736
|
}
|
|
7728
7737
|
if (typeof options.gap === 'number') {
|
|
@@ -8023,11 +8032,11 @@
|
|
|
8023
8032
|
if (options.floating) {
|
|
8024
8033
|
const group = this.createGroup();
|
|
8025
8034
|
this._onDidAddGroup.fire(group);
|
|
8026
|
-
const
|
|
8035
|
+
const floatingGroupOptions = typeof options.floating === 'object' &&
|
|
8027
8036
|
options.floating !== null
|
|
8028
8037
|
? options.floating
|
|
8029
8038
|
: {};
|
|
8030
|
-
this.addFloatingGroup(group, Object.assign(Object.assign({},
|
|
8039
|
+
this.addFloatingGroup(group, Object.assign(Object.assign({}, floatingGroupOptions), { inDragMode: false, skipRemoveGroup: true, skipActiveGroup: true }));
|
|
8031
8040
|
panel = this.createPanel(options, group);
|
|
8032
8041
|
group.model.openPanel(panel, {
|
|
8033
8042
|
skipSetActive: options.inactive,
|