dockview-angular 0.0.0-experimental-e3d91d1-20251227 → 0.0.0-experimental-9b12ca8-20251228
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/dockview-angular.amd.js +62 -22
- package/dist/dockview-angular.amd.js.map +1 -1
- package/dist/dockview-angular.amd.min.js +2 -2
- package/dist/dockview-angular.amd.min.js.map +1 -1
- package/dist/dockview-angular.amd.min.noStyle.js +2 -2
- package/dist/dockview-angular.amd.min.noStyle.js.map +1 -1
- package/dist/dockview-angular.amd.noStyle.js +62 -22
- package/dist/dockview-angular.amd.noStyle.js.map +1 -1
- package/dist/dockview-angular.cjs.js +62 -22
- package/dist/dockview-angular.cjs.js.map +1 -1
- package/dist/dockview-angular.esm.js +62 -23
- package/dist/dockview-angular.esm.js.map +1 -1
- package/dist/dockview-angular.esm.min.js +2 -2
- package/dist/dockview-angular.esm.min.js.map +1 -1
- package/dist/dockview-angular.js +62 -22
- package/dist/dockview-angular.js.map +1 -1
- package/dist/dockview-angular.min.js +2 -2
- package/dist/dockview-angular.min.js.map +1 -1
- package/dist/dockview-angular.min.noStyle.js +2 -2
- package/dist/dockview-angular.min.noStyle.js.map +1 -1
- package/dist/dockview-angular.noStyle.js +62 -22
- package/dist/dockview-angular.noStyle.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-angular
|
|
3
|
-
* @version 0.0.0-experimental-
|
|
3
|
+
* @version 0.0.0-experimental-9b12ca8-20251228
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -5132,7 +5132,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
5132
5132
|
}
|
|
5133
5133
|
}
|
|
5134
5134
|
|
|
5135
|
-
class
|
|
5135
|
+
class DockviewWillShowOverlayLocationEvent {
|
|
5136
5136
|
get kind() {
|
|
5137
5137
|
return this.options.kind;
|
|
5138
5138
|
}
|
|
@@ -5480,7 +5480,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
5480
5480
|
index: this._tabs.findIndex((x) => x.value === tab),
|
|
5481
5481
|
});
|
|
5482
5482
|
}), tab.onWillShowOverlay((event) => {
|
|
5483
|
-
this._onWillShowOverlay.fire(new
|
|
5483
|
+
this._onWillShowOverlay.fire(new DockviewWillShowOverlayLocationEvent(event, {
|
|
5484
5484
|
kind: 'tab',
|
|
5485
5485
|
panel: this.group.activePanel,
|
|
5486
5486
|
api: this.accessor.api,
|
|
@@ -5644,7 +5644,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
5644
5644
|
index: this.tabs.size,
|
|
5645
5645
|
});
|
|
5646
5646
|
}), this.voidContainer.onWillShowOverlay((event) => {
|
|
5647
|
-
this._onWillShowOverlay.fire(new
|
|
5647
|
+
this._onWillShowOverlay.fire(new DockviewWillShowOverlayLocationEvent(event, {
|
|
5648
5648
|
kind: 'header_space',
|
|
5649
5649
|
panel: this.group.activePanel,
|
|
5650
5650
|
api: this.accessor.api,
|
|
@@ -6038,7 +6038,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
6038
6038
|
}), this.tabsContainer.onWillShowOverlay((event) => {
|
|
6039
6039
|
this._onWillShowOverlay.fire(event);
|
|
6040
6040
|
}), this.contentContainer.dropTarget.onWillShowOverlay((event) => {
|
|
6041
|
-
this._onWillShowOverlay.fire(new
|
|
6041
|
+
this._onWillShowOverlay.fire(new DockviewWillShowOverlayLocationEvent(event, {
|
|
6042
6042
|
kind: 'content',
|
|
6043
6043
|
panel: this.activePanel,
|
|
6044
6044
|
api: this._api,
|
|
@@ -6714,7 +6714,19 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
6714
6714
|
this.onDidLocationChange = this._onDidLocationChange.event;
|
|
6715
6715
|
this._onDidActivePanelChange = new Emitter();
|
|
6716
6716
|
this.onDidActivePanelChange = this._onDidActivePanelChange.event;
|
|
6717
|
-
this.addDisposables(this._onDidLocationChange, this._onDidActivePanelChange)
|
|
6717
|
+
this.addDisposables(this._onDidLocationChange, this._onDidActivePanelChange, this._onDidVisibilityChange.event((event) => {
|
|
6718
|
+
// When becoming visible, apply any pending size change
|
|
6719
|
+
if (event.isVisible && this._pendingSize) {
|
|
6720
|
+
super.setSize(this._pendingSize);
|
|
6721
|
+
this._pendingSize = undefined;
|
|
6722
|
+
}
|
|
6723
|
+
}));
|
|
6724
|
+
}
|
|
6725
|
+
setSize(event) {
|
|
6726
|
+
// Always store the requested size
|
|
6727
|
+
this._pendingSize = Object.assign({}, event);
|
|
6728
|
+
// Apply the size change immediately
|
|
6729
|
+
super.setSize(event);
|
|
6718
6730
|
}
|
|
6719
6731
|
close() {
|
|
6720
6732
|
if (!this._group) {
|
|
@@ -7666,13 +7678,16 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
7666
7678
|
let right = undefined;
|
|
7667
7679
|
let width = undefined;
|
|
7668
7680
|
const moveTop = () => {
|
|
7669
|
-
|
|
7681
|
+
// When dragging top handle, constrain top position to prevent oversizing
|
|
7682
|
+
const maxTop = startPosition.originalY +
|
|
7670
7683
|
startPosition.originalHeight >
|
|
7671
7684
|
containerRect.height
|
|
7672
|
-
?
|
|
7685
|
+
? Math.max(0, containerRect.height -
|
|
7686
|
+
Overlay.MINIMUM_HEIGHT)
|
|
7673
7687
|
: Math.max(0, startPosition.originalY +
|
|
7674
7688
|
startPosition.originalHeight -
|
|
7675
|
-
Overlay.MINIMUM_HEIGHT)
|
|
7689
|
+
Overlay.MINIMUM_HEIGHT);
|
|
7690
|
+
top = clamp(y, 0, maxTop);
|
|
7676
7691
|
height =
|
|
7677
7692
|
startPosition.originalY +
|
|
7678
7693
|
startPosition.originalHeight -
|
|
@@ -7683,22 +7698,27 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
7683
7698
|
top =
|
|
7684
7699
|
startPosition.originalY -
|
|
7685
7700
|
startPosition.originalHeight;
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7701
|
+
// When dragging bottom handle, constrain height to container height
|
|
7702
|
+
const minHeight = top < 0 &&
|
|
7703
|
+
typeof this.options.minimumInViewportHeight ===
|
|
7704
|
+
'number'
|
|
7689
7705
|
? -top +
|
|
7690
7706
|
this.options.minimumInViewportHeight
|
|
7691
|
-
: Overlay.MINIMUM_HEIGHT
|
|
7707
|
+
: Overlay.MINIMUM_HEIGHT;
|
|
7708
|
+
const maxHeight = containerRect.height - Math.max(0, top);
|
|
7709
|
+
height = clamp(y - top, minHeight, maxHeight);
|
|
7692
7710
|
bottom = containerRect.height - top - height;
|
|
7693
7711
|
};
|
|
7694
7712
|
const moveLeft = () => {
|
|
7695
|
-
|
|
7713
|
+
const maxLeft = startPosition.originalX +
|
|
7696
7714
|
startPosition.originalWidth >
|
|
7697
7715
|
containerRect.width
|
|
7698
|
-
?
|
|
7716
|
+
? Math.max(0, containerRect.width -
|
|
7717
|
+
Overlay.MINIMUM_WIDTH) // Prevent extending beyong right edge
|
|
7699
7718
|
: Math.max(0, startPosition.originalX +
|
|
7700
7719
|
startPosition.originalWidth -
|
|
7701
|
-
Overlay.MINIMUM_WIDTH)
|
|
7720
|
+
Overlay.MINIMUM_WIDTH);
|
|
7721
|
+
left = clamp(x, 0, maxLeft); // min is 0 (Not -Infinity) to prevent dragging beyond left edge
|
|
7702
7722
|
width =
|
|
7703
7723
|
startPosition.originalX +
|
|
7704
7724
|
startPosition.originalWidth -
|
|
@@ -7709,12 +7729,15 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
7709
7729
|
left =
|
|
7710
7730
|
startPosition.originalX -
|
|
7711
7731
|
startPosition.originalWidth;
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7732
|
+
// When dragging right handle, constrain width to container width
|
|
7733
|
+
const minWidth = left < 0 &&
|
|
7734
|
+
typeof this.options.minimumInViewportWidth ===
|
|
7735
|
+
'number'
|
|
7715
7736
|
? -left +
|
|
7716
7737
|
this.options.minimumInViewportWidth
|
|
7717
|
-
: Overlay.MINIMUM_WIDTH
|
|
7738
|
+
: Overlay.MINIMUM_WIDTH;
|
|
7739
|
+
const maxWidth = containerRect.width - Math.max(0, left);
|
|
7740
|
+
width = clamp(x - left, minWidth, maxWidth);
|
|
7718
7741
|
right = containerRect.width - left - width;
|
|
7719
7742
|
};
|
|
7720
7743
|
switch (direction) {
|
|
@@ -8507,7 +8530,14 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
8507
8530
|
if (options.debug) {
|
|
8508
8531
|
this.addDisposables(new StrictEventsSequencing(this));
|
|
8509
8532
|
}
|
|
8510
|
-
this.addDisposables(this.rootDropTargetContainer, this.overlayRenderContainer, this._onWillDragPanel, this._onWillDragGroup, this._onWillShowOverlay, this._onDidActivePanelChange, this._onDidAddPanel, this._onDidRemovePanel, this._onDidLayoutFromJSON, this._onDidDrop, this._onWillDrop, this._onDidMovePanel, this.
|
|
8533
|
+
this.addDisposables(this.rootDropTargetContainer, this.overlayRenderContainer, this._onWillDragPanel, this._onWillDragGroup, this._onWillShowOverlay, this._onDidActivePanelChange, this._onDidAddPanel, this._onDidRemovePanel, this._onDidLayoutFromJSON, this._onDidDrop, this._onWillDrop, this._onDidMovePanel, this._onDidMovePanel.event(() => {
|
|
8534
|
+
/**
|
|
8535
|
+
* Update overlay positions after DOM layout completes to prevent 0×0 dimensions.
|
|
8536
|
+
* With defaultRenderer="always" this results in panel content not showing after move operations.
|
|
8537
|
+
* Debounced to avoid multiple calls when moving groups with multiple panels.
|
|
8538
|
+
*/
|
|
8539
|
+
this.debouncedUpdateAllPositions();
|
|
8540
|
+
}), this._onDidAddGroup, this._onDidRemoveGroup, this._onDidActiveGroupChange, this._onUnhandledDragOverEvent, this._onDidMaximizedGroupChange, this._onDidOptionsChange, this._onDidPopoutGroupSizeChange, this._onDidPopoutGroupPositionChange, this._onDidOpenPopoutWindowFail, this.onDidViewVisibilityChangeMicroTaskQueue(() => {
|
|
8511
8541
|
this.updateWatermark();
|
|
8512
8542
|
}), this.onDidAdd((event) => {
|
|
8513
8543
|
if (!this._moving) {
|
|
@@ -8544,7 +8574,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
8544
8574
|
// option only available when no panels in primary grid
|
|
8545
8575
|
return;
|
|
8546
8576
|
}
|
|
8547
|
-
this._onWillShowOverlay.fire(new
|
|
8577
|
+
this._onWillShowOverlay.fire(new DockviewWillShowOverlayLocationEvent(event, {
|
|
8548
8578
|
kind: 'edge',
|
|
8549
8579
|
panel: undefined,
|
|
8550
8580
|
api: this._api,
|
|
@@ -9711,6 +9741,15 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
9711
9741
|
}
|
|
9712
9742
|
return re;
|
|
9713
9743
|
}
|
|
9744
|
+
debouncedUpdateAllPositions() {
|
|
9745
|
+
if (this._updatePositionsFrameId !== undefined) {
|
|
9746
|
+
cancelAnimationFrame(this._updatePositionsFrameId);
|
|
9747
|
+
}
|
|
9748
|
+
this._updatePositionsFrameId = requestAnimationFrame(() => {
|
|
9749
|
+
this._updatePositionsFrameId = undefined;
|
|
9750
|
+
this.overlayRenderContainer.updateAllPositions();
|
|
9751
|
+
});
|
|
9752
|
+
}
|
|
9714
9753
|
movingLock(func) {
|
|
9715
9754
|
const isMoving = this._moving;
|
|
9716
9755
|
try {
|
|
@@ -13084,6 +13123,7 @@ define(['exports', '@angular/core', '@angular/common', 'rxjs'], (function (expor
|
|
|
13084
13123
|
exports.DockviewPanel = DockviewPanel;
|
|
13085
13124
|
exports.DockviewUnhandledDragOverEvent = DockviewUnhandledDragOverEvent;
|
|
13086
13125
|
exports.DockviewWillDropEvent = DockviewWillDropEvent;
|
|
13126
|
+
exports.DockviewWillShowOverlayLocationEvent = DockviewWillShowOverlayLocationEvent;
|
|
13087
13127
|
exports.DraggablePaneviewPanel = DraggablePaneviewPanel;
|
|
13088
13128
|
exports.Gridview = Gridview;
|
|
13089
13129
|
exports.GridviewApi = GridviewApi;
|