@worktile/theia 13.0.10 → 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/components/inline-toolbar/inline-toolbar.component.scss +1 -0
- package/components/toolbar/toolbar.component.d.ts +1 -0
- package/components/toolbar-item/toolbar-item.component.d.ts +2 -1
- package/esm2020/components/column-resize/overlay-handle.component.mjs +7 -2
- package/esm2020/components/toolbar/toolbar.component.mjs +6 -3
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +2 -1
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +3 -2
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +10 -9
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +1 -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 +25 -14
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +25 -13
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/variables.scss +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
|
}
|
|
@@ -11323,8 +11330,9 @@ class TheToolbarItemComponent extends TheBaseToolbarItem {
|
|
|
11323
11330
|
constructor(ngZone) {
|
|
11324
11331
|
super();
|
|
11325
11332
|
this.ngZone = ngZone;
|
|
11326
|
-
this.itemMode = ToolbarItemMode.horizontal;
|
|
11327
11333
|
this.ToolbarItemMode = ToolbarItemMode;
|
|
11334
|
+
this.className = 'the-toolbar-item';
|
|
11335
|
+
this.itemMode = ToolbarItemMode.horizontal;
|
|
11328
11336
|
}
|
|
11329
11337
|
toggleDropdown(event) {
|
|
11330
11338
|
super.execute(event);
|
|
@@ -11354,7 +11362,7 @@ class TheToolbarItemComponent extends TheBaseToolbarItem {
|
|
|
11354
11362
|
}
|
|
11355
11363
|
}
|
|
11356
11364
|
TheToolbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TheToolbarItemComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
11357
|
-
TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" },
|
|
11365
|
+
TheToolbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" }, properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11358
11366
|
<ng-container *ngIf="itemMode === ToolbarItemMode.horizontal; else selectionItem">
|
|
11359
11367
|
<a
|
|
11360
11368
|
href="javascript:;"
|
|
@@ -11403,12 +11411,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11403
11411
|
</ng-template>
|
|
11404
11412
|
<ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>
|
|
11405
11413
|
<ng-container #toolbarContainer></ng-container>
|
|
11406
|
-
|
|
11407
|
-
host: {
|
|
11408
|
-
class: 'the-toolbar-item'
|
|
11409
|
-
}
|
|
11414
|
+
`
|
|
11410
11415
|
}]
|
|
11411
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: {
|
|
11416
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { className: [{
|
|
11417
|
+
type: HostBinding,
|
|
11418
|
+
args: ['class']
|
|
11419
|
+
}], itemMode: [{
|
|
11412
11420
|
type: Input
|
|
11413
11421
|
}], toolbarContainer: [{
|
|
11414
11422
|
type: ViewChild,
|
|
@@ -12541,12 +12549,15 @@ class TheToolbarComponent {
|
|
|
12541
12549
|
* └───────────────────────────────────────────────────────────────────────────────────────────────┘
|
|
12542
12550
|
* split width: 17px
|
|
12543
12551
|
* item width: default item: 35px; dropdown item: 42px
|
|
12552
|
+
* default paddingRight: 4px
|
|
12544
12553
|
* set aside 50px
|
|
12545
12554
|
*/
|
|
12546
12555
|
toolbarItemsCompose() {
|
|
12547
12556
|
let elementWidth = this.isMore ? this.elementWidth : null;
|
|
12548
|
-
|
|
12549
|
-
const
|
|
12557
|
+
// dropdown item + paddingRight
|
|
12558
|
+
const maxItemWidth = 46;
|
|
12559
|
+
// default item + paddingRight
|
|
12560
|
+
const defaultItemWidth = 36;
|
|
12550
12561
|
const splitWidth = 17;
|
|
12551
12562
|
const splitPadding = 8;
|
|
12552
12563
|
// special type
|
|
@@ -13502,7 +13513,8 @@ class TheToolbarGroupComponent {
|
|
|
13502
13513
|
origin: event.currentTarget,
|
|
13503
13514
|
viewContainerRef: this.viewContainerRef,
|
|
13504
13515
|
hasBackdrop: false,
|
|
13505
|
-
outsideClosable: true
|
|
13516
|
+
outsideClosable: true,
|
|
13517
|
+
manualClosure: true
|
|
13506
13518
|
});
|
|
13507
13519
|
this.groupPopoverRef.afterClosed().subscribe(() => {
|
|
13508
13520
|
this.activeChange();
|