croco-html 4.0.1 → 4.1.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.
Files changed (126) hide show
  1. package/fesm2022/croco-html.mjs +472 -512
  2. package/fesm2022/croco-html.mjs.map +1 -1
  3. package/lib/components/editor/button-editor/button-editor.component.d.ts +1 -1
  4. package/lib/components/editor/custom-widget-editor/custom-widget-editor.component.d.ts +1 -1
  5. package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts +1 -1
  6. package/lib/components/xml-tags/index.d.ts +0 -1
  7. package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +1 -1
  8. package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +1 -1
  9. package/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts +1 -1
  10. package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +2 -5
  11. package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +2 -5
  12. package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +4 -7
  13. package/lib/croco-html.module.d.ts +22 -24
  14. package/lib/extensions/BodyTagsExtensions.d.ts +6 -3
  15. package/lib/extensions/HtmlExtractionMethods.d.ts +1 -32
  16. package/lib/extensions/HtmlRawTagDataConsts.d.ts +1 -4
  17. package/lib/extensions/ImageMethods.d.ts +9 -10
  18. package/lib/extensions/InterfaceBlock.d.ts +3 -0
  19. package/lib/extensions/Tags.d.ts +4 -4
  20. package/lib/extensions/TextMethods.d.ts +0 -18
  21. package/lib/extensions/TextSimpleMethods.d.ts +1 -5
  22. package/lib/extensions/VideoMethods.d.ts +8 -11
  23. package/lib/extensions/index.d.ts +0 -1
  24. package/lib/index.d.ts +6 -7
  25. package/lib/models/models.d.ts +3 -0
  26. package/lib/pipes/index.d.ts +0 -1
  27. package/lib/services/PrivateFilesQueryService.d.ts +1 -1
  28. package/lib/services/PublicFilesQueryService.d.ts +1 -38
  29. package/lib/services/file-models.d.ts +38 -0
  30. package/lib/services/index.d.ts +1 -0
  31. package/lib/tag-services/ButtonTagService.d.ts +26 -0
  32. package/lib/tag-services/CustomWidgetTagService.d.ts +32 -0
  33. package/lib/tag-services/DownloadButtonTagService.d.ts +24 -0
  34. package/lib/tag-services/ExternalVideoTagService.d.ts +11 -0
  35. package/lib/tag-services/FileImageTagService.d.ts +11 -0
  36. package/lib/tag-services/HtmlRawTagService.d.ts +11 -0
  37. package/lib/tag-services/IMarkUpTagService.d.ts +26 -0
  38. package/lib/tag-services/TextTagHtmlMarkupTagService.d.ts +12 -0
  39. package/lib/tag-services/index.d.ts +8 -0
  40. package/package.json +1 -3
  41. package/esm2022/croco-html.mjs +0 -5
  42. package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +0 -55
  43. package/esm2022/lib/components/editor/button-editor/button-editor.component.mjs +0 -43
  44. package/esm2022/lib/components/editor/custom-widget-editor/custom-widget-editor.component.mjs +0 -41
  45. package/esm2022/lib/components/editor/download-file-button-editor/download-file-button-editor.component.mjs +0 -42
  46. package/esm2022/lib/components/editor/external-video-editor/embedded-video/code-video.component.mjs +0 -29
  47. package/esm2022/lib/components/editor/external-video-editor/external-video-editor.component.mjs +0 -84
  48. package/esm2022/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.mjs +0 -20
  49. package/esm2022/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.mjs +0 -20
  50. package/esm2022/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.mjs +0 -47
  51. package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +0 -33
  52. package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +0 -108
  53. package/esm2022/lib/components/editor/index.mjs +0 -9
  54. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +0 -120
  55. package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +0 -49
  56. package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +0 -30
  57. package/esm2022/lib/components/editor/visual-editor/DefaultAligments.mjs +0 -12
  58. package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +0 -28
  59. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +0 -268
  60. package/esm2022/lib/components/error-banner/error-banner.component.mjs +0 -24
  61. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +0 -87
  62. package/esm2022/lib/components/html-view/html-view.component.mjs +0 -18
  63. package/esm2022/lib/components/index.mjs +0 -7
  64. package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +0 -66
  65. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +0 -57
  66. package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +0 -24
  67. package/esm2022/lib/components/xml-tags/index.mjs +0 -12
  68. package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +0 -42
  69. package/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +0 -50
  70. package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +0 -48
  71. package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +0 -41
  72. package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +0 -16
  73. package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +0 -17
  74. package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +0 -16
  75. package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +0 -19
  76. package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +0 -19
  77. package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +0 -16
  78. package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +0 -41
  79. package/esm2022/lib/consts/index.mjs +0 -2
  80. package/esm2022/lib/croco-html.module.mjs +0 -106
  81. package/esm2022/lib/extensions/AngularMaterialTableMethods.mjs +0 -64
  82. package/esm2022/lib/extensions/BodyTagsExtensions.mjs +0 -192
  83. package/esm2022/lib/extensions/BootstrapTableMethods.mjs +0 -67
  84. package/esm2022/lib/extensions/ButtonMethods.mjs +0 -19
  85. package/esm2022/lib/extensions/CustomWidgetMethods.mjs +0 -33
  86. package/esm2022/lib/extensions/DownloadButtonMethods.mjs +0 -17
  87. package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +0 -65
  88. package/esm2022/lib/extensions/HtmlRawTagDataConsts.mjs +0 -14
  89. package/esm2022/lib/extensions/ImageMethods.mjs +0 -101
  90. package/esm2022/lib/extensions/InterfaceBlock.mjs +0 -2
  91. package/esm2022/lib/extensions/TableBuilder.mjs +0 -35
  92. package/esm2022/lib/extensions/TableMethods.mjs +0 -108
  93. package/esm2022/lib/extensions/Tags.mjs +0 -22
  94. package/esm2022/lib/extensions/TextMethods.mjs +0 -39
  95. package/esm2022/lib/extensions/TextSimpleMethods.mjs +0 -81
  96. package/esm2022/lib/extensions/VideoMethods.mjs +0 -40
  97. package/esm2022/lib/extensions/XmlExtensions.mjs +0 -26
  98. package/esm2022/lib/extensions/index.mjs +0 -12
  99. package/esm2022/lib/index.mjs +0 -122
  100. package/esm2022/lib/models/image-models.mjs +0 -2
  101. package/esm2022/lib/models/index.mjs +0 -3
  102. package/esm2022/lib/models/models.mjs +0 -2
  103. package/esm2022/lib/options/index.mjs +0 -2
  104. package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +0 -27
  105. package/esm2022/lib/pipes/TagToSpanPipe.mjs +0 -17
  106. package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +0 -25
  107. package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +0 -25
  108. package/esm2022/lib/pipes/index.mjs +0 -6
  109. package/esm2022/lib/pipes/sprite-icon-path.pipe.mjs +0 -17
  110. package/esm2022/lib/pipes/to-preview.pipe.mjs +0 -25
  111. package/esm2022/lib/services/CrocoHtmlFileOptionsService.mjs +0 -32
  112. package/esm2022/lib/services/HtmlViewController.mjs +0 -23
  113. package/esm2022/lib/services/PrivateFileUploadService.mjs +0 -34
  114. package/esm2022/lib/services/PrivateFilesQueryService.mjs +0 -24
  115. package/esm2022/lib/services/PublicFileUploadService.mjs +0 -34
  116. package/esm2022/lib/services/PublicFilesQueryService.mjs +0 -34
  117. package/esm2022/lib/services/blob-create.service.mjs +0 -20
  118. package/esm2022/lib/services/index.mjs +0 -3
  119. package/esm2022/lib/services/screen-width.service.mjs +0 -24
  120. package/esm2022/public-api.mjs +0 -12
  121. package/esm2022/sprites-ids.type.mjs +0 -2
  122. package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +0 -10
  123. package/lib/extensions/ButtonMethods.d.ts +0 -18
  124. package/lib/extensions/CustomWidgetMethods.d.ts +0 -20
  125. package/lib/extensions/DownloadButtonMethods.d.ts +0 -16
  126. package/lib/pipes/RichTextToHtmlPipe.d.ts +0 -8
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { HtmlBodyTag } from "../../../models/models";
3
- import { ButtonTagData } from "../../../extensions/ButtonMethods";
3
+ import { ButtonTagData } from '../../../tag-services/ButtonTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ButtonEditorComponent {
6
6
  tag: HtmlBodyTag;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { HtmlBodyTag } from "../../../models/models";
3
- import { CustomWidgetTagData } from "../../../extensions";
3
+ import { CustomWidgetTagData } from '../../../tag-services/CustomWidgetTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CustomWidgetEditorComponent implements OnInit {
6
6
  tag: HtmlBodyTag;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { HtmlBodyTag } from "../../../models/models";
3
- import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
3
+ import { DownloadButtonTagData } from '../../../tag-services/DownloadButtonTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DownloadFileButtonEditorComponent {
6
6
  tag: HtmlBodyTag;
@@ -2,7 +2,6 @@ export * from './xml-tag-external-video/xml-tag-external-video.component';
2
2
  export * from './xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component';
3
3
  export * from './xml-tag-header-text-view/xml-tag-header-text-view.component';
4
4
  export * from './xml-tag-html-view/xml-tag-html-view.component';
5
- export * from './xml-tag-rich-text-view/xml-tag-rich-text-view.component';
6
5
  export * from './xml-tag-table-view/xml-tag-table-view.component';
7
6
  export * from './xml-tag-text-view/xml-tag-text-view.component';
8
7
  export * from './xml-tag-view/xml-tag-view.component';
@@ -1,6 +1,6 @@
1
1
  import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import { ButtonTagData } from "../../../extensions/ButtonMethods";
3
2
  import { HtmlViewController } from '../../../services/HtmlViewController';
3
+ import { ButtonTagData } from '../../../tag-services/ButtonTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class XmlTagButtonComponent {
6
6
  private readonly _controller;
@@ -1,6 +1,6 @@
1
1
  import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { CustomWidgetTagData } from "../../../extensions";
3
2
  import { CrocoHtmlOptions } from "../../../options";
3
+ import { CustomWidgetTagData } from '../../../tag-services/CustomWidgetTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
6
6
  private readonly _options;
@@ -1,6 +1,6 @@
1
1
  import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
2
  import { BlobCreateService } from "../../../services/blob-create.service";
3
- import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
3
+ import { DownloadButtonTagData } from '../../../tag-services/DownloadButtonTagService';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class XmlTagDownloadFileButtonComponent {
6
6
  private readonly _blobCreateService;
@@ -1,10 +1,7 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
3
2
  import * as i0 from "@angular/core";
4
- export declare class XmlTagHeaderInnerTextViewComponent implements OnInit {
3
+ export declare class XmlTagHeaderInnerTextViewComponent {
5
4
  item: GenericTextTag;
6
- constructor();
7
- ngOnInit(): void;
8
5
  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, true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderInnerTextViewComponent, "croco-html-xml-tag-header-inner-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
10
7
  }
@@ -1,10 +1,7 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
3
2
  import * as i0 from "@angular/core";
4
- export declare class XmlTagHeaderTextViewComponent implements OnInit {
3
+ export declare class XmlTagHeaderTextViewComponent {
5
4
  item: GenericTextTag;
6
- constructor();
7
- ngOnInit(): void;
8
5
  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, true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
10
7
  }
@@ -1,10 +1,7 @@
1
- import { OnInit } from '@angular/core';
2
- import { SimpleTextTag } from '../../../extensions/TextSimpleMethods';
1
+ import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
3
2
  import * as i0 from "@angular/core";
4
- export declare class XmlTagTextViewComponent implements OnInit {
5
- item: SimpleTextTag;
6
- constructor();
7
- ngOnInit(): void;
3
+ export declare class XmlTagTextViewComponent {
4
+ item: GenericTextTag;
8
5
  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, true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
10
7
  }
@@ -40,31 +40,29 @@ import * as i38 from "./components/upload-files-btn/upload-files-btn.component";
40
40
  import * as i39 from "./components/html-view/html-view.component";
41
41
  import * as i40 from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
42
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/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component";
52
- import * as i51 from "./components/editor/main-editor/main-editor.component";
53
- import * as i52 from "./components/file-id-select/file-id-select.component";
54
- import * as i53 from "./components/editor/text-editor/text-editor.component";
55
- import * as i54 from "./components/editor/image-editor/image-editor.component";
56
- import * as i55 from "./components/editor/main-editor-block/main-editor-block.component";
57
- import * as i56 from "./components/editor/visual-editor/visual-editor.component";
58
- import * as i57 from "./components/add-files-btn/add-files-btn.component";
59
- import * as i58 from "./components/editor/html-raw-editor/html-raw-editor.component";
60
- import * as i59 from "./components/editor/custom-widget-editor/custom-widget-editor.component";
61
- import * as i60 from "./pipes/RichTextToHtmlPipe";
62
- import * as i61 from "./pipes/TagToSpanPipe";
63
- import * as i62 from "./pipes/to-preview.pipe";
64
- import * as i63 from "./pipes/ToHtmlBodyTagsPipe";
65
- import * as i64 from "./pipes/ToPreviewHtmlPipe";
43
+ import * as i42 from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
44
+ import * as i43 from "./components/xml-tags/xml-tag-text-view/xml-tag-text-view.component";
45
+ import * as i44 from "./components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component";
46
+ import * as i45 from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
47
+ import * as i46 from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
48
+ import * as i47 from "./components/xml-tags/html-raw-view/html-raw-view.component";
49
+ import * as i48 from "./components/xml-tags/file-image-tag-view/file-image-tag-view.component";
50
+ import * as i49 from "./components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.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 "./components/editor/custom-widget-editor/custom-widget-editor.component";
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, 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.DownloadFileButtonEditorComponent, 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 i50.XmlTagCustomWidgetComponent, typeof i39.HtmlViewComponent, typeof i51.MainEditorComponent, typeof i52.FileIdSelectComponent, typeof i53.TextEditorComponent, typeof i54.ImageEditorComponent, typeof i55.MainEditorBlockComponent, typeof i56.VisualEditorComponent, typeof i57.AddFilesBtnComponent, typeof i58.HtmlRawEditorComponent, typeof i59.CustomWidgetEditorComponent, typeof i60.RichTextToHtmlPipe, typeof i61.TagToSpanPipe, typeof i62.ToPreviewPipe, typeof i63.ToHtmlBodyTagsPipe, typeof i64.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 i50.XmlTagCustomWidgetComponent, typeof i39.HtmlViewComponent, typeof i51.MainEditorComponent, typeof i52.FileIdSelectComponent, typeof i53.TextEditorComponent, typeof i54.ImageEditorComponent, typeof i55.MainEditorBlockComponent, typeof i56.VisualEditorComponent, typeof i57.AddFilesBtnComponent, typeof i58.HtmlRawEditorComponent, typeof i59.CustomWidgetEditorComponent, typeof i60.RichTextToHtmlPipe, typeof i61.TagToSpanPipe, typeof i62.ToPreviewPipe, typeof i63.ToHtmlBodyTagsPipe, typeof i64.ToPreviewHtmlPipe]>;
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.DownloadFileButtonEditorComponent, typeof i37.XmlTagDownloadFileButtonComponent, typeof i38.UploadFilesBtnComponent, typeof i39.HtmlViewComponent, typeof i40.XmlTagTableViewComponent, typeof i41.XmlTagViewComponent, typeof i42.XmlTagHtmlViewComponent, typeof i43.XmlTagTextViewComponent, typeof i44.XmlTagHeaderTextViewComponent, typeof i45.XmlTagHeaderInnerTextViewComponent, typeof i46.XmlTagExternalVideoComponent, typeof i47.HtmlRawViewComponent, typeof i48.FileImageTagViewComponent, typeof i49.XmlTagCustomWidgetComponent, 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.CustomWidgetEditorComponent, 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.XmlTagHtmlViewComponent, typeof i43.XmlTagTextViewComponent, typeof i44.XmlTagHeaderTextViewComponent, typeof i45.XmlTagHeaderInnerTextViewComponent, typeof i46.XmlTagExternalVideoComponent, typeof i47.HtmlRawViewComponent, typeof i48.FileImageTagViewComponent, typeof i49.XmlTagCustomWidgetComponent, 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.CustomWidgetEditorComponent, typeof i59.TagToSpanPipe, typeof i60.ToPreviewPipe, typeof i61.ToHtmlBodyTagsPipe, typeof i62.ToPreviewHtmlPipe]>;
69
67
  static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
70
68
  }
@@ -1,10 +1,13 @@
1
1
  import { HtmlBodyTag } from "../models/models";
2
2
  import { InterfaceBlock } from "./InterfaceBlock";
3
3
  import { CrocoHtmlOptions } from "../options";
4
+ import { IMarkUpTagService } from "../tag-services/IMarkUpTagService";
4
5
  export declare class BodyTagsExtensions {
5
- static getDescription(tagName: string): string;
6
- static toHtml(bodyTags: HtmlBodyTag[]): string;
7
- static imageTagToHtml(imageTag: HtmlBodyTag): string;
6
+ static tagServices: {
7
+ [id: string]: IMarkUpTagService;
8
+ };
9
+ static convertToHtmlString(bodyTag: HtmlBodyTag): string;
10
+ static bodyTagsToHtml(bodyTags: HtmlBodyTag[]): string;
8
11
  static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
9
12
  static sanitizeInnerHtml(html: string): string;
10
13
  static toBodyTag(data: InterfaceBlock): HtmlBodyTag;
@@ -1,32 +1,8 @@
1
1
  import { InterfaceBlock } from "./InterfaceBlock";
2
- import { GenericTextTag } from "./TextSimpleMethods";
3
2
  import { CrocoHtmlOptions } from "../options";
4
3
  export declare class HtmlExtractionMethods {
5
- static ExtractHeaderTag(elem: HTMLElement, tagName: string): GenericTextTag;
6
4
  static Extractors: {
7
- [x: string]: ((elem: HTMLElement, options: CrocoHtmlOptions) => import("croco-html").FileImageTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => {
8
- type: string;
9
- data: import("./TableMethods").TableData;
10
- validationResult: import("croco-html").BaseApiResponse;
11
- bootstrapHtml: string;
12
- } | {
13
- angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
14
- type: string;
15
- data: import("./TableMethods").TableData;
16
- validationResult: import("croco-html").BaseApiResponse;
17
- bootstrapHtml: string;
18
- } | {
19
- angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
20
- html: string;
21
- angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
22
- type: string;
23
- data: import("./TableMethods").TableData;
24
- validationResult: import("croco-html").BaseApiResponse;
25
- bootstrapHtml: string;
26
- }) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextMethods").RichTextData) | ((elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./VideoMethods").ExternalVideoTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./DownloadButtonMethods").DownloadButtonTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./ButtonMethods").ButtonTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./CustomWidgetMethods").CustomWidgetTag) | ((elem: HTMLElement, options: CrocoHtmlOptions) => import("./HtmlRawTagDataConsts").ExtractHtmlRawTag);
27
- TEXT: (elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextSimpleMethods").SimpleTextTag;
28
- "FILE-IMAGE": (elem: HTMLElement, options: CrocoHtmlOptions) => import("croco-html").FileImageTag;
29
- TABLE: (elem: HTMLElement, options: CrocoHtmlOptions) => {
5
+ table: (elem: HTMLElement, options: CrocoHtmlOptions) => {
30
6
  type: string;
31
7
  data: import("./TableMethods").TableData;
32
8
  validationResult: import("croco-html").BaseApiResponse;
@@ -46,13 +22,6 @@ export declare class HtmlExtractionMethods {
46
22
  validationResult: import("croco-html").BaseApiResponse;
47
23
  bootstrapHtml: string;
48
24
  };
49
- "RICH-TEXT": (elem: HTMLElement, options: CrocoHtmlOptions) => import("./TextMethods").RichTextData;
50
- H1: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
51
- H2: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
52
- H3: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
53
- H4: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
54
- H5: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
55
- H6: (elem: HTMLElement, options: CrocoHtmlOptions) => GenericTextTag;
56
25
  };
57
26
  static transformHtmlElementToBlocks(element: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock[];
58
27
  static transformHtmlStringToBlocks(value: string, options: CrocoHtmlOptions): InterfaceBlock[];
@@ -1,5 +1,5 @@
1
1
  export declare class HtmlRawTagDataConsts {
2
- static TagName: string;
2
+ static readonly TagName = "html-raw";
3
3
  }
4
4
  export interface ExtractHtmlRawTag {
5
5
  type: string;
@@ -8,6 +8,3 @@ export interface ExtractHtmlRawTag {
8
8
  export interface ExtractHtmlRawTagData {
9
9
  innerHTML: string;
10
10
  }
11
- export declare class ExtractHtmlRawTagMethods {
12
- static ExtractHtmlRawTag(elem: HTMLElement): ExtractHtmlRawTag;
13
- }
@@ -1,21 +1,20 @@
1
- import { FileImageTag, ImageRestrictions, IMediaRequest } from "../models";
1
+ import { ImageRestrictions, IMediaRequest } from "../models";
2
2
  import { CrocoHtmlOptions } from "../options";
3
3
  export declare class FileImageTagDataConsts {
4
- static TagName: string;
5
- static FileIdAttrName: string;
6
- static ScreenMediaRequest: string;
7
- static MaxScreenWidth: string;
8
- static MinScreenWidth: string;
9
- static MaxImageHeight: string;
10
- static MaxImageWidth: string;
11
- static DefaultValueForFileImage: string;
4
+ static readonly TagName = "file-image";
5
+ static readonly FileIdAttrName = "file-id";
6
+ static readonly ScreenMediaRequest = "screen-media-request";
7
+ static readonly MaxScreenWidth = "max-screen-width";
8
+ static readonly MinScreenWidth = "min-screen-width";
9
+ static readonly MaxImageHeight = "max-image-height";
10
+ static readonly MaxImageWidth = "max-image-width";
11
+ static readonly DefaultValueForFileImage = "max-screen-width:1200,min-screen-width:900,max-image-height:300;max-screen-width:900,min-screen-width:600,max-image-height:200";
12
12
  }
13
13
  export declare class ImageMethods {
14
14
  static buildUrl(fileId: string, sizeType: string, options: CrocoHtmlOptions): string;
15
15
  static buildSmallUrl(fileId: string, options: CrocoHtmlOptions): string;
16
16
  static buildMediumUrl(fileId: string, options: CrocoHtmlOptions): string;
17
17
  static isPrivateFileId(fileId: string): boolean;
18
- static ExtractImage(elem: HTMLElement, options: CrocoHtmlOptions): FileImageTag;
19
18
  static mediaRequestStringToArrayParser: (data: string) => IMediaRequest[];
20
19
  static createMediaRequestValue(arr: string[], attribute: string): number | null;
21
20
  static mediaRequestsArrayToString(data: IMediaRequest[]): string;
@@ -1,5 +1,8 @@
1
1
  import { BaseApiResponse } from "../models";
2
2
  export interface InterfaceBlock {
3
+ /**
4
+ * Название тега
5
+ */
3
6
  type: string;
4
7
  data: any;
5
8
  validationResult?: BaseApiResponse | undefined;
@@ -6,11 +6,11 @@ export declare class Tags {
6
6
  static readonly H4 = "h4";
7
7
  static readonly H5 = "h5";
8
8
  static readonly H6 = "h6";
9
- static readonly HtmlRaw: string;
10
- static readonly FileImage: string;
9
+ static readonly HtmlRaw = "html-raw";
10
+ static readonly FileImage = "file-image";
11
11
  static readonly Table = "table";
12
12
  static readonly RichText = "rich-text";
13
- static readonly ExternalVideo: string;
13
+ static readonly ExternalVideo = "external-video";
14
14
  static readonly UnsupportedTag = "unsupported-tag";
15
- static readonly CustomWidget: string;
15
+ static readonly CustomWidget = "custom-widget";
16
16
  }
@@ -1,18 +1,3 @@
1
- export interface TextBlock {
2
- type: "text-block" | "text-sup-block" | "text-sub-block";
3
- data: {
4
- text: string;
5
- };
6
- }
7
- export interface LineBreakBlock {
8
- type: "line-break";
9
- }
10
- export interface RichTextData {
11
- type: "rich-text";
12
- data: {
13
- children: Array<TextBlock | LineBreakBlock>;
14
- };
15
- }
16
1
  export declare class TextTags {
17
2
  static readonly text = "text";
18
3
  static readonly h1 = "h1";
@@ -24,6 +9,3 @@ export declare class TextTags {
24
9
  static headerTextTags: string[];
25
10
  static allTextTags: string[];
26
11
  }
27
- export declare class TextMethods {
28
- static ExtractRichTextData(elem: HTMLElement): RichTextData;
29
- }
@@ -3,10 +3,6 @@ export declare class TextTagDataConsts {
3
3
  static HAlign: string;
4
4
  }
5
5
  export declare const TextTag = "text";
6
- export interface SimpleTextTag {
7
- type: "text";
8
- data: SimpleTextTagData;
9
- }
10
6
  export interface GenericTextTag {
11
7
  type: string;
12
8
  data: SimpleTextTagData;
@@ -20,7 +16,7 @@ export interface SimpleTextTagData {
20
16
  }
21
17
  export declare class TextSimpleMethods {
22
18
  static supportedTags: string[];
23
- static ExtractTextTag(elem: HTMLElement): SimpleTextTag;
19
+ static ExtractTextTag(elem: HTMLElement): GenericTextTag;
24
20
  static ValidateTextHtml(html: string): BaseApiResponse;
25
21
  static ValidateTag(element: Element): BaseApiResponse;
26
22
  }
@@ -1,14 +1,14 @@
1
1
  export declare class ExternalVideoTagDataConsts {
2
- static TagName: string;
3
- static VideoTypeAttrName: string;
4
- static LinkAttrName: string;
5
- static UseResponsiveWrapperAttrName: string;
6
- static IframeAttrName: string;
2
+ static readonly TagName = "external-video";
3
+ static readonly VideoTypeAttrName = "type";
4
+ static readonly LinkAttrName = "link";
5
+ static readonly UseResponsiveWrapperAttrName = "use-responsive-wrapper";
6
+ static readonly IframeAttrName = "iframe";
7
7
  }
8
8
  export declare class ExternalVideoSupportedTypes {
9
- static Youtube: string;
10
- static VkVideo: string;
11
- static Code: string;
9
+ static readonly Youtube = "youtube";
10
+ static readonly VkVideo = "vk-video";
11
+ static readonly Code = "code";
12
12
  }
13
13
  export declare const ExternalVideoPlayers: {
14
14
  type: string;
@@ -24,6 +24,3 @@ export interface ExternalVideoTagData {
24
24
  innerHtml: string;
25
25
  useResponsiveWrapper: boolean;
26
26
  }
27
- export declare class VideoMethods {
28
- static ExtractExternalVideoTag(elem: HTMLElement): ExternalVideoTag;
29
- }
@@ -2,7 +2,6 @@ export * from './AngularMaterialTableMethods';
2
2
  export * from './BodyTagsExtensions';
3
3
  export * from './BootstrapTableMethods';
4
4
  export * from './ImageMethods';
5
- export * from './CustomWidgetMethods';
6
5
  export * from './TableBuilder';
7
6
  export * from './TableMethods';
8
7
  export * from './TextMethods';
package/lib/index.d.ts CHANGED
@@ -5,7 +5,6 @@ import { TextEditorComponent } from "./components";
5
5
  import { FileIdSelectComponent } from "./components";
6
6
  import { XmlTagHeaderInnerTextViewComponent } from "./components";
7
7
  import { XmlTagHtmlViewComponent } from "./components";
8
- import { XmlTagRichTextViewComponent } from "./components";
9
8
  import { XmlTagTableViewComponent } from "./components";
10
9
  import { XmlTagViewComponent } from "./components";
11
10
  import { CustomWidgetEditorComponent } from "./components";
@@ -13,13 +12,13 @@ import { VisualEditorComponent } from './components';
13
12
  import { AddFilesBtnComponent } from './components';
14
13
  import { XmlTagExternalVideoComponent } from "./components";
15
14
  import { HtmlRawEditorComponent } from "./components";
16
- import { MatFormFieldModule } from '@angular/material/form-field';
17
- import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
15
+ import { MatCardModule } from '@angular/material/card';
16
+ import { TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
18
17
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
19
18
  import { HtmlRawViewComponent } from "./components";
20
19
  import { XmlTagCustomWidgetComponent } from "./components";
21
20
  export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
22
- export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent)[];
23
- export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
24
- 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 XmlTagCustomWidgetComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
25
- export declare const MaterialModules: (typeof MatFormFieldModule)[];
21
+ export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent)[];
22
+ export declare const CrocoPipes: (typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
23
+ export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagCustomWidgetComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
24
+ export declare const MaterialModules: (typeof MatCardModule)[];
@@ -1,4 +1,7 @@
1
1
  export interface TagItem {
2
+ /**
3
+ * Название тега
4
+ */
2
5
  tag: string;
3
6
  displayValue: string;
4
7
  isCustom: boolean;
@@ -1,4 +1,3 @@
1
- export * from "./RichTextToHtmlPipe";
2
1
  export * from "./TagToSpanPipe";
3
2
  export * from "./to-preview.pipe";
4
3
  export * from "./ToHtmlBodyTagsPipe";
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
2
  import { Observable } from "rxjs";
3
- import { GetListResult, FileType, SearchFilesRequest } from "./PublicFilesQueryService";
3
+ import { FileType, GetListResult, SearchFilesRequest } from "./file-models";
4
4
  import * as i0 from "@angular/core";
5
5
  export interface PrivateFileNameModel {
6
6
  id: string;
@@ -1,44 +1,7 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
2
  import { Observable } from "rxjs";
3
+ import { FileSimpleModel, GetListResult, SearchFilesRequest } from "./file-models";
3
4
  import * as i0 from "@angular/core";
4
- export interface GetListResult<T> {
5
- totalCount: number;
6
- list: Array<T>;
7
- }
8
- export interface FileRelationModel {
9
- entityTypeFullName: string;
10
- entityKey: string;
11
- relationName: string;
12
- relationValue: string;
13
- relationCustomData: string;
14
- }
15
- export interface SearchFilesRequest {
16
- q: string;
17
- fileName: string;
18
- applicationId: string;
19
- fileTypes: Array<FileType>;
20
- count: number | null;
21
- offSet: number;
22
- }
23
- export declare enum FileType {
24
- Undefined = "Undefined",
25
- Unknown = "Unknown",
26
- Image = "Image",
27
- Audio = "Audio",
28
- Video = "Video",
29
- Document = "Document",
30
- Archive = "Archive"
31
- }
32
- export interface GetListSearchModel {
33
- count: number | null;
34
- offSet: number;
35
- }
36
- export interface FileSimpleModel {
37
- fileId: number;
38
- fileName: string;
39
- type: FileType;
40
- downloadUrl: string;
41
- }
42
5
  export declare class PublicFilesQueryService {
43
6
  private readonly _httpClient;
44
7
  private readonly _baseControllerUrl;
@@ -0,0 +1,38 @@
1
+ export interface GetListResult<T> {
2
+ totalCount: number;
3
+ list: Array<T>;
4
+ }
5
+ export interface FileRelationModel {
6
+ entityTypeFullName: string;
7
+ entityKey: string;
8
+ relationName: string;
9
+ relationValue: string;
10
+ relationCustomData: string;
11
+ }
12
+ export interface SearchFilesRequest {
13
+ q: string;
14
+ fileName: string;
15
+ applicationId: string;
16
+ fileTypes: Array<FileType>;
17
+ count: number | null;
18
+ offSet: number;
19
+ }
20
+ export declare enum FileType {
21
+ Undefined = "Undefined",
22
+ Unknown = "Unknown",
23
+ Image = "Image",
24
+ Audio = "Audio",
25
+ Video = "Video",
26
+ Document = "Document",
27
+ Archive = "Archive"
28
+ }
29
+ export interface GetListSearchModel {
30
+ count: number | null;
31
+ offSet: number;
32
+ }
33
+ export interface FileSimpleModel {
34
+ fileId: number;
35
+ fileName: string;
36
+ type: FileType;
37
+ downloadUrl: string;
38
+ }
@@ -1,2 +1,3 @@
1
1
  export * from "./HtmlViewController";
2
2
  export * from "./CrocoHtmlFileOptionsService";
3
+ export * from "./file-models";
@@ -0,0 +1,26 @@
1
+ import { InterfaceBlock } from "../extensions/InterfaceBlock";
2
+ import { HtmlBodyTag } from "../models";
3
+ import { CrocoHtmlOptions } from "../options";
4
+ import { IMarkUpTagService } from "./IMarkUpTagService";
5
+ export declare class ButtonTagDataConsts {
6
+ static readonly TagName = "button";
7
+ static readonly TextAttrName = "text";
8
+ static readonly TypeAttrName = "type";
9
+ static readonly ClickAttrName = "click";
10
+ }
11
+ export interface ButtonTag {
12
+ type: string;
13
+ data: ButtonTagData;
14
+ }
15
+ export interface ButtonTagData {
16
+ text: string;
17
+ type: string;
18
+ click: string;
19
+ }
20
+ export declare class ButtonTagService implements IMarkUpTagService {
21
+ tagName: string;
22
+ shortDescription: string;
23
+ bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
24
+ extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
25
+ toBodyTag(data: InterfaceBlock): HtmlBodyTag;
26
+ }
@@ -0,0 +1,32 @@
1
+ import { InterfaceBlock } from "../extensions/InterfaceBlock";
2
+ import { HtmlBodyTag } from "../models";
3
+ import { CrocoHtmlOptions } from "../options";
4
+ import { IMarkUpTagService } from "./IMarkUpTagService";
5
+ export declare class CustomWidgetTagDataConsts {
6
+ static readonly TagName = "custom-widget";
7
+ static readonly TypeAttrName = "type";
8
+ static readonly DataIdAttrName = "data-id";
9
+ static readonly WidgetIdAttrName = "widget-id";
10
+ }
11
+ export interface CustomWidgetTag {
12
+ type: string;
13
+ data: CustomWidgetTagData;
14
+ }
15
+ export interface CustomWidgetTagData {
16
+ type: string;
17
+ dataId: string;
18
+ widgetId: string;
19
+ }
20
+ export declare class CustomWidgetTagService implements IMarkUpTagService {
21
+ tagName: string;
22
+ shortDescription: string;
23
+ bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
24
+ extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
25
+ toBodyTag(data: InterfaceBlock): HtmlBodyTag;
26
+ static ExtractCustomWidgetTagData(attributes: any): CustomWidgetTagData;
27
+ static ExtractCustomWidgetAttributes(customWidgetTagData: CustomWidgetTagData): {
28
+ type: string;
29
+ "data-id": string;
30
+ "widget-id": string;
31
+ };
32
+ }