@worktile/theia 15.0.0 → 15.0.1

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 (87) hide show
  1. package/components/contextmenu/contextmenu.component.d.ts +4 -2
  2. package/components/contextmenu/contextmenu.component.scss +7 -0
  3. package/components/index.d.ts +11 -0
  4. package/components/index.scss +10 -0
  5. package/components/inline-toolbar/inline-toolbar.component.d.ts +1 -1
  6. package/constants/index.d.ts +1 -0
  7. package/editor.module.d.ts +73 -70
  8. package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
  9. package/esm2020/components/contextmenu/contextmenu.component.mjs +19 -7
  10. package/esm2020/components/index.mjs +12 -0
  11. package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
  12. package/esm2020/constants/index.mjs +2 -1
  13. package/esm2020/editor.module.mjs +9 -5
  14. package/esm2020/interfaces/plugins/plugins.mjs +1 -1
  15. package/esm2020/plugins/code/code.component.mjs +3 -6
  16. package/esm2020/plugins/indent/indent.editor.mjs +11 -4
  17. package/esm2020/plugins/indent/on-keydown-indent.mjs +6 -1
  18. package/esm2020/plugins/list/components/bulleted-list.component.mjs +2 -2
  19. package/esm2020/plugins/list/components/numbered-list.component.mjs +2 -2
  20. package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +15 -17
  21. package/esm2020/plugins/table/components/row/row.component.mjs +23 -17
  22. package/esm2020/plugins/table/components/table.component.mjs +304 -57
  23. package/esm2020/plugins/table/components/td/td.component.mjs +24 -20
  24. package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +29 -17
  25. package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +68 -41
  26. package/esm2020/plugins/table/table.editor.mjs +44 -19
  27. package/esm2020/plugins/table/table.pipe.mjs +33 -0
  28. package/esm2020/plugins/table/table.plugin.mjs +3 -1
  29. package/esm2020/plugins/table/table.service.mjs +5 -6
  30. package/esm2020/plugins/table/table.store.mjs +130 -125
  31. package/esm2020/plugins/table/table.types.mjs +18 -3
  32. package/esm2020/plugins/table/transforms/index.mjs +8 -0
  33. package/esm2020/plugins/table/transforms/insert-column.mjs +15 -4
  34. package/esm2020/plugins/table/transforms/insert-row.mjs +36 -29
  35. package/esm2020/plugins/table/utils/add-columns.mjs +13 -3
  36. package/esm2020/plugins/table/utils/create-table.mjs +5 -3
  37. package/esm2020/plugins/table/utils/get-select-cell-node.mjs +1 -1
  38. package/esm2020/plugins/table/utils/handle-cell.mjs +25 -0
  39. package/esm2020/plugins/table/utils/index.mjs +3 -2
  40. package/esm2020/plugins/table/utils/is-selection-in-table.mjs +41 -1
  41. package/esm2020/plugins/table/utils/merge-cell.mjs +3 -1
  42. package/esm2020/plugins/table/utils/remove-columns.mjs +2 -2
  43. package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +37 -7
  44. package/esm2020/plugins/table/utils/table-position.mjs +1 -1
  45. package/esm2020/plugins/todo-item/todo-item.component.mjs +2 -2
  46. package/esm2020/public-api.mjs +4 -12
  47. package/esm2020/services/context.service.mjs +29 -4
  48. package/esm2020/services/table-contextmenu.service.mjs +109 -12
  49. package/esm2020/utils/copy-node.mjs +28 -13
  50. package/esm2020/utils/dom.mjs +10 -1
  51. package/esm2020/utils/refocus.mjs +7 -7
  52. package/fesm2015/worktile-theia.mjs +7243 -6584
  53. package/fesm2015/worktile-theia.mjs.map +1 -1
  54. package/fesm2020/worktile-theia.mjs +7724 -7087
  55. package/fesm2020/worktile-theia.mjs.map +1 -1
  56. package/interfaces/plugins/plugins.d.ts +0 -5
  57. package/package.json +1 -1
  58. package/plugins/indent/indent.editor.d.ts +1 -1
  59. package/plugins/table/components/insert-mark/insert-mark.component.d.ts +6 -5
  60. package/plugins/table/components/mixins.scss +54 -0
  61. package/plugins/table/components/row/row.component.d.ts +5 -3
  62. package/plugins/table/components/table.component.d.ts +40 -13
  63. package/plugins/table/components/table.component.scss +251 -124
  64. package/plugins/table/components/td/td.component.d.ts +4 -4
  65. package/plugins/table/components/toolbar/table-toolbar.component.d.ts +15 -9
  66. package/plugins/table/table.editor.d.ts +7 -4
  67. package/plugins/table/table.pipe.d.ts +14 -0
  68. package/plugins/table/table.plugin.d.ts +2 -1
  69. package/plugins/table/table.service.d.ts +1 -1
  70. package/plugins/table/table.store.d.ts +31 -18
  71. package/plugins/table/table.types.d.ts +28 -3
  72. package/plugins/table/transforms/index.d.ts +7 -0
  73. package/plugins/table/utils/add-columns.d.ts +1 -1
  74. package/plugins/table/utils/get-select-cell-node.d.ts +2 -2
  75. package/plugins/table/utils/handle-cell.d.ts +6 -0
  76. package/plugins/table/utils/index.d.ts +2 -1
  77. package/plugins/table/utils/is-selection-in-table.d.ts +8 -1
  78. package/plugins/table/utils/merge-cell.d.ts +2 -2
  79. package/plugins/table/utils/set-menu-cell-invisibility.d.ts +8 -2
  80. package/plugins/table/utils/table-position.d.ts +4 -4
  81. package/public-api.d.ts +3 -11
  82. package/services/context.service.d.ts +7 -2
  83. package/services/table-contextmenu.service.d.ts +16 -3
  84. package/styles/index.scss +1 -9
  85. package/styles/mixins.scss +0 -10
  86. package/utils/copy-node.d.ts +3 -1
  87. package/utils/refocus.d.ts +1 -2
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
2
2
  import { Editor } from 'slate';
3
3
  import { TablePosition } from './utils';
4
4
  import { ColorType } from '../../constants/color-select';
5
- import { SelectedCell, TheTableOptions } from './table.types';
5
+ import { CellPosition, TheTableOptions } from './table.types';
6
6
  import { TableElement } from '../../custom-types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class TableStore {
@@ -20,40 +20,54 @@ export declare class TableStore {
20
20
  anchorCellPath: number[];
21
21
  focusCellPath: number[];
22
22
  preFocusCellPath: number[];
23
+ lastFocusCellPath: number[];
23
24
  focusCellElement: HTMLTableCellElement;
24
25
  isPrepareSelecting: boolean;
25
26
  isCellSelecting: boolean;
26
27
  isRightClicking: boolean;
28
+ pointerSelection: boolean;
27
29
  maxCol: number;
28
- get selectedCells(): SelectedCell[];
29
- get dangerousCells(): SelectedCell[];
30
+ get selectedCells(): CellPosition[];
31
+ get dangerousCells(): CellPosition[];
30
32
  constructor();
31
- getTableEntry(editor: Editor): import("slate").NodeEntry<TableElement>;
32
- getTablePath(editor: Editor): import("slate").Path;
33
- getTablePosition(editor: Editor): TablePosition;
34
- setSelectedCells(cells: SelectedCell[], pos: TablePosition): void;
33
+ isSelectedAllCell: () => boolean;
34
+ getTableEntry(): import("slate").NodeEntry<TableElement>;
35
+ getTablePath(): import("slate").Path;
36
+ updateCellPositionRefs(row?: number, col?: number): void;
37
+ setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
35
38
  initEditor(editor: Editor): void;
39
+ /**
40
+ * 去重重复的单元格位置
41
+ * @returns
42
+ */
43
+ private uniqueCellPosition;
44
+ /**
45
+ * 获取一定范围内所有的单元格
46
+ * @returns
47
+ */
48
+ private getCellPositionsFromRange;
36
49
  selectRow(editor: Editor, index: number): void;
37
50
  selectColumn(editor: Editor, index: number): void;
38
51
  selectTable(editor: Editor): void;
39
- private getTableCellsAndPosition;
40
52
  selectCells(editor: Editor): void;
41
53
  getMinAndMaxCellIndex(maxRow: number, maxCol: number, minRow: number, minCol: number, table: TableElement): any;
42
54
  selectCell(cell: HTMLTableCellElement, editor: Editor): void;
43
- selectedCellsChange(): Observable<SelectedCell[]>;
44
- cellsPositionChange(): Observable<object>;
55
+ getCellPositionsBeforeMerge({ row, col }: CellPosition): CellPosition[];
56
+ selectedCellsChange(): Observable<CellPosition[]>;
57
+ cellsPositionChange(): Observable<void>;
45
58
  changeCells(): void;
46
59
  emitTableChange(): void;
47
- tableChange(): Observable<object>;
60
+ tableChange(): Observable<void>;
48
61
  clearSelectedCells(): void;
62
+ clearLastFocusPath(): void;
49
63
  selectCellStart(cell: HTMLTableCellElement, editor: Editor): void;
50
64
  selectCellOngoing(cell: HTMLTableCellElement, editor: Editor): void;
51
65
  selectCellEnd(editor: Editor): void;
52
66
  focusCell(editor: Editor, path: number[]): void;
53
- dangerousCellsChange(): Observable<SelectedCell[]>;
67
+ dangerousCellsChange(): Observable<CellPosition[]>;
54
68
  setDangerousCells(): void;
55
69
  clearDangerousCells(): void;
56
- dangerousOrSelectedCellsChange(): Observable<SelectedCell[]>;
70
+ dangerousOrSelectedCellsChange(): Observable<CellPosition[]>;
57
71
  setDangerousRows(): void;
58
72
  setDangerousColumns(): void;
59
73
  setDangerousTable(): void;
@@ -62,11 +76,10 @@ export declare class TableStore {
62
76
  getSelectedCellBackgroundColor(): string;
63
77
  clearSelectedCellsContent(): void;
64
78
  mergeCell(editor: Editor): void;
65
- setTableOptions(editor: Editor, options: TheTableOptions): void;
66
- removeDangerousColumns(): void;
67
- removeDangerousRows(): void;
68
- createTablePosition(): TablePosition;
69
- removeColumnOrRows(): void;
79
+ setTableOptions(editor: Editor, newOptions: TheTableOptions): void;
80
+ removeDangerousColumnsOrRows(): void;
81
+ createTablePosition: () => TablePosition;
82
+ removeColumnOrRows(selectedRowIndexs?: number[], selectedColumnIndexs?: number[]): void;
70
83
  static ɵfac: i0.ɵɵFactoryDeclaration<TableStore, never>;
71
84
  static ɵprov: i0.ɵɵInjectableDeclaration<TableStore>;
72
85
  }
@@ -3,7 +3,16 @@ import { ComponentType } from 'slate-angular';
3
3
  import { TheBaseElementComponent } from '../../interfaces/view-base';
4
4
  import { ElementKinds } from '../../constants/node-types';
5
5
  import type { TheTableComponent } from './components/table.component';
6
- export declare const TheTableToken: InjectionToken<ComponentType<TheTableComponent>>;
6
+ import { Editor, Element } from 'slate';
7
+ import { Observable } from 'rxjs';
8
+ export declare const THE_TABLE_COMPONENT_TOKEN: InjectionToken<ComponentType<TheTableComponent>>;
9
+ export declare const HEADER_CELL_CLASS = "the-header-cell";
10
+ export declare const TOP_CELL_CLASS = "the-top-cell";
11
+ export declare enum TableOperations {
12
+ headerRow = "headerRow",
13
+ headerColumn = "headerColumn",
14
+ numberedColumn = "numberedColumn"
15
+ }
7
16
  export interface TheTableComponentBase extends TheBaseElementComponent {
8
17
  initializeColumns: () => void;
9
18
  transformColumnsWidth: () => void;
@@ -28,12 +37,22 @@ export interface MenuEntity {
28
37
  divider?: boolean;
29
38
  extendIcon?: string;
30
39
  visibility?: boolean;
40
+ isInputNumber?: boolean;
41
+ nameSuffix?: string;
42
+ count?: number;
31
43
  backgroundColor?: string;
32
44
  actionHandle: (entity: MenuEntity) => void;
33
45
  activeHandle?: (event: MouseEvent) => void;
34
- deactiveHandle?: (event: MouseEvent) => void;
46
+ deactivateHandle?: (event: MouseEvent) => void;
47
+ }
48
+ export interface ThePluginTableOption {
49
+ freezeColumnHeader?: boolean;
50
+ freezeRowHeader?: boolean;
51
+ showFullscreen?: boolean;
52
+ setFullscreen?: (editor: Editor, event: MouseEvent, element: Element) => void;
53
+ fullscreenAction?: (editor: Editor) => Observable<boolean>;
35
54
  }
36
- export interface SelectedCell {
55
+ export interface CellPosition {
37
56
  row: number;
38
57
  col: number;
39
58
  }
@@ -65,3 +84,9 @@ export declare class TableOptions {
65
84
  maxHeightPx: number;
66
85
  constructor(options?: TableOptionsFormat);
67
86
  }
87
+ export declare enum TableInsertType {
88
+ insertRowsUp = "insert-rows-up",
89
+ insertRowsDown = "insert-rows-down",
90
+ insertColumnsLeft = "insert-columns-left",
91
+ insertColumnsRight = "insert-columns-right"
92
+ }
@@ -0,0 +1,7 @@
1
+ import { insertTable } from './insert-table';
2
+ import { insertRow } from './insert-row';
3
+ import { insertColumn } from './insert-column';
4
+ import { removeRow } from './remove-row';
5
+ import { removeColumn } from './remove-column';
6
+ import { removeTable } from './remove-table';
7
+ export { insertTable, insertRow, insertColumn, removeTable, removeRow, removeColumn };
@@ -1,2 +1,2 @@
1
1
  import { TableElement } from '../../../custom-types';
2
- export declare function addColumns(table: TableElement, columnsCount: number, insertIndex?: number): import("../table.types").TheTableColumn[];
2
+ export declare function addColumns(table: TableElement, columnsCount: number, insertIndex?: number, canScroll?: boolean): import("../table.types").TheTableColumn[];
@@ -1,6 +1,6 @@
1
1
  import { Editor } from 'slate';
2
- import { SelectedCell } from '../table.types';
3
- export declare function getSelectCellNode(editor: Editor, selectedCells: SelectedCell[]): {
2
+ import { CellPosition } from '../table.types';
3
+ export declare function getSelectCellNode(editor: Editor, selectedCells: CellPosition[]): {
4
4
  node: import("@worktile/theia").TableCellElement;
5
5
  row: number;
6
6
  col: number;
@@ -0,0 +1,6 @@
1
+ import { CellPosition } from '../table.types';
2
+ import { Editor, Path } from 'slate';
3
+ import { Indents } from '../../../constants';
4
+ import { CustomElement } from '../../../custom-types';
5
+ export declare function sortCell(cells: CellPosition[]): void;
6
+ export declare function setCellIndent(editor: Editor, indentType: Indents, child: CustomElement, at: Path): void;
@@ -4,4 +4,5 @@ import { createTable } from './create-table';
4
4
  import { isRangeInTable } from './is-range-in-table';
5
5
  import { isSelectionInTable } from './is-selection-in-table';
6
6
  import { TablePosition } from './table-position';
7
- export { isRangeInTable, isSelectionInTable, TablePosition, createCell, createRow, createTable };
7
+ import { calcSpanForRow, getOriginCell } from './calc-span';
8
+ export { isRangeInTable, isSelectionInTable, TablePosition, createCell, createRow, createTable, calcSpanForRow, getOriginCell };
@@ -1,6 +1,13 @@
1
1
  import { Editor } from 'slate';
2
- import { TableOptions } from '../table.types';
2
+ import { CellPosition, TableOptions } from '../table.types';
3
3
  /**
4
4
  * Is the selection in a table
5
5
  */
6
6
  export declare function isSelectionInTable(opts: TableOptions, editor: Editor): boolean;
7
+ /**
8
+ * Whether the cells passed in can form a rectangle
9
+ * @param editor
10
+ * @param cells
11
+ * @returns boolean
12
+ */
13
+ export declare function isRectangularInTableCells(editor: Editor, cells: CellPosition[]): boolean;
@@ -1,6 +1,6 @@
1
1
  import { Path, Editor } from 'slate';
2
2
  import { TableCellElement } from '../../../custom-types';
3
- import { SelectedCell } from '../table.types';
3
+ import { CellPosition } from '../table.types';
4
4
  export interface SelectedCellInfo {
5
5
  col: number;
6
6
  row: number;
@@ -17,5 +17,5 @@ export declare function calculateCellSpan(selectCellNodes: SelectedCellInfo[], l
17
17
  rowspan: number;
18
18
  colspan: number;
19
19
  };
20
- export declare function mergeCell(editor: Editor, selectedCells: SelectedCell[]): void;
20
+ export declare function mergeCell(editor: Editor, selectedCells: CellPosition[]): void;
21
21
  export declare function mergeCellContent(editor: Editor, leftTopCellPath: Path, cellPath: Path): void;
@@ -1,3 +1,9 @@
1
1
  import { Editor } from 'slate';
2
- import { MenuEntity, SelectedCell } from '../table.types';
3
- export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], selectedCells: SelectedCell[], isFromControls?: boolean): void;
2
+ import { MenuEntity, CellPosition } from '../table.types';
3
+ export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], tableInfo: {
4
+ selectedCells: CellPosition[];
5
+ isFullscreen?: boolean;
6
+ isSelectedTable?: boolean;
7
+ selectedRowsIndex?: number[];
8
+ selectedColumnsIndex?: number[];
9
+ }): void;
@@ -1,6 +1,6 @@
1
1
  import { Node, Path, NodeEntry, Element } from 'slate';
2
- import { TableCellElement, TableElement } from '../../../custom-types';
3
- import { SelectedCell, TableOptions } from '../table.types';
2
+ import { TableCellElement, TableElement, TableRowElement } from '../../../custom-types';
3
+ import { CellPosition, TableOptions } from '../table.types';
4
4
  export declare class TablePosition {
5
5
  tableEntry?: NodeEntry<TableElement>;
6
6
  rowEntry?: NodeEntry<Element>;
@@ -18,7 +18,7 @@ export declare class TablePosition {
18
18
  */
19
19
  static create(opts: TableOptions, containerNode: Node, path: Path): TablePosition;
20
20
  get table(): TableElement;
21
- get row(): Element;
21
+ get row(): TableRowElement;
22
22
  get cell(): TableCellElement;
23
23
  /**
24
24
  * Check to see if this position is within a cell
@@ -93,5 +93,5 @@ export declare class TablePosition {
93
93
  /**
94
94
  * find cell data with col and row
95
95
  */
96
- findCellByPath(cell: SelectedCell): TableCellElement;
96
+ findCellByPath(cell: CellPosition): TableCellElement;
97
97
  }
package/public-api.d.ts CHANGED
@@ -8,18 +8,10 @@ export * from './custom-types';
8
8
  export * from './plugins/image/image.component';
9
9
  export * from './services/toolbar.service';
10
10
  export * from './editor.component';
11
- export * from './components/toolbar/toolbar.component';
12
11
  export * from './core/toolbar-item/base-toolbar-item';
13
- export * from './components/toolbar-dropdown/toolbar-dropdown.component';
14
- export * from './components/toolbar-group/toolbar-group.component';
15
- export * from './components/toolbar-item/toolbar-item.component';
16
- export * from './components/element/element.component';
17
- export * as TheQueries from './queries/index';
18
- export * as TheTransforms from './transforms/index';
19
12
  export * from './utils/index';
20
13
  export * from './services/context.service';
21
14
  export * from './test/index';
22
- export * from './components/listbox/listbox';
23
- export * from './components/listbox/listbox.type';
24
- export * from './components/action/prevent-default';
25
- export * from './components/plugin-menu/plugin-menu.component';
15
+ export * from './components/index';
16
+ export * as TheQueries from './queries/index';
17
+ export * as TheTransforms from './transforms/index';
@@ -1,4 +1,4 @@
1
- import { NgZone, ViewContainerRef } from '@angular/core';
1
+ import { NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
2
2
  import { Observable, Subject } from 'rxjs';
3
3
  import { TheOptions } from '../interfaces/editor';
4
4
  import { FontSizes, MarkTypes } from '../constants/node-types';
@@ -15,8 +15,10 @@ interface PaintFormatStatus {
15
15
  [key in MarkTypes]?: any;
16
16
  };
17
17
  }
18
- export declare class TheContextService {
18
+ export declare class TheContextService implements OnDestroy {
19
19
  private ngZone;
20
+ private scrollSubscription?;
21
+ private destroy$;
20
22
  private options;
21
23
  uploadingFiles: {
22
24
  url: string;
@@ -26,9 +28,11 @@ export declare class TheContextService {
26
28
  onMouseUp$: Observable<MouseEvent>;
27
29
  onMouseMove$: Observable<MouseEvent>;
28
30
  onMouseDown$: Observable<MouseEvent>;
31
+ containerScrolled$: Subject<Event>;
29
32
  uploadingStatus$: Subject<boolean>;
30
33
  constructor(ngZone: NgZone);
31
34
  initialize(options: TheContextOptions): void;
35
+ rebindContainerScroll(): void;
32
36
  getOptions(): TheContextOptions;
33
37
  getTheOptions(): TheOptions;
34
38
  getDefaultFontSize(): FontSizes;
@@ -42,6 +46,7 @@ export declare class TheContextService {
42
46
  url: string;
43
47
  file: File;
44
48
  }): void;
49
+ ngOnDestroy(): void;
45
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TheContextService, never>;
46
51
  static ɵprov: i0.ɵɵInjectableDeclaration<TheContextService>;
47
52
  }
@@ -1,10 +1,10 @@
1
1
  import { NgZone } from '@angular/core';
2
- import { TableStore } from '../plugins/table/table.store';
3
- import { TheColorSelectService } from './color-select.service';
4
2
  import { ThyPopoverRef, ThyPopover } from 'ngx-tethys/popover';
3
+ import { TheColorSelectService } from './color-select.service';
4
+ import { TableStore } from '../plugins/table/table.store';
5
+ import { MenuEntity } from '../plugins/table/table.types';
5
6
  import { TheContextMenuComponent } from '../components/contextmenu/contextmenu.component';
6
7
  import { TheContextService } from './context.service';
7
- import { MenuEntity } from '../plugins/table/table.types';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class TheTableContextMenuService {
10
10
  private colorSelectService;
@@ -18,6 +18,19 @@ export declare class TheTableContextMenuService {
18
18
  get backgroundColor(): string;
19
19
  constructor(colorSelectService: TheColorSelectService, tableStore: TableStore, thyPopover: ThyPopover, ngZone: NgZone, theContextService: TheContextService);
20
20
  menuEntities: MenuEntity[];
21
+ getSelectedCell(): {
22
+ row: number;
23
+ col: number;
24
+ selectCellNodes: {
25
+ node: import("@worktile/theia").TableCellElement;
26
+ row: number;
27
+ col: number;
28
+ }[];
29
+ };
30
+ getTargetRowOrColIndex(isFront?: boolean): {
31
+ targetRowIndex: number;
32
+ targetColIndex: number;
33
+ };
21
34
  openMenuList(event: MouseEvent): void;
22
35
  closeContextMenu(): import("rxjs").Observable<unknown>;
23
36
  static ɵfac: i0.ɵɵFactoryDeclaration<TheTableContextMenuService, never>;
package/styles/index.scss CHANGED
@@ -9,21 +9,13 @@
9
9
 
10
10
  @forward './typo.scss';
11
11
  @forward './editor.scss';
12
+ @forward '../components/index.scss';
12
13
  @forward '../plugins/image/image.component.scss';
13
14
  @forward '../plugins/todo-item/todo-item.component.scss';
14
- @forward '../components/toolbar-dropdown/toolbar-dropdown.component.scss';
15
- @forward '../components/toolbar-group/toolbar-group.component.scss';
16
- @forward '../components/toolbar/toolbar.component.scss';
17
- @forward '../components/color-select/color-select.component.scss';
18
15
  @forward '../plugins/code/code.component.scss';
19
16
  @forward '../plugins/link/link.component.scss';
20
- @forward '../components/column-resize/column-resize.scss';
21
17
  @forward '../plugins/table/components/table.component.scss';
22
- @forward '../components/table-select/table-select.component.scss';
23
- @forward '../components/conversion-hint/conversion-hint.component.scss';
24
18
  @forward '../plugins/vertical-align/vertical-align.scss';
25
- @forward '../components/inline-toolbar/inline-toolbar.component.scss';
26
19
  @forward '../plugins/quick-insert/components/quick-insert.component.scss';
27
- @forward '../components/plugin-menu/plugin-menu.component.scss';
28
20
  @forward '../plugins/font-size/toolbar-item.component.scss';
29
21
  @forward '../plugins/inline-code/inline-code.component.scss';
@@ -1,16 +1,6 @@
1
1
  @use 'ngx-tethys/styles/variables.scss';
2
2
  @use './variables.scss' as theVariables;
3
3
 
4
- @mixin controlSelected {
5
- background-color: rgba($color: variables.$primary, $alpha: 0.6);
6
- border-color: variables.$primary;
7
- }
8
-
9
- @mixin controlDangerous {
10
- background-color: rgba($color: variables.$danger, $alpha: 0.6);
11
- border-color: variables.$danger;
12
- }
13
-
14
4
  @mixin the-toolbar-disabled {
15
5
  &.disabled {
16
6
  cursor: not-allowed;
@@ -1,2 +1,4 @@
1
+ import { ThyNotifyService } from 'ngx-tethys/notify';
1
2
  import { Editor, Element } from 'slate';
2
- export declare function copyNode(editor: Editor, element: Element): boolean;
3
+ export declare function copyNode(editor: Editor, element: Element, thyNotifyService?: ThyNotifyService, codeMirrorEditor?: CodeMirror.EditorFromTextArea): void;
4
+ export declare function copyNodeForSafari(editor: Editor, element: Element): void;
@@ -1,4 +1,3 @@
1
- import { Location, Node } from 'slate';
2
1
  import { TheEditor } from '../interfaces';
2
+ export declare const reSelection: (editor: TheEditor) => void;
3
3
  export declare const refocus: (editor: TheEditor) => void;
4
- export declare const setRefocusSelection: (editor: TheEditor, focusNode: Node, focusPath: Location) => void;