@worktile/theia 14.3.13 → 14.3.14
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/indent/indent.editor.mjs +4 -3
- package/esm2020/plugins/indent/on-keydown-indent.mjs +3 -2
- package/esm2020/plugins/table/components/table.component.mjs +45 -13
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +3 -6
- package/esm2020/plugins/table/table.editor.mjs +9 -31
- package/esm2020/plugins/table/table.store.mjs +18 -37
- package/esm2020/plugins/table/utils/handle-cell.mjs +19 -1
- package/esm2020/services/table-contextmenu.service.mjs +3 -3
- package/fesm2015/worktile-theia.mjs +5681 -5675
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +5674 -5671
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/indent/indent.editor.d.ts +1 -1
- package/plugins/table/components/table.component.d.ts +3 -1
- package/plugins/table/components/table.component.scss +16 -14
- package/plugins/table/table.editor.d.ts +2 -3
- package/plugins/table/table.store.d.ts +3 -4
- package/plugins/table/utils/handle-cell.d.ts +4 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { Editor, Element } from 'slate';
|
|
|
2
2
|
import { TheEditor } from '../../interfaces';
|
|
3
3
|
import { CustomElementKinds } from '../../custom-types';
|
|
4
4
|
export declare const IndentEditor: {
|
|
5
|
-
getAllowedTypes(editor: TheEditor): (import("
|
|
5
|
+
getAllowedTypes(editor: TheEditor): (import("../../constants").ElementKinds.image | import("../../constants").ElementKinds.paragraph | import("../../constants").ElementKinds.heading_1 | import("../../constants").ElementKinds.heading_2 | import("../../constants").ElementKinds.heading_3 | import("../../constants").ElementKinds.heading_4 | import("../../constants").ElementKinds.heading_5 | import("../../constants").ElementKinds.heading_6 | import("../../constants").ElementKinds.numberedList | import("../../constants").ElementKinds.bulletedList | import("../../constants").ElementKinds.listItem | import("../../constants").ElementKinds.checkItem | import("../../constants").ElementKinds.table | import("../../constants").ElementKinds.tableRow | import("../../constants").ElementKinds.tableCell | import("../../constants").ElementKinds.code | import("../../constants").ElementKinds.blockquote | import("../../constants").ElementKinds.hr | import("../../constants").ElementKinds.link | import("../../constants").ElementKinds.inlineCode)[];
|
|
6
6
|
setIndent(editor: TheEditor): void;
|
|
7
7
|
cancelIndent(editor: Editor): void;
|
|
8
8
|
setTextIndent(editor: TheEditor, kinds: CustomElementKinds[], textIndent: number): void;
|
|
@@ -93,8 +93,10 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
93
93
|
onRowMousedown(event: MouseEvent, index: number): void;
|
|
94
94
|
onSelectTable(event: MouseEvent): void;
|
|
95
95
|
listenTableContextMenuEvent(): void;
|
|
96
|
-
|
|
96
|
+
listenOnSelectedCells(): void;
|
|
97
97
|
listenKeydownSelectEvents(): void;
|
|
98
|
+
listenTableWrapperScroll(): void;
|
|
99
|
+
updateStickyRowScrollLeft(): void;
|
|
98
100
|
trackByFnRowControls(index: number): number;
|
|
99
101
|
trackByFnColControls(index: number): number;
|
|
100
102
|
ngOnDestroy(): void;
|
|
@@ -78,7 +78,7 @@ $top-cell-z-index: 13;
|
|
|
78
78
|
&.dangerous-cell {
|
|
79
79
|
&::after {
|
|
80
80
|
@include mixins.cellInset;
|
|
81
|
-
z-index:
|
|
81
|
+
z-index: 10;
|
|
82
82
|
border: 1px solid variables.$danger;
|
|
83
83
|
background: rgba($color: variables.$danger, $alpha: 0.1);
|
|
84
84
|
}
|
|
@@ -127,19 +127,6 @@ $top-cell-z-index: 13;
|
|
|
127
127
|
@include mixins.tableLeftShadow;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
&.the-numberd-table {
|
|
131
|
-
&.the-table-left-shadow {
|
|
132
|
-
&::before {
|
|
133
|
-
left: 44px;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.the-table-wrapper {
|
|
138
|
-
margin-left: -44px;
|
|
139
|
-
padding-left: 44px;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
130
|
.the-table-wrapper {
|
|
144
131
|
padding-top: 10px;
|
|
145
132
|
margin-top: -10px;
|
|
@@ -229,6 +216,21 @@ $top-cell-z-index: 13;
|
|
|
229
216
|
|
|
230
217
|
}
|
|
231
218
|
|
|
219
|
+
.the-numberd-table {
|
|
220
|
+
.the-table-container {
|
|
221
|
+
&.the-table-left-shadow {
|
|
222
|
+
&::before {
|
|
223
|
+
left: 44px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.the-table-wrapper {
|
|
229
|
+
margin-left: -44px;
|
|
230
|
+
padding-left: 44px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
232
234
|
.the-table-with-controls {
|
|
233
235
|
.the-table {
|
|
234
236
|
margin-top: 13px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Editor, NodeEntry, Path, Range, Node } from 'slate';
|
|
2
2
|
import { TableOptions } from './table.types';
|
|
3
|
-
import { Alignment, VerticalAlignment } from '../../constants';
|
|
3
|
+
import { Alignment, Indents, VerticalAlignment } from '../../constants';
|
|
4
4
|
import { TheEditor } from '../../interfaces';
|
|
5
5
|
import { CustomElement, TableElement } from '../../custom-types';
|
|
6
6
|
export declare const TableEditor: {
|
|
@@ -24,6 +24,5 @@ export declare const TableEditor: {
|
|
|
24
24
|
hasHeaderRowCell(editor: TheEditor): NodeEntry<Node>;
|
|
25
25
|
hasHeaderColumnCell(editor: TheEditor): boolean;
|
|
26
26
|
selectOriginCell(editor: TheEditor, table: TableElement, rowIndex: number, columnIndex: number, isStart: boolean): void;
|
|
27
|
-
|
|
28
|
-
cancelIndent(editor: TheEditor): boolean;
|
|
27
|
+
handleIndent(editor: TheEditor, indentType: Indents): boolean;
|
|
29
28
|
};
|
|
@@ -75,11 +75,10 @@ export declare class TableStore {
|
|
|
75
75
|
getSelectedCellBackgroundColor(): string;
|
|
76
76
|
clearSelectedCellsContent(): void;
|
|
77
77
|
mergeCell(editor: Editor): void;
|
|
78
|
-
setTableOptions(editor: Editor,
|
|
79
|
-
|
|
80
|
-
removeDangerousRows(): void;
|
|
78
|
+
setTableOptions(editor: Editor, newOptions: TheTableOptions): void;
|
|
79
|
+
removeDangerousColumnsOrRows(): void;
|
|
81
80
|
createTablePosition(): TablePosition;
|
|
82
|
-
removeColumnOrRows(): void;
|
|
81
|
+
removeColumnOrRows(selectedRowIndexs?: number[], selectedColumnIndexs?: number[]): void;
|
|
83
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableStore, never>;
|
|
84
83
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableStore>;
|
|
85
84
|
}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { CellPosition } from '../table.types';
|
|
2
|
+
import { Editor, Path } from 'slate';
|
|
3
|
+
import { Indents } from '../../../constants';
|
|
4
|
+
import { CustomElement } from '../../../custom-types';
|
|
2
5
|
export declare function sortCell(cells: CellPosition[]): void;
|
|
6
|
+
export declare function setCellIndent(editor: Editor, indentType: Indents, child: CustomElement, at: Path): void;
|