croco-html 3.2.0 → 3.3.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/html-editor-settings-modal/html-editor-settings-modal.component.mjs +3 -3
- package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +21 -12
- package/esm2022/lib/options/index.mjs +1 -1
- package/esm2022/lib/services/croco-html-file-options.service.mjs +2 -2
- package/fesm2022/croco-html.mjs +21 -13
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts +3 -3
- package/lib/components/editor/main-editor/main-editor.component.d.ts +5 -3
- package/lib/index.d.ts +4 -4
- package/lib/options/index.d.ts +4 -0
- package/lib/services/croco-html-file-options.service.d.ts +0 -1
- package/package.json +1 -1
package/lib/components/editor/html-editor-settings-modal/html-editor-settings-modal.component.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { MatDialogRef } from "@angular/material/dialog";
|
|
|
4
4
|
import { CrocoHtmlFileOptionsService } from "../../../services/croco-html-file-options.service";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class HtmlEditorSettingsModalComponent implements OnInit {
|
|
7
|
-
private fb;
|
|
8
|
-
dialogRef: MatDialogRef<HtmlEditorSettingsModalComponent>;
|
|
9
|
-
private _htmlSettingsService;
|
|
7
|
+
private readonly fb;
|
|
8
|
+
readonly dialogRef: MatDialogRef<HtmlEditorSettingsModalComponent>;
|
|
9
|
+
private readonly _htmlSettingsService;
|
|
10
10
|
form: FormGroup;
|
|
11
11
|
constructor(fb: FormBuilder, dialogRef: MatDialogRef<HtmlEditorSettingsModalComponent>, _htmlSettingsService: CrocoHtmlFileOptionsService);
|
|
12
12
|
ngOnInit(): void;
|
|
@@ -3,6 +3,7 @@ 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
5
|
import { MatDialog } from "@angular/material/dialog";
|
|
6
|
+
import { CrocoHtmlOptions } from "../../../options";
|
|
6
7
|
import { CrocoHtmlFileOptionsService } from "../../../services/croco-html-file-options.service";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MainEditorComponent implements OnInit, AfterContentChecked, AfterViewInit {
|
|
@@ -10,14 +11,15 @@ export declare class MainEditorComponent implements OnInit, AfterContentChecked,
|
|
|
10
11
|
private readonly _snackBar;
|
|
11
12
|
private readonly _cdref;
|
|
12
13
|
private readonly _dialog;
|
|
13
|
-
private _htmlSettingsService;
|
|
14
|
+
private readonly _htmlSettingsService;
|
|
14
15
|
visualEditorRendered: boolean;
|
|
15
16
|
visualEditor: VisualEditorComponent;
|
|
16
17
|
showMarkUp: boolean;
|
|
17
18
|
useHtmlRaw: boolean;
|
|
18
19
|
html: string;
|
|
19
20
|
onHtmlChanged: EventEmitter<string>;
|
|
20
|
-
|
|
21
|
+
showSettingsButton: boolean;
|
|
22
|
+
constructor(_clipboardService: ClipboardService, _snackBar: MatSnackBar, _cdref: ChangeDetectorRef, _dialog: MatDialog, _htmlSettingsService: CrocoHtmlFileOptionsService, options: CrocoHtmlOptions);
|
|
21
23
|
ngAfterViewInit(): void;
|
|
22
24
|
ngAfterContentChecked(): void;
|
|
23
25
|
visualEditorRenderedHandler(): void;
|
|
@@ -26,7 +28,7 @@ export declare class MainEditorComponent implements OnInit, AfterContentChecked,
|
|
|
26
28
|
recalculateBodyTags(): void;
|
|
27
29
|
copyMarkUp(): void;
|
|
28
30
|
ngOnInit(): void;
|
|
29
|
-
|
|
31
|
+
openSettingsModal(): void;
|
|
30
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MainEditorComponent, never>;
|
|
31
33
|
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>;
|
|
32
34
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components
|
|
|
18
18
|
import { HtmlRawViewComponent } from "./components";
|
|
19
19
|
import { HtmlViewComponent } from "./components";
|
|
20
20
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
21
|
-
export declare const EditorComponents: (typeof
|
|
22
|
-
export declare const XmlComponents: (typeof HtmlViewComponent | typeof
|
|
23
|
-
export declare const CrocoPipes: (typeof
|
|
24
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
21
|
+
export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent)[];
|
|
22
|
+
export declare const XmlComponents: (typeof HtmlViewComponent | typeof XmlTagCustomWidgetComponent | typeof FileImageTagViewComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
|
|
23
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
|
|
24
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToHtmlBodyTagsPipe | typeof VisualEditorComponent | typeof HtmlViewComponent | typeof MainEditorComponent | typeof ToPreviewPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent | typeof ImageEditorComponent | typeof XmlTagCustomWidgetComponent | typeof FileImageTagViewComponent | typeof UploadFilesBtnComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof HtmlRawEditorComponent | typeof TextEditorComponent | typeof CustomWidgetEditorComponent | typeof TagToSpanPipe)[];
|
|
25
25
|
export declare const MaterialModules: (typeof MatTabsModule)[];
|
package/lib/options/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface CrocoHtmlOptions {
|
|
|
21
21
|
* Использовать кнопку для отрисовки кастомных виджетов
|
|
22
22
|
*/
|
|
23
23
|
useCustomWidgetsButton: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Показывать кнопку для запуска настроек
|
|
26
|
+
*/
|
|
27
|
+
showSettingsButton: boolean;
|
|
24
28
|
/**
|
|
25
29
|
* Обработчик нажатия на кнопку кастомных виджетов
|
|
26
30
|
* @returns
|
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CrocoHtmlFileOptionsService {
|
|
4
4
|
private readonly localStorageToken;
|
|
5
5
|
private readonly defaultOptions;
|
|
6
|
-
constructor();
|
|
7
6
|
set(data: CrocoHtmlEditorFileOptions): void;
|
|
8
7
|
get(): CrocoHtmlEditorFileOptions;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlFileOptionsService, never>;
|