@worktile/theia 14.3.15 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "14.3.15",
3
+ "version": "14.3.17",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -53,6 +53,7 @@ $top-cell-z-index: 13;
53
53
  left: unset;
54
54
  right: -8px;
55
55
  height: 100%;
56
+ z-index: 0;
56
57
  }
57
58
  }
58
59
  &.the-table-left-shadow.focused-cell {
@@ -112,35 +113,36 @@ $top-cell-z-index: 13;
112
113
  &.the-table-selection-hide ::selection {
113
114
  background: transparent;
114
115
  }
115
- }
116
116
 
117
- .the-table-container {
118
- position: relative;
119
- box-sizing: border-box;
120
- margin: 0 auto 16px;
121
-
122
- &.the-table-right-shadow {
123
- @include mixins.tableRightShadow;
124
- }
117
+ .the-table-container {
118
+ position: relative;
119
+ box-sizing: border-box;
120
+ margin: 0 auto 16px;
121
+ .the-table-wrapper {
122
+ padding-top: 10px;
123
+ margin-top: -10px;
124
+ z-index: 0;
125
+ position: relative;
126
+ overflow: auto;
127
+ }
125
128
 
126
- &.the-table-left-shadow {
127
- @include mixins.tableLeftShadow;
129
+ .the-table-row-controls-wrapper {
130
+ position: absolute;
131
+ left: -$control-width;
132
+ top: 23px;
133
+ user-select: none;
134
+ z-index: 1;
135
+ }
128
136
  }
129
137
 
130
- .the-table-wrapper {
131
- padding-top: 10px;
132
- margin-top: -10px;
133
- z-index: 0;
134
- position: relative;
135
- overflow: auto;
136
- }
138
+ &:not(.the-table-with-sticky-column) {
139
+ .the-table-container.the-table-right-shadow {
140
+ @include mixins.tableRightShadow;
141
+ }
137
142
 
138
- .the-table-row-controls-wrapper {
139
- position: absolute;
140
- left: -$control-width;
141
- top: 23px;
142
- user-select: none;
143
- z-index: 1;
143
+ .the-table-container.the-table-left-shadow {
144
+ @include mixins.tableLeftShadow;
145
+ }
144
146
  }
145
147
  }
146
148
 
@@ -165,8 +167,8 @@ $top-cell-z-index: 13;
165
167
  }
166
168
  }
167
169
 
168
- .the-table-col-controls-wrapper.the-sticky-row{
169
- display: none;
170
+ .the-table-col-controls-wrapper.the-sticky-row {
171
+ display: none;
170
172
  }
171
173
 
172
174
  &:not(.the-table-with-controls) {
@@ -213,10 +215,9 @@ $top-cell-z-index: 13;
213
215
  height: 11px;
214
216
  }
215
217
  }
216
-
217
218
  }
218
219
 
219
- .the-numberd-table {
220
+ .the-numberd-table:not(.the-table-with-sticky-column) {
220
221
  .the-table-container {
221
222
  &.the-table-left-shadow {
222
223
  &::before {
@@ -320,6 +321,11 @@ $top-cell-z-index: 13;
320
321
  }
321
322
 
322
323
  &.the-sticky-cell {
324
+ &:after {
325
+ @include mixins.cellInset;
326
+ left: -2px;
327
+ border-right: $controls-border;
328
+ }
323
329
  &.the-table-left-shadow {
324
330
  z-index: $top-cell-z-index;
325
331
  @include mixins.tableLeftShadow;
@@ -328,6 +334,7 @@ $top-cell-z-index: 13;
328
334
  left: unset;
329
335
  right: -8px;
330
336
  height: 100%;
337
+ z-index: 0;
331
338
  }
332
339
  }
333
340
  }
@@ -337,26 +344,28 @@ $top-cell-z-index: 13;
337
344
  }
338
345
  }
339
346
 
340
- .the-table-container {
341
- &.the-table-right-shadow::after {
342
- top: $expand-size + 10px + 1;
343
- }
347
+ &:not(.the-table-with-sticky-column) {
348
+ .the-table-container {
349
+ &.the-table-right-shadow::after {
350
+ top: $expand-size + 10px + 1;
351
+ }
344
352
 
345
- &.the-table-left-shadow::before {
346
- top: $expand-size + 10px + 1;
347
- }
353
+ &.the-table-left-shadow::before {
354
+ top: $expand-size + 10px + 1;
355
+ }
348
356
 
349
- &.the-table-left-shadow {
350
- .the-table-row-controls-wrapper {
351
- &::after {
352
- top: 0;
357
+ &.the-table-left-shadow {
358
+ .the-table-row-controls-wrapper {
359
+ &::after {
360
+ top: 0;
361
+ }
353
362
  }
354
363
  }
355
- }
356
364
 
357
- .the-table-wrapper {
358
- margin-left: -11px;
359
- padding-left: 11px;
365
+ .the-table-wrapper {
366
+ margin-left: -11px;
367
+ padding-left: 11px;
368
+ }
360
369
  }
361
370
  }
362
371
 
@@ -15,7 +15,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
15
15
  private popoverRef;
16
16
  private thyNotifyService;
17
17
  selectedColor: string;
18
- deleteIcon: string;
18
+ deleteIcon: DeleteIcon;
19
19
  iconName: string;
20
20
  isRectangle: boolean;
21
21
  isColumnEqual: boolean;
@@ -29,8 +29,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
29
29
  constructor(ngZone: NgZone, colorSelectService: TheColorSelectService, thyPopover: ThyPopover, popoverRef: ThyPopoverRef<TheTableToolbarComponent>, thyNotifyService: ThyNotifyService);
30
30
  ngOnInit(): void;
31
31
  ngOnDestroy(): void;
32
- getIconName(key: string): void;
33
- getDeleteIcon(): DeleteIcon;
32
+ setDeleteIcon(): void;
34
33
  onDelete(event: MouseEvent): void;
35
34
  onEnterDelete(event: MouseEvent): void;
36
35
  onLeaveDelete(event: MouseEvent): void;
@@ -44,7 +43,7 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
44
43
  static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "tableElement": "tableElement"; }, {}, never, never, false>;
45
44
  }
46
45
  export declare enum DeleteIcon {
47
- 'table-delete-rows' = 0,
48
- 'table-delete-columns' = 1,
49
- 'trash' = 2
46
+ 'table-delete-rows' = "table-delete-rows",
47
+ 'table-delete-columns' = "table-delete-columns",
48
+ 'trash' = "trash"
50
49
  }
@@ -25,14 +25,15 @@ export declare class TableStore {
25
25
  isPrepareSelecting: boolean;
26
26
  isCellSelecting: boolean;
27
27
  isRightClicking: boolean;
28
+ pointerSelection: boolean;
28
29
  maxCol: number;
29
- isModSelecting: boolean;
30
30
  get selectedCells(): 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
37
  setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
37
38
  initEditor(editor: Editor): void;
38
39
  /**
@@ -77,7 +78,7 @@ export declare class TableStore {
77
78
  mergeCell(editor: Editor): void;
78
79
  setTableOptions(editor: Editor, newOptions: TheTableOptions): void;
79
80
  removeDangerousColumnsOrRows(): void;
80
- createTablePosition(): TablePosition;
81
+ createTablePosition: () => TablePosition;
81
82
  removeColumnOrRows(selectedRowIndexs?: number[], selectedColumnIndexs?: number[]): void;
82
83
  static ɵfac: i0.ɵɵFactoryDeclaration<TableStore, never>;
83
84
  static ɵprov: i0.ɵɵInjectableDeclaration<TableStore>;
@@ -3,6 +3,7 @@ import { MenuEntity, CellPosition } from '../table.types';
3
3
  export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], tableInfo: {
4
4
  selectedCells: CellPosition[];
5
5
  isFullscreen?: boolean;
6
+ isSelectedTable?: boolean;
6
7
  selectedRowsIndex?: number[];
7
8
  selectedColumnsIndex?: number[];
8
9
  }): void;
@@ -21,6 +21,11 @@ export declare class TheTableContextMenuService {
21
21
  getSelectedCell(): {
22
22
  row: number;
23
23
  col: number;
24
+ selectCellNodes: {
25
+ node: import("@worktile/theia").TableCellElement;
26
+ row: number;
27
+ col: number;
28
+ }[];
24
29
  };
25
30
  getTargetRowOrColIndex(isFront?: boolean): {
26
31
  targetRowIndex: number;