@worktile/theia 13.0.12 → 13.0.13
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/components/column-resize/overlay-handle.component.d.ts +2 -2
- package/esm2020/components/column-resize/overlay-handle.component.mjs +7 -2
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +2 -1
- package/esm2020/plugins/table/components/td/td.component.mjs +2 -1
- package/esm2020/plugins/table/table.store.mjs +3 -3
- package/esm2020/services/table-contextmenu.service.mjs +2 -2
- package/fesm2015/worktile-theia.mjs +10 -4
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +10 -3
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6956,6 +6956,7 @@ class TheToolbarDropdownComponent extends TheBaseToolbarDropdown {
|
|
|
6956
6956
|
}
|
|
6957
6957
|
preventDefault(event) {
|
|
6958
6958
|
event.preventDefault();
|
|
6959
|
+
event.stopPropagation();
|
|
6959
6960
|
}
|
|
6960
6961
|
openDropdownPopover(event) {
|
|
6961
6962
|
this.dropdownPopoverRef = this.thyPopover.open(this.dropdownTemplate, {
|
|
@@ -8199,7 +8200,7 @@ class TableStore {
|
|
|
8199
8200
|
}
|
|
8200
8201
|
setDangerousRows() {
|
|
8201
8202
|
const cells = this.selectedCells;
|
|
8202
|
-
const rows = uniq(map(cells, '
|
|
8203
|
+
const rows = uniq(map(cells, 'row')).valueOf();
|
|
8203
8204
|
const pos = this.createTablePosition();
|
|
8204
8205
|
const result = [];
|
|
8205
8206
|
this.dangerousRowsIndex = rows;
|
|
@@ -8219,7 +8220,7 @@ class TableStore {
|
|
|
8219
8220
|
}
|
|
8220
8221
|
setDangerousColumns() {
|
|
8221
8222
|
const cells = this.selectedCells;
|
|
8222
|
-
const cols = uniq(map(cells, 'col'));
|
|
8223
|
+
const cols = uniq(map(cells, 'col')).valueOf();
|
|
8223
8224
|
const pos = this.createTablePosition();
|
|
8224
8225
|
const result = [];
|
|
8225
8226
|
this.dangerousColumnsIndex = cols;
|
|
@@ -8833,6 +8834,7 @@ class TheTableContextMenuService {
|
|
|
8833
8834
|
actionHandle: () => {
|
|
8834
8835
|
this.tableStore.removeDangerousRows();
|
|
8835
8836
|
this.tableStore.clearDangerousCells();
|
|
8837
|
+
this.tableStore.clearSelectedCells();
|
|
8836
8838
|
},
|
|
8837
8839
|
activeHandle: () => {
|
|
8838
8840
|
this.tableStore.setDangerousRows();
|
|
@@ -8908,7 +8910,6 @@ class TheTableContextMenuService {
|
|
|
8908
8910
|
y: event.y
|
|
8909
8911
|
},
|
|
8910
8912
|
hasBackdrop: false,
|
|
8911
|
-
minWidth: 0,
|
|
8912
8913
|
placement: 'bottomLeft',
|
|
8913
8914
|
viewContainerRef: this.theContextService.getOptions().viewContainerRef,
|
|
8914
8915
|
manualClosure: true,
|
|
@@ -9903,6 +9904,11 @@ class TheColumnResizeOverlayHandleComponent {
|
|
|
9903
9904
|
}
|
|
9904
9905
|
ngAfterViewInit() {
|
|
9905
9906
|
this._listenForMouseEvents();
|
|
9907
|
+
const overlayPane = this.elementRef.nativeElement.closest('.cdk-overlay-pane');
|
|
9908
|
+
// 解决鼠标 hover 在拖拽线上阻断浏览器滚动
|
|
9909
|
+
fromEvent(overlayPane, 'wheel').pipe(take(1)).subscribe(() => {
|
|
9910
|
+
overlayPane.style.pointerEvents = 'none';
|
|
9911
|
+
});
|
|
9906
9912
|
}
|
|
9907
9913
|
_listenForMouseEvents() {
|
|
9908
9914
|
this.ngZone.runOutsideAngular(() => {
|
|
@@ -10478,6 +10484,7 @@ class TheTdComponent extends TheBaseElementComponent {
|
|
|
10478
10484
|
// Always position the overlay based on left-indexed coordinates.
|
|
10479
10485
|
disposeOnNavigation: true,
|
|
10480
10486
|
positionStrategy: this.createPositionStrategy(),
|
|
10487
|
+
scrollStrategy: this.overlay.scrollStrategies.close(),
|
|
10481
10488
|
...overlayOption
|
|
10482
10489
|
});
|
|
10483
10490
|
}
|