croco-html 2.21.0 → 2.24.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/esm2022/lib/components/editor/button-editor/button-editor.component.mjs +1 -1
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +3 -7
- package/esm2022/lib/components/html-view/html-view.component.mjs +3 -7
- package/esm2022/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.mjs +14 -16
- package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +3 -7
- package/esm2022/lib/services/HtmlViewController.mjs +11 -1
- package/esm2022/lib/services/index.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/croco-html.mjs +28 -31
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/main-editor/main-editor.component.d.ts +1 -3
- package/lib/components/html-view/html-view.component.d.ts +1 -3
- package/lib/components/xml-tags/xml-tag-custom-button/xml-tag-button.component.d.ts +3 -2
- package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +1 -3
- package/lib/index.d.ts +5 -5
- package/lib/services/HtmlViewController.d.ts +3 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2,7 +2,6 @@ import { AfterContentChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, On
|
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import { ClipboardService } from 'ngx-clipboard';
|
|
4
4
|
import { VisualEditorComponent } from '../visual-editor/visual-editor.component';
|
|
5
|
-
import { HtmlViewController } from '../../../services/HtmlViewController';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
8
7
|
private _clipboardService;
|
|
@@ -12,7 +11,6 @@ export declare class MainEditorComponent implements OnInit, AfterContentChecked,
|
|
|
12
11
|
visualEditor: VisualEditorComponent;
|
|
13
12
|
showMarkUp: boolean;
|
|
14
13
|
useHtmlRaw: boolean;
|
|
15
|
-
controller: HtmlViewController;
|
|
16
14
|
html: string;
|
|
17
15
|
onHtmlChanged: EventEmitter<string>;
|
|
18
16
|
constructor(_clipboardService: ClipboardService, _snackBar: MatSnackBar, _cdref: ChangeDetectorRef);
|
|
@@ -25,5 +23,5 @@ export declare class MainEditorComponent implements OnInit, AfterContentChecked,
|
|
|
25
23
|
copyMarkUp(): void;
|
|
26
24
|
ngOnInit(): void;
|
|
27
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MainEditorComponent, "croco-html-main-editor", never, { "showMarkUp": { "alias": "showMarkUp"; "required": false; }; "useHtmlRaw": { "alias": "useHtmlRaw"; "required": false; }; "
|
|
26
|
+
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>;
|
|
29
27
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { HtmlViewController } from '../../services/HtmlViewController';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class HtmlViewComponent {
|
|
4
3
|
html: string;
|
|
5
|
-
controller: HtmlViewController;
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; };
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HtmlViewComponent, "croco-html-view", never, { "html": { "alias": "html"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
6
|
}
|
|
@@ -3,11 +3,12 @@ import { ButtonTagData } from "../../../extensions/ButtonMethods";
|
|
|
3
3
|
import { HtmlViewController } from '../../../services/HtmlViewController';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class XmlTagButtonComponent {
|
|
6
|
+
private readonly _controller;
|
|
6
7
|
set data(value: InterfaceBlock);
|
|
7
8
|
set tagData(value: ButtonTagData);
|
|
8
|
-
|
|
9
|
+
constructor(_controller: HtmlViewController);
|
|
9
10
|
_block: ButtonTagData;
|
|
10
11
|
clickHandler(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagButtonComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagButtonComponent, "croco-html-xml-tag-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; };
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagButtonComponent, "croco-html-xml-tag-button", never, { "data": { "alias": "data"; "required": false; }; "tagData": { "alias": "tagData"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
14
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
|
|
2
|
-
import { HtmlViewController } from '../../../services/HtmlViewController';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class XmlTagViewComponent {
|
|
5
4
|
data: InterfaceBlock[];
|
|
6
|
-
controller: HtmlViewController;
|
|
7
5
|
isHeaderTextTag(item: InterfaceBlock): boolean;
|
|
8
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; };
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
8
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ import { VisualEditorComponent } from './components';
|
|
|
11
11
|
import { AddFilesBtnComponent } from './components';
|
|
12
12
|
import { XmlTagExternalVideoComponent } from "./components";
|
|
13
13
|
import { HtmlRawEditorComponent } from "./components";
|
|
14
|
-
import {
|
|
14
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
15
15
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
16
16
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
17
17
|
import { HtmlRawViewComponent } from "./components";
|
|
18
|
-
export declare const EditorComponents: (typeof
|
|
19
|
-
export declare const XmlComponents: (typeof
|
|
18
|
+
export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof MainEditorComponent)[];
|
|
19
|
+
export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
|
|
20
20
|
export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof ToPreviewPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
21
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
22
|
-
export declare const MaterialModules: (typeof
|
|
21
|
+
export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ToPreviewPipe | typeof MainEditorComponent | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
|
|
22
|
+
export declare const MaterialModules: (typeof MatFormFieldModule)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Subject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Сервис для обработки логики разметки
|
|
4
5
|
*/
|
|
5
6
|
export declare class HtmlViewController {
|
|
6
7
|
onScriptCalled(script: string): void;
|
|
7
8
|
scriptCalled: Subject<string>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlViewController, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HtmlViewController>;
|
|
8
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HtmlViewController";
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED