croco-html 4.9.6 → 4.10.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.
|
@@ -28,7 +28,6 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
|
28
28
|
requestChanged(): void;
|
|
29
29
|
addNewMediaRequest(): void;
|
|
30
30
|
deleteMediaRequest(index: number): void;
|
|
31
|
-
onFilesUploaded(fileIds: string[] | number[]): void;
|
|
32
31
|
ngOnDestroy(): void;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
34
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
@@ -6,11 +6,14 @@ import { TagItem, HtmlBodyTag } from '../../../models/models';
|
|
|
6
6
|
import { CrocoHtmlOptions } from '../../../options';
|
|
7
7
|
import { SpriteIdsType } from "../../../../sprites-ids.type";
|
|
8
8
|
import { HtmlRawTagDataConsts, TextAlignment } from '../../../tag-services';
|
|
9
|
+
import { FileImageTagDataConsts } from '../../../extensions';
|
|
10
|
+
import { UploadFilesBtnComponent } from '../../upload-files-btn/upload-files-btn.component';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
11
13
|
private readonly _cdref;
|
|
12
14
|
private readonly _options;
|
|
13
15
|
textArea: ElementRef;
|
|
16
|
+
imageUploadBtn: UploadFilesBtnComponent;
|
|
14
17
|
isLoading: boolean;
|
|
15
18
|
loadingText: string;
|
|
16
19
|
text: string;
|
|
@@ -31,11 +34,16 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
31
34
|
}[];
|
|
32
35
|
selectedValue: string;
|
|
33
36
|
selectedVideoPlayer: string;
|
|
37
|
+
imageMode: 'select' | 'upload' | null;
|
|
34
38
|
protected readonly ExternalVideoTagDataConsts: typeof ExternalVideoTagDataConsts;
|
|
35
39
|
protected readonly HtmlRawTagDataConsts: typeof HtmlRawTagDataConsts;
|
|
36
40
|
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
41
|
+
protected readonly FileImageTagDataConsts: typeof FileImageTagDataConsts;
|
|
37
42
|
useHtmlRaw: boolean;
|
|
38
43
|
html: string;
|
|
44
|
+
isHtmlSet(): boolean;
|
|
45
|
+
clearHtml(): void;
|
|
46
|
+
getHtml(): string;
|
|
39
47
|
onHtmlChanged: EventEmitter<string>;
|
|
40
48
|
rendered: EventEmitter<boolean>;
|
|
41
49
|
bodyTags: HtmlBodyTag[];
|
|
@@ -45,6 +53,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
45
53
|
ngAfterViewInit(): void;
|
|
46
54
|
resetTextStyle(): void;
|
|
47
55
|
drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
|
|
56
|
+
addTag(tag: HtmlBodyTag): void;
|
|
48
57
|
onTagChangedHandler(data: HtmlBodyTag, index: number): void;
|
|
49
58
|
onTagRemovedHandler(index: number): void;
|
|
50
59
|
recalculateHtml(): void;
|
|
@@ -52,6 +61,9 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
52
61
|
selectTag(data: TagItem): void;
|
|
53
62
|
isTagRequiringForm(): boolean;
|
|
54
63
|
addTagWithForm(): void;
|
|
64
|
+
selectExistingImage(): void;
|
|
65
|
+
uploadNewImages(): void;
|
|
66
|
+
onImageFilesUploaded(fileIds: string[] | number[]): void;
|
|
55
67
|
addTextTag(): void;
|
|
56
68
|
addExternalVideoTag(): void;
|
|
57
69
|
addHtmlRawTag(): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ import { XmlTagCustomWidgetComponent } from "./components";
|
|
|
19
19
|
export declare const EditorComponents: (typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
|
|
20
20
|
export declare const XmlComponents: (typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent)[];
|
|
21
21
|
export declare const CrocoPipes: (typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof FileIdSelectComponent | typeof
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof CustomWidgetIconComponent | typeof UploadFilesBtnComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
23
23
|
export declare const MaterialModules: (typeof MatTabsModule)[];
|