croco-html 20.1.0 → 20.2.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/fesm2022/croco-html.mjs +139 -49
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +23 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -211,11 +211,11 @@ declare class ExternalVideoTagService implements IMarkUpTagService {
|
|
|
211
211
|
declare class HtmlRawTagDataConsts {
|
|
212
212
|
static readonly TagName = "html-raw";
|
|
213
213
|
}
|
|
214
|
-
interface
|
|
214
|
+
interface HtmlRawTag {
|
|
215
215
|
type: string;
|
|
216
|
-
data:
|
|
216
|
+
data: HtmlRawTagData;
|
|
217
217
|
}
|
|
218
|
-
interface
|
|
218
|
+
interface HtmlRawTagData {
|
|
219
219
|
innerHTML: string;
|
|
220
220
|
}
|
|
221
221
|
declare class HtmlRawTagService implements IMarkUpTagService {
|
|
@@ -331,10 +331,16 @@ interface CrocoHtmlOptions {
|
|
|
331
331
|
[id: string]: IMarkUpTagService;
|
|
332
332
|
};
|
|
333
333
|
/**
|
|
334
|
-
* Рендеры для кастомных
|
|
334
|
+
* Рендеры для кастомных тегов внутри редактора.
|
|
335
335
|
*/
|
|
336
|
-
|
|
337
|
-
[id: string]:
|
|
336
|
+
definedEditorViewRenderers: {
|
|
337
|
+
[id: string]: ITagEditorViewRender;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Рендеры для тегов внутри просмотра.
|
|
341
|
+
*/
|
|
342
|
+
definedViewRenderers: {
|
|
343
|
+
[id: string]: ITagViewViewRender;
|
|
338
344
|
};
|
|
339
345
|
/**
|
|
340
346
|
* Обработчик нажатия на кнопку кастомных виджетов
|
|
@@ -344,9 +350,9 @@ interface CrocoHtmlOptions {
|
|
|
344
350
|
/**
|
|
345
351
|
* Кастомные кнопки для добавления тега
|
|
346
352
|
*/
|
|
347
|
-
editorCustomAddTagButtons
|
|
353
|
+
editorCustomAddTagButtons?: TagItem[] | null | undefined;
|
|
348
354
|
}
|
|
349
|
-
interface
|
|
355
|
+
interface ITagEditorViewRender {
|
|
350
356
|
/**
|
|
351
357
|
* Компонент для визуального редактора croco-html-custom-widget-editor
|
|
352
358
|
* Должен содержать инпуты
|
|
@@ -357,6 +363,8 @@ interface ICustomTagViewRender {
|
|
|
357
363
|
* Иконка в визуальном редакторе croco-html-custom-widget-icon
|
|
358
364
|
*/
|
|
359
365
|
iconComponent?: Type<any>;
|
|
366
|
+
}
|
|
367
|
+
interface ITagViewViewRender {
|
|
360
368
|
/**
|
|
361
369
|
* Компонент для отрисовки на интерфейсе croco-html-defined-custom-tag-view.
|
|
362
370
|
* Должен содержать input({required: true}) data: InterfaceBlock
|
|
@@ -1177,21 +1185,22 @@ declare class XmlTagViewComponent {
|
|
|
1177
1185
|
isEditor: boolean;
|
|
1178
1186
|
constructor(_options: CrocoHtmlOptions);
|
|
1179
1187
|
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
1188
|
+
isViewDefined(item: InterfaceBlock): boolean;
|
|
1180
1189
|
isDefinedCustomTag(item: InterfaceBlock): boolean;
|
|
1181
1190
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
|
|
1182
1191
|
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": true; }; "dataController": { "alias": "dataController"; "required": true; }; "isEditor": { "alias": "isEditor"; "required": true; }; }, {}, never, never, true, never>;
|
|
1183
1192
|
}
|
|
1184
1193
|
|
|
1185
|
-
declare class HtmlRawViewComponent
|
|
1194
|
+
declare class HtmlRawViewComponent {
|
|
1186
1195
|
private readonly _sanitizer;
|
|
1187
1196
|
private readonly router;
|
|
1188
|
-
|
|
1189
|
-
|
|
1197
|
+
private readonly _cdr;
|
|
1198
|
+
set data(item: InterfaceBlock);
|
|
1199
|
+
safeHtml: SafeHtml | null;
|
|
1190
1200
|
constructor(_sanitizer: DomSanitizer, router: Router);
|
|
1191
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1192
1201
|
handleLink(event: MouseEvent): void;
|
|
1193
1202
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
|
|
1194
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "
|
|
1203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "data": { "alias": "data"; "required": true; }; }, {}, never, never, true, never>;
|
|
1195
1204
|
}
|
|
1196
1205
|
|
|
1197
1206
|
declare class FileImageTagViewComponent implements OnInit, OnDestroy {
|
|
@@ -1349,4 +1358,4 @@ declare class CrocoHtmlModule {
|
|
|
1349
1358
|
declare const CrocoHtmlOptionsToken = "croco-html-options";
|
|
1350
1359
|
|
|
1351
1360
|
export { AddFilesBtnComponent, AngularMaterialTableMethods, AudioEditorComponent, AudioMethods, AudioPlayerTagViewComponent, BodyTagsExtensions, BootstrapTableMethods, ButtonTagDataConsts, ButtonTagService, CrocoHtmlFileOptionsService, CrocoHtmlModule, CrocoHtmlOptionsToken, CustomWidgetEditorComponent, CustomWidgetIconComponent, CustomWidgetTagDataConsts, CustomWidgetTagService, DefinedCustomEditorBlockComponent, DefinedCustomTagViewComponent, DownloadButtonTagDataConsts, DownloadButtonTagService, ExternalVideoEditorComponent, ExternalVideoPlayers, ExternalVideoSupportedTypes, ExternalVideoTagDataConsts, ExternalVideoTagService, FileAudioTagDataConsts, FileIdSelectComponent, FileImageTagDataConsts, FileImageTagService, FileImageTagViewComponent, FileType, HtmlPageDataController, HtmlRawEditorComponent, HtmlRawTagDataConsts, HtmlRawTagService, HtmlRawViewComponent, HtmlViewComponent, HtmlViewController, ImageEditorComponent, ImageMethods, MainEditorBlockComponent, MainEditorComponent, TableBuilder, TableMethods, TableTypes, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1352
|
-
export type { AngularMaterialTableData, BaseApiResponse, ButtonTag, ButtonTagData, CommonFileInfoResultModel, CrocoHtmlEditorFileOptions, CrocoHtmlImageOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, DownloadButtonTag, DownloadButtonTagData, ExternalVideoTag, ExternalVideoTagData,
|
|
1361
|
+
export type { AngularMaterialTableData, BaseApiResponse, ButtonTag, ButtonTagData, CommonFileInfoResultModel, CrocoHtmlEditorFileOptions, CrocoHtmlImageOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, DownloadButtonTag, DownloadButtonTagData, ExternalVideoTag, ExternalVideoTagData, FileAudioTag, FileAudioTagData, FileImageTag, FileImageTagData, FileInfoModel, FilePostingStarted, FileRelationModel, FileSimpleModel, FileUnifiedModel, GenericTextTag, GetListResult, GetListSearchModel, HtmlBodyTag, HtmlRawTag, HtmlRawTagData, IHorizontalAlignmentExtractionResult, IImageMediaRequest, IMarkUpTagService, ITagEditorViewRender, ITagViewViewRender, IVisualEditorProps, ImageRestrictions, InterfaceBlock, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|