dockview-core 2.1.2 → 2.1.4
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/dockview/dockviewComponent.d.ts +0 -1
- package/dist/cjs/dockview/dockviewComponent.js +9 -16
- package/dist/dockview-core.amd.js +10 -17
- 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 +10 -17
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +10 -17
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +10 -17
- 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 +10 -17
- 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 +10 -17
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/dockview/dockviewComponent.d.ts +0 -1
- package/dist/esm/dockview/dockviewComponent.js +9 -16
- package/package.json +1 -1
|
@@ -208,7 +208,6 @@ export declare class DockviewComponent extends BaseGrid<DockviewGroupPanel> impl
|
|
|
208
208
|
get gap(): number;
|
|
209
209
|
get floatingGroups(): DockviewFloatingGroupPanel[];
|
|
210
210
|
constructor(parentElement: HTMLElement, options: DockviewComponentOptions);
|
|
211
|
-
dispose(): void;
|
|
212
211
|
setVisible(panel: DockviewGroupPanel, visible: boolean): void;
|
|
213
212
|
addPopoutGroup(itemToPopout: DockviewPanel | DockviewGroupPanel, options?: DockviewPopoutGroupOptions): Promise<boolean>;
|
|
214
213
|
addFloatingGroup(item: DockviewPanel | DockviewGroupPanel, options?: FloatingGroupOptionsInternal): void;
|
|
@@ -245,10 +245,6 @@ export class DockviewComponent extends BaseGrid {
|
|
|
245
245
|
this._api = new DockviewApi(this);
|
|
246
246
|
this.updateWatermark();
|
|
247
247
|
}
|
|
248
|
-
dispose() {
|
|
249
|
-
this.clear(); // explicitly clear the layout before cleaning up
|
|
250
|
-
super.dispose();
|
|
251
|
-
}
|
|
252
248
|
setVisible(panel, visible) {
|
|
253
249
|
switch (panel.api.location.type) {
|
|
254
250
|
case 'grid':
|
|
@@ -432,30 +428,29 @@ export class DockviewComponent extends BaseGrid {
|
|
|
432
428
|
}
|
|
433
429
|
}
|
|
434
430
|
else if (this.getPanel(group.id)) {
|
|
435
|
-
|
|
431
|
+
group.model.renderContainer =
|
|
432
|
+
this.overlayRenderContainer;
|
|
433
|
+
returnedGroup = group;
|
|
436
434
|
if (floatingBox) {
|
|
437
|
-
this.addFloatingGroup(
|
|
435
|
+
this.addFloatingGroup(group, {
|
|
438
436
|
height: floatingBox.height,
|
|
439
437
|
width: floatingBox.width,
|
|
440
438
|
position: floatingBox,
|
|
441
439
|
});
|
|
442
440
|
}
|
|
443
441
|
else {
|
|
444
|
-
this.doRemoveGroup(
|
|
442
|
+
this.doRemoveGroup(group, {
|
|
445
443
|
skipDispose: true,
|
|
446
444
|
skipActive: true,
|
|
447
445
|
skipPopoutReturn: true,
|
|
448
446
|
});
|
|
449
|
-
|
|
450
|
-
this.overlayRenderContainer;
|
|
451
|
-
removedGroup.model.location = { type: 'grid' };
|
|
452
|
-
returnedGroup = removedGroup;
|
|
447
|
+
group.model.location = { type: 'grid' };
|
|
453
448
|
this.movingLock(() => {
|
|
454
449
|
// suppress group add events since the group already exists
|
|
455
|
-
this.doAddGroup(
|
|
450
|
+
this.doAddGroup(group, [0]);
|
|
456
451
|
});
|
|
457
452
|
}
|
|
458
|
-
this.doSetGroupAndPanelActive(
|
|
453
|
+
this.doSetGroupAndPanelActive(group);
|
|
459
454
|
}
|
|
460
455
|
}));
|
|
461
456
|
this._popoutGroups.push(value);
|
|
@@ -1348,9 +1343,7 @@ export class DockviewComponent extends BaseGrid {
|
|
|
1348
1343
|
}));
|
|
1349
1344
|
this.doRemoveGroup(sourceGroup, { skipActive: true });
|
|
1350
1345
|
const newGroup = this.createGroupAtLocation(targetLocation);
|
|
1351
|
-
this.movingLock(() => newGroup.model.openPanel(removedPanel
|
|
1352
|
-
skipSetActive: true,
|
|
1353
|
-
}));
|
|
1346
|
+
this.movingLock(() => newGroup.model.openPanel(removedPanel));
|
|
1354
1347
|
this.doSetGroupAndPanelActive(newGroup);
|
|
1355
1348
|
this._onDidMovePanel.fire({
|
|
1356
1349
|
panel: this.getGroupPanel(sourceItemId),
|