@firestitch/content 12.2.6 → 12.2.7
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/app/enums/editor-type.d.ts +6 -0
- package/app/enums/index.d.ts +1 -0
- package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +12 -4
- package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +10 -3
- package/app/modules/editor/components/editor/editor.component.d.ts +12 -4
- package/bundles/firestitch-content.umd.js +333 -166
- package/bundles/firestitch-content.umd.js.map +1 -1
- package/esm2015/app/enums/editor-type.js +8 -0
- package/esm2015/app/enums/index.js +2 -1
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +86 -31
- package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +88 -34
- package/esm2015/app/modules/editor/components/editor/editor.component.js +58 -13
- package/fesm2015/firestitch-content.js +235 -84
- package/fesm2015/firestitch-content.js.map +1 -1
- package/package.json +1 -1
package/app/enums/index.d.ts
CHANGED
@@ -2,7 +2,10 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
4
4
|
import { FsMessage } from '@firestitch/message';
|
5
|
+
import { FsPrompt } from '@firestitch/prompt';
|
6
|
+
import { EditorType } from '../../../../enums';
|
5
7
|
import { FsContentConfig } from '../../../../interfaces';
|
8
|
+
import { EditorComponent } from '../../../editor/components/editor';
|
6
9
|
import * as i0 from "@angular/core";
|
7
10
|
export declare class ContentLayoutEditorComponent implements OnInit, OnDestroy {
|
8
11
|
private _data;
|
@@ -10,6 +13,8 @@ export declare class ContentLayoutEditorComponent implements OnInit, OnDestroy {
|
|
10
13
|
private _message;
|
11
14
|
private _dialog;
|
12
15
|
private _cdRef;
|
16
|
+
private _prompt;
|
17
|
+
editor: EditorComponent;
|
13
18
|
contentLayout: {
|
14
19
|
id?: number;
|
15
20
|
styles?: string;
|
@@ -17,7 +22,8 @@ export declare class ContentLayoutEditorComponent implements OnInit, OnDestroy {
|
|
17
22
|
name?: string;
|
18
23
|
};
|
19
24
|
config: FsContentConfig;
|
20
|
-
|
25
|
+
EditorType: typeof EditorType;
|
26
|
+
focused: any;
|
21
27
|
title: any;
|
22
28
|
editors: {
|
23
29
|
html: boolean;
|
@@ -28,13 +34,15 @@ export declare class ContentLayoutEditorComponent implements OnInit, OnDestroy {
|
|
28
34
|
constructor(_data: {
|
29
35
|
contentLayout: any;
|
30
36
|
contentConfig: FsContentConfig;
|
31
|
-
}, _dialogRef: MatDialogRef<ContentLayoutEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
|
37
|
+
}, _dialogRef: MatDialogRef<ContentLayoutEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef, _prompt: FsPrompt);
|
32
38
|
ngOnInit(): void;
|
33
39
|
editorToggleChange(event: MatButtonToggleChange): void;
|
34
40
|
ngOnDestroy(): void;
|
35
41
|
_initContentLayout(contentLayout: any): void;
|
36
|
-
|
37
|
-
|
42
|
+
editorFocused(type: any): void;
|
43
|
+
save: () => import("rxjs").Observable<import("../../../../interfaces").FsContentLayout | import("../../../../interfaces").FsContentStyle>;
|
44
|
+
saveContentPage(): import("rxjs").Observable<import("../../../../interfaces").FsContentLayout>;
|
45
|
+
cancel(): void;
|
38
46
|
openSettings(): void;
|
39
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContentLayoutEditorComponent, never>;
|
40
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContentLayoutEditorComponent, "ng-component", never, {}, {}, never, never>;
|
package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts
CHANGED
@@ -2,7 +2,9 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
3
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
4
4
|
import { FsMessage } from '@firestitch/message';
|
5
|
+
import { FsPrompt } from '@firestitch/prompt';
|
5
6
|
import { FsContentConfig } from '../../../../interfaces';
|
7
|
+
import { EditorComponent } from '../../../editor/components/editor';
|
6
8
|
import * as i0 from "@angular/core";
|
7
9
|
export declare class ContentPageEditorComponent implements OnInit, OnDestroy {
|
8
10
|
private _data;
|
@@ -10,6 +12,8 @@ export declare class ContentPageEditorComponent implements OnInit, OnDestroy {
|
|
10
12
|
private _message;
|
11
13
|
private _dialog;
|
12
14
|
private _cdRef;
|
15
|
+
private _prompt;
|
16
|
+
editor: EditorComponent;
|
13
17
|
contentPage: {
|
14
18
|
id?: number;
|
15
19
|
styles?: string;
|
@@ -17,6 +21,7 @@ export declare class ContentPageEditorComponent implements OnInit, OnDestroy {
|
|
17
21
|
name?: string;
|
18
22
|
js?: string;
|
19
23
|
};
|
24
|
+
focused: any;
|
20
25
|
config: FsContentConfig;
|
21
26
|
resizing: boolean;
|
22
27
|
title: any;
|
@@ -30,13 +35,15 @@ export declare class ContentPageEditorComponent implements OnInit, OnDestroy {
|
|
30
35
|
constructor(_data: {
|
31
36
|
contentPage: any;
|
32
37
|
contentConfig: FsContentConfig;
|
33
|
-
}, _dialogRef: MatDialogRef<ContentPageEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
|
38
|
+
}, _dialogRef: MatDialogRef<ContentPageEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef, _prompt: FsPrompt);
|
34
39
|
ngOnInit(): void;
|
35
40
|
editorToggleChange(event: MatButtonToggleChange): void;
|
36
41
|
ngOnDestroy(): void;
|
37
42
|
_initContentPage(contentPage: any): void;
|
38
|
-
|
39
|
-
|
43
|
+
editorFocused(type: any): void;
|
44
|
+
save: () => import("rxjs").Observable<import("../../../../interfaces").FsContentPage | import("../../../../interfaces").FsContentStyle>;
|
45
|
+
saveContentPage(): import("rxjs").Observable<import("../../../../interfaces").FsContentPage>;
|
46
|
+
cancel(): void;
|
40
47
|
openSettings(): void;
|
41
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContentPageEditorComponent, never>;
|
42
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContentPageEditorComponent, "ng-component", never, {}, {}, never, never>;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { FsMessage } from '@firestitch/message';
|
3
3
|
import { FsTextEditorConfig } from '@firestitch/text-editor';
|
4
|
+
import { EditorType } from '../../../../enums';
|
4
5
|
import { FsContentConfig } from '../../../../interfaces';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare class EditorComponent implements OnInit, OnDestroy {
|
7
|
-
private _message;
|
8
8
|
private _cdRef;
|
9
|
+
private _message;
|
9
10
|
showHtml: boolean;
|
10
11
|
showScss: boolean;
|
11
12
|
showJs: boolean;
|
@@ -18,6 +19,10 @@ export declare class EditorComponent implements OnInit, OnDestroy {
|
|
18
19
|
type: string;
|
19
20
|
value: string;
|
20
21
|
}>;
|
22
|
+
focused: EventEmitter<string>;
|
23
|
+
blured: EventEmitter<string>;
|
24
|
+
changes: any;
|
25
|
+
EditorType: typeof EditorType;
|
21
26
|
contentStyle: {
|
22
27
|
scss?: string;
|
23
28
|
};
|
@@ -28,12 +33,15 @@ export declare class EditorComponent implements OnInit, OnDestroy {
|
|
28
33
|
htmlConfig: FsTextEditorConfig;
|
29
34
|
jsConfig: FsTextEditorConfig;
|
30
35
|
private _destroy$;
|
31
|
-
constructor(
|
36
|
+
constructor(_cdRef: ChangeDetectorRef, _message: FsMessage);
|
32
37
|
ngOnInit(): void;
|
33
38
|
ngOnDestroy(): void;
|
34
|
-
|
39
|
+
change(type: any, value: any): void;
|
40
|
+
get hasChanges(): boolean;
|
41
|
+
clearChange(type: any): void;
|
35
42
|
initTextEditors(): void;
|
36
43
|
initGlobalContentStyle(): void;
|
44
|
+
saveGlobalScss(): import("rxjs").Observable<import("../../../../interfaces").FsContentStyle>;
|
37
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "app-editor", never, { "showHtml": "showHtml"; "showScss": "showScss"; "showJs": "showJs"; "showGlobalScss": "showGlobalScss"; "html": "html"; "scss": "scss"; "js": "js"; "contentConfig": "contentConfig"; }, { "changed": "changed"; }, never, never>;
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "app-editor", never, { "showHtml": "showHtml"; "showScss": "showScss"; "showJs": "showJs"; "showGlobalScss": "showGlobalScss"; "html": "html"; "scss": "scss"; "js": "js"; "contentConfig": "contentConfig"; }, { "changed": "changed"; "focused": "focused"; "blured": "blured"; }, never, never>;
|
39
47
|
}
|