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.
@@ -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;
@@ -369,10 +369,6 @@ var DockviewComponent = /** @class */ (function (_super) {
369
369
  enumerable: false,
370
370
  configurable: true
371
371
  });
372
- DockviewComponent.prototype.dispose = function () {
373
- this.clear(); // explicitly clear the layout before cleaning up
374
- _super.prototype.dispose.call(this);
375
- };
376
372
  DockviewComponent.prototype.setVisible = function (panel, visible) {
377
373
  switch (panel.api.location.type) {
378
374
  case 'grid':
@@ -563,30 +559,29 @@ var DockviewComponent = /** @class */ (function (_super) {
563
559
  }
564
560
  }
565
561
  else if (_this.getPanel(group.id)) {
566
- var removedGroup_1 = group;
562
+ group.model.renderContainer =
563
+ _this.overlayRenderContainer;
564
+ returnedGroup = group;
567
565
  if (floatingBox) {
568
- _this.addFloatingGroup(removedGroup_1, {
566
+ _this.addFloatingGroup(group, {
569
567
  height: floatingBox.height,
570
568
  width: floatingBox.width,
571
569
  position: floatingBox,
572
570
  });
573
571
  }
574
572
  else {
575
- _this.doRemoveGroup(removedGroup_1, {
573
+ _this.doRemoveGroup(group, {
576
574
  skipDispose: true,
577
575
  skipActive: true,
578
576
  skipPopoutReturn: true,
579
577
  });
580
- removedGroup_1.model.renderContainer =
581
- _this.overlayRenderContainer;
582
- removedGroup_1.model.location = { type: 'grid' };
583
- returnedGroup = removedGroup_1;
578
+ group.model.location = { type: 'grid' };
584
579
  _this.movingLock(function () {
585
580
  // suppress group add events since the group already exists
586
- _this.doAddGroup(removedGroup_1, [0]);
581
+ _this.doAddGroup(group, [0]);
587
582
  });
588
583
  }
589
- _this.doSetGroupAndPanelActive(removedGroup_1);
584
+ _this.doSetGroupAndPanelActive(group);
590
585
  }
591
586
  }));
592
587
  _this._popoutGroups.push(value);
@@ -1635,9 +1630,7 @@ var DockviewComponent = /** @class */ (function (_super) {
1635
1630
  this.doRemoveGroup(sourceGroup, { skipActive: true });
1636
1631
  var newGroup_1 = this.createGroupAtLocation(targetLocation);
1637
1632
  this.movingLock(function () {
1638
- return newGroup_1.model.openPanel(removedPanel_2, {
1639
- skipSetActive: true,
1640
- });
1633
+ return newGroup_1.model.openPanel(removedPanel_2);
1641
1634
  });
1642
1635
  this.doSetGroupAndPanelActive(newGroup_1);
1643
1636
  this._onDidMovePanel.fire({
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 2.1.2
3
+ * @version 2.1.4
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -7663,10 +7663,6 @@ define(['exports'], (function (exports) { 'use strict';
7663
7663
  this._api = new DockviewApi(this);
7664
7664
  this.updateWatermark();
7665
7665
  }
7666
- dispose() {
7667
- this.clear(); // explicitly clear the layout before cleaning up
7668
- super.dispose();
7669
- }
7670
7666
  setVisible(panel, visible) {
7671
7667
  switch (panel.api.location.type) {
7672
7668
  case 'grid':
@@ -7850,30 +7846,29 @@ define(['exports'], (function (exports) { 'use strict';
7850
7846
  }
7851
7847
  }
7852
7848
  else if (this.getPanel(group.id)) {
7853
- const removedGroup = group;
7849
+ group.model.renderContainer =
7850
+ this.overlayRenderContainer;
7851
+ returnedGroup = group;
7854
7852
  if (floatingBox) {
7855
- this.addFloatingGroup(removedGroup, {
7853
+ this.addFloatingGroup(group, {
7856
7854
  height: floatingBox.height,
7857
7855
  width: floatingBox.width,
7858
7856
  position: floatingBox,
7859
7857
  });
7860
7858
  }
7861
7859
  else {
7862
- this.doRemoveGroup(removedGroup, {
7860
+ this.doRemoveGroup(group, {
7863
7861
  skipDispose: true,
7864
7862
  skipActive: true,
7865
7863
  skipPopoutReturn: true,
7866
7864
  });
7867
- removedGroup.model.renderContainer =
7868
- this.overlayRenderContainer;
7869
- removedGroup.model.location = { type: 'grid' };
7870
- returnedGroup = removedGroup;
7865
+ group.model.location = { type: 'grid' };
7871
7866
  this.movingLock(() => {
7872
7867
  // suppress group add events since the group already exists
7873
- this.doAddGroup(removedGroup, [0]);
7868
+ this.doAddGroup(group, [0]);
7874
7869
  });
7875
7870
  }
7876
- this.doSetGroupAndPanelActive(removedGroup);
7871
+ this.doSetGroupAndPanelActive(group);
7877
7872
  }
7878
7873
  }));
7879
7874
  this._popoutGroups.push(value);
@@ -8764,9 +8759,7 @@ define(['exports'], (function (exports) { 'use strict';
8764
8759
  }));
8765
8760
  this.doRemoveGroup(sourceGroup, { skipActive: true });
8766
8761
  const newGroup = this.createGroupAtLocation(targetLocation);
8767
- this.movingLock(() => newGroup.model.openPanel(removedPanel, {
8768
- skipSetActive: true,
8769
- }));
8762
+ this.movingLock(() => newGroup.model.openPanel(removedPanel));
8770
8763
  this.doSetGroupAndPanelActive(newGroup);
8771
8764
  this._onDidMovePanel.fire({
8772
8765
  panel: this.getGroupPanel(sourceItemId),