@firestitch/content 12.1.0 → 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-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 +22 -7
- package/bundles/firestitch-content.umd.js +279 -210
- package/bundles/firestitch-content.umd.js.map +1 -1
- package/esm2015/app/interfaces/content-config.js +1 -1
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +5 -4
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +25 -28
- package/esm2015/app/modules/editor/components/editor/editor.component.js +97 -27
- package/fesm2015/firestitch-content.js +196 -129
- 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,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
|
}
|