@worktile/theia 14.3.18 → 14.3.19
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/components/action/prevent-default.mjs +4 -4
- package/esm2020/components/color-select/color-select.component.mjs +4 -4
- package/esm2020/components/column-resize/column-resize-notifier.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.module.mjs +9 -9
- package/esm2020/components/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/components/column-resize/overlay-handle.component.mjs +4 -4
- package/esm2020/components/column-resize/resizing.store.mjs +4 -4
- package/esm2020/components/contextmenu/contextmenu.component.mjs +4 -4
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/esm2020/components/element/element.component.mjs +4 -4
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
- package/esm2020/components/listbox/listbox.mjs +13 -13
- package/esm2020/components/plugin-menu/plugin-menu.component.mjs +4 -4
- package/esm2020/components/table-select/table-select.component.mjs +4 -4
- package/esm2020/components/template/template.component.mjs +4 -4
- package/esm2020/components/text/text.component.mjs +4 -4
- package/esm2020/components/toolbar/toolbar.component.mjs +4 -4
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +4 -4
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +4 -4
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +7 -7
- package/esm2020/editor.component.mjs +6 -7
- package/esm2020/editor.module.mjs +5 -5
- package/esm2020/interfaces/view-base.mjs +4 -4
- package/esm2020/pipes.mjs +7 -7
- package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
- package/esm2020/plugins/code/code.component.mjs +4 -4
- package/esm2020/plugins/color/toolbar-item.component.mjs +4 -4
- package/esm2020/plugins/hr/hr.component.mjs +4 -4
- package/esm2020/plugins/image/image.component.mjs +4 -4
- package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
- package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
- package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2020/plugins/link/link.component.mjs +7 -7
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
- package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
- package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
- package/esm2020/plugins/mention/suggestion.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +5 -5
- package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
- package/esm2020/plugins/table/components/table.component.mjs +9 -8
- package/esm2020/plugins/table/components/td/td.component.mjs +7 -8
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +4 -4
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +10 -10
- package/esm2020/plugins/table/table.editor.mjs +4 -4
- package/esm2020/plugins/table/table.pipe.mjs +7 -7
- package/esm2020/plugins/table/table.plugin.mjs +6 -6
- package/esm2020/plugins/table/table.service.mjs +4 -4
- package/esm2020/plugins/table/table.store.mjs +62 -43
- package/esm2020/plugins/table/toolbar-item.component.mjs +4 -4
- package/esm2020/plugins/table/transforms/insert-column.mjs +4 -4
- package/esm2020/plugins/table/utils/add-columns.mjs +6 -10
- package/esm2020/plugins/table/utils/is-selection-in-table.mjs +7 -5
- package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +4 -4
- package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +4 -4
- package/esm2020/services/color-select.service.mjs +4 -4
- package/esm2020/services/context.service.mjs +4 -4
- package/esm2020/services/table-contextmenu.service.mjs +10 -10
- package/esm2020/services/toolbar.service.mjs +4 -4
- package/esm2020/utils/auto-scroll-view.mjs +24 -13
- package/fesm2015/worktile-theia.mjs +321 -296
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +320 -296
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/table/components/table.component.scss +30 -12
- package/plugins/table/table.store.d.ts +9 -5
- package/plugins/table/utils/set-menu-cell-invisibility.d.ts +1 -1
package/package.json
CHANGED
|
@@ -41,9 +41,16 @@ $top-cell-z-index: 13;
|
|
|
41
41
|
cursor: text;
|
|
42
42
|
|
|
43
43
|
&.the-sticky-cell {
|
|
44
|
-
&:after {
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
&:not(.focused-cell):not(.selected-cell):after {
|
|
45
|
+
content: '';
|
|
46
|
+
width: 1px;
|
|
47
|
+
height: 100%;
|
|
48
|
+
right: -1px;
|
|
49
|
+
background: variables.$gray-300;
|
|
50
|
+
top: 0;
|
|
51
|
+
display: block;
|
|
52
|
+
position: absolute;
|
|
53
|
+
z-index: $top-cell-z-index;
|
|
47
54
|
}
|
|
48
55
|
&.the-table-left-shadow {
|
|
49
56
|
z-index: 12;
|
|
@@ -67,6 +74,9 @@ $top-cell-z-index: 13;
|
|
|
67
74
|
@include mixins.cellInset;
|
|
68
75
|
z-index: -1;
|
|
69
76
|
border: 1px solid variables.$primary;
|
|
77
|
+
width: unset;
|
|
78
|
+
height: unset;
|
|
79
|
+
background: unset;
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -284,7 +294,7 @@ $top-cell-z-index: 13;
|
|
|
284
294
|
}
|
|
285
295
|
}
|
|
286
296
|
|
|
287
|
-
&.active,
|
|
297
|
+
&.control-active,
|
|
288
298
|
&.dangerous {
|
|
289
299
|
&::before,
|
|
290
300
|
&::after {
|
|
@@ -305,7 +315,7 @@ $top-cell-z-index: 13;
|
|
|
305
315
|
}
|
|
306
316
|
}
|
|
307
317
|
|
|
308
|
-
&.active {
|
|
318
|
+
&.control-active {
|
|
309
319
|
@include mixins.controlSelected;
|
|
310
320
|
z-index: 11;
|
|
311
321
|
}
|
|
@@ -320,11 +330,19 @@ $top-cell-z-index: 13;
|
|
|
320
330
|
}
|
|
321
331
|
}
|
|
322
332
|
|
|
323
|
-
&.the-sticky-cell {
|
|
324
|
-
&:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
333
|
+
&.the-sticky-cell:not(.avtive) {
|
|
334
|
+
&:not(.active):not(.danger){
|
|
335
|
+
&:after{
|
|
336
|
+
content: '';
|
|
337
|
+
width: 1px;
|
|
338
|
+
height: 100%;
|
|
339
|
+
right: -1px;
|
|
340
|
+
background: variables.$gray-300;
|
|
341
|
+
top: 0;
|
|
342
|
+
display: block;
|
|
343
|
+
position: absolute;
|
|
344
|
+
z-index: $top-cell-z-index;
|
|
345
|
+
}
|
|
328
346
|
}
|
|
329
347
|
&.the-table-left-shadow {
|
|
330
348
|
z-index: $top-cell-z-index;
|
|
@@ -450,7 +468,7 @@ $top-cell-z-index: 13;
|
|
|
450
468
|
top: -$dot-size;
|
|
451
469
|
}
|
|
452
470
|
|
|
453
|
-
&.active {
|
|
471
|
+
&.control-active {
|
|
454
472
|
.the-table-corner-button {
|
|
455
473
|
@include mixins.controlSelected;
|
|
456
474
|
}
|
|
@@ -565,7 +583,7 @@ $top-cell-z-index: 13;
|
|
|
565
583
|
cursor: pointer;
|
|
566
584
|
}
|
|
567
585
|
|
|
568
|
-
&.active {
|
|
586
|
+
&.control-active {
|
|
569
587
|
z-index: 1;
|
|
570
588
|
|
|
571
589
|
.the-table-controls-button,
|
|
@@ -3,7 +3,7 @@ import { Editor } from 'slate';
|
|
|
3
3
|
import { TablePosition } from './utils';
|
|
4
4
|
import { ColorType } from '../../constants/color-select';
|
|
5
5
|
import { CellPosition, TheTableOptions } from './table.types';
|
|
6
|
-
import { TableElement } from '../../custom-types';
|
|
6
|
+
import { TableCellElement, TableElement } from '../../custom-types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class TableStore {
|
|
9
9
|
private selectedCells$;
|
|
@@ -27,13 +27,17 @@ export declare class TableStore {
|
|
|
27
27
|
isRightClicking: boolean;
|
|
28
28
|
pointerSelection: boolean;
|
|
29
29
|
maxCol: number;
|
|
30
|
-
get
|
|
30
|
+
get selectedCellPositions(): CellPosition[];
|
|
31
31
|
get dangerousCells(): CellPosition[];
|
|
32
32
|
constructor();
|
|
33
33
|
isSelectedAllCell: () => boolean;
|
|
34
34
|
getTableEntry(): import("slate").NodeEntry<TableElement>;
|
|
35
35
|
getTablePath(): import("slate").Path;
|
|
36
|
-
|
|
36
|
+
getSelectedCellPositions(): {
|
|
37
|
+
row: number;
|
|
38
|
+
col: number;
|
|
39
|
+
}[];
|
|
40
|
+
calculateSelectedColumnsAndRowIndex(): void;
|
|
37
41
|
setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
|
|
38
42
|
initEditor(editor: Editor): void;
|
|
39
43
|
/**
|
|
@@ -53,7 +57,7 @@ export declare class TableStore {
|
|
|
53
57
|
getMinAndMaxCellIndex(maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement): any;
|
|
54
58
|
selectCell(cell: HTMLTableCellElement, editor: Editor): void;
|
|
55
59
|
getCellPositionsBeforeMerge({ row, col }: CellPosition): CellPosition[];
|
|
56
|
-
selectedCellsChange(): Observable<
|
|
60
|
+
selectedCellsChange(): Observable<TableCellElement[]>;
|
|
57
61
|
cellsPositionChange(): Observable<object>;
|
|
58
62
|
changeCells(): void;
|
|
59
63
|
emitTableChange(): void;
|
|
@@ -67,7 +71,7 @@ export declare class TableStore {
|
|
|
67
71
|
dangerousCellsChange(): Observable<CellPosition[]>;
|
|
68
72
|
setDangerousCells(): void;
|
|
69
73
|
clearDangerousCells(): void;
|
|
70
|
-
dangerousOrSelectedCellsChange(): Observable<CellPosition[]>;
|
|
74
|
+
dangerousOrSelectedCellsChange(): Observable<TableCellElement[] | CellPosition[]>;
|
|
71
75
|
setDangerousRows(): void;
|
|
72
76
|
setDangerousColumns(): void;
|
|
73
77
|
setDangerousTable(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Editor } from 'slate';
|
|
2
2
|
import { MenuEntity, CellPosition } from '../table.types';
|
|
3
3
|
export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], tableInfo: {
|
|
4
|
-
|
|
4
|
+
selectedCellPositions: CellPosition[];
|
|
5
5
|
isFullscreen?: boolean;
|
|
6
6
|
isSelectedTable?: boolean;
|
|
7
7
|
selectedRowsIndex?: number[];
|