croco-html 0.1.1 → 0.1.3

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 (183) hide show
  1. package/croco-html.d.ts +5 -0
  2. package/esm2020/croco-html.mjs +5 -0
  3. package/esm2020/lib/components/add-files-btn/add-files-btn.component.mjs +53 -0
  4. package/esm2020/lib/components/editor/external-video-block/external-video-block.component.mjs +45 -0
  5. package/esm2020/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +25 -0
  6. package/esm2020/lib/components/editor/image-editor/image-editor.component.mjs +50 -0
  7. package/esm2020/lib/components/editor/index.mjs +8 -0
  8. package/esm2020/lib/components/editor/main-editor/main-editor.component.mjs +76 -0
  9. package/esm2020/lib/components/editor/main-editor-block/main-editor-block.component.mjs +41 -0
  10. package/esm2020/lib/components/editor/text-editor/text-editor.component.mjs +34 -0
  11. package/esm2020/lib/components/editor/visual-editor/visual-editor.component.mjs +161 -0
  12. package/esm2020/lib/components/file-id-select/file-id-select.component.mjs +62 -0
  13. package/esm2020/lib/components/index.mjs +6 -0
  14. package/esm2020/lib/components/upload-files-btn/upload-files-btn.component.mjs +54 -0
  15. package/esm2020/lib/components/xml-tags/index.mjs +9 -0
  16. package/esm2020/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +43 -0
  17. package/esm2020/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +17 -0
  18. package/esm2020/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +18 -0
  19. package/esm2020/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +16 -0
  20. package/esm2020/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +20 -0
  21. package/esm2020/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +20 -0
  22. package/esm2020/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +17 -0
  23. package/esm2020/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +21 -0
  24. package/esm2020/lib/croco-html.module.mjs +90 -0
  25. package/esm2020/lib/extensions/AngularMaterialTableMethods.mjs +64 -0
  26. package/esm2020/lib/extensions/BodyTagsExtensions.mjs +120 -0
  27. package/esm2020/lib/extensions/BootstrapTableMethods.mjs +67 -0
  28. package/esm2020/lib/extensions/HtmlExtractionMethods.mjs +63 -0
  29. package/esm2020/lib/extensions/HtmlRawTagDataConsts.mjs +4 -0
  30. package/esm2020/lib/extensions/ImageMethods.mjs +24 -0
  31. package/esm2020/lib/extensions/InterfaceBlock.mjs +2 -0
  32. package/esm2020/lib/extensions/TableBuilder.mjs +35 -0
  33. package/esm2020/lib/extensions/TableMethods.mjs +108 -0
  34. package/esm2020/lib/extensions/TextMethods.mjs +29 -0
  35. package/esm2020/lib/extensions/TextSimpleMethods.mjs +77 -0
  36. package/esm2020/lib/extensions/VideoMethods.mjs +20 -0
  37. package/esm2020/lib/extensions/XmlExtensions.mjs +26 -0
  38. package/esm2020/lib/extensions/index.mjs +13 -0
  39. package/esm2020/lib/index.mjs +113 -0
  40. package/esm2020/lib/models/models.mjs +2 -0
  41. package/esm2020/lib/pipes/RichTextToHtmlPipe.mjs +26 -0
  42. package/esm2020/lib/pipes/TagToSpanPipe.mjs +16 -0
  43. package/esm2020/lib/pipes/ToHtmlBodyTagsPipe.mjs +17 -0
  44. package/esm2020/lib/pipes/index.mjs +5 -0
  45. package/esm2020/lib/pipes/to-preview.pipe.mjs +17 -0
  46. package/esm2020/lib/services/file-upload.service.mjs +40 -0
  47. package/esm2020/lib/services/files-query.service.mjs +27 -0
  48. package/esm2020/public-api.mjs +8 -0
  49. package/fesm2015/croco-html.mjs +1565 -0
  50. package/fesm2015/croco-html.mjs.map +1 -0
  51. package/fesm2020/croco-html.mjs +1568 -0
  52. package/fesm2020/croco-html.mjs.map +1 -0
  53. package/lib/components/add-files-btn/add-files-btn.component.d.ts +18 -0
  54. package/lib/components/editor/external-video-block/external-video-block.component.d.ts +19 -0
  55. package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +11 -0
  56. package/lib/components/editor/image-editor/image-editor.component.d.ts +20 -0
  57. package/lib/components/editor/index.d.ts +7 -0
  58. package/lib/components/editor/main-editor/main-editor.component.d.ts +28 -0
  59. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +16 -0
  60. package/lib/components/editor/text-editor/text-editor.component.d.ts +14 -0
  61. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +43 -0
  62. package/lib/components/file-id-select/file-id-select.component.d.ts +30 -0
  63. package/lib/components/index.d.ts +5 -0
  64. package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +24 -0
  65. package/{src/lib/components/xml-tags/index.ts → lib/components/xml-tags/index.d.ts} +8 -8
  66. package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +17 -0
  67. package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +10 -0
  68. package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +10 -0
  69. package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +7 -0
  70. package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +10 -0
  71. package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +7 -0
  72. package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +10 -0
  73. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +8 -0
  74. package/lib/croco-html.module.d.ts +60 -0
  75. package/lib/extensions/AngularMaterialTableMethods.d.ts +10 -0
  76. package/lib/extensions/BodyTagsExtensions.d.ts +10 -0
  77. package/lib/extensions/BootstrapTableMethods.d.ts +9 -0
  78. package/lib/extensions/HtmlExtractionMethods.d.ts +69 -0
  79. package/lib/extensions/HtmlRawTagDataConsts.d.ts +3 -0
  80. package/lib/extensions/ImageMethods.d.ts +17 -0
  81. package/lib/extensions/InterfaceBlock.d.ts +4 -0
  82. package/lib/extensions/TableBuilder.d.ts +5 -0
  83. package/lib/extensions/TableMethods.d.ts +58 -0
  84. package/lib/extensions/TextMethods.d.ts +19 -0
  85. package/lib/extensions/TextSimpleMethods.d.ts +23 -0
  86. package/lib/extensions/VideoMethods.d.ts +19 -0
  87. package/lib/extensions/XmlExtensions.d.ts +5 -0
  88. package/lib/extensions/index.d.ts +10 -0
  89. package/lib/index.d.ts +20 -0
  90. package/{src/lib/models/models.ts → lib/models/models.d.ts} +1 -2
  91. package/lib/pipes/RichTextToHtmlPipe.d.ts +8 -0
  92. package/lib/pipes/TagToSpanPipe.d.ts +7 -0
  93. package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +8 -0
  94. package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +0 -0
  95. package/lib/pipes/to-preview.pipe.d.ts +8 -0
  96. package/lib/services/file-upload.service.d.ts +23 -0
  97. package/lib/services/files-query.service.d.ts +42 -0
  98. package/package.json +34 -14
  99. package/{src/public-api.ts → public-api.d.ts} +0 -4
  100. package/karma.conf.js +0 -44
  101. package/ng-package.json +0 -7
  102. package/src/lib/components/add-files-btn/add-files-btn.component.css +0 -0
  103. package/src/lib/components/add-files-btn/add-files-btn.component.html +0 -14
  104. package/src/lib/components/add-files-btn/add-files-btn.component.ts +0 -61
  105. package/src/lib/components/editor/external-video-block/external-video-block.component.css +0 -0
  106. package/src/lib/components/editor/external-video-block/external-video-block.component.html +0 -27
  107. package/src/lib/components/editor/external-video-block/external-video-block.component.ts +0 -45
  108. package/src/lib/components/editor/html-raw-editor/html-raw-editor.component.css +0 -0
  109. package/src/lib/components/editor/html-raw-editor/html-raw-editor.component.html +0 -17
  110. package/src/lib/components/editor/html-raw-editor/html-raw-editor.component.ts +0 -22
  111. package/src/lib/components/editor/image-editor/image-editor.component.css +0 -7
  112. package/src/lib/components/editor/image-editor/image-editor.component.html +0 -54
  113. package/src/lib/components/editor/image-editor/image-editor.component.ts +0 -52
  114. package/src/lib/components/editor/index.ts +0 -7
  115. package/src/lib/components/editor/main-editor/main-editor.component.css +0 -48
  116. package/src/lib/components/editor/main-editor/main-editor.component.html +0 -39
  117. package/src/lib/components/editor/main-editor/main-editor.component.ts +0 -71
  118. package/src/lib/components/editor/main-editor-block/main-editor-block.component.css +0 -0
  119. package/src/lib/components/editor/main-editor-block/main-editor-block.component.html +0 -41
  120. package/src/lib/components/editor/main-editor-block/main-editor-block.component.ts +0 -39
  121. package/src/lib/components/editor/text-editor/text-editor.component.css +0 -0
  122. package/src/lib/components/editor/text-editor/text-editor.component.html +0 -39
  123. package/src/lib/components/editor/text-editor/text-editor.component.ts +0 -30
  124. package/src/lib/components/editor/visual-editor/visual-editor.component.css +0 -48
  125. package/src/lib/components/editor/visual-editor/visual-editor.component.html +0 -84
  126. package/src/lib/components/editor/visual-editor/visual-editor.component.ts +0 -180
  127. package/src/lib/components/file-id-select/file-id-select.component.css +0 -0
  128. package/src/lib/components/file-id-select/file-id-select.component.html +0 -39
  129. package/src/lib/components/file-id-select/file-id-select.component.ts +0 -75
  130. package/src/lib/components/index.ts +0 -5
  131. package/src/lib/components/upload-files-btn/upload-files-btn.component.css +0 -0
  132. package/src/lib/components/upload-files-btn/upload-files-btn.component.html +0 -2
  133. package/src/lib/components/upload-files-btn/upload-files-btn.component.ts +0 -57
  134. package/src/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.css +0 -15
  135. package/src/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.html +0 -8
  136. package/src/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.ts +0 -59
  137. package/src/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.css +0 -0
  138. package/src/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.html +0 -18
  139. package/src/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.ts +0 -19
  140. package/src/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.css +0 -0
  141. package/src/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.html +0 -25
  142. package/src/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.ts +0 -19
  143. package/src/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.css +0 -0
  144. package/src/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.html +0 -3
  145. package/src/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.ts +0 -14
  146. package/src/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.css +0 -0
  147. package/src/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.html +0 -2
  148. package/src/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.ts +0 -19
  149. package/src/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.css +0 -0
  150. package/src/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.html +0 -9
  151. package/src/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.ts +0 -15
  152. package/src/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.css +0 -0
  153. package/src/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.html +0 -21
  154. package/src/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.ts +0 -18
  155. package/src/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.css +0 -4
  156. package/src/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.html +0 -44
  157. package/src/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.ts +0 -17
  158. package/src/lib/croco-html.module.ts +0 -22
  159. package/src/lib/extensions/AngularMaterialTableMethods.ts +0 -87
  160. package/src/lib/extensions/BodyTagsExtensions.ts +0 -151
  161. package/src/lib/extensions/BootstrapTableMethods.ts +0 -87
  162. package/src/lib/extensions/HtmlExtractionMethods.ts +0 -78
  163. package/src/lib/extensions/HtmlRawTagDataConsts.ts +0 -3
  164. package/src/lib/extensions/ImageMethods.ts +0 -37
  165. package/src/lib/extensions/InterfaceBlock.ts +0 -5
  166. package/src/lib/extensions/TableBuilder.ts +0 -50
  167. package/src/lib/extensions/TableMethods.ts +0 -175
  168. package/src/lib/extensions/TextMethods.ts +0 -51
  169. package/src/lib/extensions/TextSimpleMethods.ts +0 -120
  170. package/src/lib/extensions/VideoMethods.ts +0 -31
  171. package/src/lib/extensions/XmlExtensions.ts +0 -26
  172. package/src/lib/extensions/index.ts +0 -12
  173. package/src/lib/index.ts +0 -119
  174. package/src/lib/pipes/RichTextToHtmlPipe.ts +0 -25
  175. package/src/lib/pipes/TagToSpanPipe.ts +0 -10
  176. package/src/lib/pipes/ToHtmlBodyTagsPipe.ts +0 -14
  177. package/src/lib/pipes/to-preview.pipe.ts +0 -12
  178. package/src/lib/services/file-upload.service.ts +0 -56
  179. package/src/lib/services/files-query.service.ts +0 -72
  180. package/src/test.ts +0 -28
  181. package/tsconfig.lib.json +0 -20
  182. package/tsconfig.lib.prod.json +0 -10
  183. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,30 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { FileNameAndIdModel, FilesQueryService } from '../../services/files-query.service';
4
+ import * as i0 from "@angular/core";
5
+ export interface SearchQuestionsFormData {
6
+ q: string;
7
+ }
8
+ export declare class FileIdSelectComponent implements OnInit, OnChanges {
9
+ private fb;
10
+ private _fileService;
11
+ q: string;
12
+ labelText: string;
13
+ fileId: number;
14
+ loading: boolean;
15
+ form: FormGroup;
16
+ files: FileNameAndIdModel[];
17
+ onFileIdChanged: EventEmitter<number>;
18
+ constructor(fb: FormBuilder, _fileService: FilesQueryService);
19
+ onModelChanged(fileId: number): void;
20
+ getSrc(fileId: number): string;
21
+ ngOnInit(): void;
22
+ loadFiles(): void;
23
+ onSearchChanged(q: {
24
+ term: string;
25
+ items: object[];
26
+ }): void;
27
+ ngOnChanges(changes: SimpleChanges): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileIdSelectComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileIdSelectComponent, "croco-html-file-id-select", never, { "labelText": "labelText"; "fileId": "fileId"; }, { "fileId": "fileId"; "onFileIdChanged": "onFileIdChanged"; }, never, never>;
30
+ }
@@ -0,0 +1,5 @@
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';
@@ -0,0 +1,24 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { BaseApiResponseWithFilesIds, FileUploadService } from '../../services/file-upload.service';
3
+ import * as i0 from "@angular/core";
4
+ export interface FilePostingStarted {
5
+ filesCount: number;
6
+ createLocalCopiesNow: boolean;
7
+ }
8
+ export declare class UploadFilesBtnComponent implements OnInit {
9
+ private _fileUploadService;
10
+ constructor(_fileUploadService: FileUploadService);
11
+ private fileInput;
12
+ extAccepts: string;
13
+ isMultiple: boolean;
14
+ btnText: string;
15
+ createLocalCopiesNow: boolean;
16
+ hidden: boolean;
17
+ postFilesStarted: EventEmitter<FilePostingStarted>;
18
+ onFilesUploaded: EventEmitter<BaseApiResponseWithFilesIds>;
19
+ handleFileInput(files: FileList): void;
20
+ clickFileInput(): void;
21
+ ngOnInit(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilesBtnComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadFilesBtnComponent, "app-upload-files-btn", never, { "extAccepts": "extAccepts"; "isMultiple": "isMultiple"; "btnText": "btnText"; "createLocalCopiesNow": "createLocalCopiesNow"; "hidden": "hidden"; }, { "postFilesStarted": "postFilesStarted"; "onFilesUploaded": "onFilesUploaded"; }, never, never>;
24
+ }
@@ -1,8 +1,8 @@
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'
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';
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
4
+ import { ExternalVideoTagData } from '../../../extensions/VideoMethods';
5
+ import * as i0 from "@angular/core";
6
+ export declare class XmlTagExternalVideoComponent implements OnInit {
7
+ private _domSanitizer;
8
+ data: InterfaceBlock;
9
+ tagData: ExternalVideoTagData;
10
+ widgetUrl: SafeResourceUrl;
11
+ getYouTubeId(youtubeLink: string): string;
12
+ getWidgetLink(youtubeLink: string): string;
13
+ constructor(_domSanitizer: DomSanitizer);
14
+ ngOnInit(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagExternalVideoComponent, "croco-html-xml-tag-external-video", never, { "data": "data"; "tagData": "tagData"; }, {}, never, never>;
17
+ }
@@ -0,0 +1,10 @@
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": "item"; }, {}, never, never>;
10
+ }
@@ -0,0 +1,10 @@
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": "item"; }, {}, never, never>;
10
+ }
@@ -0,0 +1,7 @@
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": "html"; }, {}, never, never>;
7
+ }
@@ -0,0 +1,10 @@
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": "richTextData"; }, {}, never, never>;
10
+ }
@@ -0,0 +1,7 @@
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": "displayedColumns"; "data": "data"; }, {}, never, never>;
7
+ }
@@ -0,0 +1,10 @@
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": "item"; }, {}, never, never>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
+ import * as i0 from "@angular/core";
3
+ export declare class XmlTagViewComponent {
4
+ data: InterfaceBlock[];
5
+ constructor();
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": "data"; }, {}, never, never>;
8
+ }
@@ -0,0 +1,60 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/upload-files-btn/upload-files-btn.component";
3
+ import * as i2 from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
4
+ import * as i3 from "./components/xml-tags/xml-tag-view/xml-tag-view.component";
5
+ import * as i4 from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
6
+ import * as i5 from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
7
+ import * as i6 from "./components/xml-tags/xml-tag-text-view/xml-tag-text-view.component";
8
+ import * as i7 from "./components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component";
9
+ import * as i8 from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
10
+ import * as i9 from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
11
+ import * as i10 from "./components/editor/main-editor/main-editor.component";
12
+ import * as i11 from "./components/file-id-select/file-id-select.component";
13
+ import * as i12 from "./components/editor/text-editor/text-editor.component";
14
+ import * as i13 from "./components/editor/external-video-block/external-video-block.component";
15
+ import * as i14 from "./components/editor/image-editor/image-editor.component";
16
+ import * as i15 from "./components/editor/main-editor-block/main-editor-block.component";
17
+ import * as i16 from "./components/editor/visual-editor/visual-editor.component";
18
+ import * as i17 from "./components/add-files-btn/add-files-btn.component";
19
+ import * as i18 from "./components/editor/html-raw-editor/html-raw-editor.component";
20
+ import * as i19 from "./pipes/RichTextToHtmlPipe";
21
+ import * as i20 from "./pipes/TagToSpanPipe";
22
+ import * as i21 from "./pipes/to-preview.pipe";
23
+ import * as i22 from "./pipes/ToHtmlBodyTagsPipe";
24
+ import * as i23 from "@angular/common";
25
+ import * as i24 from "@angular/forms";
26
+ import * as i25 from "@ng-select/ng-select";
27
+ import * as i26 from "@angular/material/badge";
28
+ import * as i27 from "@angular/material/table";
29
+ import * as i28 from "@angular/material/expansion";
30
+ import * as i29 from "@angular/material/form-field";
31
+ import * as i30 from "@angular/material/snack-bar";
32
+ import * as i31 from "@angular/material/progress-bar";
33
+ import * as i32 from "@angular/material/progress-spinner";
34
+ import * as i33 from "@angular/material/tabs";
35
+ import * as i34 from "@angular/material/menu";
36
+ import * as i35 from "@angular/material/card";
37
+ import * as i36 from "@angular/material/select";
38
+ import * as i37 from "@angular/material/tooltip";
39
+ import * as i38 from "@angular/material/checkbox";
40
+ import * as i39 from "@angular/material/chips";
41
+ import * as i40 from "@angular/material/list";
42
+ import * as i41 from "@angular/material/button";
43
+ import * as i42 from "@angular/material/input";
44
+ import * as i43 from "@angular/material/dialog";
45
+ import * as i44 from "@angular/material/paginator";
46
+ import * as i45 from "@angular/material/datepicker";
47
+ import * as i46 from "@angular/material/grid-list";
48
+ import * as i47 from "@angular/material/slide-toggle";
49
+ import * as i48 from "@angular/material/tree";
50
+ import * as i49 from "@angular/material/core";
51
+ import * as i50 from "@angular/material/autocomplete";
52
+ import * as i51 from "@angular/material/sidenav";
53
+ import * as i52 from "@angular/material/icon";
54
+ import * as i53 from "@angular/cdk/drag-drop";
55
+ import * as i54 from "@angular/material/button-toggle";
56
+ export declare class CrocoHtmlModule {
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
58
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.UploadFilesBtnComponent, typeof i2.XmlTagTableViewComponent, typeof i3.XmlTagViewComponent, typeof i4.XmlTagRichTextViewComponent, typeof i5.XmlTagHtmlViewComponent, typeof i6.XmlTagTextViewComponent, typeof i7.XmlTagHeaderTextViewComponent, typeof i8.XmlTagHeaderInnerTextViewComponent, typeof i9.XmlTagExternalVideoComponent, typeof i10.MainEditorComponent, typeof i11.FileIdSelectComponent, typeof i12.TextEditorComponent, typeof i13.ExternalVideoBlockComponent, typeof i14.ImageEditorComponent, typeof i15.MainEditorBlockComponent, typeof i16.VisualEditorComponent, typeof i17.AddFilesBtnComponent, typeof i18.HtmlRawEditorComponent, typeof i19.RichTextToHtmlPipe, typeof i20.TagToSpanPipe, typeof i21.ToPreviewPipe, typeof i22.ToHtmlBodyTagsPipe], [typeof i23.CommonModule, typeof i24.FormsModule, typeof i24.ReactiveFormsModule, typeof i25.NgSelectModule, typeof i26.MatBadgeModule, typeof i27.MatTableModule, typeof i28.MatExpansionModule, typeof i29.MatFormFieldModule, typeof i30.MatSnackBarModule, typeof i31.MatProgressBarModule, typeof i32.MatProgressSpinnerModule, typeof i33.MatTabsModule, typeof i34.MatMenuModule, typeof i35.MatCardModule, typeof i36.MatSelectModule, typeof i37.MatTooltipModule, typeof i38.MatCheckboxModule, typeof i39.MatChipsModule, typeof i40.MatListModule, typeof i41.MatButtonModule, typeof i42.MatInputModule, typeof i43.MatDialogModule, typeof i44.MatPaginatorModule, typeof i45.MatDatepickerModule, typeof i46.MatGridListModule, typeof i47.MatSlideToggleModule, typeof i48.MatTreeModule, typeof i49.MatNativeDateModule, typeof i50.MatAutocompleteModule, typeof i51.MatSidenavModule, typeof i52.MatIconModule, typeof i53.DragDropModule, typeof i54.MatButtonToggleModule], [typeof i1.UploadFilesBtnComponent, typeof i2.XmlTagTableViewComponent, typeof i3.XmlTagViewComponent, typeof i4.XmlTagRichTextViewComponent, typeof i5.XmlTagHtmlViewComponent, typeof i6.XmlTagTextViewComponent, typeof i7.XmlTagHeaderTextViewComponent, typeof i8.XmlTagHeaderInnerTextViewComponent, typeof i9.XmlTagExternalVideoComponent, typeof i10.MainEditorComponent, typeof i11.FileIdSelectComponent, typeof i12.TextEditorComponent, typeof i13.ExternalVideoBlockComponent, typeof i14.ImageEditorComponent, typeof i15.MainEditorBlockComponent, typeof i16.VisualEditorComponent, typeof i17.AddFilesBtnComponent, typeof i18.HtmlRawEditorComponent, typeof i19.RichTextToHtmlPipe, typeof i20.TagToSpanPipe, typeof i21.ToPreviewPipe, typeof i22.ToHtmlBodyTagsPipe]>;
59
+ static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
60
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseApiResponse, TableData, TableRowData } from './TableMethods';
2
+ export interface AngularMaterialTableData {
3
+ displayedColumns: string[];
4
+ data: object[];
5
+ }
6
+ export declare class AngularMaterialTableMethods {
7
+ static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
8
+ static checkHeaders(tableData: TableData): BaseApiResponse;
9
+ static checkAngularMaterialTableData(tableData: TableData, checkHeaders?: boolean): BaseApiResponse;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { HtmlBodyTag } from "../models/models";
2
+ import { InterfaceBlock } from "./InterfaceBlock";
3
+ export declare class BodyTagsExtensions {
4
+ static getDescription(tagName: string): string;
5
+ static toHtml(bodyTags: HtmlBodyTag[]): string;
6
+ static imageTagToHtml(imageTag: HtmlBodyTag): string;
7
+ static getBodyTags(html: string): HtmlBodyTag[];
8
+ static sanitizeInnerHtml(html: string): string;
9
+ static toBodyTag(data: InterfaceBlock): HtmlBodyTag;
10
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,69 @@
1
+ import { InterfaceBlock } from "./InterfaceBlock";
2
+ import { GenericTextTag } from "./TextSimpleMethods";
3
+ export declare class HtmlExtractionMethods {
4
+ static ExtractHeaderTag(elem: HTMLElement, tagName: string): GenericTextTag;
5
+ static Extractors: {
6
+ [x: string]: ((elem: HTMLElement) => import("./ImageMethods").FileImageTag) | ((elem: HTMLElement) => {
7
+ type: string;
8
+ data: import("./TableMethods").TableData;
9
+ validationResult: import("./TableMethods").BaseApiResponse;
10
+ bootstrapHtml: string;
11
+ } | {
12
+ angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
13
+ type: string;
14
+ data: import("./TableMethods").TableData;
15
+ validationResult: import("./TableMethods").BaseApiResponse;
16
+ bootstrapHtml: string;
17
+ } | {
18
+ angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
19
+ html: string;
20
+ angularMaterialTableData: import("croco-html").AngularMaterialTableData;
21
+ type: string;
22
+ data: import("./TableMethods").TableData;
23
+ validationResult: import("./TableMethods").BaseApiResponse;
24
+ bootstrapHtml: string;
25
+ }) | ((elem: HTMLElement) => import("./TextMethods").RichTextData) | ((elem: HTMLElement) => {
26
+ type: string;
27
+ data: {
28
+ innerHTML: string;
29
+ };
30
+ }) | ((elem: HTMLElement) => GenericTextTag) | ((elem: HTMLElement) => import("./VideoMethods").ExternalVideoTag);
31
+ TEXT: (elem: HTMLElement) => import("./TextSimpleMethods").SimpleTextTag;
32
+ "FILE-IMAGE": (elem: HTMLElement) => import("./ImageMethods").FileImageTag;
33
+ TABLE: (elem: HTMLElement) => {
34
+ type: string;
35
+ data: import("./TableMethods").TableData;
36
+ validationResult: import("./TableMethods").BaseApiResponse;
37
+ bootstrapHtml: string;
38
+ } | {
39
+ angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
40
+ type: string;
41
+ data: import("./TableMethods").TableData;
42
+ validationResult: import("./TableMethods").BaseApiResponse;
43
+ bootstrapHtml: string;
44
+ } | {
45
+ angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
46
+ html: string;
47
+ angularMaterialTableData: import("croco-html").AngularMaterialTableData;
48
+ type: string;
49
+ data: import("./TableMethods").TableData;
50
+ validationResult: import("./TableMethods").BaseApiResponse;
51
+ bootstrapHtml: string;
52
+ };
53
+ "RICH-TEXT": (elem: HTMLElement) => import("./TextMethods").RichTextData;
54
+ "HTML-RAW": (elem: HTMLElement) => {
55
+ type: string;
56
+ data: {
57
+ innerHTML: string;
58
+ };
59
+ };
60
+ H1: (elem: HTMLElement) => GenericTextTag;
61
+ H2: (elem: HTMLElement) => GenericTextTag;
62
+ H3: (elem: HTMLElement) => GenericTextTag;
63
+ H4: (elem: HTMLElement) => GenericTextTag;
64
+ H5: (elem: HTMLElement) => GenericTextTag;
65
+ H6: (elem: HTMLElement) => GenericTextTag;
66
+ };
67
+ static transformHtmlElementToBlocks(element: HTMLElement): InterfaceBlock[];
68
+ static transformHtmlStringToBlocks(value: string): InterfaceBlock[];
69
+ }
@@ -0,0 +1,3 @@
1
+ export declare class HtmlRawTagDataConsts {
2
+ static TagName: string;
3
+ }
@@ -0,0 +1,17 @@
1
+ export declare class FileImageTagDataConsts {
2
+ static TagName: string;
3
+ static FileIdAttrName: string;
4
+ }
5
+ export interface FileImageTag {
6
+ type: string;
7
+ data: FileImageTagData;
8
+ }
9
+ export interface FileImageTagData {
10
+ src: string;
11
+ fileId: number;
12
+ }
13
+ export declare class ImageMethods {
14
+ static buildUrl(fileId: number): string;
15
+ static buildSmallUrl(fileId: number): string;
16
+ static ExtractImage(elem: HTMLElement): FileImageTag;
17
+ }
@@ -0,0 +1,4 @@
1
+ export interface InterfaceBlock {
2
+ type: string;
3
+ data: any;
4
+ }
@@ -0,0 +1,5 @@
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
+ }
@@ -0,0 +1,58 @@
1
+ import { InterfaceBlock } from "./InterfaceBlock";
2
+ export interface BaseApiResponse {
3
+ isSucceeded: boolean;
4
+ message: string;
5
+ }
6
+ export interface TableHeaderData {
7
+ type: "table-header";
8
+ columns: string[];
9
+ }
10
+ export interface TableRowColumnData {
11
+ type: "table-row-column-data";
12
+ data: {
13
+ text: string;
14
+ children: InterfaceBlock[];
15
+ };
16
+ }
17
+ export interface TableRowData {
18
+ type: "table-row-column";
19
+ columns: TableRowColumnData[];
20
+ }
21
+ export interface TableData {
22
+ header: TableHeaderData;
23
+ rows: TableRowData[];
24
+ }
25
+ export interface TableTagData {
26
+ type: "table";
27
+ data: TableData;
28
+ }
29
+ export declare class TableTypes {
30
+ static readonly TableRowColumnData = "table-row-column-data";
31
+ static readonly Table = "table";
32
+ static readonly TableRowColumn = "table-row-column";
33
+ }
34
+ export declare class TableMethods {
35
+ static getTableFromHtmlTag(tableTag: HTMLTableElement): {
36
+ type: string;
37
+ data: TableData;
38
+ validationResult: BaseApiResponse;
39
+ bootstrapHtml: string;
40
+ } | {
41
+ angularMaterialTableDataCheck: BaseApiResponse;
42
+ type: string;
43
+ data: TableData;
44
+ validationResult: BaseApiResponse;
45
+ bootstrapHtml: string;
46
+ } | {
47
+ angularMaterialTableDataCheck: BaseApiResponse;
48
+ html: string;
49
+ angularMaterialTableData: import("./AngularMaterialTableMethods").AngularMaterialTableData;
50
+ type: string;
51
+ data: TableData;
52
+ validationResult: BaseApiResponse;
53
+ bootstrapHtml: string;
54
+ };
55
+ static checkTable(tableData: TableData): BaseApiResponse;
56
+ static getHeader(tableTag: HTMLTableElement): TableHeaderData;
57
+ static getTableRows(tableTag: HTMLTableElement): Array<TableRowData>;
58
+ }
@@ -0,0 +1,19 @@
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
+ export declare class TextMethods {
17
+ static textTags: string[];
18
+ static ExtractRichTextData(elem: HTMLElement): RichTextData;
19
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseApiResponse } from "./TableMethods";
2
+ export declare const TextTag = "text";
3
+ export interface SimpleTextTag {
4
+ type: "text";
5
+ data: SimpleTextTagData;
6
+ }
7
+ export interface GenericTextTag {
8
+ type: string;
9
+ data: SimpleTextTagData;
10
+ }
11
+ export interface SimpleTextTagData {
12
+ textTagName: string;
13
+ text: string;
14
+ html: string;
15
+ horizontalAlignment: "left" | "right" | "center";
16
+ validationResult: BaseApiResponse;
17
+ }
18
+ export declare class TextSimpleMethods {
19
+ static supportedTags: string[];
20
+ static ExtractTextTag(elem: HTMLElement): SimpleTextTag;
21
+ static ValidateTextHtml(html: string): BaseApiResponse;
22
+ static ValidateTag(element: Element): BaseApiResponse;
23
+ }
@@ -0,0 +1,19 @@
1
+ export declare class ExternalVideoTagDataConsts {
2
+ static TagName: string;
3
+ static VideoTypeAttrName: string;
4
+ static LinkAttrName: string;
5
+ }
6
+ export declare class ExternalVideoSupportedTypes {
7
+ static Youtube: string;
8
+ }
9
+ export interface ExternalVideoTag {
10
+ type: string;
11
+ data: ExternalVideoTagData;
12
+ }
13
+ export interface ExternalVideoTagData {
14
+ type: string;
15
+ link: string;
16
+ }
17
+ export declare class VideoMethods {
18
+ static ExtractExternalVideoTag(elem: HTMLElement): ExternalVideoTag;
19
+ }
@@ -0,0 +1,5 @@
1
+ export declare class XmlExtensions {
2
+ static formatXml(xml: string, tab?: string): string;
3
+ static tagsToLower(xml: string): string;
4
+ static replaceTagToLower(xml: string, tag: string): string;
5
+ }
@@ -0,0 +1,10 @@
1
+ export * from './AngularMaterialTableMethods';
2
+ export * from './BodyTagsExtensions';
3
+ export * from './BootstrapTableMethods';
4
+ export * from './ImageMethods';
5
+ export * from './TableBuilder';
6
+ export * from './TableMethods';
7
+ export * from './TextMethods';
8
+ export * from './TextSimpleMethods';
9
+ export * from './VideoMethods';
10
+ export * from './XmlExtensions';
package/lib/index.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { MainEditorBlockComponent } from "./components/editor/main-editor-block/main-editor-block.component";
2
+ import { MainEditorComponent } from "./components/editor/main-editor/main-editor.component";
3
+ import { FileIdSelectComponent } from "./components/file-id-select/file-id-select.component";
4
+ import { XmlTagHeaderInnerTextViewComponent } from "./components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component";
5
+ import { XmlTagHtmlViewComponent } from "./components/xml-tags/xml-tag-html-view/xml-tag-html-view.component";
6
+ import { XmlTagRichTextViewComponent } from "./components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component";
7
+ import { XmlTagTableViewComponent } from "./components/xml-tags/xml-tag-table-view/xml-tag-table-view.component";
8
+ import { XmlTagViewComponent } from "./components/xml-tags/xml-tag-view/xml-tag-view.component";
9
+ import { VisualEditorComponent } from './components/editor/visual-editor/visual-editor.component';
10
+ import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
11
+ import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
12
+ import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
13
+ import { MatNativeDateModule } from '@angular/material/core';
14
+ import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewPipe } from "./pipes";
15
+ import { UploadFilesBtnComponent } from "./components";
16
+ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent)[];
17
+ export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent)[];
18
+ export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe)[];
19
+ export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe)[];
20
+ export declare const MaterialModules: (typeof MatNativeDateModule)[];
@@ -2,10 +2,9 @@ export interface TagItem {
2
2
  tag: string;
3
3
  displayValue: string;
4
4
  }
5
-
6
5
  export interface HtmlBodyTag {
7
6
  tagDescription: TagItem;
8
7
  innerHtml: string;
9
8
  attributes: Object;
10
9
  presentOrEdit: boolean;
11
- }
10
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { RichTextData } from "../extensions/TextMethods";
3
+ import * as i0 from "@angular/core";
4
+ export declare class RichTextToHtmlPipe implements PipeTransform {
5
+ transform(value: RichTextData): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextToHtmlPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<RichTextToHtmlPipe, "richTextToHtml">;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TagToSpanPipe implements PipeTransform {
4
+ transform(value: string[]): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagToSpanPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan">;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { HtmlBodyTag } from '../models/models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ToHtmlBodyTagsPipe implements PipeTransform {
5
+ transform(value: string): HtmlBodyTag[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags">;
8
+ }
File without changes
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { InterfaceBlock } from "../extensions/InterfaceBlock";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ToPreviewPipe implements PipeTransform {
5
+ transform(value: string): InterfaceBlock[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview">;
8
+ }
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ export interface BaseApiResponse {
5
+ isSucceeded: boolean;
6
+ message: string;
7
+ }
8
+ export interface GenericBaseApiResponse<T> extends BaseApiResponse {
9
+ responseObject: T;
10
+ }
11
+ export interface BaseApiResponseWithFilesIds extends BaseApiResponse {
12
+ responseObject: number[];
13
+ }
14
+ export declare class FileUploadService {
15
+ private _httpClient;
16
+ private baseUrl;
17
+ constructor(_httpClient: HttpClient, baseUrl: string);
18
+ postFile(file: File, createLocalCopiesNow?: boolean): Observable<BaseApiResponseWithFilesIds>;
19
+ postFiles(files: FileList, createLocalCopiesNow?: boolean): Observable<BaseApiResponseWithFilesIds>;
20
+ postFilesInner(formData: FormData, createLocalCopiesNow?: boolean): Observable<BaseApiResponseWithFilesIds>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
23
+ }