@firestitch/content 12.0.3 → 12.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/app/interfaces/content-config.d.ts +3 -3
- package/app/modules/content-layouts/fs-content-layouts.module.d.ts +18 -19
- package/app/modules/content-pages/components/content-page/content-page.component.d.ts +1 -1
- package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +2 -3
- package/app/modules/content-pages/fs-content-pages.module.d.ts +18 -19
- package/app/modules/editor/components/editor/editor.component.d.ts +22 -7
- package/bundles/firestitch-content.umd.js +248 -186
- 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/content-layout.component.js +3 -4
- package/esm2015/app/modules/content-layouts/fs-content-layouts.module.js +8 -12
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +8 -8
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +25 -28
- package/esm2015/app/modules/content-pages/fs-content-pages.module.js +9 -13
- package/esm2015/app/modules/editor/components/editor/editor.component.js +97 -27
- package/fesm2015/firestitch-content.js +186 -127
- package/fesm2015/firestitch-content.js.map +1 -1
- package/package.json +5 -6
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Observable } from
|
2
|
-
import { FsContentLayout } from
|
3
|
-
import { FsContentPage } from
|
1
|
+
import { Observable } from 'rxjs';
|
2
|
+
import { FsContentLayout } from './content-layout';
|
3
|
+
import { FsContentPage } from './content-page';
|
4
4
|
export interface FsContentConfig {
|
5
5
|
loadContent: (path: string) => Observable<{
|
6
6
|
content: string;
|
@@ -3,26 +3,25 @@ import * as i1 from "./components/content-layout/content-layout.component";
|
|
3
3
|
import * as i2 from "./components/content-layouts/content-layouts.component";
|
4
4
|
import * as i3 from "@angular/common";
|
5
5
|
import * as i4 from "@angular/forms";
|
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 "
|
23
|
-
import * as i22 from "../editor/fs-content-editor.module";
|
6
|
+
import * as i5 from "@angular/material/dialog";
|
7
|
+
import * as i6 from "@angular/material/input";
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
9
|
+
import * as i8 from "@angular/material/button";
|
10
|
+
import * as i9 from "@angular/material/tabs";
|
11
|
+
import * as i10 from "@angular/material/icon";
|
12
|
+
import * as i11 from "@angular/material/select";
|
13
|
+
import * as i12 from "@angular/material/button-toggle";
|
14
|
+
import * as i13 from "@firestitch/list";
|
15
|
+
import * as i14 from "@firestitch/date";
|
16
|
+
import * as i15 from "@firestitch/form";
|
17
|
+
import * as i16 from "@firestitch/label";
|
18
|
+
import * as i17 from "@firestitch/skeleton";
|
19
|
+
import * as i18 from "@firestitch/html-editor";
|
20
|
+
import * as i19 from "@firestitch/dialog";
|
21
|
+
import * as i20 from "@firestitch/text-editor";
|
22
|
+
import * as i21 from "../editor/fs-content-editor.module";
|
24
23
|
export declare class FsContentLayoutsModule {
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentLayoutsModule, never>;
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentLayoutsModule, [typeof i1.ContentLayoutComponent, typeof i2.FsContentLayoutsComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentLayoutsModule, [typeof i1.ContentLayoutComponent, typeof i2.FsContentLayoutsComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatDialogModule, typeof i6.MatInputModule, typeof i7.MatFormFieldModule, typeof i8.MatButtonModule, typeof i9.MatTabsModule, typeof i10.MatIconModule, typeof i11.MatSelectModule, typeof i12.MatButtonToggleModule, typeof i13.FsListModule, typeof i14.FsDateModule, typeof i15.FsFormModule, typeof i16.FsLabelModule, typeof i17.FsSkeletonModule, typeof i18.FsHtmlEditorModule, typeof i19.FsDialogModule, typeof i20.FsTextEditorModule, typeof i21.FsContentEditorModule], [typeof i2.FsContentLayoutsComponent]>;
|
27
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentLayoutsModule>;
|
28
27
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
3
3
|
import { FsMessage } from '@firestitch/message';
|
4
4
|
import { FsTextEditorComponent } from '@firestitch/text-editor';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
3
|
-
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
4
3
|
import { FsHtmlEditorConfig } from '@firestitch/html-editor';
|
4
|
+
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
5
5
|
import { FsContentConfig } from '../../../../interfaces';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class FsContentPagesComponent implements OnInit, OnDestroy {
|
@@ -15,7 +15,6 @@ export declare class FsContentPagesComponent implements OnInit, OnDestroy {
|
|
15
15
|
constructor(_config: FsContentConfig, _dialog: MatDialog);
|
16
16
|
ngOnInit(): void;
|
17
17
|
openEditor(contentPage: any): void;
|
18
|
-
openPage(contentPage: any): void;
|
19
18
|
ngOnDestroy(): void;
|
20
19
|
private _initListConfig;
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentPagesComponent, never>;
|
@@ -4,27 +4,26 @@ import * as i1 from "./components/content-pages/content-pages.component";
|
|
4
4
|
import * as i2 from "./components/content-page/content-page.component";
|
5
5
|
import * as i3 from "@angular/common";
|
6
6
|
import * as i4 from "@angular/forms";
|
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 "
|
24
|
-
import * as i22 from "../editor/fs-content-editor.module";
|
7
|
+
import * as i5 from "@angular/material/dialog";
|
8
|
+
import * as i6 from "@angular/material/input";
|
9
|
+
import * as i7 from "@angular/material/form-field";
|
10
|
+
import * as i8 from "@angular/material/button";
|
11
|
+
import * as i9 from "@angular/material/tabs";
|
12
|
+
import * as i10 from "@angular/material/icon";
|
13
|
+
import * as i11 from "@angular/material/select";
|
14
|
+
import * as i12 from "@angular/material/button-toggle";
|
15
|
+
import * as i13 from "@firestitch/list";
|
16
|
+
import * as i14 from "@firestitch/date";
|
17
|
+
import * as i15 from "@firestitch/form";
|
18
|
+
import * as i16 from "@firestitch/label";
|
19
|
+
import * as i17 from "@firestitch/skeleton";
|
20
|
+
import * as i18 from "@firestitch/html-editor";
|
21
|
+
import * as i19 from "@firestitch/dialog";
|
22
|
+
import * as i20 from "@firestitch/text-editor";
|
23
|
+
import * as i21 from "../editor/fs-content-editor.module";
|
25
24
|
export declare class FsContentPagesModule {
|
26
25
|
static forRoot(): ModuleWithProviders<FsContentPagesModule>;
|
27
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentPagesModule, never>;
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatDialogModule, typeof i6.MatInputModule, typeof i7.MatFormFieldModule, typeof i8.MatButtonModule, typeof i9.MatTabsModule, typeof i10.MatIconModule, typeof i11.MatSelectModule, typeof i12.MatButtonToggleModule, typeof i13.FsListModule, typeof i14.FsDateModule, typeof i15.FsFormModule, typeof i16.FsLabelModule, typeof i17.FsSkeletonModule, typeof i18.FsHtmlEditorModule, typeof i19.FsDialogModule, typeof i20.FsTextEditorModule, typeof i21.FsContentEditorModule], [typeof i1.FsContentPagesComponent]>;
|
29
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentPagesModule>;
|
30
29
|
}
|
@@ -1,26 +1,41 @@
|
|
1
|
-
import {
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
3
2
|
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
3
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
4
4
|
import { FsMessage } from '@firestitch/message';
|
5
5
|
import { FsTextEditorComponent } from '@firestitch/text-editor';
|
6
|
+
import { FsContentConfig } from '../../../../interfaces';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
export declare class EditorComponent implements OnInit, OnDestroy {
|
8
9
|
private _data;
|
9
10
|
private _dialogRef;
|
11
|
+
private _dialog;
|
10
12
|
private _message;
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
private _cdRef;
|
14
|
+
styleEditor: FsTextEditorComponent;
|
15
|
+
contentEditor: FsTextEditorComponent;
|
16
|
+
separator: ElementRef;
|
17
|
+
contentContainer: ElementRef;
|
18
|
+
styleContainer: ElementRef;
|
19
|
+
contentPage: any;
|
20
|
+
resizing: boolean;
|
14
21
|
editors: {
|
15
22
|
content: boolean;
|
16
23
|
styles: boolean;
|
17
24
|
};
|
25
|
+
private _config;
|
18
26
|
private _destroy$;
|
19
|
-
constructor(_data:
|
27
|
+
constructor(_data: {
|
28
|
+
contentPage: any;
|
29
|
+
config: FsContentConfig;
|
30
|
+
}, _dialogRef: MatDialogRef<EditorComponent>, _dialog: MatDialog, _message: FsMessage, _cdRef: ChangeDetectorRef);
|
20
31
|
ngOnInit(): void;
|
21
32
|
editorToggleChange(event: MatButtonToggleChange): void;
|
33
|
+
updateEditorLayouts(): void;
|
22
34
|
ngOnDestroy(): void;
|
23
|
-
save: () =>
|
35
|
+
save: () => import("rxjs").Observable<import("../../../../interfaces").FsContentPage>;
|
36
|
+
openSettings(): void;
|
37
|
+
private _initSeparator;
|
38
|
+
private _moveSeparator;
|
24
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
25
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "ng-component", never, {}, {}, never, never>;
|
26
41
|
}
|