croco-html 2.19.0 → 2.20.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/button-editor/button-editor.component.mjs +1 -1
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +2 -2
- package/esm2022/lib/components/html-view/html-view.component.mjs +7 -3
- package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +10 -3
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +7 -3
- package/esm2022/lib/services/HtmlViewController.mjs +13 -0
- package/fesm2022/croco-html.mjs +32 -8
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/html-view/html-view.component.d.ts +3 -1
- package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +4 -1
- package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +3 -1
- package/lib/index.d.ts +7 -7
- package/lib/services/HtmlViewController.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { HtmlViewController } from '../../services/HtmlViewController';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class HtmlViewComponent {
|
|
3
4
|
html: string;
|
|
5
|
+
controller: HtmlViewController;
|
|
4
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
8
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
2
2
|
import { ButtonTagData } from "../../../extensions/ButtonMethods";
|
|
3
|
+
import { HtmlViewController } from '../../../services/HtmlViewController';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class XmlTagButtonComponent {
|
|
5
6
|
set data(value: InterfaceBlock);
|
|
6
7
|
set tagData(value: ButtonTagData);
|
|
8
|
+
controller: HtmlViewController;
|
|
7
9
|
_block: ButtonTagData;
|
|
10
|
+
clickHandler(): void;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagButtonComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagButtonComponent, "croco-html-xml-tag-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagButtonComponent, "croco-html-xml-tag-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
13
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
2
|
+
import { HtmlViewController } from '../../../services/HtmlViewController';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class XmlTagViewComponent {
|
|
4
5
|
data: InterfaceBlock[];
|
|
6
|
+
controller: HtmlViewController;
|
|
5
7
|
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
10
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +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 {
|
|
5
|
+
import { XmlTagHeaderTextViewComponent } from "./components";
|
|
6
6
|
import { XmlTagHtmlViewComponent } from "./components";
|
|
7
7
|
import { XmlTagRichTextViewComponent } from "./components";
|
|
8
8
|
import { XmlTagTableViewComponent } from "./components";
|
|
@@ -11,12 +11,12 @@ 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 { MatFormFieldModule } from '@angular/material/form-field';
|
|
15
15
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
16
16
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
17
|
import { HtmlRawViewComponent } from "./components";
|
|
18
|
-
export declare const EditorComponents: (typeof
|
|
19
|
-
export declare const XmlComponents: (typeof
|
|
20
|
-
export declare const CrocoPipes: (typeof
|
|
21
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
22
|
-
export declare const MaterialModules: (typeof
|
|
18
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent)[];
|
|
19
|
+
export declare const XmlComponents: (typeof XmlTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
|
|
20
|
+
export declare const CrocoPipes: (typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
21
|
+
export declare const CrocoHtmlDeclarations: (typeof XmlTagViewComponent | typeof ToPreviewPipe | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
+
export declare const MaterialModules: (typeof MatFormFieldModule)[];
|