croco-html 2.31.0 → 2.33.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/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +36 -11
- package/esm2022/lib/options/index.mjs +1 -1
- package/fesm2022/croco-html.mjs +34 -10
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +10 -1
- package/lib/index.d.ts +4 -4
- package/lib/options/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
1
2
|
import { CustomWidgetTagData } from "../../../extensions";
|
|
3
|
+
import { CrocoHtmlOptions } from "../../../options";
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class XmlTagCustomWidgetComponent {
|
|
5
|
+
export declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
|
|
6
|
+
private readonly _options;
|
|
7
|
+
viewContainerRef: ViewContainerRef;
|
|
4
8
|
set tagData(value: CustomWidgetTagData);
|
|
5
9
|
get tagData(): CustomWidgetTagData;
|
|
6
10
|
_tagData: CustomWidgetTagData;
|
|
7
11
|
tooltipData: string;
|
|
12
|
+
useDynamicComponent: boolean;
|
|
13
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
14
|
+
constructor(_options: CrocoHtmlOptions);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
8
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagCustomWidgetComponent, never>;
|
|
9
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagCustomWidgetComponent, "croco-html-xml-tag-custom-widget", never, { "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
19
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPip
|
|
|
16
16
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
17
|
import { HtmlRawViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof
|
|
20
|
-
export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof
|
|
21
|
-
export declare const CrocoPipes: (typeof
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
|
|
21
|
+
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
23
23
|
export declare const MaterialModules: (typeof MatFormFieldModule)[];
|
package/lib/options/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { IMediaRequest } from "../extensions";
|
|
2
|
+
import { Type } from "@angular/core";
|
|
2
3
|
export interface CrocoHtmlOptions {
|
|
3
4
|
publicImageResizedUrlFormat: string;
|
|
4
5
|
globalMediaRequests?: IMediaRequest[];
|
|
6
|
+
/**
|
|
7
|
+
* Компонент для рендера кастомных виджетов
|
|
8
|
+
*/
|
|
9
|
+
customWidgetRendererComponent?: Type<any>;
|
|
5
10
|
}
|