@worktile/theia 15.0.3 → 15.0.5
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/core/toolbar-item/base-toolbar-item.d.ts +2 -2
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +4 -2
- package/esm2020/plugins/common/auto-insert-data..mjs +13 -10
- package/esm2020/services/table-contextmenu.service.mjs +5 -5
- package/fesm2015/worktile-theia.mjs +19 -14
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +19 -14
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2640,13 +2640,15 @@ class TheBaseToolbarItem {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
TheBaseToolbarItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: TheBaseToolbarItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2643
|
-
TheBaseToolbarItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.2", type: TheBaseToolbarItem, inputs: { toolbarItem: "toolbarItem", editor: "editor" }, host: { properties: { "class.disabled": "this.disabledState", "class.active": "this.activeState" } }, ngImport: i0 });
|
|
2643
|
+
TheBaseToolbarItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.2", type: TheBaseToolbarItem, inputs: { toolbarItem: "toolbarItem", editor: "editor", itemMousedownHandle: "itemMousedownHandle" }, host: { properties: { "class.disabled": "this.disabledState", "class.active": "this.activeState" } }, ngImport: i0 });
|
|
2644
2644
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: TheBaseToolbarItem, decorators: [{
|
|
2645
2645
|
type: Directive
|
|
2646
2646
|
}], propDecorators: { toolbarItem: [{
|
|
2647
2647
|
type: Input
|
|
2648
2648
|
}], editor: [{
|
|
2649
2649
|
type: Input
|
|
2650
|
+
}], itemMousedownHandle: [{
|
|
2651
|
+
type: Input
|
|
2650
2652
|
}], disabledState: [{
|
|
2651
2653
|
type: HostBinding,
|
|
2652
2654
|
args: ['class.disabled']
|
|
@@ -7299,15 +7301,18 @@ const withAutoInsertData = (editor) => {
|
|
|
7299
7301
|
const emptyPath = Path.parent(editor.selection.anchor.path);
|
|
7300
7302
|
Transforms.insertNodes(editor, fragment);
|
|
7301
7303
|
isEmptyParagraph$1 && Transforms.delete(editor, { at: emptyPath });
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7304
|
+
// This is to focus after withTrailingNode.normalizeNode() to avoid incorrect focus element.
|
|
7305
|
+
setTimeout(() => {
|
|
7306
|
+
const lastPath = emptyPath.pop();
|
|
7307
|
+
const currentPath = [...emptyPath, lastPath + fragment.length - (isEmptyParagraph$1 ? 1 : 0)];
|
|
7308
|
+
const nextPath = Path.next(currentPath);
|
|
7309
|
+
const [nextNode] = findNode(editor, { at: nextPath });
|
|
7310
|
+
const isBlockCard = editor.isBlockCard(nextNode);
|
|
7311
|
+
const leftCursorPath = { path: nextPath, offset: isBlockCard ? -1 : 0 };
|
|
7312
|
+
Transforms.select(editor, leftCursorPath);
|
|
7313
|
+
AngularEditor.focus(editor);
|
|
7314
|
+
Transforms.collapse(editor, { edge: 'end' });
|
|
7315
|
+
});
|
|
7311
7316
|
});
|
|
7312
7317
|
return;
|
|
7313
7318
|
}
|
|
@@ -11846,7 +11851,7 @@ class TheTableContextMenuService {
|
|
|
11846
11851
|
{
|
|
11847
11852
|
key: TableInsertType.insertRowsUp,
|
|
11848
11853
|
icon: 'table-insert-rows-top',
|
|
11849
|
-
name: '
|
|
11854
|
+
name: '向上插入',
|
|
11850
11855
|
visibility: true,
|
|
11851
11856
|
isInputNumber: true,
|
|
11852
11857
|
nameSuffix: '行',
|
|
@@ -11859,7 +11864,7 @@ class TheTableContextMenuService {
|
|
|
11859
11864
|
{
|
|
11860
11865
|
key: TableInsertType.insertRowsDown,
|
|
11861
11866
|
icon: 'table-insert-rows-down',
|
|
11862
|
-
name: '
|
|
11867
|
+
name: '向下插入',
|
|
11863
11868
|
visibility: true,
|
|
11864
11869
|
isInputNumber: true,
|
|
11865
11870
|
nameSuffix: '行',
|
|
@@ -11872,7 +11877,7 @@ class TheTableContextMenuService {
|
|
|
11872
11877
|
{
|
|
11873
11878
|
key: TableInsertType.insertColumnsLeft,
|
|
11874
11879
|
icon: 'table-insert-columns-left',
|
|
11875
|
-
name: '
|
|
11880
|
+
name: '向左插入',
|
|
11876
11881
|
visibility: true,
|
|
11877
11882
|
isInputNumber: true,
|
|
11878
11883
|
nameSuffix: '列',
|
|
@@ -11886,7 +11891,7 @@ class TheTableContextMenuService {
|
|
|
11886
11891
|
key: TableInsertType.insertColumnsRight,
|
|
11887
11892
|
icon: 'table-insert-columns-right',
|
|
11888
11893
|
divider: true,
|
|
11889
|
-
name: '
|
|
11894
|
+
name: '向右插入',
|
|
11890
11895
|
visibility: true,
|
|
11891
11896
|
isInputNumber: true,
|
|
11892
11897
|
nameSuffix: '列',
|