@firestitch/content 13.0.3 → 13.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/app/consts/index.d.ts +1 -1
  2. package/app/consts/page-types.const.d.ts +5 -5
  3. package/app/enums/editor-type.d.ts +6 -6
  4. package/app/enums/index.d.ts +2 -2
  5. package/app/enums/page-type.enum.d.ts +6 -6
  6. package/app/injectors/content-config.injector.d.ts +2 -2
  7. package/app/injectors/index.d.ts +1 -1
  8. package/app/interfaces/content-config.d.ts +21 -21
  9. package/app/interfaces/content-layout.d.ts +10 -10
  10. package/app/interfaces/content-page.d.ts +14 -14
  11. package/app/interfaces/content-style.d.ts +4 -4
  12. package/app/interfaces/index.d.ts +4 -4
  13. package/app/modules/content/components/content/content.component.d.ts +25 -25
  14. package/app/modules/content/components/content/index.d.ts +1 -1
  15. package/app/modules/content/components/content-renderer/content-renderer.component.d.ts +24 -24
  16. package/app/modules/content/components/content-renderer/index.d.ts +1 -1
  17. package/app/modules/content/fs-content.module.d.ts +10 -10
  18. package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +27 -27
  19. package/app/modules/content-layouts/components/content-layout/index.d.ts +1 -1
  20. package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +50 -50
  21. package/app/modules/content-layouts/components/content-layout-editor/index.d.ts +1 -1
  22. package/app/modules/content-layouts/components/content-layouts/content-layouts.component.d.ts +21 -21
  23. package/app/modules/content-layouts/components/content-layouts/index.d.ts +1 -1
  24. package/app/modules/content-layouts/components/index.d.ts +3 -3
  25. package/app/modules/content-layouts/fs-content-layouts.module.d.ts +28 -28
  26. package/app/modules/content-pages/components/content-page/content-page.component.d.ts +32 -32
  27. package/app/modules/content-pages/components/content-page/index.d.ts +1 -1
  28. package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +56 -56
  29. package/app/modules/content-pages/components/content-page-editor/index.d.ts +1 -1
  30. package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +24 -24
  31. package/app/modules/content-pages/components/content-pages/index.d.ts +1 -1
  32. package/app/modules/content-pages/components/index.d.ts +3 -3
  33. package/app/modules/content-pages/fs-content-pages.module.d.ts +33 -33
  34. package/app/modules/content-style/components/content-style/content-style.component.d.ts +27 -27
  35. package/app/modules/content-style/components/content-style/index.d.ts +1 -1
  36. package/app/modules/content-style/fs-content-style.module.d.ts +14 -14
  37. package/app/modules/editor/components/editor/editor.component.d.ts +49 -49
  38. package/app/modules/editor/components/editor/index.d.ts +1 -1
  39. package/app/modules/editor/components/editor-label/editor-label.component.d.ts +7 -7
  40. package/app/modules/editor/components/editor-label/index.d.ts +1 -1
  41. package/app/modules/editor/fs-content-editor.module.d.ts +24 -24
  42. package/app/modules/editor/index.d.ts +1 -1
  43. package/esm2020/app/consts/index.mjs +1 -1
  44. package/esm2020/app/consts/page-types.const.mjs +5 -5
  45. package/esm2020/app/enums/editor-type.mjs +7 -7
  46. package/esm2020/app/enums/index.mjs +3 -3
  47. package/esm2020/app/enums/page-type.enum.mjs +7 -7
  48. package/esm2020/app/injectors/content-config.injector.mjs +2 -2
  49. package/esm2020/app/injectors/index.mjs +1 -1
  50. package/esm2020/app/interfaces/content-config.mjs +1 -1
  51. package/esm2020/app/interfaces/content-layout.mjs +1 -1
  52. package/esm2020/app/interfaces/content-page.mjs +1 -1
  53. package/esm2020/app/interfaces/content-style.mjs +1 -1
  54. package/esm2020/app/interfaces/index.mjs +5 -5
  55. package/esm2020/app/modules/content/components/content/content.component.mjs +80 -80
  56. package/esm2020/app/modules/content/components/content/index.mjs +1 -1
  57. package/esm2020/app/modules/content/components/content-renderer/content-renderer.component.mjs +73 -73
  58. package/esm2020/app/modules/content/components/content-renderer/index.mjs +1 -1
  59. package/esm2020/app/modules/content/fs-content.module.mjs +32 -32
  60. package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs +67 -67
  61. package/esm2020/app/modules/content-layouts/components/content-layout/index.mjs +1 -1
  62. package/esm2020/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.mjs +161 -161
  63. package/esm2020/app/modules/content-layouts/components/content-layout-editor/index.mjs +1 -1
  64. package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs +115 -115
  65. package/esm2020/app/modules/content-layouts/components/content-layouts/index.mjs +1 -1
  66. package/esm2020/app/modules/content-layouts/components/index.mjs +4 -4
  67. package/esm2020/app/modules/content-layouts/fs-content-layouts.module.mjs +103 -103
  68. package/esm2020/app/modules/content-pages/components/content-page/content-page.component.mjs +82 -81
  69. package/esm2020/app/modules/content-pages/components/content-page/index.mjs +1 -1
  70. package/esm2020/app/modules/content-pages/components/content-page-editor/content-page-editor.component.mjs +178 -178
  71. package/esm2020/app/modules/content-pages/components/content-page-editor/index.mjs +1 -1
  72. package/esm2020/app/modules/content-pages/components/content-pages/content-pages.component.mjs +129 -128
  73. package/esm2020/app/modules/content-pages/components/content-pages/index.mjs +1 -1
  74. package/esm2020/app/modules/content-pages/components/index.mjs +4 -4
  75. package/esm2020/app/modules/content-pages/fs-content-pages.module.mjs +120 -120
  76. package/esm2020/app/modules/content-style/components/content-style/content-style.component.mjs +68 -68
  77. package/esm2020/app/modules/content-style/components/content-style/index.mjs +1 -1
  78. package/esm2020/app/modules/content-style/fs-content-style.module.mjs +49 -49
  79. package/esm2020/app/modules/editor/components/editor/editor.component.mjs +143 -143
  80. package/esm2020/app/modules/editor/components/editor/index.mjs +1 -1
  81. package/esm2020/app/modules/editor/components/editor-label/editor-label.component.mjs +15 -15
  82. package/esm2020/app/modules/editor/components/editor-label/index.mjs +1 -1
  83. package/esm2020/app/modules/editor/fs-content-editor.module.mjs +88 -88
  84. package/esm2020/app/modules/editor/index.mjs +1 -1
  85. package/esm2020/firestitch-content.mjs +4 -4
  86. package/esm2020/public_api.mjs +10 -10
  87. package/fesm2015/firestitch-content.mjs +1249 -1251
  88. package/fesm2015/firestitch-content.mjs.map +1 -1
  89. package/fesm2020/firestitch-content.mjs +1253 -1251
  90. package/fesm2020/firestitch-content.mjs.map +1 -1
  91. package/firestitch-content.d.ts +5 -5
  92. package/package.json +1 -1
  93. package/public_api.d.ts +10 -10
@@ -1,68 +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
- }] } });
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
68
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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jb250ZW50TGF5b3V0KTtcbiAgICAgICAgfSksXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKChjb250ZW50TGF5b3V0KSA9PiB7XG4gICAgICAgIHRoaXMuY29udGVudExheW91dCA9IHsgLi4uY29udGVudExheW91dCB9O1xuXG4gICAgICAgIHRoaXMuX2NkUmVmLm1hcmtGb3JDaGVjaygpO1xuICAgICAgfSk7XG4gIH1cblxufVxuIiwiPGZvcm0gZnNGb3JtIFtzdWJtaXRdPVwic2F2ZVwiICpmc1NrZWxldG9uRm9ybT1cImNvbnRlbnRMYXlvdXRcIj5cbiAgPGZzLWRpYWxvZz5cbiAgICA8aDEgbWF0LWRpYWxvZy10aXRsZT57e2NvbnRlbnRMYXlvdXQuaWQgPyAnTGF5b3V0JyA6ICdMYXlvdXQgUGFnZSd9fTwvaDE+XG4gICAgPGRpdiBtYXQtZGlhbG9nLWNvbnRlbnQ+XG4gICAgICA8ZGl2IGNsYXNzPVwiZnMtY29sdW1uXCI+XG4gICAgICAgIDxtYXQtZm9ybS1maWVsZD5cbiAgICAgICAgICA8bWF0LWxhYmVsPk5hbWU8L21hdC1sYWJlbD5cbiAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIG1hdElucHV0XG4gICAgICAgICAgICBbKG5nTW9kZWwpXT1cImNvbnRlbnRMYXlvdXQubmFtZVwiXG4gICAgICAgICAgICBuYW1lPVwibmFtZVwiXG4gICAgICAgICAgICByZXF1aXJlZD5cbiAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cbiAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxuICAgICAgICAgIDxtYXQtbGFiZWw+VGFnPC9tYXQtbGFiZWw+XG4gICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICBtYXRJbnB1dFxuICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJjb250ZW50TGF5b3V0LnRhZ1wiXG4gICAgICAgICAgICBuYW1lPVwidGFnXCI+XG4gICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cblxuICAgIDxkaXYgbWF0LWRpYWxvZy1hY3Rpb25zPlxuICAgICAgPGZzLWZvcm0tZGlhbG9nLWFjdGlvbnM+XG4gICAgICA8L2ZzLWZvcm0tZGlhbG9nLWFjdGlvbnM+XG4gICAgPC9kaXY+XG4gIDwvZnMtZGlhbG9nPlxuPC9mb3JtPlxuIl19
@@ -1,2 +1,2 @@
1
- export * from './content-layout.component';
1
+ export * from './content-layout.component';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvY29udGVudC1sYXlvdXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1sYXlvdXQuY29tcG9uZW50JztcbiJdfQ==
@@ -1,162 +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
- }] } });
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
162
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CJlZGl0b3JzLmh0bWxcIiAoY2hhbmdlKT1cImVkaXRvclRvZ2dsZUNoYW5nZSgkZXZlbnQpXCI+SFRNTDwvbWF0LWJ1dHRvbi10b2dnbGU+XG4gICAgICAgICAgPG1hdC1idXR0b24tdG9nZ2xlIHZhbHVlPVwic2Nzc1wiIFtjaGVja2VkXT1cImVkaXRvcnMuc2Nzc1wiIChjaGFuZ2UpPVwiZWRpdG9yVG9nZ2xlQ2hhbmdlKCRldmVudClcIj5TQ1NTPC9tYXQtYnV0dG9uLXRvZ2dsZT5cbiAgICAgICAgICA8bWF0LWJ1dHRvbi10b2dnbGUgdmFsdWU9XCJnbG9iYWxTY3NzXCIgW2NoZWNrZWRdPVwiZWRpdG9ycy5nbG9iYWxTY3NzXCIgKGNoYW5nZSk9XCJlZGl0b3JUb2dnbGVDaGFuZ2UoJGV2ZW50KVwiPkdsb2JhbCBTQ1NTPC9tYXQtYnV0dG9uLXRvZ2dsZT5cbiAgICAgICAgPC9tYXQtYnV0dG9uLXRvZ2dsZS1ncm91cD4gICAgICBcbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICA8L2ZzLWRpYWxvZz5cbjwvZm9ybT4iXX0=
@@ -1,2 +1,2 @@
1
- export * from './content-layout-editor.component';
1
+ export * from './content-layout-editor.component';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvY29udGVudC1sYXlvdXQtZWRpdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUNBQW1DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0LWVkaXRvci5jb21wb25lbnQnO1xuXG4iXX0=