@firestitch/content 12.3.4 → 13.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/app/consts/index.d.ts +1 -1
- package/app/consts/page-types.const.d.ts +5 -5
- package/app/enums/editor-type.d.ts +6 -6
- package/app/enums/index.d.ts +2 -2
- package/app/enums/page-type.enum.d.ts +6 -6
- package/app/injectors/content-config.injector.d.ts +2 -2
- package/app/injectors/index.d.ts +1 -1
- package/app/interfaces/content-config.d.ts +21 -21
- package/app/interfaces/content-layout.d.ts +10 -10
- package/app/interfaces/content-page.d.ts +14 -14
- package/app/interfaces/content-style.d.ts +4 -4
- package/app/interfaces/index.d.ts +4 -4
- package/app/modules/content/components/content/content.component.d.ts +25 -25
- package/app/modules/content/components/content/index.d.ts +1 -1
- package/app/modules/content/components/content-renderer/content-renderer.component.d.ts +24 -24
- package/app/modules/content/components/content-renderer/index.d.ts +1 -1
- package/app/modules/content/fs-content.module.d.ts +10 -10
- package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +27 -27
- package/app/modules/content-layouts/components/content-layout/index.d.ts +1 -1
- package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +50 -50
- package/app/modules/content-layouts/components/content-layout-editor/index.d.ts +1 -1
- package/app/modules/content-layouts/components/content-layouts/content-layouts.component.d.ts +21 -21
- package/app/modules/content-layouts/components/content-layouts/index.d.ts +1 -1
- package/app/modules/content-layouts/components/index.d.ts +3 -3
- package/app/modules/content-layouts/fs-content-layouts.module.d.ts +28 -28
- package/app/modules/content-pages/components/content-page/content-page.component.d.ts +32 -32
- package/app/modules/content-pages/components/content-page/index.d.ts +1 -1
- package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +56 -55
- package/app/modules/content-pages/components/content-page-editor/index.d.ts +1 -1
- package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +24 -24
- package/app/modules/content-pages/components/content-pages/index.d.ts +1 -1
- package/app/modules/content-pages/components/index.d.ts +3 -3
- package/app/modules/content-pages/fs-content-pages.module.d.ts +33 -32
- package/app/modules/content-style/components/content-style/content-style.component.d.ts +27 -27
- package/app/modules/content-style/components/content-style/index.d.ts +1 -1
- package/app/modules/content-style/fs-content-style.module.d.ts +14 -14
- package/app/modules/editor/components/editor/editor.component.d.ts +49 -49
- package/app/modules/editor/components/editor/index.d.ts +1 -1
- package/app/modules/editor/components/editor-label/editor-label.component.d.ts +7 -7
- package/app/modules/editor/components/editor-label/index.d.ts +1 -1
- package/app/modules/editor/fs-content-editor.module.d.ts +24 -24
- package/app/modules/editor/index.d.ts +1 -1
- package/{esm2015/app/consts/index.js → esm2020/app/consts/index.mjs} +1 -1
- package/{esm2015/app/consts/page-types.const.js → esm2020/app/consts/page-types.const.mjs} +7 -7
- package/{esm2015/app/enums/editor-type.js → esm2020/app/enums/editor-type.mjs} +7 -7
- package/{esm2015/app/enums/index.js → esm2020/app/enums/index.mjs} +3 -3
- package/{esm2015/app/enums/page-type.enum.js → esm2020/app/enums/page-type.enum.mjs} +7 -7
- package/{esm2015/app/injectors/content-config.injector.js → esm2020/app/injectors/content-config.injector.mjs} +2 -2
- package/{esm2015/app/injectors/index.js → esm2020/app/injectors/index.mjs} +1 -1
- package/{esm2015/app/interfaces/content-config.js → esm2020/app/interfaces/content-config.mjs} +1 -1
- package/{esm2015/app/interfaces/content-layout.js → esm2020/app/interfaces/content-layout.mjs} +1 -1
- package/{esm2015/app/interfaces/content-page.js → esm2020/app/interfaces/content-page.mjs} +1 -1
- package/{esm2015/app/interfaces/content-style.js → esm2020/app/interfaces/content-style.mjs} +1 -1
- package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +5 -5
- package/{esm2015/app/modules/content/components/content/content.component.js → esm2020/app/modules/content/components/content/content.component.mjs} +80 -85
- package/{esm2015/app/modules/content/components/content/index.js → esm2020/app/modules/content/components/content/index.mjs} +1 -1
- package/esm2020/app/modules/content/components/content-renderer/content-renderer.component.mjs +74 -0
- package/{esm2015/app/modules/content/components/content-renderer/index.js → esm2020/app/modules/content/components/content-renderer/index.mjs} +1 -1
- package/{esm2015/app/modules/content/fs-content.module.js → esm2020/app/modules/content/fs-content.module.mjs} +33 -33
- package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs +68 -0
- package/{esm2015/app/modules/content-layouts/components/content-layout/index.js → esm2020/app/modules/content-layouts/components/content-layout/index.mjs} +1 -1
- package/esm2020/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.mjs +162 -0
- package/{esm2015/app/modules/content-layouts/components/content-layout-editor/index.js → esm2020/app/modules/content-layouts/components/content-layout-editor/index.mjs} +1 -1
- package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs +116 -0
- package/{esm2015/app/modules/content-layouts/components/content-layouts/index.js → esm2020/app/modules/content-layouts/components/content-layouts/index.mjs} +1 -1
- package/{esm2015/app/modules/content-layouts/components/index.js → esm2020/app/modules/content-layouts/components/index.mjs} +4 -4
- package/{esm2015/app/modules/content-layouts/fs-content-layouts.module.js → esm2020/app/modules/content-layouts/fs-content-layouts.module.mjs} +104 -104
- package/esm2020/app/modules/content-pages/components/content-page/content-page.component.mjs +81 -0
- package/{esm2015/app/modules/content-pages/components/content-page/index.js → esm2020/app/modules/content-pages/components/content-page/index.mjs} +1 -1
- package/esm2020/app/modules/content-pages/components/content-page-editor/content-page-editor.component.mjs +179 -0
- package/{esm2015/app/modules/content-pages/components/content-page-editor/index.js → esm2020/app/modules/content-pages/components/content-page-editor/index.mjs} +1 -1
- package/esm2020/app/modules/content-pages/components/content-pages/content-pages.component.mjs +125 -0
- package/{esm2015/app/modules/content-pages/components/content-pages/index.js → esm2020/app/modules/content-pages/components/content-pages/index.mjs} +1 -1
- package/{esm2015/app/modules/content-pages/components/index.js → esm2020/app/modules/content-pages/components/index.mjs} +4 -4
- 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/components/content-style/index.js → esm2020/app/modules/content-style/components/content-style/index.mjs} +1 -1
- package/{esm2015/app/modules/content-style/fs-content-style.module.js → esm2020/app/modules/content-style/fs-content-style.module.mjs} +50 -50
- package/esm2020/app/modules/editor/components/editor/editor.component.mjs +144 -0
- package/{esm2015/app/modules/editor/components/editor/index.js → esm2020/app/modules/editor/components/editor/index.mjs} +1 -1
- package/esm2020/app/modules/editor/components/editor-label/editor-label.component.mjs +16 -0
- package/{esm2015/app/modules/editor/components/editor-label/index.js → esm2020/app/modules/editor/components/editor-label/index.mjs} +1 -1
- package/{esm2015/app/modules/editor/fs-content-editor.module.js → esm2020/app/modules/editor/fs-content-editor.module.mjs} +89 -89
- package/{esm2015/app/modules/editor/index.js → esm2020/app/modules/editor/index.mjs} +1 -1
- package/{esm2015/firestitch-content.js → esm2020/firestitch-content.mjs} +4 -4
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +10 -10
- 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/firestitch-content.d.ts +5 -5
- package/package.json +21 -8
- package/public_api.d.ts +10 -10
- package/bundles/firestitch-content.umd.js +0 -1480
- package/bundles/firestitch-content.umd.js.map +0 -1
- package/esm2015/app/modules/content/components/content-renderer/content-renderer.component.js +0 -77
- 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 -1374
- package/fesm2015/firestitch-content.js.map +0 -1
@@ -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
|
+
}] } });
|
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lZF09XCJlZGl0b3JzLmh0bWxcIiAoY2hhbmdlKT1cImVkaXRvclRvZ2dsZUNoYW5nZSgkZXZlbnQpXCI+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=
|
package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Inject, ViewChild, } from '@angular/core';
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
3
|
+
import { ItemType } from '@firestitch/filter';
|
4
|
+
import { FsListComponent } from '@firestitch/list';
|
5
|
+
import { Subject } from 'rxjs';
|
6
|
+
import { filter, map, takeUntil } from 'rxjs/operators';
|
7
|
+
import { FS_CONTENT_CONFIG } from '../../../../injectors';
|
8
|
+
import { ContentLayoutComponent } from '../../components/content-layout';
|
9
|
+
import { ContentLayoutEditorComponent } from '../content-layout-editor/content-layout-editor.component';
|
10
|
+
import * as i0 from "@angular/core";
|
11
|
+
import * as i1 from "@angular/material/dialog";
|
12
|
+
import * as i2 from "@firestitch/list";
|
13
|
+
import * as i3 from "@firestitch/date";
|
14
|
+
export class FsContentLayoutsComponent {
|
15
|
+
constructor(_config, _dialog) {
|
16
|
+
this._config = _config;
|
17
|
+
this._dialog = _dialog;
|
18
|
+
this._destroy$ = new Subject();
|
19
|
+
}
|
20
|
+
ngOnInit() {
|
21
|
+
this._initListConfig();
|
22
|
+
}
|
23
|
+
openEditor(contentLayout) {
|
24
|
+
this._dialog.open(ContentLayoutEditorComponent, {
|
25
|
+
maxWidth: '100vw',
|
26
|
+
width: '100%',
|
27
|
+
height: '100%',
|
28
|
+
data: {
|
29
|
+
contentLayout,
|
30
|
+
contentConfig: this._config,
|
31
|
+
},
|
32
|
+
})
|
33
|
+
.afterClosed()
|
34
|
+
.pipe(takeUntil(this._destroy$))
|
35
|
+
.subscribe(() => {
|
36
|
+
this.listComponent.reload();
|
37
|
+
});
|
38
|
+
}
|
39
|
+
openLayout(contentLayout) {
|
40
|
+
return this._dialog.open(ContentLayoutComponent, {
|
41
|
+
data: {
|
42
|
+
contentLayout,
|
43
|
+
},
|
44
|
+
})
|
45
|
+
.afterClosed()
|
46
|
+
.pipe(filter((_contentLayout) => !!_contentLayout), takeUntil(this._destroy$));
|
47
|
+
}
|
48
|
+
ngOnDestroy() {
|
49
|
+
this._destroy$.next();
|
50
|
+
this._destroy$.complete();
|
51
|
+
}
|
52
|
+
_initListConfig() {
|
53
|
+
this.listConfig = {
|
54
|
+
paging: false,
|
55
|
+
filters: [
|
56
|
+
{
|
57
|
+
name: 'keyword',
|
58
|
+
type: ItemType.Keyword,
|
59
|
+
label: 'Search',
|
60
|
+
},
|
61
|
+
],
|
62
|
+
actions: [
|
63
|
+
{
|
64
|
+
label: 'Create',
|
65
|
+
click: () => {
|
66
|
+
this.openLayout({})
|
67
|
+
.subscribe(() => {
|
68
|
+
this.listComponent.reload();
|
69
|
+
});
|
70
|
+
},
|
71
|
+
},
|
72
|
+
],
|
73
|
+
rowActions: [
|
74
|
+
{
|
75
|
+
click: (data) => {
|
76
|
+
return this._config.deleteContentLayout(data);
|
77
|
+
},
|
78
|
+
remove: {
|
79
|
+
title: 'Confirm',
|
80
|
+
template: 'Are you sure you would like to delete this record?',
|
81
|
+
},
|
82
|
+
menu: true,
|
83
|
+
label: 'Delete',
|
84
|
+
},
|
85
|
+
],
|
86
|
+
fetch: (query) => {
|
87
|
+
return this._config.loadContentLayouts(query)
|
88
|
+
.pipe(map((contentLayouts) => {
|
89
|
+
return { data: contentLayouts };
|
90
|
+
}));
|
91
|
+
},
|
92
|
+
restore: {
|
93
|
+
query: { state: 'deleted' },
|
94
|
+
filterLabel: 'Show Deleted',
|
95
|
+
menuLabel: 'Restore',
|
96
|
+
reload: true,
|
97
|
+
click: (row) => {
|
98
|
+
return this._config.saveContentLayout({ id: row.id, state: 'active' });
|
99
|
+
},
|
100
|
+
},
|
101
|
+
};
|
102
|
+
}
|
103
|
+
}
|
104
|
+
FsContentLayoutsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
105
|
+
FsContentLayoutsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsContentLayoutsComponent, selector: "fs-content-layouts", viewQueries: [{ propertyName: "listComponent", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column name=\"name\" title=\"Name\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openEditor(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"modify_date\" title=\"Modified\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.modifyDate | fsDate: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [""], components: [{ type: i2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsDate": i3.FsDatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsComponent, decorators: [{
|
107
|
+
type: Component,
|
108
|
+
args: [{ selector: 'fs-content-layouts', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column name=\"name\" title=\"Name\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"openEditor(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column name=\"modify_date\" title=\"Modified\" [sortable]=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.modifyDate | fsDate: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [""] }]
|
109
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
110
|
+
type: Inject,
|
111
|
+
args: [FS_CONTENT_CONFIG]
|
112
|
+
}] }, { type: i1.MatDialog }]; }, propDecorators: { listComponent: [{
|
113
|
+
type: ViewChild,
|
114
|
+
args: [FsListComponent]
|
115
|
+
}] } });
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW50cy9jb250ZW50LWxheW91dHMvY29udGVudC1sYXlvdXRzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvY29tcG9uZW50cy9jb250ZW50LWxheW91dHMvY29udGVudC1sYXlvdXRzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULE1BQU0sRUFHTixTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRXJELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsZUFBZSxFQUFnQixNQUFNLGtCQUFrQixDQUFDO0FBRWpFLE9BQU8sRUFBYyxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDM0MsT0FBTyxFQUFFLE1BQU0sRUFBRSxHQUFH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lJyxcbiAgICAgIGRhdGE6IHtcbiAgICAgICAgY29udGVudExheW91dCxcbiAgICAgICAgY29udGVudENvbmZpZzogdGhpcy5fY29uZmlnLFxuICAgICAgfSxcbiAgICB9KVxuICAgICAgLmFmdGVyQ2xvc2VkKClcbiAgICAgIC5waXBlKFxuICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgIHRoaXMubGlzdENvbXBvbmVudC5yZWxvYWQoKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHVibGljIG9wZW5MYXlvdXQoY29udGVudExheW91dDogYW55KTogT2JzZXJ2YWJsZTxhbnk+IHtcbiAgICByZXR1cm4gdGhpcy5fZGlhbG9nLm9wZW4oQ29udGVudExheW91dENvbXBvbmVudCwge1xuICAgICAgZGF0YToge1xuICAgICAgICBjb250ZW50TGF5b3V0LFxuICAgICAgfSxcbiAgICB9KVxuICAgICAgLmFmdGVyQ2xvc2VkKClcbiAgICAgIC5waXBlKFxuICAgICAgICBmaWx0ZXIoKF9jb250ZW50TGF5b3V0KSA9PiAhIV9jb250ZW50TGF5b3V0KSxcbiAgICAgICAgdGFrZVVudGlsKHRoaXMuX2Rlc3Ryb3kkKSxcbiAgICAgICk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5fZGVzdHJveSQubmV4dCgpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gIH1cblxuICBwcml2YXRlIF9pbml0TGlzdENvbmZpZygpOiB2b2lkIHtcbiAgICB0aGlzLmxpc3RDb25maWcgPSB7XG4gICAgICBwYWdpbmc6IGZhbHNlLFxuICAgICAgZmlsdGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2tleXdvcmQnLFxuICAgICAgICAgIHR5cGU6IEl0ZW1UeXBlLktleXdvcmQsXG4gICAgICAgICAgbGFiZWw6ICdTZWFyY2gnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGxhYmVsOiAnQ3JlYXRlJyxcbiAgICAgICAgICBjbGljazogKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5vcGVuTGF5b3V0KHt9KVxuICAgICAgICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmxpc3RDb21wb25lbnQucmVsb2FkKCk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgICAgcm93QWN0aW9uczogW1xuICAgICAgICB7XG4gICAgICAgICAgY2xpY2s6IChkYXRhKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5fY29uZmlnLmRlbGV0ZUNvbnRlbnRMYXlvdXQoZGF0YSk7XG4gICAgICAgICAgfSxcbiAgICAgICAgICByZW1vdmU6IHtcbiAgICAgICAgICAgIHRpdGxlOiAnQ29uZmlybScsXG4gICAgICAgICAgICB0ZW1wbGF0ZTogJ0FyZSB5b3Ugc3VyZSB5b3Ugd291bGQgbGlrZSB0byBkZWxldGUgdGhpcyByZWNvcmQ/JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG1lbnU6IHRydWUsXG4gICAgICAgICAgbGFiZWw6ICdEZWxldGUnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIGZldGNoOiAocXVlcnkpID0+IHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2NvbmZpZy5sb2FkQ29udGVudExheW91dHMocXVlcnkpXG4gICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICBtYXAoKGNvbnRlbnRMYXlvdXRzOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuIHsgZGF0YTogY29udGVudExheW91dHMgIH07XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgIC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|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './content-layouts.component';
|
1
|
+
export * from './content-layouts.component';
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvY29udGVudC1sYXlvdXRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0cy5jb21wb25lbnQnO1xuXG5cbiJdfQ==
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './content-layout';
|
2
|
-
export * from './content-layout-editor';
|
3
|
-
export * from './content-layouts';
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export * from './content-layout';
|
2
|
+
export * from './content-layout-editor';
|
3
|
+
export * from './content-layouts';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0JztcclxuZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LWxheW91dC1lZGl0b3InO1xyXG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0cyc7XHJcbiJdfQ==
|
@@ -1,104 +1,104 @@
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
2
|
-
import { NgModule } from '@angular/core';
|
3
|
-
import { FormsModule } from '@angular/forms';
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
5
|
-
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
6
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
7
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
8
|
-
import { MatIconModule } from '@angular/material/icon';
|
9
|
-
import { MatInputModule } from '@angular/material/input';
|
10
|
-
import { MatSelectModule } from '@angular/material/select';
|
11
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
12
|
-
import { FsDateModule } from '@firestitch/date';
|
13
|
-
import { FsDialogModule } from '@firestitch/dialog';
|
14
|
-
import { FsFormModule } from '@firestitch/form';
|
15
|
-
import { FsHtmlEditorModule } from '@firestitch/html-editor';
|
16
|
-
import { FsLabelModule } from '@firestitch/label';
|
17
|
-
import { FsListModule } from '@firestitch/list';
|
18
|
-
import { FsSkeletonModule } from '@firestitch/skeleton';
|
19
|
-
import { FsTextEditorModule } from '@firestitch/text-editor';
|
20
|
-
import { FsContentEditorModule } from '../editor';
|
21
|
-
import { ContentLayoutEditorComponent } from './components';
|
22
|
-
import { ContentLayoutComponent } from './components/content-layout';
|
23
|
-
import { FsContentLayoutsComponent } from './components/content-layouts';
|
24
|
-
import * as i0 from "@angular/core";
|
25
|
-
export class FsContentLayoutsModule {
|
26
|
-
}
|
27
|
-
FsContentLayoutsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
28
|
-
FsContentLayoutsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
29
|
-
FsContentLayoutsComponent,
|
30
|
-
ContentLayoutEditorComponent], imports: [CommonModule,
|
31
|
-
FormsModule,
|
32
|
-
MatDialogModule,
|
33
|
-
MatInputModule,
|
34
|
-
MatFormFieldModule,
|
35
|
-
MatButtonModule,
|
36
|
-
MatTabsModule,
|
37
|
-
MatIconModule,
|
38
|
-
MatSelectModule,
|
39
|
-
MatButtonToggleModule,
|
40
|
-
FsListModule,
|
41
|
-
FsDateModule,
|
42
|
-
FsFormModule,
|
43
|
-
FsLabelModule,
|
44
|
-
FsSkeletonModule,
|
45
|
-
FsHtmlEditorModule,
|
46
|
-
FsDialogModule,
|
47
|
-
FsTextEditorModule,
|
48
|
-
FsContentEditorModule], exports: [FsContentLayoutsComponent] });
|
49
|
-
FsContentLayoutsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
50
|
-
CommonModule,
|
51
|
-
FormsModule,
|
52
|
-
MatDialogModule,
|
53
|
-
MatInputModule,
|
54
|
-
MatFormFieldModule,
|
55
|
-
MatButtonModule,
|
56
|
-
MatTabsModule,
|
57
|
-
MatIconModule,
|
58
|
-
MatSelectModule,
|
59
|
-
MatButtonToggleModule,
|
60
|
-
FsListModule,
|
61
|
-
FsDateModule,
|
62
|
-
FsFormModule,
|
63
|
-
FsLabelModule,
|
64
|
-
FsSkeletonModule,
|
65
|
-
FsHtmlEditorModule,
|
66
|
-
FsDialogModule,
|
67
|
-
FsTextEditorModule,
|
68
|
-
FsContentEditorModule,
|
69
|
-
]] });
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
71
|
-
type: NgModule,
|
72
|
-
args: [{
|
73
|
-
imports: [
|
74
|
-
CommonModule,
|
75
|
-
FormsModule,
|
76
|
-
MatDialogModule,
|
77
|
-
MatInputModule,
|
78
|
-
MatFormFieldModule,
|
79
|
-
MatButtonModule,
|
80
|
-
MatTabsModule,
|
81
|
-
MatIconModule,
|
82
|
-
MatSelectModule,
|
83
|
-
MatButtonToggleModule,
|
84
|
-
FsListModule,
|
85
|
-
FsDateModule,
|
86
|
-
FsFormModule,
|
87
|
-
FsLabelModule,
|
88
|
-
FsSkeletonModule,
|
89
|
-
FsHtmlEditorModule,
|
90
|
-
FsDialogModule,
|
91
|
-
FsTextEditorModule,
|
92
|
-
FsContentEditorModule,
|
93
|
-
],
|
94
|
-
exports: [
|
95
|
-
FsContentLayoutsComponent,
|
96
|
-
],
|
97
|
-
declarations: [
|
98
|
-
ContentLayoutComponent,
|
99
|
-
FsContentLayoutsComponent,
|
100
|
-
ContentLayoutEditorComponent,
|
101
|
-
],
|
102
|
-
}]
|
103
|
-
}] });
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { FormsModule } from '@angular/forms';
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
5
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
6
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
7
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
8
|
+
import { MatIconModule } from '@angular/material/icon';
|
9
|
+
import { MatInputModule } from '@angular/material/input';
|
10
|
+
import { MatSelectModule } from '@angular/material/select';
|
11
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
12
|
+
import { FsDateModule } from '@firestitch/date';
|
13
|
+
import { FsDialogModule } from '@firestitch/dialog';
|
14
|
+
import { FsFormModule } from '@firestitch/form';
|
15
|
+
import { FsHtmlEditorModule } from '@firestitch/html-editor';
|
16
|
+
import { FsLabelModule } from '@firestitch/label';
|
17
|
+
import { FsListModule } from '@firestitch/list';
|
18
|
+
import { FsSkeletonModule } from '@firestitch/skeleton';
|
19
|
+
import { FsTextEditorModule } from '@firestitch/text-editor';
|
20
|
+
import { FsContentEditorModule } from '../editor';
|
21
|
+
import { ContentLayoutEditorComponent } from './components';
|
22
|
+
import { ContentLayoutComponent } from './components/content-layout';
|
23
|
+
import { FsContentLayoutsComponent } from './components/content-layouts';
|
24
|
+
import * as i0 from "@angular/core";
|
25
|
+
export class FsContentLayoutsModule {
|
26
|
+
}
|
27
|
+
FsContentLayoutsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
28
|
+
FsContentLayoutsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsModule, declarations: [ContentLayoutComponent,
|
29
|
+
FsContentLayoutsComponent,
|
30
|
+
ContentLayoutEditorComponent], imports: [CommonModule,
|
31
|
+
FormsModule,
|
32
|
+
MatDialogModule,
|
33
|
+
MatInputModule,
|
34
|
+
MatFormFieldModule,
|
35
|
+
MatButtonModule,
|
36
|
+
MatTabsModule,
|
37
|
+
MatIconModule,
|
38
|
+
MatSelectModule,
|
39
|
+
MatButtonToggleModule,
|
40
|
+
FsListModule,
|
41
|
+
FsDateModule,
|
42
|
+
FsFormModule,
|
43
|
+
FsLabelModule,
|
44
|
+
FsSkeletonModule,
|
45
|
+
FsHtmlEditorModule,
|
46
|
+
FsDialogModule,
|
47
|
+
FsTextEditorModule,
|
48
|
+
FsContentEditorModule], exports: [FsContentLayoutsComponent] });
|
49
|
+
FsContentLayoutsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsModule, imports: [[
|
50
|
+
CommonModule,
|
51
|
+
FormsModule,
|
52
|
+
MatDialogModule,
|
53
|
+
MatInputModule,
|
54
|
+
MatFormFieldModule,
|
55
|
+
MatButtonModule,
|
56
|
+
MatTabsModule,
|
57
|
+
MatIconModule,
|
58
|
+
MatSelectModule,
|
59
|
+
MatButtonToggleModule,
|
60
|
+
FsListModule,
|
61
|
+
FsDateModule,
|
62
|
+
FsFormModule,
|
63
|
+
FsLabelModule,
|
64
|
+
FsSkeletonModule,
|
65
|
+
FsHtmlEditorModule,
|
66
|
+
FsDialogModule,
|
67
|
+
FsTextEditorModule,
|
68
|
+
FsContentEditorModule,
|
69
|
+
]] });
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentLayoutsModule, decorators: [{
|
71
|
+
type: NgModule,
|
72
|
+
args: [{
|
73
|
+
imports: [
|
74
|
+
CommonModule,
|
75
|
+
FormsModule,
|
76
|
+
MatDialogModule,
|
77
|
+
MatInputModule,
|
78
|
+
MatFormFieldModule,
|
79
|
+
MatButtonModule,
|
80
|
+
MatTabsModule,
|
81
|
+
MatIconModule,
|
82
|
+
MatSelectModule,
|
83
|
+
MatButtonToggleModule,
|
84
|
+
FsListModule,
|
85
|
+
FsDateModule,
|
86
|
+
FsFormModule,
|
87
|
+
FsLabelModule,
|
88
|
+
FsSkeletonModule,
|
89
|
+
FsHtmlEditorModule,
|
90
|
+
FsDialogModule,
|
91
|
+
FsTextEditorModule,
|
92
|
+
FsContentEditorModule,
|
93
|
+
],
|
94
|
+
exports: [
|
95
|
+
FsContentLayoutsComponent,
|
96
|
+
],
|
97
|
+
declarations: [
|
98
|
+
ContentLayoutComponent,
|
99
|
+
FsContentLayoutsComponent,
|
100
|
+
ContentLayoutEditorComponent,
|
101
|
+
],
|
102
|
+
}]
|
103
|
+
}] });
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC1sYXlvdXRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9jb250ZW50LWxheW91dHMvZnMtY29udGVudC1sYXlvdXRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPL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