croco-html 5.0.0 → 5.0.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.
- package/fesm2022/croco-html.mjs +145 -144
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +954 -3
- package/package.json +1 -3
- package/src/assets/sprites/symbol/croco-html-svg-sprite.svg +1 -1
- package/esm2022/croco-html.mjs +0 -5
- package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +0 -55
- package/esm2022/lib/components/editor/button-editor/button-editor.component.mjs +0 -43
- package/esm2022/lib/components/editor/custom-widget-editor/custom-widget-editor.component.mjs +0 -41
- package/esm2022/lib/components/editor/download-file-button-editor/download-file-button-editor.component.mjs +0 -42
- package/esm2022/lib/components/editor/external-video-editor/embedded-video/code-video.component.mjs +0 -29
- package/esm2022/lib/components/editor/external-video-editor/external-video-editor.component.mjs +0 -84
- package/esm2022/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.mjs +0 -20
- package/esm2022/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.mjs +0 -20
- package/esm2022/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.mjs +0 -47
- package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +0 -33
- package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +0 -108
- package/esm2022/lib/components/editor/index.mjs +0 -9
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +0 -120
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +0 -49
- package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +0 -30
- package/esm2022/lib/components/editor/visual-editor/DefaultAligments.mjs +0 -12
- package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +0 -28
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +0 -268
- package/esm2022/lib/components/error-banner/error-banner.component.mjs +0 -24
- package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +0 -87
- package/esm2022/lib/components/html-view/html-view.component.mjs +0 -18
- package/esm2022/lib/components/index.mjs +0 -7
- package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +0 -66
- package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +0 -57
- package/esm2022/lib/components/xml-tags/html-raw-view/html-raw-view.component.mjs +0 -24
- package/esm2022/lib/components/xml-tags/index.mjs +0 -12
- package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +0 -42
- package/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +0 -50
- package/esm2022/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.mjs +0 -48
- package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +0 -41
- package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +0 -16
- package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +0 -17
- package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +0 -16
- package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +0 -19
- package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +0 -19
- package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +0 -16
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +0 -41
- package/esm2022/lib/consts/index.mjs +0 -2
- package/esm2022/lib/croco-html.module.mjs +0 -106
- package/esm2022/lib/extensions/AngularMaterialTableMethods.mjs +0 -64
- package/esm2022/lib/extensions/BodyTagsExtensions.mjs +0 -192
- package/esm2022/lib/extensions/BootstrapTableMethods.mjs +0 -67
- package/esm2022/lib/extensions/ButtonMethods.mjs +0 -19
- package/esm2022/lib/extensions/CustomWidgetMethods.mjs +0 -33
- package/esm2022/lib/extensions/DownloadButtonMethods.mjs +0 -17
- package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +0 -65
- package/esm2022/lib/extensions/HtmlRawTagDataConsts.mjs +0 -14
- package/esm2022/lib/extensions/ImageMethods.mjs +0 -101
- package/esm2022/lib/extensions/InterfaceBlock.mjs +0 -2
- package/esm2022/lib/extensions/TableBuilder.mjs +0 -35
- package/esm2022/lib/extensions/TableMethods.mjs +0 -108
- package/esm2022/lib/extensions/Tags.mjs +0 -22
- package/esm2022/lib/extensions/TextMethods.mjs +0 -39
- package/esm2022/lib/extensions/TextSimpleMethods.mjs +0 -81
- package/esm2022/lib/extensions/VideoMethods.mjs +0 -40
- package/esm2022/lib/extensions/XmlExtensions.mjs +0 -26
- package/esm2022/lib/extensions/index.mjs +0 -12
- package/esm2022/lib/index.mjs +0 -122
- package/esm2022/lib/models/image-models.mjs +0 -2
- package/esm2022/lib/models/index.mjs +0 -3
- package/esm2022/lib/models/models.mjs +0 -2
- package/esm2022/lib/options/index.mjs +0 -2
- package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +0 -27
- package/esm2022/lib/pipes/TagToSpanPipe.mjs +0 -17
- package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +0 -25
- package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +0 -25
- package/esm2022/lib/pipes/index.mjs +0 -6
- package/esm2022/lib/pipes/sprite-icon-path.pipe.mjs +0 -17
- package/esm2022/lib/pipes/to-preview.pipe.mjs +0 -25
- package/esm2022/lib/services/CrocoHtmlFileOptionsService.mjs +0 -32
- package/esm2022/lib/services/HtmlViewController.mjs +0 -23
- package/esm2022/lib/services/PrivateFileUploadService.mjs +0 -34
- package/esm2022/lib/services/PrivateFilesQueryService.mjs +0 -24
- package/esm2022/lib/services/PublicFileUploadService.mjs +0 -34
- package/esm2022/lib/services/PublicFilesQueryService.mjs +0 -34
- package/esm2022/lib/services/blob-create.service.mjs +0 -20
- package/esm2022/lib/services/index.mjs +0 -3
- package/esm2022/lib/services/screen-width.service.mjs +0 -24
- package/esm2022/public-api.mjs +0 -12
- package/esm2022/sprites-ids.type.mjs +0 -2
- package/lib/components/add-files-btn/add-files-btn.component.d.ts +0 -20
- package/lib/components/editor/button-editor/button-editor.component.d.ts +0 -13
- package/lib/components/editor/custom-widget-editor/custom-widget-editor.component.d.ts +0 -13
- package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts +0 -13
- package/lib/components/editor/external-video-editor/embedded-video/code-video.component.d.ts +0 -14
- package/lib/components/editor/external-video-editor/external-video-editor.component.d.ts +0 -17
- package/lib/components/editor/external-video-editor/vk-video-player/vk-video-player.component.d.ts +0 -10
- package/lib/components/editor/external-video-editor/youtube-video-player/youtube-video-player.component.d.ts +0 -10
- package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts +0 -17
- package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +0 -15
- package/lib/components/editor/image-editor/image-editor.component.d.ts +0 -34
- package/lib/components/editor/index.d.ts +0 -8
- package/lib/components/editor/main-editor/main-editor.component.d.ts +0 -34
- package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +0 -14
- package/lib/components/editor/text-editor/text-editor.component.d.ts +0 -12
- package/lib/components/editor/visual-editor/DefaultAligments.d.ts +0 -9
- package/lib/components/editor/visual-editor/DefaultTags.d.ts +0 -6
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +0 -72
- package/lib/components/error-banner/error-banner.component.d.ts +0 -6
- package/lib/components/file-id-select/file-id-select.component.d.ts +0 -38
- package/lib/components/html-view/html-view.component.d.ts +0 -6
- package/lib/components/index.d.ts +0 -6
- package/lib/components/upload-files-btn/upload-files-btn.component.d.ts +0 -26
- package/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.d.ts +0 -22
- package/lib/components/xml-tags/html-raw-view/html-raw-view.component.d.ts +0 -12
- package/lib/components/xml-tags/index.d.ts +0 -11
- package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +0 -14
- package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +0 -19
- package/lib/components/xml-tags/xml-tag-download-file-button/xml-tag-download-file-button.component.d.ts +0 -14
- package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +0 -11
- package/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.d.ts +0 -10
- package/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.d.ts +0 -10
- package/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.d.ts +0 -7
- package/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.d.ts +0 -10
- package/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.d.ts +0 -7
- package/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.d.ts +0 -10
- package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +0 -8
- package/lib/consts/index.d.ts +0 -1
- package/lib/croco-html.module.d.ts +0 -70
- package/lib/extensions/AngularMaterialTableMethods.d.ts +0 -7
- package/lib/extensions/BodyTagsExtensions.d.ts +0 -11
- package/lib/extensions/BootstrapTableMethods.d.ts +0 -9
- package/lib/extensions/ButtonMethods.d.ts +0 -18
- package/lib/extensions/CustomWidgetMethods.d.ts +0 -20
- package/lib/extensions/DownloadButtonMethods.d.ts +0 -16
- package/lib/extensions/HtmlExtractionMethods.d.ts +0 -59
- package/lib/extensions/HtmlRawTagDataConsts.d.ts +0 -13
- package/lib/extensions/ImageMethods.d.ts +0 -24
- package/lib/extensions/InterfaceBlock.d.ts +0 -7
- package/lib/extensions/TableBuilder.d.ts +0 -5
- package/lib/extensions/TableMethods.d.ts +0 -60
- package/lib/extensions/Tags.d.ts +0 -16
- package/lib/extensions/TextMethods.d.ts +0 -29
- package/lib/extensions/TextSimpleMethods.d.ts +0 -26
- package/lib/extensions/VideoMethods.d.ts +0 -29
- package/lib/extensions/XmlExtensions.d.ts +0 -5
- package/lib/extensions/index.d.ts +0 -11
- package/lib/index.d.ts +0 -25
- package/lib/models/image-models.d.ts +0 -19
- package/lib/models/index.d.ts +0 -2
- package/lib/models/models.d.ts +0 -15
- package/lib/options/index.d.ts +0 -46
- package/lib/pipes/RichTextToHtmlPipe.d.ts +0 -8
- package/lib/pipes/TagToSpanPipe.d.ts +0 -7
- package/lib/pipes/ToHtmlBodyTagsPipe.d.ts +0 -11
- package/lib/pipes/ToPreviewHtmlPipe.d.ts +0 -11
- package/lib/pipes/index.d.ts +0 -5
- package/lib/pipes/sprite-icon-path.pipe.d.ts +0 -8
- package/lib/pipes/to-preview.pipe.d.ts +0 -11
- package/lib/services/CrocoHtmlFileOptionsService.d.ts +0 -10
- package/lib/services/HtmlViewController.d.ts +0 -11
- package/lib/services/PrivateFileUploadService.d.ts +0 -26
- package/lib/services/PrivateFilesQueryService.d.ts +0 -21
- package/lib/services/PublicFileUploadService.d.ts +0 -26
- package/lib/services/PublicFilesQueryService.d.ts +0 -49
- package/lib/services/blob-create.service.d.ts +0 -10
- package/lib/services/index.d.ts +0 -2
- package/lib/services/screen-width.service.d.ts +0 -10
- package/public-api.d.ts +0 -8
- package/sprites-ids.type.d.ts +0 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,956 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Type, EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy, AfterViewInit, ElementRef, ChangeDetectorRef, AfterContentChecked, ViewContainerRef, ComponentRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpEvent } from '@angular/common/http';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import * as i31 from '@angular/cdk/drag-drop';
|
|
6
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
|
+
import { SafeHtml, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
8
|
+
import * as i8 from '@angular/material/snack-bar';
|
|
9
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
10
|
+
import { ClipboardService } from 'ngx-clipboard';
|
|
11
|
+
import * as i21 from '@angular/material/dialog';
|
|
12
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
13
|
+
import * as i1 from '@angular/common';
|
|
14
|
+
import * as i2 from '@angular/forms';
|
|
15
|
+
import * as i3 from '@ng-select/ng-select';
|
|
16
|
+
import * as i4 from '@angular/material/badge';
|
|
17
|
+
import * as i5 from '@angular/material/table';
|
|
18
|
+
import * as i6 from '@angular/material/expansion';
|
|
19
|
+
import * as i7 from '@angular/material/form-field';
|
|
20
|
+
import * as i9 from '@angular/material/progress-bar';
|
|
21
|
+
import * as i10 from '@angular/material/progress-spinner';
|
|
22
|
+
import * as i11 from '@angular/material/tabs';
|
|
23
|
+
import * as i12 from '@angular/material/menu';
|
|
24
|
+
import * as i13 from '@angular/material/card';
|
|
25
|
+
import * as i14 from '@angular/material/select';
|
|
26
|
+
import * as i15 from '@angular/material/tooltip';
|
|
27
|
+
import * as i16 from '@angular/material/checkbox';
|
|
28
|
+
import * as i17 from '@angular/material/chips';
|
|
29
|
+
import * as i18 from '@angular/material/list';
|
|
30
|
+
import * as i19 from '@angular/material/button';
|
|
31
|
+
import * as i20 from '@angular/material/input';
|
|
32
|
+
import * as i22 from '@angular/material/paginator';
|
|
33
|
+
import * as i23 from '@angular/material/datepicker';
|
|
34
|
+
import * as i24 from '@angular/material/grid-list';
|
|
35
|
+
import * as i25 from '@angular/material/slide-toggle';
|
|
36
|
+
import * as i26 from '@angular/material/tree';
|
|
37
|
+
import * as i27 from '@angular/material/core';
|
|
38
|
+
import * as i28 from '@angular/material/autocomplete';
|
|
39
|
+
import * as i29 from '@angular/material/sidenav';
|
|
40
|
+
import * as i30 from '@angular/material/icon';
|
|
41
|
+
import * as i32 from '@angular/material/button-toggle';
|
|
42
|
+
|
|
43
|
+
interface TagItem {
|
|
44
|
+
tag: string;
|
|
45
|
+
displayValue: string;
|
|
46
|
+
isCustom: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface HtmlBodyTag {
|
|
49
|
+
tagDescription: TagItem;
|
|
50
|
+
innerHtml: string;
|
|
51
|
+
attributes: Object;
|
|
52
|
+
presentOrEdit: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface BaseApiResponse {
|
|
55
|
+
isSucceeded: boolean;
|
|
56
|
+
message: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface PublicFilesUploadResponse {
|
|
60
|
+
succeeded: boolean;
|
|
61
|
+
errorMessage: string;
|
|
62
|
+
fileIds: Array<number>;
|
|
63
|
+
filesUploadedEventId: string;
|
|
64
|
+
}
|
|
65
|
+
declare class PublicFileUploadService {
|
|
66
|
+
private readonly _httpClient;
|
|
67
|
+
private readonly baseUrl;
|
|
68
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
69
|
+
postFiles(files: FileList, applicationId: string | null): Observable<PublicFilesUploadResponse>;
|
|
70
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
71
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PublicFilesUploadResponse>;
|
|
72
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PublicFilesUploadResponse> | Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFileUploadService, never>;
|
|
74
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFileUploadService>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface PrivateFilesCreatedResult {
|
|
78
|
+
succeeded: boolean;
|
|
79
|
+
errorMessage: string;
|
|
80
|
+
setId: string;
|
|
81
|
+
fileIds: Array<string>;
|
|
82
|
+
}
|
|
83
|
+
declare class PrivateFileUploadService {
|
|
84
|
+
private readonly _httpClient;
|
|
85
|
+
private readonly baseUrl;
|
|
86
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
87
|
+
postFiles(files: FileList, applicationId: string | null): Observable<PrivateFilesCreatedResult>;
|
|
88
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
89
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PrivateFilesCreatedResult>;
|
|
90
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PrivateFilesCreatedResult> | Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFileUploadService, never>;
|
|
92
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFileUploadService>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface ImageRestrictions {
|
|
96
|
+
maxWidth: number | undefined;
|
|
97
|
+
maxHeight: number | undefined;
|
|
98
|
+
}
|
|
99
|
+
interface FileImageTag {
|
|
100
|
+
type: string;
|
|
101
|
+
data: FileImageTagData;
|
|
102
|
+
}
|
|
103
|
+
interface FileImageTagData {
|
|
104
|
+
src: string;
|
|
105
|
+
fileId: string;
|
|
106
|
+
screenMediaRequest: string;
|
|
107
|
+
}
|
|
108
|
+
interface IMediaRequest {
|
|
109
|
+
minScreenWidth: number;
|
|
110
|
+
maxScreenWidth: number;
|
|
111
|
+
maxImageHeight?: number;
|
|
112
|
+
maxImageWidth?: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface CrocoHtmlOptions {
|
|
116
|
+
/**
|
|
117
|
+
* Формат сслыки для показа изображений из публичных файлов.
|
|
118
|
+
* Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
|
|
119
|
+
*/
|
|
120
|
+
publicImageResizedUrlFormat: string;
|
|
121
|
+
/**
|
|
122
|
+
* Формат сслыки для показа изображений из приватный файлов.
|
|
123
|
+
* Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
|
|
124
|
+
*/
|
|
125
|
+
privateImageResizedUrlFormat: string;
|
|
126
|
+
globalMediaRequests?: IMediaRequest[];
|
|
127
|
+
/**
|
|
128
|
+
* Компонент для рендера кастомных виджетов
|
|
129
|
+
*/
|
|
130
|
+
customWidgetRendererComponent?: Type<any>;
|
|
131
|
+
/**
|
|
132
|
+
* Использовать кнопку для отрисовки кастомных виджетов
|
|
133
|
+
*/
|
|
134
|
+
useCustomWidgetsButton: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Показывать кнопку для запуска настроек
|
|
137
|
+
*/
|
|
138
|
+
showSettingsButton: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Обработчик нажатия на кнопку кастомных виджетов
|
|
141
|
+
* @returns
|
|
142
|
+
*/
|
|
143
|
+
customWidgetClickHandler: (editor: VisualEditorComponent) => void;
|
|
144
|
+
}
|
|
1
145
|
/**
|
|
2
|
-
*
|
|
146
|
+
* Опции для работы с файлами в редакторе разметки
|
|
3
147
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
148
|
+
interface CrocoHtmlEditorFileOptions {
|
|
149
|
+
/**
|
|
150
|
+
* Использовать приватные файлы
|
|
151
|
+
*/
|
|
152
|
+
usePrivateFiles: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Свойство которое подставляется в фильтр с файлами
|
|
155
|
+
*/
|
|
156
|
+
applicationId: string | null;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class CrocoHtmlFileOptionsService {
|
|
160
|
+
private readonly localStorageToken;
|
|
161
|
+
private readonly defaultOptions;
|
|
162
|
+
set(data: CrocoHtmlEditorFileOptions): void;
|
|
163
|
+
get(): CrocoHtmlEditorFileOptions;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlFileOptionsService, never>;
|
|
165
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrocoHtmlFileOptionsService>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface FilePostingStarted {
|
|
169
|
+
filesCount: number;
|
|
170
|
+
}
|
|
171
|
+
declare class UploadFilesBtnComponent {
|
|
172
|
+
private _publicFileUploadService;
|
|
173
|
+
private _privateFileUploadService;
|
|
174
|
+
private _htmlSettingsService;
|
|
175
|
+
private fileInput;
|
|
176
|
+
extAccepts: string;
|
|
177
|
+
isMultiple: boolean;
|
|
178
|
+
btnText: string;
|
|
179
|
+
hidden: boolean;
|
|
180
|
+
postFilesStarted: EventEmitter<FilePostingStarted>;
|
|
181
|
+
onPublicFilesUploaded: EventEmitter<PublicFilesUploadResponse>;
|
|
182
|
+
onPrivateFilesUploaded: EventEmitter<PrivateFilesCreatedResult>;
|
|
183
|
+
constructor(_publicFileUploadService: PublicFileUploadService, _privateFileUploadService: PrivateFileUploadService, _htmlSettingsService: CrocoHtmlFileOptionsService);
|
|
184
|
+
handleFileInput(files: FileList): void;
|
|
185
|
+
clickFileInput(): void;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilesBtnComponent, never>;
|
|
187
|
+
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>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare class AddFilesBtnComponent {
|
|
191
|
+
postFilesStarted: EventEmitter<FilePostingStarted>;
|
|
192
|
+
fakeBtn: UploadFilesBtnComponent;
|
|
193
|
+
fileIds: number[];
|
|
194
|
+
constructor();
|
|
195
|
+
filesTagsReady: EventEmitter<HtmlBodyTag[]>;
|
|
196
|
+
postFilesStartedEventHandler(data: FilePostingStarted): void;
|
|
197
|
+
filesUploadedPublicHandler(data: PublicFilesUploadResponse): void;
|
|
198
|
+
filesUploadedPrivateHandler(data: PrivateFilesCreatedResult): void;
|
|
199
|
+
private buildFileTags;
|
|
200
|
+
handleClick(): void;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFilesBtnComponent, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface InterfaceBlock {
|
|
206
|
+
type: string;
|
|
207
|
+
data: any;
|
|
208
|
+
validationResult?: BaseApiResponse | undefined;
|
|
209
|
+
bootstrapHtml?: string | undefined;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
interface TableHeaderData {
|
|
213
|
+
type: "table-header";
|
|
214
|
+
columns: string[];
|
|
215
|
+
}
|
|
216
|
+
interface TableRowColumnData {
|
|
217
|
+
type: "table-row-column-data";
|
|
218
|
+
data: {
|
|
219
|
+
text: string;
|
|
220
|
+
children: InterfaceBlock[];
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
interface TableRowData {
|
|
224
|
+
type: "table-row-column";
|
|
225
|
+
columns: TableRowColumnData[];
|
|
226
|
+
}
|
|
227
|
+
interface TableData {
|
|
228
|
+
header: TableHeaderData;
|
|
229
|
+
rows: TableRowData[];
|
|
230
|
+
}
|
|
231
|
+
interface TableTagData {
|
|
232
|
+
type: "table";
|
|
233
|
+
data: TableData;
|
|
234
|
+
}
|
|
235
|
+
declare class TableTypes {
|
|
236
|
+
static readonly TableRowColumnData = "table-row-column-data";
|
|
237
|
+
static readonly Table = "table";
|
|
238
|
+
static readonly TableRowColumn = "table-row-column";
|
|
239
|
+
}
|
|
240
|
+
interface AngularMaterialTableData {
|
|
241
|
+
displayedColumns: string[];
|
|
242
|
+
data: object[];
|
|
243
|
+
}
|
|
244
|
+
declare class TableMethods {
|
|
245
|
+
static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): {
|
|
246
|
+
type: string;
|
|
247
|
+
data: TableData;
|
|
248
|
+
validationResult: BaseApiResponse;
|
|
249
|
+
bootstrapHtml: string;
|
|
250
|
+
} | {
|
|
251
|
+
angularMaterialTableDataCheck: BaseApiResponse;
|
|
252
|
+
type: string;
|
|
253
|
+
data: TableData;
|
|
254
|
+
validationResult: BaseApiResponse;
|
|
255
|
+
bootstrapHtml: string;
|
|
256
|
+
} | {
|
|
257
|
+
angularMaterialTableDataCheck: BaseApiResponse;
|
|
258
|
+
html: string;
|
|
259
|
+
angularMaterialTableData: AngularMaterialTableData;
|
|
260
|
+
type: string;
|
|
261
|
+
data: TableData;
|
|
262
|
+
validationResult: BaseApiResponse;
|
|
263
|
+
bootstrapHtml: string;
|
|
264
|
+
};
|
|
265
|
+
static checkTable(tableData: TableData): BaseApiResponse;
|
|
266
|
+
static getHeader(tableTag: HTMLTableElement): TableHeaderData;
|
|
267
|
+
static getTableRows(tableTag: HTMLTableElement, options: CrocoHtmlOptions): Array<TableRowData>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare class AngularMaterialTableMethods {
|
|
271
|
+
static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
|
|
272
|
+
static checkHeaders(tableData: TableData): BaseApiResponse;
|
|
273
|
+
static checkAngularMaterialTableData(tableData: TableData, checkHeaders?: boolean): BaseApiResponse;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class BodyTagsExtensions {
|
|
277
|
+
static getDescription(tagName: string): string;
|
|
278
|
+
static toHtml(bodyTags: HtmlBodyTag[]): string;
|
|
279
|
+
static imageTagToHtml(imageTag: HtmlBodyTag): string;
|
|
280
|
+
static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
|
|
281
|
+
static sanitizeInnerHtml(html: string): string;
|
|
282
|
+
static toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare class BootstrapTableMethods {
|
|
286
|
+
static BuildTable(data: TableData): string;
|
|
287
|
+
static BuildHeader(data: TableHeaderData): string;
|
|
288
|
+
static BuildBody(rows: TableRowData[]): string;
|
|
289
|
+
static BuildInnerTags(tags: InterfaceBlock[]): string;
|
|
290
|
+
static BuildInnerTag(data: InterfaceBlock): string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare class FileImageTagDataConsts {
|
|
294
|
+
static TagName: string;
|
|
295
|
+
static FileIdAttrName: string;
|
|
296
|
+
static ScreenMediaRequest: string;
|
|
297
|
+
static MaxScreenWidth: string;
|
|
298
|
+
static MinScreenWidth: string;
|
|
299
|
+
static MaxImageHeight: string;
|
|
300
|
+
static MaxImageWidth: string;
|
|
301
|
+
static DefaultValueForFileImage: string;
|
|
302
|
+
}
|
|
303
|
+
declare class ImageMethods {
|
|
304
|
+
static buildUrl(fileId: string, sizeType: string, options: CrocoHtmlOptions): string;
|
|
305
|
+
static buildSmallUrl(fileId: string, options: CrocoHtmlOptions): string;
|
|
306
|
+
static buildMediumUrl(fileId: string, options: CrocoHtmlOptions): string;
|
|
307
|
+
static isPrivateFileId(fileId: string): boolean;
|
|
308
|
+
static ExtractImage(elem: HTMLElement, options: CrocoHtmlOptions): FileImageTag;
|
|
309
|
+
static mediaRequestStringToArrayParser: (data: string) => IMediaRequest[];
|
|
310
|
+
static createMediaRequestValue(arr: string[], attribute: string): number | null;
|
|
311
|
+
static mediaRequestsArrayToString(data: IMediaRequest[]): string;
|
|
312
|
+
static mediaRequestToString(data: IMediaRequest): string;
|
|
313
|
+
static getImageRestrictionsByScreenSize(screenSize: number, requests: IMediaRequest[]): ImageRestrictions;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare class CustomWidgetTagDataConsts {
|
|
317
|
+
static TagName: string;
|
|
318
|
+
static TypeAttrName: string;
|
|
319
|
+
static DataIdAttrName: string;
|
|
320
|
+
static WidgetIdAttrName: string;
|
|
321
|
+
}
|
|
322
|
+
interface CustomWidgetTag {
|
|
323
|
+
type: string;
|
|
324
|
+
data: CustomWidgetTagData;
|
|
325
|
+
}
|
|
326
|
+
interface CustomWidgetTagData {
|
|
327
|
+
type: string;
|
|
328
|
+
dataId: string;
|
|
329
|
+
widgetId: string;
|
|
330
|
+
}
|
|
331
|
+
declare class CustomWidgetMethods {
|
|
332
|
+
static ExtractCustomWidgetTagData(attributes: any): CustomWidgetTagData;
|
|
333
|
+
static ExtractCustomWidgetAttributes(customWidgetTagData: CustomWidgetTagData): any;
|
|
334
|
+
static ExtractCustomWidgetTag(elem: HTMLElement): CustomWidgetTag;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare class TableBuilder {
|
|
338
|
+
static getTableMarkUp(rows: number, cols: number, generateHeaders: boolean): string;
|
|
339
|
+
static getTableHeaderMarkUp(cols: number): string;
|
|
340
|
+
static getTableBodyMarkUp(cols: number, rows: number): string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface TextBlock {
|
|
344
|
+
type: "text-block" | "text-sup-block" | "text-sub-block";
|
|
345
|
+
data: {
|
|
346
|
+
text: string;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
interface LineBreakBlock {
|
|
350
|
+
type: "line-break";
|
|
351
|
+
}
|
|
352
|
+
interface RichTextData {
|
|
353
|
+
type: "rich-text";
|
|
354
|
+
data: {
|
|
355
|
+
children: Array<TextBlock | LineBreakBlock>;
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
declare class TextTags {
|
|
359
|
+
static readonly text = "text";
|
|
360
|
+
static readonly h1 = "h1";
|
|
361
|
+
static readonly h2 = "h2";
|
|
362
|
+
static readonly h3 = "h3";
|
|
363
|
+
static readonly h4 = "h4";
|
|
364
|
+
static readonly h5 = "h5";
|
|
365
|
+
static readonly h6 = "h6";
|
|
366
|
+
static headerTextTags: string[];
|
|
367
|
+
static allTextTags: string[];
|
|
368
|
+
}
|
|
369
|
+
declare class TextMethods {
|
|
370
|
+
static ExtractRichTextData(elem: HTMLElement): RichTextData;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class TextTagDataConsts {
|
|
374
|
+
static HAlign: string;
|
|
375
|
+
}
|
|
376
|
+
declare const TextTag = "text";
|
|
377
|
+
interface SimpleTextTag {
|
|
378
|
+
type: "text";
|
|
379
|
+
data: SimpleTextTagData;
|
|
380
|
+
}
|
|
381
|
+
interface GenericTextTag {
|
|
382
|
+
type: string;
|
|
383
|
+
data: SimpleTextTagData;
|
|
384
|
+
}
|
|
385
|
+
interface SimpleTextTagData {
|
|
386
|
+
textTagName: string;
|
|
387
|
+
text: string;
|
|
388
|
+
html: string;
|
|
389
|
+
horizontalAlignment: "left" | "right" | "center";
|
|
390
|
+
validationResult: BaseApiResponse;
|
|
391
|
+
}
|
|
392
|
+
declare class TextSimpleMethods {
|
|
393
|
+
static supportedTags: string[];
|
|
394
|
+
static ExtractTextTag(elem: HTMLElement): SimpleTextTag;
|
|
395
|
+
static ValidateTextHtml(html: string): BaseApiResponse;
|
|
396
|
+
static ValidateTag(element: Element): BaseApiResponse;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare class ExternalVideoTagDataConsts {
|
|
400
|
+
static TagName: string;
|
|
401
|
+
static VideoTypeAttrName: string;
|
|
402
|
+
static LinkAttrName: string;
|
|
403
|
+
static UseResponsiveWrapperAttrName: string;
|
|
404
|
+
static IframeAttrName: string;
|
|
405
|
+
}
|
|
406
|
+
declare class ExternalVideoSupportedTypes {
|
|
407
|
+
static Youtube: string;
|
|
408
|
+
static VkVideo: string;
|
|
409
|
+
static Code: string;
|
|
410
|
+
}
|
|
411
|
+
declare const ExternalVideoPlayers: {
|
|
412
|
+
type: string;
|
|
413
|
+
displayValue: string;
|
|
414
|
+
}[];
|
|
415
|
+
interface ExternalVideoTag {
|
|
416
|
+
type: string;
|
|
417
|
+
data: ExternalVideoTagData;
|
|
418
|
+
}
|
|
419
|
+
interface ExternalVideoTagData {
|
|
420
|
+
type: string;
|
|
421
|
+
link: string;
|
|
422
|
+
innerHtml: string;
|
|
423
|
+
useResponsiveWrapper: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare class VideoMethods {
|
|
426
|
+
static ExtractExternalVideoTag(elem: HTMLElement): ExternalVideoTag;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare class XmlExtensions {
|
|
430
|
+
static formatXml(xml: string, tab?: string): string;
|
|
431
|
+
static tagsToLower(xml: string): string;
|
|
432
|
+
static replaceTagToLower(xml: string, tag: string): string;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare class ExternalVideoEditorComponent implements OnInit {
|
|
436
|
+
tag: HtmlBodyTag;
|
|
437
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
438
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
439
|
+
tagData: ExternalVideoTagData;
|
|
440
|
+
linkText: string;
|
|
441
|
+
ngOnInit(): void;
|
|
442
|
+
linkChanged(): void;
|
|
443
|
+
onCheck(checked: boolean): void;
|
|
444
|
+
createLinkByIFrame(): void;
|
|
445
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoEditorComponent, never>;
|
|
446
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoEditorComponent, "croco-html-external-video-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
declare class HtmlRawEditorComponent implements OnChanges {
|
|
450
|
+
private readonly _sanitizer;
|
|
451
|
+
tag: HtmlBodyTag;
|
|
452
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
453
|
+
safeHtml: SafeHtml;
|
|
454
|
+
constructor(_sanitizer: DomSanitizer);
|
|
455
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
456
|
+
onSafeHtmlChange(): void;
|
|
457
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
|
|
458
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare class ScreenWidthService {
|
|
462
|
+
private screenWidth;
|
|
463
|
+
constructor();
|
|
464
|
+
private onResize;
|
|
465
|
+
getScreenWidth(): Observable<number>;
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenWidthService, never>;
|
|
467
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenWidthService>;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
471
|
+
private readonly _options;
|
|
472
|
+
private readonly screenWidthService;
|
|
473
|
+
hasImageError: boolean;
|
|
474
|
+
searchOrEdit: string;
|
|
475
|
+
requests: IMediaRequest[];
|
|
476
|
+
imageMaxHeight: number;
|
|
477
|
+
imageMaxWidth: number;
|
|
478
|
+
isShowMediaRequest: boolean;
|
|
479
|
+
private unsubscribe;
|
|
480
|
+
tag: HtmlBodyTag;
|
|
481
|
+
onErrorHandler(): void;
|
|
482
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
483
|
+
get fileId(): string;
|
|
484
|
+
set fileId(value: string);
|
|
485
|
+
constructor(_options: CrocoHtmlOptions, screenWidthService: ScreenWidthService);
|
|
486
|
+
getSrc(): string;
|
|
487
|
+
hasFileId(): boolean;
|
|
488
|
+
onFileIdChanged(fileId: string): void;
|
|
489
|
+
removeImageError(): void;
|
|
490
|
+
ngOnInit(): void;
|
|
491
|
+
requestChanged(): void;
|
|
492
|
+
addNewMediaRequest(): void;
|
|
493
|
+
deleteMediaRequest(index: number): void;
|
|
494
|
+
ngOnDestroy(): void;
|
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
496
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare enum EAlignments {
|
|
500
|
+
Left = "left",
|
|
501
|
+
Center = "center",
|
|
502
|
+
Right = "right"
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
declare class HtmlRawTagDataConsts {
|
|
506
|
+
static TagName: string;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
type SpriteIdsType = 'align-center' | 'align-left' | 'align-right' | 'move-icon' | 'source-code-tab' | 'tag-button-button' | 'tag-button-custom-widget' | 'tag-button-download-file-button' | 'tag-button-external-video' | 'tag-button-file-image' | 'tag-button-html-raw' | 'tag-button-text' | 'viewer-tab' | 'visual-editor-tab';
|
|
510
|
+
|
|
511
|
+
declare const defaultLinkYouTube = "https://www.youtube.com/embed/4CtSAnJDfsI?si=scyBNJa0Hs2t5aLE";
|
|
512
|
+
declare const defaultLinkVk = "https://vk.com/video_ext.php?oid=-22822305&id=456241864&hd=2";
|
|
513
|
+
declare const defaultLinkForDownload = "https://storage.yandexcloud.net/mega-academy/presentation.pdf";
|
|
514
|
+
declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
515
|
+
private readonly _cdref;
|
|
516
|
+
private readonly _options;
|
|
517
|
+
textArea: ElementRef;
|
|
518
|
+
isLoading: boolean;
|
|
519
|
+
loadingText: string;
|
|
520
|
+
text: string;
|
|
521
|
+
htmlRaw: string;
|
|
522
|
+
alignment: EAlignments;
|
|
523
|
+
textTag: string;
|
|
524
|
+
textTagOptions: TagItem[];
|
|
525
|
+
alignmentOptions: {
|
|
526
|
+
value: EAlignments;
|
|
527
|
+
text: string;
|
|
528
|
+
}[];
|
|
529
|
+
showMarkUp: boolean;
|
|
530
|
+
tags: TagItem[];
|
|
531
|
+
videoPlayers: {
|
|
532
|
+
type: string;
|
|
533
|
+
displayValue: string;
|
|
534
|
+
}[];
|
|
535
|
+
selectedValue: string;
|
|
536
|
+
selectedVideoPlayer: string;
|
|
537
|
+
protected readonly ExternalVideoTagDataConsts: typeof ExternalVideoTagDataConsts;
|
|
538
|
+
protected readonly HtmlRawTagDataConsts: typeof HtmlRawTagDataConsts;
|
|
539
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
540
|
+
useHtmlRaw: boolean;
|
|
541
|
+
html: string;
|
|
542
|
+
isHtmlSet(): boolean;
|
|
543
|
+
clearHtml(): void;
|
|
544
|
+
getHtml(): string;
|
|
545
|
+
onHtmlChanged: EventEmitter<string>;
|
|
546
|
+
rendered: EventEmitter<boolean>;
|
|
547
|
+
bodyTags: HtmlBodyTag[];
|
|
548
|
+
saveBodyTags: HtmlBodyTag[];
|
|
549
|
+
useCustomWidgetsButton: boolean;
|
|
550
|
+
constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
|
|
551
|
+
ngAfterViewInit(): void;
|
|
552
|
+
ngAfterContentChecked(): void;
|
|
553
|
+
addTagClickHandler(): void;
|
|
554
|
+
startAddingText(tag?: string): void;
|
|
555
|
+
resetTextStyle(): void;
|
|
556
|
+
addTextTags(): void;
|
|
557
|
+
postFilesStartedEventHandler(): void;
|
|
558
|
+
addTag(tag: HtmlBodyTag): void;
|
|
559
|
+
filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
|
|
560
|
+
drop(event: CdkDragDrop<object[]>): void;
|
|
561
|
+
onTagSavedHandler(tag: HtmlBodyTag): void;
|
|
562
|
+
onTagRemovedHandler(index: number): void;
|
|
563
|
+
recalculateHtml(): void;
|
|
564
|
+
recalculateBodyTags(): void;
|
|
565
|
+
selectTag(data: TagItem): void;
|
|
566
|
+
customWidgetsClickHandler(): void;
|
|
567
|
+
ngOnInit(): void;
|
|
568
|
+
setTagButton(type: string): SpriteIdsType;
|
|
569
|
+
setAlignButton(type: string): SpriteIdsType;
|
|
570
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
571
|
+
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>;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
575
|
+
private readonly _clipboardService;
|
|
576
|
+
private readonly _snackBar;
|
|
577
|
+
private readonly _cdref;
|
|
578
|
+
private readonly _dialog;
|
|
579
|
+
private readonly _htmlSettingsService;
|
|
580
|
+
visualEditorRendered: boolean;
|
|
581
|
+
visualEditor: VisualEditorComponent;
|
|
582
|
+
showMarkUp: boolean;
|
|
583
|
+
useHtmlRaw: boolean;
|
|
584
|
+
html: string;
|
|
585
|
+
onHtmlChanged: EventEmitter<string>;
|
|
586
|
+
showSettingsButton: boolean;
|
|
587
|
+
constructor(_clipboardService: ClipboardService, _snackBar: MatSnackBar, _cdref: ChangeDetectorRef, _dialog: MatDialog, _htmlSettingsService: CrocoHtmlFileOptionsService, options: CrocoHtmlOptions);
|
|
588
|
+
ngAfterViewInit(): void;
|
|
589
|
+
ngAfterContentChecked(): void;
|
|
590
|
+
visualEditorRenderedHandler(): void;
|
|
591
|
+
onHtmlChangedHandler(html: string): void;
|
|
592
|
+
textAreaModelChangedHandler(): void;
|
|
593
|
+
recalculateBodyTags(): void;
|
|
594
|
+
copyMarkUp(): void;
|
|
595
|
+
ngOnInit(): void;
|
|
596
|
+
openSettingsModal(): void;
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
598
|
+
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>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare class MainEditorBlockComponent {
|
|
602
|
+
textTags: string[];
|
|
603
|
+
tag: HtmlBodyTag;
|
|
604
|
+
onTagSaved: EventEmitter<HtmlBodyTag>;
|
|
605
|
+
onTagRemoved: EventEmitter<HtmlBodyTag>;
|
|
606
|
+
tagUpdatedHandler(tag: HtmlBodyTag): void;
|
|
607
|
+
save(): void;
|
|
608
|
+
deleteItem(): void;
|
|
609
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
|
|
610
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
declare class TextEditorComponent implements OnInit {
|
|
614
|
+
tag: HtmlBodyTag;
|
|
615
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
616
|
+
constructor();
|
|
617
|
+
ngOnInit(): void;
|
|
618
|
+
getInnerHtml(): string;
|
|
619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
|
|
620
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
declare class CustomWidgetEditorComponent implements OnInit {
|
|
624
|
+
tag: HtmlBodyTag;
|
|
625
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
626
|
+
tagData: CustomWidgetTagData;
|
|
627
|
+
ngOnInit(): void;
|
|
628
|
+
dataChanged(): void;
|
|
629
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetEditorComponent, never>;
|
|
630
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetEditorComponent, "croco-html-custom-widget-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
interface GetListResult<T> {
|
|
634
|
+
totalCount: number;
|
|
635
|
+
list: Array<T>;
|
|
636
|
+
}
|
|
637
|
+
interface FileRelationModel {
|
|
638
|
+
entityTypeFullName: string;
|
|
639
|
+
entityKey: string;
|
|
640
|
+
relationName: string;
|
|
641
|
+
relationValue: string;
|
|
642
|
+
relationCustomData: string;
|
|
643
|
+
}
|
|
644
|
+
interface SearchFilesRequest {
|
|
645
|
+
q: string;
|
|
646
|
+
fileName: string;
|
|
647
|
+
applicationId: string;
|
|
648
|
+
fileTypes: Array<FileType>;
|
|
649
|
+
count: number | null;
|
|
650
|
+
offSet: number;
|
|
651
|
+
}
|
|
652
|
+
declare enum FileType {
|
|
653
|
+
Undefined = "Undefined",
|
|
654
|
+
Unknown = "Unknown",
|
|
655
|
+
Image = "Image",
|
|
656
|
+
Audio = "Audio",
|
|
657
|
+
Video = "Video",
|
|
658
|
+
Document = "Document",
|
|
659
|
+
Archive = "Archive"
|
|
660
|
+
}
|
|
661
|
+
interface GetListSearchModel {
|
|
662
|
+
count: number | null;
|
|
663
|
+
offSet: number;
|
|
664
|
+
}
|
|
665
|
+
interface FileSimpleModel {
|
|
666
|
+
fileId: number;
|
|
667
|
+
fileName: string;
|
|
668
|
+
type: FileType;
|
|
669
|
+
downloadUrl: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
declare class PublicFilesQueryService {
|
|
673
|
+
private readonly _httpClient;
|
|
674
|
+
private readonly _baseControllerUrl;
|
|
675
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
676
|
+
search(model: SearchFilesRequest): Observable<GetListResult<FileSimpleModel>>;
|
|
677
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFilesQueryService, never>;
|
|
678
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFilesQueryService>;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
interface PrivateFileNameModel {
|
|
682
|
+
id: string;
|
|
683
|
+
setId: string;
|
|
684
|
+
fileName: string;
|
|
685
|
+
type: FileType;
|
|
686
|
+
downloadUrl: string;
|
|
687
|
+
createdOn: string;
|
|
688
|
+
applicationId: string;
|
|
689
|
+
}
|
|
690
|
+
declare class PrivateFilesQueryService {
|
|
691
|
+
private readonly _httpClient;
|
|
692
|
+
private readonly _baseControllerUrl;
|
|
693
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
694
|
+
search(model: SearchFilesRequest): Observable<GetListResult<PrivateFileNameModel>>;
|
|
695
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFilesQueryService, never>;
|
|
696
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFilesQueryService>;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
interface SearchQuestionsFormData {
|
|
700
|
+
q: string;
|
|
701
|
+
}
|
|
702
|
+
interface FileUnifiedModel {
|
|
703
|
+
fileId: string;
|
|
704
|
+
fileName: string;
|
|
705
|
+
}
|
|
706
|
+
declare class FileIdSelectComponent implements OnInit, OnChanges {
|
|
707
|
+
private readonly _publicFileService;
|
|
708
|
+
private readonly _privateFileService;
|
|
709
|
+
private _htmlSettingsService;
|
|
710
|
+
private readonly _options;
|
|
711
|
+
q: string;
|
|
712
|
+
labelText: string;
|
|
713
|
+
fileId: string;
|
|
714
|
+
loading: boolean;
|
|
715
|
+
files: FileUnifiedModel[];
|
|
716
|
+
onFileIdChanged: EventEmitter<string>;
|
|
717
|
+
get crocoHtmlEditorFileOptions(): CrocoHtmlEditorFileOptions;
|
|
718
|
+
constructor(_publicFileService: PublicFilesQueryService, _privateFileService: PrivateFilesQueryService, _htmlSettingsService: CrocoHtmlFileOptionsService, _options: CrocoHtmlOptions);
|
|
719
|
+
onModelChanged(fileId: string): void;
|
|
720
|
+
getSrc(fileId: string): string;
|
|
721
|
+
ngOnInit(): void;
|
|
722
|
+
loadFiles(): void;
|
|
723
|
+
onSearchChanged(q: {
|
|
724
|
+
term: string;
|
|
725
|
+
items: object[];
|
|
726
|
+
}): void;
|
|
727
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
728
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileIdSelectComponent, never>;
|
|
729
|
+
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>;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
declare class XmlTagExternalVideoComponent {
|
|
733
|
+
set data(value: InterfaceBlock);
|
|
734
|
+
set tagData(value: ExternalVideoTagData);
|
|
735
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
736
|
+
_block: ExternalVideoTagData;
|
|
737
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
|
|
738
|
+
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>;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare class XmlTagHeaderInnerTextViewComponent implements OnInit {
|
|
742
|
+
item: GenericTextTag;
|
|
743
|
+
constructor();
|
|
744
|
+
ngOnInit(): void;
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderInnerTextViewComponent, never>;
|
|
746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderInnerTextViewComponent, "croco-html-xml-tag-header-inner-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare class XmlTagHeaderTextViewComponent implements OnInit {
|
|
750
|
+
item: GenericTextTag;
|
|
751
|
+
constructor();
|
|
752
|
+
ngOnInit(): void;
|
|
753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderTextViewComponent, never>;
|
|
754
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
declare class XmlTagHtmlViewComponent {
|
|
758
|
+
constructor();
|
|
759
|
+
html: string;
|
|
760
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHtmlViewComponent, never>;
|
|
761
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
declare class XmlTagRichTextViewComponent implements OnInit {
|
|
765
|
+
richTextData: RichTextData;
|
|
766
|
+
constructor();
|
|
767
|
+
ngOnInit(): void;
|
|
768
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagRichTextViewComponent, never>;
|
|
769
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagRichTextViewComponent, "croco-html-xml-tag-rich-text-view", never, { "richTextData": { "alias": "richTextData"; "required": false; }; }, {}, never, never, true, never>;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
declare class XmlTagTableViewComponent {
|
|
773
|
+
displayedColumns: string[];
|
|
774
|
+
data: object;
|
|
775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTableViewComponent, never>;
|
|
776
|
+
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>;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
declare class XmlTagTextViewComponent implements OnInit {
|
|
780
|
+
item: SimpleTextTag;
|
|
781
|
+
constructor();
|
|
782
|
+
ngOnInit(): void;
|
|
783
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTextViewComponent, never>;
|
|
784
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
declare class XmlTagViewComponent {
|
|
788
|
+
data: InterfaceBlock[];
|
|
789
|
+
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
790
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
|
|
791
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
declare class HtmlRawViewComponent implements OnChanges {
|
|
795
|
+
private readonly _sanitizer;
|
|
796
|
+
rawHtml: string;
|
|
797
|
+
safeHtml: SafeHtml;
|
|
798
|
+
constructor(_sanitizer: DomSanitizer);
|
|
799
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
800
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
|
|
801
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never, true, never>;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare class FileImageTagViewComponent implements OnInit, OnDestroy {
|
|
805
|
+
private readonly screenWidthService;
|
|
806
|
+
private readonly _options;
|
|
807
|
+
set item(item: InterfaceBlock);
|
|
808
|
+
imageSrc: string;
|
|
809
|
+
requests: IMediaRequest[];
|
|
810
|
+
private unsubscribe;
|
|
811
|
+
imageMaxHeight: number;
|
|
812
|
+
imageMaxWidth: number;
|
|
813
|
+
constructor(screenWidthService: ScreenWidthService, _options: CrocoHtmlOptions);
|
|
814
|
+
getMediaRequests(screenMediaRequest: string): IMediaRequest[];
|
|
815
|
+
ngOnInit(): void;
|
|
816
|
+
ngOnDestroy(): void;
|
|
817
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
|
|
818
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
|
|
822
|
+
private readonly _options;
|
|
823
|
+
viewContainerRef: ViewContainerRef;
|
|
824
|
+
set tagData(value: CustomWidgetTagData);
|
|
825
|
+
get tagData(): CustomWidgetTagData;
|
|
826
|
+
_tagData: CustomWidgetTagData;
|
|
827
|
+
tooltipData: string;
|
|
828
|
+
useDynamicComponent: boolean;
|
|
829
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
830
|
+
constructor(_options: CrocoHtmlOptions);
|
|
831
|
+
ngOnInit(): void;
|
|
832
|
+
ngOnDestroy(): void;
|
|
833
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagCustomWidgetComponent, never>;
|
|
834
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagCustomWidgetComponent, "croco-html-xml-tag-custom-widget", never, { "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
declare class HtmlViewComponent {
|
|
838
|
+
html: string;
|
|
839
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
|
|
840
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare class RichTextToHtmlPipe implements PipeTransform {
|
|
844
|
+
transform(value: RichTextData): string;
|
|
845
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextToHtmlPipe, never>;
|
|
846
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RichTextToHtmlPipe, "richTextToHtml", true>;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
declare class TagToSpanPipe implements PipeTransform {
|
|
850
|
+
transform(value: string[]): string;
|
|
851
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagToSpanPipe, never>;
|
|
852
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan", true>;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
declare class ToPreviewPipe implements PipeTransform {
|
|
856
|
+
private readonly _options;
|
|
857
|
+
constructor(_options: CrocoHtmlOptions);
|
|
858
|
+
transform(value: string): InterfaceBlock[];
|
|
859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
|
|
860
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview", true>;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare class ToHtmlBodyTagsPipe implements PipeTransform {
|
|
864
|
+
private readonly _options;
|
|
865
|
+
constructor(_options: CrocoHtmlOptions);
|
|
866
|
+
transform(value: string): HtmlBodyTag[];
|
|
867
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
|
|
868
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags", true>;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
declare class ToPreviewHtmlPipe implements PipeTransform {
|
|
872
|
+
private readonly _options;
|
|
873
|
+
constructor(_options: CrocoHtmlOptions);
|
|
874
|
+
transform(value: string): InterfaceBlock[];
|
|
875
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewHtmlPipe, never>;
|
|
876
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml", true>;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare class ErrorBannerComponent {
|
|
880
|
+
message: string;
|
|
881
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorBannerComponent, never>;
|
|
882
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorBannerComponent, "croco-html-error-banner", never, { "message": { "alias": "message"; "required": true; }; }, {}, never, never, true, never>;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
declare class VkVideoPlayerComponent {
|
|
886
|
+
private sanitizer;
|
|
887
|
+
set link(link: string);
|
|
888
|
+
safeUrl: SafeResourceUrl;
|
|
889
|
+
constructor(sanitizer: DomSanitizer);
|
|
890
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VkVideoPlayerComponent, never>;
|
|
891
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VkVideoPlayerComponent, "vk-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
declare class YoutubeVideoPlayerComponent {
|
|
895
|
+
private sanitizer;
|
|
896
|
+
set link(link: string);
|
|
897
|
+
safeUrl: SafeResourceUrl;
|
|
898
|
+
constructor(sanitizer: DomSanitizer);
|
|
899
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YoutubeVideoPlayerComponent, never>;
|
|
900
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YoutubeVideoPlayerComponent, "youtube-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
interface DownloadButtonTagData {
|
|
904
|
+
title: string;
|
|
905
|
+
link: string;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
declare class DownloadFileButtonEditorComponent {
|
|
909
|
+
tag: HtmlBodyTag;
|
|
910
|
+
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
911
|
+
tagData: DownloadButtonTagData;
|
|
912
|
+
ngOnInit(): void;
|
|
913
|
+
linkChanged(): void;
|
|
914
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileButtonEditorComponent, never>;
|
|
915
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileButtonEditorComponent, "croco-html-download-file-button-editor", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, true, never>;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
declare class BlobCreateService {
|
|
919
|
+
private readonly _http;
|
|
920
|
+
constructor(_http: HttpClient);
|
|
921
|
+
getBlob(link: string): Observable<Blob>;
|
|
922
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlobCreateService, never>;
|
|
923
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlobCreateService>;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
declare class XmlTagDownloadFileButtonComponent {
|
|
927
|
+
private readonly _blobCreateService;
|
|
928
|
+
set data(value: InterfaceBlock);
|
|
929
|
+
set tagData(value: DownloadButtonTagData);
|
|
930
|
+
constructor(_blobCreateService: BlobCreateService);
|
|
931
|
+
_block: DownloadButtonTagData;
|
|
932
|
+
downloadFile(): void;
|
|
933
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagDownloadFileButtonComponent, never>;
|
|
934
|
+
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>;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
declare class CrocoHtmlModule {
|
|
938
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
|
|
939
|
+
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 ErrorBannerComponent, typeof VkVideoPlayerComponent, typeof YoutubeVideoPlayerComponent, typeof DownloadFileButtonEditorComponent, typeof XmlTagDownloadFileButtonComponent, typeof UploadFilesBtnComponent, typeof HtmlViewComponent, typeof XmlTagTableViewComponent, typeof XmlTagViewComponent, typeof XmlTagRichTextViewComponent, typeof XmlTagHtmlViewComponent, typeof XmlTagTextViewComponent, typeof XmlTagHeaderTextViewComponent, typeof XmlTagHeaderInnerTextViewComponent, typeof XmlTagExternalVideoComponent, typeof HtmlRawViewComponent, typeof FileImageTagViewComponent, typeof XmlTagCustomWidgetComponent, typeof HtmlViewComponent, typeof MainEditorComponent, typeof FileIdSelectComponent, typeof TextEditorComponent, typeof ImageEditorComponent, typeof MainEditorBlockComponent, typeof VisualEditorComponent, typeof AddFilesBtnComponent, typeof HtmlRawEditorComponent, typeof CustomWidgetEditorComponent, typeof RichTextToHtmlPipe, typeof TagToSpanPipe, typeof ToPreviewPipe, typeof ToHtmlBodyTagsPipe, typeof ToPreviewHtmlPipe], [typeof UploadFilesBtnComponent, typeof HtmlViewComponent, typeof XmlTagTableViewComponent, typeof XmlTagViewComponent, typeof XmlTagRichTextViewComponent, typeof XmlTagHtmlViewComponent, typeof XmlTagTextViewComponent, typeof XmlTagHeaderTextViewComponent, typeof XmlTagHeaderInnerTextViewComponent, typeof XmlTagExternalVideoComponent, typeof HtmlRawViewComponent, typeof FileImageTagViewComponent, typeof XmlTagCustomWidgetComponent, typeof HtmlViewComponent, typeof MainEditorComponent, typeof FileIdSelectComponent, typeof TextEditorComponent, typeof ImageEditorComponent, typeof MainEditorBlockComponent, typeof VisualEditorComponent, typeof AddFilesBtnComponent, typeof HtmlRawEditorComponent, typeof CustomWidgetEditorComponent, typeof RichTextToHtmlPipe, typeof TagToSpanPipe, typeof ToPreviewPipe, typeof ToHtmlBodyTagsPipe, typeof ToPreviewHtmlPipe]>;
|
|
940
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
declare const CrocoHtmlOptionsToken = "croco-html-options";
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Сервис для обработки логики разметки
|
|
947
|
+
*/
|
|
948
|
+
declare class HtmlViewController {
|
|
949
|
+
onScriptCalled(script: string): void;
|
|
950
|
+
scriptCalled: Subject<string>;
|
|
951
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
952
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export { AddFilesBtnComponent, AngularMaterialTableMethods, BodyTagsExtensions, BootstrapTableMethods, CrocoHtmlFileOptionsService, CrocoHtmlModule, CrocoHtmlOptionsToken, CustomWidgetEditorComponent, CustomWidgetMethods, CustomWidgetTagDataConsts, ExternalVideoEditorComponent, ExternalVideoPlayers, ExternalVideoSupportedTypes, ExternalVideoTagDataConsts, FileIdSelectComponent, FileImageTagDataConsts, FileImageTagViewComponent, FileType, HtmlRawEditorComponent, HtmlRawViewComponent, HtmlViewComponent, HtmlViewController, ImageEditorComponent, ImageMethods, MainEditorBlockComponent, MainEditorComponent, RichTextToHtmlPipe, TableBuilder, TableMethods, TableTypes, TagToSpanPipe, TextEditorComponent, TextMethods, TextSimpleMethods, TextTag, TextTagDataConsts, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VideoMethods, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagRichTextViewComponent, XmlTagTableViewComponent, XmlTagTextViewComponent, XmlTagViewComponent, defaultLinkForDownload, defaultLinkVk, defaultLinkYouTube };
|
|
956
|
+
export type { AngularMaterialTableData, BaseApiResponse, CrocoHtmlEditorFileOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, ExternalVideoTag, ExternalVideoTagData, FileImageTag, FileImageTagData, FilePostingStarted, FileRelationModel, FileSimpleModel, FileUnifiedModel, GenericTextTag, GetListResult, GetListSearchModel, HtmlBodyTag, IMediaRequest, ImageRestrictions, LineBreakBlock, RichTextData, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTag, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem, TextBlock };
|