@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.
Files changed (71) hide show
  1. package/esm2020/components/action/prevent-default.mjs +4 -4
  2. package/esm2020/components/color-select/color-select.component.mjs +4 -4
  3. package/esm2020/components/column-resize/column-resize-notifier.mjs +4 -4
  4. package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
  5. package/esm2020/components/column-resize/column-resize.module.mjs +9 -9
  6. package/esm2020/components/column-resize/event-dispatcher.mjs +4 -4
  7. package/esm2020/components/column-resize/overlay-handle.component.mjs +4 -4
  8. package/esm2020/components/column-resize/resizing.store.mjs +4 -4
  9. package/esm2020/components/contextmenu/contextmenu.component.mjs +4 -4
  10. package/esm2020/components/conversion-hint/conversion-hint.component.mjs +4 -4
  11. package/esm2020/components/element/element.component.mjs +4 -4
  12. package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
  13. package/esm2020/components/listbox/listbox.mjs +13 -13
  14. package/esm2020/components/plugin-menu/plugin-menu.component.mjs +4 -4
  15. package/esm2020/components/table-select/table-select.component.mjs +4 -4
  16. package/esm2020/components/template/template.component.mjs +4 -4
  17. package/esm2020/components/text/text.component.mjs +4 -4
  18. package/esm2020/components/toolbar/toolbar.component.mjs +4 -4
  19. package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
  20. package/esm2020/components/toolbar-group/toolbar-group.component.mjs +4 -4
  21. package/esm2020/components/toolbar-item/toolbar-item.component.mjs +4 -4
  22. package/esm2020/core/toolbar-item/base-toolbar-item.mjs +7 -7
  23. package/esm2020/editor.component.mjs +6 -7
  24. package/esm2020/editor.module.mjs +5 -5
  25. package/esm2020/interfaces/view-base.mjs +4 -4
  26. package/esm2020/pipes.mjs +7 -7
  27. package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
  28. package/esm2020/plugins/code/code.component.mjs +4 -4
  29. package/esm2020/plugins/color/toolbar-item.component.mjs +4 -4
  30. package/esm2020/plugins/hr/hr.component.mjs +4 -4
  31. package/esm2020/plugins/image/image.component.mjs +4 -4
  32. package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
  33. package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
  34. package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
  35. package/esm2020/plugins/link/link.component.mjs +7 -7
  36. package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
  37. package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
  38. package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
  39. package/esm2020/plugins/mention/suggestion.component.mjs +4 -4
  40. package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
  41. package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +5 -5
  42. package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
  43. package/esm2020/plugins/table/components/table.component.mjs +9 -8
  44. package/esm2020/plugins/table/components/td/td.component.mjs +7 -8
  45. package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +4 -4
  46. package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +10 -10
  47. package/esm2020/plugins/table/table.editor.mjs +4 -4
  48. package/esm2020/plugins/table/table.pipe.mjs +7 -7
  49. package/esm2020/plugins/table/table.plugin.mjs +6 -6
  50. package/esm2020/plugins/table/table.service.mjs +4 -4
  51. package/esm2020/plugins/table/table.store.mjs +62 -43
  52. package/esm2020/plugins/table/toolbar-item.component.mjs +4 -4
  53. package/esm2020/plugins/table/transforms/insert-column.mjs +4 -4
  54. package/esm2020/plugins/table/utils/add-columns.mjs +6 -10
  55. package/esm2020/plugins/table/utils/is-selection-in-table.mjs +7 -5
  56. package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +4 -4
  57. package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
  58. package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +4 -4
  59. package/esm2020/services/color-select.service.mjs +4 -4
  60. package/esm2020/services/context.service.mjs +4 -4
  61. package/esm2020/services/table-contextmenu.service.mjs +10 -10
  62. package/esm2020/services/toolbar.service.mjs +4 -4
  63. package/esm2020/utils/auto-scroll-view.mjs +24 -13
  64. package/fesm2015/worktile-theia.mjs +321 -296
  65. package/fesm2015/worktile-theia.mjs.map +1 -1
  66. package/fesm2020/worktile-theia.mjs +320 -296
  67. package/fesm2020/worktile-theia.mjs.map +1 -1
  68. package/package.json +1 -1
  69. package/plugins/table/components/table.component.scss +30 -12
  70. package/plugins/table/table.store.d.ts +9 -5
  71. package/plugins/table/utils/set-menu-cell-invisibility.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "14.3.18",
3
+ "version": "14.3.19",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -41,9 +41,16 @@ $top-cell-z-index: 13;
41
41
  cursor: text;
42
42
 
43
43
  &.the-sticky-cell {
44
- &:after {
45
- @include mixins.cellInset;
46
- border: $controls-border;
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
- &:after {
325
- @include mixins.cellInset;
326
- left: -2px;
327
- border-right: $controls-border;
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 selectedCells(): CellPosition[];
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
- updateCellPositionRefs(row?: number, col?: number): void;
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<CellPosition[]>;
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
- selectedCells: CellPosition[];
4
+ selectedCellPositions: CellPosition[];
5
5
  isFullscreen?: boolean;
6
6
  isSelectedTable?: boolean;
7
7
  selectedRowsIndex?: number[];