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
package/dist/dockview-core.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -2802,7 +2802,7 @@
|
|
|
2802
2802
|
this.doSetGroupActive(next);
|
|
2803
2803
|
}
|
|
2804
2804
|
layout(width, height, forceResize) {
|
|
2805
|
-
const different = forceResize
|
|
2805
|
+
const different = forceResize || width !== this.width || height !== this.height;
|
|
2806
2806
|
if (!different) {
|
|
2807
2807
|
return;
|
|
2808
2808
|
}
|
|
@@ -3275,6 +3275,9 @@
|
|
|
3275
3275
|
get totalPanels() {
|
|
3276
3276
|
return this.component.totalPanels;
|
|
3277
3277
|
}
|
|
3278
|
+
get gap() {
|
|
3279
|
+
return this.component.gap;
|
|
3280
|
+
}
|
|
3278
3281
|
/**
|
|
3279
3282
|
* Invoked when the active group changes. May be undefined if no group is active.
|
|
3280
3283
|
*/
|
|
@@ -7227,6 +7230,9 @@
|
|
|
7227
7230
|
get api() {
|
|
7228
7231
|
return this._api;
|
|
7229
7232
|
}
|
|
7233
|
+
get gap() {
|
|
7234
|
+
return this.gridview.margin;
|
|
7235
|
+
}
|
|
7230
7236
|
constructor(options) {
|
|
7231
7237
|
var _a;
|
|
7232
7238
|
super({
|
|
@@ -7396,7 +7402,7 @@
|
|
|
7396
7402
|
var _a, _b, _c;
|
|
7397
7403
|
if (itemToPopout instanceof DockviewPanel &&
|
|
7398
7404
|
itemToPopout.group.size === 1) {
|
|
7399
|
-
return this.addPopoutGroup(itemToPopout.group);
|
|
7405
|
+
return this.addPopoutGroup(itemToPopout.group, options);
|
|
7400
7406
|
}
|
|
7401
7407
|
const theme = getDockviewTheme(this.gridview.element);
|
|
7402
7408
|
const element = this.element;
|
|
@@ -7614,14 +7620,14 @@
|
|
|
7614
7620
|
else {
|
|
7615
7621
|
result.top = DEFAULT_FLOATING_GROUP_POSITION.top;
|
|
7616
7622
|
}
|
|
7617
|
-
if (
|
|
7618
|
-
result.width = Math.max(options.
|
|
7623
|
+
if (typeof options.width === 'number') {
|
|
7624
|
+
result.width = Math.max(options.width, 0);
|
|
7619
7625
|
}
|
|
7620
7626
|
else {
|
|
7621
7627
|
result.width = DEFAULT_FLOATING_GROUP_POSITION.width;
|
|
7622
7628
|
}
|
|
7623
|
-
if (
|
|
7624
|
-
result.height = Math.max(options.
|
|
7629
|
+
if (typeof options.height === 'number') {
|
|
7630
|
+
result.height = Math.max(options.height, 0);
|
|
7625
7631
|
}
|
|
7626
7632
|
else {
|
|
7627
7633
|
result.height = DEFAULT_FLOATING_GROUP_POSITION.height;
|
|
@@ -7752,7 +7758,10 @@
|
|
|
7752
7758
|
if (changed_rootOverlayOptions) {
|
|
7753
7759
|
this._rootDropTarget.setOverlayModel(options.rootOverlayModel);
|
|
7754
7760
|
}
|
|
7755
|
-
if (
|
|
7761
|
+
if (
|
|
7762
|
+
// if explicitly set as `undefined`
|
|
7763
|
+
'gap' in options &&
|
|
7764
|
+
options.gap === undefined) {
|
|
7756
7765
|
this.gridview.margin = 0;
|
|
7757
7766
|
}
|
|
7758
7767
|
if (typeof options.gap === 'number') {
|
|
@@ -8053,11 +8062,11 @@
|
|
|
8053
8062
|
if (options.floating) {
|
|
8054
8063
|
const group = this.createGroup();
|
|
8055
8064
|
this._onDidAddGroup.fire(group);
|
|
8056
|
-
const
|
|
8065
|
+
const floatingGroupOptions = typeof options.floating === 'object' &&
|
|
8057
8066
|
options.floating !== null
|
|
8058
8067
|
? options.floating
|
|
8059
8068
|
: {};
|
|
8060
|
-
this.addFloatingGroup(group, Object.assign(Object.assign({},
|
|
8069
|
+
this.addFloatingGroup(group, Object.assign(Object.assign({}, floatingGroupOptions), { inDragMode: false, skipRemoveGroup: true, skipActiveGroup: true }));
|
|
8061
8070
|
panel = this.createPanel(options, group);
|
|
8062
8071
|
group.model.openPanel(panel, {
|
|
8063
8072
|
skipSetActive: options.inactive,
|