croco-html 2.0.9 → 2.1.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.
- package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +3 -3
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +1 -1
- package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +1 -1
- package/esm2022/lib/components/editor/visual-editor/DefaultAligments.mjs +12 -0
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +62 -11
- package/esm2022/lib/extensions/TextSimpleMethods.mjs +4 -3
- package/fesm2022/croco-html.mjs +73 -12
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/visual-editor/DefaultAligments.d.ts +9 -0
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +17 -1
- package/lib/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
3
|
import { TagItem, HtmlBodyTag } from '../../../models/models';
|
|
4
4
|
import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
|
|
5
|
+
import { EAlignments } from "./DefaultAligments";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
7
8
|
private _cdref;
|
|
9
|
+
textArea: ElementRef;
|
|
8
10
|
isLoading: boolean;
|
|
9
11
|
loadingText: string;
|
|
12
|
+
isActiveAddText: boolean;
|
|
13
|
+
text: string;
|
|
14
|
+
alignment: EAlignments;
|
|
15
|
+
textTag: string;
|
|
16
|
+
textTagOptions: TagItem[];
|
|
17
|
+
alignmentOptions: {
|
|
18
|
+
value: EAlignments;
|
|
19
|
+
text: string;
|
|
20
|
+
}[];
|
|
10
21
|
showMarkUp: boolean;
|
|
11
22
|
tags: TagItem[];
|
|
12
23
|
selectedValue: string;
|
|
@@ -18,10 +29,15 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
18
29
|
onHtmlChanged: EventEmitter<string>;
|
|
19
30
|
rendered: EventEmitter<boolean>;
|
|
20
31
|
bodyTags: HtmlBodyTag[];
|
|
32
|
+
saveBodyTags: HtmlBodyTag[];
|
|
21
33
|
constructor(_cdref: ChangeDetectorRef);
|
|
22
34
|
ngAfterViewInit(): void;
|
|
23
35
|
ngAfterContentChecked(): void;
|
|
24
36
|
addTag(): void;
|
|
37
|
+
addText(): void;
|
|
38
|
+
closeText(): void;
|
|
39
|
+
resetTextStyle(): void;
|
|
40
|
+
modelChanged(): void;
|
|
25
41
|
postFilesStartedEventHandler(model: FilePostingStarted): void;
|
|
26
42
|
addTagCustom(tag: HtmlBodyTag): void;
|
|
27
43
|
filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ import { MatBadgeModule } from '@angular/material/badge';
|
|
|
14
14
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe } from "./pipes";
|
|
15
15
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
16
16
|
import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
|
|
17
|
-
export declare const EditorComponents: (typeof
|
|
18
|
-
export declare const XmlComponents: (typeof
|
|
17
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
|
|
18
|
+
export declare const XmlComponents: (typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
|
|
19
19
|
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
20
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
20
|
+
export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
|
|
21
21
|
export declare const MaterialModules: (typeof MatBadgeModule)[];
|