@worktile/theia 14.2.1 → 14.2.4
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/components/action/prevent-default.d.ts +6 -0
- package/components/listbox/listbox.d.ts +7 -4
- package/components/listbox/listbox.type.d.ts +1 -1
- package/components/plugin-menu/plugin-menu.component.d.ts +14 -6
- package/components/plugin-menu/plugin-menu.component.scss +9 -2
- package/constants/plugin-menu.d.ts +4 -1
- package/editor.component.d.ts +1 -6
- package/editor.module.d.ts +51 -49
- package/esm2020/components/action/prevent-default.mjs +20 -0
- package/esm2020/components/listbox/listbox.mjs +30 -16
- package/esm2020/components/listbox/listbox.type.mjs +1 -1
- package/esm2020/components/plugin-menu/plugin-menu.component.mjs +72 -27
- package/esm2020/components/toolbar/toolbar.component.mjs +3 -2
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -3
- package/esm2020/constants/plugin-menu.mjs +33 -1
- package/esm2020/constants/toolbar.mjs +2 -1
- package/esm2020/editor.component.mjs +17 -27
- package/esm2020/editor.module.mjs +12 -5
- package/esm2020/plugins/quick-insert/quick-insert.editor.mjs +1 -2
- package/esm2020/plugins/todo-item/todo-item.plugin.mjs +2 -2
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/worktile-theia.mjs +2095 -1993
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +4716 -4616
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ThePreventDefaultDirective {
|
|
3
|
+
mousedown(event: MouseEvent): void;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThePreventDefaultDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThePreventDefaultDirective, "[thePreventDefault]", ["thePreventDefault"], {}, {}, never, never, false>;
|
|
6
|
+
}
|
|
@@ -5,12 +5,13 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class TheListboxOptionDirective implements OnInit, AfterContentInit {
|
|
6
6
|
parentOption: TheListboxOptionDirective;
|
|
7
7
|
parentGroup: TheListboxGroupDirective;
|
|
8
|
-
|
|
8
|
+
elementRef: ElementRef<HTMLElement>;
|
|
9
9
|
private _active;
|
|
10
10
|
className: string;
|
|
11
11
|
_options: QueryList<TheListboxOptionDirective>;
|
|
12
12
|
get hasChild(): boolean;
|
|
13
13
|
get firstChild(): TheListboxOptionDirective;
|
|
14
|
+
theOptionValue: unknown;
|
|
14
15
|
constructor(parentOption: TheListboxOptionDirective, parentGroup: TheListboxGroupDirective, elementRef: ElementRef<HTMLElement>);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
ngAfterContentInit(): void;
|
|
@@ -18,7 +19,7 @@ export declare class TheListboxOptionDirective implements OnInit, AfterContentIn
|
|
|
18
19
|
setActive(active: boolean): void;
|
|
19
20
|
getActive(): boolean;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheListboxOptionDirective, [{ optional: true; skipSelf: true; }, null, null]>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TheListboxOptionDirective, "[
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TheListboxOptionDirective, "[theListboxOption]", ["theListboxOption"], { "theOptionValue": "theOptionValue"; }, {}, ["_options"], never, false>;
|
|
22
23
|
}
|
|
23
24
|
export declare class TheListboxGroupDirective implements OnInit, AfterContentInit {
|
|
24
25
|
parentOption: TheListboxOptionDirective;
|
|
@@ -35,6 +36,7 @@ export declare class TheListboxGroupDirective implements OnInit, AfterContentIni
|
|
|
35
36
|
ngAfterContentInit(): void;
|
|
36
37
|
filterOptions(): void;
|
|
37
38
|
getSiblingGroups(): TheListboxGroupDirective[];
|
|
39
|
+
hasChild(): boolean;
|
|
38
40
|
getFirst(): TheListboxOptionDirective;
|
|
39
41
|
getLast(): TheListboxOptionDirective;
|
|
40
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheListboxGroupDirective, [{ optional: true; skipSelf: true; }, null]>;
|
|
@@ -49,8 +51,9 @@ export declare class TheListboxDirective implements OnInit, AfterContentInit, On
|
|
|
49
51
|
activeOption: TheListboxOptionDirective;
|
|
50
52
|
groups: TheListboxGroupDirective[];
|
|
51
53
|
protected _groups: QueryList<TheListboxGroupDirective>;
|
|
54
|
+
protected _options: QueryList<TheListboxOptionDirective>;
|
|
52
55
|
keyboardContainer: HTMLElement;
|
|
53
|
-
|
|
56
|
+
theListboxChange: EventEmitter<TheListboxChangeEvent>;
|
|
54
57
|
constructor(ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
|
|
55
58
|
ngOnInit(): void;
|
|
56
59
|
ngAfterContentInit(): void;
|
|
@@ -77,7 +80,7 @@ export declare class TheListboxDirective implements OnInit, AfterContentInit, On
|
|
|
77
80
|
setActiveItem(previous: TheListboxOptionDirective | null, option: TheListboxOptionDirective, type: TheListboxChangeEventType): void;
|
|
78
81
|
ngOnDestroy(): void;
|
|
79
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheListboxDirective, never>;
|
|
80
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TheListboxDirective, "[theListBox]", ["theListBox"], { "keyboardContainer": "keyboardContainer"; }, { "
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TheListboxDirective, "[theListBox]", ["theListBox"], { "keyboardContainer": "keyboardContainer"; }, { "theListboxChange": "theListboxChange"; }, ["_groups", "_options"], never, false>;
|
|
81
84
|
}
|
|
82
85
|
export interface TheListboxChangeEvent {
|
|
83
86
|
option: TheListboxOptionDirective;
|
|
@@ -2,4 +2,4 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
export declare const THE_LISTBOX_PARENT_OPTION_TOKEN: InjectionToken<unknown>;
|
|
3
3
|
export declare const THE_LISTBOX_PARENT_GROUP_TOKEN: InjectionToken<unknown>;
|
|
4
4
|
export declare const THE_LISTBOX_TOKEN: InjectionToken<unknown>;
|
|
5
|
-
export declare type TheListboxChangeEventType = 'turn' | 'child' | 'parent' | 'init';
|
|
5
|
+
export declare type TheListboxChangeEventType = 'turn' | 'child' | 'parent' | 'init' | 'select';
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef, NgZone } from '@angular/core';
|
|
2
2
|
import { MixinBase } from 'ngx-tethys/core';
|
|
3
3
|
import { Editor } from 'slate';
|
|
4
4
|
import { ThePluginMenuItemType } from '../../constants/plugin-menu';
|
|
5
|
-
import { ThePluginMenu, ThePluginMenuGroup, ThePluginMenuItem } from '../../interfaces/plugins/plugin-menu';
|
|
5
|
+
import { ThePluginMenu, ThePluginMenuGroup, ThePluginMenuItem, ThePluginMenuItemConfig } from '../../interfaces/plugins/plugin-menu';
|
|
6
|
+
import { TheListboxChangeEvent, TheListboxOptionDirective } from '../listbox/listbox';
|
|
7
|
+
import { ThyDropdownDirective } from 'ngx-tethys/dropdown';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
declare const ThePluginMenuComponent_base: import("ngx-tethys/core").Constructor<import("ngx-tethys/core").ThyUnsubscribe> & typeof MixinBase;
|
|
8
10
|
export declare class ThePluginMenuComponent extends ThePluginMenuComponent_base implements OnInit, OnDestroy {
|
|
9
11
|
elementRef: ElementRef;
|
|
10
12
|
cdr: ChangeDetectorRef;
|
|
13
|
+
private ngZone;
|
|
11
14
|
editorElement: HTMLElement;
|
|
12
15
|
ThePluginMenu: {
|
|
13
16
|
isMenuGroup(value: any): value is ThePluginMenuGroup;
|
|
14
17
|
isMenuItem(value: any): value is ThePluginMenuItem;
|
|
15
18
|
};
|
|
16
|
-
|
|
19
|
+
_pluginMenu: ThePluginMenu;
|
|
17
20
|
groupMenu: ThePluginMenu;
|
|
18
21
|
iconMenu: ThePluginMenu;
|
|
19
22
|
ThePluginMenuItemType: typeof ThePluginMenuItemType;
|
|
@@ -24,16 +27,21 @@ export declare class ThePluginMenuComponent extends ThePluginMenuComponent_base
|
|
|
24
27
|
placement: string;
|
|
25
28
|
width: string;
|
|
26
29
|
};
|
|
30
|
+
dropdownTriggers: ThyDropdownDirective[];
|
|
27
31
|
containerClassName: string;
|
|
28
32
|
editor: Editor;
|
|
29
|
-
|
|
33
|
+
theDisplaySearch: boolean;
|
|
34
|
+
thePluginMenu: ThePluginMenuItemConfig[];
|
|
35
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, ngZone: NgZone);
|
|
30
36
|
ngOnInit(): void;
|
|
31
37
|
buildMenus(): void;
|
|
32
|
-
|
|
38
|
+
handleItemSelection(menuItem: ThePluginMenuItem): void;
|
|
33
39
|
removeKeywords: () => void;
|
|
34
40
|
updateKeywords(keywords: string): void;
|
|
41
|
+
theListboxChange(event: TheListboxChangeEvent): void;
|
|
42
|
+
findDropdownTrigger(option: TheListboxOptionDirective): ThyDropdownDirective;
|
|
35
43
|
ngOnDestroy(): void;
|
|
36
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThePluginMenuComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThePluginMenuComponent, "the-plugin-menu", never, { "editor": "editor"; }, {}, never, never, false>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThePluginMenuComponent, "the-plugin-menu", never, { "editor": "editor"; "theDisplaySearch": "theDisplaySearch"; "thePluginMenu": "thePluginMenu"; }, {}, never, never, false>;
|
|
38
46
|
}
|
|
39
47
|
export {};
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
.the-plugin-menu-container {
|
|
4
4
|
width: 260px;
|
|
5
|
-
max-height:
|
|
5
|
+
max-height: 420px;
|
|
6
6
|
overflow: auto;
|
|
7
7
|
display: inline-block;
|
|
8
8
|
.icon-menu {
|
|
9
9
|
flex-wrap: wrap;
|
|
10
10
|
.thy-action {
|
|
11
11
|
margin-right: calc((220px - 32px * 6) / 5);
|
|
12
|
-
|
|
12
|
+
&.focus {
|
|
13
|
+
color: variables.$primary;
|
|
14
|
+
background-color: variables.$item-active-bg-color;
|
|
15
|
+
}
|
|
16
|
+
&:not(:hover):not(.active):not(.focus) {
|
|
13
17
|
color: variables.$gray-700;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
@@ -38,6 +42,9 @@
|
|
|
38
42
|
.dropdown-submenu {
|
|
39
43
|
padding: 12px 0 8px 0;
|
|
40
44
|
}
|
|
45
|
+
&.focus {
|
|
46
|
+
background-color: variables.$dropdown-menu-item-hover-bg;
|
|
47
|
+
}
|
|
41
48
|
}
|
|
42
49
|
.empty {
|
|
43
50
|
width: 260px;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThyIconRegistry } from 'ngx-tethys/icon';
|
|
1
2
|
import { ThePluginMenuItemConfig } from '../interfaces/plugins/plugin-menu';
|
|
2
3
|
export declare const DefaultPluginMenu: ThePluginMenuItemConfig[];
|
|
3
4
|
export declare enum ThePluginMenuItemType {
|
|
@@ -16,9 +17,11 @@ export declare enum PluginMenuIcons {
|
|
|
16
17
|
blockquote = "the-icon-block-quote",
|
|
17
18
|
code = "the-icon-code",
|
|
18
19
|
table = "the-icon-table",
|
|
19
|
-
hr = "the-icon-hr"
|
|
20
|
+
hr = "the-icon-hr",
|
|
21
|
+
checkItem = "the-icon-check-item"
|
|
20
22
|
}
|
|
21
23
|
export declare const PluginMenuSvgs: {
|
|
22
24
|
key: PluginMenuIcons;
|
|
23
25
|
svg: string;
|
|
24
26
|
}[];
|
|
27
|
+
export declare const initializeDefaultMenuIcons: (iconRegistry: ThyIconRegistry) => void;
|
package/editor.component.d.ts
CHANGED
|
@@ -7,10 +7,8 @@ import { TheTemplateComponent } from './components/template/template.component';
|
|
|
7
7
|
import { TheToolbarComponent } from './components/toolbar/toolbar.component';
|
|
8
8
|
import { TheTextComponent } from './components/text/text.component';
|
|
9
9
|
import { TheContextService } from './services/context.service';
|
|
10
|
-
import { TheQuickInsertComponent } from './plugins/quick-insert/components/quick-insert.component';
|
|
11
10
|
import { ThePlugin } from './interfaces/plugins/plugins';
|
|
12
11
|
import { ThyIconRegistry } from 'ngx-tethys/icon';
|
|
13
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
12
|
import * as i0 from "@angular/core";
|
|
15
13
|
declare const TheEditorComponent_base: import("ngx-tethys/core").Constructor<import("ngx-tethys/core").ThyUnsubscribe> & typeof MixinBase;
|
|
16
14
|
export declare class TheEditorComponent extends TheEditorComponent_base implements OnInit, OnChanges, OnDestroy {
|
|
@@ -20,7 +18,6 @@ export declare class TheEditorComponent extends TheEditorComponent_base implemen
|
|
|
20
18
|
private ngZone;
|
|
21
19
|
private cdr;
|
|
22
20
|
private iconRegistry;
|
|
23
|
-
private domSanitizer;
|
|
24
21
|
visibleQuickInsertPlus: boolean;
|
|
25
22
|
theOptions: TheOptions;
|
|
26
23
|
thePlugins: ThePlugin[];
|
|
@@ -36,7 +33,6 @@ export declare class TheEditorComponent extends TheEditorComponent_base implemen
|
|
|
36
33
|
theUploadingStatus: EventEmitter<boolean>;
|
|
37
34
|
templateInstance: TheTemplateComponent;
|
|
38
35
|
globalToolbarInstance: TheToolbarComponent;
|
|
39
|
-
quickInsertInstance: TheQuickInsertComponent;
|
|
40
36
|
toolbarEntity: ToolbarEntity;
|
|
41
37
|
editor: TheEditor;
|
|
42
38
|
editorValue: Descendant[];
|
|
@@ -48,13 +44,12 @@ export declare class TheEditorComponent extends TheEditorComponent_base implemen
|
|
|
48
44
|
elementToHtml: WeakMap<Element, string>;
|
|
49
45
|
private onChangeCallback;
|
|
50
46
|
private onTouchedCallback;
|
|
51
|
-
constructor(theContextService: TheContextService, viewContainerRef: ViewContainerRef, elementRef: ElementRef, ngZone: NgZone, cdr: ChangeDetectorRef, iconRegistry: ThyIconRegistry
|
|
47
|
+
constructor(theContextService: TheContextService, viewContainerRef: ViewContainerRef, elementRef: ElementRef, ngZone: NgZone, cdr: ChangeDetectorRef, iconRegistry: ThyIconRegistry);
|
|
52
48
|
ngOnInit(): void;
|
|
53
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
54
50
|
ngOnDestroy(): void;
|
|
55
51
|
initialize(): void;
|
|
56
52
|
initializeOptions(): void;
|
|
57
|
-
initializeMenuIcon(): void;
|
|
58
53
|
applyAutoFocus(): void;
|
|
59
54
|
toolbarCalculate(): void;
|
|
60
55
|
globalToolbarInit(): void;
|
package/editor.module.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { TheTableToolbarItemComponent } from './plugins/table/toolbar-item.compo
|
|
|
28
28
|
import { TheVerticalToolbarItemComponent } from './plugins/vertical-align/toolbar-item.component';
|
|
29
29
|
import { ThePluginMenuComponent } from './components/plugin-menu/plugin-menu.component';
|
|
30
30
|
import { TheListboxDirective, TheListboxOptionDirective, TheListboxGroupDirective } from './components/listbox/listbox';
|
|
31
|
+
import { ThePreventDefaultDirective } from './components/action/prevent-default';
|
|
31
32
|
import * as i0 from "@angular/core";
|
|
32
33
|
import * as i1 from "./editor.component";
|
|
33
34
|
import * as i2 from "./pipes";
|
|
@@ -50,56 +51,57 @@ import * as i18 from "./components/conversion-hint/conversion-hint.component";
|
|
|
50
51
|
import * as i19 from "./plugins/vertical-align/toolbar-item.component";
|
|
51
52
|
import * as i20 from "./plugins/table/components/toolbar/table-options.component";
|
|
52
53
|
import * as i21 from "./components/listbox/listbox";
|
|
53
|
-
import * as i22 from "./
|
|
54
|
-
import * as i23 from "./
|
|
55
|
-
import * as i24 from "./
|
|
56
|
-
import * as i25 from "./plugins/
|
|
57
|
-
import * as i26 from "./plugins/
|
|
58
|
-
import * as i27 from "./plugins/
|
|
59
|
-
import * as i28 from "./plugins/list/components/
|
|
60
|
-
import * as i29 from "./plugins/list/components/
|
|
61
|
-
import * as i30 from "./plugins/
|
|
62
|
-
import * as i31 from "./plugins/
|
|
63
|
-
import * as i32 from "./plugins/link/
|
|
64
|
-
import * as i33 from "./plugins/link/
|
|
65
|
-
import * as i34 from "./plugins/
|
|
66
|
-
import * as i35 from "./plugins/table/components/table.component";
|
|
67
|
-
import * as i36 from "./plugins/table/components/
|
|
68
|
-
import * as i37 from "./plugins/table/components/
|
|
69
|
-
import * as i38 from "./plugins/
|
|
70
|
-
import * as i39 from "
|
|
71
|
-
import * as i40 from "@angular/
|
|
72
|
-
import * as i41 from "
|
|
73
|
-
import * as i42 from "
|
|
74
|
-
import * as i43 from "
|
|
75
|
-
import * as i44 from "ngx-tethys/
|
|
76
|
-
import * as i45 from "ngx-tethys/
|
|
77
|
-
import * as i46 from "ngx-tethys/
|
|
78
|
-
import * as i47 from "ngx-tethys/
|
|
79
|
-
import * as i48 from "ngx-tethys/
|
|
80
|
-
import * as i49 from "ngx-tethys/
|
|
81
|
-
import * as i50 from "ngx-tethys/
|
|
82
|
-
import * as i51 from "ngx-tethys/
|
|
83
|
-
import * as i52 from "ngx-tethys/
|
|
84
|
-
import * as i53 from "ngx-tethys/
|
|
85
|
-
import * as i54 from "ngx-tethys/
|
|
86
|
-
import * as i55 from "ngx-tethys/
|
|
87
|
-
import * as i56 from "ngx-tethys/
|
|
88
|
-
import * as i57 from "ngx-tethys/
|
|
89
|
-
import * as i58 from "ngx-tethys/
|
|
90
|
-
import * as i59 from "ngx-tethys/
|
|
91
|
-
import * as i60 from "ngx-tethys/
|
|
92
|
-
import * as i61 from "ngx-tethys/
|
|
93
|
-
import * as i62 from "ngx-tethys/
|
|
94
|
-
import * as i63 from "ngx-tethys/
|
|
95
|
-
import * as i64 from "ngx-tethys/
|
|
96
|
-
import * as i65 from "ngx-tethys/
|
|
97
|
-
import * as i66 from "
|
|
98
|
-
import * as i67 from "
|
|
99
|
-
|
|
100
|
-
export declare const
|
|
54
|
+
import * as i22 from "./components/action/prevent-default";
|
|
55
|
+
import * as i23 from "./plugins/image/image.component";
|
|
56
|
+
import * as i24 from "./components/template/template.component";
|
|
57
|
+
import * as i25 from "./plugins/hr/hr.component";
|
|
58
|
+
import * as i26 from "./plugins/blockquote/blockquote.component";
|
|
59
|
+
import * as i27 from "./plugins/todo-item/todo-item.component";
|
|
60
|
+
import * as i28 from "./plugins/list/components/list-item.component";
|
|
61
|
+
import * as i29 from "./plugins/list/components/bulleted-list.component";
|
|
62
|
+
import * as i30 from "./plugins/list/components/numbered-list.component";
|
|
63
|
+
import * as i31 from "./plugins/code/code.component";
|
|
64
|
+
import * as i32 from "./plugins/link/link.component";
|
|
65
|
+
import * as i33 from "./plugins/link/edit/link-edit.component";
|
|
66
|
+
import * as i34 from "./plugins/link/hover/link-hover.component";
|
|
67
|
+
import * as i35 from "./plugins/table/components/toolbar/table-toolbar.component";
|
|
68
|
+
import * as i36 from "./plugins/table/components/table.component";
|
|
69
|
+
import * as i37 from "./plugins/table/components/row/row.component";
|
|
70
|
+
import * as i38 from "./plugins/table/components/td/td.component";
|
|
71
|
+
import * as i39 from "./plugins/inline-code/inline-code.component";
|
|
72
|
+
import * as i40 from "@angular/common";
|
|
73
|
+
import * as i41 from "@angular/cdk/scrolling";
|
|
74
|
+
import * as i42 from "slate-angular";
|
|
75
|
+
import * as i43 from "@angular/forms";
|
|
76
|
+
import * as i44 from "ngx-tethys/icon";
|
|
77
|
+
import * as i45 from "ngx-tethys/avatar";
|
|
78
|
+
import * as i46 from "ngx-tethys/nav";
|
|
79
|
+
import * as i47 from "ngx-tethys/form";
|
|
80
|
+
import * as i48 from "ngx-tethys/shared";
|
|
81
|
+
import * as i49 from "ngx-tethys/list";
|
|
82
|
+
import * as i50 from "ngx-tethys/tooltip";
|
|
83
|
+
import * as i51 from "ngx-tethys/progress";
|
|
84
|
+
import * as i52 from "ngx-tethys/autocomplete";
|
|
85
|
+
import * as i53 from "ngx-tethys/input";
|
|
86
|
+
import * as i54 from "ngx-tethys/select";
|
|
87
|
+
import * as i55 from "ngx-tethys/button";
|
|
88
|
+
import * as i56 from "ngx-tethys/notify";
|
|
89
|
+
import * as i57 from "ngx-tethys/alert";
|
|
90
|
+
import * as i58 from "ngx-tethys/resizable";
|
|
91
|
+
import * as i59 from "ngx-tethys/switch";
|
|
92
|
+
import * as i60 from "ngx-tethys/image";
|
|
93
|
+
import * as i61 from "ngx-tethys/dialog";
|
|
94
|
+
import * as i62 from "ngx-tethys/action";
|
|
95
|
+
import * as i63 from "ngx-tethys/divider";
|
|
96
|
+
import * as i64 from "ngx-tethys/dropdown";
|
|
97
|
+
import * as i65 from "ngx-tethys/menu";
|
|
98
|
+
import * as i66 from "ngx-tethys/empty";
|
|
99
|
+
import * as i67 from "ng-codemirror";
|
|
100
|
+
import * as i68 from "./components/column-resize/column-resize.module";
|
|
101
|
+
export declare const COMPONENTS: (typeof TheDefaultElementComponent | typeof TheToolbarGroupComponent | typeof TheColorSelectComponent | typeof TheContextMenuComponent | typeof TheTableOptionsComponent | typeof TheTextComponent | typeof TheToolbarDropdownComponent | typeof TheToolbarItemComponent | typeof TheToolbarComponent | typeof TheColorToolbarItemComponent | typeof TheConversionHintComponent | typeof TheVerticalToolbarItemComponent | typeof TheListboxOptionDirective | typeof TheListboxGroupDirective | typeof TheListboxDirective | typeof ThePluginMenuComponent | typeof TheTableSelectComponent | typeof TheTableToolbarItemComponent | typeof TheInlineToolbarComponent | typeof TheQuickInsertComponent | typeof TheInsertMarkComponent | typeof ThePreventDefaultDirective)[];
|
|
102
|
+
export declare const PLUGIN_COMPONENTS: (typeof TheTableToolbarComponent | typeof TheTableComponent | typeof TheTemplateComponent | typeof TheBlockquoteComponent | typeof TheCodeComponent | typeof TheImageComponent | typeof TheLinkHoverComponent | typeof TheLinkEditComponent | typeof TheLinkComponent | typeof TheTdComponent | typeof TheTodoItemComponent)[];
|
|
101
103
|
export declare class TheEditorModule {
|
|
102
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheEditorModule, never>;
|
|
103
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TheEditorModule, [typeof i1.TheEditorComponent, typeof i2.ElementStylePipe, typeof i2.ElementClassPipe, typeof i3.TheToolbarComponent, typeof i4.TheToolbarDropdownComponent, typeof i5.TheToolbarGroupComponent, typeof i6.TheToolbarItemComponent, typeof i7.TheInlineToolbarComponent, typeof i8.TheTextComponent, typeof i9.TheDefaultElementComponent, typeof i10.TheQuickInsertComponent, typeof i11.ThePluginMenuComponent, typeof i12.TheColorSelectComponent, typeof i13.TheColorToolbarItemComponent, typeof i14.TheContextMenuComponent, typeof i15.TheInsertMarkComponent, typeof i16.TheTableSelectComponent, typeof i17.TheTableToolbarItemComponent, typeof i18.TheConversionHintComponent, typeof i19.TheVerticalToolbarItemComponent, typeof i20.TheTableOptionsComponent, typeof i21.TheListboxOptionDirective, typeof i21.TheListboxGroupDirective, typeof i21.TheListboxDirective, typeof i22.
|
|
105
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TheEditorModule, [typeof i1.TheEditorComponent, typeof i2.ElementStylePipe, typeof i2.ElementClassPipe, typeof i3.TheToolbarComponent, typeof i4.TheToolbarDropdownComponent, typeof i5.TheToolbarGroupComponent, typeof i6.TheToolbarItemComponent, typeof i7.TheInlineToolbarComponent, typeof i8.TheTextComponent, typeof i9.TheDefaultElementComponent, typeof i10.TheQuickInsertComponent, typeof i11.ThePluginMenuComponent, typeof i12.TheColorSelectComponent, typeof i13.TheColorToolbarItemComponent, typeof i14.TheContextMenuComponent, typeof i15.TheInsertMarkComponent, typeof i16.TheTableSelectComponent, typeof i17.TheTableToolbarItemComponent, typeof i18.TheConversionHintComponent, typeof i19.TheVerticalToolbarItemComponent, typeof i20.TheTableOptionsComponent, typeof i21.TheListboxOptionDirective, typeof i21.TheListboxGroupDirective, typeof i21.TheListboxDirective, typeof i22.ThePreventDefaultDirective, typeof i23.TheImageComponent, typeof i24.TheTemplateComponent, typeof i25.TheHrComponent, typeof i26.TheBlockquoteComponent, typeof i27.TheTodoItemComponent, typeof i28.TheListItemComponent, typeof i29.TheBulletedListComponent, typeof i30.TheNumberedListComponent, typeof i31.TheCodeComponent, typeof i32.TheLinkComponent, typeof i33.TheLinkEditComponent, typeof i34.TheLinkHoverComponent, typeof i35.TheTableToolbarComponent, typeof i36.TheTableComponent, typeof i37.TheTableRowComponent, typeof i38.TheTdComponent, typeof i39.TheInlineCodeComponent], [typeof i40.CommonModule, typeof i41.ScrollingModule, typeof i42.SlateModule, typeof i43.FormsModule, typeof i44.ThyIconModule, typeof i45.ThyAvatarModule, typeof i46.ThyNavModule, typeof i47.ThyFormModule, typeof i48.ThySharedModule, typeof i49.ThyListModule, typeof i50.ThyTooltipModule, typeof i51.ThyProgressModule, typeof i52.ThyAutocompleteModule, typeof i53.ThyInputModule, typeof i54.ThySelectModule, typeof i55.ThyButtonModule, typeof i56.ThyNotifyModule, typeof i57.ThyAlertModule, typeof i58.ThyResizableModule, typeof i59.ThySwitchModule, typeof i60.ThyImageModule, typeof i61.ThyDialogModule, typeof i62.ThyActionModule, typeof i63.ThyDividerModule, typeof i64.ThyDropdownModule, typeof i65.ThyMenuModule, typeof i66.ThyEmptyModule, typeof i67.CodemirrorModule, typeof i68.TheColumnSizeModule], [typeof i1.TheEditorComponent, typeof i3.TheToolbarComponent, typeof i4.TheToolbarDropdownComponent, typeof i6.TheToolbarItemComponent, typeof i9.TheDefaultElementComponent, typeof i11.ThePluginMenuComponent, typeof i21.TheListboxOptionDirective, typeof i21.TheListboxGroupDirective, typeof i21.TheListboxDirective, typeof i22.ThePreventDefaultDirective]>;
|
|
104
106
|
static ɵinj: i0.ɵɵInjectorDeclaration<TheEditorModule>;
|
|
105
107
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Directive, HostListener } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ThePreventDefaultDirective {
|
|
4
|
+
mousedown(event) {
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
ThePreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
ThePreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", host: { listeners: { "mousedown": "mousedown($event)" } }, exportAs: ["thePreventDefault"], ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ThePreventDefaultDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[thePreventDefault]',
|
|
14
|
+
exportAs: 'thePreventDefault'
|
|
15
|
+
}]
|
|
16
|
+
}], propDecorators: { mousedown: [{
|
|
17
|
+
type: HostListener,
|
|
18
|
+
args: ['mousedown', ['$event']]
|
|
19
|
+
}] } });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJldmVudC1kZWZhdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvc3JjL2NvbXBvbmVudHMvYWN0aW9uL3ByZXZlbnQtZGVmYXVsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFNeEQsTUFBTSxPQUFPLDBCQUEwQjtJQUVuQyxTQUFTLENBQUMsS0FBaUI7UUFDdkIsS0FBSyxDQUFDLGNBQWMsRUFBRSxDQUFDO0lBQzNCLENBQUM7O3VIQUpRLDBCQUEwQjsyR0FBMUIsMEJBQTBCOzJGQUExQiwwQkFBMEI7a0JBSnRDLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLHFCQUFxQjtvQkFDL0IsUUFBUSxFQUFFLG1CQUFtQjtpQkFDaEM7OEJBR0csU0FBUztzQkFEUixZQUFZO3VCQUFDLFdBQVcsRUFBRSxDQUFDLFFBQVEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgSG9zdExpc3RlbmVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoe1xuICAgIHNlbGVjdG9yOiAnW3RoZVByZXZlbnREZWZhdWx0XScsXG4gICAgZXhwb3J0QXM6ICd0aGVQcmV2ZW50RGVmYXVsdCdcbn0pXG5leHBvcnQgY2xhc3MgVGhlUHJldmVudERlZmF1bHREaXJlY3RpdmUge1xuICAgIEBIb3N0TGlzdGVuZXIoJ21vdXNlZG93bicsIFsnJGV2ZW50J10pXG4gICAgbW91c2Vkb3duKGV2ZW50OiBNb3VzZUV2ZW50KSB7XG4gICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgfVxufVxuIl19
|