@kolkov/angular-editor 3.0.5 → 3.1.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.
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { HttpEvent,
|
|
1
|
+
import { HttpEvent, HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { OnInit, EventEmitter, ElementRef,
|
|
4
|
+
import { OnInit, EventEmitter, ElementRef, AfterViewInit, OnDestroy, TemplateRef } from '@angular/core';
|
|
5
5
|
import * as i7 from '@angular/forms';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
7
|
import * as i6 from '@angular/common';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -71,13 +70,12 @@ interface UploadResponse {
|
|
|
71
70
|
imageUrl: string;
|
|
72
71
|
}
|
|
73
72
|
declare class AngularEditorService {
|
|
74
|
-
private http;
|
|
75
|
-
private doc;
|
|
76
73
|
savedSelection: Range | null;
|
|
77
74
|
selectedText: string;
|
|
78
75
|
uploadUrl: string;
|
|
79
76
|
uploadWithCredentials: boolean;
|
|
80
|
-
|
|
77
|
+
private http;
|
|
78
|
+
private doc;
|
|
81
79
|
/**
|
|
82
80
|
* Executed command from editor header buttons exclude toggleEditorMode
|
|
83
81
|
* @param command string from triggerCommand
|
|
@@ -124,7 +122,7 @@ declare class AngularEditorService {
|
|
|
124
122
|
/**
|
|
125
123
|
* setTimeout used for execute 'saveSelection' method in next event loop iteration
|
|
126
124
|
*/
|
|
127
|
-
executeInNextQueueIteration(callbackFn: (...args:
|
|
125
|
+
executeInNextQueueIteration(callbackFn: (...args: unknown[]) => unknown, timeout?: number): void;
|
|
128
126
|
/** check any selection is made or not */
|
|
129
127
|
private checkSelection;
|
|
130
128
|
/**
|
|
@@ -179,7 +177,7 @@ declare class AngularEditorService {
|
|
|
179
177
|
private insertYouTubeVideoTag;
|
|
180
178
|
private insertVimeoVideoTag;
|
|
181
179
|
nextNode(node: any): any;
|
|
182
|
-
getRangeSelectedNodes(range: any, includePartiallySelectedContainers:
|
|
180
|
+
getRangeSelectedNodes(range: any, includePartiallySelectedContainers: boolean): any[];
|
|
183
181
|
getSelectedNodes(): any[];
|
|
184
182
|
replaceWithOwnChildren(el: any): void;
|
|
185
183
|
removeSelectedElements(tagNames: any): void;
|
|
@@ -192,8 +190,6 @@ interface SelectOption {
|
|
|
192
190
|
value: string;
|
|
193
191
|
}
|
|
194
192
|
declare class AeSelectComponent implements OnInit, ControlValueAccessor {
|
|
195
|
-
private elRef;
|
|
196
|
-
private r;
|
|
197
193
|
options: SelectOption[];
|
|
198
194
|
isHidden: boolean;
|
|
199
195
|
selectedOption: SelectOption;
|
|
@@ -205,7 +201,8 @@ declare class AeSelectComponent implements OnInit, ControlValueAccessor {
|
|
|
205
201
|
hidden: string;
|
|
206
202
|
changeEvent: EventEmitter<any>;
|
|
207
203
|
labelButton: ElementRef;
|
|
208
|
-
|
|
204
|
+
private elRef;
|
|
205
|
+
private r;
|
|
209
206
|
ngOnInit(): void;
|
|
210
207
|
hide(): void;
|
|
211
208
|
optionSelect(option: SelectOption, event: MouseEvent): void;
|
|
@@ -232,26 +229,19 @@ declare class AeSelectComponent implements OnInit, ControlValueAccessor {
|
|
|
232
229
|
}
|
|
233
230
|
|
|
234
231
|
declare class AeToolbarComponent {
|
|
235
|
-
private r;
|
|
236
|
-
private editorService;
|
|
237
|
-
private er;
|
|
238
|
-
private doc;
|
|
239
232
|
htmlMode: boolean;
|
|
240
233
|
linkSelected: boolean;
|
|
241
234
|
block: string;
|
|
242
235
|
fontName: string;
|
|
243
236
|
fontSize: string;
|
|
244
|
-
foreColour:
|
|
245
|
-
backColor:
|
|
237
|
+
foreColour: string;
|
|
238
|
+
backColor: string;
|
|
246
239
|
headings: SelectOption[];
|
|
247
240
|
fontSizes: SelectOption[];
|
|
248
241
|
customClassId: string;
|
|
249
242
|
_customClasses: CustomClass[];
|
|
250
243
|
customClassList: SelectOption[];
|
|
251
|
-
tagMap:
|
|
252
|
-
BLOCKQUOTE: string;
|
|
253
|
-
A: string;
|
|
254
|
-
};
|
|
244
|
+
tagMap: Record<string, string>;
|
|
255
245
|
select: string[];
|
|
256
246
|
buttons: string[];
|
|
257
247
|
id: string;
|
|
@@ -266,7 +256,10 @@ declare class AeToolbarComponent {
|
|
|
266
256
|
execute: EventEmitter<string>;
|
|
267
257
|
myInputFile: ElementRef;
|
|
268
258
|
get isLinkButtonDisabled(): boolean;
|
|
269
|
-
|
|
259
|
+
private r;
|
|
260
|
+
private editorService;
|
|
261
|
+
private er;
|
|
262
|
+
private doc;
|
|
270
263
|
/**
|
|
271
264
|
* Trigger command from editor header buttons
|
|
272
265
|
* @param command string from toolbar buttons
|
|
@@ -323,11 +316,6 @@ declare class AeToolbarComponent {
|
|
|
323
316
|
}
|
|
324
317
|
|
|
325
318
|
declare class AngularEditorComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
326
|
-
private r;
|
|
327
|
-
private editorService;
|
|
328
|
-
private doc;
|
|
329
|
-
private sanitizer;
|
|
330
|
-
private cdRef;
|
|
331
319
|
private autoFocus;
|
|
332
320
|
private onChange;
|
|
333
321
|
private onTouched;
|
|
@@ -343,12 +331,12 @@ declare class AngularEditorComponent implements OnInit, ControlValueAccessor, Af
|
|
|
343
331
|
config: AngularEditorConfig;
|
|
344
332
|
placeholder: string;
|
|
345
333
|
tabIndex: number | null;
|
|
346
|
-
html: any
|
|
334
|
+
html: EventEmitter<any>;
|
|
347
335
|
textArea: ElementRef;
|
|
348
336
|
editorWrapper: ElementRef;
|
|
349
337
|
editorToolbar: AeToolbarComponent;
|
|
350
338
|
customButtonsTemplateRef?: TemplateRef<any>;
|
|
351
|
-
executeCommandFn:
|
|
339
|
+
executeCommandFn: (command: string, value?: string) => void;
|
|
352
340
|
viewMode: EventEmitter<boolean>;
|
|
353
341
|
/** emits `blur` event when focused out from the textarea */
|
|
354
342
|
blurEvent: EventEmitter<FocusEvent>;
|
|
@@ -356,10 +344,15 @@ declare class AngularEditorComponent implements OnInit, ControlValueAccessor, Af
|
|
|
356
344
|
focusEvent: EventEmitter<FocusEvent>;
|
|
357
345
|
tabindex: number;
|
|
358
346
|
onFocus(): void;
|
|
359
|
-
|
|
347
|
+
private r;
|
|
348
|
+
private editorService;
|
|
349
|
+
private doc;
|
|
350
|
+
private sanitizer;
|
|
351
|
+
private cdRef;
|
|
352
|
+
constructor(defaultTabIndex: string, autoFocus: any);
|
|
360
353
|
ngOnInit(): void;
|
|
361
354
|
ngAfterViewInit(): void;
|
|
362
|
-
onPaste(event: ClipboardEvent): string;
|
|
355
|
+
onPaste(event: ClipboardEvent): string | undefined;
|
|
363
356
|
/**
|
|
364
357
|
* Executed command from editor header buttons
|
|
365
358
|
* @param command string from triggerCommand
|
|
@@ -445,13 +438,12 @@ declare class AngularEditorComponent implements OnInit, ControlValueAccessor, Af
|
|
|
445
438
|
getCustomTags(): string;
|
|
446
439
|
ngOnDestroy(): void;
|
|
447
440
|
filterStyles(html: string): string;
|
|
448
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularEditorComponent, [
|
|
441
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AngularEditorComponent, [{ attribute: "tabindex"; }, { attribute: "autofocus"; }]>;
|
|
449
442
|
static ɵcmp: i0.ɵɵComponentDeclaration<AngularEditorComponent, "angular-editor", never, { "id": { "alias": "id"; "required": false; }; "config": { "alias": "config"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "html": "html"; "viewMode": "viewMode"; "blurEvent": "blur"; "focusEvent": "focus"; }, ["customButtonsTemplateRef"], never, false, never>;
|
|
450
443
|
}
|
|
451
444
|
|
|
452
445
|
declare class AeButtonComponent {
|
|
453
446
|
iconName: string;
|
|
454
|
-
constructor();
|
|
455
447
|
static ɵfac: i0.ɵɵFactoryDeclaration<AeButtonComponent, never>;
|
|
456
448
|
static ɵcmp: i0.ɵɵComponentDeclaration<AeButtonComponent, "ae-button, button[aeButton]", never, { "iconName": { "alias": "iconName"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
457
449
|
}
|