@firestitch/content 12.3.5 → 13.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +1 -1
- package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +1 -0
- package/app/modules/content-pages/fs-content-pages.module.d.ts +21 -20
- package/{esm2015/app/modules/content/components/content/content.component.js → esm2020/app/modules/content/components/content/content.component.mjs} +5 -10
- package/{esm2015/app/modules/content/components/content-renderer/content-renderer.component.js → esm2020/app/modules/content/components/content-renderer/content-renderer.component.mjs} +5 -10
- package/{esm2015/app/modules/content/fs-content.module.js → esm2020/app/modules/content/fs-content.module.mjs} +5 -5
- package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs +68 -0
- package/esm2020/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.mjs +162 -0
- package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs +116 -0
- package/{esm2015/app/modules/content-layouts/fs-content-layouts.module.js → esm2020/app/modules/content-layouts/fs-content-layouts.module.mjs} +5 -5
- package/esm2020/app/modules/content-pages/components/content-page/content-page.component.mjs +81 -0
- package/esm2020/app/modules/content-pages/components/content-page-editor/content-page-editor.component.mjs +179 -0
- package/esm2020/app/modules/content-pages/components/content-pages/content-pages.component.mjs +125 -0
- package/esm2020/app/modules/content-pages/fs-content-pages.module.mjs +121 -0
- package/esm2020/app/modules/content-style/components/content-style/content-style.component.mjs +69 -0
- package/{esm2015/app/modules/content-style/fs-content-style.module.js → esm2020/app/modules/content-style/fs-content-style.module.mjs} +5 -5
- package/esm2020/app/modules/editor/components/editor/editor.component.mjs +144 -0
- package/esm2020/app/modules/editor/components/editor-label/editor-label.component.mjs +16 -0
- package/{esm2015/app/modules/editor/fs-content-editor.module.js → esm2020/app/modules/editor/fs-content-editor.module.mjs} +5 -5
- package/fesm2015/firestitch-content.mjs +1344 -0
- package/fesm2015/firestitch-content.mjs.map +1 -0
- package/fesm2020/firestitch-content.mjs +1345 -0
- package/fesm2020/firestitch-content.mjs.map +1 -0
- package/package.json +21 -8
- package/bundles/firestitch-content.umd.js +0 -1482
- package/bundles/firestitch-content.umd.js.map +0 -1
- package/esm2015/app/modules/content-layouts/components/content-layout/content-layout.component.js +0 -72
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +0 -160
- package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +0 -121
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +0 -83
- package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +0 -176
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +0 -130
- package/esm2015/app/modules/content-pages/fs-content-pages.module.js +0 -117
- package/esm2015/app/modules/content-style/components/content-style/content-style.component.js +0 -71
- package/esm2015/app/modules/editor/components/editor/editor.component.js +0 -149
- package/esm2015/app/modules/editor/components/editor-label/editor-label.component.js +0 -21
- package/fesm2015/firestitch-content.js +0 -1376
- package/fesm2015/firestitch-content.js.map +0 -1
- /package/{esm2015/app/consts/index.js → esm2020/app/consts/index.mjs} +0 -0
- /package/{esm2015/app/consts/page-types.const.js → esm2020/app/consts/page-types.const.mjs} +0 -0
- /package/{esm2015/app/enums/editor-type.js → esm2020/app/enums/editor-type.mjs} +0 -0
- /package/{esm2015/app/enums/index.js → esm2020/app/enums/index.mjs} +0 -0
- /package/{esm2015/app/enums/page-type.enum.js → esm2020/app/enums/page-type.enum.mjs} +0 -0
- /package/{esm2015/app/injectors/content-config.injector.js → esm2020/app/injectors/content-config.injector.mjs} +0 -0
- /package/{esm2015/app/injectors/index.js → esm2020/app/injectors/index.mjs} +0 -0
- /package/{esm2015/app/interfaces/content-config.js → esm2020/app/interfaces/content-config.mjs} +0 -0
- /package/{esm2015/app/interfaces/content-layout.js → esm2020/app/interfaces/content-layout.mjs} +0 -0
- /package/{esm2015/app/interfaces/content-page.js → esm2020/app/interfaces/content-page.mjs} +0 -0
- /package/{esm2015/app/interfaces/content-style.js → esm2020/app/interfaces/content-style.mjs} +0 -0
- /package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +0 -0
- /package/{esm2015/app/modules/content/components/content/index.js → esm2020/app/modules/content/components/content/index.mjs} +0 -0
- /package/{esm2015/app/modules/content/components/content-renderer/index.js → esm2020/app/modules/content/components/content-renderer/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-layouts/components/content-layout/index.js → esm2020/app/modules/content-layouts/components/content-layout/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-layouts/components/content-layout-editor/index.js → esm2020/app/modules/content-layouts/components/content-layout-editor/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-layouts/components/content-layouts/index.js → esm2020/app/modules/content-layouts/components/content-layouts/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-layouts/components/index.js → esm2020/app/modules/content-layouts/components/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-pages/components/content-page/index.js → esm2020/app/modules/content-pages/components/content-page/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-pages/components/content-page-editor/index.js → esm2020/app/modules/content-pages/components/content-page-editor/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-pages/components/content-pages/index.js → esm2020/app/modules/content-pages/components/content-pages/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-pages/components/index.js → esm2020/app/modules/content-pages/components/index.mjs} +0 -0
- /package/{esm2015/app/modules/content-style/components/content-style/index.js → esm2020/app/modules/content-style/components/content-style/index.mjs} +0 -0
- /package/{esm2015/app/modules/editor/components/editor/index.js → esm2020/app/modules/editor/components/editor/index.mjs} +0 -0
- /package/{esm2015/app/modules/editor/components/editor-label/index.js → esm2020/app/modules/editor/components/editor-label/index.mjs} +0 -0
- /package/{esm2015/app/modules/editor/index.js → esm2020/app/modules/editor/index.mjs} +0 -0
- /package/{esm2015/firestitch-content.js → esm2020/firestitch-content.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
@@ -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';
|
@@ -5,28 +5,29 @@ import * as i2 from "./components/content-page/content-page.component";
|
|
5
5
|
import * as i3 from "./components/content-page-editor/content-page-editor.component";
|
6
6
|
import * as i4 from "@angular/common";
|
7
7
|
import * as i5 from "@angular/forms";
|
8
|
-
import * as i6 from "@angular/
|
9
|
-
import * as i7 from "@angular/material/
|
10
|
-
import * as i8 from "@angular/material/
|
11
|
-
import * as i9 from "@angular/material/
|
12
|
-
import * as i10 from "@angular/material/
|
13
|
-
import * as i11 from "@angular/material/
|
14
|
-
import * as i12 from "@angular/material/
|
15
|
-
import * as i13 from "@angular/material/
|
16
|
-
import * as i14 from "@angular/material/
|
17
|
-
import * as i15 from "@
|
18
|
-
import * as i16 from "@firestitch/
|
19
|
-
import * as i17 from "@firestitch/
|
20
|
-
import * as i18 from "@firestitch/
|
21
|
-
import * as i19 from "@firestitch/
|
22
|
-
import * as i20 from "@firestitch/
|
23
|
-
import * as i21 from "@firestitch/
|
24
|
-
import * as i22 from "@firestitch/
|
25
|
-
import * as i23 from "@firestitch/
|
26
|
-
import * as i24 from "
|
8
|
+
import * as i6 from "@angular/router";
|
9
|
+
import * as i7 from "@angular/material/dialog";
|
10
|
+
import * as i8 from "@angular/material/input";
|
11
|
+
import * as i9 from "@angular/material/form-field";
|
12
|
+
import * as i10 from "@angular/material/button";
|
13
|
+
import * as i11 from "@angular/material/tabs";
|
14
|
+
import * as i12 from "@angular/material/icon";
|
15
|
+
import * as i13 from "@angular/material/select";
|
16
|
+
import * as i14 from "@angular/material/button-toggle";
|
17
|
+
import * as i15 from "@angular/material/tooltip";
|
18
|
+
import * as i16 from "@firestitch/list";
|
19
|
+
import * as i17 from "@firestitch/date";
|
20
|
+
import * as i18 from "@firestitch/common";
|
21
|
+
import * as i19 from "@firestitch/form";
|
22
|
+
import * as i20 from "@firestitch/label";
|
23
|
+
import * as i21 from "@firestitch/skeleton";
|
24
|
+
import * as i22 from "@firestitch/html-editor";
|
25
|
+
import * as i23 from "@firestitch/dialog";
|
26
|
+
import * as i24 from "@firestitch/text-editor";
|
27
|
+
import * as i25 from "../editor/fs-content-editor.module";
|
27
28
|
export declare class FsContentPagesModule {
|
28
29
|
static forRoot(): ModuleWithProviders<FsContentPagesModule>;
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentPagesModule, never>;
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent, typeof i3.ContentPageEditorComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentPagesModule, [typeof i1.FsContentPagesComponent, typeof i2.ContentPageComponent, typeof i3.ContentPageEditorComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.RouterModule, typeof i7.MatDialogModule, typeof i8.MatInputModule, typeof i9.MatFormFieldModule, typeof i10.MatButtonModule, typeof i11.MatTabsModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatButtonToggleModule, typeof i15.MatTooltipModule, typeof i16.FsListModule, typeof i17.FsDateModule, typeof i18.FsCommonModule, typeof i19.FsFormModule, typeof i20.FsLabelModule, typeof i21.FsSkeletonModule, typeof i22.FsHtmlEditorModule, typeof i23.FsDialogModule, typeof i24.FsTextEditorModule, typeof i25.FsContentEditorModule], [typeof i1.FsContentPagesComponent]>;
|
31
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentPagesModule>;
|
32
33
|
}
|
@@ -68,18 +68,13 @@ export class FsContentComponent {
|
|
68
68
|
});
|
69
69
|
}
|
70
70
|
}
|
71
|
-
FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
72
|
-
FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
71
|
+
FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.Title }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
72
|
+
FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsContentComponent, selector: "fs-content", ngImport: i0, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""], components: [{ type: i4.ContentRendererComponent, selector: "fs-content-renderer", inputs: ["contentPage"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentComponent, decorators: [{
|
74
74
|
type: Component,
|
75
|
-
args: [{
|
76
|
-
selector: 'fs-content',
|
77
|
-
templateUrl: './content.component.html',
|
78
|
-
styleUrls: ['./content.component.scss'],
|
79
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
80
|
-
}]
|
75
|
+
args: [{ selector: 'fs-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""] }]
|
81
76
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
82
77
|
type: Inject,
|
83
78
|
args: [FS_CONTENT_CONFIG]
|
84
79
|
}] }, { type: i1.Title }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; } });
|
85
|
-
//# sourceMappingURL=data:application/json;base64,
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLE1BQU0sR0FHUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV4RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFaEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRW5ELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDOzs7Ozs7O0FBVTFELE1BQU0sT0FBTyxrQkFBa0I7SUFNN0IsWUFDcUMsT0FBd0IsRUFDbkQsTUFBYSxFQUNiLE1B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gaWYoY29udGVudFBhZ2UudGl0bGUpIHtcbiAgICAgICAgICB0aGlzLl90aXRsZS5zZXRUaXRsZShjb250ZW50UGFnZS50aXRsZSk7XG5cbiAgICAgICAgICBsZXQgb2dUaXRsZUVsID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignaGVhZCBtZXRhW3Byb3BlcnR5PVwib2c6dGl0bGVcIl0nKTtcbiAgICAgICAgICBpZighb2dUaXRsZUVsKSB7XG4gICAgICAgICAgICBvZ1RpdGxlRWwgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdtZXRhJyk7XG4gICAgICAgICAgICBvZ1RpdGxlRWwuc2V0QXR0cmlidXRlKCdwcm9wZXJ0eScsJ29nOnRpdGxlJyk7XG4gICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnaGVhZCcpWzBdLmFwcGVuZENoaWxkKG9nVGl0bGVFbCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgb2dUaXRsZUVsLnNldEF0dHJpYnV0ZSgnY29udGVudCcsY29udGVudFBhZ2UudGl0bGUpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5jb250ZW50UGFnZSA9IGNvbnRlbnRQYWdlO1xuICAgICAgICB0aGlzLl9jZFJlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICAgIH0pO1xuICB9XG5cbn1cbiIsIjxuZy1jb250YWluZXIgKm5nSWY9XCJjb250ZW50UGFnZVwiPlxuICA8ZnMtY29udGVudC1yZW5kZXJlciBbY29udGVudFBhZ2VdPVwiY29udGVudFBhZ2VcIj48L2ZzLWNvbnRlbnQtcmVuZGVyZXI+XG48L25nLWNvbnRhaW5lcj4iXX0=
|
@@ -60,20 +60,15 @@ export class ContentRendererComponent {
|
|
60
60
|
}
|
61
61
|
}
|
62
62
|
}
|
63
|
-
ContentRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
64
|
-
ContentRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
63
|
+
ContentRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentRendererComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
64
|
+
ContentRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ContentRendererComponent, selector: "fs-content-renderer", inputs: { contentPage: "contentPage" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["script"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentRendererComponent, decorators: [{
|
66
66
|
type: Component,
|
67
|
-
args: [{
|
68
|
-
selector: 'fs-content-renderer',
|
69
|
-
templateUrl: './content-renderer.component.html',
|
70
|
-
styleUrls: ['./content-renderer.component.scss'],
|
71
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
72
|
-
}]
|
67
|
+
args: [{ selector: 'fs-content-renderer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""] }]
|
73
68
|
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; }, propDecorators: { script: [{
|
74
69
|
type: ViewChild,
|
75
70
|
args: ['script', { read: ElementRef }]
|
76
71
|
}], contentPage: [{
|
77
72
|
type: Input
|
78
73
|
}] } });
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUlMLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsWUFBWSxFQUFZLE1BQU0sMkJBQTJCLENBQUM7QUFDbkUsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRXpDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDOzs7Ozs7QUFTL0IsTUFBTSxPQUFPLHdCQUF3QjtJQVduQyxZQUNVLFVBQXdCLEVBQ3hCLE9BQWUsRUFDZixHQUFlLEVBQ2YsYUFBMkI7UUFIM0IsZUFBVSxHQUFWLFVBQVUsQ0FBYztRQUN4QixZQUFPLEdBQVAsT0FBTyxDQUFRO1FBQ2YsUUFBRyxHQUFILEdBQUcsQ0FBWTtRQUNmLGtCQU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H1cblxuICBwdWJsaWMgcmVtb3ZlU3R5bGVzKCk6IHZvaWQge1xuICAgIGNvbnN0IGVsID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignI2NvbnRlbnRQYWdlU3R5bGVzJyk7XG4gICAgaWYoZWwpIHtcbiAgICAgIGVsLnJlbW92ZSgpO1xuICAgIH1cbiAgfVxuXG59XG4iLCI8ZGl2ICpuZ0lmPVwiY29udGVudFwiIFtpbm5lckhUTUxdPVwiY29udGVudFwiPjwvZGl2PlxuPHNwYW4gI3NjcmlwdD48L3NwYW4+Il19
|
@@ -6,15 +6,15 @@ import { ContentRendererComponent } from './components/content-renderer';
|
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export class FsContentModule {
|
8
8
|
}
|
9
|
-
FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
10
|
-
FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
9
|
+
FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
10
|
+
FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, declarations: [FsContentComponent,
|
11
11
|
ContentRendererComponent], imports: [CommonModule,
|
12
12
|
FsHtmlEditorModule], exports: [FsContentComponent] });
|
13
|
-
FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
13
|
+
FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, imports: [[
|
14
14
|
CommonModule,
|
15
15
|
FsHtmlEditorModule,
|
16
16
|
]] });
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, decorators: [{
|
18
18
|
type: NgModule,
|
19
19
|
args: [{
|
20
20
|
imports: [
|
@@ -30,4 +30,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
30
30
|
],
|
31
31
|
}]
|
32
32
|
}] });
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9mcy1jb250ZW50Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUU3RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7QUFrQnpFLE1BQU0sT0FBTyxlQUFlOzs0R0FBZixlQUFlOzZHQUFmLGVBQWUsaUJBSnhCLGtCQUFrQjtRQUNsQix3QkFBd0IsYUFUeEIsWUFBWTtRQUVaLGtCQUFrQixhQUdsQixrQkFBa0I7NkdBT1QsZUFBZSxZQWJqQjtZQUNQLFlBQVk7WUFFWixrQkFBa0I7U0FDbkI7MkZBU1UsZUFBZTtrQkFkM0IsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUU7d0JBQ1AsWUFBWTt3QkFFWixrQkFBa0I7cUJBQ25CO29CQUNELE9BQU8sRUFBRTt3QkFDUCxrQkFBa0I7cUJBQ25CO29CQUNELFlBQVksRUFBRTt3QkFDWixrQkFBa0I7d0JBQ2xCLHdCQUF3QjtxQkFDekI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuaW1wb3J0IHsgRnNIdG1sRWRpdG9yTW9kdWxlIH0gZnJvbSAnQGZpcmVzdGl0Y2gvaHRtbC1lZGl0b3InO1xuXG5pbXBvcnQgeyBGc0NvbnRlbnRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudCc7XG5pbXBvcnQgeyBDb250ZW50UmVuZGVyZXJDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudC1yZW5kZXJlcic7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuXG4gICAgRnNIdG1sRWRpdG9yTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRnNDb250ZW50Q29tcG9uZW50LFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBGc0NvbnRlbnRDb21wb25lbnQsXG4gICAgQ29udGVudFJlbmRlcmVyQ29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBGc0NvbnRlbnRNb2R1bGUge1xufVxuIl19
|
package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, QueryList, ViewChildren, } from '@angular/core';
|
2
|
+
import { MAT_DIALOG_DATA, MatDialogRef } 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, takeUntil, tap } from 'rxjs/operators';
|
7
|
+
import { FS_CONTENT_CONFIG } from '../../../../injectors';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@angular/material/dialog";
|
10
|
+
import * as i2 from "@firestitch/message";
|
11
|
+
import * as i3 from "@firestitch/dialog";
|
12
|
+
import * as i4 from "@angular/material/form-field";
|
13
|
+
import * as i5 from "@firestitch/form";
|
14
|
+
import * as i6 from "@firestitch/skeleton";
|
15
|
+
import * as i7 from "@angular/forms";
|
16
|
+
import * as i8 from "@angular/material/input";
|
17
|
+
export class ContentLayoutComponent {
|
18
|
+
constructor(_config, _data, _dialogRef, _message, _cdRef) {
|
19
|
+
this._config = _config;
|
20
|
+
this._data = _data;
|
21
|
+
this._dialogRef = _dialogRef;
|
22
|
+
this._message = _message;
|
23
|
+
this._cdRef = _cdRef;
|
24
|
+
this.contentLayout = null;
|
25
|
+
this.editors = { content: true, styles: true };
|
26
|
+
this._destroy$ = new Subject();
|
27
|
+
this.save = () => {
|
28
|
+
return this._config.saveContentLayout(this.contentLayout)
|
29
|
+
.pipe(tap((contentLayout) => {
|
30
|
+
this._message.success('Saved Changes');
|
31
|
+
this._dialogRef.close(contentLayout);
|
32
|
+
}));
|
33
|
+
};
|
34
|
+
}
|
35
|
+
ngOnInit() {
|
36
|
+
this._fetchData();
|
37
|
+
}
|
38
|
+
ngOnDestroy() {
|
39
|
+
this._destroy$.next();
|
40
|
+
this._destroy$.complete();
|
41
|
+
}
|
42
|
+
_fetchData() {
|
43
|
+
of(this._data.contentLayout)
|
44
|
+
.pipe(switchMap((contentLayout) => {
|
45
|
+
return of(contentLayout);
|
46
|
+
}), takeUntil(this._destroy$))
|
47
|
+
.subscribe((contentLayout) => {
|
48
|
+
this.contentLayout = { ...contentLayout };
|
49
|
+
this._cdRef.markForCheck();
|
50
|
+
});
|
51
|
+
}
|
52
|
+
}
|
53
|
+
ContentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
54
|
+
ContentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ContentLayoutComponent, selector: "ng-component", viewQueries: [{ propertyName: "textEditors", predicate: FsTextEditorComponent, descendants: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\" *fsSkeletonForm=\"contentLayout\">\n <fs-dialog>\n <h1 mat-dialog-title>{{contentLayout.id ? 'Layout' : 'Layout Page'}}</h1>\n <div mat-dialog-content>\n <div class=\"fs-column\">\n <mat-form-field>\n <mat-label>Name</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.name\"\n name=\"name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Tag</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.tag\"\n name=\"tag\">\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", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i5.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "done", "closeData", "name"] }], directives: [{ type: i6.FsSkeletonFormDirective, selector: "[fsSkeletonForm]", inputs: ["fsSkeletonForm", "fsSkeletonFormLines"] }, { type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5.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"], exportAs: ["fsForm"] }, { 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.MatLabel, selector: "mat-label" }, { type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i7.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: i7.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i5.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]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutComponent, decorators: [{
|
56
|
+
type: Component,
|
57
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<form fsForm [submit]=\"save\" *fsSkeletonForm=\"contentLayout\">\n <fs-dialog>\n <h1 mat-dialog-title>{{contentLayout.id ? 'Layout' : 'Layout Page'}}</h1>\n <div mat-dialog-content>\n <div class=\"fs-column\">\n <mat-form-field>\n <mat-label>Name</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.name\"\n name=\"name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Tag</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.tag\"\n name=\"tag\">\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: [""] }]
|
58
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
59
|
+
type: Inject,
|
60
|
+
args: [FS_CONTENT_CONFIG]
|
61
|
+
}] }, { type: undefined, decorators: [{
|
62
|
+
type: Inject,
|
63
|
+
args: [MAT_DIALOG_DATA]
|
64
|
+
}] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { textEditors: [{
|
65
|
+
type: ViewChildren,
|
66
|
+
args: [FsTextEditorComponent]
|
67
|
+
}] } });
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL2NvbnRlbnQtbGF5b3V0cy9jb21wb25lbnRzL2NvbnRlbnQtbGF5b3V0L2NvbnRlbnQtbGF5b3V0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW50cy9jb250ZW50LWxheW91dC9jb250ZW50LWxheW91dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsTUFBTSxFQUdOLFNBQVMsRUFDVCxZQUFZLEdBQ2IsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxZQUFZLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV6RSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDaEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDbkMsT0FBTyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0QsT0FBTyxFQUFF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wcml2YXRlIF9mZXRjaERhdGEoKTogdm9pZCB7XG4gICAgb2YodGhpcy5fZGF0YS5jb250ZW50TGF5b3V0KVxuICAgICAgLnBpcGUoXG4gICAgICAgIHN3aXRjaE1hcCgoY29udGVudExheW91dCkgPT4ge1xuICAgICAgICAgIHJldHVybiBvZihjb250ZW50TGF5b3V0KTtcbiAgICAgICAgfSksXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKChjb250ZW50TGF5b3V0KSA9PiB7XG4gICAgICAgIHRoaXMuY29udGVudExheW91dCA9IHsgLi4uY29udGVudExheW91dCB9O1xuXG4gICAgICAgIHRoaXMuX2NkUmVmLm1hcmtGb3JDaGVjaygpO1xuICAgICAgfSk7XG4gIH1cblxufVxuIiwiPGZvcm0gZnNGb3JtIFtzdWJtaXRdPVwic2F2ZVwiICpmc1NrZWxldG9uRm9ybT1cImNvbnRlbnRMYXlvdXRcIj5cbiAgPGZzLWRpYWxvZz5cbiAgICA8aDEgbWF0LWRpYWxvZy10aXRsZT57e2NvbnRlbnRMYXlvdXQuaWQgPyAnTGF5b3V0JyA6ICdMYXlvdXQgUGFnZSd9fTwvaDE+XG4gICAgPGRpdiBtYXQtZGlhbG9nLWNvbnRlbnQ+XG4gICAgICA8ZGl2IGNsYXNzPVwiZnMtY29sdW1uXCI+XG4gICAgICAgIDxtYXQtZm9ybS1maWVsZD5cbiAgICAgICAgICA8bWF0LWxhYmVsPk5hbWU8L21hdC1sYWJlbD5cbiAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIG1hdElucHV0XG4gICAgICAgICAgICBbKG5nTW9kZWwpXT1cImNvbnRlbnRMYXlvdXQubmFtZVwiXG4gICAgICAgICAgICBuYW1lPVwibmFtZVwiXG4gICAgICAgICAgICByZXF1aXJlZD5cbiAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cbiAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxuICAgICAgICAgIDxtYXQtbGFiZWw+VGFnPC9tYXQtbGFiZWw+XG4gICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICBtYXRJbnB1dFxuICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJjb250ZW50TGF5b3V0LnRhZ1wiXG4gICAgICAgICAgICBuYW1lPVwidGFnXCI+XG4gICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cblxuICAgIDxkaXYgbWF0LWRpYWxvZy1hY3Rpb25zPlxuICAgICAgPGZzLWZvcm0tZGlhbG9nLWFjdGlvbnM+XG4gICAgICA8L2ZzLWZvcm0tZGlhbG9nLWFjdGlvbnM+XG4gICAgPC9kaXY+XG4gIDwvZnMtZGlhbG9nPlxuPC9mb3JtPlxuIl19
|
@@ -0,0 +1,162 @@
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, ViewChild, } from '@angular/core';
|
2
|
+
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
3
|
+
import { FsMessage } from '@firestitch/message';
|
4
|
+
import { FsPrompt } from '@firestitch/prompt';
|
5
|
+
import { Subject, fromEvent, of, throwError } from 'rxjs';
|
6
|
+
import { filter, switchMap, takeUntil, tap } from 'rxjs/operators';
|
7
|
+
import { EditorType } from '../../../../enums';
|
8
|
+
import { EditorComponent } from '../../../editor/components/editor';
|
9
|
+
import { ContentLayoutComponent } from '../content-layout/content-layout.component';
|
10
|
+
import * as i0 from "@angular/core";
|
11
|
+
import * as i1 from "@angular/material/dialog";
|
12
|
+
import * as i2 from "@firestitch/message";
|
13
|
+
import * as i3 from "@firestitch/prompt";
|
14
|
+
import * as i4 from "@firestitch/dialog";
|
15
|
+
import * as i5 from "@angular/material/button";
|
16
|
+
import * as i6 from "@angular/material/icon";
|
17
|
+
import * as i7 from "../../../editor/components/editor/editor.component";
|
18
|
+
import * as i8 from "@angular/material/button-toggle";
|
19
|
+
import * as i9 from "@angular/forms";
|
20
|
+
import * as i10 from "@firestitch/form";
|
21
|
+
import * as i11 from "@firestitch/skeleton";
|
22
|
+
export class ContentLayoutEditorComponent {
|
23
|
+
constructor(_data, _dialogRef, _message, _dialog, _cdRef, _prompt) {
|
24
|
+
this._data = _data;
|
25
|
+
this._dialogRef = _dialogRef;
|
26
|
+
this._message = _message;
|
27
|
+
this._dialog = _dialog;
|
28
|
+
this._cdRef = _cdRef;
|
29
|
+
this._prompt = _prompt;
|
30
|
+
this.EditorType = EditorType;
|
31
|
+
this.focused = null;
|
32
|
+
this.editors = {
|
33
|
+
[EditorType.Html]: true,
|
34
|
+
[EditorType.Scss]: true,
|
35
|
+
[EditorType.GlobalScss]: false,
|
36
|
+
};
|
37
|
+
this._destroy$ = new Subject();
|
38
|
+
this.save = () => {
|
39
|
+
return of(null)
|
40
|
+
.pipe(filter(() => this.focused), switchMap(() => {
|
41
|
+
switch (this.focused) {
|
42
|
+
case EditorType.Html:
|
43
|
+
case EditorType.Scss:
|
44
|
+
return this.saveContentPage();
|
45
|
+
case EditorType.GlobalScss:
|
46
|
+
return this.editor.saveGlobalScss();
|
47
|
+
}
|
48
|
+
return throwError('Invalid focus');
|
49
|
+
}), tap(() => {
|
50
|
+
this.editor.clearChange(this.focused);
|
51
|
+
this._cdRef.markForCheck();
|
52
|
+
}));
|
53
|
+
};
|
54
|
+
}
|
55
|
+
ngOnInit() {
|
56
|
+
this._dialogRef.addPanelClass('fs-content-editor-overlay-pane');
|
57
|
+
this._dialogRef.disableClose = true;
|
58
|
+
this.config = this._data.contentConfig;
|
59
|
+
this._initContentLayout(this._data.contentLayout);
|
60
|
+
this._initEscape();
|
61
|
+
}
|
62
|
+
editorToggleChange(event) {
|
63
|
+
this.editors[event.value] = !this.editors[event.value];
|
64
|
+
}
|
65
|
+
ngOnDestroy() {
|
66
|
+
this._destroy$.next();
|
67
|
+
this._destroy$.complete();
|
68
|
+
}
|
69
|
+
_initContentLayout(contentLayout) {
|
70
|
+
this.config.loadContentLayout(contentLayout.id)
|
71
|
+
.subscribe((data) => {
|
72
|
+
this.contentLayout = data;
|
73
|
+
this._cdRef.markForCheck();
|
74
|
+
});
|
75
|
+
}
|
76
|
+
editorFocused(type) {
|
77
|
+
this.focused = type;
|
78
|
+
}
|
79
|
+
saveContentPage() {
|
80
|
+
const names = {
|
81
|
+
[EditorType.Scss]: 'styles',
|
82
|
+
[EditorType.Html]: 'content',
|
83
|
+
};
|
84
|
+
const data = {
|
85
|
+
id: this.contentLayout.id,
|
86
|
+
[names[this.focused]]: this.editor.changes[this.focused],
|
87
|
+
};
|
88
|
+
return this.config.saveContentLayout({
|
89
|
+
id: this.contentLayout.id,
|
90
|
+
...data,
|
91
|
+
})
|
92
|
+
.pipe(tap(() => {
|
93
|
+
this._message.success('Saved Changes');
|
94
|
+
}));
|
95
|
+
}
|
96
|
+
close() {
|
97
|
+
if (!this.editor.hasChanges) {
|
98
|
+
return this._dialogRef.close();
|
99
|
+
}
|
100
|
+
this._prompt.confirm({
|
101
|
+
dialogConfig: {
|
102
|
+
width: null,
|
103
|
+
},
|
104
|
+
title: 'You have unsaved changes',
|
105
|
+
template: 'What would you like to do with your changes?',
|
106
|
+
buttons: [
|
107
|
+
{
|
108
|
+
label: 'Review Changes',
|
109
|
+
value: 'review',
|
110
|
+
},
|
111
|
+
{
|
112
|
+
label: 'Discard Changes',
|
113
|
+
value: 'discard',
|
114
|
+
},
|
115
|
+
],
|
116
|
+
})
|
117
|
+
.pipe(takeUntil(this._destroy$))
|
118
|
+
.subscribe((value) => {
|
119
|
+
if (value === 'discard') {
|
120
|
+
this._dialogRef.close();
|
121
|
+
}
|
122
|
+
});
|
123
|
+
}
|
124
|
+
openSettings() {
|
125
|
+
this._dialog.open(ContentLayoutComponent, {
|
126
|
+
data: {
|
127
|
+
contentLayout: this.contentLayout,
|
128
|
+
},
|
129
|
+
})
|
130
|
+
.afterClosed()
|
131
|
+
.pipe(takeUntil(this._destroy$))
|
132
|
+
.subscribe((contentLayout) => {
|
133
|
+
this.contentLayout = {
|
134
|
+
...this.contentLayout,
|
135
|
+
...contentLayout,
|
136
|
+
};
|
137
|
+
this._cdRef.markForCheck();
|
138
|
+
});
|
139
|
+
}
|
140
|
+
_initEscape() {
|
141
|
+
fromEvent(document, 'keydown')
|
142
|
+
.pipe(filter((event) => event.code === 'Escape'), takeUntil(this._destroy$)).subscribe(() => {
|
143
|
+
const dialogRef = this._dialog.openDialogs.reverse()[0];
|
144
|
+
if (dialogRef?.componentInstance === this) {
|
145
|
+
this.close();
|
146
|
+
}
|
147
|
+
});
|
148
|
+
}
|
149
|
+
}
|
150
|
+
ContentLayoutEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutEditorComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }, { token: i1.MatDialog }, { token: i0.ChangeDetectorRef }, { token: i3.FsPrompt }], target: i0.ɵɵFactoryTarget.Component });
|
151
|
+
ContentLayoutEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ContentLayoutEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "editor", first: true, predicate: EditorComponent, descendants: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\" [dirtySubmitButton]=\"false\" [confirm]=\"false\">\n <fs-dialog *fsSkeletonForm=\"contentLayout\">\n <h1 mat-dialog-title>\n <div class=\"title-container\">\n <div class=\"title\">\n Layout Editor\n <div class=\"small\">{{contentLayout.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 <app-editor\n [contentConfig]=\"config\"\n [showHtml]=\"editors.html\"\n [showScss]=\"editors.scss\"\n [showGlobalScss]=\"editors.globalScss\"\n [html]=\"contentLayout.content\"\n [scss]=\"contentLayout.styles\"\n (focused)=\"editorFocused($event)\">\n </app-editor>\n </div>\n\n <div mat-dialog-actions>\n <button \n mat-button\n color=\"primary\"\n (click)=\"close()\"\n type=\"button\"> \n Done \n </button>\n <div class=\"toggles\">\n <mat-button-toggle-group multiple>\n <mat-button-toggle value=\"html\" [checked]=\"editors.html\" (change)=\"editorToggleChange($event)\">HTML</mat-button-toggle>\n <mat-button-toggle value=\"scss\" [checked]=\"editors.scss\" (change)=\"editorToggleChange($event)\">SCSS</mat-button-toggle>\n <mat-button-toggle value=\"globalScss\" [checked]=\"editors.globalScss\" (change)=\"editorToggleChange($event)\">Global SCSS</mat-button-toggle>\n </mat-button-toggle-group> \n </div>\n </div>\n </fs-dialog>\n</form>", styles: ["::ng-deep .fs-content-editor-overlay-pane .mat-dialog-container{border-radius:0}form{height:100%}fs-dialog{display:flex;height:100%;flex-direction:column}fs-dialog ::ng-deep .mat-dialog-content{max-height:none;flex:1;overflow:hidden}fs-dialog ::ng-deep .mat-button-toggle-label-content{line-height:36px}.mat-dialog-actions .toggles{display:flex;justify-content:flex-end;justify-self:baseline;flex:1}.title-container{display:flex;align-items:center}.title-container .title{flex:1}.title-container .title .small{line-height:normal}\n"], components: [{ type: i4.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: i5.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: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.EditorComponent, selector: "app-editor", inputs: ["showHtml", "showScss", "showJs", "showGlobalScss", "html", "scss", "js", "contentConfig"], outputs: ["changed", "focused", "blured"] }, { type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }], directives: [{ 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: i10.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"], exportAs: ["fsForm"] }, { type: i11.FsSkeletonFormDirective, selector: "[fsSkeletonForm]", inputs: ["fsSkeletonForm", "fsSkeletonFormLines"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10.FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit", "form"] }, { type: i8.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutEditorComponent, decorators: [{
|
153
|
+
type: Component,
|
154
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<form fsForm [submit]=\"save\" [dirtySubmitButton]=\"false\" [confirm]=\"false\">\n <fs-dialog *fsSkeletonForm=\"contentLayout\">\n <h1 mat-dialog-title>\n <div class=\"title-container\">\n <div class=\"title\">\n Layout Editor\n <div class=\"small\">{{contentLayout.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 <app-editor\n [contentConfig]=\"config\"\n [showHtml]=\"editors.html\"\n [showScss]=\"editors.scss\"\n [showGlobalScss]=\"editors.globalScss\"\n [html]=\"contentLayout.content\"\n [scss]=\"contentLayout.styles\"\n (focused)=\"editorFocused($event)\">\n </app-editor>\n </div>\n\n <div mat-dialog-actions>\n <button \n mat-button\n color=\"primary\"\n (click)=\"close()\"\n type=\"button\"> \n Done \n </button>\n <div class=\"toggles\">\n <mat-button-toggle-group multiple>\n <mat-button-toggle value=\"html\" [checked]=\"editors.html\" (change)=\"editorToggleChange($event)\">HTML</mat-button-toggle>\n <mat-button-toggle value=\"scss\" [checked]=\"editors.scss\" (change)=\"editorToggleChange($event)\">SCSS</mat-button-toggle>\n <mat-button-toggle value=\"globalScss\" [checked]=\"editors.globalScss\" (change)=\"editorToggleChange($event)\">Global SCSS</mat-button-toggle>\n </mat-button-toggle-group> \n </div>\n </div>\n </fs-dialog>\n</form>", styles: ["::ng-deep .fs-content-editor-overlay-pane .mat-dialog-container{border-radius:0}form{height:100%}fs-dialog{display:flex;height:100%;flex-direction:column}fs-dialog ::ng-deep .mat-dialog-content{max-height:none;flex:1;overflow:hidden}fs-dialog ::ng-deep .mat-button-toggle-label-content{line-height:36px}.mat-dialog-actions .toggles{display:flex;justify-content:flex-end;justify-self:baseline;flex:1}.title-container{display:flex;align-items:center}.title-container .title{flex:1}.title-container .title .small{line-height:normal}\n"] }]
|
155
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
156
|
+
type: Inject,
|
157
|
+
args: [MAT_DIALOG_DATA]
|
158
|
+
}] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }, { type: i1.MatDialog }, { type: i0.ChangeDetectorRef }, { type: i3.FsPrompt }]; }, propDecorators: { editor: [{
|
159
|
+
type: ViewChild,
|
160
|
+
args: [EditorComponent]
|
161
|
+
}] } });
|
162
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXQtZWRpdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW50cy9jb250ZW50LWxheW91dC1lZGl0b3IvY29udGVudC1sYXlvdXQtZWRpdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW50cy9jb250ZW50LWxheW91dC1lZGl0b3IvY29udGVudC1sYXlvdXQtZWRpdG9yLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxNQUFNLEVBR04sU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRXBGLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFB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ZGlhbG9nICpmc1NrZWxldG9uRm9ybT1cImNvbnRlbnRMYXlvdXRcIj5cbiAgICA8aDEgbWF0LWRpYWxvZy10aXRsZT5cbiAgICAgIDxkaXYgY2xhc3M9XCJ0aXRsZS1jb250YWluZXJcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cInRpdGxlXCI+XG4gICAgICAgICAgTGF5b3V0IEVkaXRvclxuICAgICAgICAgIDxkaXYgY2xhc3M9XCJzbWFsbFwiPnt7Y29udGVudExheW91dC5uYW1lfX08L2Rpdj4gICBcbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxhXG4gICAgICAgICAgICAoY2xpY2spPVwib3BlblNldHRpbmdzKClcIlxuICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uPlxuICAgICAgICAgIDxtYXQtaWNvbj5zZXR0aW5nczwvbWF0LWljb24+XG4gICAgICAgIDwvYT4gICBcbiAgICAgIDwvZGl2PlxuICAgIDwvaDE+XG4gICAgPGRpdiBtYXQtZGlhbG9nLWNvbnRlbnQ+XG4gICAgICA8YXBwLWVkaXRvclxuICAgICAgICBbY29udGVudENvbmZpZ109XCJjb25maWdcIlxuICAgICAgICBbc2hvd0h0bWxdPVwiZWRpdG9ycy5odG1sXCJcbiAgICAgICAgW3Nob3dTY3NzXT1cImVkaXRvcnMuc2Nzc1wiXG4gICAgICAgIFtzaG93R2xvYmFsU2Nzc109XCJlZGl0b3JzLmdsb2JhbFNjc3NcIlxuICAgICAgICBbaHRtbF09XCJjb250ZW50TGF5b3V0LmNvbnRlbnRcIlxuICAgICAgICBbc2Nzc109XCJjb250ZW50TGF5b3V0LnN0eWxlc1wiXG4gICAgICAgIChmb2N1c2VkKT1cImVkaXRvckZvY3VzZWQoJGV2ZW50KVwiPlxuICAgICAgPC9hcHAtZWRpdG9yPlxuICAgIDwvZGl2PlxuXG4gICAgPGRpdiBtYXQtZGlhbG9nLWFjdGlvbnM+XG4gICAgICA8YnV0dG9uIFxuICAgICAgICBtYXQtYnV0dG9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