croco-html 2.0.1 → 2.0.3
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 +1 -1
- package/esm2022/lib/components/html-view/html-view.component.mjs +10 -2
- package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +30 -0
- package/esm2022/lib/components/xml-tags/index.mjs +2 -1
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +12 -4
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +4 -4
- package/fesm2022/croco-html.mjs +53 -9
- 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/file-image-tag-view/file-image-tag-view.component.d.ts +12 -0
- package/lib/components/xml-tags/index.d.ts +1 -0
- package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +6 -1
- package/lib/index.d.ts +6 -6
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ITagViewOptions } from '../xml-tags';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class HtmlViewComponent {
|
|
3
4
|
html: string;
|
|
5
|
+
viewOptions: ITagViewOptions;
|
|
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, false, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
8
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InterfaceBlock } from '../../../extensions/InterfaceBlock';
|
|
3
|
+
import { ITagViewOptions } from '../xml-tag-view/xml-tag-view.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileImageTagViewComponent implements OnInit {
|
|
6
|
+
item: InterfaceBlock;
|
|
7
|
+
viewOptions: ITagViewOptions;
|
|
8
|
+
imageSrc: string;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; "viewOptions": { "alias": "viewOptions"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -7,3 +7,4 @@ export * from './xml-tag-table-view/xml-tag-table-view.component';
|
|
|
7
7
|
export * from './xml-tag-text-view/xml-tag-text-view.component';
|
|
8
8
|
export * from './xml-tag-view/xml-tag-view.component';
|
|
9
9
|
export * from './html-raw-view/html-raw-view.component';
|
|
10
|
+
export * from './file-image-tag-view/file-image-tag-view.component';
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class XmlTagViewComponent {
|
|
4
|
+
viewOptions: ITagViewOptions;
|
|
4
5
|
data: InterfaceBlock[];
|
|
5
6
|
constructor();
|
|
6
7
|
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, false, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "viewOptions": { "alias": "viewOptions"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
export interface ITagViewOptions {
|
|
11
|
+
useCustomImageUrlRenderer: boolean;
|
|
12
|
+
renderImageUrl(fileId: number, sizeType: string): string;
|
|
8
13
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MainEditorBlockComponent } from "./components/editor/main-editor-block/main-editor-block.component";
|
|
2
2
|
import { MainEditorComponent } from "./components/editor/main-editor/main-editor.component";
|
|
3
3
|
import { FileIdSelectComponent } from "./components/file-id-select/file-id-select.component";
|
|
4
|
-
import {
|
|
4
|
+
import { XmlTagHeaderTextViewComponent } from "./components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component";
|
|
5
5
|
import { XmlTagHtmlViewComponent } from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
|
|
6
6
|
import { XmlTagRichTextViewComponent } from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
|
|
7
7
|
import { XmlTagTableViewComponent } from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
|
|
@@ -10,12 +10,12 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
|
|
|
10
10
|
import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
|
|
11
11
|
import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
|
|
12
12
|
import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
|
|
13
|
-
import {
|
|
13
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
14
14
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe } from "./pipes";
|
|
15
15
|
import { 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 MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
|
|
18
|
+
export declare const XmlComponents: (typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent)[];
|
|
19
19
|
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
20
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
21
|
-
export declare const MaterialModules: (typeof
|
|
20
|
+
export declare const CrocoHtmlDeclarations: (typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
|
|
21
|
+
export declare const MaterialModules: (typeof MatBadgeModule)[];
|