@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.
@@ -1,6 +1,6 @@
1
- import { Observable } from "rxjs";
2
- import { FsContentLayout } from "./content-layout";
3
- import { FsContentPage } from "./content-page";
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 { OnInit, OnDestroy, ChangeDetectorRef, QueryList } from '@angular/core';
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 { OnInit, OnDestroy } from '@angular/core';
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 { OnInit, OnDestroy, QueryList } from '@angular/core';
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
- textEditors: QueryList<FsTextEditorComponent>;
12
- styles: any;
13
- content: any;
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: any, _dialogRef: MatDialogRef<EditorComponent>, _message: FsMessage);
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
- save: () => any;
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
  }