@firestitch/content 12.1.0 → 12.2.1
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-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/editor/components/editor/editor.component.d.ts +26 -7
- package/bundles/firestitch-content.umd.js +296 -210
- 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 +1 -1
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +6 -5
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +28 -28
- package/esm2015/app/modules/editor/components/editor/editor.component.js +114 -28
- package/fesm2015/firestitch-content.js +215 -131
- package/fesm2015/firestitch-content.js.map +1 -1
- package/package.json +1 -1
@@ -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;
|
@@ -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>;
|
@@ -1,26 +1,45 @@
|
|
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
|
+
import { FsFormDirective } from '@firestitch/form';
|
4
5
|
import { FsMessage } from '@firestitch/message';
|
5
6
|
import { FsTextEditorComponent } from '@firestitch/text-editor';
|
7
|
+
import { FsContentConfig } from '../../../../interfaces';
|
6
8
|
import * as i0 from "@angular/core";
|
7
9
|
export declare class EditorComponent implements OnInit, OnDestroy {
|
8
10
|
private _data;
|
9
11
|
private _dialogRef;
|
12
|
+
private _dialog;
|
10
13
|
private _message;
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
+
private _cdRef;
|
15
|
+
form: FsFormDirective;
|
16
|
+
styleEditor: FsTextEditorComponent;
|
17
|
+
contentEditor: FsTextEditorComponent;
|
18
|
+
separator: ElementRef;
|
19
|
+
contentContainer: ElementRef;
|
20
|
+
styleContainer: ElementRef;
|
21
|
+
contentPage: any;
|
22
|
+
resizing: boolean;
|
14
23
|
editors: {
|
15
24
|
content: boolean;
|
16
25
|
styles: boolean;
|
17
26
|
};
|
27
|
+
private _config;
|
18
28
|
private _destroy$;
|
19
|
-
constructor(_data:
|
29
|
+
constructor(_data: {
|
30
|
+
contentPage: any;
|
31
|
+
config: FsContentConfig;
|
32
|
+
}, _dialogRef: MatDialogRef<EditorComponent>, _dialog: MatDialog, _message: FsMessage, _cdRef: ChangeDetectorRef);
|
20
33
|
ngOnInit(): void;
|
21
34
|
editorToggleChange(event: MatButtonToggleChange): void;
|
35
|
+
updateEditorLayouts(): void;
|
22
36
|
ngOnDestroy(): void;
|
23
|
-
|
37
|
+
stylesChanged(): void;
|
38
|
+
contentChanged(): void;
|
39
|
+
save: () => import("rxjs").Observable<import("../../../../interfaces").FsContentPage>;
|
40
|
+
openSettings(): void;
|
41
|
+
private _initSeparator;
|
42
|
+
private _moveSeparator;
|
24
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
25
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "ng-component", never, {}, {}, never, never>;
|
26
45
|
}
|