@worktile/theia 14.3.16 → 14.3.17
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/esm2020/plugins/table/components/table.component.mjs +3 -1
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +23 -25
- package/esm2020/plugins/table/table.editor.mjs +2 -9
- package/esm2020/plugins/table/table.store.mjs +6 -6
- package/esm2020/plugins/table/utils/handle-cell.mjs +5 -3
- package/esm2020/services/table-contextmenu.service.mjs +3 -1
- package/fesm2015/worktile-theia.mjs +36 -39
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +36 -39
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +5 -6
- package/plugins/table/table.store.d.ts +1 -1
|
@@ -6069,14 +6069,16 @@ function sortCell(cells) {
|
|
|
6069
6069
|
function setCellIndent(editor, indentType, child, at) {
|
|
6070
6070
|
var _a, _b;
|
|
6071
6071
|
const allowedTypes = IndentEditor.getAllowedTypes(editor);
|
|
6072
|
+
if (!Element$1.isElement(child) || !allowedTypes.includes(child.type)) {
|
|
6073
|
+
return;
|
|
6074
|
+
}
|
|
6072
6075
|
const maxIndent = (_b = (_a = getPluginOptions(editor, PluginKeys.indent)) === null || _a === void 0 ? void 0 : _a.maxIndent) !== null && _b !== void 0 ? _b : [];
|
|
6073
6076
|
let { indent } = child;
|
|
6074
6077
|
indent = indentType === Indents.indentRight ? (indent ? ++indent : 1) : indent ? --indent : 0;
|
|
6075
6078
|
if (indent <= maxIndent) {
|
|
6076
6079
|
Transforms.setNodes(editor, { indent }, {
|
|
6077
6080
|
at,
|
|
6078
|
-
mode: 'highest'
|
|
6079
|
-
match: n => Element$1.isElement(n) && allowedTypes.includes(n.type)
|
|
6081
|
+
mode: 'highest'
|
|
6080
6082
|
});
|
|
6081
6083
|
}
|
|
6082
6084
|
}
|
|
@@ -6277,14 +6279,7 @@ const TableEditor = {
|
|
|
6277
6279
|
const children = getNode(editor, cellPath).children;
|
|
6278
6280
|
if (children.length) {
|
|
6279
6281
|
children.forEach((child, index) => {
|
|
6280
|
-
|
|
6281
|
-
child.children.forEach((blockquoteChild, blockquoteIndex) => {
|
|
6282
|
-
setCellIndent(editor, indentType, blockquoteChild, [...cellPath, index, blockquoteIndex]);
|
|
6283
|
-
});
|
|
6284
|
-
}
|
|
6285
|
-
else {
|
|
6286
|
-
setCellIndent(editor, indentType, child, [...cellPath, index]);
|
|
6287
|
-
}
|
|
6282
|
+
setCellIndent(editor, indentType, child, [...cellPath, index]);
|
|
6288
6283
|
});
|
|
6289
6284
|
}
|
|
6290
6285
|
});
|
|
@@ -11308,6 +11303,11 @@ class TableStore {
|
|
|
11308
11303
|
const pos = this.createTablePosition();
|
|
11309
11304
|
return !!this.selectedCells.length && pos.getHeight() * pos.getWidth() === this.selectedCells.length;
|
|
11310
11305
|
};
|
|
11306
|
+
this.createTablePosition = () => {
|
|
11307
|
+
const { path } = this.editor.selection.anchor;
|
|
11308
|
+
const opts = new TableOptions();
|
|
11309
|
+
return TablePosition.create(opts, this.editor, path);
|
|
11310
|
+
};
|
|
11311
11311
|
}
|
|
11312
11312
|
get selectedCells() {
|
|
11313
11313
|
return this.selectedCells$.getValue();
|
|
@@ -11714,11 +11714,6 @@ class TableStore {
|
|
|
11714
11714
|
const { dangerousRowsIndex, dangerousColumnsIndex } = this;
|
|
11715
11715
|
this.removeColumnOrRows(dangerousRowsIndex, dangerousColumnsIndex);
|
|
11716
11716
|
}
|
|
11717
|
-
createTablePosition() {
|
|
11718
|
-
const { path } = this.editor.selection.anchor;
|
|
11719
|
-
const opts = new TableOptions();
|
|
11720
|
-
return TablePosition.create(opts, this.editor, path);
|
|
11721
|
-
}
|
|
11722
11717
|
removeColumnOrRows(selectedRowIndexs = this.selectedRowsIndex, selectedColumnIndexs = this.selectedColumnsIndex) {
|
|
11723
11718
|
var _a;
|
|
11724
11719
|
const { isSelectedTable } = this;
|
|
@@ -11919,6 +11914,7 @@ class TheTableContextMenuService {
|
|
|
11919
11914
|
actionHandle: () => {
|
|
11920
11915
|
this.tableStore.removeDangerousColumnsOrRows();
|
|
11921
11916
|
this.tableStore.clearDangerousCells();
|
|
11917
|
+
this.tableStore.clearSelectedCells();
|
|
11922
11918
|
},
|
|
11923
11919
|
activeHandle: () => {
|
|
11924
11920
|
this.tableStore.setDangerousColumns();
|
|
@@ -11932,6 +11928,7 @@ class TheTableContextMenuService {
|
|
|
11932
11928
|
actionHandle: () => {
|
|
11933
11929
|
TableEditor.removeTable(this.editor);
|
|
11934
11930
|
this.tableStore.clearDangerousCells();
|
|
11931
|
+
this.tableStore.clearSelectedCells();
|
|
11935
11932
|
},
|
|
11936
11933
|
activeHandle: () => {
|
|
11937
11934
|
this.tableStore.setDangerousTable();
|
|
@@ -12176,8 +12173,7 @@ class TheTableToolbarComponent {
|
|
|
12176
12173
|
const { selectedCells, isSelectedTable } = this.tableStore;
|
|
12177
12174
|
const tableInfo = { selectedCells, isSelectedTable };
|
|
12178
12175
|
this.isRectangle = isRectangularInTableCells(this.editor, selectedCells);
|
|
12179
|
-
this.
|
|
12180
|
-
this.getIconName(this.deleteIcon);
|
|
12176
|
+
this.setDeleteIcon();
|
|
12181
12177
|
setCellMenuVisibility(this.editor, this.cellMenuList, tableInfo);
|
|
12182
12178
|
this.selectedColor = this.tableStore.getSelectedCellBackgroundColor();
|
|
12183
12179
|
const path = TheEditor.findPath(this.editor, this.tableElement);
|
|
@@ -12192,30 +12188,29 @@ class TheTableToolbarComponent {
|
|
|
12192
12188
|
(_a = this.tableChangeSubscriber) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12193
12189
|
this.colorSelectService.closeColorSelect();
|
|
12194
12190
|
}
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
break;
|
|
12191
|
+
setDeleteIcon() {
|
|
12192
|
+
const { selectedCells, selectedRowsIndex, selectedColumnsIndex, createTablePosition } = this.tableStore;
|
|
12193
|
+
const pos = createTablePosition();
|
|
12194
|
+
// 满足已选中整行或者整列
|
|
12195
|
+
const isSelectedWholeRowOrColumnCell = selectedRowsIndex.length * pos.getWidth() === selectedCells.length ||
|
|
12196
|
+
selectedColumnsIndex.length * pos.getHeight() === selectedCells.length;
|
|
12197
|
+
if (!isSelectedWholeRowOrColumnCell) {
|
|
12198
|
+
this.deleteIcon = null;
|
|
12199
|
+
this.iconName = null;
|
|
12200
|
+
return;
|
|
12206
12201
|
}
|
|
12207
|
-
}
|
|
12208
|
-
getDeleteIcon() {
|
|
12209
12202
|
if (this.tableStore.isSelectedTable) {
|
|
12210
|
-
|
|
12203
|
+
this.deleteIcon = DeleteIcon.trash;
|
|
12204
|
+
this.iconName = '删除表格';
|
|
12211
12205
|
}
|
|
12212
12206
|
if (this.tableStore.selectedRowsIndex.length > 0) {
|
|
12213
|
-
|
|
12207
|
+
this.deleteIcon = DeleteIcon['table-delete-rows'];
|
|
12208
|
+
this.iconName = '删除整行';
|
|
12214
12209
|
}
|
|
12215
12210
|
if (this.tableStore.selectedColumnsIndex.length > 0) {
|
|
12216
|
-
|
|
12211
|
+
this.deleteIcon = DeleteIcon['table-delete-columns'];
|
|
12212
|
+
this.iconName = '删除整列';
|
|
12217
12213
|
}
|
|
12218
|
-
return null;
|
|
12219
12214
|
}
|
|
12220
12215
|
onDelete(event) {
|
|
12221
12216
|
event.preventDefault();
|
|
@@ -12294,10 +12289,10 @@ class TheTableToolbarComponent {
|
|
|
12294
12289
|
}
|
|
12295
12290
|
}
|
|
12296
12291
|
TheTableToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TheTableToolbarComponent, deps: [{ token: i0.NgZone }, { token: TheColorSelectService }, { token: i1$1.ThyPopover }, { token: i1$1.ThyPopoverRef }, { token: i1$2.ThyNotifyService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12297
|
-
TheTableToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TheTableToolbarComponent, selector: "the-table-toolbar", inputs: { tableStore: "tableStore", tableElement: "tableElement" }, ngImport: i0, template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n
|
|
12292
|
+
TheTableToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: TheTableToolbarComponent, selector: "the-table-toolbar", inputs: { tableStore: "tableStore", tableElement: "tableElement" }, ngImport: i0, template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n <ng-container *ngIf=\"tableStore?.isFullscreen ? deleteIcon && !tableStore.isSelectedTable : deleteIcon\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n [thyActionIcon]=\"deleteIcon\"\n [thyTooltip]=\"iconName\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n </ng-container>\n</thy-actions>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ThyIconComponent, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: i8.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: i7.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i7.ThyActionsComponent, selector: "thy-actions", inputs: ["thySize"] }, { kind: "component", type: i8$1.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }] });
|
|
12298
12293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: TheTableToolbarComponent, decorators: [{
|
|
12299
12294
|
type: Component,
|
|
12300
|
-
args: [{ selector: 'the-table-toolbar', template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n
|
|
12295
|
+
args: [{ selector: 'the-table-toolbar', template: "<thy-actions thySize=\"xxs\">\n <ng-container *ngFor=\"let item of cellMenuList\">\n <a\n *ngIf=\"item.visibility\"\n href=\"javascript:;\"\n thyAction\n [thyActionIcon]=\"item.icon\"\n [thyTooltip]=\"item.name\"\n (mousedown)=\"item.actionHandle()\"\n ></a>\n </ng-container>\n <thy-divider *ngIf=\"hasDivider\" class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"> </thy-divider>\n <a href=\"javascript:;\" thyAction thyTooltip=\"\u5355\u5143\u683C\u80CC\u666F\" (mousedown)=\"openSelectColor($event)\">\n <thy-icon thyIconName=\"background-tt\" thyIconType=\"twotone\" [thyTwotoneColor]=\"selectedColor\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && !isColumnEqual\"\n thyAction\n thyTooltip=\"\u5217\u7B49\u5BBD\"\n (mousedown)=\"setEquallyColumnHandle($event)\"\n >\n <thy-icon thyIconName=\"table-column-equal-width\"></thy-icon>\n </a>\n <a\n href=\"javascript:;\"\n *ngIf=\"tableStore.isSelectedTable && tableOptions?.showFullscreen\"\n thyAction\n thyTooltip=\"\u5168\u5C4F\"\n (mousedown)=\"setFullscreen($event)\"\n >\n <thy-icon thyIconName=\"arrows-alt\"></thy-icon>\n </a>\n <a\n *ngIf=\"tableStore.isSelectedTable && !tableStore?.isFullscreen\"\n class=\"fullscreen-hidden\"\n href=\"javascript:;\"\n thyAction\n thyActionIcon=\"copy\"\n thyTooltip=\"\u590D\u5236\"\n (mousedown)=\"onCopy($event)\"\n ></a>\n <ng-container *ngIf=\"tableStore.isSelectedTable\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" class=\"link-with-down\" thyAction (mousedown)=\"mousedown($event)\" (click)=\"openTableOptionMenu($event)\">\n <span>\u8868\u683C\u9009\u9879</span>\n <thy-icon class=\"font-size-sm text-desc ml-1\" thyIconName=\"caret-down\"></thy-icon>\n </a>\n </ng-container>\n <ng-container *ngIf=\"tableStore?.isFullscreen ? deleteIcon && !tableStore.isSelectedTable : deleteIcon\">\n <thy-divider class=\"mr-2 ml-1 align-self-center\" [thyVertical]=\"true\"></thy-divider>\n <a\n href=\"javascript:;\"\n thyAction\n thyType=\"danger\"\n [thyActionIcon]=\"deleteIcon\"\n [thyTooltip]=\"iconName\"\n (mousedown)=\"onDelete($event)\"\n (mouseenter)=\"onEnterDelete($event)\"\n (mouseleave)=\"onLeaveDelete($event)\"\n ></a>\n </ng-container>\n</thy-actions>\n" }]
|
|
12301
12296
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: TheColorSelectService }, { type: i1$1.ThyPopover }, { type: i1$1.ThyPopoverRef }, { type: i1$2.ThyNotifyService }]; }, propDecorators: { tableStore: [{
|
|
12302
12297
|
type: Input
|
|
12303
12298
|
}], tableElement: [{
|
|
@@ -12305,9 +12300,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
12305
12300
|
}] } });
|
|
12306
12301
|
var DeleteIcon;
|
|
12307
12302
|
(function (DeleteIcon) {
|
|
12308
|
-
DeleteIcon[
|
|
12309
|
-
DeleteIcon[
|
|
12310
|
-
DeleteIcon[
|
|
12303
|
+
DeleteIcon["table-delete-rows"] = "table-delete-rows";
|
|
12304
|
+
DeleteIcon["table-delete-columns"] = "table-delete-columns";
|
|
12305
|
+
DeleteIcon["trash"] = "trash";
|
|
12311
12306
|
})(DeleteIcon || (DeleteIcon = {}));
|
|
12312
12307
|
|
|
12313
12308
|
class TableService {
|
|
@@ -13222,6 +13217,8 @@ class TheTableComponent extends TheBaseElementComponent {
|
|
|
13222
13217
|
.subscribe((event) => {
|
|
13223
13218
|
if (isHotkey('mod', event) && !this.readonly) {
|
|
13224
13219
|
this.tableStore.pointerSelection = true;
|
|
13220
|
+
const cell = this.tbodyElement.nativeElement.querySelector('.focused-cell');
|
|
13221
|
+
cell && this.tableStore.selectCellStart(cell, this.editor);
|
|
13225
13222
|
}
|
|
13226
13223
|
});
|
|
13227
13224
|
fromEvent(document, 'keyup')
|