croco-html 2.31.0 → 2.32.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 +11 -2
- 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
|
-
get tagData():
|
|
9
|
+
get tagData(): any;
|
|
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 MainEditorBlockComponent | typeof VisualEditorComponent | typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
21
|
-
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent)[];
|
|
21
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof ImageEditorComponent | typeof XmlTagCustomWidgetComponent | typeof HtmlRawViewComponent | typeof XmlTagHeaderTextViewComponent | typeof FileImageTagViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawEditorComponent | typeof MainEditorComponent | typeof TagToSpanPipe)[];
|
|
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
|
}
|