@firestitch/content 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/app/consts/index.d.ts +1 -0
  2. package/app/consts/page-types.const.d.ts +5 -0
  3. package/app/enums/index.d.ts +1 -0
  4. package/app/enums/page-type.enum.d.ts +6 -0
  5. package/app/injectors/content-config.injector.d.ts +2 -0
  6. package/app/injectors/index.d.ts +1 -0
  7. package/app/interfaces/content-config.d.ts +19 -0
  8. package/app/interfaces/content-layout.d.ts +10 -0
  9. package/app/interfaces/content-page.d.ts +13 -0
  10. package/app/interfaces/index.d.ts +3 -0
  11. package/app/modules/content/components/content/content.component.d.ts +21 -0
  12. package/app/modules/content/components/content/index.d.ts +1 -0
  13. package/app/modules/content/components/content- renderer/content-renderer.component.d.ts +22 -0
  14. package/app/modules/content/components/content- renderer/index.d.ts +1 -0
  15. package/app/modules/content/fs-content.module.d.ts +10 -0
  16. package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +27 -0
  17. package/app/modules/content-layouts/components/content-layout/index.d.ts +1 -0
  18. package/app/modules/content-layouts/components/content-layouts/content-layouts.component.d.ts +20 -0
  19. package/app/modules/content-layouts/components/content-layouts/index.d.ts +1 -0
  20. package/app/modules/content-layouts/fs-content-layouts.module.d.ts +28 -0
  21. package/app/modules/content-pages/components/content-page/content-page.component.d.ts +32 -0
  22. package/app/modules/content-pages/components/content-page/index.d.ts +1 -0
  23. package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +23 -0
  24. package/app/modules/content-pages/components/content-pages/index.d.ts +1 -0
  25. package/app/modules/content-pages/fs-content-pages.module.d.ts +29 -0
  26. package/app/modules/editor/components/editor/editor.component.d.ts +26 -0
  27. package/app/modules/editor/components/editor/index.d.ts +1 -0
  28. package/app/modules/editor/fs-content-editor.module.d.ts +20 -0
  29. package/app/modules/editor/index.d.ts +1 -0
  30. package/bundles/firestitch-content.umd.js +894 -0
  31. package/bundles/firestitch-content.umd.js.map +1 -0
  32. package/esm2015/app/consts/index.js +2 -0
  33. package/esm2015/app/consts/page-types.const.js +8 -0
  34. package/esm2015/app/enums/index.js +2 -0
  35. package/esm2015/app/enums/page-type.enum.js +8 -0
  36. package/esm2015/app/injectors/content-config.injector.js +3 -0
  37. package/esm2015/app/injectors/index.js +2 -0
  38. package/esm2015/app/interfaces/content-config.js +2 -0
  39. package/esm2015/app/interfaces/content-layout.js +2 -0
  40. package/esm2015/app/interfaces/content-page.js +2 -0
  41. package/esm2015/app/interfaces/index.js +4 -0
  42. package/esm2015/app/modules/content/components/content/content.component.js +61 -0
  43. package/esm2015/app/modules/content/components/content/index.js +2 -0
  44. package/esm2015/app/modules/content/components/content- renderer/content-renderer.component.js +75 -0
  45. package/esm2015/app/modules/content/components/content- renderer/index.js +2 -0
  46. package/esm2015/app/modules/content/fs-content.module.js +33 -0
  47. package/esm2015/app/modules/content-layouts/components/content-layout/content-layout.component.js +73 -0
  48. package/esm2015/app/modules/content-layouts/components/content-layout/index.js +2 -0
  49. package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +124 -0
  50. package/esm2015/app/modules/content-layouts/components/content-layouts/index.js +2 -0
  51. package/esm2015/app/modules/content-layouts/fs-content-layouts.module.js +105 -0
  52. package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +82 -0
  53. package/esm2015/app/modules/content-pages/components/content-page/index.js +2 -0
  54. package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +128 -0
  55. package/esm2015/app/modules/content-pages/components/content-pages/index.js +2 -0
  56. package/esm2015/app/modules/content-pages/fs-content-pages.module.js +106 -0
  57. package/esm2015/app/modules/editor/components/editor/editor.component.js +67 -0
  58. package/esm2015/app/modules/editor/components/editor/index.js +2 -0
  59. package/esm2015/app/modules/editor/fs-content-editor.module.js +74 -0
  60. package/esm2015/app/modules/editor/index.js +2 -0
  61. package/esm2015/firestitch-content.js +5 -0
  62. package/esm2015/public_api.js +8 -0
  63. package/fesm2015/firestitch-content.js +827 -0
  64. package/fesm2015/firestitch-content.js.map +1 -0
  65. package/firestitch-content.d.ts +5 -0
  66. package/package.json +27 -0
  67. package/public_api.d.ts +9 -0
  68. package/styles.scss +0 -0
@@ -0,0 +1,124 @@
1
+ import { Component, ViewChild, ChangeDetectionStrategy, Inject, } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { FsListComponent } from '@firestitch/list';
4
+ import { ItemType } from '@firestitch/filter';
5
+ import { map, takeUntil, filter } from 'rxjs/operators';
6
+ import { Subject } from 'rxjs';
7
+ import { ContentLayoutComponent } from '../../components/content-layout';
8
+ import { FS_CONTENT_CONFIG } from '../../../../injectors';
9
+ import { EditorComponent } from '../../../editor/components/editor';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@angular/material/dialog";
12
+ import * as i2 from "@firestitch/list";
13
+ import * as i3 from "@angular/material/icon";
14
+ import * as i4 from "@firestitch/date";
15
+ export class FsContentLayoutsComponent {
16
+ constructor(_config, _dialog) {
17
+ this._config = _config;
18
+ this._dialog = _dialog;
19
+ this._destroy$ = new Subject();
20
+ }
21
+ ngOnInit() {
22
+ this._initListConfig();
23
+ }
24
+ openEditor(contentLayout) {
25
+ this._dialog.open(EditorComponent, {
26
+ maxWidth: null,
27
+ maxHeight: null,
28
+ data: {
29
+ styles: contentLayout.styles,
30
+ content: contentLayout.content,
31
+ save: (data) => {
32
+ return this._config.saveContentPage(Object.assign({ id: contentLayout.id }, data));
33
+ },
34
+ },
35
+ })
36
+ .afterClosed()
37
+ .pipe(takeUntil(this._destroy$))
38
+ .subscribe(() => {
39
+ this.listComponent.reload();
40
+ });
41
+ }
42
+ openLayout(contentLayout) {
43
+ this._dialog.open(ContentLayoutComponent, {
44
+ data: {
45
+ contentLayout,
46
+ },
47
+ })
48
+ .afterClosed()
49
+ .pipe(filter((_contentLayout) => !!_contentLayout), takeUntil(this._destroy$))
50
+ .subscribe(() => {
51
+ this.listComponent.reload();
52
+ });
53
+ }
54
+ ngOnDestroy() {
55
+ this._destroy$.next();
56
+ this._destroy$.complete();
57
+ }
58
+ _initListConfig() {
59
+ this.listConfig = {
60
+ paging: false,
61
+ filters: [
62
+ {
63
+ name: 'keyword',
64
+ type: ItemType.Keyword,
65
+ label: 'Search',
66
+ },
67
+ ],
68
+ actions: [
69
+ {
70
+ label: 'Create',
71
+ click: () => {
72
+ this.openLayout({});
73
+ },
74
+ },
75
+ ],
76
+ rowActions: [
77
+ {
78
+ click: (data) => {
79
+ return this._config.deleteContentLayout(data);
80
+ },
81
+ remove: {
82
+ title: 'Confirm',
83
+ template: 'Are you sure you would like to delete this record?',
84
+ },
85
+ menu: true,
86
+ label: 'Delete',
87
+ },
88
+ ],
89
+ fetch: (query) => {
90
+ return this._config.loadContentLayouts(query)
91
+ .pipe(map((contentLayouts) => {
92
+ return { data: contentLayouts };
93
+ }));
94
+ },
95
+ restore: {
96
+ query: { state: 'deleted' },
97
+ filterLabel: 'Show Deleted',
98
+ menuLabel: 'Restore',
99
+ reload: true,
100
+ click: (row) => {
101
+ return this._config.saveContentLayout({ id: row.id, state: 'active' });
102
+ },
103
+ },
104
+ };
105
+ }
106
+ }
107
+ FsContentLayoutsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
108
+ FsContentLayoutsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentLayoutsComponent, selector: "fs-content-layouts", 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)=\"openLayout(row)\">{{row.name}}</a>\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: [""], 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 });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsComponent, decorators: [{
110
+ type: Component,
111
+ args: [{
112
+ selector: 'fs-content-layouts',
113
+ templateUrl: './content-layouts.component.html',
114
+ styleUrls: ['./content-layouts.component.scss'],
115
+ changeDetection: ChangeDetectionStrategy.OnPush,
116
+ }]
117
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
118
+ type: Inject,
119
+ args: [FS_CONTENT_CONFIG]
120
+ }] }, { type: i1.MatDialog }]; }, propDecorators: { listComponent: [{
121
+ type: ViewChild,
122
+ args: [FsListComponent]
123
+ }] } });
124
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW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AgICAgICAgICAgICAgLi4uZGF0YSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAuYWZ0ZXJDbG9zZWQoKVxuICAgICAgICAucGlwZShcbiAgICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgICApICAgICAgICBcbiAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgdGhpcy5saXN0Q29tcG9uZW50LnJlbG9hZCgpO1xuICAgICAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBvcGVuTGF5b3V0KGNvbnRlbnRMYXlvdXQ6IGFueSk6IHZvaWQge1xuICAgIHRoaXMuX2RpYWxvZy5vcGVuKENvbnRlbnRMYXlvdXRDb21wb25lbnQsIHtcbiAgICAgIGRhdGE6IHtcbiAgICAgICAgY29udGVudExheW91dCxcbiAgICAgIH0sXG4gICAgfSlcbiAgICAgIC5hZnRlckNsb3NlZCgpXG4gICAgICAucGlwZShcbiAgICAgICAgZmlsdGVyKChfY29udGVudExheW91dCkgPT4gISFfY29udGVudExheW91dCksXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgdGhpcy5saXN0Q29tcG9uZW50LnJlbG9hZCgpO1xuICAgICAgfSk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5fZGVzdHJveSQubmV4dCgpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gIH1cblxuICBwcml2YXRlIF9pbml0TGlzdENvbmZpZygpOiB2b2lkIHtcbiAgICB0aGlzLmxpc3RDb25maWcgPSB7XG4gICAgICBwYWdpbmc6IGZhbHNlLFxuICAgICAgZmlsdGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2tleXdvcmQnLFxuICAgICAgICAgIHR5cGU6IEl0ZW1UeXBlLktleXdvcmQsXG4gICAgICAgICAgbGFiZWw6ICdTZWFyY2gnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGxhYmVsOiAnQ3JlYXRlJyxcbiAgICAgICAgICBjbGljazogKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5vcGVuTGF5b3V0KHt9KTtcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIHJvd0FjdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGNsaWNrOiAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuX2NvbmZpZy5kZWxldGVDb250ZW50TGF5b3V0KGRhdGEpO1xuICAgICAgICAgIH0sXG4gICAgICAgICAgcmVtb3ZlOiB7XG4gICAgICAgICAgICB0aXRsZTogJ0NvbmZpcm0nLFxuICAgICAgICAgICAgdGVtcGxhdGU6ICdBcmUgeW91IHN1cmUgeW91IHdvdWxkIGxpa2UgdG8gZGVsZXRlIHRoaXMgcmVjb3JkPycsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBtZW51OiB0cnVlLFxuICAgICAgICAgIGxhYmVsOiAnRGVsZXRlJyxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBmZXRjaDogKHF1ZXJ5KSA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLl9jb25maWcubG9hZENvbnRlbnRMYXlvdXRzKHF1ZXJ5KVxuICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgbWFwKChjb250ZW50TGF5b3V0czogYW55KSA9PiB7XG4gICAgICAgICAgICAgIHJldHVybiB7IGRhdGE6IGNvbnRlbnRMYXlvdXRzICB9O1xuICAgICAgICAgICAgfSksXG4gICAgICAgICAgKTtcbiAgICAgIH0sXG4gICAgICByZXN0b3JlOiB7XG4gICAgIC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VcIj5cbiAgICA8bmctdGVtcGxhdGUgZnMtbGlzdC1jZWxsIGxldC1yb3c9XCJyb3dcIj5cbiAgICAgIHt7cm93Lm1vZGlmeURhdGUgfCBmc0RhdGU6ICdkYXRlLXRpbWUteWVhcmxlc3MnfX1cbiAgICA8L25nLXRlbXBsYXRlPlxuICA8L2ZzLWxpc3QtY29sdW1uPlxuPC9mcy1saXN0PlxuIl19
@@ -0,0 +1,2 @@
1
+ export * from './content-layouts.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvY29udGVudC1sYXlvdXRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0cy5jb21wb25lbnQnO1xuXG5cbiJdfQ==
@@ -0,0 +1,105 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatButtonModule } from '@angular/material/button';
4
+ import { MatTabsModule } from '@angular/material/tabs';
5
+ import { MatDialogModule } from '@angular/material/dialog';
6
+ import { FormsModule } from '@angular/forms';
7
+ import { MatInputModule } from '@angular/material/input';
8
+ import { MatFormFieldModule } from '@angular/material/form-field';
9
+ import { FsListModule } from '@firestitch/list';
10
+ import { FsDateModule } from '@firestitch/date';
11
+ import { FsDialogModule } from '@firestitch/dialog';
12
+ import { FsFormModule } from '@firestitch/form';
13
+ import { FsHtmlEditorModule } from '@firestitch/html-editor';
14
+ import { FsTextEditorModule } from '@firestitch/text-editor';
15
+ import { FsContentLayoutsComponent } from './components/content-layouts';
16
+ import { MatIconModule } from '@angular/material/icon';
17
+ import { MatSelectModule } from '@angular/material/select';
18
+ import { MatButtonToggleModule } from '@angular/material/button-toggle';
19
+ import { FsLabelModule } from '@firestitch/label';
20
+ import { FsSkeletonModule } from '@firestitch/skeleton';
21
+ import { FsContentEditorModule } from '../editor';
22
+ import { ContentLayoutComponent } from './components/content-layout';
23
+ import { FlexLayoutModule } from '@angular/flex-layout';
24
+ import * as i0 from "@angular/core";
25
+ export class FsContentLayoutsModule {
26
+ }
27
+ FsContentLayoutsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28
+ FsContentLayoutsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsModule, declarations: [ContentLayoutComponent,
29
+ FsContentLayoutsComponent], imports: [CommonModule,
30
+ FormsModule,
31
+ FlexLayoutModule,
32
+ MatDialogModule,
33
+ MatInputModule,
34
+ MatFormFieldModule,
35
+ MatButtonModule,
36
+ MatTabsModule,
37
+ MatIconModule,
38
+ MatSelectModule,
39
+ MatButtonToggleModule,
40
+ FsListModule,
41
+ FsDateModule,
42
+ FsFormModule,
43
+ FsLabelModule,
44
+ FsSkeletonModule,
45
+ FsHtmlEditorModule,
46
+ FsDialogModule,
47
+ FsTextEditorModule,
48
+ FsContentEditorModule], exports: [FsContentLayoutsComponent] });
49
+ FsContentLayoutsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsModule, imports: [[
50
+ CommonModule,
51
+ FormsModule,
52
+ FlexLayoutModule,
53
+ MatDialogModule,
54
+ MatInputModule,
55
+ MatFormFieldModule,
56
+ MatButtonModule,
57
+ MatTabsModule,
58
+ MatIconModule,
59
+ MatSelectModule,
60
+ MatButtonToggleModule,
61
+ FsListModule,
62
+ FsDateModule,
63
+ FsFormModule,
64
+ FsLabelModule,
65
+ FsSkeletonModule,
66
+ FsHtmlEditorModule,
67
+ FsDialogModule,
68
+ FsTextEditorModule,
69
+ FsContentEditorModule,
70
+ ]] });
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentLayoutsModule, decorators: [{
72
+ type: NgModule,
73
+ args: [{
74
+ imports: [
75
+ CommonModule,
76
+ FormsModule,
77
+ FlexLayoutModule,
78
+ MatDialogModule,
79
+ MatInputModule,
80
+ MatFormFieldModule,
81
+ MatButtonModule,
82
+ MatTabsModule,
83
+ MatIconModule,
84
+ MatSelectModule,
85
+ MatButtonToggleModule,
86
+ FsListModule,
87
+ FsDateModule,
88
+ FsFormModule,
89
+ FsLabelModule,
90
+ FsSkeletonModule,
91
+ FsHtmlEditorModule,
92
+ FsDialogModule,
93
+ FsTextEditorModule,
94
+ FsContentEditorModule,
95
+ ],
96
+ exports: [
97
+ FsContentLayoutsComponent,
98
+ ],
99
+ declarations: [
100
+ ContentLayoutComponent,
101
+ FsContentLayoutsComponent,
102
+ ],
103
+ }]
104
+ }] });
105
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC1sYXlvdXRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvZnMtY29udGVudC1sYXlvdXRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUF1QixNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLE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GbGV4TGF5b3V0TW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvZmxleC1sYXlvdXQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuXG4gICAgRmxleExheW91dE1vZHVsZSxcblxuICAgIE1hdERpYWxvZ01vZHVsZSxcbiAgICBNYXRJbnB1dE1vZHVsZSxcbiAgICBNYXRGb3JtRmllbGRNb2R1bGUsXG4gICAgTWF0QnV0dG9uTW9kdWxlLFxuICAgIE1hdFRhYnNNb2R1bGUsXG4gICAgTWF0SWNvbk1vZHVsZSxcbiAgICBNYXRTZWxlY3RNb2R1bGUsXG4gICAgTWF0QnV0dG9uVG9nZ2xlTW9kdWxlLFxuXG4gICAgRnNMaXN0TW9kdWxlLFxuICAgIEZzRGF0ZU1vZHVsZSxcbiAgICBGc0Zvcm1Nb2R1bGUsXG4gICAgRnNMYWJlbE1vZHVsZSxcbiAgICBGc1NrZWxldG9uTW9kdWxlLFxuICAgIEZzSHRtbEVkaXRvck1vZHVsZSxcbiAgICBGc0RpYWxvZ01vZHVsZSxcbiAgICBGc1RleHRFZGl0b3JNb2R1bGUsXG5cbiAgICBGc0NvbnRlbnRFZGl0b3JNb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBGc0NvbnRlbnRMYXlvdXRzQ29tcG9uZW50LFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBDb250ZW50TGF5b3V0Q29tcG9uZW50LFxuICAgIEZzQ29udGVudExheW91dHNDb21wb25lbnQsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIEZzQ29udGVudExheW91dHNNb2R1bGUge1xufVxuIl19
@@ -0,0 +1,82 @@
1
+ import { Component, Inject, ChangeDetectionStrategy, ChangeDetectorRef, ViewChildren, QueryList, } from '@angular/core';
2
+ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
3
+ import { FsMessage } from '@firestitch/message';
4
+ import { FsTextEditorComponent } from '@firestitch/text-editor';
5
+ import { Subject, of } from 'rxjs';
6
+ import { switchMap, tap, takeUntil } from 'rxjs/operators';
7
+ import { PageTypes } from '../../../../consts';
8
+ import { FS_CONTENT_CONFIG } from '../../../../injectors';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@angular/material/dialog";
11
+ import * as i2 from "@firestitch/message";
12
+ import * as i3 from "@firestitch/dialog";
13
+ import * as i4 from "@angular/material/form-field";
14
+ import * as i5 from "@angular/material/select";
15
+ import * as i6 from "@angular/material/core";
16
+ import * as i7 from "@firestitch/form";
17
+ import * as i8 from "@firestitch/skeleton";
18
+ import * as i9 from "@angular/forms";
19
+ import * as i10 from "@angular/common";
20
+ import * as i11 from "@angular/material/input";
21
+ export class ContentPageComponent {
22
+ constructor(_config, _data, _dialogRef, _message, _cdRef) {
23
+ this._config = _config;
24
+ this._data = _data;
25
+ this._dialogRef = _dialogRef;
26
+ this._message = _message;
27
+ this._cdRef = _cdRef;
28
+ this.contentPage = null;
29
+ this.PageTypes = PageTypes;
30
+ this.editors = { content: true, styles: true };
31
+ this._destroy$ = new Subject();
32
+ this.save = () => {
33
+ return this._config.saveContentPage(this.contentPage)
34
+ .pipe(tap((contentPage) => {
35
+ this._message.success('Saved Changes');
36
+ this._dialogRef.close(contentPage);
37
+ }));
38
+ };
39
+ }
40
+ ngOnInit() {
41
+ this._fetchData();
42
+ }
43
+ ngOnDestroy() {
44
+ this._destroy$.next();
45
+ this._destroy$.complete();
46
+ }
47
+ _fetchData() {
48
+ this._config.loadContentLayouts()
49
+ .subscribe((contentLayouts) => {
50
+ this.contentLayouts = contentLayouts;
51
+ this._cdRef.markForCheck();
52
+ });
53
+ of(this._data.contentPage)
54
+ .pipe(switchMap((contentPage) => {
55
+ return of(contentPage);
56
+ }), takeUntil(this._destroy$))
57
+ .subscribe((contentPage) => {
58
+ this.contentPage = Object.assign({}, contentPage);
59
+ this._cdRef.markForCheck();
60
+ });
61
+ }
62
+ }
63
+ ContentPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentPageComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
64
+ ContentPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContentPageComponent, selector: "ng-component", viewQueries: [{ propertyName: "textEditors", predicate: FsTextEditorComponent, descendants: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\" *fsSkeletonForm=\"contentPage\">\n <fs-dialog>\n <h1 mat-dialog-title>{{contentPage.id ? 'Page' : 'Create Page'}}</h1>\n <div mat-dialog-content>\n <div fxLayout=\"column\">\n <mat-form-field>\n <mat-select\n [(ngModel)]=\"contentPage.type\"\n name=\"type\"\n required\n placeholder=\"Type\">\n <mat-option\n *ngFor=\"let item of PageTypes\"\n [value]=\"item.value\">\n {{ item.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field>\n <input\n matInput\n [(ngModel)]=\"contentPage.name\"\n name=\"name\"\n required\n placeholder=\"Name\">\n </mat-form-field>\n <mat-form-field>\n <input\n matInput\n [(ngModel)]=\"contentPage.path\"\n name=\"path\"\n placeholder=\"Path\">\n </mat-form-field>\n <mat-form-field>\n <input\n matInput\n [(ngModel)]=\"contentPage.title\"\n name=\"title\"\n placeholder=\"Title\">\n </mat-form-field>\n <mat-form-field *ngIf=\"contentLayouts\">\n <mat-select\n [(ngModel)]=\"contentPage.contentLayoutId\"\n required\n name=\"contentLayoutId\"\n placeholder=\"Layout\">\n <mat-option\n *ngFor=\"let item of contentLayouts\"\n [value]=\"item.id\">\n {{ item.name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\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: [""], components: [{ type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i7.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "closeData", "name"] }], directives: [{ type: i8.FsSkeletonFormDirective, selector: "[fsSkeletonForm]", inputs: ["fsSkeletonForm", "fsSkeletonFormLines"] }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i9.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: i9.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i9.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentPageComponent, decorators: [{
66
+ type: Component,
67
+ args: [{
68
+ templateUrl: './content-page.component.html',
69
+ styleUrls: ['./content-page.component.scss'],
70
+ changeDetection: ChangeDetectionStrategy.OnPush,
71
+ }]
72
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
73
+ type: Inject,
74
+ args: [FS_CONTENT_CONFIG]
75
+ }] }, { type: undefined, decorators: [{
76
+ type: Inject,
77
+ args: [MAT_DIALOG_DATA]
78
+ }] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { textEditors: [{
79
+ type: ViewChildren,
80
+ args: [FsTextEditorComponent]
81
+ }] } });
82
+ //# sourceMappingURL=data:application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m9ybS1maWVsZD5cbiAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxuICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgbWF0SW5wdXRcbiAgICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFBhZ2UucGF0aFwiXG4gICAgICAgICAgICBuYW1lPVwicGF0aFwiXG4gICAgICAgICAgICBwbGFjZWhvbGRlcj1cIlBhdGhcIj5cbiAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cbiAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxuICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgbWF0SW5wdXRcbiAgICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFBhZ2UudGl0bGVcIlxuICAgICAgICAgICAgbmFtZT1cInRpdGxlXCJcbiAgICAgICAgICAgIHBsYWNlaG9sZGVyPVwiVGl0bGVcIj5cbiAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cbiAgICAgICAgPG1hdC1mb3JtLWZpZWxkICpuZ0lmPVwiY29udGVudExheW91dHNcIj5cbiAgICAgICAgICA8bWF0LXNlbGVjdFxuICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJjb250ZW50UGFnZS5jb250ZW50TGF5b3V0SWRcIlxuICAgICAgICAgICAgcmVxdWlyZWRcbiAgICAgICAgICAgIG5hbWU9XCJjb250ZW50TGF5b3V0SWRcIlxuICAgICAgICAgICAgcGxhY2Vob2xkZXI9XCJMYXlvdXRcIj5cbiAgICAgICAgICAgICAgPG1hdC1vcHRpb25cbiAgICAgICAgICAgICAgICAqbmdGb3I9XCJsZXQgaXRlbSBvZiBjb250ZW50TGF5b3V0c1wiXG4gICAgICAgICAgICAgICAgW3ZhbHVlXT1cIml0ZW0uaWRcIj5cbiAgICAgICAgICAgICAgICAgIHt7IGl0ZW0ubmFtZSB9fVxuICAgICAgICAgICAgICA8L21hdC1vcHRpb24+XG4gICAgICAgICAgPC9tYXQtc2VsZWN0PlxuICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG5cbiAgICA8ZGl2IG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgICAgIDxmcy1mb3JtLWRpYWxvZy1hY3Rpb25zPlxuICAgICAgPC9mcy1mb3JtLWRpYWxvZy1hY3Rpb25zPlxuICAgIDwvZGl2PlxuICA8L2ZzLWRpYWxvZz5cbjwvZm9ybT5cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './content-page.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1wYWdlcy9jb21wb25lbnRzL2NvbnRlbnQtcGFnZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LXBhZ2UuY29tcG9uZW50JztcbiJdfQ==
@@ -0,0 +1,128 @@
1
+ import { Component, ViewChild, ChangeDetectionStrategy, Input, Inject, } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { FsListComponent } from '@firestitch/list';
4
+ import { ItemType } from '@firestitch/filter';
5
+ import { index } from '@firestitch/common';
6
+ import { filter, map, takeUntil } from 'rxjs/operators';
7
+ import { Subject } from 'rxjs';
8
+ import { PageTypes } from '../../../../consts';
9
+ import { FS_CONTENT_CONFIG } from '../../../../injectors';
10
+ import { ContentPageComponent } from '../content-page/content-page.component';
11
+ import { EditorComponent } from '../../../editor/components/editor';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "@angular/material/dialog";
14
+ import * as i2 from "@firestitch/list";
15
+ import * as i3 from "@angular/material/icon";
16
+ import * as i4 from "@firestitch/date";
17
+ export class FsContentPagesComponent {
18
+ constructor(_config, _dialog) {
19
+ this._config = _config;
20
+ this._dialog = _dialog;
21
+ this.pageTypes = index(PageTypes, 'value', 'name');
22
+ this._destroy$ = new Subject();
23
+ }
24
+ ngOnInit() {
25
+ this._initListConfig();
26
+ }
27
+ openEditor(contentPage) {
28
+ 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
+ data: {
48
+ contentPage,
49
+ },
50
+ })
51
+ .afterClosed()
52
+ .pipe(filter((_contentPage) => !!_contentPage), takeUntil(this._destroy$))
53
+ .subscribe(() => {
54
+ this.listComponent.reload();
55
+ });
56
+ }
57
+ ngOnDestroy() {
58
+ this._destroy$.next();
59
+ this._destroy$.complete();
60
+ }
61
+ _initListConfig() {
62
+ this.listConfig = {
63
+ filters: [
64
+ {
65
+ name: 'keyword',
66
+ type: ItemType.Keyword,
67
+ label: 'Search',
68
+ },
69
+ ],
70
+ actions: [
71
+ {
72
+ label: 'Create',
73
+ click: () => {
74
+ this.openPage({});
75
+ },
76
+ },
77
+ ],
78
+ rowActions: [
79
+ {
80
+ click: (data) => {
81
+ return this._config.deleteContentPage(data);
82
+ },
83
+ remove: {
84
+ title: 'Confirm',
85
+ template: 'Are you sure you would like to delete this record?',
86
+ },
87
+ menu: true,
88
+ label: 'Delete',
89
+ },
90
+ ],
91
+ fetch: (query) => {
92
+ return this._config.loadContentPages(query)
93
+ .pipe(map((response) => {
94
+ return { data: response.contentPages, paging: response.paging };
95
+ }));
96
+ },
97
+ restore: {
98
+ query: { state: 'deleted' },
99
+ filterLabel: 'Show Deleted',
100
+ menuLabel: 'Restore',
101
+ reload: true,
102
+ click: (row) => {
103
+ return this._config.saveContentPage({ id: row.id, state: 'active' });
104
+ },
105
+ },
106
+ };
107
+ }
108
+ }
109
+ 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 /{{row.path}}\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 });
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesComponent, decorators: [{
112
+ type: Component,
113
+ args: [{
114
+ selector: 'fs-content-pages',
115
+ templateUrl: './content-pages.component.html',
116
+ styleUrls: ['./content-pages.component.scss'],
117
+ changeDetection: ChangeDetectionStrategy.OnPush,
118
+ }]
119
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
120
+ type: Inject,
121
+ args: [FS_CONTENT_CONFIG]
122
+ }] }, { type: i1.MatDialog }]; }, propDecorators: { htmlEditorConfig: [{
123
+ type: Input
124
+ }], listComponent: [{
125
+ type: ViewChild,
126
+ args: [FsListComponent]
127
+ }] } });
128
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1wYWdlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1wYWdlcy9jb21wb25lbnRzL2NvbnRlbnQtcGFnZXMvY29udGVudC1wYWdlcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8u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fZGlhbG9nOiBNYXREaWFsb2csXG4gICkge31cblxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgdGhpcy5faW5pdExpc3RDb25maWcoKTtcbiAgfVxuXG4gIHB1YmxpYyBvcGVuRWRpdG9yKGNvbnRlbnRQYWdlOiBhbnkpOiB2b2lkIHtcbiAgICB0aGlzLl9kaWFsb2cub3BlbihFZGl0b3JDb21wb25lbnQsIHtcbiAgICAgIG1heFdpZHRoOiBudWxsLFxuICAgICAgbWF4SGVpZ2h0OiBudWxsLFxuICAgICAgZGF0YToge1xuICAgICAgICBzdHlsZXM6IGNvbnRlbnRQYWdlLnN0eWxlcyxcbiAgICAgICAgY29udGVudDogY29udGVudFBhZ2UuY29udGVudCxcbiAgICAgICAgc2F2ZTogKGRhdGEpID0+IHtcbiAgICAgICAgICByZXR1cm4gdGhpcy5fY29uZmlnLnNhdmVDb250ZW50UGFnZSh7XG4gICAgICAgICAgICBpZDogY29udGVudFBhZ2UuaWQsXG4gICAgICAgICAgICAuLi5kYXRhLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9LCAgICAgXG4gICAgICB9LFxuICAgIH0pXG4gICAgICAuYWZ0ZXJDbG9zZWQoKVxuICAgICAgLnBpcGUoXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICB0aGlzLmxpc3RDb21wb25lbnQucmVsb2FkKCk7XG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgb3BlblBhZ2UoY29udGVudFBhZ2U6IGFueSk6IHZvaWQge1xuICAgIHRoaXMuX2RpYWxvZy5vcGVuKENvbnRlbnRQYWdlQ29tcG9uZW50LCB7XG4gICAgICBkYXRhOiB7XG4gICAgICAgIGNvbnRlbnRQYWdlLFxuICAgICAgfSxcbiAgICB9KVxuICAgICAgLmFmdGVyQ2xvc2VkKClcbiAgICAgIC5waXBlKFxuICAgICAgICBmaWx0ZXIoKF9jb250ZW50UGFnZSkgPT4gISFfY29udGVudFBhZ2UpLFxuICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgIHRoaXMubGlzdENvbXBvbmVudC5yZWxvYWQoKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuX2Rlc3Ryb3kkLm5leHQoKTtcbiAgICB0aGlzLl9kZXN0cm95JC5jb21wbGV0ZSgpO1xuICB9XG5cbiAgcHJpdmF0ZSBfaW5pdExpc3RDb25maWcoKTogdm9pZCB7XG4gICAgdGhpcy5saXN0Q29uZmlnID0ge1xuICAgICAgZmlsdGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2tleXdvcmQnLFxuICAgICAgICAgIHR5cGU6IEl0ZW1UeXBlLktleXdvcmQsXG4gICAgICAgICAgbGFiZWw6ICdTZWFyY2gnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGxhYmVsOiAnQ3JlYXRlJyxcbiAgICAgICAgICBjbGljazogKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5vcGVuUGFnZSh7fSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICByb3dBY3Rpb25zOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBjbGljazogKGRhdGEpID0+IHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9jb25maWcuZGVsZXRlQ29udGVudFBhZ2UoZGF0YSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgICByZW1vdmU6IHtcbiAgICAgICAgICAgIHRpdGxlOiAnQ29uZmlybScsXG4gICAgICAgICAgICB0ZW1wbGF0ZTogJ0FyZSB5b3Ugc3VyZSB5b3Ugd291bGQg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AgICB7e3Jvdy5tb2RpZnlEYXRlIHwgZnNEYXRlOiAnZGF0ZS10aW1lLXllYXJsZXNzJ319XG4gICAgPC9uZy10ZW1wbGF0ZT5cbiAgPC9mcy1saXN0LWNvbHVtbj5cbjwvZnMtbGlzdD5cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './content-pages.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1wYWdlcy9jb21wb25lbnRzL2NvbnRlbnQtcGFnZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1wYWdlcy5jb21wb25lbnQnO1xuIl19