croco-html 4.9.4 → 4.10.0
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,6 +28,7 @@ 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;
|
|
31
32
|
ngOnDestroy(): void;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
33
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
@@ -22,6 +22,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
22
22
|
value: TextAlignment;
|
|
23
23
|
text: string;
|
|
24
24
|
}[];
|
|
25
|
+
isTagAdditionStarted: boolean;
|
|
25
26
|
showMarkUp: boolean;
|
|
26
27
|
tags: TagItem[];
|
|
27
28
|
videoPlayers: {
|
|
@@ -45,20 +46,21 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
45
46
|
useCustomWidgetsButton: boolean;
|
|
46
47
|
constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
|
|
47
48
|
ngAfterViewInit(): void;
|
|
48
|
-
ngAfterContentChecked(): void;
|
|
49
|
-
addTagClickHandler(): void;
|
|
50
|
-
startAddingText(tag?: string): void;
|
|
51
49
|
resetTextStyle(): void;
|
|
52
|
-
addTextTags(): void;
|
|
53
|
-
postFilesStartedEventHandler(): void;
|
|
54
|
-
addTag(tag: HtmlBodyTag): void;
|
|
55
|
-
filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
|
|
56
50
|
drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
|
|
51
|
+
addTag(tag: HtmlBodyTag): void;
|
|
57
52
|
onTagChangedHandler(data: HtmlBodyTag, index: number): void;
|
|
58
53
|
onTagRemovedHandler(index: number): void;
|
|
59
54
|
recalculateHtml(): void;
|
|
60
55
|
recalculateBodyTags(): void;
|
|
61
56
|
selectTag(data: TagItem): void;
|
|
57
|
+
isTagRequiringForm(): boolean;
|
|
58
|
+
addTagWithForm(): void;
|
|
59
|
+
addTextTag(): void;
|
|
60
|
+
addExternalVideoTag(): void;
|
|
61
|
+
addHtmlRawTag(): void;
|
|
62
|
+
resetTagForm(): void;
|
|
63
|
+
addRegularTag(): void;
|
|
62
64
|
isDefinedCustomWidget(tagName: string): boolean;
|
|
63
65
|
customWidgetsClickHandler(): void;
|
|
64
66
|
ngOnInit(): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ import { MainEditorBlockComponent } from "./components";
|
|
|
3
3
|
import { MainEditorComponent } from "./components";
|
|
4
4
|
import { TextEditorComponent } from "./components";
|
|
5
5
|
import { FileIdSelectComponent } from "./components";
|
|
6
|
+
import { XmlTagHeaderInnerTextViewComponent } from "./components";
|
|
6
7
|
import { XmlTagHtmlViewComponent } from "./components";
|
|
7
|
-
import { XmlTagTextViewComponent } from "./components";
|
|
8
8
|
import { XmlTagViewComponent } from "./components";
|
|
9
9
|
import { CustomWidgetEditorComponent } from "./components";
|
|
10
10
|
import { VisualEditorComponent } from './components';
|
|
11
11
|
import { AddFilesBtnComponent } from './components';
|
|
12
12
|
import { XmlTagExternalVideoComponent } from "./components";
|
|
13
13
|
import { HtmlRawEditorComponent } from "./components";
|
|
14
|
-
import {
|
|
14
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
15
15
|
import { TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
16
16
|
import { FileImageTagViewComponent, AudioPlayerTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
17
|
import { HtmlRawViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent)[];
|
|
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
|
|
23
|
-
export declare const MaterialModules: (typeof
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof AudioPlayerTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
23
|
+
export declare const MaterialModules: (typeof MatTabsModule)[];
|