croco-html 4.4.4 → 4.5.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 +119 -89
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/button-editor/button-editor.component.d.ts +2 -3
- package/lib/components/editor/custom-widget-editor/custom-widget-editor.component.d.ts +3 -3
- package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts +2 -3
- package/lib/components/editor/external-video-editor/external-video-editor.component.d.ts +3 -3
- package/lib/components/editor/html-raw-editor/html-raw-editor.component.d.ts +3 -3
- package/lib/components/editor/image-editor/image-editor.component.d.ts +3 -3
- package/lib/components/editor/main-editor-block/components/defined-custom-editor-block/defined-custom-editor-block.component.d.ts +7 -11
- package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +10 -1
- package/lib/components/editor/text-editor/text-editor.component.d.ts +10 -4
- package/lib/index.d.ts +8 -8
- package/lib/models/editor-models.d.ts +3 -2
- package/lib/models/models.d.ts +0 -1
- package/lib/options/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { HtmlBodyTag } from "../../../models/models";
|
|
3
2
|
import { ButtonTagData } from '../../../tag-services/ButtonTagService';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class ButtonEditorComponent {
|
|
6
5
|
tag: HtmlBodyTag;
|
|
7
|
-
|
|
6
|
+
presentOrEdit: boolean;
|
|
8
7
|
tagData: ButtonTagData;
|
|
9
8
|
ngOnInit(): void;
|
|
10
9
|
linkChanged(): void;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonEditorComponent, "croco-html-button-editor", never, { "tag": { "alias": "tag"; "required":
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonEditorComponent, "croco-html-button-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
13
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { HtmlBodyTag } from "../../../models/models";
|
|
3
3
|
import { CustomWidgetTagData } from '../../../tag-services/CustomWidgetTagService';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CustomWidgetEditorComponent implements OnInit {
|
|
6
6
|
tag: HtmlBodyTag;
|
|
7
|
-
|
|
7
|
+
presentOrEdit: boolean;
|
|
8
8
|
tagData: CustomWidgetTagData;
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
dataChanged(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetEditorComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomWidgetEditorComponent, "croco-html-custom-widget-editor", never, { "tag": { "alias": "tag"; "required":
|
|
12
|
+
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>;
|
|
13
13
|
}
|
package/lib/components/editor/download-file-button-editor/download-file-button-editor.component.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { HtmlBodyTag } from "../../../models/models";
|
|
3
2
|
import { DownloadButtonTagData } from '../../../tag-services/DownloadButtonTagService';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class DownloadFileButtonEditorComponent {
|
|
6
5
|
tag: HtmlBodyTag;
|
|
7
|
-
|
|
6
|
+
presentOrEdit: boolean;
|
|
8
7
|
tagData: DownloadButtonTagData;
|
|
9
8
|
ngOnInit(): void;
|
|
10
9
|
linkChanged(): void;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileButtonEditorComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileButtonEditorComponent, "croco-html-download-file-button-editor", never, { "tag": { "alias": "tag"; "required":
|
|
11
|
+
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>;
|
|
13
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ExternalVideoTagData, ExternalVideoSupportedTypes } from '../../../extensions';
|
|
3
3
|
import { HtmlBodyTag } from '../../../models/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ExternalVideoEditorComponent implements OnInit {
|
|
6
6
|
tag: HtmlBodyTag;
|
|
7
|
-
|
|
7
|
+
presentOrEdit: boolean;
|
|
8
8
|
protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
|
|
9
9
|
tagData: ExternalVideoTagData;
|
|
10
10
|
linkText: string;
|
|
@@ -13,5 +13,5 @@ export declare class ExternalVideoEditorComponent implements OnInit {
|
|
|
13
13
|
onCheck(checked: boolean): void;
|
|
14
14
|
createLinkByIFrame(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoEditorComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoEditorComponent, "croco-html-external-video-editor", never, { "tag": { "alias": "tag"; "required":
|
|
16
|
+
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>;
|
|
17
17
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { HtmlBodyTag } from '../../../models/models';
|
|
3
3
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class HtmlRawEditorComponent implements OnChanges {
|
|
6
6
|
private readonly _sanitizer;
|
|
7
7
|
tag: HtmlBodyTag;
|
|
8
|
-
|
|
8
|
+
presentOrEdit: boolean;
|
|
9
9
|
safeHtml: SafeHtml;
|
|
10
10
|
constructor(_sanitizer: DomSanitizer);
|
|
11
11
|
ngOnChanges(changes: SimpleChanges): void;
|
|
12
12
|
onSafeHtmlChange(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlRawEditorComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlRawEditorComponent, "croco-html-html-raw-editor", never, { "tag": { "alias": "tag"; "required":
|
|
14
|
+
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>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { HtmlBodyTag } from '../../../models/models';
|
|
3
3
|
import { ScreenWidthService } from "../../../services/screen-width.service";
|
|
4
4
|
import { CrocoHtmlOptions } from '../../../options';
|
|
@@ -15,8 +15,8 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
isShowMediaRequest: boolean;
|
|
16
16
|
private unsubscribe;
|
|
17
17
|
tag: HtmlBodyTag;
|
|
18
|
+
presentOrEdit: boolean;
|
|
18
19
|
onErrorHandler(): void;
|
|
19
|
-
onTagUpdated: EventEmitter<HtmlBodyTag>;
|
|
20
20
|
get fileId(): string;
|
|
21
21
|
set fileId(value: string);
|
|
22
22
|
constructor(_options: CrocoHtmlOptions, screenWidthService: ScreenWidthService);
|
|
@@ -30,5 +30,5 @@ export declare class ImageEditorComponent implements OnInit, OnDestroy {
|
|
|
30
30
|
deleteMediaRequest(index: number): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required":
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "croco-html-image-editor", never, { "tag": { "alias": "tag"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentRef,
|
|
2
|
-
import { HtmlBodyTag,
|
|
1
|
+
import { ComponentRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { HtmlBodyTag, ISingleTagStorage } from '../../../../../models';
|
|
3
3
|
import { CrocoHtmlOptions } from '../../../../../options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DefinedCustomEditorBlockComponent implements OnInit, OnDestroy {
|
|
@@ -7,18 +7,14 @@ export declare class DefinedCustomEditorBlockComponent implements OnInit, OnDest
|
|
|
7
7
|
viewContainerRef: ViewContainerRef;
|
|
8
8
|
useDynamicComponent: boolean;
|
|
9
9
|
dynamicContainerRef: ComponentRef<any>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
_tagStorage: ISingleTagStorage;
|
|
11
|
+
_tag: HtmlBodyTag;
|
|
12
|
+
set tagStorage(data: ISingleTagStorage);
|
|
13
|
+
presentOrEdit: boolean;
|
|
13
14
|
constructor(_options: CrocoHtmlOptions);
|
|
14
15
|
getCustomComponent(): import("@angular/core").Type<any>;
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
ngOnDestroy(): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefinedCustomEditorBlockComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DefinedCustomEditorBlockComponent, "croco-html-defined-custom-editor-block", never, { "
|
|
19
|
-
}
|
|
20
|
-
export declare class SingleTagVisualEditor implements ISingleTagVisualEditor {
|
|
21
|
-
private readonly _emitter;
|
|
22
|
-
constructor(_emitter: EventEmitter<HtmlBodyTag>);
|
|
23
|
-
tagUpdated(tag: HtmlBodyTag): void;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefinedCustomEditorBlockComponent, "croco-html-defined-custom-editor-block", never, { "tagStorage": { "alias": "tagStorage"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
24
20
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { HtmlBodyTag } from '../../../models/models';
|
|
3
3
|
import { CrocoHtmlOptions } from '../../../options';
|
|
4
|
+
import { ISingleTagStorage } from '../../../models/editor-models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class MainEditorBlockComponent {
|
|
6
7
|
private readonly _options;
|
|
7
8
|
textTags: string[];
|
|
8
|
-
tag: HtmlBodyTag;
|
|
9
|
+
set tag(data: HtmlBodyTag);
|
|
10
|
+
_tag: HtmlBodyTag;
|
|
11
|
+
_tagStorage: SingleTagStorage;
|
|
12
|
+
presentOrEdit: boolean;
|
|
9
13
|
onTagSaved: EventEmitter<HtmlBodyTag>;
|
|
10
14
|
onTagRemoved: EventEmitter<HtmlBodyTag>;
|
|
11
15
|
constructor(_options: CrocoHtmlOptions);
|
|
@@ -16,3 +20,8 @@ export declare class MainEditorBlockComponent {
|
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorBlockComponent, never>;
|
|
17
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorBlockComponent, "croco-html-main-editor-block", never, { "tag": { "alias": "tag"; "required": true; }; }, { "onTagSaved": "onTagSaved"; "onTagRemoved": "onTagRemoved"; }, never, never, true, never>;
|
|
18
22
|
}
|
|
23
|
+
export declare class SingleTagStorage implements ISingleTagStorage {
|
|
24
|
+
private _tag;
|
|
25
|
+
set(tag: HtmlBodyTag): void;
|
|
26
|
+
get(): HtmlBodyTag;
|
|
27
|
+
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { HtmlBodyTag } from '../../../models/models';
|
|
2
|
+
import { ISingleTagStorage } from '../../../models';
|
|
3
|
+
import { TextAlignment } from '../../../tag-services';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class TextEditorComponent {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
_tag: HtmlBodyTag;
|
|
7
|
+
_tagStorage: ISingleTagStorage;
|
|
8
|
+
set tagStorage(data: ISingleTagStorage);
|
|
9
|
+
presentOrEdit: boolean;
|
|
10
|
+
TextAlignment: typeof TextAlignment;
|
|
11
|
+
_horizontalAlignment: TextAlignment;
|
|
12
|
+
changeData(): void;
|
|
7
13
|
getInnerHtml(): string;
|
|
8
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "croco-html-text-editor", never, { "tagStorage": { "alias": "tagStorage"; "required": true; }; "presentOrEdit": { "alias": "presentOrEdit"; "required": true; }; }, {}, never, never, true, never>;
|
|
10
16
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ import { MainEditorBlockComponent } from "./components";
|
|
|
3
3
|
import { MainEditorComponent } from "./components";
|
|
4
4
|
import { TextEditorComponent } from "./components";
|
|
5
5
|
import { FileIdSelectComponent } from "./components";
|
|
6
|
-
import {
|
|
7
|
-
import { XmlTagHtmlViewComponent } from "./components";
|
|
6
|
+
import { XmlTagTextViewComponent } from "./components";
|
|
8
7
|
import { XmlTagViewComponent } from "./components";
|
|
9
8
|
import { CustomWidgetEditorComponent } from "./components";
|
|
10
9
|
import { VisualEditorComponent } from './components';
|
|
11
10
|
import { AddFilesBtnComponent } from './components';
|
|
12
11
|
import { XmlTagExternalVideoComponent } from "./components";
|
|
13
12
|
import { HtmlRawEditorComponent } from "./components";
|
|
14
|
-
import {
|
|
13
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
15
14
|
import { TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
16
15
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
16
|
import { HtmlRawViewComponent } from "./components";
|
|
17
|
+
import { HtmlViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
21
|
-
export declare const CrocoPipes: (typeof
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
23
|
-
export declare const MaterialModules: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof FileIdSelectComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof HtmlViewComponent | typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent)[];
|
|
21
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof TagToSpanPipe)[];
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof VisualEditorComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof ToPreviewPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof CustomWidgetIconComponent | typeof TextEditorComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof CustomWidgetEditorComponent | typeof DefinedCustomEditorBlockComponent | typeof FileIdSelectComponent | typeof XmlTagTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagCustomWidgetComponent | typeof DefinedCustomTagViewComponent | typeof XmlTagViewComponent | typeof UploadFilesBtnComponent | typeof TagToSpanPipe)[];
|
|
23
|
+
export declare const MaterialModules: (typeof MatTabsModule)[];
|
package/lib/models/models.d.ts
CHANGED
package/lib/options/index.d.ts
CHANGED