@firestitch/content 12.2.4 → 12.2.5
Sign up to get free protection for your applications and to get access to all the features.
- package/app/interfaces/content-config.d.ts +2 -0
- package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +41 -0
- package/app/modules/content-layouts/components/content-layout-editor/index.d.ts +1 -0
- package/app/modules/content-layouts/components/index.d.ts +3 -0
- package/app/modules/content-layouts/fs-content-layouts.module.d.ts +21 -20
- package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +43 -0
- package/app/modules/content-pages/components/content-page-editor/index.d.ts +1 -0
- package/app/modules/content-pages/components/index.d.ts +3 -0
- package/app/modules/content-pages/fs-content-pages.module.d.ts +22 -20
- package/app/modules/editor/components/editor/editor.component.d.ts +15 -32
- package/bundles/firestitch-content.umd.js +400 -250
- package/bundles/firestitch-content.umd.js.map +1 -1
- package/esm2015/app/interfaces/content-config.js +1 -1
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +97 -0
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/index.js +2 -0
- package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +4 -11
- package/esm2015/app/modules/content-layouts/components/index.js +4 -0
- package/esm2015/app/modules/content-layouts/fs-content-layouts.module.js +10 -7
- package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +101 -0
- package/esm2015/app/modules/content-pages/components/content-page-editor/index.js +2 -0
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +3 -10
- package/esm2015/app/modules/content-pages/components/index.js +4 -0
- package/esm2015/app/modules/content-pages/fs-content-pages.module.js +9 -2
- package/esm2015/app/modules/editor/components/editor/editor.component.js +41 -65
- package/fesm2015/firestitch-content.js +246 -104
- package/fesm2015/firestitch-content.js.map +1 -1
- package/package.json +1 -1
@@ -8,9 +8,11 @@ export interface FsContentConfig {
|
|
8
8
|
contentPages: FsContentPage[];
|
9
9
|
paging: any;
|
10
10
|
}>;
|
11
|
+
loadContentPage: (contentPageId: number) => Observable<FsContentPage>;
|
11
12
|
saveContentPage: (contentPage: FsContentPage) => Observable<FsContentPage>;
|
12
13
|
deleteContentPage: (contentPage: FsContentPage) => Observable<FsContentPage>;
|
13
14
|
loadContentLayouts: (query?: any) => Observable<FsContentLayout[]>;
|
15
|
+
loadContentLayout: (contentLayoutId: any) => Observable<FsContentLayout>;
|
14
16
|
loadContentStyleCss?: () => Observable<string>;
|
15
17
|
loadContentStyle: () => Observable<FsContentStyle>;
|
16
18
|
saveContentStyle: (contentStyle: FsContentStyle) => Observable<FsContentStyle>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
4
|
+
import { FsMessage } from '@firestitch/message';
|
5
|
+
import { FsContentConfig } from '../../../../interfaces';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class ContentLayoutEditorComponent implements OnInit, OnDestroy {
|
8
|
+
private _data;
|
9
|
+
private _dialogRef;
|
10
|
+
private _message;
|
11
|
+
private _dialog;
|
12
|
+
private _cdRef;
|
13
|
+
contentLayout: {
|
14
|
+
id?: number;
|
15
|
+
styles?: string;
|
16
|
+
content?: string;
|
17
|
+
name?: string;
|
18
|
+
};
|
19
|
+
config: FsContentConfig;
|
20
|
+
resizing: boolean;
|
21
|
+
title: any;
|
22
|
+
editors: {
|
23
|
+
html: boolean;
|
24
|
+
scss: boolean;
|
25
|
+
globalScss: boolean;
|
26
|
+
};
|
27
|
+
private _destroy$;
|
28
|
+
constructor(_data: {
|
29
|
+
contentLayout: any;
|
30
|
+
contentConfig: FsContentConfig;
|
31
|
+
}, _dialogRef: MatDialogRef<ContentLayoutEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
|
32
|
+
ngOnInit(): void;
|
33
|
+
editorToggleChange(event: MatButtonToggleChange): void;
|
34
|
+
ngOnDestroy(): void;
|
35
|
+
_initContentLayout(contentLayout: any): void;
|
36
|
+
editorChanged(event: any): void;
|
37
|
+
saveContentLayout(data: any): void;
|
38
|
+
openSettings(): void;
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentLayoutEditorComponent, never>;
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentLayoutEditorComponent, "ng-component", never, {}, {}, never, never>;
|
41
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './content-layout-editor.component';
|
@@ -1,27 +1,28 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./components/content-layout/content-layout.component";
|
3
3
|
import * as i2 from "./components/content-layouts/content-layouts.component";
|
4
|
-
import * as i3 from "
|
5
|
-
import * as i4 from "@angular/
|
6
|
-
import * as i5 from "@angular/
|
7
|
-
import * as i6 from "@angular/material/
|
8
|
-
import * as i7 from "@angular/material/
|
9
|
-
import * as i8 from "@angular/material/
|
10
|
-
import * as i9 from "@angular/material/
|
11
|
-
import * as i10 from "@angular/material/
|
12
|
-
import * as i11 from "@angular/material/
|
13
|
-
import * as i12 from "@angular/material/
|
14
|
-
import * as i13 from "@
|
15
|
-
import * as i14 from "@firestitch/
|
16
|
-
import * as i15 from "@firestitch/
|
17
|
-
import * as i16 from "@firestitch/
|
18
|
-
import * as i17 from "@firestitch/
|
19
|
-
import * as i18 from "@firestitch/
|
20
|
-
import * as i19 from "@firestitch/
|
21
|
-
import * as i20 from "@firestitch/
|
22
|
-
import * as i21 from "
|
4
|
+
import * as i3 from "./components/content-layout-editor/content-layout-editor.component";
|
5
|
+
import * as i4 from "@angular/common";
|
6
|
+
import * as i5 from "@angular/forms";
|
7
|
+
import * as i6 from "@angular/material/dialog";
|
8
|
+
import * as i7 from "@angular/material/input";
|
9
|
+
import * as i8 from "@angular/material/form-field";
|
10
|
+
import * as i9 from "@angular/material/button";
|
11
|
+
import * as i10 from "@angular/material/tabs";
|
12
|
+
import * as i11 from "@angular/material/icon";
|
13
|
+
import * as i12 from "@angular/material/select";
|
14
|
+
import * as i13 from "@angular/material/button-toggle";
|
15
|
+
import * as i14 from "@firestitch/list";
|
16
|
+
import * as i15 from "@firestitch/date";
|
17
|
+
import * as i16 from "@firestitch/form";
|
18
|
+
import * as i17 from "@firestitch/label";
|
19
|
+
import * as i18 from "@firestitch/skeleton";
|
20
|
+
import * as i19 from "@firestitch/html-editor";
|
21
|
+
import * as i20 from "@firestitch/dialog";
|
22
|
+
import * as i21 from "@firestitch/text-editor";
|
23
|
+
import * as i22 from "../editor/fs-content-editor.module";
|
23
24
|
export declare class FsContentLayoutsModule {
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentLayoutsModule, never>;
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentLayoutsModule, [typeof i1.ContentLayoutComponent, typeof i2.FsContentLayoutsComponent], [typeof
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentLayoutsModule, [typeof i1.ContentLayoutComponent, typeof i2.FsContentLayoutsComponent, typeof i3.ContentLayoutEditorComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatDialogModule, typeof i7.MatInputModule, typeof i8.MatFormFieldModule, typeof i9.MatButtonModule, typeof i10.MatTabsModule, typeof i11.MatIconModule, typeof i12.MatSelectModule, typeof i13.MatButtonToggleModule, typeof i14.FsListModule, typeof i15.FsDateModule, typeof i16.FsFormModule, typeof i17.FsLabelModule, typeof i18.FsSkeletonModule, typeof i19.FsHtmlEditorModule, typeof i20.FsDialogModule, typeof i21.FsTextEditorModule, typeof i22.FsContentEditorModule], [typeof i2.FsContentLayoutsComponent]>;
|
26
27
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentLayoutsModule>;
|
27
28
|
}
|
package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
4
|
+
import { FsMessage } from '@firestitch/message';
|
5
|
+
import { FsContentConfig } from '../../../../interfaces';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class ContentPageEditorComponent implements OnInit, OnDestroy {
|
8
|
+
private _data;
|
9
|
+
private _dialogRef;
|
10
|
+
private _message;
|
11
|
+
private _dialog;
|
12
|
+
private _cdRef;
|
13
|
+
contentPage: {
|
14
|
+
id?: number;
|
15
|
+
styles?: string;
|
16
|
+
content?: string;
|
17
|
+
name?: string;
|
18
|
+
js?: string;
|
19
|
+
};
|
20
|
+
config: FsContentConfig;
|
21
|
+
resizing: boolean;
|
22
|
+
title: any;
|
23
|
+
editors: {
|
24
|
+
html: boolean;
|
25
|
+
scss: boolean;
|
26
|
+
js: boolean;
|
27
|
+
globalScss: boolean;
|
28
|
+
};
|
29
|
+
private _destroy$;
|
30
|
+
constructor(_data: {
|
31
|
+
contentPage: any;
|
32
|
+
contentConfig: FsContentConfig;
|
33
|
+
}, _dialogRef: MatDialogRef<ContentPageEditorComponent>, _message: FsMessage, _dialog: MatDialog, _cdRef: ChangeDetectorRef);
|
34
|
+
ngOnInit(): void;
|
35
|
+
editorToggleChange(event: MatButtonToggleChange): void;
|
36
|
+
ngOnDestroy(): void;
|
37
|
+
_initContentPage(contentPage: any): void;
|
38
|
+
editorChanged(event: any): void;
|
39
|
+
saveContentPage(data: any): void;
|
40
|
+
openSettings(): void;
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentPageEditorComponent, never>;
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentPageEditorComponent, "ng-component", never, {}, {}, never, never>;
|
43
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './content-page-editor.component';
|
@@ -2,28 +2,30 @@ import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
import * as i1 from "./components/content-pages/content-pages.component";
|
4
4
|
import * as i2 from "./components/content-page/content-page.component";
|
5
|
-
import * as i3 from "
|
6
|
-
import * as i4 from "@angular/
|
7
|
-
import * as i5 from "@angular/
|
8
|
-
import * as i6 from "@angular/material/
|
9
|
-
import * as i7 from "@angular/material/
|
10
|
-
import * as i8 from "@angular/material/
|
11
|
-
import * as i9 from "@angular/material/
|
12
|
-
import * as i10 from "@angular/material/
|
13
|
-
import * as i11 from "@angular/material/
|
14
|
-
import * as i12 from "@angular/material/
|
15
|
-
import * as i13 from "@
|
16
|
-
import * as i14 from "@firestitch/
|
17
|
-
import * as i15 from "@firestitch/
|
18
|
-
import * as i16 from "@firestitch/
|
19
|
-
import * as i17 from "@firestitch/
|
20
|
-
import * as i18 from "@firestitch/
|
21
|
-
import * as i19 from "@firestitch/
|
22
|
-
import * as i20 from "@firestitch/
|
23
|
-
import * as i21 from "
|
5
|
+
import * as i3 from "./components/content-page-editor/content-page-editor.component";
|
6
|
+
import * as i4 from "@angular/common";
|
7
|
+
import * as i5 from "@angular/forms";
|
8
|
+
import * as i6 from "@angular/material/dialog";
|
9
|
+
import * as i7 from "@angular/material/input";
|
10
|
+
import * as i8 from "@angular/material/form-field";
|
11
|
+
import * as i9 from "@angular/material/button";
|
12
|
+
import * as i10 from "@angular/material/tabs";
|
13
|
+
import * as i11 from "@angular/material/icon";
|
14
|
+
import * as i12 from "@angular/material/select";
|
15
|
+
import * as i13 from "@angular/material/button-toggle";
|
16
|
+
import * as i14 from "@firestitch/list";
|
17
|
+
import * as i15 from "@firestitch/date";
|
18
|
+
import * as i16 from "@firestitch/common";
|
19
|
+
import * as i17 from "@firestitch/form";
|
20
|
+
import * as i18 from "@firestitch/label";
|
21
|
+
import * as i19 from "@firestitch/skeleton";
|
22
|
+
import * as i20 from "@firestitch/html-editor";
|
23
|
+
import * as i21 from "@firestitch/dialog";
|
24
|
+
import * as i22 from "@firestitch/text-editor";
|
25
|
+
import * as i23 from "../editor/fs-content-editor.module";
|
24
26
|
export declare class FsContentPagesModule {
|
25
27
|
static forRoot(): ModuleWithProviders<FsContentPagesModule>;
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentPagesModule, never>;
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent], [typeof
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent, typeof i3.ContentPageEditorComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatDialogModule, typeof i7.MatInputModule, typeof i8.MatFormFieldModule, typeof i9.MatButtonModule, typeof i10.MatTabsModule, typeof i11.MatIconModule, typeof i12.MatSelectModule, typeof i13.MatButtonToggleModule, typeof i14.FsListModule, typeof i15.FsDateModule, typeof i16.FsCommonModule, typeof i17.FsFormModule, typeof i18.FsLabelModule, typeof i19.FsSkeletonModule, typeof i20.FsHtmlEditorModule, typeof i21.FsDialogModule, typeof i22.FsTextEditorModule, typeof i23.FsContentEditorModule], [typeof i1.FsContentPagesComponent]>;
|
28
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentPagesModule>;
|
29
31
|
}
|
@@ -1,56 +1,39 @@
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
2
|
-
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
4
2
|
import { FsMessage } from '@firestitch/message';
|
5
3
|
import { FsTextEditorConfig } from '@firestitch/text-editor';
|
6
|
-
import { Observable } from 'rxjs';
|
7
4
|
import { FsContentConfig } from '../../../../interfaces';
|
8
5
|
import * as i0 from "@angular/core";
|
9
6
|
export declare class EditorComponent implements OnInit, OnDestroy {
|
10
|
-
private _data;
|
11
|
-
private _dialogRef;
|
12
7
|
private _message;
|
13
8
|
private _cdRef;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
9
|
+
showHtml: boolean;
|
10
|
+
showScss: boolean;
|
11
|
+
showJs: boolean;
|
12
|
+
showGlobalScss: boolean;
|
13
|
+
html: any;
|
14
|
+
scss: any;
|
15
|
+
js: any;
|
16
|
+
contentConfig: FsContentConfig;
|
17
|
+
changed: EventEmitter<{
|
18
|
+
type: string;
|
19
|
+
value: string;
|
20
|
+
}>;
|
21
21
|
contentStyle: {
|
22
22
|
scss?: string;
|
23
23
|
};
|
24
24
|
resizing: boolean;
|
25
25
|
title: any;
|
26
|
-
editors: {
|
27
|
-
html: boolean;
|
28
|
-
scss: boolean;
|
29
|
-
js: boolean;
|
30
|
-
globalScss: boolean;
|
31
|
-
};
|
32
26
|
scssConfig: FsTextEditorConfig;
|
33
27
|
globalScssConfig: FsTextEditorConfig;
|
34
28
|
htmlConfig: FsTextEditorConfig;
|
35
29
|
jsConfig: FsTextEditorConfig;
|
36
|
-
private _config;
|
37
30
|
private _destroy$;
|
38
|
-
|
39
|
-
constructor(_data: {
|
40
|
-
contentPage: any;
|
41
|
-
title: string;
|
42
|
-
save: (data: any) => Observable<any>;
|
43
|
-
openSettings: (data: any) => Observable<any>;
|
44
|
-
contentConfig: FsContentConfig;
|
45
|
-
}, _dialogRef: MatDialogRef<EditorComponent>, _message: FsMessage, _cdRef: ChangeDetectorRef);
|
31
|
+
constructor(_message: FsMessage, _cdRef: ChangeDetectorRef);
|
46
32
|
ngOnInit(): void;
|
47
|
-
editorToggleChange(event: MatButtonToggleChange): void;
|
48
33
|
ngOnDestroy(): void;
|
49
34
|
globalScssChange(): void;
|
50
35
|
initTextEditors(): void;
|
51
36
|
initGlobalContentStyle(): void;
|
52
|
-
saveContentPage(): void;
|
53
|
-
openSettings(): void;
|
54
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "
|
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>;
|
56
39
|
}
|