croco-html 2.33.0 → 2.41.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/editor/main-editor/main-editor.component.mjs +10 -4
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +3 -3
- package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +12 -12
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +45 -18
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +11 -11
- package/esm2022/lib/pipes/sprite-icon-path.pipe.mjs +18 -0
- package/esm2022/sprites-hash.mjs +2 -0
- package/esm2022/sprites-ids.type.mjs +2 -0
- package/fesm2022/croco-html.mjs +89 -44
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +4 -4
- package/lib/index.d.ts +7 -7
- package/lib/pipes/sprite-icon-path.pipe.d.ts +8 -0
- package/package.json +1 -1
- package/sprites-hash.d.ts +3 -0
- package/sprites-ids.type.d.ts +1 -0
|
@@ -15,7 +15,6 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
15
15
|
textArea: ElementRef;
|
|
16
16
|
isLoading: boolean;
|
|
17
17
|
loadingText: string;
|
|
18
|
-
isActiveAddText: boolean;
|
|
19
18
|
text: string;
|
|
20
19
|
alignment: EAlignments;
|
|
21
20
|
textTag: string;
|
|
@@ -46,10 +45,10 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
46
45
|
ngAfterViewInit(): void;
|
|
47
46
|
ngAfterContentChecked(): void;
|
|
48
47
|
addTag(): void;
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
startAddingText(): void;
|
|
49
|
+
finishAddingText(): void;
|
|
51
50
|
resetTextStyle(): void;
|
|
52
|
-
|
|
51
|
+
addTextTags(): void;
|
|
53
52
|
postFilesStartedEventHandler(model: FilePostingStarted): void;
|
|
54
53
|
addTagCustom(tag: HtmlBodyTag): void;
|
|
55
54
|
filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
|
|
@@ -58,6 +57,7 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
58
57
|
onTagRemovedHandler(index: number): void;
|
|
59
58
|
recalculateHtml(): void;
|
|
60
59
|
recalculateBodyTags(): void;
|
|
60
|
+
selectTag(data: TagItem): void;
|
|
61
61
|
ngOnInit(): void;
|
|
62
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
63
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { ImageEditorComponent } from "./components";
|
|
|
2
2
|
import { MainEditorBlockComponent } from "./components";
|
|
3
3
|
import { MainEditorComponent } from "./components";
|
|
4
4
|
import { FileIdSelectComponent } from "./components";
|
|
5
|
-
import {
|
|
6
|
-
import { XmlTagHtmlViewComponent } from "./components";
|
|
5
|
+
import { XmlTagHeaderInnerTextViewComponent } from "./components";
|
|
7
6
|
import { XmlTagRichTextViewComponent } from "./components";
|
|
8
7
|
import { XmlTagTableViewComponent } from "./components";
|
|
9
8
|
import { XmlTagViewComponent } from "./components";
|
|
@@ -11,13 +10,14 @@ import { VisualEditorComponent } from './components';
|
|
|
11
10
|
import { AddFilesBtnComponent } from './components';
|
|
12
11
|
import { XmlTagExternalVideoComponent } from "./components";
|
|
13
12
|
import { HtmlRawEditorComponent } from "./components";
|
|
14
|
-
import {
|
|
13
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
15
14
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
16
15
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
16
|
import { HtmlRawViewComponent } from "./components";
|
|
17
|
+
import { HtmlViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent)[];
|
|
21
21
|
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | 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 VisualEditorComponent | typeof XmlTagViewComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
23
|
+
export declare const MaterialModules: (typeof MatTabsModule)[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { SpriteIdsType } from "../../sprites-ids.type";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SpriteIconPathPipe implements PipeTransform {
|
|
5
|
+
transform(id: SpriteIdsType): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpriteIconPathPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SpriteIconPathPipe, "spriteIconPath", true>;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SpriteIdsType = 'source-code-tab' | 'visual-editor-tab';
|