croco-html 5.0.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/croco-html.mjs +2261 -1127
- package/fesm2022/croco-html.mjs.map +1 -1
- package/index.d.ts +1338 -3
- package/package.json +7 -9
- 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,1340 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Type, EventEmitter, OnInit, OnDestroy, ElementRef, OnChanges, SimpleChanges, AfterViewInit, ChangeDetectorRef, AfterContentChecked, ViewContainerRef, ComponentRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpEvent } from '@angular/common/http';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
6
|
+
import * as i31 from '@angular/cdk/drag-drop';
|
|
7
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
8
|
+
import { SafeHtml, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
9
|
+
import * as i8 from '@angular/material/snack-bar';
|
|
10
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
11
|
+
import { ClipboardService } from 'ngx-clipboard';
|
|
12
|
+
import * as i21 from '@angular/material/dialog';
|
|
13
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
14
|
+
import { Router } from '@angular/router';
|
|
15
|
+
import * as i1 from '@angular/common';
|
|
16
|
+
import * as i2 from '@angular/forms';
|
|
17
|
+
import * as i3 from '@ng-select/ng-select';
|
|
18
|
+
import * as i4 from '@angular/material/badge';
|
|
19
|
+
import * as i5 from '@angular/material/table';
|
|
20
|
+
import * as i6 from '@angular/material/expansion';
|
|
21
|
+
import * as i7 from '@angular/material/form-field';
|
|
22
|
+
import * as i9 from '@angular/material/progress-bar';
|
|
23
|
+
import * as i10 from '@angular/material/progress-spinner';
|
|
24
|
+
import * as i11 from '@angular/material/tabs';
|
|
25
|
+
import * as i12 from '@angular/material/menu';
|
|
26
|
+
import * as i13 from '@angular/material/card';
|
|
27
|
+
import * as i14 from '@angular/material/select';
|
|
28
|
+
import * as i15 from '@angular/material/tooltip';
|
|
29
|
+
import * as i16 from '@angular/material/checkbox';
|
|
30
|
+
import * as i17 from '@angular/material/chips';
|
|
31
|
+
import * as i18 from '@angular/material/list';
|
|
32
|
+
import * as i19 from '@angular/material/button';
|
|
33
|
+
import * as i20 from '@angular/material/input';
|
|
34
|
+
import * as i22 from '@angular/material/paginator';
|
|
35
|
+
import * as i23 from '@angular/material/datepicker';
|
|
36
|
+
import * as i24 from '@angular/material/grid-list';
|
|
37
|
+
import * as i25 from '@angular/material/slide-toggle';
|
|
38
|
+
import * as i26 from '@angular/material/tree';
|
|
39
|
+
import * as i27 from '@angular/material/core';
|
|
40
|
+
import * as i28 from '@angular/material/autocomplete';
|
|
41
|
+
import * as i29 from '@angular/material/sidenav';
|
|
42
|
+
import * as i30 from '@angular/material/icon';
|
|
43
|
+
import * as i32 from '@angular/material/button-toggle';
|
|
44
|
+
|
|
45
|
+
interface TagItem {
|
|
46
|
+
/**
|
|
47
|
+
* Название тега
|
|
48
|
+
*/
|
|
49
|
+
tag: string;
|
|
50
|
+
displayValue: string;
|
|
51
|
+
isCustom: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface HtmlBodyTag {
|
|
54
|
+
tagDescription: TagItem;
|
|
55
|
+
innerHtml: string;
|
|
56
|
+
attributes: Object;
|
|
57
|
+
}
|
|
58
|
+
interface BaseApiResponse {
|
|
59
|
+
isSucceeded: boolean;
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface PublicFilesUploadResponse {
|
|
64
|
+
succeeded: boolean;
|
|
65
|
+
errorMessage: string;
|
|
66
|
+
fileIds: Array<number>;
|
|
67
|
+
filesUploadedEventId: string;
|
|
68
|
+
}
|
|
69
|
+
declare class PublicFileUploadService {
|
|
70
|
+
private readonly _httpClient;
|
|
71
|
+
private readonly baseUrl;
|
|
72
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
73
|
+
postFiles(files: FileList, applicationId: string | null): Observable<PublicFilesUploadResponse>;
|
|
74
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
75
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PublicFilesUploadResponse>;
|
|
76
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PublicFilesUploadResponse> | Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFileUploadService, never>;
|
|
78
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFileUploadService>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface PrivateFilesCreatedResult {
|
|
82
|
+
succeeded: boolean;
|
|
83
|
+
errorMessage: string;
|
|
84
|
+
setId: string;
|
|
85
|
+
fileIds: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
declare class PrivateFileUploadService {
|
|
88
|
+
private readonly _httpClient;
|
|
89
|
+
private readonly baseUrl;
|
|
90
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
91
|
+
postFiles(files: FileList, applicationId: string | null): Observable<PrivateFilesCreatedResult>;
|
|
92
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
93
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PrivateFilesCreatedResult>;
|
|
94
|
+
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PrivateFilesCreatedResult> | Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFileUploadService, never>;
|
|
96
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFileUploadService>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface ImageRestrictions {
|
|
100
|
+
maxWidth: number | undefined;
|
|
101
|
+
maxHeight: number | undefined;
|
|
102
|
+
}
|
|
103
|
+
interface FileImageTag {
|
|
104
|
+
tagName: string;
|
|
105
|
+
data: FileImageTagData;
|
|
106
|
+
}
|
|
107
|
+
interface FileImageTagData {
|
|
108
|
+
src: string;
|
|
109
|
+
fileId: string;
|
|
110
|
+
screenMediaRequest: string;
|
|
111
|
+
}
|
|
112
|
+
interface IImageMediaRequest {
|
|
113
|
+
minScreenWidth: number;
|
|
114
|
+
maxScreenWidth: number;
|
|
115
|
+
maxImageHeight?: number;
|
|
116
|
+
maxImageWidth?: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface FileAudioTagData {
|
|
120
|
+
fileId: string;
|
|
121
|
+
title?: string;
|
|
122
|
+
}
|
|
123
|
+
interface FileAudioTag {
|
|
124
|
+
tagName: string;
|
|
125
|
+
data: FileAudioTagData;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface InterfaceBlock {
|
|
129
|
+
/**
|
|
130
|
+
* Название тега
|
|
131
|
+
*/
|
|
132
|
+
tagName: string;
|
|
133
|
+
data: any;
|
|
134
|
+
validationResult?: BaseApiResponse | undefined;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class TagEditorService {
|
|
138
|
+
readonly tag$: BehaviorSubject<HtmlBodyTag>;
|
|
139
|
+
readonly presentOrEdit$: BehaviorSubject<boolean>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface IVisualEditorProps {
|
|
143
|
+
selectedVideoPlayer: string;
|
|
144
|
+
htmlRaw: string;
|
|
145
|
+
}
|
|
146
|
+
interface IMarkUpTagService {
|
|
147
|
+
/**
|
|
148
|
+
* Название тега
|
|
149
|
+
*/
|
|
150
|
+
tagName: string;
|
|
151
|
+
/**
|
|
152
|
+
* Описание тега
|
|
153
|
+
*/
|
|
154
|
+
shortDescription: string;
|
|
155
|
+
/**
|
|
156
|
+
* Функция для конвертации из модели редактора в Html строку разметки
|
|
157
|
+
* @param bodyTag тег
|
|
158
|
+
* @returns
|
|
159
|
+
*/
|
|
160
|
+
bodyTagToHtmlStringConverter: (bodyTag: HtmlBodyTag) => string;
|
|
161
|
+
extractBlockFromHtmlElement: (elem: HTMLElement, options: CrocoHtmlOptions) => InterfaceBlock;
|
|
162
|
+
/**
|
|
163
|
+
* Конвертация блока интерфейса в модель тега для редактора
|
|
164
|
+
* @param data
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
toBodyTag: (data: InterfaceBlock) => HtmlBodyTag;
|
|
168
|
+
/**
|
|
169
|
+
* Получить значение по умолчанию
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
getDefaultValue: (props: IVisualEditorProps) => HtmlBodyTag;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare class FileImageTagService implements IMarkUpTagService {
|
|
176
|
+
tagName: string;
|
|
177
|
+
shortDescription: string;
|
|
178
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
179
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
180
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
181
|
+
getDefaultValue(): HtmlBodyTag;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare enum TextAlignment {
|
|
185
|
+
Left = "left",
|
|
186
|
+
Center = "center",
|
|
187
|
+
Right = "right"
|
|
188
|
+
}
|
|
189
|
+
declare class TextTagDataConsts {
|
|
190
|
+
static readonly HAlign = "h-align";
|
|
191
|
+
}
|
|
192
|
+
declare class TextTagHtmlMarkupTagService implements IMarkUpTagService {
|
|
193
|
+
constructor(tagName: string, shortDescription: string);
|
|
194
|
+
tagName: string;
|
|
195
|
+
shortDescription: string;
|
|
196
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
197
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
198
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
199
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class ExternalVideoTagService implements IMarkUpTagService {
|
|
203
|
+
tagName: string;
|
|
204
|
+
shortDescription: string;
|
|
205
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
206
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
207
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
208
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class HtmlRawTagDataConsts {
|
|
212
|
+
static readonly TagName = "html-raw";
|
|
213
|
+
}
|
|
214
|
+
interface ExtractHtmlRawTag {
|
|
215
|
+
type: string;
|
|
216
|
+
data: ExtractHtmlRawTagData;
|
|
217
|
+
}
|
|
218
|
+
interface ExtractHtmlRawTagData {
|
|
219
|
+
innerHTML: string;
|
|
220
|
+
}
|
|
221
|
+
declare class HtmlRawTagService implements IMarkUpTagService {
|
|
222
|
+
tagName: string;
|
|
223
|
+
shortDescription: string;
|
|
224
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
225
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
226
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
227
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class DownloadButtonTagDataConsts {
|
|
231
|
+
static readonly TagName = "download-file-button";
|
|
232
|
+
static readonly TitleAttrName = "title";
|
|
233
|
+
static readonly LinkAttrName = "link";
|
|
234
|
+
}
|
|
235
|
+
interface DownloadButtonTag {
|
|
236
|
+
type: string;
|
|
237
|
+
data: DownloadButtonTagData;
|
|
238
|
+
}
|
|
239
|
+
interface DownloadButtonTagData {
|
|
240
|
+
title: string;
|
|
241
|
+
link: string;
|
|
242
|
+
}
|
|
243
|
+
declare class DownloadButtonTagService implements IMarkUpTagService {
|
|
244
|
+
tagName: string;
|
|
245
|
+
shortDescription: string;
|
|
246
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
247
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
248
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
249
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare class ButtonTagDataConsts {
|
|
253
|
+
static readonly TagName = "button";
|
|
254
|
+
static readonly TextAttrName = "text";
|
|
255
|
+
static readonly TypeAttrName = "type";
|
|
256
|
+
static readonly ClickAttrName = "click";
|
|
257
|
+
}
|
|
258
|
+
interface ButtonTag {
|
|
259
|
+
type: string;
|
|
260
|
+
data: ButtonTagData;
|
|
261
|
+
}
|
|
262
|
+
interface ButtonTagData {
|
|
263
|
+
text: string;
|
|
264
|
+
type: string;
|
|
265
|
+
click: string;
|
|
266
|
+
}
|
|
267
|
+
declare class ButtonTagService implements IMarkUpTagService {
|
|
268
|
+
tagName: string;
|
|
269
|
+
shortDescription: string;
|
|
270
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
271
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
272
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
273
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class CustomWidgetTagDataConsts {
|
|
277
|
+
static readonly TagName = "custom-widget";
|
|
278
|
+
static readonly TypeAttrName = "type";
|
|
279
|
+
static readonly DataIdAttrName = "data-id";
|
|
280
|
+
static readonly WidgetIdAttrName = "widget-id";
|
|
281
|
+
}
|
|
282
|
+
interface CustomWidgetTag {
|
|
283
|
+
type: string;
|
|
284
|
+
data: CustomWidgetTagData;
|
|
285
|
+
}
|
|
286
|
+
interface CustomWidgetTagData {
|
|
287
|
+
type: string;
|
|
288
|
+
dataId: string;
|
|
289
|
+
widgetId: string;
|
|
290
|
+
}
|
|
291
|
+
declare class CustomWidgetTagService implements IMarkUpTagService {
|
|
292
|
+
tagName: string;
|
|
293
|
+
shortDescription: string;
|
|
294
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
295
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
296
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
297
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
298
|
+
static ExtractCustomWidgetTagData(attributes: any): CustomWidgetTagData;
|
|
299
|
+
static ExtractCustomWidgetAttributes(customWidgetTagData: CustomWidgetTagData): {
|
|
300
|
+
type: string;
|
|
301
|
+
"data-id": string;
|
|
302
|
+
"widget-id": string;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface CrocoHtmlOptions {
|
|
307
|
+
/**
|
|
308
|
+
* Опции для отображения изображений.
|
|
309
|
+
*/
|
|
310
|
+
imageOptions: CrocoHtmlImageOptions;
|
|
311
|
+
/**
|
|
312
|
+
* Формат адреса до оригиналов файлов по идентификатору и имени
|
|
313
|
+
*/
|
|
314
|
+
fileIdAndNamePathUrlFormat: string;
|
|
315
|
+
/**
|
|
316
|
+
* Компонент для рендера кастомных виджетов
|
|
317
|
+
*/
|
|
318
|
+
customWidgetRendererComponent?: Type<any>;
|
|
319
|
+
/**
|
|
320
|
+
* Использовать кнопку для отрисовки кастомных виджетов
|
|
321
|
+
*/
|
|
322
|
+
useCustomWidgetsButton: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Показывать кнопку для запуска настроек
|
|
325
|
+
*/
|
|
326
|
+
showSettingsButton: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Кастомные объявленные теги
|
|
329
|
+
*/
|
|
330
|
+
definedCustomTags: {
|
|
331
|
+
[id: string]: IMarkUpTagService;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Рендеры для кастомных тегов.
|
|
335
|
+
*/
|
|
336
|
+
definedCustomTagViewRenderers: {
|
|
337
|
+
[id: string]: ICustomTagViewRender;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Обработчик нажатия на кнопку кастомных виджетов
|
|
341
|
+
* @returns
|
|
342
|
+
*/
|
|
343
|
+
customWidgetClickHandler: (editor: VisualEditorComponent) => void;
|
|
344
|
+
}
|
|
345
|
+
interface ICustomTagViewRender {
|
|
346
|
+
/**
|
|
347
|
+
* Компонент для визуального редактора croco-html-custom-widget-editor
|
|
348
|
+
* Должен содержать инпуты
|
|
349
|
+
* tagService: TagEditorService
|
|
350
|
+
*/
|
|
351
|
+
editorComponent?: Type<any>;
|
|
352
|
+
/**
|
|
353
|
+
* Иконка в визуальном редакторе croco-html-custom-widget-icon
|
|
354
|
+
*/
|
|
355
|
+
iconComponent?: Type<any>;
|
|
356
|
+
/**
|
|
357
|
+
* Компонент для отрисовки на интерфейсе croco-html-defined-custom-tag-view.
|
|
358
|
+
* Должен содержать input({required: true}) data: InterfaceBlock
|
|
359
|
+
*/
|
|
360
|
+
viewComponent?: Type<any>;
|
|
361
|
+
}
|
|
362
|
+
interface CrocoHtmlImageOptions {
|
|
363
|
+
/**
|
|
364
|
+
* Формат сслыки для показа изображений из файлов.
|
|
365
|
+
* Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
|
|
366
|
+
*/
|
|
367
|
+
sizeTypeAndFileIdImageUrlFormat: string;
|
|
368
|
+
/**
|
|
369
|
+
* Медиа запросы для изображений.
|
|
370
|
+
*/
|
|
371
|
+
globalMediaRequests?: IImageMediaRequest[];
|
|
372
|
+
/**
|
|
373
|
+
* Обработчик клика на изображение в теге file-image.
|
|
374
|
+
* @param imageData - данные изображения
|
|
375
|
+
*/
|
|
376
|
+
onImageClick?: (imageData: FileImageTagData) => void;
|
|
377
|
+
/**
|
|
378
|
+
* Опции для визуального редактора изображений.
|
|
379
|
+
*/
|
|
380
|
+
visualEditorOptions?: {
|
|
381
|
+
/**
|
|
382
|
+
* Максимальная высота изображения в режиме редактора в пикселях (например, 200).
|
|
383
|
+
* Если указано, изображения в ImageEditorComponent не будут превышать эту высоту.
|
|
384
|
+
*/
|
|
385
|
+
editorModeImageMaxHeight?: number;
|
|
386
|
+
/**
|
|
387
|
+
* Максимальная высота изображения в режиме предпросмотра в пикселях (например, 200).
|
|
388
|
+
* Если указано, изображения в FileImageTagViewComponent не будут превышать эту высоту.
|
|
389
|
+
*/
|
|
390
|
+
previewModeImageMaxHeight?: number;
|
|
391
|
+
};
|
|
392
|
+
}
|
|
1
393
|
/**
|
|
2
|
-
*
|
|
394
|
+
* Опции для работы с файлами в редакторе разметки
|
|
3
395
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
396
|
+
interface CrocoHtmlEditorFileOptions {
|
|
397
|
+
/**
|
|
398
|
+
* Использовать приватные файлы
|
|
399
|
+
*/
|
|
400
|
+
usePrivateFiles: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Свойство которое подставляется в фильтр с файлами
|
|
403
|
+
*/
|
|
404
|
+
applicationId: string | null;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
declare class CrocoHtmlFileOptionsService {
|
|
408
|
+
private readonly localStorageToken;
|
|
409
|
+
private readonly defaultOptions;
|
|
410
|
+
set(data: CrocoHtmlEditorFileOptions): void;
|
|
411
|
+
get(): CrocoHtmlEditorFileOptions;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlFileOptionsService, never>;
|
|
413
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrocoHtmlFileOptionsService>;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
interface FilePostingStarted {
|
|
417
|
+
filesCount: number;
|
|
418
|
+
}
|
|
419
|
+
declare class UploadFilesBtnComponent {
|
|
420
|
+
private readonly _publicFileUploadService;
|
|
421
|
+
private readonly _privateFileUploadService;
|
|
422
|
+
private readonly _htmlSettingsService;
|
|
423
|
+
private fileInput;
|
|
424
|
+
extAccepts: string;
|
|
425
|
+
isMultiple: boolean;
|
|
426
|
+
btnText: string;
|
|
427
|
+
hidden: boolean;
|
|
428
|
+
postFilesStarted: EventEmitter<FilePostingStarted>;
|
|
429
|
+
onPublicFilesUploaded: EventEmitter<PublicFilesUploadResponse>;
|
|
430
|
+
onPrivateFilesUploaded: EventEmitter<PrivateFilesCreatedResult>;
|
|
431
|
+
constructor(_publicFileUploadService: PublicFileUploadService, _privateFileUploadService: PrivateFileUploadService, _htmlSettingsService: CrocoHtmlFileOptionsService);
|
|
432
|
+
handleFileInput(e: Event): void;
|
|
433
|
+
clickFileInput(): void;
|
|
434
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadFilesBtnComponent, never>;
|
|
435
|
+
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>;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare class AddFilesBtnComponent {
|
|
439
|
+
postFilesStarted: EventEmitter<FilePostingStarted>;
|
|
440
|
+
fakeBtn: UploadFilesBtnComponent;
|
|
441
|
+
fileIds: number[];
|
|
442
|
+
constructor();
|
|
443
|
+
filesTagsReady: EventEmitter<HtmlBodyTag[]>;
|
|
444
|
+
postFilesStartedEventHandler(data: FilePostingStarted): void;
|
|
445
|
+
filesUploadedPublicHandler(data: PublicFilesUploadResponse): void;
|
|
446
|
+
filesUploadedPrivateHandler(data: PrivateFilesCreatedResult): void;
|
|
447
|
+
private buildFileTags;
|
|
448
|
+
handleClick(): void;
|
|
449
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFilesBtnComponent, never>;
|
|
450
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFilesBtnComponent, "croco-html-add-files-btn", never, {}, { "postFilesStarted": "postFilesStarted"; "filesTagsReady": "filesTagsReady"; }, never, never, true, never>;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
interface GetListResult<T> {
|
|
454
|
+
totalCount: number;
|
|
455
|
+
list: Array<T>;
|
|
456
|
+
}
|
|
457
|
+
interface FileRelationModel {
|
|
458
|
+
entityTypeFullName: string;
|
|
459
|
+
entityKey: string;
|
|
460
|
+
relationName: string;
|
|
461
|
+
relationValue: string;
|
|
462
|
+
relationCustomData: string;
|
|
463
|
+
}
|
|
464
|
+
interface SearchFilesRequest {
|
|
465
|
+
q: string;
|
|
466
|
+
fileName: string;
|
|
467
|
+
applicationId: string;
|
|
468
|
+
fileTypes: Array<FileType>;
|
|
469
|
+
count: number | null;
|
|
470
|
+
offSet: number;
|
|
471
|
+
}
|
|
472
|
+
declare enum FileType {
|
|
473
|
+
Undefined = "Undefined",
|
|
474
|
+
Unknown = "Unknown",
|
|
475
|
+
Image = "Image",
|
|
476
|
+
Audio = "Audio",
|
|
477
|
+
Video = "Video",
|
|
478
|
+
Document = "Document",
|
|
479
|
+
Archive = "Archive"
|
|
480
|
+
}
|
|
481
|
+
interface GetListSearchModel {
|
|
482
|
+
count: number | null;
|
|
483
|
+
offSet: number;
|
|
484
|
+
}
|
|
485
|
+
interface FileSimpleModel {
|
|
486
|
+
fileId: number;
|
|
487
|
+
fileName: string;
|
|
488
|
+
type: FileType;
|
|
489
|
+
downloadUrl: string;
|
|
490
|
+
}
|
|
491
|
+
interface FileInfoModel {
|
|
492
|
+
type: FileType;
|
|
493
|
+
name: string;
|
|
494
|
+
downloadUrl: string;
|
|
495
|
+
}
|
|
496
|
+
interface CommonFileInfoResultModel {
|
|
497
|
+
id: string;
|
|
498
|
+
isPrivateId: boolean;
|
|
499
|
+
fileInfo: FileInfoModel;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
declare class PublicFilesQueryService {
|
|
503
|
+
private readonly _httpClient;
|
|
504
|
+
private readonly _baseControllerUrl;
|
|
505
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
506
|
+
search(model: SearchFilesRequest): Observable<GetListResult<FileSimpleModel>>;
|
|
507
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFilesQueryService, never>;
|
|
508
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFilesQueryService>;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
interface PrivateFileNameModel {
|
|
512
|
+
id: string;
|
|
513
|
+
setId: string;
|
|
514
|
+
fileName: string;
|
|
515
|
+
type: FileType;
|
|
516
|
+
downloadUrl: string;
|
|
517
|
+
createdOn: string;
|
|
518
|
+
applicationId: string;
|
|
519
|
+
}
|
|
520
|
+
declare class PrivateFilesQueryService {
|
|
521
|
+
private readonly _httpClient;
|
|
522
|
+
private readonly _baseControllerUrl;
|
|
523
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
524
|
+
search(model: SearchFilesRequest): Observable<GetListResult<PrivateFileNameModel>>;
|
|
525
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFilesQueryService, never>;
|
|
526
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFilesQueryService>;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
declare class CommonFileInfoQueryService {
|
|
530
|
+
private readonly _httpClient;
|
|
531
|
+
private readonly _baseControllerUrl;
|
|
532
|
+
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
533
|
+
/**
|
|
534
|
+
* Получить информацию о файле на сервере по идентификатору.
|
|
535
|
+
* @param model
|
|
536
|
+
* @returns
|
|
537
|
+
*/
|
|
538
|
+
getInfo(id: string): rxjs.Observable<CommonFileInfoResultModel>;
|
|
539
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonFileInfoQueryService, never>;
|
|
540
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonFileInfoQueryService>;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
declare class AudioEditorComponent implements OnInit, OnDestroy {
|
|
544
|
+
private readonly _publicFileService;
|
|
545
|
+
private readonly _privateFileService;
|
|
546
|
+
private readonly _htmlSettingsService;
|
|
547
|
+
private readonly _commonFileInfoService;
|
|
548
|
+
hasAudioError: boolean;
|
|
549
|
+
errorMessage: string;
|
|
550
|
+
isPlaying: boolean;
|
|
551
|
+
isLoading: boolean;
|
|
552
|
+
currentTime: number;
|
|
553
|
+
duration: number;
|
|
554
|
+
volume: number;
|
|
555
|
+
isMuted: boolean;
|
|
556
|
+
audioSrc: string;
|
|
557
|
+
searchOrEdit: string;
|
|
558
|
+
files: Array<{
|
|
559
|
+
fileId: string;
|
|
560
|
+
fileName: string;
|
|
561
|
+
}>;
|
|
562
|
+
loading: boolean;
|
|
563
|
+
q: string;
|
|
564
|
+
private unsubscribe;
|
|
565
|
+
audioPlayer: ElementRef<HTMLAudioElement>;
|
|
566
|
+
tag: HtmlBodyTag;
|
|
567
|
+
presentOrEdit: boolean;
|
|
568
|
+
constructor(_publicFileService: PublicFilesQueryService, _privateFileService: PrivateFilesQueryService, _htmlSettingsService: CrocoHtmlFileOptionsService, _commonFileInfoService: CommonFileInfoQueryService);
|
|
569
|
+
get fileId(): string;
|
|
570
|
+
set fileId(value: string);
|
|
571
|
+
get title(): string;
|
|
572
|
+
set title(value: string);
|
|
573
|
+
hasFileId(): boolean;
|
|
574
|
+
private get audioElement();
|
|
575
|
+
onErrorHandler(): void;
|
|
576
|
+
removeAudioError(): void;
|
|
577
|
+
setError(message: string): void;
|
|
578
|
+
onFileIdChanged(fileId: string): void;
|
|
579
|
+
checkAndLoadAudioFile(): void;
|
|
580
|
+
loadAudioFile(): void;
|
|
581
|
+
onLoadedMetadata(): void;
|
|
582
|
+
onTimeUpdate(): void;
|
|
583
|
+
onEnded(): void;
|
|
584
|
+
onCanPlay(): void;
|
|
585
|
+
togglePlayPause(): void;
|
|
586
|
+
restart(): void;
|
|
587
|
+
rewind(): void;
|
|
588
|
+
forward(): void;
|
|
589
|
+
onVolumeChange(event: Event): void;
|
|
590
|
+
toggleMute(): void;
|
|
591
|
+
onSeekChange(event: Event): void;
|
|
592
|
+
formatTime(seconds: number): string;
|
|
593
|
+
getProgress(): number;
|
|
594
|
+
loadFiles(): void;
|
|
595
|
+
onSearchChanged(q: {
|
|
596
|
+
term: string;
|
|
597
|
+
items: object[];
|
|
598
|
+
}): void;
|
|
599
|
+
onFileSelected(fileId: string): void;
|
|
600
|
+
onFilesUploaded(fileIds: string[] | number[]): void;
|
|
601
|
+
removeAudio(): void;
|
|
602
|
+
ngOnInit(): void;
|
|
603
|
+
ngOnDestroy(): void;
|
|
604
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioEditorComponent, never>;
|
|
605
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioEditorComponent, "croco-html-audio-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
interface TableHeaderData {
|
|
609
|
+
type: "table-header";
|
|
610
|
+
columns: string[];
|
|
611
|
+
}
|
|
612
|
+
interface TableRowColumnData {
|
|
613
|
+
type: "table-row-column-data";
|
|
614
|
+
data: {
|
|
615
|
+
text: string;
|
|
616
|
+
children: InterfaceBlock[];
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
interface TableRowData {
|
|
620
|
+
type: "table-row-column";
|
|
621
|
+
columns: TableRowColumnData[];
|
|
622
|
+
}
|
|
623
|
+
interface TableData {
|
|
624
|
+
header: TableHeaderData;
|
|
625
|
+
rows: TableRowData[];
|
|
626
|
+
bootstrapHtml: string;
|
|
627
|
+
html: string;
|
|
628
|
+
angularMaterialTableDataCheck?: BaseApiResponse;
|
|
629
|
+
}
|
|
630
|
+
interface TableTagData {
|
|
631
|
+
type: "table";
|
|
632
|
+
data: TableData;
|
|
633
|
+
}
|
|
634
|
+
declare class TableTypes {
|
|
635
|
+
static readonly TableRowColumnData = "table-row-column-data";
|
|
636
|
+
static readonly Table = "table";
|
|
637
|
+
static readonly TableRowColumn = "table-row-column";
|
|
638
|
+
}
|
|
639
|
+
interface AngularMaterialTableData {
|
|
640
|
+
displayedColumns: string[];
|
|
641
|
+
data: object[];
|
|
642
|
+
}
|
|
643
|
+
declare class TableMethods {
|
|
644
|
+
static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
645
|
+
static checkTable(tableData: TableData): BaseApiResponse;
|
|
646
|
+
static getHeader(tableTag: HTMLTableElement): TableHeaderData;
|
|
647
|
+
static getTableRows(tableTag: HTMLTableElement, options: CrocoHtmlOptions): Array<TableRowData>;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare class AngularMaterialTableMethods {
|
|
651
|
+
static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
|
|
652
|
+
static checkHeaders(header: TableHeaderData): BaseApiResponse;
|
|
653
|
+
static checkAngularMaterialTableData(header: TableHeaderData, rows: TableRowData[], checkHeaders?: boolean): BaseApiResponse;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class FileAudioTagDataConsts {
|
|
657
|
+
static readonly TagName = "audio-player";
|
|
658
|
+
static readonly FileIdAttrName = "file-id";
|
|
659
|
+
static readonly TitleAttrName = "title";
|
|
660
|
+
}
|
|
661
|
+
declare class AudioMethods {
|
|
662
|
+
static buildUrl(fileId: string, fileName: string): string;
|
|
663
|
+
static isPrivateFileId(fileId: string): boolean;
|
|
664
|
+
static formatTime(seconds: number): string;
|
|
665
|
+
static calculateProgress(currentTime: number, duration: number): number;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare class BodyTagsExtensions {
|
|
669
|
+
private static readonly _tagServices;
|
|
670
|
+
static hasTagService(tagName: string, options: CrocoHtmlOptions): boolean;
|
|
671
|
+
static getTagService(tagName: string, options: CrocoHtmlOptions): IMarkUpTagService;
|
|
672
|
+
static convertToHtmlString(bodyTag: HtmlBodyTag, options: CrocoHtmlOptions): string;
|
|
673
|
+
static bodyTagsToHtml(bodyTags: HtmlBodyTag[], options: CrocoHtmlOptions): string;
|
|
674
|
+
static getBodyTags(html: string, options: CrocoHtmlOptions): HtmlBodyTag[];
|
|
675
|
+
static sanitizeInnerHtml(html: string): string;
|
|
676
|
+
static toBodyTag(data: InterfaceBlock, options: CrocoHtmlOptions): HtmlBodyTag;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare class BootstrapTableMethods {
|
|
680
|
+
static buildTable(header: TableHeaderData, rows: TableRowData[]): string;
|
|
681
|
+
static buildHeader(data: TableHeaderData): string;
|
|
682
|
+
static buildBody(rows: TableRowData[]): string;
|
|
683
|
+
static buildInnerTags(tags: InterfaceBlock[]): string;
|
|
684
|
+
static buildInnerTag(data: InterfaceBlock): string;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
declare class FileImageTagDataConsts {
|
|
688
|
+
static readonly TagName = "file-image";
|
|
689
|
+
static readonly FileIdAttrName = "file-id";
|
|
690
|
+
static readonly ScreenMediaRequest = "screen-media-request";
|
|
691
|
+
static readonly MaxScreenWidth = "max-screen-width";
|
|
692
|
+
static readonly MinScreenWidth = "min-screen-width";
|
|
693
|
+
static readonly MaxImageHeight = "max-image-height";
|
|
694
|
+
static readonly MaxImageWidth = "max-image-width";
|
|
695
|
+
static readonly DefaultValueForFileImage = "max-screen-width:1200,min-screen-width:900,max-image-height:300;max-screen-width:900,min-screen-width:600,max-image-height:200";
|
|
696
|
+
}
|
|
697
|
+
declare class ImageMethods {
|
|
698
|
+
static buildUrl(fileId: string, sizeType: string, options: CrocoHtmlOptions): string;
|
|
699
|
+
static buildSmallUrl(fileId: string, options: CrocoHtmlOptions): string;
|
|
700
|
+
static buildMediumUrl(fileId: string, options: CrocoHtmlOptions): string;
|
|
701
|
+
static isPrivateFileId(fileId: string): boolean;
|
|
702
|
+
static mediaRequestStringToArrayParser: (data: string) => IImageMediaRequest[];
|
|
703
|
+
static createMediaRequestValue(arr: string[], attribute: string): number | null;
|
|
704
|
+
static mediaRequestsArrayToString(data: IImageMediaRequest[]): string;
|
|
705
|
+
static mediaRequestToString(data: IImageMediaRequest): string;
|
|
706
|
+
static getImageRestrictionsByScreenSize(screenSize: number, requests: IImageMediaRequest[]): ImageRestrictions;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare class TableBuilder {
|
|
710
|
+
static getTableMarkUp(rows: number, cols: number, generateHeaders: boolean): string;
|
|
711
|
+
static getTableHeaderMarkUp(cols: number): string;
|
|
712
|
+
static getTableBodyMarkUp(cols: number, rows: number): string;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare class TextTags {
|
|
716
|
+
static readonly text = "text";
|
|
717
|
+
static readonly h1 = "h1";
|
|
718
|
+
static readonly h2 = "h2";
|
|
719
|
+
static readonly h3 = "h3";
|
|
720
|
+
static readonly h4 = "h4";
|
|
721
|
+
static readonly h5 = "h5";
|
|
722
|
+
static readonly h6 = "h6";
|
|
723
|
+
static headerTextTags: string[];
|
|
724
|
+
static allTextTags: string[];
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
declare const TextTag = "text";
|
|
728
|
+
interface GenericTextTag {
|
|
729
|
+
tagName: string;
|
|
730
|
+
data: SimpleTextTagData;
|
|
731
|
+
}
|
|
732
|
+
interface IHorizontalAlignmentExtractionResult {
|
|
733
|
+
succeeded: boolean;
|
|
734
|
+
result: TextAlignment;
|
|
735
|
+
errorMessage: string;
|
|
736
|
+
}
|
|
737
|
+
interface SimpleTextTagData {
|
|
738
|
+
textTagName: string;
|
|
739
|
+
text: string;
|
|
740
|
+
html: string;
|
|
741
|
+
horizontalAlignment: "left" | "right" | "center";
|
|
742
|
+
validationResult: BaseApiResponse;
|
|
743
|
+
}
|
|
744
|
+
declare class TextSimpleMethods {
|
|
745
|
+
static supportedTags: string[];
|
|
746
|
+
static extractTextTag(elem: HTMLElement): GenericTextTag;
|
|
747
|
+
static prepareText(s: string): string;
|
|
748
|
+
static extractHorizontalAlignment(elem: HTMLElement): IHorizontalAlignmentExtractionResult;
|
|
749
|
+
static validateTextHtml(html: string): BaseApiResponse;
|
|
750
|
+
static validateTag(element: Element): BaseApiResponse;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
declare class ExternalVideoTagDataConsts {
|
|
754
|
+
static readonly TagName = "external-video";
|
|
755
|
+
static readonly VideoTypeAttrName = "type";
|
|
756
|
+
static readonly LinkAttrName = "link";
|
|
757
|
+
static readonly UseResponsiveWrapperAttrName = "use-responsive-wrapper";
|
|
758
|
+
static readonly IframeAttrName = "iframe";
|
|
759
|
+
}
|
|
760
|
+
declare class ExternalVideoSupportedTypes {
|
|
761
|
+
static readonly Youtube = "youtube";
|
|
762
|
+
static readonly VkVideo = "vk-video";
|
|
763
|
+
static readonly Code = "code";
|
|
764
|
+
}
|
|
765
|
+
declare const ExternalVideoPlayers: {
|
|
766
|
+
type: string;
|
|
767
|
+
displayValue: string;
|
|
768
|
+
}[];
|
|
769
|
+
interface ExternalVideoTag {
|
|
770
|
+
type: string;
|
|
771
|
+
data: ExternalVideoTagData;
|
|
772
|
+
}
|
|
773
|
+
interface ExternalVideoTagData {
|
|
774
|
+
type: string;
|
|
775
|
+
link: string;
|
|
776
|
+
innerHtml: string;
|
|
777
|
+
useResponsiveWrapper: boolean;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
declare class XmlExtensions {
|
|
781
|
+
static formatXml(xml: string, tab?: string): string;
|
|
782
|
+
static tagsToLower(xml: string): string;
|
|
783
|
+
static replaceTagToLower(xml: string, tag: string): string;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare class ExternalVideoEditorComponent implements OnInit {
|
|
787
|
+
tag: HtmlBodyTag;
|
|
788
|
+
presentOrEdit: boolean;
|
|
789
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
790
|
+
tagData: ExternalVideoTagData;
|
|
791
|
+
linkText: string;
|
|
792
|
+
ngOnInit(): void;
|
|
793
|
+
linkChanged(): void;
|
|
794
|
+
onCheck(checked: boolean): void;
|
|
795
|
+
createLinkByIFrame(): void;
|
|
796
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoEditorComponent, never>;
|
|
797
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoEditorComponent, "croco-html-external-video-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
declare class HtmlRawEditorComponent implements OnChanges {
|
|
801
|
+
private readonly _sanitizer;
|
|
802
|
+
tag: HtmlBodyTag;
|
|
803
|
+
presentOrEdit: boolean;
|
|
804
|
+
safeHtml: SafeHtml;
|
|
805
|
+
constructor(_sanitizer: DomSanitizer);
|
|
806
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
807
|
+
onSafeHtmlChange(): void;
|
|
808
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
|
|
809
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
declare class ScreenWidthService {
|
|
813
|
+
private screenWidth;
|
|
814
|
+
constructor();
|
|
815
|
+
private onResize;
|
|
816
|
+
getScreenWidth(): Observable<number>;
|
|
817
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenWidthService, never>;
|
|
818
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenWidthService>;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
822
|
+
private readonly _options;
|
|
823
|
+
private readonly screenWidthService;
|
|
824
|
+
hasImageError: boolean;
|
|
825
|
+
searchOrEdit: string;
|
|
826
|
+
requests: IImageMediaRequest[];
|
|
827
|
+
imageMaxHeight: number;
|
|
828
|
+
imageMaxWidth: number;
|
|
829
|
+
isShowMediaRequest: boolean;
|
|
830
|
+
private unsubscribe;
|
|
831
|
+
tag: HtmlBodyTag;
|
|
832
|
+
presentOrEdit: boolean;
|
|
833
|
+
onErrorHandler(): void;
|
|
834
|
+
get fileId(): string;
|
|
835
|
+
set fileId(value: string);
|
|
836
|
+
constructor(_options: CrocoHtmlOptions, screenWidthService: ScreenWidthService);
|
|
837
|
+
getSrc(): string;
|
|
838
|
+
hasFileId(): boolean;
|
|
839
|
+
onFileIdChanged(fileId: string): void;
|
|
840
|
+
removeImageError(): void;
|
|
841
|
+
ngOnInit(): void;
|
|
842
|
+
requestChanged(): void;
|
|
843
|
+
addNewMediaRequest(): void;
|
|
844
|
+
deleteMediaRequest(index: number): void;
|
|
845
|
+
ngOnDestroy(): void;
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
type SpriteIdsType = 'align-center' | 'align-left' | 'align-right' | 'move-icon' | 'source-code-tab' | 'tag-button-audio-player' | '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';
|
|
851
|
+
|
|
852
|
+
declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
853
|
+
private readonly _cdref;
|
|
854
|
+
private readonly _options;
|
|
855
|
+
textArea: ElementRef;
|
|
856
|
+
imageUploadBtn: UploadFilesBtnComponent;
|
|
857
|
+
isLoading: boolean;
|
|
858
|
+
loadingText: string;
|
|
859
|
+
text: string;
|
|
860
|
+
htmlRaw: string;
|
|
861
|
+
alignment: TextAlignment;
|
|
862
|
+
textTag: string;
|
|
863
|
+
textTagOptions: TagItem[];
|
|
864
|
+
alignmentOptions: {
|
|
865
|
+
value: TextAlignment;
|
|
866
|
+
text: string;
|
|
867
|
+
}[];
|
|
868
|
+
isTagAdditionStarted: boolean;
|
|
869
|
+
showMarkUp: boolean;
|
|
870
|
+
tags: TagItem[];
|
|
871
|
+
videoPlayers: {
|
|
872
|
+
type: string;
|
|
873
|
+
displayValue: string;
|
|
874
|
+
}[];
|
|
875
|
+
selectedValue: string;
|
|
876
|
+
selectedVideoPlayer: string;
|
|
877
|
+
imageMode: 'select' | 'upload' | null;
|
|
878
|
+
protected readonly ExternalVideoTagDataConsts: typeof ExternalVideoTagDataConsts;
|
|
879
|
+
protected readonly HtmlRawTagDataConsts: typeof HtmlRawTagDataConsts;
|
|
880
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
881
|
+
protected readonly FileImageTagDataConsts: typeof FileImageTagDataConsts;
|
|
882
|
+
useHtmlRaw: boolean;
|
|
883
|
+
html: string;
|
|
884
|
+
isHtmlSet(): boolean;
|
|
885
|
+
clearHtml(): void;
|
|
886
|
+
getHtml(): string;
|
|
887
|
+
onHtmlChanged: EventEmitter<string>;
|
|
888
|
+
rendered: EventEmitter<boolean>;
|
|
889
|
+
bodyTags: HtmlBodyTag[];
|
|
890
|
+
saveBodyTags: HtmlBodyTag[];
|
|
891
|
+
useCustomWidgetsButton: boolean;
|
|
892
|
+
constructor(_cdref: ChangeDetectorRef, _options: CrocoHtmlOptions);
|
|
893
|
+
ngAfterViewInit(): void;
|
|
894
|
+
resetTextStyle(): void;
|
|
895
|
+
drop(event: CdkDragDrop<HtmlBodyTag[]>): void;
|
|
896
|
+
addTag(tag: HtmlBodyTag): void;
|
|
897
|
+
onTagChangedHandler(data: HtmlBodyTag, index: number): void;
|
|
898
|
+
onTagRemovedHandler(index: number): void;
|
|
899
|
+
recalculateHtml(): void;
|
|
900
|
+
recalculateBodyTags(): void;
|
|
901
|
+
selectTag(data: TagItem): void;
|
|
902
|
+
isTagRequiringForm(): boolean;
|
|
903
|
+
addTagWithForm(): void;
|
|
904
|
+
selectExistingImage(): void;
|
|
905
|
+
uploadNewImages(): void;
|
|
906
|
+
onImageFilesUploaded(fileIds: string[] | number[]): void;
|
|
907
|
+
addTextTag(): void;
|
|
908
|
+
addExternalVideoTag(): void;
|
|
909
|
+
addHtmlRawTag(): void;
|
|
910
|
+
resetTagForm(): void;
|
|
911
|
+
addRegularTag(): void;
|
|
912
|
+
isDefinedCustomWidget(tagName: string): boolean;
|
|
913
|
+
customWidgetsClickHandler(): void;
|
|
914
|
+
ngOnInit(): void;
|
|
915
|
+
setTagButton(tagName: string): SpriteIdsType;
|
|
916
|
+
setAlignButton(type: string): SpriteIdsType;
|
|
917
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditorComponent, never>;
|
|
918
|
+
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>;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
922
|
+
private readonly _clipboardService;
|
|
923
|
+
private readonly _snackBar;
|
|
924
|
+
private readonly _cdref;
|
|
925
|
+
private readonly _dialog;
|
|
926
|
+
private readonly _htmlSettingsService;
|
|
927
|
+
visualEditorRendered: boolean;
|
|
928
|
+
visualEditor: VisualEditorComponent;
|
|
929
|
+
showMarkUp: boolean;
|
|
930
|
+
useHtmlRaw: boolean;
|
|
931
|
+
html: string;
|
|
932
|
+
onHtmlChanged: EventEmitter<string>;
|
|
933
|
+
showSettingsButton: boolean;
|
|
934
|
+
constructor(_clipboardService: ClipboardService, _snackBar: MatSnackBar, _cdref: ChangeDetectorRef, _dialog: MatDialog, _htmlSettingsService: CrocoHtmlFileOptionsService, options: CrocoHtmlOptions);
|
|
935
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
936
|
+
ngAfterViewInit(): void;
|
|
937
|
+
ngAfterContentChecked(): void;
|
|
938
|
+
visualEditorRenderedHandler(): void;
|
|
939
|
+
onHtmlChangedHandler(html: string): void;
|
|
940
|
+
textAreaModelChangedHandler(): void;
|
|
941
|
+
recalculateBodyTags(): void;
|
|
942
|
+
copyMarkUp(): void;
|
|
943
|
+
ngOnInit(): void;
|
|
944
|
+
openSettingsModal(): void;
|
|
945
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
946
|
+
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>;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare class MainEditorBlockComponent implements OnDestroy {
|
|
950
|
+
private readonly _options;
|
|
951
|
+
textTags: string[];
|
|
952
|
+
private unsubscribe;
|
|
953
|
+
set tag(data: HtmlBodyTag);
|
|
954
|
+
_tag: HtmlBodyTag;
|
|
955
|
+
_tagService: TagEditorService;
|
|
956
|
+
presentOrEdit: boolean;
|
|
957
|
+
onTagSaved: EventEmitter<HtmlBodyTag>;
|
|
958
|
+
onTagRemoved: EventEmitter<HtmlBodyTag>;
|
|
959
|
+
constructor(_options: CrocoHtmlOptions);
|
|
960
|
+
save(): void;
|
|
961
|
+
cancelSave(): void;
|
|
962
|
+
isDefinedCustomTag(): boolean;
|
|
963
|
+
deleteItem(): void;
|
|
964
|
+
ngOnDestroy(): void;
|
|
965
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
|
|
966
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": true; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
declare class DefinedCustomEditorBlockComponent implements OnInit, OnDestroy {
|
|
970
|
+
private readonly _options;
|
|
971
|
+
private unsubscribe;
|
|
972
|
+
viewContainerRef: ViewContainerRef;
|
|
973
|
+
useDynamicComponent: boolean;
|
|
974
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
975
|
+
_tagService: TagEditorService;
|
|
976
|
+
_tag: HtmlBodyTag;
|
|
977
|
+
set tagService(data: TagEditorService);
|
|
978
|
+
constructor(_options: CrocoHtmlOptions);
|
|
979
|
+
getCustomComponent(): i0.Type<any>;
|
|
980
|
+
ngOnInit(): void;
|
|
981
|
+
ngOnDestroy(): void;
|
|
982
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefinedCustomEditorBlockComponent, never>;
|
|
983
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefinedCustomEditorBlockComponent, "croco-html-defined-custom-editor-block", never, { "tagService": { "alias": "tagService"; "required": true; }; }, {}, never, never, true, never>;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
declare class TextEditorComponent implements OnDestroy {
|
|
987
|
+
private unsubscribe;
|
|
988
|
+
_tag: HtmlBodyTag;
|
|
989
|
+
_tagService: TagEditorService;
|
|
990
|
+
set tagService(data: TagEditorService);
|
|
991
|
+
presentOrEdit: boolean;
|
|
992
|
+
TextAlignment: typeof TextAlignment;
|
|
993
|
+
_horizontalAlignment: TextAlignment;
|
|
994
|
+
changeData(): void;
|
|
995
|
+
getInnerHtml(): string;
|
|
996
|
+
ngOnDestroy(): void;
|
|
997
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
|
|
998
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tagService": { "alias": "tagService"; "required": true; }; }, {}, never, never, true, never>;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
declare class CustomWidgetEditorComponent implements OnInit {
|
|
1002
|
+
tag: HtmlBodyTag;
|
|
1003
|
+
presentOrEdit: boolean;
|
|
1004
|
+
tagData: CustomWidgetTagData;
|
|
1005
|
+
ngOnInit(): void;
|
|
1006
|
+
dataChanged(): void;
|
|
1007
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetEditorComponent, never>;
|
|
1008
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetEditorComponent, "croco-html-custom-widget-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
declare class CustomWidgetIconComponent implements OnInit {
|
|
1012
|
+
private readonly _options;
|
|
1013
|
+
viewContainerRef: ViewContainerRef;
|
|
1014
|
+
useDynamicComponent: boolean;
|
|
1015
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
1016
|
+
set tagName(tagName: string);
|
|
1017
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1018
|
+
getIconComponent(): i0.Type<any>;
|
|
1019
|
+
_tagName: string;
|
|
1020
|
+
_shortTagName: string;
|
|
1021
|
+
ngOnInit(): void;
|
|
1022
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetIconComponent, never>;
|
|
1023
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetIconComponent, "croco-html-custom-widget-icon", never, { "tagName": { "alias": "tagName"; "required": true; }; }, {}, never, never, true, never>;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
interface SearchQuestionsFormData {
|
|
1027
|
+
q: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface FileUnifiedModel {
|
|
1030
|
+
fileId: string;
|
|
1031
|
+
fileName: string;
|
|
1032
|
+
}
|
|
1033
|
+
declare class FileIdSelectComponent implements OnInit, OnChanges {
|
|
1034
|
+
private readonly _publicFileService;
|
|
1035
|
+
private readonly _privateFileService;
|
|
1036
|
+
private _htmlSettingsService;
|
|
1037
|
+
private readonly _options;
|
|
1038
|
+
q: string;
|
|
1039
|
+
labelText: string;
|
|
1040
|
+
fileId: string;
|
|
1041
|
+
loading: boolean;
|
|
1042
|
+
files: FileUnifiedModel[];
|
|
1043
|
+
onFileIdChanged: EventEmitter<string>;
|
|
1044
|
+
get crocoHtmlEditorFileOptions(): CrocoHtmlEditorFileOptions;
|
|
1045
|
+
constructor(_publicFileService: PublicFilesQueryService, _privateFileService: PrivateFilesQueryService, _htmlSettingsService: CrocoHtmlFileOptionsService, _options: CrocoHtmlOptions);
|
|
1046
|
+
onModelChanged(fileId: string): void;
|
|
1047
|
+
getSrc(fileId: string): string;
|
|
1048
|
+
ngOnInit(): void;
|
|
1049
|
+
loadFiles(): void;
|
|
1050
|
+
onSearchChanged(q: {
|
|
1051
|
+
term: string;
|
|
1052
|
+
items: object[];
|
|
1053
|
+
}): void;
|
|
1054
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1055
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileIdSelectComponent, never>;
|
|
1056
|
+
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>;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
declare class AudioPlayerTagViewComponent implements OnInit, OnDestroy, OnChanges {
|
|
1060
|
+
private readonly _options;
|
|
1061
|
+
private readonly _commonFileInfoService;
|
|
1062
|
+
hasAudioError: boolean;
|
|
1063
|
+
errorMessage: string;
|
|
1064
|
+
isPlaying: boolean;
|
|
1065
|
+
isLoading: boolean;
|
|
1066
|
+
currentTime: number;
|
|
1067
|
+
duration: number;
|
|
1068
|
+
volume: number;
|
|
1069
|
+
isMuted: boolean;
|
|
1070
|
+
audioSrc: string;
|
|
1071
|
+
private unsubscribe;
|
|
1072
|
+
audioPlayer: ElementRef<HTMLAudioElement>;
|
|
1073
|
+
data: InterfaceBlock;
|
|
1074
|
+
constructor(_options: CrocoHtmlOptions, _commonFileInfoService: CommonFileInfoQueryService);
|
|
1075
|
+
get fileId(): string;
|
|
1076
|
+
get title(): string;
|
|
1077
|
+
private get audioElement();
|
|
1078
|
+
hasFileId(): boolean;
|
|
1079
|
+
onErrorHandler(): void;
|
|
1080
|
+
setError(message: string): void;
|
|
1081
|
+
onLoadedMetadata(): void;
|
|
1082
|
+
onTimeUpdate(): void;
|
|
1083
|
+
onEnded(): void;
|
|
1084
|
+
onCanPlay(): void;
|
|
1085
|
+
togglePlayPause(): void;
|
|
1086
|
+
restart(): void;
|
|
1087
|
+
rewind(): void;
|
|
1088
|
+
forward(): void;
|
|
1089
|
+
onVolumeChange(event: Event): void;
|
|
1090
|
+
toggleMute(): void;
|
|
1091
|
+
onSeekChange(event: Event): void;
|
|
1092
|
+
formatTime(seconds: number): string;
|
|
1093
|
+
getProgress(): number;
|
|
1094
|
+
ngOnInit(): void;
|
|
1095
|
+
checkAndLoadAudioFile(): void;
|
|
1096
|
+
loadAudioFile(): void;
|
|
1097
|
+
ngOnDestroy(): void;
|
|
1098
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1099
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioPlayerTagViewComponent, never>;
|
|
1100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioPlayerTagViewComponent, "croco-html-audio-player-tag-view", never, { "data": { "alias": "data"; "required": true; }; }, {}, never, never, true, never>;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
declare class XmlTagExternalVideoComponent {
|
|
1104
|
+
set data(value: InterfaceBlock);
|
|
1105
|
+
set tagData(value: ExternalVideoTagData);
|
|
1106
|
+
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
1107
|
+
_block: ExternalVideoTagData;
|
|
1108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagExternalVideoComponent, never>;
|
|
1109
|
+
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>;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
declare class XmlTagHeaderInnerTextViewComponent {
|
|
1113
|
+
item: GenericTextTag;
|
|
1114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderInnerTextViewComponent, never>;
|
|
1115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderInnerTextViewComponent, "croco-html-xml-tag-header-inner-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
declare class XmlTagHeaderTextViewComponent {
|
|
1119
|
+
item: GenericTextTag;
|
|
1120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHeaderTextViewComponent, never>;
|
|
1121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHeaderTextViewComponent, "croco-html-xml-tag-header-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
declare class XmlTagHtmlViewComponent {
|
|
1125
|
+
html: string;
|
|
1126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagHtmlViewComponent, never>;
|
|
1127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagHtmlViewComponent, "croco-html-xml-tag-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
declare class XmlTagTextViewComponent {
|
|
1131
|
+
item: GenericTextTag;
|
|
1132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagTextViewComponent, never>;
|
|
1133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagTextViewComponent, "croco-html-xml-tag-text-view", never, { "item": { "alias": "item"; "required": true; }; }, {}, never, never, true, never>;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Сервис для обработки логики разметки
|
|
1138
|
+
*/
|
|
1139
|
+
declare class HtmlViewController {
|
|
1140
|
+
onScriptCalled(script: string): void;
|
|
1141
|
+
scriptCalled: Subject<string>;
|
|
1142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
1143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Сервис для прокидывания предрасчитанных данных для виджетов Html разметки.
|
|
1148
|
+
* Используется для оптимизации Http запросов за данными.
|
|
1149
|
+
*/
|
|
1150
|
+
declare class HtmlPageDataController {
|
|
1151
|
+
data: object | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* Получить данные.
|
|
1154
|
+
* @returns
|
|
1155
|
+
*/
|
|
1156
|
+
get<T>(): T | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* Установить данные.
|
|
1159
|
+
* @param data
|
|
1160
|
+
*/
|
|
1161
|
+
set(data: object): void;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
declare class XmlTagViewComponent {
|
|
1165
|
+
private readonly _options;
|
|
1166
|
+
data: InterfaceBlock[];
|
|
1167
|
+
dataController: HtmlPageDataController;
|
|
1168
|
+
isEditor: boolean;
|
|
1169
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1170
|
+
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
1171
|
+
isDefinedCustomTag(item: InterfaceBlock): boolean;
|
|
1172
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
|
|
1173
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": true; }; "dataController": { "alias": "dataController"; "required": true; }; "isEditor": { "alias": "isEditor"; "required": true; }; }, {}, never, never, true, never>;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
declare class HtmlRawViewComponent implements OnChanges {
|
|
1177
|
+
private readonly _sanitizer;
|
|
1178
|
+
private readonly router;
|
|
1179
|
+
rawHtml: string;
|
|
1180
|
+
safeHtml: SafeHtml;
|
|
1181
|
+
constructor(_sanitizer: DomSanitizer, router: Router);
|
|
1182
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1183
|
+
handleLink(event: MouseEvent): void;
|
|
1184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawViewComponent, never>;
|
|
1185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawViewComponent, "croco-html-raw-view", never, { "rawHtml": { "alias": "rawHtml"; "required": false; }; }, {}, never, never, true, never>;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
declare class FileImageTagViewComponent implements OnInit, OnDestroy {
|
|
1189
|
+
private readonly screenWidthService;
|
|
1190
|
+
private readonly _options;
|
|
1191
|
+
set item(item: InterfaceBlock);
|
|
1192
|
+
isEditor: boolean;
|
|
1193
|
+
imageSrc: string;
|
|
1194
|
+
imageData: FileImageTagData | null;
|
|
1195
|
+
requests: IImageMediaRequest[];
|
|
1196
|
+
private unsubscribe;
|
|
1197
|
+
imageMaxHeight: number;
|
|
1198
|
+
imageMaxWidth: number;
|
|
1199
|
+
constructor(screenWidthService: ScreenWidthService, _options: CrocoHtmlOptions);
|
|
1200
|
+
getMediaRequests(screenMediaRequest: string): IImageMediaRequest[];
|
|
1201
|
+
ngOnInit(): void;
|
|
1202
|
+
ngOnDestroy(): void;
|
|
1203
|
+
onImageClick(): void;
|
|
1204
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageTagViewComponent, never>;
|
|
1205
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageTagViewComponent, "croco-html-file-image-tag-view", never, { "item": { "alias": "item"; "required": false; }; "isEditor": { "alias": "isEditor"; "required": true; }; }, {}, never, never, true, never>;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
declare class XmlTagCustomWidgetComponent implements OnInit, OnDestroy {
|
|
1209
|
+
private readonly _options;
|
|
1210
|
+
viewContainerRef: ViewContainerRef;
|
|
1211
|
+
useDynamicComponent: boolean;
|
|
1212
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
1213
|
+
set tagData(value: CustomWidgetTagData);
|
|
1214
|
+
get tagData(): CustomWidgetTagData;
|
|
1215
|
+
_tagData: CustomWidgetTagData;
|
|
1216
|
+
tooltipData: string;
|
|
1217
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1218
|
+
ngOnInit(): void;
|
|
1219
|
+
ngOnDestroy(): void;
|
|
1220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagCustomWidgetComponent, never>;
|
|
1221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagCustomWidgetComponent, "croco-html-xml-tag-custom-widget", never, { "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
declare class DefinedCustomTagViewComponent implements OnInit, OnDestroy {
|
|
1225
|
+
private readonly _options;
|
|
1226
|
+
viewContainerRef: ViewContainerRef;
|
|
1227
|
+
useDynamicComponent: boolean;
|
|
1228
|
+
dynamicContainerRef: ComponentRef<any>;
|
|
1229
|
+
set data(value: InterfaceBlock);
|
|
1230
|
+
dataController: HtmlPageDataController;
|
|
1231
|
+
_data: InterfaceBlock;
|
|
1232
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1233
|
+
getCustomComponent(): i0.Type<any>;
|
|
1234
|
+
ngOnInit(): void;
|
|
1235
|
+
ngOnDestroy(): void;
|
|
1236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefinedCustomTagViewComponent, never>;
|
|
1237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefinedCustomTagViewComponent, "croco-html-defined-custom-tag-view", never, { "data": { "alias": "data"; "required": true; }; "dataController": { "alias": "dataController"; "required": true; }; }, {}, never, never, true, never>;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
declare class HtmlViewComponent {
|
|
1241
|
+
html: string;
|
|
1242
|
+
isEditor: boolean;
|
|
1243
|
+
dataController: HtmlPageDataController;
|
|
1244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
|
|
1245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": true; }; "isEditor": { "alias": "isEditor"; "required": false; }; "dataController": { "alias": "dataController"; "required": false; }; }, {}, never, never, true, never>;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
declare class TagToSpanPipe implements PipeTransform {
|
|
1249
|
+
transform(value: string[]): string;
|
|
1250
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagToSpanPipe, never>;
|
|
1251
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan", true>;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
declare class ToPreviewPipe implements PipeTransform {
|
|
1255
|
+
private readonly _options;
|
|
1256
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1257
|
+
transform(value: string): InterfaceBlock[];
|
|
1258
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
|
|
1259
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview", true>;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
declare class ToHtmlBodyTagsPipe implements PipeTransform {
|
|
1263
|
+
private readonly _options;
|
|
1264
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1265
|
+
transform(value: string): HtmlBodyTag[];
|
|
1266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
|
|
1267
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags", true>;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
declare class ToPreviewHtmlPipe implements PipeTransform {
|
|
1271
|
+
private readonly _options;
|
|
1272
|
+
constructor(_options: CrocoHtmlOptions);
|
|
1273
|
+
transform(value: string): InterfaceBlock[];
|
|
1274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewHtmlPipe, never>;
|
|
1275
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml", true>;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
declare class ErrorBannerComponent {
|
|
1279
|
+
message: string;
|
|
1280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorBannerComponent, never>;
|
|
1281
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorBannerComponent, "croco-html-error-banner", never, { "message": { "alias": "message"; "required": true; }; }, {}, never, never, true, never>;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
declare class VkVideoPlayerComponent {
|
|
1285
|
+
private sanitizer;
|
|
1286
|
+
set link(link: string);
|
|
1287
|
+
safeUrl: SafeResourceUrl;
|
|
1288
|
+
constructor(sanitizer: DomSanitizer);
|
|
1289
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VkVideoPlayerComponent, never>;
|
|
1290
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VkVideoPlayerComponent, "vk-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
declare class YoutubeVideoPlayerComponent {
|
|
1294
|
+
private sanitizer;
|
|
1295
|
+
set link(link: string);
|
|
1296
|
+
safeUrl: SafeResourceUrl;
|
|
1297
|
+
constructor(sanitizer: DomSanitizer);
|
|
1298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YoutubeVideoPlayerComponent, never>;
|
|
1299
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YoutubeVideoPlayerComponent, "youtube-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
declare class DownloadFileButtonEditorComponent {
|
|
1303
|
+
tag: HtmlBodyTag;
|
|
1304
|
+
presentOrEdit: boolean;
|
|
1305
|
+
tagData: DownloadButtonTagData;
|
|
1306
|
+
ngOnInit(): void;
|
|
1307
|
+
linkChanged(): void;
|
|
1308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileButtonEditorComponent, never>;
|
|
1309
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileButtonEditorComponent, "croco-html-download-file-button-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
declare class BlobCreateService {
|
|
1313
|
+
private readonly _http;
|
|
1314
|
+
constructor(_http: HttpClient);
|
|
1315
|
+
getBlob(link: string): Observable<Blob>;
|
|
1316
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlobCreateService, never>;
|
|
1317
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BlobCreateService>;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
declare class XmlTagDownloadFileButtonComponent {
|
|
1321
|
+
private readonly _blobCreateService;
|
|
1322
|
+
set data(value: InterfaceBlock);
|
|
1323
|
+
set tagData(value: DownloadButtonTagData);
|
|
1324
|
+
constructor(_blobCreateService: BlobCreateService);
|
|
1325
|
+
_block: DownloadButtonTagData;
|
|
1326
|
+
downloadFile(): void;
|
|
1327
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagDownloadFileButtonComponent, never>;
|
|
1328
|
+
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>;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
declare class CrocoHtmlModule {
|
|
1332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
|
|
1333
|
+
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 XmlTagViewComponent, typeof XmlTagHtmlViewComponent, typeof XmlTagTextViewComponent, typeof XmlTagHeaderTextViewComponent, typeof XmlTagHeaderInnerTextViewComponent, typeof XmlTagExternalVideoComponent, typeof HtmlRawViewComponent, typeof FileImageTagViewComponent, typeof AudioPlayerTagViewComponent, typeof XmlTagCustomWidgetComponent, typeof HtmlViewComponent, typeof DefinedCustomTagViewComponent, typeof MainEditorComponent, typeof FileIdSelectComponent, typeof TextEditorComponent, typeof ImageEditorComponent, typeof MainEditorBlockComponent, typeof VisualEditorComponent, typeof AddFilesBtnComponent, typeof HtmlRawEditorComponent, typeof CustomWidgetEditorComponent, typeof DefinedCustomEditorBlockComponent, typeof CustomWidgetIconComponent, typeof TagToSpanPipe, typeof ToPreviewPipe, typeof ToHtmlBodyTagsPipe, typeof ToPreviewHtmlPipe], [typeof UploadFilesBtnComponent, typeof HtmlViewComponent, typeof XmlTagViewComponent, typeof XmlTagHtmlViewComponent, typeof XmlTagTextViewComponent, typeof XmlTagHeaderTextViewComponent, typeof XmlTagHeaderInnerTextViewComponent, typeof XmlTagExternalVideoComponent, typeof HtmlRawViewComponent, typeof FileImageTagViewComponent, typeof AudioPlayerTagViewComponent, typeof XmlTagCustomWidgetComponent, typeof HtmlViewComponent, typeof DefinedCustomTagViewComponent, typeof MainEditorComponent, typeof FileIdSelectComponent, typeof TextEditorComponent, typeof ImageEditorComponent, typeof MainEditorBlockComponent, typeof VisualEditorComponent, typeof AddFilesBtnComponent, typeof HtmlRawEditorComponent, typeof CustomWidgetEditorComponent, typeof DefinedCustomEditorBlockComponent, typeof CustomWidgetIconComponent, typeof TagToSpanPipe, typeof ToPreviewPipe, typeof ToHtmlBodyTagsPipe, typeof ToPreviewHtmlPipe]>;
|
|
1334
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
declare const CrocoHtmlOptionsToken = "croco-html-options";
|
|
1338
|
+
|
|
1339
|
+
export { AddFilesBtnComponent, AngularMaterialTableMethods, AudioEditorComponent, AudioMethods, AudioPlayerTagViewComponent, BodyTagsExtensions, BootstrapTableMethods, ButtonTagDataConsts, ButtonTagService, CrocoHtmlFileOptionsService, CrocoHtmlModule, CrocoHtmlOptionsToken, CustomWidgetEditorComponent, CustomWidgetIconComponent, CustomWidgetTagDataConsts, CustomWidgetTagService, DefinedCustomEditorBlockComponent, DefinedCustomTagViewComponent, DownloadButtonTagDataConsts, DownloadButtonTagService, ExternalVideoEditorComponent, ExternalVideoPlayers, ExternalVideoSupportedTypes, ExternalVideoTagDataConsts, ExternalVideoTagService, FileAudioTagDataConsts, FileIdSelectComponent, FileImageTagDataConsts, FileImageTagService, FileImageTagViewComponent, FileType, HtmlPageDataController, HtmlRawEditorComponent, HtmlRawTagDataConsts, HtmlRawTagService, HtmlRawViewComponent, HtmlViewComponent, HtmlViewController, ImageEditorComponent, ImageMethods, MainEditorBlockComponent, MainEditorComponent, TableBuilder, TableMethods, TableTypes, TagEditorService, TagToSpanPipe, TextAlignment, TextEditorComponent, TextSimpleMethods, TextTag, TextTagDataConsts, TextTagHtmlMarkupTagService, TextTags, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe, UploadFilesBtnComponent, VisualEditorComponent, XmlExtensions, XmlTagCustomWidgetComponent, XmlTagExternalVideoComponent, XmlTagHeaderInnerTextViewComponent, XmlTagHeaderTextViewComponent, XmlTagHtmlViewComponent, XmlTagTextViewComponent, XmlTagViewComponent };
|
|
1340
|
+
export type { AngularMaterialTableData, BaseApiResponse, ButtonTag, ButtonTagData, CommonFileInfoResultModel, CrocoHtmlEditorFileOptions, CrocoHtmlImageOptions, CrocoHtmlOptions, CustomWidgetTag, CustomWidgetTagData, DownloadButtonTag, DownloadButtonTagData, ExternalVideoTag, ExternalVideoTagData, ExtractHtmlRawTag, ExtractHtmlRawTagData, FileAudioTag, FileAudioTagData, FileImageTag, FileImageTagData, FileInfoModel, FilePostingStarted, FileRelationModel, FileSimpleModel, FileUnifiedModel, GenericTextTag, GetListResult, GetListSearchModel, HtmlBodyTag, ICustomTagViewRender, IHorizontalAlignmentExtractionResult, IImageMediaRequest, IMarkUpTagService, IVisualEditorProps, ImageRestrictions, InterfaceBlock, SearchFilesRequest, SearchQuestionsFormData, SimpleTextTagData, TableData, TableHeaderData, TableRowColumnData, TableRowData, TableTagData, TagItem };
|