croco-html 4.0.2 → 4.1.1

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 (89) hide show
  1. package/fesm2022/croco-html.mjs +738 -701
  2. package/fesm2022/croco-html.mjs.map +1 -1
  3. package/index.d.ts +3 -954
  4. package/lib/components/add-files-btn/add-files-btn.component.d.ts +20 -0
  5. package/lib/components/editor/button-editor/button-editor.component.d.ts +13 -0
  6. package/lib/components/editor/custom-widget-editor/custom-widget-editor.component.d.ts +13 -0
  7. package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts +13 -0
  8. package/lib/components/editor/external-video-editor/embedded-video/code-video.component.d.ts +14 -0
  9. package/lib/components/editor/external-video-editor/external-video-editor.component.d.ts +17 -0
  10. package/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.d.ts +10 -0
  11. package/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.d.ts +10 -0
  12. package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts +17 -0
  13. package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +15 -0
  14. package/lib/components/editor/image-editor/image-editor.component.d.ts +34 -0
  15. package/lib/components/editor/index.d.ts +8 -0
  16. package/lib/components/editor/main-editor/main-editor.component.d.ts +34 -0
  17. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +14 -0
  18. package/lib/components/editor/text-editor/text-editor.component.d.ts +10 -0
  19. package/lib/components/editor/visual-editor/DefaultAligments.d.ts +5 -0
  20. package/lib/components/editor/visual-editor/DefaultTags.d.ts +6 -0
  21. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +69 -0
  22. package/lib/components/error-banner/error-banner.component.d.ts +6 -0
  23. package/lib/components/file-id-select/file-id-select.component.d.ts +38 -0
  24. package/lib/components/html-view/html-view.component.d.ts +6 -0
  25. package/lib/components/index.d.ts +6 -0
  26. package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +26 -0
  27. package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +22 -0
  28. package/lib/components/xml-tags/html-raw-view/html-raw-view.component.d.ts +12 -0
  29. package/lib/components/xml-tags/index.d.ts +10 -0
  30. package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +14 -0
  31. package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +19 -0
  32. package/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts +14 -0
  33. package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +11 -0
  34. package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +7 -0
  35. package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +7 -0
  36. package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +7 -0
  37. package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +7 -0
  38. package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +7 -0
  39. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +8 -0
  40. package/lib/consts/index.d.ts +1 -0
  41. package/lib/croco-html.module.d.ts +68 -0
  42. package/lib/extensions/AngularMaterialTableMethods.d.ts +7 -0
  43. package/lib/extensions/BodyTagsExtensions.d.ts +14 -0
  44. package/lib/extensions/BootstrapTableMethods.d.ts +9 -0
  45. package/lib/extensions/HtmlExtractionMethods.d.ts +28 -0
  46. package/lib/extensions/HtmlRawTagDataConsts.d.ts +10 -0
  47. package/lib/extensions/ImageMethods.d.ts +23 -0
  48. package/lib/extensions/InterfaceBlock.d.ts +10 -0
  49. package/lib/extensions/TableBuilder.d.ts +5 -0
  50. package/lib/extensions/TableMethods.d.ts +60 -0
  51. package/lib/extensions/Tags.d.ts +16 -0
  52. package/lib/extensions/TextMethods.d.ts +11 -0
  53. package/lib/extensions/TextSimpleMethods.d.ts +19 -0
  54. package/lib/extensions/VideoMethods.d.ts +26 -0
  55. package/lib/extensions/XmlExtensions.d.ts +5 -0
  56. package/lib/extensions/index.d.ts +10 -0
  57. package/lib/index.d.ts +24 -0
  58. package/lib/models/image-models.d.ts +19 -0
  59. package/lib/models/index.d.ts +2 -0
  60. package/lib/models/models.d.ts +18 -0
  61. package/lib/options/index.d.ts +46 -0
  62. package/lib/pipes/TagToSpanPipe.d.ts +7 -0
  63. package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +11 -0
  64. package/lib/pipes/ToPreviewHtmlPipe.d.ts +11 -0
  65. package/lib/pipes/index.d.ts +4 -0
  66. package/lib/pipes/sprite-icon-path.pipe.d.ts +8 -0
  67. package/lib/pipes/to-preview.pipe.d.ts +11 -0
  68. package/lib/services/CrocoHtmlFileOptionsService.d.ts +10 -0
  69. package/lib/services/HtmlViewController.d.ts +11 -0
  70. package/lib/services/PrivateFileUploadService.d.ts +26 -0
  71. package/lib/services/PrivateFilesQueryService.d.ts +21 -0
  72. package/lib/services/PublicFileUploadService.d.ts +26 -0
  73. package/lib/services/PublicFilesQueryService.d.ts +12 -0
  74. package/lib/services/blob-create.service.d.ts +10 -0
  75. package/lib/services/file-models.d.ts +38 -0
  76. package/lib/services/index.d.ts +3 -0
  77. package/lib/services/screen-width.service.d.ts +10 -0
  78. package/lib/tag-services/ButtonTagService.d.ts +27 -0
  79. package/lib/tag-services/CustomWidgetTagService.d.ts +33 -0
  80. package/lib/tag-services/DownloadButtonTagService.d.ts +25 -0
  81. package/lib/tag-services/ExternalVideoTagService.d.ts +12 -0
  82. package/lib/tag-services/FileImageTagService.d.ts +12 -0
  83. package/lib/tag-services/HtmlRawTagService.d.ts +12 -0
  84. package/lib/tag-services/IMarkUpTagService.d.ts +35 -0
  85. package/lib/tag-services/TextTagHtmlMarkupTagService.d.ts +21 -0
  86. package/lib/tag-services/index.d.ts +8 -0
  87. package/package.json +1 -1
  88. package/public-api.d.ts +8 -0
  89. package/sprites-ids.type.d.ts +1 -0
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { HtmlBodyTag } from '../../models/models';
3
+ import { FilePostingStarted, UploadFilesBtnComponent } from '../upload-files-btn/upload-files-btn.component';
4
+ import { PublicFilesUploadResponse } from '../../services/PublicFileUploadService';
5
+ import { PrivateFilesCreatedResult } from "../../services/PrivateFileUploadService";
6
+ import * as i0 from "@angular/core";
7
+ export declare class AddFilesBtnComponent {
8
+ postFilesStarted: EventEmitter<FilePostingStarted>;
9
+ fakeBtn: UploadFilesBtnComponent;
10
+ fileIds: number[];
11
+ constructor();
12
+ filesTagsReady: EventEmitter<HtmlBodyTag[]>;
13
+ postFilesStartedEventHandler(data: FilePostingStarted): void;
14
+ filesUploadedPublicHandler(data: PublicFilesUploadResponse): void;
15
+ filesUploadedPrivateHandler(data: PrivateFilesCreatedResult): void;
16
+ private buildFileTags;
17
+ handleClick(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddFilesBtnComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never, true, never>;
20
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { HtmlBodyTag } from "../../../models/models";
3
+ import { ButtonTagData } from '../../../tag-services/ButtonTagService';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ButtonEditorComponent {
6
+ tag: HtmlBodyTag;
7
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
8
+ tagData: ButtonTagData;
9
+ ngOnInit(): void;
10
+ linkChanged(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonEditorComponent, "croco-html-button-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { HtmlBodyTag } from "../../../models/models";
3
+ import { CustomWidgetTagData } from '../../../tag-services/CustomWidgetTagService';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CustomWidgetEditorComponent implements OnInit {
6
+ tag: HtmlBodyTag;
7
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
8
+ tagData: CustomWidgetTagData;
9
+ ngOnInit(): void;
10
+ dataChanged(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetEditorComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetEditorComponent, "croco-html-custom-widget-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { HtmlBodyTag } from "../../../models/models";
3
+ import { DownloadButtonTagData } from '../../../tag-services/DownloadButtonTagService';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DownloadFileButtonEditorComponent {
6
+ tag: HtmlBodyTag;
7
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
8
+ tagData: DownloadButtonTagData;
9
+ ngOnInit(): void;
10
+ linkChanged(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileButtonEditorComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileButtonEditorComponent, "croco-html-download-file-button-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,14 @@
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 CodeVideoComponent implements OnChanges {
5
+ private readonly _sanitizer;
6
+ code: string;
7
+ set _useResponsiveWrapper(useResponsiveWrapper: boolean);
8
+ useResponsiveWrapper: boolean;
9
+ safeHtml: SafeHtml;
10
+ constructor(_sanitizer: DomSanitizer);
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CodeVideoComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CodeVideoComponent, "code-video", never, { "code": { "alias": "code"; "required": false; }; "_useResponsiveWrapper": { "alias": "_useResponsiveWrapper"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ExternalVideoTagData, ExternalVideoSupportedTypes } from '../../../extensions';
3
+ import { HtmlBodyTag } from '../../../models/models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ExternalVideoEditorComponent implements OnInit {
6
+ tag: HtmlBodyTag;
7
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
8
+ protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
9
+ tagData: ExternalVideoTagData;
10
+ linkText: string;
11
+ ngOnInit(): void;
12
+ linkChanged(): void;
13
+ onCheck(checked: boolean): void;
14
+ createLinkByIFrame(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoEditorComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoEditorComponent, "croco-html-external-video-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
17
+ }
@@ -0,0 +1,10 @@
1
+ import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
2
+ import * as i0 from "@angular/core";
3
+ export declare class VkVideoPlayerComponent {
4
+ private sanitizer;
5
+ set link(link: string);
6
+ safeUrl: SafeResourceUrl;
7
+ constructor(sanitizer: DomSanitizer);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<VkVideoPlayerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<VkVideoPlayerComponent, "vk-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
2
+ import * as i0 from "@angular/core";
3
+ export declare class YoutubeVideoPlayerComponent {
4
+ private sanitizer;
5
+ set link(link: string);
6
+ safeUrl: SafeResourceUrl;
7
+ constructor(sanitizer: DomSanitizer);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<YoutubeVideoPlayerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<YoutubeVideoPlayerComponent, "youtube-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from "@angular/forms";
3
+ import { MatDialogRef } from "@angular/material/dialog";
4
+ import { CrocoHtmlFileOptionsService } from "../../../services/CrocoHtmlFileOptionsService";
5
+ import * as i0 from "@angular/core";
6
+ export declare class HtmlEditorSettingsModalComponent implements OnInit {
7
+ private readonly fb;
8
+ readonly dialogRef: MatDialogRef<HtmlEditorSettingsModalComponent>;
9
+ private readonly _htmlSettingsService;
10
+ form: FormGroup;
11
+ constructor(fb: FormBuilder, dialogRef: MatDialogRef<HtmlEditorSettingsModalComponent>, _htmlSettingsService: CrocoHtmlFileOptionsService);
12
+ ngOnInit(): void;
13
+ cancel(): void;
14
+ setSettings(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlEditorSettingsModalComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<HtmlEditorSettingsModalComponent, "croco-html-html-editor-settings-modal", never, {}, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { HtmlBodyTag } from '../../../models/models';
3
+ import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
4
+ import * as i0 from "@angular/core";
5
+ export declare class HtmlRawEditorComponent implements OnChanges {
6
+ private readonly _sanitizer;
7
+ tag: HtmlBodyTag;
8
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
9
+ safeHtml: SafeHtml;
10
+ constructor(_sanitizer: DomSanitizer);
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ onSafeHtmlChange(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
15
+ }
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { HtmlBodyTag } from '../../../models/models';
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 ImageEditorComponent implements OnInit, OnDestroy {
8
+ private readonly _options;
9
+ private readonly screenWidthService;
10
+ hasImageError: boolean;
11
+ searchOrEdit: string;
12
+ requests: IMediaRequest[];
13
+ imageMaxHeight: number;
14
+ imageMaxWidth: number;
15
+ isShowMediaRequest: boolean;
16
+ private unsubscribe;
17
+ tag: HtmlBodyTag;
18
+ onErrorHandler(): void;
19
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
20
+ get fileId(): string;
21
+ set fileId(value: string);
22
+ constructor(_options: CrocoHtmlOptions, screenWidthService: ScreenWidthService);
23
+ getSrc(): string;
24
+ hasFileId(): boolean;
25
+ onFileIdChanged(fileId: string): void;
26
+ removeImageError(): void;
27
+ ngOnInit(): void;
28
+ requestChanged(): void;
29
+ addNewMediaRequest(): void;
30
+ deleteMediaRequest(index: number): void;
31
+ ngOnDestroy(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
34
+ }
@@ -0,0 +1,8 @@
1
+ export * from './external-video-editor/external-video-editor.component';
2
+ export * from './html-raw-editor/html-raw-editor.component';
3
+ export * from './image-editor/image-editor.component';
4
+ export * from './main-editor/main-editor.component';
5
+ export * from './main-editor-block/main-editor-block.component';
6
+ export * from './text-editor/text-editor.component';
7
+ export * from './visual-editor/visual-editor.component';
8
+ export * from './custom-widget-editor/custom-widget-editor.component';
@@ -0,0 +1,34 @@
1
+ import { AfterContentChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { MatSnackBar } from '@angular/material/snack-bar';
3
+ import { ClipboardService } from 'ngx-clipboard';
4
+ import { VisualEditorComponent } from '../visual-editor/visual-editor.component';
5
+ import { MatDialog } from "@angular/material/dialog";
6
+ import { CrocoHtmlOptions } from "../../../options";
7
+ import { CrocoHtmlFileOptionsService } from "../../../services/CrocoHtmlFileOptionsService";
8
+ import * as i0 from "@angular/core";
9
+ export declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
10
+ private readonly _clipboardService;
11
+ private readonly _snackBar;
12
+ private readonly _cdref;
13
+ private readonly _dialog;
14
+ private readonly _htmlSettingsService;
15
+ visualEditorRendered: boolean;
16
+ visualEditor: VisualEditorComponent;
17
+ showMarkUp: boolean;
18
+ useHtmlRaw: boolean;
19
+ html: string;
20
+ onHtmlChanged: EventEmitter<string>;
21
+ showSettingsButton: boolean;
22
+ constructor(_clipboardService: ClipboardService, _snackBar: MatSnackBar, _cdref: ChangeDetectorRef, _dialog: MatDialog, _htmlSettingsService: CrocoHtmlFileOptionsService, options: CrocoHtmlOptions);
23
+ ngAfterViewInit(): void;
24
+ ngAfterContentChecked(): void;
25
+ visualEditorRenderedHandler(): void;
26
+ onHtmlChangedHandler(html: string): void;
27
+ textAreaModelChangedHandler(): void;
28
+ recalculateBodyTags(): void;
29
+ copyMarkUp(): void;
30
+ ngOnInit(): void;
31
+ openSettingsModal(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "croco-html-main-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; }, never, never, true, never>;
34
+ }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { HtmlBodyTag } from '../../../models/models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MainEditorBlockComponent {
5
+ textTags: string[];
6
+ tag: HtmlBodyTag;
7
+ onTagSaved: EventEmitter<HtmlBodyTag>;
8
+ onTagRemoved: EventEmitter<HtmlBodyTag>;
9
+ tagUpdatedHandler(tag: HtmlBodyTag): void;
10
+ save(): void;
11
+ deleteItem(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
14
+ }
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { HtmlBodyTag } from '../../../models/models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TextEditorComponent {
5
+ tag: HtmlBodyTag;
6
+ onTagUpdated: EventEmitter<HtmlBodyTag>;
7
+ getInnerHtml(): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { TextAlignment } from "../../../tag-services";
2
+ export declare const AlignmentsData: {
3
+ value: TextAlignment;
4
+ text: string;
5
+ }[];
@@ -0,0 +1,6 @@
1
+ import { TagItem } from '../../../models/models';
2
+ export declare class DefaultTags {
3
+ static textTags: TagItem[];
4
+ static tags: TagItem[];
5
+ static getTags(): TagItem[];
6
+ }
@@ -0,0 +1,69 @@
1
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
3
+ import { ExternalVideoSupportedTypes } from '../../../extensions';
4
+ import { ExternalVideoTagDataConsts } from '../../../extensions';
5
+ import { TagItem, HtmlBodyTag } from '../../../models/models';
6
+ import { CrocoHtmlOptions } from '../../../options';
7
+ import { HtmlRawTagDataConsts } from "../../../extensions/HtmlRawTagDataConsts";
8
+ import { SpriteIdsType } from "../../../../sprites-ids.type";
9
+ import { TextAlignment } from '../../../tag-services';
10
+ import * as i0 from "@angular/core";
11
+ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
12
+ private readonly _cdref;
13
+ private readonly _options;
14
+ textArea: ElementRef;
15
+ isLoading: boolean;
16
+ loadingText: string;
17
+ text: string;
18
+ htmlRaw: string;
19
+ alignment: TextAlignment;
20
+ textTag: string;
21
+ textTagOptions: TagItem[];
22
+ alignmentOptions: {
23
+ value: TextAlignment;
24
+ text: string;
25
+ }[];
26
+ showMarkUp: boolean;
27
+ tags: TagItem[];
28
+ videoPlayers: {
29
+ type: string;
30
+ displayValue: string;
31
+ }[];
32
+ selectedValue: string;
33
+ selectedVideoPlayer: string;
34
+ protected readonly ExternalVideoTagDataConsts: typeof ExternalVideoTagDataConsts;
35
+ protected readonly HtmlRawTagDataConsts: typeof HtmlRawTagDataConsts;
36
+ protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
37
+ useHtmlRaw: boolean;
38
+ html: string;
39
+ isHtmlSet(): boolean;
40
+ clearHtml(): void;
41
+ getHtml(): string;
42
+ onHtmlChanged: EventEmitter<string>;
43
+ rendered: EventEmitter<boolean>;
44
+ bodyTags: HtmlBodyTag[];
45
+ saveBodyTags: HtmlBodyTag[];
46
+ useCustomWidgetsButton: boolean;
47
+ constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
48
+ ngAfterViewInit(): void;
49
+ ngAfterContentChecked(): void;
50
+ addTagClickHandler(): void;
51
+ startAddingText(tag?: string): void;
52
+ resetTextStyle(): void;
53
+ addTextTags(): void;
54
+ postFilesStartedEventHandler(): void;
55
+ addTag(tag: HtmlBodyTag): void;
56
+ filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
57
+ drop(event: CdkDragDrop<object[]>): void;
58
+ onTagSavedHandler(tag: HtmlBodyTag): void;
59
+ onTagRemovedHandler(index: number): void;
60
+ recalculateHtml(): void;
61
+ recalculateBodyTags(): void;
62
+ selectTag(data: TagItem): void;
63
+ customWidgetsClickHandler(): void;
64
+ ngOnInit(): void;
65
+ setTagButton(type: string): SpriteIdsType;
66
+ setAlignButton(type: string): SpriteIdsType;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditorComponent, "croco-visual-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "html": { "alias": "html"; "required": false; }; }, { "html": "html"; "onHtmlChanged": "onHtmlChanged"; "rendered": "rendered"; }, never, never, true, never>;
69
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ErrorBannerComponent {
3
+ message: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorBannerComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorBannerComponent, "croco-html-error-banner", never, { "message": { "alias": "message"; "required": true; }; }, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,26 @@
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
+ }
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,10 @@
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-table-view/xml-tag-table-view.component';
6
+ export * from './xml-tag-text-view/xml-tag-text-view.component';
7
+ export * from './xml-tag-view/xml-tag-view.component';
8
+ export * from './html-raw-view/html-raw-view.component';
9
+ export * from './file-image-tag-view/file-image-tag-view.component';
10
+ export * from './xml-tag-custom-widget/xml-tag-custom-widget.component';
@@ -0,0 +1,14 @@
1
+ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
+ import { HtmlViewController } from '../../../services/HtmlViewController';
3
+ import { ButtonTagData } from '../../../tag-services/ButtonTagService';
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
+ }
@@ -0,0 +1,19 @@
1
+ import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { CrocoHtmlOptions } from "../../../options";
3
+ import { CustomWidgetTagData } from '../../../tag-services/CustomWidgetTagService';
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
+ }
@@ -0,0 +1,14 @@
1
+ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
+ import { BlobCreateService } from "../../../services/blob-create.service";
3
+ import { DownloadButtonTagData } from '../../../tag-services/DownloadButtonTagService';
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
+ }
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,7 @@
1
+ import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
2
+ import * as i0 from "@angular/core";
3
+ export declare class XmlTagHeaderInnerTextViewComponent {
4
+ item: GenericTextTag;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderInnerTextViewComponent, 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>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
2
+ import * as i0 from "@angular/core";
3
+ export declare class XmlTagHeaderTextViewComponent {
4
+ item: GenericTextTag;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderTextViewComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -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": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -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": { "alias": "displayedColumns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { GenericTextTag } from '../../../extensions/TextSimpleMethods';
2
+ import * as i0 from "@angular/core";
3
+ export declare class XmlTagTextViewComponent {
4
+ item: GenericTextTag;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTextViewComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
7
+ }
@@ -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
+ 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
+ }
@@ -0,0 +1 @@
1
+ export declare const CrocoHtmlOptionsToken = "croco-html-options";