@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "14.3.13",
3
+ "version": "14.3.14",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -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("@worktile/theia").ElementKinds.image | import("@worktile/theia").ElementKinds.paragraph | import("@worktile/theia").ElementKinds.heading_1 | import("@worktile/theia").ElementKinds.heading_2 | import("@worktile/theia").ElementKinds.heading_3 | import("@worktile/theia").ElementKinds.heading_4 | import("@worktile/theia").ElementKinds.heading_5 | import("@worktile/theia").ElementKinds.heading_6 | import("@worktile/theia").ElementKinds.numberedList | import("@worktile/theia").ElementKinds.bulletedList | import("@worktile/theia").ElementKinds.listItem | import("@worktile/theia").ElementKinds.checkItem | import("@worktile/theia").ElementKinds.table | import("@worktile/theia").ElementKinds.tableRow | import("@worktile/theia").ElementKinds.tableCell | import("@worktile/theia").ElementKinds.code | import("@worktile/theia").ElementKinds.blockquote | import("@worktile/theia").ElementKinds.hr | import("@worktile/theia").ElementKinds.link | import("@worktile/theia").ElementKinds.inlineCode)[];
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
- listenerOnSelectedCells(): void;
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: -1;
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
- setIndent(editor: Editor): boolean;
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, options: TheTableOptions): void;
79
- removeDangerousColumns(): void;
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;