@kolkov/angular-editor 3.0.0-beta.2 → 3.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.
- package/CHANGELOG.md +69 -1
- package/README.md +15 -10
- package/assets/icons/icons.svg +2 -2
- package/fesm2022/kolkov-angular-editor.mjs +1360 -0
- package/fesm2022/kolkov-angular-editor.mjs.map +1 -0
- package/index.d.ts +412 -0
- package/package.json +10 -16
- package/themes/default.scss +22 -22
- package/esm2020/kolkov-angular-editor.mjs +0 -5
- package/esm2020/lib/ae-button/ae-button.component.mjs +0 -21
- package/esm2020/lib/ae-select/ae-select.component.mjs +0 -185
- package/esm2020/lib/ae-toolbar/ae-toolbar.component.mjs +0 -365
- package/esm2020/lib/ae-toolbar-set/ae-toolbar-set.component.mjs +0 -15
- package/esm2020/lib/angular-editor.module.mjs +0 -27
- package/esm2020/lib/angular-editor.service.mjs +0 -275
- package/esm2020/lib/config.mjs +0 -36
- package/esm2020/lib/editor/angular-editor.component.mjs +0 -415
- package/esm2020/lib/utils.mjs +0 -4
- package/esm2020/public-api.mjs +0 -11
- package/fesm2015/kolkov-angular-editor.mjs +0 -1325
- package/fesm2015/kolkov-angular-editor.mjs.map +0 -1
- package/fesm2020/kolkov-angular-editor.mjs +0 -1319
- package/fesm2020/kolkov-angular-editor.mjs.map +0 -1
- package/kolkov-angular-editor.d.ts +0 -5
- package/lib/ae-button/ae-button.component.d.ts +0 -7
- package/lib/ae-select/ae-select.component.d.ts +0 -46
- package/lib/ae-toolbar/ae-toolbar.component.d.ts +0 -97
- package/lib/ae-toolbar-set/ae-toolbar-set.component.d.ts +0 -6
- package/lib/angular-editor.module.d.ts +0 -13
- package/lib/angular-editor.service.d.ts +0 -87
- package/lib/config.d.ts +0 -39
- package/lib/editor/angular-editor.component.d.ts +0 -133
- package/lib/utils.d.ts +0 -1
- package/public-api.d.ts +0 -8
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { AeToolbarComponent } from '../ae-toolbar/ae-toolbar.component';
|
|
5
|
-
import { AngularEditorService } from '../angular-editor.service';
|
|
6
|
-
import { AngularEditorConfig } from '../config';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class AngularEditorComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
9
|
-
private r;
|
|
10
|
-
private editorService;
|
|
11
|
-
private doc;
|
|
12
|
-
private sanitizer;
|
|
13
|
-
private cdRef;
|
|
14
|
-
private autoFocus;
|
|
15
|
-
private onChange;
|
|
16
|
-
private onTouched;
|
|
17
|
-
modeVisual: boolean;
|
|
18
|
-
showPlaceholder: boolean;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
focused: boolean;
|
|
21
|
-
touched: boolean;
|
|
22
|
-
changed: boolean;
|
|
23
|
-
focusInstance: any;
|
|
24
|
-
blurInstance: any;
|
|
25
|
-
id: string;
|
|
26
|
-
config: AngularEditorConfig;
|
|
27
|
-
placeholder: string;
|
|
28
|
-
tabIndex: number | null;
|
|
29
|
-
html: any;
|
|
30
|
-
textArea: ElementRef;
|
|
31
|
-
editorWrapper: ElementRef;
|
|
32
|
-
editorToolbar: AeToolbarComponent;
|
|
33
|
-
customButtonsTemplateRef?: TemplateRef<any>;
|
|
34
|
-
executeCommandFn: any;
|
|
35
|
-
viewMode: EventEmitter<boolean>;
|
|
36
|
-
/** emits `blur` event when focused out from the textarea */
|
|
37
|
-
blurEvent: EventEmitter<FocusEvent>;
|
|
38
|
-
/** emits `focus` event when focused in to the textarea */
|
|
39
|
-
focusEvent: EventEmitter<FocusEvent>;
|
|
40
|
-
tabindex: number;
|
|
41
|
-
onFocus(): void;
|
|
42
|
-
constructor(r: Renderer2, editorService: AngularEditorService, doc: any, sanitizer: DomSanitizer, cdRef: ChangeDetectorRef, defaultTabIndex: string, autoFocus: any);
|
|
43
|
-
ngOnInit(): void;
|
|
44
|
-
ngAfterViewInit(): void;
|
|
45
|
-
onPaste(event: ClipboardEvent): string;
|
|
46
|
-
/**
|
|
47
|
-
* Executed command from editor header buttons
|
|
48
|
-
* @param command string from triggerCommand
|
|
49
|
-
* @param value
|
|
50
|
-
*/
|
|
51
|
-
executeCommand(command: string, value?: string): void;
|
|
52
|
-
/**
|
|
53
|
-
* focus event
|
|
54
|
-
*/
|
|
55
|
-
onTextAreaFocus(event: FocusEvent): void;
|
|
56
|
-
/**
|
|
57
|
-
* @description fires when cursor leaves textarea
|
|
58
|
-
*/
|
|
59
|
-
onTextAreaMouseOut(event: MouseEvent): void;
|
|
60
|
-
/**
|
|
61
|
-
* blur event
|
|
62
|
-
*/
|
|
63
|
-
onTextAreaBlur(event: FocusEvent): void;
|
|
64
|
-
/**
|
|
65
|
-
* focus the text area when the editor is focused
|
|
66
|
-
*/
|
|
67
|
-
focus(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Executed from the contenteditable section while the input property changes
|
|
70
|
-
* @param element html element from contenteditable
|
|
71
|
-
*/
|
|
72
|
-
onContentChange(element: HTMLElement): void;
|
|
73
|
-
/**
|
|
74
|
-
* Set the function to be called
|
|
75
|
-
* when the control receives a change event.
|
|
76
|
-
*
|
|
77
|
-
* @param fn a function
|
|
78
|
-
*/
|
|
79
|
-
registerOnChange(fn: any): void;
|
|
80
|
-
/**
|
|
81
|
-
* Set the function to be called
|
|
82
|
-
* when the control receives a touch event.
|
|
83
|
-
*
|
|
84
|
-
* @param fn a function
|
|
85
|
-
*/
|
|
86
|
-
registerOnTouched(fn: any): void;
|
|
87
|
-
/**
|
|
88
|
-
* Write a new value to the element.
|
|
89
|
-
*
|
|
90
|
-
* @param value value to be executed when there is a change in contenteditable
|
|
91
|
-
*/
|
|
92
|
-
writeValue(value: any): void;
|
|
93
|
-
/**
|
|
94
|
-
* refresh view/HTML of the editor
|
|
95
|
-
*
|
|
96
|
-
* @param value html string from the editor
|
|
97
|
-
*/
|
|
98
|
-
refreshView(value: string): void;
|
|
99
|
-
/**
|
|
100
|
-
* toggles placeholder based on input string
|
|
101
|
-
*
|
|
102
|
-
* @param value A HTML string from the editor
|
|
103
|
-
*/
|
|
104
|
-
togglePlaceholder(value: boolean): void;
|
|
105
|
-
/**
|
|
106
|
-
* Implements disabled state for this element
|
|
107
|
-
*
|
|
108
|
-
* @param isDisabled Disabled flag
|
|
109
|
-
*/
|
|
110
|
-
setDisabledState(isDisabled: boolean): void;
|
|
111
|
-
/**
|
|
112
|
-
* toggles editor mode based on bToSource bool
|
|
113
|
-
*
|
|
114
|
-
* @param bToSource A boolean value from the editor
|
|
115
|
-
*/
|
|
116
|
-
toggleEditorMode(bToSource: boolean): void;
|
|
117
|
-
/**
|
|
118
|
-
* toggles editor buttons when cursor moved or positioning
|
|
119
|
-
*
|
|
120
|
-
* Send a node array from the contentEditable of the editor
|
|
121
|
-
*/
|
|
122
|
-
exec(): void;
|
|
123
|
-
private configure;
|
|
124
|
-
getFonts(): {
|
|
125
|
-
label: string;
|
|
126
|
-
value: string;
|
|
127
|
-
}[];
|
|
128
|
-
getCustomTags(): string;
|
|
129
|
-
ngOnDestroy(): void;
|
|
130
|
-
filterStyles(html: string): string;
|
|
131
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularEditorComponent, [null, null, null, null, null, { attribute: "tabindex"; }, { attribute: "autofocus"; }]>;
|
|
132
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AngularEditorComponent, "angular-editor", never, { "id": "id"; "config": "config"; "placeholder": "placeholder"; "tabIndex": "tabIndex"; }, { "html": "html"; "viewMode": "viewMode"; "blurEvent": "blur"; "focusEvent": "focus"; }, ["customButtonsTemplateRef"], never>;
|
|
133
|
-
}
|
package/lib/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isDefined(value: any): boolean;
|
package/public-api.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './lib/angular-editor.service';
|
|
2
|
-
export * from './lib/editor/angular-editor.component';
|
|
3
|
-
export * from './lib/ae-button/ae-button.component';
|
|
4
|
-
export * from './lib/ae-toolbar-set/ae-toolbar-set.component';
|
|
5
|
-
export * from './lib/ae-select/ae-select.component';
|
|
6
|
-
export * from './lib/ae-toolbar/ae-toolbar.component';
|
|
7
|
-
export * from './lib/angular-editor.module';
|
|
8
|
-
export { AngularEditorConfig, CustomClass } from './lib/config';
|