@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.
@@ -1,19 +1,18 @@
1
- import { Component, ViewChild, ChangeDetectionStrategy, Input, Inject, } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, Inject, Input, ViewChild, } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
- import { FsListComponent } from '@firestitch/list';
4
- import { ItemType } from '@firestitch/filter';
5
3
  import { index } from '@firestitch/common';
6
- import { filter, map, takeUntil } from 'rxjs/operators';
4
+ import { ItemType } from '@firestitch/filter';
5
+ import { FsListComponent } from '@firestitch/list';
7
6
  import { Subject } from 'rxjs';
7
+ import { filter, map, takeUntil } from 'rxjs/operators';
8
8
  import { PageTypes } from '../../../../consts';
9
9
  import { FS_CONTENT_CONFIG } from '../../../../injectors';
10
- import { ContentPageComponent } from '../content-page/content-page.component';
11
10
  import { EditorComponent } from '../../../editor/components/editor';
11
+ import { ContentPageComponent } from '../content-page';
12
12
  import * as i0 from "@angular/core";
13
13
  import * as i1 from "@angular/material/dialog";
14
14
  import * as i2 from "@firestitch/list";
15
- import * as i3 from "@angular/material/icon";
16
- import * as i4 from "@firestitch/date";
15
+ import * as i3 from "@firestitch/date";
17
16
  export class FsContentPagesComponent {
18
17
  constructor(_config, _dialog) {
19
18
  this._config = _config;
@@ -26,27 +25,15 @@ export class FsContentPagesComponent {
26
25
  }
27
26
  openEditor(contentPage) {
28
27
  this._dialog.open(EditorComponent, {
29
- maxWidth: null,
30
- maxHeight: null,
31
- data: {
32
- styles: contentPage.styles,
33
- content: contentPage.content,
34
- save: (data) => {
35
- return this._config.saveContentPage(Object.assign({ id: contentPage.id }, data));
36
- },
37
- },
38
- })
39
- .afterClosed()
40
- .pipe(takeUntil(this._destroy$))
41
- .subscribe(() => {
42
- this.listComponent.reload();
43
- });
44
- }
45
- openPage(contentPage) {
46
- this._dialog.open(ContentPageComponent, {
47
28
  data: {
48
29
  contentPage,
30
+ config: this._config,
49
31
  },
32
+ maxWidth: '100vw',
33
+ maxHeight: '100vw',
34
+ width: '100%',
35
+ height: '100%',
36
+ autoFocus: false,
50
37
  })
51
38
  .afterClosed()
52
39
  .pipe(filter((_contentPage) => !!_contentPage), takeUntil(this._destroy$))
@@ -71,7 +58,17 @@ export class FsContentPagesComponent {
71
58
  {
72
59
  label: 'Create',
73
60
  click: () => {
74
- this.openPage({});
61
+ this._dialog.open(ContentPageComponent, {
62
+ data: {
63
+ contentPage: {},
64
+ },
65
+ })
66
+ .afterClosed()
67
+ .pipe(filter((contentPage) => !!contentPage), takeUntil(this._destroy$))
68
+ .subscribe((contentPage) => {
69
+ this.openEditor(contentPage);
70
+ this.listComponent.reload();
71
+ });
75
72
  },
76
73
  },
77
74
  ],
@@ -107,7 +104,7 @@ export class FsContentPagesComponent {
107
104
  }
108
105
  }
109
106
  FsContentPagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
110
- FsContentPagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentPagesComponent, selector: "fs-content-pages", inputs: { htmlEditorConfig: "htmlEditorConfig" }, viewQueries: [{ propertyName: "listComponent", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column name=\"design\" width=\"1%\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openEditor(row)\"><mat-icon>design_services</mat-icon></a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"name\" title=\"Name\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openPage(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"path\" title=\"Path\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a [href]=\"'/' + row.path\" target=\"_black\">/{{row.path}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"type\" title=\"Type\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{pageTypes[row.type]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"modify_date\" title=\"Modified\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.modifyDate | fsDate: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [":host ::ng-deep .modified,:host ::ng-deep .name{width:1%;white-space:nowrap}:host ::ng-deep .preview-content img{display:none}.preview-content{position:relative;max-height:100px;max-width:100%;overflow:hidden;-webkit-mask-image:-webkit-gradient(linear,left 60%,left bottom,from(black),to(rgba(0,0,0,0)))}\n"], components: [{ type: i2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsDate": i4.FsDatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
107
+ FsContentPagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentPagesComponent, selector: "fs-content-pages", inputs: { htmlEditorConfig: "htmlEditorConfig" }, viewQueries: [{ propertyName: "listComponent", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column name=\"name\" title=\"Name\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openEditor(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"path\" title=\"Path\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a [href]=\"'/' + row.path\" target=\"_black\">/{{row.path}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"type\" title=\"Type\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{pageTypes[row.type]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"modify_date\" title=\"Modified\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.modifyDate | fsDate: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [":host ::ng-deep .modified,:host ::ng-deep .name{width:1%;white-space:nowrap}:host ::ng-deep .preview-content img{display:none}.preview-content{position:relative;max-height:100px;max-width:100%;overflow:hidden;-webkit-mask-image:-webkit-gradient(linear,left 60%,left bottom,from(black),to(rgba(0,0,0,0)))}\n"], components: [{ type: i2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsDate": i3.FsDatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
111
108
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesComponent, decorators: [{
112
109
  type: Component,
113
110
  args: [{
@@ -125,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
125
122
  type: ViewChild,
126
123
  args: [FsListComponent]
127
124
  }] } });
128
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1wYWdlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8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ZWN0PHZvaWQ+KCk7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChGU19DT05URU5UX0NPTkZJRykgcHJpdmF0ZSBfY29uZmlnOiBGc0NvbnRlbnRDb25maWcsXG4gICAgcHJpdmF0ZSBfZGlhbG9nOiBNYXREaWFsb2csXG4gICkge31cblxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgdGhpcy5faW5pdExpc3RDb25maWcoKTtcbiAgfVxuXG4gIHB1YmxpYyBvcGVuRWRpdG9yKGNvbnRlbnRQYWdlOiBhbnkpOiB2b2lkIHtcbiAgICB0aGlzLl9kaWFsb2cub3BlbihFZGl0b3JDb21wb25lbnQsIHtcbiAgICAgIG1heFdpZHRoOiBudWxsLFxuICAgICAgbWF4SGVpZ2h0OiBudWxsLFxuICAgICAgZGF0YToge1xuICAgICAgICBzdHlsZXM6IGNvbnRlbnRQYWdlLnN0eWxlcyxcbiAgICAgICAgY29udGVudDogY29udGVudFBhZ2UuY29udGVudCxcbiAgICAgICAgc2F2ZTogKGRhdGEpID0+IHtcbiAgICAgICAgICByZXR1cm4gdGhpcy5fY29uZmlnLnNhdmVDb250ZW50UGFnZSh7XG4gICAgICAgICAgICBpZDogY29udGVudFBhZ2UuaWQsXG4gICAgICAgICAgICAuLi5kYXRhLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9LCAgICAgXG4gICAgICB9LFxuICAgIH0pXG4gICAgICAuYWZ0ZXJDbG9zZWQoKVxuICAgICAgLnBpcGUoXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICB0aGlzLmxpc3RDb21wb25lbnQucmVsb2FkKCk7XG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgb3BlblBhZ2UoY29udGVudFBhZ2U6IGFueSk6IHZvaWQge1xuICAgIHRoaXMuX2RpYWxvZy5vcGVuKENvbnRlbnRQYWdlQ29tcG9uZW50LCB7XG4gICAgICBkYXRhOiB7XG4gICAgICAgIGNvbnRlbnRQYWdlLFxuICAgICAgfSxcbiAgICB9KVxuICAgICAgLmFmdGVyQ2xvc2VkKClcbiAgICAgIC5waXBlKFxuICAgICAgICBmaWx0ZXIoKF9jb250ZW50UGFnZSkgPT4gISFfY29udGVudFBhZ2UpLFxuICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgIHRoaXMubGlzdENvbXBvbmVudC5yZWxvYWQoKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuX2Rlc3Ryb3kkLm5leHQoKTtcbiAgICB0aGlzLl9kZXN0cm95JC5jb21wbGV0ZSgpO1xuICB9XG5cbiAgcHJpdmF0ZSBfaW5pdExpc3RDb25maWcoKTogdm9pZCB7XG4gICAgdGhpcy5saXN0Q29uZmlnID0ge1xuICAgICAgZmlsdGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2tleXdvcmQnLFxuICAgICAgICAgIHR5cGU6IEl0ZW1UeXBlLktleXdvcmQsXG4gICAgICAgICAgbGFiZWw6ICdTZWFyY2gnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGxhYmVsOiAnQ3JlYXRlJyxcbiAgICAgICAgICBjbGljazogKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5vcGVuUGFnZSh7fSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICByb3dBY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBjbGljazogKGRhdGEpID0+IHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9jb25maWcuZGVsZXRlQ29udGVudFBhZ2UoZGF0YSk7XG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iAgICAgIGF1dG9Gb2N1czogZmFsc2UsXG4gICAgfSlcbiAgICAgIC5hZnRlckNsb3NlZCgpXG4gICAgICAucGlwZShcbiAgICAgICAgZmlsdGVyKChfY29udGVudFBhZ2UpID0+ICEhX2NvbnRlbnRQYWdlKSxcbiAgICAgICAgdGFrZVVudGlsKHRoaXMuX2Rlc3Ryb3kkKSxcbiAgICAgIClcbiAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICB0aGlzLmxpc3RDb21wb25lbnQucmVsb2FkKCk7XG4gICAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLl9kZXN0cm95JC5uZXh0KCk7XG4gICAgdGhpcy5fZGVzdHJveSQuY29tcGxldGUoKTtcbiAgfVxuXG4gIHByaXZhdGUgX2luaXRMaXN0Q29uZmlnKCk6IHZvaWQge1xuICAgIHRoaXMubGlzdENvbmZpZyA9IHtcbiAgICAgIGZpbHRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdrZXl3b3JkJyxcbiAgICAgICAgICB0eXBlOiBJdGVtVHlwZS5LZXl3b3JkLFxuICAgICAgICAgIGxhYmVsOiAnU2VhcmNoJyxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBhY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBsYWJlbDogJ0NyZWF0ZScsXG4gICAgICAgICAgY2xpY2s6ICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuX2RpYWxvZy5vcGVuKENvbnRlbnRQYWdlQ29tcG9uZW50LCB7XG4gICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICBjb250ZW50UGFnZToge30sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuYWZ0ZXJDbG9zZWQoKVxuICAgICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICBmaWx0ZXIoKGNvbnRlbnRQYWdlKSA9PiAhIWNvbnRlbnRQYWdlKSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgIC5zdWJzY3JpYmUoKGNvbnRlbnRQYWdlKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5vcGVuRWRpdG9yKGNvbnRlbnRQYWdlKTtcbiAgICAgICAgICAgICAgICB0aGlzLmxpc3RDb21wb25lbnQucmVsb2FkKCk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgICAgcm93QWN0aW9uczogW1xuICAgICAgICB7XG4gICAgICAgICAgY2xpY2s6IChkYXRhKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5fY29uZmlnLmRlbGV0ZUNvbnRlbnRQYWdlKGRhdGEpO1xuICAgICAgICAgIH0sXG4gICAgICAgICAgcmVtb3ZlOiB7XG4gICAgICAgICAgICB0aXRsZTogJ0NvbmZpcm0nLFxuICAgICAgICAgICAgdGVtcGxhdGU6ICdBcmUgeW91IHN1cmUgeW91IHdvdWxkIGxpa2UgdG8gZGVsZXRlIHRoaXMgcmVjb3JkPycsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBtZW51OiB0cnVlLFxuICAgICAgICAgIGxhYmVsOiAnRGVsZXRlJyxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBmZXRjaDogKHF1ZXJ5KSA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLl9jb25maWcubG9hZENvbnRlbnRQYWdlcyhxdWVyeSlcbiAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgIG1hcCgocmVzcG9uc2U6IGFueSkgPT4ge1xuICAgICAgICAgICAgICByZXR1cm4geyBkYXRhOiByZXNwb25zZS5jb250ZW50UGFnZXMsIHBhZ2luZzogcmVzcG9uc2UucGFnaW5nIH07XG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2x1bW4+XG4gIDxmcy1saXN0LWNvbHVtbiBuYW1lPVwidHlwZVwiIHRpdGxlPVwiVHlwZVwiIFtzb3J0YWJsZV09XCJ0cnVlXCI+XG4gICAgPG5nLXRlbXBsYXRlIGZzLWxpc3QtY2VsbCBsZXQtcm93PVwicm93XCI+XG4gICAgICB7e3BhZ2VUeXBlc1tyb3cudHlwZV19fVxuICAgIDwvbmctdGVtcGxhdGU+XG4gIDwvZnMtbGlzdC1jb2x1bW4+XG4gIDxmcy1saXN0LWNvbHVtbiBuYW1lPVwibW9kaWZ5X2RhdGVcIiB0aXRsZT1cIk1vZGlmaWVkXCIgW3NvcnRhYmxlXT1cInRydWVcIj5cbiAgICA8bmctdGVtcGxhdGUgZnMtbGlzdC1jZWxsIGxldC1yb3c9XCJyb3dcIj5cbiAgICAgIHt7cm93Lm1vZGlmeURhdGUgfCBmc0RhdGU6ICdkYXRlLXRpbWUteWVhcmxlc3MnfX1cbiAgICA8L25nLXRlbXBsYXRlPlxuICA8L2ZzLWxpc3QtY29sdW1uPlxuPC9mcy1saXN0PlxuIl19
@@ -1,26 +1,25 @@
1
- import { NgModule } from '@angular/core';
2
1
  import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { FormsModule } from '@angular/forms';
3
4
  import { MatButtonModule } from '@angular/material/button';
4
- import { MatTabsModule } from '@angular/material/tabs';
5
+ import { MatButtonToggleModule } from '@angular/material/button-toggle';
5
6
  import { MatDialogModule } from '@angular/material/dialog';
6
- import { FormsModule } from '@angular/forms';
7
- import { MatInputModule } from '@angular/material/input';
8
7
  import { MatFormFieldModule } from '@angular/material/form-field';
9
8
  import { MatIconModule } from '@angular/material/icon';
9
+ import { MatInputModule } from '@angular/material/input';
10
10
  import { MatSelectModule } from '@angular/material/select';
11
- import { FlexLayoutModule } from '@angular/flex-layout';
12
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
13
- import { FsListModule } from '@firestitch/list';
11
+ import { MatTabsModule } from '@angular/material/tabs';
14
12
  import { FsDateModule } from '@firestitch/date';
15
13
  import { FsDialogModule } from '@firestitch/dialog';
16
14
  import { FsFormModule } from '@firestitch/form';
17
15
  import { FsHtmlEditorModule } from '@firestitch/html-editor';
18
- import { FsTextEditorModule } from '@firestitch/text-editor';
19
16
  import { FsLabelModule } from '@firestitch/label';
17
+ import { FsListModule } from '@firestitch/list';
20
18
  import { FsSkeletonModule } from '@firestitch/skeleton';
19
+ import { FsTextEditorModule } from '@firestitch/text-editor';
20
+ import { FsContentEditorModule } from '../editor';
21
21
  import { ContentPageComponent } from './components/content-page';
22
22
  import { FsContentPagesComponent } from './components/content-pages';
23
- import { FsContentEditorModule } from '../editor';
24
23
  import * as i0 from "@angular/core";
25
24
  export class FsContentPagesModule {
26
25
  static forRoot() {
@@ -33,7 +32,6 @@ FsContentPagesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ver
33
32
  FsContentPagesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, declarations: [FsContentPagesComponent,
34
33
  ContentPageComponent], imports: [CommonModule,
35
34
  FormsModule,
36
- FlexLayoutModule,
37
35
  MatDialogModule,
38
36
  MatInputModule,
39
37
  MatFormFieldModule,
@@ -54,7 +52,6 @@ FsContentPagesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
54
52
  FsContentPagesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, imports: [[
55
53
  CommonModule,
56
54
  FormsModule,
57
- FlexLayoutModule,
58
55
  MatDialogModule,
59
56
  MatInputModule,
60
57
  MatFormFieldModule,
@@ -79,7 +76,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
79
76
  imports: [
80
77
  CommonModule,
81
78
  FormsModule,
82
- FlexLayoutModule,
83
79
  MatDialogModule,
84
80
  MatInputModule,
85
81
  MatFormFieldModule,
@@ -107,4 +103,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
107
103
  ],
108
104
  }]
109
105
  }] });
110
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC1wYWdlcy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1wYWdlcy9mcy1jb250ZW50LXBhZ2VzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUF1QixNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDM0QsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGlDQ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@@ -1,55 +1,113 @@
1
- import { Component, Inject, ChangeDetectionStrategy, ViewChildren, QueryList, } from '@angular/core';
2
- import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild, } from '@angular/core';
2
+ import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
3
3
  import { FsMessage } from '@firestitch/message';
4
4
  import { FsTextEditorComponent } from '@firestitch/text-editor';
5
- import { Subject } from 'rxjs';
6
- import { tap } from 'rxjs/operators';
5
+ import { Subject, fromEvent } from 'rxjs';
6
+ import { finalize, take, takeUntil, tap } from 'rxjs/operators';
7
+ import { ContentPageComponent } from '../../../content-pages/components/content-page';
7
8
  import * as i0 from "@angular/core";
8
9
  import * as i1 from "@angular/material/dialog";
9
10
  import * as i2 from "@firestitch/message";
10
11
  import * as i3 from "@firestitch/dialog";
11
- import * as i4 from "@angular/material/button-toggle";
12
- import * as i5 from "@firestitch/label";
13
- import * as i6 from "@firestitch/text-editor";
14
- import * as i7 from "@firestitch/form";
15
- import * as i8 from "@angular/forms";
16
- import * as i9 from "@angular/common";
12
+ import * as i4 from "@angular/material/button";
13
+ import * as i5 from "@angular/material/icon";
14
+ import * as i6 from "@firestitch/label";
15
+ import * as i7 from "@firestitch/text-editor";
16
+ import * as i8 from "@firestitch/form";
17
+ import * as i9 from "@angular/material/button-toggle";
18
+ import * as i10 from "@angular/forms";
19
+ import * as i11 from "@angular/common";
17
20
  export class EditorComponent {
18
- constructor(_data, _dialogRef, _message) {
21
+ constructor(_data, _dialogRef, _dialog, _message, _cdRef) {
19
22
  this._data = _data;
20
23
  this._dialogRef = _dialogRef;
24
+ this._dialog = _dialog;
21
25
  this._message = _message;
22
- this.styles = null;
23
- this.content = null;
26
+ this._cdRef = _cdRef;
27
+ this.resizing = false;
24
28
  this.editors = { content: true, styles: true };
25
29
  this._destroy$ = new Subject();
26
30
  this.save = () => {
27
- return this._data.save({ content: this.content, styles: this.styles })
31
+ return this._config.saveContentPage(this.contentPage)
28
32
  .pipe(tap(() => {
29
33
  this._message.success('Saved Changes');
30
34
  }));
31
35
  };
32
36
  }
33
37
  ngOnInit() {
34
- this._dialogRef.updateSize('100%', '100%');
35
- this.content = this._data.content;
36
- this.styles = this._data.styles;
38
+ this.contentPage = this._data.contentPage;
39
+ this._config = this._data.config;
40
+ this._initSeparator();
37
41
  }
38
42
  editorToggleChange(event) {
39
43
  this.editors[event.value] = !this.editors[event.value];
44
+ this.updateEditorLayouts();
45
+ }
46
+ updateEditorLayouts() {
40
47
  setTimeout(() => {
41
- this.textEditors.forEach((textEditor) => {
42
- textEditor.updateLayout();
43
- });
44
- }, 100);
48
+ if (this.editors.content) {
49
+ this.contentEditor.updateLayout();
50
+ }
51
+ if (this.editors.styles) {
52
+ this.styleEditor.updateLayout();
53
+ }
54
+ });
45
55
  }
46
56
  ngOnDestroy() {
47
57
  this._destroy$.next();
48
58
  this._destroy$.complete();
49
59
  }
60
+ openSettings() {
61
+ this._dialog.open(ContentPageComponent, {
62
+ data: {
63
+ contentPage: this.contentPage,
64
+ },
65
+ })
66
+ .afterClosed()
67
+ .pipe(takeUntil(this._destroy$))
68
+ .subscribe((contentPage) => {
69
+ this.contentPage = Object.assign(Object.assign({}, this.contentPage), contentPage);
70
+ this._cdRef.markForCheck();
71
+ });
72
+ }
73
+ _initSeparator() {
74
+ fromEvent(this.separator.nativeElement, 'mousedown')
75
+ .pipe(takeUntil(this._destroy$))
76
+ .subscribe((e) => {
77
+ this._moveSeparator(e);
78
+ });
79
+ }
80
+ _moveSeparator(separatorEvent) {
81
+ let mouseDown = {
82
+ clientX: separatorEvent.clientX,
83
+ clientY: separatorEvent.clientY,
84
+ offsetLeft: Number(this.separator.nativeElement.offsetLeft),
85
+ offsetTop: Number(this.separator.nativeElement.offsetTop),
86
+ firstWidth: Number(this.contentContainer.nativeElement.offsetWidth),
87
+ secondWidth: Number(this.styleContainer.nativeElement.offsetWidth),
88
+ };
89
+ this.resizing = true;
90
+ this._cdRef.markForCheck();
91
+ fromEvent(document, 'mousemove')
92
+ .pipe(finalize(() => {
93
+ mouseDown = null;
94
+ this.resizing = false;
95
+ this._cdRef.markForCheck();
96
+ this.updateEditorLayouts();
97
+ }), takeUntil(fromEvent(this.separator.nativeElement, 'mouseup')
98
+ .pipe(take(1), takeUntil(this._destroy$))), takeUntil(this._destroy$))
99
+ .subscribe((e) => {
100
+ const delta = { x: e.clientX - mouseDown.clientX,
101
+ y: e.clientY - mouseDown.clientY };
102
+ delta.x = Math.min(Math.max(delta.x, -mouseDown.firstWidth), mouseDown.secondWidth);
103
+ this.separator.nativeElement.style.left = `${mouseDown.offsetLeft + delta.x}px`;
104
+ this.contentContainer.nativeElement.style.width = `${mouseDown.firstWidth + delta.x}px`;
105
+ this.styleContainer.nativeElement.style.width = `${mouseDown.secondWidth - delta.x}px`;
106
+ });
107
+ }
50
108
  }
51
- EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
52
- EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textEditors", predicate: FsTextEditorComponent, descendants: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\">\n <fs-dialog>\n <h1 mat-dialog-title>Design</h1>\n <div mat-dialog-content>\n <div class=\"container\">\n <div class=\"toggles\">\n <mat-button-toggle-group multiple>\n <mat-button-toggle value=\"content\" [checked]=\"editors.content\" (change)=\"editorToggleChange($event)\">Content</mat-button-toggle>\n <mat-button-toggle value=\"styles\" [checked]=\"editors.styles\" (change)=\"editorToggleChange($event)\">Styles</mat-button-toggle>\n </mat-button-toggle-group> \n </div>\n <div class=\"editors\">\n <div class=\"editor\" *ngIf=\"editors.content\">\n <fs-label>Content</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n [(ngModel)]=\"content\" \n name=\"content\"\n [config]=\"{ tabSize: 2, language: 'html' }\">\n </fs-text-editor> \n </div>\n </div>\n <div class=\"editor\" *ngIf=\"editors.styles\">\n <fs-label>Styles</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n [(ngModel)]=\"styles\" \n name=\"styles\"\n [config]=\"{ tabSize: 2, language: 'scss' }\">\n </fs-text-editor> \n </div>\n </div> \n </div>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <fs-form-dialog-actions>\n </fs-form-dialog-actions>\n </div>\n </fs-dialog>\n</form>\n", styles: ["form{display:block;height:100%}form fs-dialog{display:flex;flex-direction:column;height:100%}form ::ng-deep .mat-dialog-content{max-height:none;flex:1}.toggles{display:flex;align-self:end;z-index:1;position:relative;margin-bottom:-12px}.container{height:100%;display:flex;flex-direction:column}.editors{width:5000px;max-width:100%;height:100%;display:flex;min-height:0}.editors .editor{height:100%;display:flex;min-width:0;width:100%;flex-direction:column}.editors .editor .editor-container{height:100%;overflow:auto;background:#1E1E1E}.editors .editor .editor-container fs-text-editor{display:block}.editors .editor+.editor{margin-left:20px}.editors .editor fs-label{background-color:#fff;padding-bottom:5px}\n"], components: [{ type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-labelledby", "tabIndex", "appearance", "checked", "disabled", "id", "name", "aria-label", "value"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { type: i5.FsLabelComponent, selector: "fs-label" }, { type: i6.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i7.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "closeData", "name"] }], directives: [{ type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i4.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
109
+ EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i1.MatDialog }, { token: i2.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
110
+ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "styleEditor", first: true, predicate: ["styleEditor"], descendants: true }, { propertyName: "contentEditor", first: true, predicate: ["contentEditor"], descendants: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true, read: ElementRef, static: true }, { propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ElementRef, static: true }, { propertyName: "styleContainer", first: true, predicate: ["styleContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\">\n <fs-dialog>\n <h1 mat-dialog-title>\n <div class=\"title-container\">\n <div class=\"title\">\n Page\n <div class=\"small\">{{contentPage.name}}</div> \n </div>\n <a\n (click)=\"openSettings()\"\n mat-icon-button>\n <mat-icon>settings</mat-icon>\n </a> \n </div>\n </h1>\n <div mat-dialog-content>\n <div class=\"container\">\n <div class=\"editors\" [ngClass]=\"{ resizing: resizing, 'separator-enabled': editors.styles && editors.content }\">\n <div #contentContainer class=\"editor editor-content\" [ngClass]=\"{ 'content-enabled': editors.content }\">\n <fs-label>Content</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n #contentEditor\n [(ngModel)]=\"contentPage.content\" \n name=\"content\"\n [config]=\"{ tabSize: 2, language: 'html' }\">\n </fs-text-editor> \n </div>\n </div>\n <div \n #separator\n class=\"separator\">\n </div>\n <div \n #styleContainer \n class=\"editor editor-styles\" \n [ngClass]=\"{ 'styles-enabled': editors.styles }\"\n [style.width]=\"'600px'\">\n <fs-label>Styles</fs-label>\n <div class=\"editor-container\">\n <fs-text-editor \n #styleEditor\n [(ngModel)]=\"contentPage.styles\" \n name=\"styles\"\n [config]=\"{ tabSize: 2, language: 'scss' }\">\n </fs-text-editor> \n </div>\n </div> \n </div>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <fs-form-dialog-actions>\n </fs-form-dialog-actions>\n <div class=\"toggles\">\n <mat-button-toggle-group multiple>\n <mat-button-toggle value=\"content\" [checked]=\"editors.content\" (change)=\"editorToggleChange($event)\">Content</mat-button-toggle>\n <mat-button-toggle value=\"styles\" [checked]=\"editors.styles\" (change)=\"editorToggleChange($event)\">Styles</mat-button-toggle>\n </mat-button-toggle-group> \n </div>\n </div>\n </fs-dialog>\n</form>\n\n", styles: ["form{display:block;height:100%}form fs-dialog{display:flex;flex-direction:column;height:100%}form ::ng-deep .mat-dialog-content{max-height:none;flex:1}.toggles{display:flex;justify-content:flex-end;justify-self:baseline;flex:1}.container{height:100%;display:flex;flex-direction:column}.editors{width:5000px;max-width:100%;height:100%;display:flex;min-height:0}.editors:not(.separator-enabled) .separator{display:none}.editors:not(.separator-enabled) .editor{width:100%!important}.editors .separator{cursor:col-resize;background-color:#fff;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='30'><path d='M2 0 v30 M5 0 v30 M8 0 v30' fill='none' stroke='black'/></svg>\");background-repeat:no-repeat;background-position:center;width:40px;height:100%;-webkit-user-select:none;user-select:none;flex-shrink:0}.editors .editor{height:100%;display:flex;min-width:0;width:100%;flex-direction:column}.editors .editor.editor-styles:not(.styles-enabled),.editors .editor.editor-content:not(.content-enabled){display:none}.editors .editor .editor-container{height:100%;overflow:hidden;background:#1E1E1E;border-radius:5px}.editors .editor .editor-container fs-text-editor{display:block}.editors .editor+.editor{margin-left:20px}.editors .editor fs-label{background-color:#fff;padding-bottom:5px}.title-container{display:flex;align-items:center}.title-container .title{flex:1}\n"], components: [{ type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileActionPlacement", "mobileWidth", "mode"] }, { type: i4.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6.FsLabelComponent, selector: "fs-label" }, { type: i7.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i8.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "done", "closeData", "name"] }, { type: i9.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-labelledby", "tabIndex", "appearance", "checked", "disabled", "id", "name", "aria-label", "value"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i10.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup", "deactivationGuard"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i11.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
53
111
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, decorators: [{
54
112
  type: Component,
55
113
  args: [{
@@ -60,8 +118,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
60
118
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
61
119
  type: Inject,
62
120
  args: [MAT_DIALOG_DATA]
63
- }] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }]; }, propDecorators: { textEditors: [{
64
- type: ViewChildren,
65
- args: [FsTextEditorComponent]
121
+ }] }, { type: i1.MatDialogRef }, { type: i1.MatDialog }, { type: i2.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { styleEditor: [{
122
+ type: ViewChild,
123
+ args: ['styleEditor']
124
+ }], contentEditor: [{
125
+ type: ViewChild,
126
+ args: ['contentEditor']
127
+ }], separator: [{
128
+ type: ViewChild,
129
+ args: ['separator', { static: true, read: ElementRef }]
130
+ }], contentContainer: [{
131
+ type: ViewChild,
132
+ args: ['contentContainer', { static: true, read: ElementRef }]
133
+ }], styleContainer: [{
134
+ type: ViewChild,
135
+ args: ['styleContainer', { static: true, read: ElementRef }]
66
136
  }] } });
67
- //# source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0YWJTaXplOiAyLCBsYW5ndWFnZTogJ2h0bWwnIH1cIj5cbiAgICAgICAgICAgICAgPC9mcy10ZXh0LWVkaXRvcj4gICAgICAgICAgICAgIFxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgPGRpdiBjbGFzcz1cImVkaXRvclwiICpuZ0lmPVwiZWRpdG9ycy5zdHlsZXNcIj5cbiAgICAgICAgICAgIDxmcy1sYWJlbD5TdHlsZXM8L2ZzLWxhYmVsPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImVkaXRvci1jb250YWluZXJcIj5cbiAgICAgICAgICAgICAgPGZzLXRleHQtZWRpdG9yIFxuICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwic3R5bGVzXCIgXG4gICAgICAgICAgICAgICAgbmFtZT1cInN0eWxlc1wiXG4gICAgICAgICAgICAgICAgW2NvbmZpZ109XCJ7ICB0YWJTaXplOiAyLCBsYW5ndWFnZTogJ3Njc3MnIH1cIj5cbiAgICAgICAgICAgICAgPC9mcy10ZXh0LWVkaXRvcj4gICAgXG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8L2Rpdj4gICAgXG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG5cbiAgICA8ZGl2IG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgICAgIDxmcy1mb3JtLWRpYWxvZy1hY3Rpb25zPlxuICAgICAgPC9mcy1mb3JtLWRpYWxvZy1hY3Rpb25zPlxuICAgIDwvZGl2PlxuICA8L2ZzLWRpYWxvZz5cbjwvZm9ybT5cbiJdfQ==
137
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9lZGl0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IFBhZ2VcbiAgICAgICAgICA8ZGl2IGNsYXNzPVwic21hbGxcIj57e2NvbnRlbnRQYWdlLm5hbWV9fTwvZGl2PiAgIFxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGFcbiAgICAgICAgICAgIChjbGljayk9XCJvcGVuU2V0dGluZ3MoKVwiXG4gICAgICAgICAgICBtYXQtaWNvbi1idXR0b24+XG4gICAgICAgICAgPG1hdC1pY29uPnNldHRpbmdzPC9tYXQtaWNvbj5cbiAgICAgICAgPC9hPiAgIFxuICAgICAgPC9kaXY+XG4gICAgPC9oMT5cbiAgICA8ZGl2IG1hdC1kaWFsb2ctY29udGVudD5cbiAgICAgIDxkaXYgY2xhc3M9XCJjb250YWluZXJcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImVkaXRvcnNcIiBbbmdDbGFzc109XCJ7IHJlc2l6aW5nOiByZXNpemluZywgJ3NlcGFyYXRvci1lbmFibGVkJzogZWRpdG9ycy5zdHlsZXMgJiYgZWRpdG9ycy5jb250ZW50IH1cIj5cbiAgICAgICAgICA8ZGl2ICNjb250ZW50Q29udGFpbmVyIGNsYXNzPVwiZWRpdG9yIGVkaXRvci1jb250ZW50XCIgW25nQ2xhc3NdPVwieyAnY29udGVudC1lbmFibGVkJzogZWRpdG9ycy5jb250ZW50IH1cIj5cbiAgICAgICAgICAgIDxmcy1sYWJlbD5Db250ZW50PC9mcy1sYWJlbD5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJlZGl0b3ItY29udGFpbmVyXCI+XG4gICAgICAgICAgICAgIDxmcy10ZXh0LWVkaXRvciBcbiAgICAgICAgICAgICAgICAjY29udGVudEVkaXRvclxuICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFBhZ2UuY29udGVudFwiIFxuICAgICAgICAgICAgICAgIG5hbWU9XCJjb250ZW50XCJcbiAgICAgICAgICAgICAgICBbY29uZmlnXT1cInsgdGFiU2l6ZTogMiwgbGFuZ3VhZ2U6ICdodG1sJyB9XCI+XG4gICAgICAgICAgICAgIDwvZnMtdGV4dC1lZGl0b3I+ICAgICAgICAgICAgICBcbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxkaXYgIFxuICAgICAgICAgICAgI3NlcGFyYXRvclxuICAgICAgICAgICAgY2xhc3M9XCJzZXBhcmF0b3JcIj5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8ZGl2IFxuICAgICAgICAgICAgICAjc3R5bGVDb250YWluZXIgXG4gICAgICAgICAgICAgIGNsYXNzPVwiZWRpdG9yIGVkaXRvci1zdHlsZXNcIiBcbiAgICAgICAgICAgICAgW25nQ2xhc3NdPVwieyAnc3R5bGVzLWVuYWJsZWQnOiBlZGl0b3JzLnN0eWxlcyB9XCJcbiAgICAgICAgICAgICAgW3N0eWxlLndpZHRoXT1cIic2MDBweCdcIj5cbiAgICAgICAgICAgIDxmcy1sYWJlbD5TdHlsZXM8L2ZzLWxhYmVsPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImVkaXRvci1jb250YWluZXJcIj5cbiAgICAgICAgICAgICAgPGZzLXRleHQtZWRpdG9yIFxuICAgICAgICAgICAgICAgICNzdHlsZUVkaXRvclxuICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFBhZ2Uuc3R5bGVzXCIgXG4gICAgICAgICAgICAgICAgbmFtZT1cInN0eWxlc1wiXG4gICAgICAgICAgICAgICAgW2NvbmZpZ109XCJ7ICB0YWJTaXplOiAyLCBsYW5ndWFnZTogJ3Njc3MnIH1cIj5cbiAgICAgICAgICAgICAgPC9mcy10ZXh0LWVkaXRvcj4gICAgXG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8L2Rpdj4gICAgXG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG5cbiAgICA8ZGl2IG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgICAgIDxmc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