@worktile/theia 13.0.18 → 13.0.21

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 (67) hide show
  1. package/custom-types.d.ts +1 -0
  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/table-select/table-select.component.mjs +4 -4
  14. package/esm2020/components/template/template.component.mjs +4 -4
  15. package/esm2020/components/text/text.component.mjs +4 -4
  16. package/esm2020/components/toolbar/toolbar.component.mjs +4 -4
  17. package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
  18. package/esm2020/components/toolbar-group/toolbar-group.component.mjs +4 -4
  19. package/esm2020/components/toolbar-item/toolbar-item.component.mjs +4 -4
  20. package/esm2020/core/toolbar-item/base-toolbar-item.mjs +7 -7
  21. package/esm2020/custom-types.mjs +1 -1
  22. package/esm2020/editor.component.mjs +4 -4
  23. package/esm2020/editor.module.mjs +5 -5
  24. package/esm2020/interfaces/image.mjs +1 -1
  25. package/esm2020/interfaces/plugins/plugins.mjs +1 -1
  26. package/esm2020/interfaces/view-base.mjs +4 -4
  27. package/esm2020/pipes.mjs +7 -7
  28. package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
  29. package/esm2020/plugins/code/code.component.mjs +4 -4
  30. package/esm2020/plugins/color/toolbar-item.component.mjs +4 -4
  31. package/esm2020/plugins/hr/hr.component.mjs +4 -4
  32. package/esm2020/plugins/image/image.component.mjs +9 -7
  33. package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
  34. package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
  35. package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
  36. package/esm2020/plugins/link/link.component.mjs +7 -7
  37. package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
  38. package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
  39. package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
  40. package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
  41. package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +4 -4
  42. package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
  43. package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
  44. package/esm2020/plugins/table/components/table.component.mjs +7 -7
  45. package/esm2020/plugins/table/components/td/td.component.mjs +5 -5
  46. package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +4 -4
  47. package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +15 -5
  48. package/esm2020/plugins/table/table.plugin.mjs +11 -2
  49. package/esm2020/plugins/table/table.service.mjs +6 -5
  50. package/esm2020/plugins/table/table.store.mjs +4 -4
  51. package/esm2020/plugins/table/toolbar-item.component.mjs +4 -4
  52. package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
  53. package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +4 -4
  54. package/esm2020/services/color-select.service.mjs +4 -4
  55. package/esm2020/services/context.service.mjs +4 -4
  56. package/esm2020/services/table-contextmenu.service.mjs +4 -4
  57. package/esm2020/services/toolbar.service.mjs +4 -4
  58. package/fesm2015/worktile-theia.mjs +201 -181
  59. package/fesm2015/worktile-theia.mjs.map +1 -1
  60. package/fesm2020/worktile-theia.mjs +201 -181
  61. package/fesm2020/worktile-theia.mjs.map +1 -1
  62. package/interfaces/image.d.ts +1 -0
  63. package/interfaces/plugins/plugins.d.ts +4 -0
  64. package/package.json +1 -1
  65. package/plugins/table/components/toolbar/table-toolbar.component.d.ts +5 -1
  66. package/plugins/table/table.service.d.ts +2 -1
  67. package/services/context.service.d.ts +1 -1
@@ -14,6 +14,7 @@ export interface ImageEntry {
14
14
  align?: Alignment;
15
15
  layout?: LayoutTypes;
16
16
  reSized?: boolean;
17
+ size?: number;
17
18
  }
18
19
  export interface LayoutOption extends ToolbarItem {
19
20
  handle?: (e: MouseEvent, key: Alignment | LayoutTypes) => void;
@@ -1,3 +1,4 @@
1
+ import { Editor, Element } from 'slate';
1
2
  import { CustomElementKinds } from '../../custom-types';
2
3
  import { ToolbarItem } from '../toolbar';
3
4
  import { NestedStructureByKey } from '../utility';
@@ -8,6 +9,9 @@ import { WithOverride } from './with-override';
8
9
  export declare type ThePluginBaseOption = {
9
10
  allowParentTypes?: (CustomElementKinds | string)[];
10
11
  disabledOperateTypes?: CustomElementKinds[];
12
+ showFullscreen?: boolean;
13
+ setFullscreen?: (editor: Editor, event: MouseEvent, element: Element) => void;
14
+ exitFullscreen?: (editor: Editor, event: MouseEvent, element: Element) => void;
11
15
  };
12
16
  export declare type ThePluginOption<P> = NoInfer<{
13
17
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "13.0.18",
3
+ "version": "13.0.21",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -4,6 +4,7 @@ import { Editor } from 'slate';
4
4
  import { TableStore } from '../../table.store';
5
5
  import { TheColorSelectService } from '../../../../services/color-select.service';
6
6
  import { MenuEntity } from '../../table.types';
7
+ import { TableElement } from '../../../..//custom-types';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
9
10
  private ngZone;
@@ -15,9 +16,11 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
15
16
  iconName: string;
16
17
  tableStore: TableStore;
17
18
  isActiveSelect: boolean;
19
+ tableElement: TableElement;
18
20
  get editor(): Editor;
19
21
  cellMenuList: MenuEntity[];
20
22
  get isShowSplitLine(): boolean;
23
+ get tableOptions(): import("../../../../interfaces").ThePluginOption<{}>;
21
24
  constructor(ngZone: NgZone, colorSelectService: TheColorSelectService, thyPopover: ThyPopover, popoverRef: ThyPopoverRef<TheTableToolbarComponent>);
22
25
  ngOnInit(): void;
23
26
  ngOnDestroy(): void;
@@ -27,9 +30,10 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
27
30
  onEnterDelete(event: MouseEvent): void;
28
31
  onLeaveDelete(event: MouseEvent): void;
29
32
  openSelectColor(event: MouseEvent): void;
33
+ setFullscreen(event: MouseEvent): void;
30
34
  openTableOptionMenu(event: Event): void;
31
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TheTableToolbarComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "isActiveSelect": "isActiveSelect"; }, {}, never, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "isActiveSelect": "isActiveSelect"; "tableElement": "tableElement"; }, {}, never, never>;
33
37
  }
34
38
  export declare enum DeleteIcon {
35
39
  'table-delete-rows' = 0,
@@ -5,6 +5,7 @@ import { Overlay } from '@angular/cdk/overlay';
5
5
  import { TableStore } from './table.store';
6
6
  import { TheTableContextMenuService } from '../../services/table-contextmenu.service';
7
7
  import { TheContextService } from '../../services/context.service';
8
+ import { TableElement } from '../../custom-types';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class TableService {
10
11
  private thyPopover;
@@ -21,7 +22,7 @@ export declare class TableService {
21
22
  toolbarRef: ThyPopoverRef<any>;
22
23
  get isOpened(): any;
23
24
  constructor(thyPopover: ThyPopover, overlay: Overlay, tableStore: TableStore, theTableContextMenuService: TheTableContextMenuService, ngZone: NgZone, theContextService: TheContextService);
24
- openToolbar(origin: HTMLElement, isActiveSelect?: boolean): void;
25
+ openToolbar(origin: HTMLElement, tableElement: TableElement, isActiveSelect?: boolean): void;
25
26
  getOrigin(origin: HTMLElement): HTMLElement;
26
27
  closeToolbar(): import("rxjs").Observable<unknown>;
27
28
  _listenCellClearEvent(): void;
@@ -5,9 +5,9 @@ import { FontSizes, MarkTypes } from '../constants/node-types';
5
5
  import * as i0 from "@angular/core";
6
6
  export interface TheContextOptions {
7
7
  theOptions: TheOptions;
8
- width?: number;
9
8
  nativeElement: HTMLElement;
10
9
  viewContainerRef: ViewContainerRef;
10
+ width?: number;
11
11
  }
12
12
  interface PaintFormatStatus {
13
13
  isActive: boolean;