@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.
- package/custom-types.d.ts +1 -0
- package/esm2020/components/color-select/color-select.component.mjs +4 -4
- package/esm2020/components/column-resize/column-resize-notifier.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.module.mjs +9 -9
- package/esm2020/components/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/components/column-resize/overlay-handle.component.mjs +4 -4
- package/esm2020/components/column-resize/resizing.store.mjs +4 -4
- package/esm2020/components/contextmenu/contextmenu.component.mjs +4 -4
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/esm2020/components/element/element.component.mjs +4 -4
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
- package/esm2020/components/table-select/table-select.component.mjs +4 -4
- package/esm2020/components/template/template.component.mjs +4 -4
- package/esm2020/components/text/text.component.mjs +4 -4
- package/esm2020/components/toolbar/toolbar.component.mjs +4 -4
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +4 -4
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +4 -4
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +7 -7
- package/esm2020/custom-types.mjs +1 -1
- package/esm2020/editor.component.mjs +4 -4
- package/esm2020/editor.module.mjs +5 -5
- package/esm2020/interfaces/image.mjs +1 -1
- package/esm2020/interfaces/plugins/plugins.mjs +1 -1
- package/esm2020/interfaces/view-base.mjs +4 -4
- package/esm2020/pipes.mjs +7 -7
- package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
- package/esm2020/plugins/code/code.component.mjs +4 -4
- package/esm2020/plugins/color/toolbar-item.component.mjs +4 -4
- package/esm2020/plugins/hr/hr.component.mjs +4 -4
- package/esm2020/plugins/image/image.component.mjs +9 -7
- package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
- package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
- package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2020/plugins/link/link.component.mjs +7 -7
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
- package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
- package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +4 -4
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
- package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
- package/esm2020/plugins/table/components/table.component.mjs +7 -7
- package/esm2020/plugins/table/components/td/td.component.mjs +5 -5
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +4 -4
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +15 -5
- package/esm2020/plugins/table/table.plugin.mjs +11 -2
- package/esm2020/plugins/table/table.service.mjs +6 -5
- package/esm2020/plugins/table/table.store.mjs +4 -4
- package/esm2020/plugins/table/toolbar-item.component.mjs +4 -4
- package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +4 -4
- package/esm2020/services/color-select.service.mjs +4 -4
- package/esm2020/services/context.service.mjs +4 -4
- package/esm2020/services/table-contextmenu.service.mjs +4 -4
- package/esm2020/services/toolbar.service.mjs +4 -4
- package/fesm2015/worktile-theia.mjs +201 -181
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +201 -181
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/interfaces/image.d.ts +1 -0
- package/interfaces/plugins/plugins.d.ts +4 -0
- package/package.json +1 -1
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +5 -1
- package/plugins/table/table.service.d.ts +2 -1
- package/services/context.service.d.ts +1 -1
package/interfaces/image.d.ts
CHANGED
|
@@ -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
|
@@ -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;
|