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/lib/extensions/Tags.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare class Tags {
|
|
2
|
-
static readonly Text = "text";
|
|
3
|
-
static readonly H1 = "h1";
|
|
4
|
-
static readonly H2 = "h2";
|
|
5
|
-
static readonly H3 = "h3";
|
|
6
|
-
static readonly H4 = "h4";
|
|
7
|
-
static readonly H5 = "h5";
|
|
8
|
-
static readonly H6 = "h6";
|
|
9
|
-
static readonly HtmlRaw: string;
|
|
10
|
-
static readonly FileImage: string;
|
|
11
|
-
static readonly Table = "table";
|
|
12
|
-
static readonly RichText = "rich-text";
|
|
13
|
-
static readonly ExternalVideo: string;
|
|
14
|
-
static readonly UnsupportedTag = "unsupported-tag";
|
|
15
|
-
static readonly CustomWidget: string;
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface TextBlock {
|
|
2
|
-
type: "text-block" | "text-sup-block" | "text-sub-block";
|
|
3
|
-
data: {
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface LineBreakBlock {
|
|
8
|
-
type: "line-break";
|
|
9
|
-
}
|
|
10
|
-
export interface RichTextData {
|
|
11
|
-
type: "rich-text";
|
|
12
|
-
data: {
|
|
13
|
-
children: Array<TextBlock | LineBreakBlock>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare class TextTags {
|
|
17
|
-
static readonly text = "text";
|
|
18
|
-
static readonly h1 = "h1";
|
|
19
|
-
static readonly h2 = "h2";
|
|
20
|
-
static readonly h3 = "h3";
|
|
21
|
-
static readonly h4 = "h4";
|
|
22
|
-
static readonly h5 = "h5";
|
|
23
|
-
static readonly h6 = "h6";
|
|
24
|
-
static headerTextTags: string[];
|
|
25
|
-
static allTextTags: string[];
|
|
26
|
-
}
|
|
27
|
-
export declare class TextMethods {
|
|
28
|
-
static ExtractRichTextData(elem: HTMLElement): RichTextData;
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseApiResponse } from "../models";
|
|
2
|
-
export declare class TextTagDataConsts {
|
|
3
|
-
static HAlign: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const TextTag = "text";
|
|
6
|
-
export interface SimpleTextTag {
|
|
7
|
-
type: "text";
|
|
8
|
-
data: SimpleTextTagData;
|
|
9
|
-
}
|
|
10
|
-
export interface GenericTextTag {
|
|
11
|
-
type: string;
|
|
12
|
-
data: SimpleTextTagData;
|
|
13
|
-
}
|
|
14
|
-
export interface SimpleTextTagData {
|
|
15
|
-
textTagName: string;
|
|
16
|
-
text: string;
|
|
17
|
-
html: string;
|
|
18
|
-
horizontalAlignment: "left" | "right" | "center";
|
|
19
|
-
validationResult: BaseApiResponse;
|
|
20
|
-
}
|
|
21
|
-
export declare class TextSimpleMethods {
|
|
22
|
-
static supportedTags: string[];
|
|
23
|
-
static ExtractTextTag(elem: HTMLElement): SimpleTextTag;
|
|
24
|
-
static ValidateTextHtml(html: string): BaseApiResponse;
|
|
25
|
-
static ValidateTag(element: Element): BaseApiResponse;
|
|
26
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare class ExternalVideoTagDataConsts {
|
|
2
|
-
static TagName: string;
|
|
3
|
-
static VideoTypeAttrName: string;
|
|
4
|
-
static LinkAttrName: string;
|
|
5
|
-
static UseResponsiveWrapperAttrName: string;
|
|
6
|
-
static IframeAttrName: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class ExternalVideoSupportedTypes {
|
|
9
|
-
static Youtube: string;
|
|
10
|
-
static VkVideo: string;
|
|
11
|
-
static Code: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const ExternalVideoPlayers: {
|
|
14
|
-
type: string;
|
|
15
|
-
displayValue: string;
|
|
16
|
-
}[];
|
|
17
|
-
export interface ExternalVideoTag {
|
|
18
|
-
type: string;
|
|
19
|
-
data: ExternalVideoTagData;
|
|
20
|
-
}
|
|
21
|
-
export interface ExternalVideoTagData {
|
|
22
|
-
type: string;
|
|
23
|
-
link: string;
|
|
24
|
-
innerHtml: string;
|
|
25
|
-
useResponsiveWrapper: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare class VideoMethods {
|
|
28
|
-
static ExtractExternalVideoTag(elem: HTMLElement): ExternalVideoTag;
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './AngularMaterialTableMethods';
|
|
2
|
-
export * from './BodyTagsExtensions';
|
|
3
|
-
export * from './BootstrapTableMethods';
|
|
4
|
-
export * from './ImageMethods';
|
|
5
|
-
export * from './CustomWidgetMethods';
|
|
6
|
-
export * from './TableBuilder';
|
|
7
|
-
export * from './TableMethods';
|
|
8
|
-
export * from './TextMethods';
|
|
9
|
-
export * from './TextSimpleMethods';
|
|
10
|
-
export * from './VideoMethods';
|
|
11
|
-
export * from './XmlExtensions';
|
package/lib/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ImageEditorComponent } from "./components";
|
|
2
|
-
import { MainEditorBlockComponent } from "./components";
|
|
3
|
-
import { MainEditorComponent } from "./components";
|
|
4
|
-
import { TextEditorComponent } from "./components";
|
|
5
|
-
import { FileIdSelectComponent } from "./components";
|
|
6
|
-
import { XmlTagHeaderTextViewComponent } from "./components";
|
|
7
|
-
import { XmlTagHtmlViewComponent } from "./components";
|
|
8
|
-
import { XmlTagRichTextViewComponent } from "./components";
|
|
9
|
-
import { XmlTagTableViewComponent } from "./components";
|
|
10
|
-
import { XmlTagViewComponent } from "./components";
|
|
11
|
-
import { CustomWidgetEditorComponent } from "./components";
|
|
12
|
-
import { VisualEditorComponent } from './components';
|
|
13
|
-
import { AddFilesBtnComponent } from './components';
|
|
14
|
-
import { XmlTagExternalVideoComponent } from "./components";
|
|
15
|
-
import { HtmlRawEditorComponent } from "./components";
|
|
16
|
-
import { MatBadgeModule } from '@angular/material/badge';
|
|
17
|
-
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
18
|
-
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
19
|
-
import { HtmlRawViewComponent } from "./components";
|
|
20
|
-
import { XmlTagCustomWidgetComponent } from "./components";
|
|
21
|
-
export declare const EditorComponents: (typeof MainEditorComponent | typeof FileIdSelectComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent)[];
|
|
22
|
-
export declare const XmlComponents: (typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof XmlTagCustomWidgetComponent)[];
|
|
23
|
-
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
24
|
-
export declare const CrocoHtmlDeclarations: (typeof MainEditorComponent | typeof FileIdSelectComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof XmlTagCustomWidgetComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
|
|
25
|
-
export declare const MaterialModules: (typeof MatBadgeModule)[];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface ImageRestrictions {
|
|
2
|
-
maxWidth: number | undefined;
|
|
3
|
-
maxHeight: number | undefined;
|
|
4
|
-
}
|
|
5
|
-
export interface FileImageTag {
|
|
6
|
-
type: string;
|
|
7
|
-
data: FileImageTagData;
|
|
8
|
-
}
|
|
9
|
-
export interface FileImageTagData {
|
|
10
|
-
src: string;
|
|
11
|
-
fileId: string;
|
|
12
|
-
screenMediaRequest: string;
|
|
13
|
-
}
|
|
14
|
-
export interface IMediaRequest {
|
|
15
|
-
minScreenWidth: number;
|
|
16
|
-
maxScreenWidth: number;
|
|
17
|
-
maxImageHeight?: number;
|
|
18
|
-
maxImageWidth?: number;
|
|
19
|
-
}
|
package/lib/models/index.d.ts
DELETED
package/lib/models/models.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface TagItem {
|
|
2
|
-
tag: string;
|
|
3
|
-
displayValue: string;
|
|
4
|
-
isCustom: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface HtmlBodyTag {
|
|
7
|
-
tagDescription: TagItem;
|
|
8
|
-
innerHtml: string;
|
|
9
|
-
attributes: Object;
|
|
10
|
-
presentOrEdit: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface BaseApiResponse {
|
|
13
|
-
isSucceeded: boolean;
|
|
14
|
-
message: string;
|
|
15
|
-
}
|
package/lib/options/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Type } from "@angular/core";
|
|
2
|
-
import { IMediaRequest } from "../models";
|
|
3
|
-
import { VisualEditorComponent } from "../components";
|
|
4
|
-
export interface CrocoHtmlOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Формат сслыки для показа изображений из публичных файлов.
|
|
7
|
-
* Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
|
|
8
|
-
*/
|
|
9
|
-
publicImageResizedUrlFormat: string;
|
|
10
|
-
/**
|
|
11
|
-
* Формат сслыки для показа изображений из приватный файлов.
|
|
12
|
-
* Содержит переменные: {sizeType} - тип размера, {fileId} - идентификатор изображения.
|
|
13
|
-
*/
|
|
14
|
-
privateImageResizedUrlFormat: string;
|
|
15
|
-
globalMediaRequests?: IMediaRequest[];
|
|
16
|
-
/**
|
|
17
|
-
* Компонент для рендера кастомных виджетов
|
|
18
|
-
*/
|
|
19
|
-
customWidgetRendererComponent?: Type<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Использовать кнопку для отрисовки кастомных виджетов
|
|
22
|
-
*/
|
|
23
|
-
useCustomWidgetsButton: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Показывать кнопку для запуска настроек
|
|
26
|
-
*/
|
|
27
|
-
showSettingsButton: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Обработчик нажатия на кнопку кастомных виджетов
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
customWidgetClickHandler: (editor: VisualEditorComponent) => void;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Опции для работы с файлами в редакторе разметки
|
|
36
|
-
*/
|
|
37
|
-
export interface CrocoHtmlEditorFileOptions {
|
|
38
|
-
/**
|
|
39
|
-
* Использовать приватные файлы
|
|
40
|
-
*/
|
|
41
|
-
usePrivateFiles: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Свойство которое подставляется в фильтр с файлами
|
|
44
|
-
*/
|
|
45
|
-
applicationId: string | null;
|
|
46
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@angular/core";
|
|
2
|
-
import { RichTextData } from "../extensions/TextMethods";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RichTextToHtmlPipe implements PipeTransform {
|
|
5
|
-
transform(value: RichTextData): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextToHtmlPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<RichTextToHtmlPipe, "richTextToHtml", true>;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TagToSpanPipe implements PipeTransform {
|
|
4
|
-
transform(value: string[]): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TagToSpanPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<TagToSpanPipe, "tagToSpan", true>;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { HtmlBodyTag } from '../models/models';
|
|
3
|
-
import { CrocoHtmlOptions } from '../options';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ToHtmlBodyTagsPipe implements PipeTransform {
|
|
6
|
-
private readonly _options;
|
|
7
|
-
constructor(_options: CrocoHtmlOptions);
|
|
8
|
-
transform(value: string): HtmlBodyTag[];
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToHtmlBodyTagsPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToHtmlBodyTagsPipe, "tohtmlbodytags", true>;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
3
|
-
import { CrocoHtmlOptions } from '../options';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ToPreviewHtmlPipe implements PipeTransform {
|
|
6
|
-
private readonly _options;
|
|
7
|
-
constructor(_options: CrocoHtmlOptions);
|
|
8
|
-
transform(value: string): InterfaceBlock[];
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewHtmlPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewHtmlPipe, "topreviewhtml", true>;
|
|
11
|
-
}
|
package/lib/pipes/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@angular/core";
|
|
2
|
-
import { SpriteIdsType } from "../../sprites-ids.type";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SpriteIconPathPipe implements PipeTransform {
|
|
5
|
-
transform(id: SpriteIdsType): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpriteIconPathPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SpriteIconPathPipe, "spriteIconPath", true>;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
3
|
-
import { CrocoHtmlOptions } from '../options';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ToPreviewPipe implements PipeTransform {
|
|
6
|
-
private readonly _options;
|
|
7
|
-
constructor(_options: CrocoHtmlOptions);
|
|
8
|
-
transform(value: string): InterfaceBlock[];
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToPreviewPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ToPreviewPipe, "topreview", true>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CrocoHtmlEditorFileOptions } from "../options";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CrocoHtmlFileOptionsService {
|
|
4
|
-
private readonly localStorageToken;
|
|
5
|
-
private readonly defaultOptions;
|
|
6
|
-
set(data: CrocoHtmlEditorFileOptions): void;
|
|
7
|
-
get(): CrocoHtmlEditorFileOptions;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlFileOptionsService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrocoHtmlFileOptionsService>;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Сервис для обработки логики разметки
|
|
5
|
-
*/
|
|
6
|
-
export declare class HtmlViewController {
|
|
7
|
-
onScriptCalled(script: string): void;
|
|
8
|
-
scriptCalled: Subject<string>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpEvent } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface UploadPrivateFilesWithProgressEvent {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
response?: PrivateFilesCreatedResult;
|
|
7
|
-
uploadingLoaded: number;
|
|
8
|
-
uploadingTotal: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PrivateFilesCreatedResult {
|
|
11
|
-
succeeded: boolean;
|
|
12
|
-
errorMessage: string;
|
|
13
|
-
setId: string;
|
|
14
|
-
fileIds: Array<string>;
|
|
15
|
-
}
|
|
16
|
-
export declare class PrivateFileUploadService {
|
|
17
|
-
private readonly _httpClient;
|
|
18
|
-
private readonly baseUrl;
|
|
19
|
-
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
20
|
-
postFiles(files: FileList, applicationId: string | null): Observable<PrivateFilesCreatedResult>;
|
|
21
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
22
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PrivateFilesCreatedResult>;
|
|
23
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PrivateFilesCreatedResult> | Observable<HttpEvent<PrivateFilesCreatedResult>>;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFileUploadService, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFileUploadService>;
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { GetListResult, FileType, SearchFilesRequest } from "./PublicFilesQueryService";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface PrivateFileNameModel {
|
|
6
|
-
id: string;
|
|
7
|
-
setId: string;
|
|
8
|
-
fileName: string;
|
|
9
|
-
type: FileType;
|
|
10
|
-
downloadUrl: string;
|
|
11
|
-
createdOn: string;
|
|
12
|
-
applicationId: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class PrivateFilesQueryService {
|
|
15
|
-
private readonly _httpClient;
|
|
16
|
-
private readonly _baseControllerUrl;
|
|
17
|
-
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
18
|
-
search(model: SearchFilesRequest): Observable<GetListResult<PrivateFileNameModel>>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrivateFilesQueryService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PrivateFilesQueryService>;
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpEvent } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface UploadPublicFilesWithProgressEvent {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
response?: PublicFilesUploadResponse;
|
|
7
|
-
uploadingLoaded: number;
|
|
8
|
-
uploadingTotal: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PublicFilesUploadResponse {
|
|
11
|
-
succeeded: boolean;
|
|
12
|
-
errorMessage: string;
|
|
13
|
-
fileIds: Array<number>;
|
|
14
|
-
filesUploadedEventId: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class PublicFileUploadService {
|
|
17
|
-
private readonly _httpClient;
|
|
18
|
-
private readonly baseUrl;
|
|
19
|
-
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
20
|
-
postFiles(files: FileList, applicationId: string | null): Observable<PublicFilesUploadResponse>;
|
|
21
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress: true): Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
22
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress?: false): Observable<PublicFilesUploadResponse>;
|
|
23
|
-
postFilesInner(formData: FormData, applicationId: string | null, withProgress: boolean): Observable<PublicFilesUploadResponse> | Observable<HttpEvent<PublicFilesUploadResponse>>;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFileUploadService, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFileUploadService>;
|
|
26
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface GetListResult<T> {
|
|
5
|
-
totalCount: number;
|
|
6
|
-
list: Array<T>;
|
|
7
|
-
}
|
|
8
|
-
export interface FileRelationModel {
|
|
9
|
-
entityTypeFullName: string;
|
|
10
|
-
entityKey: string;
|
|
11
|
-
relationName: string;
|
|
12
|
-
relationValue: string;
|
|
13
|
-
relationCustomData: string;
|
|
14
|
-
}
|
|
15
|
-
export interface SearchFilesRequest {
|
|
16
|
-
q: string;
|
|
17
|
-
fileName: string;
|
|
18
|
-
applicationId: string;
|
|
19
|
-
fileTypes: Array<FileType>;
|
|
20
|
-
count: number | null;
|
|
21
|
-
offSet: number;
|
|
22
|
-
}
|
|
23
|
-
export declare enum FileType {
|
|
24
|
-
Undefined = "Undefined",
|
|
25
|
-
Unknown = "Unknown",
|
|
26
|
-
Image = "Image",
|
|
27
|
-
Audio = "Audio",
|
|
28
|
-
Video = "Video",
|
|
29
|
-
Document = "Document",
|
|
30
|
-
Archive = "Archive"
|
|
31
|
-
}
|
|
32
|
-
export interface GetListSearchModel {
|
|
33
|
-
count: number | null;
|
|
34
|
-
offSet: number;
|
|
35
|
-
}
|
|
36
|
-
export interface FileSimpleModel {
|
|
37
|
-
fileId: number;
|
|
38
|
-
fileName: string;
|
|
39
|
-
type: FileType;
|
|
40
|
-
downloadUrl: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class PublicFilesQueryService {
|
|
43
|
-
private readonly _httpClient;
|
|
44
|
-
private readonly _baseControllerUrl;
|
|
45
|
-
constructor(_httpClient: HttpClient, baseUrl: string);
|
|
46
|
-
search(model: SearchFilesRequest): Observable<GetListResult<FileSimpleModel>>;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PublicFilesQueryService, never>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PublicFilesQueryService>;
|
|
49
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BlobCreateService {
|
|
5
|
-
private readonly _http;
|
|
6
|
-
constructor(_http: HttpClient);
|
|
7
|
-
getBlob(link: string): Observable<Blob>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BlobCreateService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BlobCreateService>;
|
|
10
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScreenWidthService {
|
|
4
|
-
private screenWidth;
|
|
5
|
-
constructor();
|
|
6
|
-
private onResize;
|
|
7
|
-
getScreenWidth(): Observable<number>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenWidthService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenWidthService>;
|
|
10
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './lib/components';
|
|
2
|
-
export * from './lib/pipes';
|
|
3
|
-
export * from './lib/extensions';
|
|
4
|
-
export * from './lib/croco-html.module';
|
|
5
|
-
export * from './lib/models';
|
|
6
|
-
export * from './lib/consts';
|
|
7
|
-
export * from './lib/services';
|
|
8
|
-
export * from './lib/options';
|
package/sprites-ids.type.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export 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';
|