croco-html 5.0.0 → 20.0.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 (166) hide show
  1. package/fesm2022/croco-html.mjs +2261 -1127
  2. package/fesm2022/croco-html.mjs.map +1 -1
  3. package/index.d.ts +1338 -3
  4. package/package.json +7 -9
  5. package/src/assets/sprites/symbol/croco-html-svg-sprite.svg +1 -1
  6. package/esm2022/croco-html.mjs +0 -5
  7. package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +0 -55
  8. package/esm2022/lib/components/editor/button-editor/button-editor.component.mjs +0 -43
  9. package/esm2022/lib/components/editor/custom-widget-editor/custom-widget-editor.component.mjs +0 -41
  10. package/esm2022/lib/components/editor/download-file-button-editor/download-file-button-editor.component.mjs +0 -42
  11. package/esm2022/lib/components/editor/external-video-editor/embedded-video/code-video.component.mjs +0 -29
  12. package/esm2022/lib/components/editor/external-video-editor/external-video-editor.component.mjs +0 -84
  13. package/esm2022/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.mjs +0 -20
  14. package/esm2022/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.mjs +0 -20
  15. package/esm2022/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.mjs +0 -47
  16. package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +0 -33
  17. package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +0 -108
  18. package/esm2022/lib/components/editor/index.mjs +0 -9
  19. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +0 -120
  20. package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +0 -49
  21. package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +0 -30
  22. package/esm2022/lib/components/editor/visual-editor/DefaultAligments.mjs +0 -12
  23. package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +0 -28
  24. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +0 -268
  25. package/esm2022/lib/components/error-banner/error-banner.component.mjs +0 -24
  26. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +0 -87
  27. package/esm2022/lib/components/html-view/html-view.component.mjs +0 -18
  28. package/esm2022/lib/components/index.mjs +0 -7
  29. package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +0 -66
  30. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +0 -57
  31. package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +0 -24
  32. package/esm2022/lib/components/xml-tags/index.mjs +0 -12
  33. package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +0 -42
  34. package/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +0 -50
  35. package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +0 -48
  36. package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +0 -41
  37. package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +0 -16
  38. package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +0 -17
  39. package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +0 -16
  40. package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +0 -19
  41. package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +0 -19
  42. package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +0 -16
  43. package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +0 -41
  44. package/esm2022/lib/consts/index.mjs +0 -2
  45. package/esm2022/lib/croco-html.module.mjs +0 -106
  46. package/esm2022/lib/extensions/AngularMaterialTableMethods.mjs +0 -64
  47. package/esm2022/lib/extensions/BodyTagsExtensions.mjs +0 -192
  48. package/esm2022/lib/extensions/BootstrapTableMethods.mjs +0 -67
  49. package/esm2022/lib/extensions/ButtonMethods.mjs +0 -19
  50. package/esm2022/lib/extensions/CustomWidgetMethods.mjs +0 -33
  51. package/esm2022/lib/extensions/DownloadButtonMethods.mjs +0 -17
  52. package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +0 -65
  53. package/esm2022/lib/extensions/HtmlRawTagDataConsts.mjs +0 -14
  54. package/esm2022/lib/extensions/ImageMethods.mjs +0 -101
  55. package/esm2022/lib/extensions/InterfaceBlock.mjs +0 -2
  56. package/esm2022/lib/extensions/TableBuilder.mjs +0 -35
  57. package/esm2022/lib/extensions/TableMethods.mjs +0 -108
  58. package/esm2022/lib/extensions/Tags.mjs +0 -22
  59. package/esm2022/lib/extensions/TextMethods.mjs +0 -39
  60. package/esm2022/lib/extensions/TextSimpleMethods.mjs +0 -81
  61. package/esm2022/lib/extensions/VideoMethods.mjs +0 -40
  62. package/esm2022/lib/extensions/XmlExtensions.mjs +0 -26
  63. package/esm2022/lib/extensions/index.mjs +0 -12
  64. package/esm2022/lib/index.mjs +0 -122
  65. package/esm2022/lib/models/image-models.mjs +0 -2
  66. package/esm2022/lib/models/index.mjs +0 -3
  67. package/esm2022/lib/models/models.mjs +0 -2
  68. package/esm2022/lib/options/index.mjs +0 -2
  69. package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +0 -27
  70. package/esm2022/lib/pipes/TagToSpanPipe.mjs +0 -17
  71. package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +0 -25
  72. package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +0 -25
  73. package/esm2022/lib/pipes/index.mjs +0 -6
  74. package/esm2022/lib/pipes/sprite-icon-path.pipe.mjs +0 -17
  75. package/esm2022/lib/pipes/to-preview.pipe.mjs +0 -25
  76. package/esm2022/lib/services/CrocoHtmlFileOptionsService.mjs +0 -32
  77. package/esm2022/lib/services/HtmlViewController.mjs +0 -23
  78. package/esm2022/lib/services/PrivateFileUploadService.mjs +0 -34
  79. package/esm2022/lib/services/PrivateFilesQueryService.mjs +0 -24
  80. package/esm2022/lib/services/PublicFileUploadService.mjs +0 -34
  81. package/esm2022/lib/services/PublicFilesQueryService.mjs +0 -34
  82. package/esm2022/lib/services/blob-create.service.mjs +0 -20
  83. package/esm2022/lib/services/index.mjs +0 -3
  84. package/esm2022/lib/services/screen-width.service.mjs +0 -24
  85. package/esm2022/public-api.mjs +0 -12
  86. package/esm2022/sprites-ids.type.mjs +0 -2
  87. package/lib/components/add-files-btn/add-files-btn.component.d.ts +0 -20
  88. package/lib/components/editor/button-editor/button-editor.component.d.ts +0 -13
  89. package/lib/components/editor/custom-widget-editor/custom-widget-editor.component.d.ts +0 -13
  90. package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts +0 -13
  91. package/lib/components/editor/external-video-editor/embedded-video/code-video.component.d.ts +0 -14
  92. package/lib/components/editor/external-video-editor/external-video-editor.component.d.ts +0 -17
  93. package/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.d.ts +0 -10
  94. package/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.d.ts +0 -10
  95. package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts +0 -17
  96. package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +0 -15
  97. package/lib/components/editor/image-editor/image-editor.component.d.ts +0 -34
  98. package/lib/components/editor/index.d.ts +0 -8
  99. package/lib/components/editor/main-editor/main-editor.component.d.ts +0 -34
  100. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +0 -14
  101. package/lib/components/editor/text-editor/text-editor.component.d.ts +0 -12
  102. package/lib/components/editor/visual-editor/DefaultAligments.d.ts +0 -9
  103. package/lib/components/editor/visual-editor/DefaultTags.d.ts +0 -6
  104. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +0 -72
  105. package/lib/components/error-banner/error-banner.component.d.ts +0 -6
  106. package/lib/components/file-id-select/file-id-select.component.d.ts +0 -38
  107. package/lib/components/html-view/html-view.component.d.ts +0 -6
  108. package/lib/components/index.d.ts +0 -6
  109. package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +0 -26
  110. package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +0 -22
  111. package/lib/components/xml-tags/html-raw-view/html-raw-view.component.d.ts +0 -12
  112. package/lib/components/xml-tags/index.d.ts +0 -11
  113. package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +0 -14
  114. package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +0 -19
  115. package/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts +0 -14
  116. package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +0 -11
  117. package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +0 -10
  118. package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +0 -10
  119. package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +0 -7
  120. package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +0 -10
  121. package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +0 -7
  122. package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +0 -10
  123. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +0 -8
  124. package/lib/consts/index.d.ts +0 -1
  125. package/lib/croco-html.module.d.ts +0 -70
  126. package/lib/extensions/AngularMaterialTableMethods.d.ts +0 -7
  127. package/lib/extensions/BodyTagsExtensions.d.ts +0 -11
  128. package/lib/extensions/BootstrapTableMethods.d.ts +0 -9
  129. package/lib/extensions/ButtonMethods.d.ts +0 -18
  130. package/lib/extensions/CustomWidgetMethods.d.ts +0 -20
  131. package/lib/extensions/DownloadButtonMethods.d.ts +0 -16
  132. package/lib/extensions/HtmlExtractionMethods.d.ts +0 -59
  133. package/lib/extensions/HtmlRawTagDataConsts.d.ts +0 -13
  134. package/lib/extensions/ImageMethods.d.ts +0 -24
  135. package/lib/extensions/InterfaceBlock.d.ts +0 -7
  136. package/lib/extensions/TableBuilder.d.ts +0 -5
  137. package/lib/extensions/TableMethods.d.ts +0 -60
  138. package/lib/extensions/Tags.d.ts +0 -16
  139. package/lib/extensions/TextMethods.d.ts +0 -29
  140. package/lib/extensions/TextSimpleMethods.d.ts +0 -26
  141. package/lib/extensions/VideoMethods.d.ts +0 -29
  142. package/lib/extensions/XmlExtensions.d.ts +0 -5
  143. package/lib/extensions/index.d.ts +0 -11
  144. package/lib/index.d.ts +0 -25
  145. package/lib/models/image-models.d.ts +0 -19
  146. package/lib/models/index.d.ts +0 -2
  147. package/lib/models/models.d.ts +0 -15
  148. package/lib/options/index.d.ts +0 -46
  149. package/lib/pipes/RichTextToHtmlPipe.d.ts +0 -8
  150. package/lib/pipes/TagToSpanPipe.d.ts +0 -7
  151. package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +0 -11
  152. package/lib/pipes/ToPreviewHtmlPipe.d.ts +0 -11
  153. package/lib/pipes/index.d.ts +0 -5
  154. package/lib/pipes/sprite-icon-path.pipe.d.ts +0 -8
  155. package/lib/pipes/to-preview.pipe.d.ts +0 -11
  156. package/lib/services/CrocoHtmlFileOptionsService.d.ts +0 -10
  157. package/lib/services/HtmlViewController.d.ts +0 -11
  158. package/lib/services/PrivateFileUploadService.d.ts +0 -26
  159. package/lib/services/PrivateFilesQueryService.d.ts +0 -21
  160. package/lib/services/PublicFileUploadService.d.ts +0 -26
  161. package/lib/services/PublicFilesQueryService.d.ts +0 -49
  162. package/lib/services/blob-create.service.d.ts +0 -10
  163. package/lib/services/index.d.ts +0 -2
  164. package/lib/services/screen-width.service.d.ts +0 -10
  165. package/public-api.d.ts +0 -8
  166. package/sprites-ids.type.d.ts +0 -1
@@ -1,38 +0,0 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { PublicFilesQueryService } from '../../services/PublicFilesQueryService';
3
- import { CrocoHtmlEditorFileOptions, CrocoHtmlOptions } from '../../options';
4
- import { PrivateFilesQueryService } from "../../services/PrivateFilesQueryService";
5
- import { CrocoHtmlFileOptionsService } from "../../services/CrocoHtmlFileOptionsService";
6
- import * as i0 from "@angular/core";
7
- export interface SearchQuestionsFormData {
8
- q: string;
9
- }
10
- export interface FileUnifiedModel {
11
- fileId: string;
12
- fileName: string;
13
- }
14
- export declare class FileIdSelectComponent implements OnInit, OnChanges {
15
- private readonly _publicFileService;
16
- private readonly _privateFileService;
17
- private _htmlSettingsService;
18
- private readonly _options;
19
- q: string;
20
- labelText: string;
21
- fileId: string;
22
- loading: boolean;
23
- files: FileUnifiedModel[];
24
- onFileIdChanged: EventEmitter<string>;
25
- get crocoHtmlEditorFileOptions(): CrocoHtmlEditorFileOptions;
26
- constructor(_publicFileService: PublicFilesQueryService, _privateFileService: PrivateFilesQueryService, _htmlSettingsService: CrocoHtmlFileOptionsService, _options: CrocoHtmlOptions);
27
- onModelChanged(fileId: string): void;
28
- getSrc(fileId: string): string;
29
- ngOnInit(): void;
30
- loadFiles(): void;
31
- onSearchChanged(q: {
32
- term: string;
33
- items: object[];
34
- }): void;
35
- ngOnChanges(changes: SimpleChanges): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<FileIdSelectComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<FileIdSelectComponent, "croco-html-file-id-select", never, { "labelText": { "alias": "labelText"; "required": false; }; "fileId": { "alias": "fileId"; "required": false; }; }, { "fileId": "fileId"; "onFileIdChanged": "onFileIdChanged"; }, never, never, true, never>;
38
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HtmlViewComponent {
3
- html: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- export * from './add-files-btn/add-files-btn.component';
2
- export * from './editor/';
3
- export * from './file-id-select/file-id-select.component';
4
- export * from './upload-files-btn/upload-files-btn.component';
5
- export * from './xml-tags';
6
- export * from './html-view/html-view.component';
@@ -1,26 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { PublicFilesUploadResponse, PublicFileUploadService } from '../../services/PublicFileUploadService';
3
- import { PrivateFilesCreatedResult, PrivateFileUploadService } from "../../services/PrivateFileUploadService";
4
- import { CrocoHtmlFileOptionsService } from "../../services/CrocoHtmlFileOptionsService";
5
- import * as i0 from "@angular/core";
6
- export interface FilePostingStarted {
7
- filesCount: number;
8
- }
9
- export declare class UploadFilesBtnComponent {
10
- private _publicFileUploadService;
11
- private _privateFileUploadService;
12
- private _htmlSettingsService;
13
- private fileInput;
14
- extAccepts: string;
15
- isMultiple: boolean;
16
- btnText: string;
17
- hidden: boolean;
18
- postFilesStarted: EventEmitter<FilePostingStarted>;
19
- onPublicFilesUploaded: EventEmitter<PublicFilesUploadResponse>;
20
- onPrivateFilesUploaded: EventEmitter<PrivateFilesCreatedResult>;
21
- constructor(_publicFileUploadService: PublicFileUploadService, _privateFileUploadService: PrivateFileUploadService, _htmlSettingsService: CrocoHtmlFileOptionsService);
22
- handleFileInput(files: FileList): void;
23
- clickFileInput(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilesBtnComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilesBtnComponent, "croco-app-upload-files-btn", never, { "extAccepts": { "alias": "extAccepts"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, { "postFilesStarted": "postFilesStarted"; "onPublicFilesUploaded": "onPublicFilesUploaded"; "onPrivateFilesUploaded": "onPrivateFilesUploaded"; }, never, never, true, never>;
26
- }
@@ -1,22 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { InterfaceBlock } from '../../../extensions/InterfaceBlock';
3
- import { ScreenWidthService } from "../../../services/screen-width.service";
4
- import { CrocoHtmlOptions } from '../../../options';
5
- import { IMediaRequest } from '../../../models';
6
- import * as i0 from "@angular/core";
7
- export declare class FileImageTagViewComponent implements OnInit, OnDestroy {
8
- private readonly screenWidthService;
9
- private readonly _options;
10
- set item(item: InterfaceBlock);
11
- imageSrc: string;
12
- requests: IMediaRequest[];
13
- private unsubscribe;
14
- imageMaxHeight: number;
15
- imageMaxWidth: number;
16
- constructor(screenWidthService: ScreenWidthService, _options: CrocoHtmlOptions);
17
- getMediaRequests(screenMediaRequest: string): IMediaRequest[];
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,12 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class HtmlRawViewComponent implements OnChanges {
5
- private readonly _sanitizer;
6
- rawHtml: string;
7
- safeHtml: SafeHtml;
8
- constructor(_sanitizer: DomSanitizer);
9
- ngOnChanges(changes: SimpleChanges): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never, true, never>;
12
- }
@@ -1,11 +0,0 @@
1
- export * from './xml-tag-external-video/xml-tag-external-video.component';
2
- export * from './xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component';
3
- export * from './xml-tag-header-text-view/xml-tag-header-text-view.component';
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
- export * from './xml-tag-table-view/xml-tag-table-view.component';
7
- export * from './xml-tag-text-view/xml-tag-text-view.component';
8
- export * from './xml-tag-view/xml-tag-view.component';
9
- export * from './html-raw-view/html-raw-view.component';
10
- export * from './file-image-tag-view/file-image-tag-view.component';
11
- export * from './xml-tag-custom-widget/xml-tag-custom-widget.component';
@@ -1,14 +0,0 @@
1
- import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import { ButtonTagData } from "../../../extensions/ButtonMethods";
3
- import { HtmlViewController } from '../../../services/HtmlViewController';
4
- import * as i0 from "@angular/core";
5
- export declare class XmlTagButtonComponent {
6
- private readonly _controller;
7
- set data(value: InterfaceBlock);
8
- set tagData(value: ButtonTagData);
9
- constructor(_controller: HtmlViewController);
10
- _block: ButtonTagData;
11
- clickHandler(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagButtonComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagButtonComponent, "croco-html-xml-tag-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
14
- }
@@ -1,19 +0,0 @@
1
- import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { CustomWidgetTagData } from "../../../extensions";
3
- import { CrocoHtmlOptions } from "../../../options";
4
- import * as i0 from "@angular/core";
5
- export declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
6
- private readonly _options;
7
- viewContainerRef: ViewContainerRef;
8
- set tagData(value: CustomWidgetTagData);
9
- get tagData(): CustomWidgetTagData;
10
- _tagData: CustomWidgetTagData;
11
- tooltipData: string;
12
- useDynamicComponent: boolean;
13
- dynamicContainerRef: ComponentRef<any>;
14
- constructor(_options: CrocoHtmlOptions);
15
- ngOnInit(): void;
16
- ngOnDestroy(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagCustomWidgetComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagCustomWidgetComponent, "croco-html-xml-tag-custom-widget", never, { "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,14 +0,0 @@
1
- import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import { BlobCreateService } from "../../../services/blob-create.service";
3
- import { DownloadButtonTagData } from "../../../extensions/DownloadButtonMethods";
4
- import * as i0 from "@angular/core";
5
- export declare class XmlTagDownloadFileButtonComponent {
6
- private readonly _blobCreateService;
7
- set data(value: InterfaceBlock);
8
- set tagData(value: DownloadButtonTagData);
9
- constructor(_blobCreateService: BlobCreateService);
10
- _block: DownloadButtonTagData;
11
- downloadFile(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagDownloadFileButtonComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagDownloadFileButtonComponent, "croco-html-xml-tag-download-file-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
14
- }
@@ -1,11 +0,0 @@
1
- import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import { ExternalVideoSupportedTypes, ExternalVideoTagData } from '../../../extensions';
3
- import * as i0 from "@angular/core";
4
- export declare class XmlTagExternalVideoComponent {
5
- set data(value: InterfaceBlock);
6
- set tagData(value: ExternalVideoTagData);
7
- protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
8
- _block: ExternalVideoTagData;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagExternalVideoComponent, "croco-html-xml-tag-external-video", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
3
- import * as i0 from "@angular/core";
4
- export declare class XmlTagHeaderInnerTextViewComponent implements OnInit {
5
- item: GenericTextTag;
6
- constructor();
7
- ngOnInit(): void;
8
- 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>;
10
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
3
- import * as i0 from "@angular/core";
4
- export declare class XmlTagHeaderTextViewComponent implements OnInit {
5
- item: GenericTextTag;
6
- constructor();
7
- ngOnInit(): void;
8
- 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>;
10
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class XmlTagHtmlViewComponent {
3
- constructor();
4
- html: string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHtmlViewComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
7
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { RichTextData } from '../../../extensions/TextMethods';
3
- import * as i0 from "@angular/core";
4
- export declare class XmlTagRichTextViewComponent implements OnInit {
5
- richTextData: RichTextData;
6
- constructor();
7
- ngOnInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagRichTextViewComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagRichTextViewComponent, "croco-html-xml-tag-rich-text-view", never, { "richTextData": { "alias": "richTextData"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class XmlTagTableViewComponent {
3
- displayedColumns: string[];
4
- data: object;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTableViewComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTableViewComponent, "croco-html-xml-tag-table-view", never, { "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
7
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SimpleTextTag } from '../../../extensions/TextSimpleMethods';
3
- import * as i0 from "@angular/core";
4
- export declare class XmlTagTextViewComponent implements OnInit {
5
- item: SimpleTextTag;
6
- constructor();
7
- ngOnInit(): void;
8
- 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>;
10
- }
@@ -1,8 +0,0 @@
1
- import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
- import * as i0 from "@angular/core";
3
- export declare class XmlTagViewComponent {
4
- data: InterfaceBlock[];
5
- isHeaderTextTag(item: InterfaceBlock): boolean;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
8
- }
@@ -1 +0,0 @@
1
- export declare const CrocoHtmlOptionsToken = "croco-html-options";
@@ -1,70 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/forms";
4
- import * as i3 from "@ng-select/ng-select";
5
- import * as i4 from "@angular/material/badge";
6
- import * as i5 from "@angular/material/table";
7
- import * as i6 from "@angular/material/expansion";
8
- import * as i7 from "@angular/material/form-field";
9
- import * as i8 from "@angular/material/snack-bar";
10
- import * as i9 from "@angular/material/progress-bar";
11
- import * as i10 from "@angular/material/progress-spinner";
12
- import * as i11 from "@angular/material/tabs";
13
- import * as i12 from "@angular/material/menu";
14
- import * as i13 from "@angular/material/card";
15
- import * as i14 from "@angular/material/select";
16
- import * as i15 from "@angular/material/tooltip";
17
- import * as i16 from "@angular/material/checkbox";
18
- import * as i17 from "@angular/material/chips";
19
- import * as i18 from "@angular/material/list";
20
- import * as i19 from "@angular/material/button";
21
- import * as i20 from "@angular/material/input";
22
- import * as i21 from "@angular/material/dialog";
23
- import * as i22 from "@angular/material/paginator";
24
- import * as i23 from "@angular/material/datepicker";
25
- import * as i24 from "@angular/material/grid-list";
26
- import * as i25 from "@angular/material/slide-toggle";
27
- import * as i26 from "@angular/material/tree";
28
- import * as i27 from "@angular/material/core";
29
- import * as i28 from "@angular/material/autocomplete";
30
- import * as i29 from "@angular/material/sidenav";
31
- import * as i30 from "@angular/material/icon";
32
- import * as i31 from "@angular/cdk/drag-drop";
33
- import * as i32 from "@angular/material/button-toggle";
34
- import * as i33 from "./components/error-banner/error-banner.component";
35
- import * as i34 from "./components/editor/external-video-editor/vk-video-player/vk-video-player.component";
36
- import * as i35 from "./components/editor/external-video-editor/youtube-video-player/youtube-video-player.component";
37
- import * as i36 from "./components/editor/download-file-button-editor/download-file-button-editor.component";
38
- import * as i37 from "./components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component";
39
- import * as i38 from "./components/upload-files-btn/upload-files-btn.component";
40
- import * as i39 from "./components/html-view/html-view.component";
41
- import * as i40 from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
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";
66
- export declare class CrocoHtmlModule {
67
- 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]>;
69
- static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
70
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiResponse } from '../models';
2
- import { AngularMaterialTableData, TableData, TableRowData } from './TableMethods';
3
- export declare class AngularMaterialTableMethods {
4
- static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
5
- static checkHeaders(tableData: TableData): BaseApiResponse;
6
- static checkAngularMaterialTableData(tableData: TableData, checkHeaders?: boolean): BaseApiResponse;
7
- }
@@ -1,11 +0,0 @@
1
- import { HtmlBodyTag } from "../models/models";
2
- import { InterfaceBlock } from "./InterfaceBlock";
3
- import { CrocoHtmlOptions } from "../options";
4
- export declare class BodyTagsExtensions {
5
- static getDescription(tagName: string): string;
6
- static toHtml(bodyTags: HtmlBodyTag[]): string;
7
- static imageTagToHtml(imageTag: HtmlBodyTag): string;
8
- static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
9
- static sanitizeInnerHtml(html: string): string;
10
- static toBodyTag(data: InterfaceBlock): HtmlBodyTag;
11
- }
@@ -1,9 +0,0 @@
1
- import { InterfaceBlock } from "./InterfaceBlock";
2
- import { TableData, TableHeaderData, TableRowData } from './TableMethods';
3
- export declare class BootstrapTableMethods {
4
- static BuildTable(data: TableData): string;
5
- static BuildHeader(data: TableHeaderData): string;
6
- static BuildBody(rows: TableRowData[]): string;
7
- static BuildInnerTags(tags: InterfaceBlock[]): string;
8
- static BuildInnerTag(data: InterfaceBlock): string;
9
- }
@@ -1,18 +0,0 @@
1
- export declare class ButtonTagDataConsts {
2
- static TagName: string;
3
- static TextAttrName: string;
4
- static TypeAttrName: string;
5
- static ClickAttrName: string;
6
- }
7
- export interface ButtonTag {
8
- type: string;
9
- data: ButtonTagData;
10
- }
11
- export interface ButtonTagData {
12
- text: string;
13
- type: string;
14
- click: string;
15
- }
16
- export declare class ButtonMethods {
17
- static ExtractButtonTag(elem: HTMLElement): ButtonTag;
18
- }
@@ -1,20 +0,0 @@
1
- export declare class CustomWidgetTagDataConsts {
2
- static TagName: string;
3
- static TypeAttrName: string;
4
- static DataIdAttrName: string;
5
- static WidgetIdAttrName: string;
6
- }
7
- export interface CustomWidgetTag {
8
- type: string;
9
- data: CustomWidgetTagData;
10
- }
11
- export interface CustomWidgetTagData {
12
- type: string;
13
- dataId: string;
14
- widgetId: string;
15
- }
16
- export declare class CustomWidgetMethods {
17
- static ExtractCustomWidgetTagData(attributes: any): CustomWidgetTagData;
18
- static ExtractCustomWidgetAttributes(customWidgetTagData: CustomWidgetTagData): any;
19
- static ExtractCustomWidgetTag(elem: HTMLElement): CustomWidgetTag;
20
- }
@@ -1,16 +0,0 @@
1
- export declare class DownloadButtonTagDataConsts {
2
- static TagName: string;
3
- static TitleAttrName: string;
4
- static LinkAttrName: string;
5
- }
6
- export interface DownloadButtonTag {
7
- type: string;
8
- data: DownloadButtonTagData;
9
- }
10
- export interface DownloadButtonTagData {
11
- title: string;
12
- link: string;
13
- }
14
- export declare class DownloadButtonMethods {
15
- static ExtractDownloadButtonTag(elem: HTMLElement): DownloadButtonTag;
16
- }
@@ -1,59 +0,0 @@
1
- import { InterfaceBlock } from "./InterfaceBlock";
2
- import { GenericTextTag } from "./TextSimpleMethods";
3
- import { CrocoHtmlOptions } from "../options";
4
- export declare class HtmlExtractionMethods {
5
- static ExtractHeaderTag(elem: HTMLElement, tagName: string): GenericTextTag;
6
- 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) => {
30
- type: string;
31
- data: import("./TableMethods").TableData;
32
- validationResult: import("croco-html").BaseApiResponse;
33
- bootstrapHtml: string;
34
- } | {
35
- angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
36
- type: string;
37
- data: import("./TableMethods").TableData;
38
- validationResult: import("croco-html").BaseApiResponse;
39
- bootstrapHtml: string;
40
- } | {
41
- angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
42
- html: string;
43
- angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
44
- type: string;
45
- data: import("./TableMethods").TableData;
46
- validationResult: import("croco-html").BaseApiResponse;
47
- bootstrapHtml: string;
48
- };
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
- };
57
- static transformHtmlElementToBlocks(element: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock[];
58
- static transformHtmlStringToBlocks(value: string, options: CrocoHtmlOptions): InterfaceBlock[];
59
- }
@@ -1,13 +0,0 @@
1
- export declare class HtmlRawTagDataConsts {
2
- static TagName: string;
3
- }
4
- export interface ExtractHtmlRawTag {
5
- type: string;
6
- data: ExtractHtmlRawTagData;
7
- }
8
- export interface ExtractHtmlRawTagData {
9
- innerHTML: string;
10
- }
11
- export declare class ExtractHtmlRawTagMethods {
12
- static ExtractHtmlRawTag(elem: HTMLElement): ExtractHtmlRawTag;
13
- }
@@ -1,24 +0,0 @@
1
- import { FileImageTag, ImageRestrictions, IMediaRequest } from "../models";
2
- import { CrocoHtmlOptions } from "../options";
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;
12
- }
13
- export declare class ImageMethods {
14
- static buildUrl(fileId: string, sizeType: string, options: CrocoHtmlOptions): string;
15
- static buildSmallUrl(fileId: string, options: CrocoHtmlOptions): string;
16
- static buildMediumUrl(fileId: string, options: CrocoHtmlOptions): string;
17
- static isPrivateFileId(fileId: string): boolean;
18
- static ExtractImage(elem: HTMLElement, options: CrocoHtmlOptions): FileImageTag;
19
- static mediaRequestStringToArrayParser: (data: string) => IMediaRequest[];
20
- static createMediaRequestValue(arr: string[], attribute: string): number | null;
21
- static mediaRequestsArrayToString(data: IMediaRequest[]): string;
22
- static mediaRequestToString(data: IMediaRequest): string;
23
- static getImageRestrictionsByScreenSize(screenSize: number, requests: IMediaRequest[]): ImageRestrictions;
24
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiResponse } from "../models";
2
- export interface InterfaceBlock {
3
- type: string;
4
- data: any;
5
- validationResult?: BaseApiResponse | undefined;
6
- bootstrapHtml?: string | undefined;
7
- }
@@ -1,5 +0,0 @@
1
- export declare class TableBuilder {
2
- static getTableMarkUp(rows: number, cols: number, generateHeaders: boolean): string;
3
- static getTableHeaderMarkUp(cols: number): string;
4
- static getTableBodyMarkUp(cols: number, rows: number): string;
5
- }
@@ -1,60 +0,0 @@
1
- import { BaseApiResponse } from '../models';
2
- import { CrocoHtmlOptions } from '../options';
3
- import { InterfaceBlock } from "./InterfaceBlock";
4
- export interface TableHeaderData {
5
- type: "table-header";
6
- columns: string[];
7
- }
8
- export interface TableRowColumnData {
9
- type: "table-row-column-data";
10
- data: {
11
- text: string;
12
- children: InterfaceBlock[];
13
- };
14
- }
15
- export interface TableRowData {
16
- type: "table-row-column";
17
- columns: TableRowColumnData[];
18
- }
19
- export interface TableData {
20
- header: TableHeaderData;
21
- rows: TableRowData[];
22
- }
23
- export interface TableTagData {
24
- type: "table";
25
- data: TableData;
26
- }
27
- export declare class TableTypes {
28
- static readonly TableRowColumnData = "table-row-column-data";
29
- static readonly Table = "table";
30
- static readonly TableRowColumn = "table-row-column";
31
- }
32
- export interface AngularMaterialTableData {
33
- displayedColumns: string[];
34
- data: object[];
35
- }
36
- export declare class TableMethods {
37
- static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): {
38
- type: string;
39
- data: TableData;
40
- validationResult: BaseApiResponse;
41
- bootstrapHtml: string;
42
- } | {
43
- angularMaterialTableDataCheck: BaseApiResponse;
44
- type: string;
45
- data: TableData;
46
- validationResult: BaseApiResponse;
47
- bootstrapHtml: string;
48
- } | {
49
- angularMaterialTableDataCheck: BaseApiResponse;
50
- html: string;
51
- angularMaterialTableData: AngularMaterialTableData;
52
- type: string;
53
- data: TableData;
54
- validationResult: BaseApiResponse;
55
- bootstrapHtml: string;
56
- };
57
- static checkTable(tableData: TableData): BaseApiResponse;
58
- static getHeader(tableTag: HTMLTableElement): TableHeaderData;
59
- static getTableRows(tableTag: HTMLTableElement, options: CrocoHtmlOptions): Array<TableRowData>;
60
- }