croco-html 2.12.0 → 2.13.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 +5 -5
- package/esm2022/lib/components/editor/download-file-button-block/download-file-button-block.component.mjs +42 -0
- package/esm2022/lib/components/editor/external-video-block/external-video-block.component.mjs +24 -7
- package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +7 -6
- package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +9 -8
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +13 -12
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +18 -10
- package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +9 -8
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +15 -15
- package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +7 -5
- package/esm2022/lib/components/html-view/html-view.component.mjs +5 -5
- package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +4 -4
- package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +52 -0
- package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +5 -5
- package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +4 -4
- package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +4 -4
- package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +4 -4
- package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +3 -3
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +20 -11
- package/esm2022/lib/croco-html.module.mjs +66 -73
- package/esm2022/lib/extensions/DownloadButtonMethods.mjs +2 -2
- package/esm2022/lib/index.mjs +1 -3
- package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +4 -3
- package/esm2022/lib/pipes/TagToSpanPipe.mjs +4 -3
- package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +4 -3
- package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +4 -3
- package/esm2022/lib/pipes/to-preview.pipe.mjs +4 -3
- package/esm2022/lib/services/blob-create.service.mjs +4 -4
- package/fesm2022/croco-html.mjs +391 -360
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/add-files-btn/add-files-btn.component.d.ts +1 -1
- package/lib/components/editor/download-file-button-block/download-file-button-block.component.d.ts +13 -0
- package/lib/components/editor/external-video-block/external-video-block.component.d.ts +3 -1
- package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +1 -1
- package/lib/components/editor/image-editor/image-editor.component.d.ts +1 -1
- package/lib/components/editor/main-editor/main-editor.component.d.ts +1 -1
- package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +1 -1
- package/lib/components/editor/text-editor/text-editor.component.d.ts +1 -1
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +1 -1
- package/lib/components/file-id-select/file-id-select.component.d.ts +1 -1
- package/lib/components/html-view/html-view.component.d.ts +1 -1
- package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +1 -1
- package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +1 -1
- package/lib/components/xml-tags/html-raw-view/html-raw-view.component.d.ts +1 -1
- package/lib/components/xml-tags/{xml-tag-download-button/xml-tag-download-button.component.d.ts → xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts} +3 -3
- package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +1 -1
- package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +1 -1
- package/lib/croco-html.module.d.ts +63 -65
- package/lib/index.d.ts +8 -8
- package/lib/pipes/RichTextToHtmlPipe.d.ts +1 -1
- package/lib/pipes/TagToSpanPipe.d.ts +1 -1
- package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +1 -1
- package/lib/pipes/ToPreviewHtmlPipe.d.ts +1 -1
- package/lib/pipes/to-preview.pipe.d.ts +1 -1
- package/lib/services/blob-create.service.d.ts +2 -2
- package/package.json +1 -1
- package/esm2022/lib/components/editor/download-button-block/download-button-block.component.mjs +0 -40
- package/esm2022/lib/components/xml-tags/xml-tag-download-button/xml-tag-download-button.component.mjs +0 -54
- package/lib/components/editor/download-button-block/download-button-block.component.d.ts +0 -13
|
@@ -14,5 +14,5 @@ export declare class AddFilesBtnComponent implements OnInit {
|
|
|
14
14
|
handleClick(): void;
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFilesBtnComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never,
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never, true, never>;
|
|
18
18
|
}
|
package/lib/components/editor/download-file-button-block/download-file-button-block.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { HtmlBodyTag } from "../../../models/models";
|
|
3
|
+
import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DownloadFileButtonBlockComponent {
|
|
6
|
+
tag: HtmlBodyTag;
|
|
7
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
8
|
+
tagData: DownloadButtonTagData;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
linkChanged(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileButtonBlockComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileButtonBlockComponent, "croco-html-download-file-button-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -7,8 +7,10 @@ export declare class ExternalVideoBlockComponent implements OnInit {
|
|
|
7
7
|
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
8
8
|
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
9
9
|
tagData: ExternalVideoTagData;
|
|
10
|
+
linkText: string;
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
linkChanged(): void;
|
|
13
|
+
createLinkByIFrame(): void;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoBlockComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoBlockComponent, "croco-html-external-video-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never,
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoBlockComponent, "croco-html-external-video-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
14
16
|
}
|
|
@@ -7,5 +7,5 @@ export declare class HtmlRawEditorComponent implements OnInit {
|
|
|
7
7
|
constructor();
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -16,5 +16,5 @@ export declare class ImageEditorComponent implements OnInit {
|
|
|
16
16
|
removeImageError(): void;
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never,
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -23,5 +23,5 @@ export declare class MainEditorComponent implements OnInit, AfterContentChecked,
|
|
|
23
23
|
copyMarkUp(): void;
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "croco-html-main-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; }, never, never,
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "croco-html-main-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; }, never, never, true, never>;
|
|
27
27
|
}
|
|
@@ -11,5 +11,5 @@ export declare class MainEditorBlockComponent implements OnInit {
|
|
|
11
11
|
deleteItem(): void;
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
|
|
15
15
|
}
|
|
@@ -8,5 +8,5 @@ export declare class TextEditorComponent implements OnInit {
|
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
getInnerHtml(): string;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -60,5 +60,5 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
60
60
|
recalculateBodyTags(): void;
|
|
61
61
|
ngOnInit(): void;
|
|
62
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
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,
|
|
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>;
|
|
64
64
|
}
|
|
@@ -25,5 +25,5 @@ export declare class FileIdSelectComponent implements OnInit, OnChanges {
|
|
|
25
25
|
}): void;
|
|
26
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileIdSelectComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileIdSelectComponent, "croco-html-file-id-select", never, { "labelText": { "alias": "labelText"; "required": false; }; "fileId": { "alias": "fileId"; "required": false; }; }, { "fileId": "fileId"; "onFileIdChanged": "onFileIdChanged"; }, never, never,
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileIdSelectComponent, "croco-html-file-id-select", never, { "labelText": { "alias": "labelText"; "required": false; }; "fileId": { "alias": "fileId"; "required": false; }; }, { "fileId": "fileId"; "onFileIdChanged": "onFileIdChanged"; }, never, never, true, never>;
|
|
29
29
|
}
|
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class HtmlViewComponent {
|
|
3
3
|
html: string;
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never,
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
6
|
}
|
|
@@ -20,5 +20,5 @@ export declare class UploadFilesBtnComponent implements OnInit {
|
|
|
20
20
|
clickFileInput(): void;
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilesBtnComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilesBtnComponent, "croco-app-upload-files-btn", never, { "extAccepts": { "alias": "extAccepts"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "createLocalCopiesNow": { "alias": "createLocalCopiesNow"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, { "postFilesStarted": "postFilesStarted"; "onFilesUploaded": "onFilesUploaded"; }, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilesBtnComponent, "croco-app-upload-files-btn", never, { "extAccepts": { "alias": "extAccepts"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "createLocalCopiesNow": { "alias": "createLocalCopiesNow"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, { "postFilesStarted": "postFilesStarted"; "onFilesUploaded": "onFilesUploaded"; }, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -6,5 +6,5 @@ export declare class FileImageTagViewComponent implements OnInit {
|
|
|
6
6
|
imageSrc: string;
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -9,5 +9,5 @@ export declare class HtmlRawViewComponent implements OnInit {
|
|
|
9
9
|
constructor(_sanitizer: DomSanitizer);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never,
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -2,13 +2,13 @@ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
|
2
2
|
import { BlobCreateService } from "../../../services/blob-create.service";
|
|
3
3
|
import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class XmlTagDownloadFileButtonComponent {
|
|
6
6
|
private readonly _blobCreateService;
|
|
7
7
|
set data(value: InterfaceBlock);
|
|
8
8
|
set tagData(value: DownloadButtonTagData);
|
|
9
9
|
constructor(_blobCreateService: BlobCreateService);
|
|
10
10
|
_block: DownloadButtonTagData;
|
|
11
11
|
downloadFile(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagDownloadFileButtonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagDownloadFileButtonComponent, "croco-html-xml-tag-download-file-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
14
|
}
|
package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare class XmlTagExternalVideoComponent {
|
|
|
7
7
|
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
8
8
|
_block: ExternalVideoTagData;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagExternalVideoComponent, "croco-html-xml-tag-external-video", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagExternalVideoComponent, "croco-html-xml-tag-external-video", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -6,5 +6,5 @@ export declare class XmlTagHeaderInnerTextViewComponent implements OnInit {
|
|
|
6
6
|
constructor();
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderInnerTextViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderInnerTextViewComponent, "croco-html-xml-tag-header-inner-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderInnerTextViewComponent, "croco-html-xml-tag-header-inner-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare class XmlTagHeaderTextViewComponent implements OnInit {
|
|
|
6
6
|
constructor();
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderTextViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -3,5 +3,5 @@ export declare class XmlTagHtmlViewComponent {
|
|
|
3
3
|
constructor();
|
|
4
4
|
html: string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHtmlViewComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
7
|
}
|
package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare class XmlTagRichTextViewComponent implements OnInit {
|
|
|
6
6
|
constructor();
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagRichTextViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagRichTextViewComponent, "croco-html-xml-tag-rich-text-view", never, { "richTextData": { "alias": "richTextData"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagRichTextViewComponent, "croco-html-xml-tag-rich-text-view", never, { "richTextData": { "alias": "richTextData"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -3,5 +3,5 @@ export declare class XmlTagTableViewComponent {
|
|
|
3
3
|
displayedColumns: string[];
|
|
4
4
|
data: object;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTableViewComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTableViewComponent, "croco-html-xml-tag-table-view", never, { "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTableViewComponent, "croco-html-xml-tag-table-view", never, { "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -6,5 +6,5 @@ export declare class XmlTagTextViewComponent implements OnInit {
|
|
|
6
6
|
constructor();
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTextViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -4,5 +4,5 @@ export declare class XmlTagViewComponent {
|
|
|
4
4
|
data: InterfaceBlock[];
|
|
5
5
|
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
6
6
|
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,
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -1,70 +1,68 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "@angular/
|
|
29
|
-
import * as i28 from "@angular/
|
|
30
|
-
import * as i29 from "@
|
|
31
|
-
import * as i30 from "@angular/material/
|
|
32
|
-
import * as i31 from "@angular/
|
|
33
|
-
import * as i32 from "@angular/material/
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "
|
|
44
|
-
import * as i43 from "
|
|
45
|
-
import * as i44 from "
|
|
46
|
-
import * as i45 from "
|
|
47
|
-
import * as i46 from "
|
|
48
|
-
import * as i47 from "
|
|
49
|
-
import * as i48 from "
|
|
50
|
-
import * as i49 from "
|
|
51
|
-
import * as i50 from "
|
|
52
|
-
import * as i51 from "
|
|
53
|
-
import * as i52 from "
|
|
54
|
-
import * as i53 from "
|
|
55
|
-
import * as i54 from "
|
|
56
|
-
import * as i55 from "
|
|
57
|
-
import * as i56 from "
|
|
58
|
-
import * as i57 from "
|
|
59
|
-
import * as i58 from "
|
|
60
|
-
import * as i59 from "./
|
|
61
|
-
import * as i60 from "
|
|
62
|
-
import * as i61 from "./
|
|
63
|
-
import * as i62 from "./
|
|
64
|
-
import * as i63 from "./components/editor/download-button-block/download-button-block.component";
|
|
65
|
-
import * as i64 from "./components/xml-tags/xml-tag-download-button/xml-tag-download-button.component";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import * as i3 from "@ng-select/ng-select";
|
|
5
|
+
import * as i4 from "@angular/material/badge";
|
|
6
|
+
import * as i5 from "@angular/material/table";
|
|
7
|
+
import * as i6 from "@angular/material/expansion";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/snack-bar";
|
|
10
|
+
import * as i9 from "@angular/material/progress-bar";
|
|
11
|
+
import * as i10 from "@angular/material/progress-spinner";
|
|
12
|
+
import * as i11 from "@angular/material/tabs";
|
|
13
|
+
import * as i12 from "@angular/material/menu";
|
|
14
|
+
import * as i13 from "@angular/material/card";
|
|
15
|
+
import * as i14 from "@angular/material/select";
|
|
16
|
+
import * as i15 from "@angular/material/tooltip";
|
|
17
|
+
import * as i16 from "@angular/material/checkbox";
|
|
18
|
+
import * as i17 from "@angular/material/chips";
|
|
19
|
+
import * as i18 from "@angular/material/list";
|
|
20
|
+
import * as i19 from "@angular/material/button";
|
|
21
|
+
import * as i20 from "@angular/material/input";
|
|
22
|
+
import * as i21 from "@angular/material/dialog";
|
|
23
|
+
import * as i22 from "@angular/material/paginator";
|
|
24
|
+
import * as i23 from "@angular/material/datepicker";
|
|
25
|
+
import * as i24 from "@angular/material/grid-list";
|
|
26
|
+
import * as i25 from "@angular/material/slide-toggle";
|
|
27
|
+
import * as i26 from "@angular/material/tree";
|
|
28
|
+
import * as i27 from "@angular/material/core";
|
|
29
|
+
import * as i28 from "@angular/material/autocomplete";
|
|
30
|
+
import * as i29 from "@angular/material/sidenav";
|
|
31
|
+
import * as i30 from "@angular/material/icon";
|
|
32
|
+
import * as i31 from "@angular/cdk/drag-drop";
|
|
33
|
+
import * as i32 from "@angular/material/button-toggle";
|
|
34
|
+
import * as i33 from "./components/error-banner/error-banner.component";
|
|
35
|
+
import * as i34 from "./components/editor/external-video-block/vk-video-player/vk-video-player.component";
|
|
36
|
+
import * as i35 from "./components/editor/external-video-block/youtube-video-player/youtube-video-player.component";
|
|
37
|
+
import * as i36 from "./components/editor/download-file-button-block/download-file-button-block.component";
|
|
38
|
+
import * as i37 from "./components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component";
|
|
39
|
+
import * as i38 from "./components/upload-files-btn/upload-files-btn.component";
|
|
40
|
+
import * as i39 from "./components/html-view/html-view.component";
|
|
41
|
+
import * as i40 from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
|
|
42
|
+
import * as i41 from "./components/xml-tags/xml-tag-view/xml-tag-view.component";
|
|
43
|
+
import * as i42 from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
|
|
44
|
+
import * as i43 from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
|
|
45
|
+
import * as i44 from "./components/xml-tags/xml-tag-text-view/xml-tag-text-view.component";
|
|
46
|
+
import * as i45 from "./components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component";
|
|
47
|
+
import * as i46 from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
|
|
48
|
+
import * as i47 from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
|
|
49
|
+
import * as i48 from "./components/xml-tags/html-raw-view/html-raw-view.component";
|
|
50
|
+
import * as i49 from "./components/xml-tags/file-image-tag-view/file-image-tag-view.component";
|
|
51
|
+
import * as i50 from "./components/editor/main-editor/main-editor.component";
|
|
52
|
+
import * as i51 from "./components/file-id-select/file-id-select.component";
|
|
53
|
+
import * as i52 from "./components/editor/text-editor/text-editor.component";
|
|
54
|
+
import * as i53 from "./components/editor/image-editor/image-editor.component";
|
|
55
|
+
import * as i54 from "./components/editor/main-editor-block/main-editor-block.component";
|
|
56
|
+
import * as i55 from "./components/editor/visual-editor/visual-editor.component";
|
|
57
|
+
import * as i56 from "./components/add-files-btn/add-files-btn.component";
|
|
58
|
+
import * as i57 from "./components/editor/html-raw-editor/html-raw-editor.component";
|
|
59
|
+
import * as i58 from "./pipes/RichTextToHtmlPipe";
|
|
60
|
+
import * as i59 from "./pipes/TagToSpanPipe";
|
|
61
|
+
import * as i60 from "./pipes/to-preview.pipe";
|
|
62
|
+
import * as i61 from "./pipes/ToHtmlBodyTagsPipe";
|
|
63
|
+
import * as i62 from "./pipes/ToPreviewHtmlPipe";
|
|
66
64
|
export declare class CrocoHtmlModule {
|
|
67
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
|
|
68
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.
|
|
66
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.NgSelectModule, typeof i4.MatBadgeModule, typeof i5.MatTableModule, typeof i6.MatExpansionModule, typeof i7.MatFormFieldModule, typeof i8.MatSnackBarModule, typeof i9.MatProgressBarModule, typeof i10.MatProgressSpinnerModule, typeof i11.MatTabsModule, typeof i12.MatMenuModule, typeof i13.MatCardModule, typeof i14.MatSelectModule, typeof i15.MatTooltipModule, typeof i16.MatCheckboxModule, typeof i17.MatChipsModule, typeof i18.MatListModule, typeof i19.MatButtonModule, typeof i20.MatInputModule, typeof i21.MatDialogModule, typeof i22.MatPaginatorModule, typeof i23.MatDatepickerModule, typeof i24.MatGridListModule, typeof i25.MatSlideToggleModule, typeof i26.MatTreeModule, typeof i27.MatNativeDateModule, typeof i28.MatAutocompleteModule, typeof i29.MatSidenavModule, typeof i30.MatIconModule, typeof i31.DragDropModule, typeof i32.MatButtonToggleModule, typeof i33.ErrorBannerComponent, typeof i34.VkVideoPlayerComponent, typeof i35.YoutubeVideoPlayerComponent, typeof i36.DownloadFileButtonBlockComponent, typeof i37.XmlTagDownloadFileButtonComponent, typeof i38.UploadFilesBtnComponent, typeof i39.HtmlViewComponent, typeof i40.XmlTagTableViewComponent, typeof i41.XmlTagViewComponent, typeof i42.XmlTagRichTextViewComponent, typeof i43.XmlTagHtmlViewComponent, typeof i44.XmlTagTextViewComponent, typeof i45.XmlTagHeaderTextViewComponent, typeof i46.XmlTagHeaderInnerTextViewComponent, typeof i47.XmlTagExternalVideoComponent, typeof i48.HtmlRawViewComponent, typeof i49.FileImageTagViewComponent, typeof i39.HtmlViewComponent, typeof i50.MainEditorComponent, typeof i51.FileIdSelectComponent, typeof i52.TextEditorComponent, typeof i53.ImageEditorComponent, typeof i54.MainEditorBlockComponent, typeof i55.VisualEditorComponent, typeof i56.AddFilesBtnComponent, typeof i57.HtmlRawEditorComponent, typeof i58.RichTextToHtmlPipe, typeof i59.TagToSpanPipe, typeof i60.ToPreviewPipe, typeof i61.ToHtmlBodyTagsPipe, typeof i62.ToPreviewHtmlPipe], [typeof i38.UploadFilesBtnComponent, typeof i39.HtmlViewComponent, typeof i40.XmlTagTableViewComponent, typeof i41.XmlTagViewComponent, typeof i42.XmlTagRichTextViewComponent, typeof i43.XmlTagHtmlViewComponent, typeof i44.XmlTagTextViewComponent, typeof i45.XmlTagHeaderTextViewComponent, typeof i46.XmlTagHeaderInnerTextViewComponent, typeof i47.XmlTagExternalVideoComponent, typeof i48.HtmlRawViewComponent, typeof i49.FileImageTagViewComponent, typeof i39.HtmlViewComponent, typeof i50.MainEditorComponent, typeof i51.FileIdSelectComponent, typeof i52.TextEditorComponent, typeof i53.ImageEditorComponent, typeof i54.MainEditorBlockComponent, typeof i55.VisualEditorComponent, typeof i56.AddFilesBtnComponent, typeof i57.HtmlRawEditorComponent, typeof i58.RichTextToHtmlPipe, typeof i59.TagToSpanPipe, typeof i60.ToPreviewPipe, typeof i61.ToHtmlBodyTagsPipe, typeof i62.ToPreviewHtmlPipe]>;
|
|
69
67
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
|
|
70
68
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { ImageEditorComponent } from "./components/editor/image-editor/image-edi
|
|
|
2
2
|
import { MainEditorBlockComponent } from "./components/editor/main-editor-block/main-editor-block.component";
|
|
3
3
|
import { MainEditorComponent } from "./components/editor/main-editor/main-editor.component";
|
|
4
4
|
import { FileIdSelectComponent } from "./components/file-id-select/file-id-select.component";
|
|
5
|
-
import {
|
|
5
|
+
import { XmlTagHeaderInnerTextViewComponent } from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
|
|
6
|
+
import { XmlTagHtmlViewComponent } from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
|
|
6
7
|
import { XmlTagRichTextViewComponent } from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
|
|
7
8
|
import { XmlTagTableViewComponent } from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
|
|
8
9
|
import { XmlTagViewComponent } from "./components/xml-tags/xml-tag-view/xml-tag-view.component";
|
|
@@ -10,13 +11,12 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
|
|
|
10
11
|
import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
|
|
11
12
|
import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
|
|
12
13
|
import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
|
|
13
|
-
import {
|
|
14
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
15
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
15
16
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
16
17
|
import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
|
|
17
|
-
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const MaterialModules: (typeof MatBadgeModule)[];
|
|
18
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
|
|
19
|
+
export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
|
|
20
|
+
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
21
|
+
export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
+
export declare const MaterialModules: (typeof MatFormFieldModule)[];
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class RichTextToHtmlPipe implements PipeTransform {
|
|
5
5
|
transform(value: RichTextData): string;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextToHtmlPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RichTextToHtmlPipe, "richTextToHtml",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RichTextToHtmlPipe, "richTextToHtml", true>;
|
|
8
8
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class TagToSpanPipe implements PipeTransform {
|
|
4
4
|
transform(value: string[]): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TagToSpanPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan",
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan", true>;
|
|
7
7
|
}
|
|
@@ -7,5 +7,5 @@ export declare class ToHtmlBodyTagsPipe implements PipeTransform {
|
|
|
7
7
|
constructor(_options: CrocoHtmlOptions);
|
|
8
8
|
transform(value: string): HtmlBodyTag[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags",
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags", true>;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ export declare class ToPreviewHtmlPipe implements PipeTransform {
|
|
|
7
7
|
constructor(_options: CrocoHtmlOptions);
|
|
8
8
|
transform(value: string): InterfaceBlock[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewHtmlPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml",
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml", true>;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ export declare class ToPreviewPipe implements PipeTransform {
|
|
|
7
7
|
constructor(_options: CrocoHtmlOptions);
|
|
8
8
|
transform(value: string): InterfaceBlock[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview",
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview", true>;
|
|
11
11
|
}
|
|
@@ -2,8 +2,8 @@ import { HttpClient } from "@angular/common/http";
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BlobCreateService {
|
|
5
|
-
private
|
|
6
|
-
constructor(
|
|
5
|
+
private readonly _http;
|
|
6
|
+
constructor(_http: HttpClient);
|
|
7
7
|
getBlob(link: string): Observable<Blob>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlobCreateService, never>;
|
|
9
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<BlobCreateService>;
|
package/package.json
CHANGED
package/esm2022/lib/components/editor/download-button-block/download-button-block.component.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { MatFormField } from "@angular/material/form-field";
|
|
3
|
-
import { MatInput } from "@angular/material/input";
|
|
4
|
-
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
5
|
-
import { XmlTagDownloadButtonComponent } from "../../xml-tags/xml-tag-download-button/xml-tag-download-button.component";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/forms";
|
|
8
|
-
export class DownloadButtonBlockComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.onTagUpdated = new EventEmitter();
|
|
11
|
-
this.tagData = {
|
|
12
|
-
link: '',
|
|
13
|
-
title: ''
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
this.tagData.link = this.tag.attributes.link;
|
|
18
|
-
this.tagData.title = this.tag.attributes.title;
|
|
19
|
-
}
|
|
20
|
-
linkChanged() {
|
|
21
|
-
this.tag.attributes = this.tagData;
|
|
22
|
-
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DownloadButtonBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.4", type: DownloadButtonBlockComponent, isStandalone: true, selector: "croco-html-download-button-block", inputs: { tag: "tag" }, outputs: { onTagUpdated: "onTagUpdated" }, ngImport: i0, template: "@if (tag.presentOrEdit) {\n <div>\n <div>\n \u0421\u0441\u044B\u043B\u043A\u0430 \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F: {{tagData.link}}\n </div>\n <div style=\"height: 10px;\"></div>\n <div>\n \u0422\u0435\u043A\u0441\u0442 \u043A\u043D\u043E\u043F\u043A\u0438: {{tagData.title}}\n </div>\n <div style=\"height: 20px;\"></div>\n <croco-html-xml-tag-download-button [tagData]=\"tagData\"></croco-html-xml-tag-download-button>\n </div>\n}\n\n@if (!tag.presentOrEdit) {\n <div>\n <mat-form-field class=\"w-100\">\n <input matInput placeholder=\"\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435\"\n autocomplete=\"off\"\n [(ngModel)]=\"tagData.link\"\n (ngModelChange)=\"linkChanged()\">\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <input matInput placeholder=\"\u0422\u0435\u043A\u0441\u0442 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0435\"\n autocomplete=\"off\"\n [(ngModel)]=\"tagData.title\"\n (ngModelChange)=\"linkChanged()\">\n </mat-form-field>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XmlTagDownloadButtonComponent, selector: "croco-html-xml-tag-download-button", inputs: ["data", "tagData"] }] }); }
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DownloadButtonBlockComponent, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{ selector: 'croco-html-download-button-block', standalone: true, imports: [
|
|
29
|
-
MatFormField,
|
|
30
|
-
MatInput,
|
|
31
|
-
ReactiveFormsModule,
|
|
32
|
-
FormsModule,
|
|
33
|
-
XmlTagDownloadButtonComponent
|
|
34
|
-
], template: "@if (tag.presentOrEdit) {\n <div>\n <div>\n \u0421\u0441\u044B\u043B\u043A\u0430 \u0434\u043B\u044F \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u044F: {{tagData.link}}\n </div>\n <div style=\"height: 10px;\"></div>\n <div>\n \u0422\u0435\u043A\u0441\u0442 \u043A\u043D\u043E\u043F\u043A\u0438: {{tagData.title}}\n </div>\n <div style=\"height: 20px;\"></div>\n <croco-html-xml-tag-download-button [tagData]=\"tagData\"></croco-html-xml-tag-download-button>\n </div>\n}\n\n@if (!tag.presentOrEdit) {\n <div>\n <mat-form-field class=\"w-100\">\n <input matInput placeholder=\"\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435\"\n autocomplete=\"off\"\n [(ngModel)]=\"tagData.link\"\n (ngModelChange)=\"linkChanged()\">\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <input matInput placeholder=\"\u0422\u0435\u043A\u0441\u0442 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0435\"\n autocomplete=\"off\"\n [(ngModel)]=\"tagData.title\"\n (ngModelChange)=\"linkChanged()\">\n </mat-form-field>\n </div>\n}\n" }]
|
|
35
|
-
}], propDecorators: { tag: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], onTagUpdated: [{
|
|
38
|
-
type: Output
|
|
39
|
-
}] } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG93bmxvYWQtYnV0dG9uLWJsb2NrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nyb2NvLWh0bWwvc3JjL2xpYi9jb21wb25lbnRzL2VkaXRvci9kb3dubG9hZC1idXR0b24tYmxvY2svZG93bmxvYWQtYnV0dG9uLWJsb2NrLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nyb2NvLWh0bWwvc3JjL2xpYi9jb21wb25lbnRzL2VkaXRvci9kb3dubG9hZC1idXR0b24tYmxvY2svZG93bmxvYWQtYnV0dG9uLWJsb2NrLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLDhCQUE4QixDQUFDO0FBQzFELE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUNqRCxPQUFPLEVBQUMsV0FBVyxFQUFFLG1CQUFtQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFaEUsT0FBTyxFQUFDLDZCQUE2QixFQUFDLE1BQU0sMEVBQTBFLENBQUM7OztBQWdCdkgsTUFBTSxPQUFPLDRCQU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