croco-html 20.4.0 → 20.4.2
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 +67 -22
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +53 -32
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -903,6 +903,12 @@ declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
|
903
903
|
|
|
904
904
|
type SpriteIdsType = 'align-center' | 'align-left' | 'align-right' | 'move-icon' | 'source-code-tab' | 'tag-button-audio-player' | 'tag-button-button' | 'tag-button-croco-link' | 'tag-button-custom-widget' | 'tag-button-download-file-button' | 'tag-button-external-video' | 'tag-button-file-image' | 'tag-button-html-raw' | 'tag-button-text' | 'viewer-tab' | 'visual-editor-tab';
|
|
905
905
|
|
|
906
|
+
interface IVisualEditorLogger {
|
|
907
|
+
onAdd(tags: HtmlBodyTag[]): void;
|
|
908
|
+
onChange(tag: HtmlBodyTag, index: number): void;
|
|
909
|
+
onRemove(index: number): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
906
912
|
declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
907
913
|
private readonly _cdr;
|
|
908
914
|
private readonly _options;
|
|
@@ -921,6 +927,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
921
927
|
}[];
|
|
922
928
|
isTagAdditionStarted: boolean;
|
|
923
929
|
showMarkUp: boolean;
|
|
930
|
+
logger: IVisualEditorLogger;
|
|
924
931
|
tags: TagItem[];
|
|
925
932
|
videoPlayers: {
|
|
926
933
|
type: string;
|
|
@@ -948,6 +955,7 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
948
955
|
resetTextStyle(): void;
|
|
949
956
|
drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
|
|
950
957
|
addTag(tag: HtmlBodyTag): void;
|
|
958
|
+
addTags(tags: HtmlBodyTag[]): void;
|
|
951
959
|
onTagChangedHandler(data: HtmlBodyTag, index: number): void;
|
|
952
960
|
onTagRemovedHandler(index: number): void;
|
|
953
961
|
recalculateHtml(): void;
|
|
@@ -969,7 +977,47 @@ declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
|
969
977
|
setTagButton(tagName: string): SpriteIdsType;
|
|
970
978
|
setAlignButton(type: string): SpriteIdsType;
|
|
971
979
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
972
|
-
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>;
|
|
980
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Сервис для обработки логики разметки
|
|
985
|
+
*/
|
|
986
|
+
declare class HtmlViewController {
|
|
987
|
+
onScriptCalled(script: string): void;
|
|
988
|
+
scriptCalled: Subject<string>;
|
|
989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
990
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Сервис для прокидывания предрасчитанных данных для виджетов Html разметки.
|
|
995
|
+
* Используется для оптимизации Http запросов за данными.
|
|
996
|
+
*/
|
|
997
|
+
declare class HtmlPageDataController {
|
|
998
|
+
readonly _data: Map<string, object>;
|
|
999
|
+
/**
|
|
1000
|
+
* Получить данные.
|
|
1001
|
+
* @returns
|
|
1002
|
+
*/
|
|
1003
|
+
get<T>(name: string): T | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* Установить данные.
|
|
1006
|
+
* @param data
|
|
1007
|
+
*/
|
|
1008
|
+
set(name: string, data: object): void;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
declare class NullVisualEditorLogger implements IVisualEditorLogger {
|
|
1012
|
+
onAdd(_: HtmlBodyTag[]): void;
|
|
1013
|
+
onChange(_: HtmlBodyTag, _2: number): void;
|
|
1014
|
+
onRemove(_: number): void;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
declare class ConsoleVisualEditorLogger implements IVisualEditorLogger {
|
|
1018
|
+
onAdd(tags: HtmlBodyTag[]): void;
|
|
1019
|
+
onChange(tag: HtmlBodyTag, index: number): void;
|
|
1020
|
+
onRemove(index: number): void;
|
|
973
1021
|
}
|
|
974
1022
|
|
|
975
1023
|
declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
@@ -982,6 +1030,7 @@ declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterV
|
|
|
982
1030
|
visualEditor: VisualEditorComponent;
|
|
983
1031
|
showMarkUp: boolean;
|
|
984
1032
|
useHtmlRaw: boolean;
|
|
1033
|
+
logger: IVisualEditorLogger;
|
|
985
1034
|
html: string;
|
|
986
1035
|
onHtmlChanged: EventEmitter<string>;
|
|
987
1036
|
showSettingsButton: boolean;
|
|
@@ -997,7 +1046,7 @@ declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterV
|
|
|
997
1046
|
ngOnInit(): void;
|
|
998
1047
|
openSettingsModal(): void;
|
|
999
1048
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
1000
|
-
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>;
|
|
1049
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "croco-html-main-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "logger": { "alias": "logger"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; }, never, never, true, never>;
|
|
1001
1050
|
}
|
|
1002
1051
|
|
|
1003
1052
|
declare class MainEditorBlockComponent implements OnDestroy {
|
|
@@ -1208,34 +1257,6 @@ declare class XmlTagTextViewComponent {
|
|
|
1208
1257
|
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
1209
1258
|
}
|
|
1210
1259
|
|
|
1211
|
-
/**
|
|
1212
|
-
* Сервис для обработки логики разметки
|
|
1213
|
-
*/
|
|
1214
|
-
declare class HtmlViewController {
|
|
1215
|
-
onScriptCalled(script: string): void;
|
|
1216
|
-
scriptCalled: Subject<string>;
|
|
1217
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
1218
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
/**
|
|
1222
|
-
* Сервис для прокидывания предрасчитанных данных для виджетов Html разметки.
|
|
1223
|
-
* Используется для оптимизации Http запросов за данными.
|
|
1224
|
-
*/
|
|
1225
|
-
declare class HtmlPageDataController {
|
|
1226
|
-
readonly _data: Map<string, object>;
|
|
1227
|
-
/**
|
|
1228
|
-
* Получить данные.
|
|
1229
|
-
* @returns
|
|
1230
|
-
*/
|
|
1231
|
-
get<T>(name: string): T | null;
|
|
1232
|
-
/**
|
|
1233
|
-
* Установить данные.
|
|
1234
|
-
* @param data
|
|
1235
|
-
*/
|
|
1236
|
-
set(name: string, data: object): void;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
1260
|
declare class XmlTagViewComponent {
|
|
1240
1261
|
private readonly _options;
|
|
1241
1262
|
data: InterfaceBlock[];
|
|
@@ -1418,5 +1439,5 @@ declare class CrocoHtmlModule {
|
|
|
1418
1439
|
|
|
1419
1440
|
declare const CrocoHtmlOptionsToken = "croco-html-options";
|
|
1420
1441
|
|
|
1421
|
-
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, LinkEditorComponent, LinkTagAttrs, LinkTagConsts, LinkTagService, MainEditorBlockComponent, MainEditorComponent, TableBuilder, TableMethods, TableTypes, TagBuildExtensions, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1422
|
-
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, LinkTagData, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|
|
1442
|
+
export { AddFilesBtnComponent, AngularMaterialTableMethods, AudioEditorComponent, AudioMethods, AudioPlayerTagViewComponent, BodyTagsExtensions, BootstrapTableMethods, ButtonTagDataConsts, ButtonTagService, ConsoleVisualEditorLogger, 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, LinkEditorComponent, LinkTagAttrs, LinkTagConsts, LinkTagService, MainEditorBlockComponent, MainEditorComponent, NullVisualEditorLogger, TableBuilder, TableMethods, TableTypes, TagBuildExtensions, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1443
|
+
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, IVisualEditorLogger, IVisualEditorProps, ImageRestrictions, InterfaceBlock, LinkTagData, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|