@firestitch/content 12.1.0 → 12.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,41 @@
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
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
- textEditors: QueryList<FsTextEditorComponent>;
12
- styles: any;
13
- content: any;
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: any, _dialogRef: MatDialogRef<EditorComponent>, _message: FsMessage);
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: () => any;
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
  }