@firestitch/content 12.3.5 → 13.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +1 -1
  2. package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +1 -0
  3. package/app/modules/content-pages/fs-content-pages.module.d.ts +21 -20
  4. package/{esm2015/app/modules/content/components/content/content.component.js → esm2020/app/modules/content/components/content/content.component.mjs} +5 -10
  5. package/{esm2015/app/modules/content/components/content-renderer/content-renderer.component.js → esm2020/app/modules/content/components/content-renderer/content-renderer.component.mjs} +5 -10
  6. package/{esm2015/app/modules/content/fs-content.module.js → esm2020/app/modules/content/fs-content.module.mjs} +5 -5
  7. package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs +68 -0
  8. package/esm2020/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.mjs +162 -0
  9. package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs +116 -0
  10. package/{esm2015/app/modules/content-layouts/fs-content-layouts.module.js → esm2020/app/modules/content-layouts/fs-content-layouts.module.mjs} +5 -5
  11. package/esm2020/app/modules/content-pages/components/content-page/content-page.component.mjs +81 -0
  12. package/esm2020/app/modules/content-pages/components/content-page-editor/content-page-editor.component.mjs +179 -0
  13. package/esm2020/app/modules/content-pages/components/content-pages/content-pages.component.mjs +125 -0
  14. package/esm2020/app/modules/content-pages/fs-content-pages.module.mjs +121 -0
  15. package/esm2020/app/modules/content-style/components/content-style/content-style.component.mjs +69 -0
  16. package/{esm2015/app/modules/content-style/fs-content-style.module.js → esm2020/app/modules/content-style/fs-content-style.module.mjs} +5 -5
  17. package/esm2020/app/modules/editor/components/editor/editor.component.mjs +144 -0
  18. package/esm2020/app/modules/editor/components/editor-label/editor-label.component.mjs +16 -0
  19. package/{esm2015/app/modules/editor/fs-content-editor.module.js → esm2020/app/modules/editor/fs-content-editor.module.mjs} +5 -5
  20. package/fesm2015/firestitch-content.mjs +1344 -0
  21. package/fesm2015/firestitch-content.mjs.map +1 -0
  22. package/fesm2020/firestitch-content.mjs +1345 -0
  23. package/fesm2020/firestitch-content.mjs.map +1 -0
  24. package/package.json +21 -8
  25. package/bundles/firestitch-content.umd.js +0 -1482
  26. package/bundles/firestitch-content.umd.js.map +0 -1
  27. package/esm2015/app/modules/content-layouts/components/content-layout/content-layout.component.js +0 -72
  28. package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +0 -160
  29. package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +0 -121
  30. package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +0 -83
  31. package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +0 -176
  32. package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +0 -130
  33. package/esm2015/app/modules/content-pages/fs-content-pages.module.js +0 -117
  34. package/esm2015/app/modules/content-style/components/content-style/content-style.component.js +0 -71
  35. package/esm2015/app/modules/editor/components/editor/editor.component.js +0 -149
  36. package/esm2015/app/modules/editor/components/editor-label/editor-label.component.js +0 -21
  37. package/fesm2015/firestitch-content.js +0 -1376
  38. package/fesm2015/firestitch-content.js.map +0 -1
  39. /package/{esm2015/app/consts/index.js → esm2020/app/consts/index.mjs} +0 -0
  40. /package/{esm2015/app/consts/page-types.const.js → esm2020/app/consts/page-types.const.mjs} +0 -0
  41. /package/{esm2015/app/enums/editor-type.js → esm2020/app/enums/editor-type.mjs} +0 -0
  42. /package/{esm2015/app/enums/index.js → esm2020/app/enums/index.mjs} +0 -0
  43. /package/{esm2015/app/enums/page-type.enum.js → esm2020/app/enums/page-type.enum.mjs} +0 -0
  44. /package/{esm2015/app/injectors/content-config.injector.js → esm2020/app/injectors/content-config.injector.mjs} +0 -0
  45. /package/{esm2015/app/injectors/index.js → esm2020/app/injectors/index.mjs} +0 -0
  46. /package/{esm2015/app/interfaces/content-config.js → esm2020/app/interfaces/content-config.mjs} +0 -0
  47. /package/{esm2015/app/interfaces/content-layout.js → esm2020/app/interfaces/content-layout.mjs} +0 -0
  48. /package/{esm2015/app/interfaces/content-page.js → esm2020/app/interfaces/content-page.mjs} +0 -0
  49. /package/{esm2015/app/interfaces/content-style.js → esm2020/app/interfaces/content-style.mjs} +0 -0
  50. /package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +0 -0
  51. /package/{esm2015/app/modules/content/components/content/index.js → esm2020/app/modules/content/components/content/index.mjs} +0 -0
  52. /package/{esm2015/app/modules/content/components/content-renderer/index.js → esm2020/app/modules/content/components/content-renderer/index.mjs} +0 -0
  53. /package/{esm2015/app/modules/content-layouts/components/content-layout/index.js → esm2020/app/modules/content-layouts/components/content-layout/index.mjs} +0 -0
  54. /package/{esm2015/app/modules/content-layouts/components/content-layout-editor/index.js → esm2020/app/modules/content-layouts/components/content-layout-editor/index.mjs} +0 -0
  55. /package/{esm2015/app/modules/content-layouts/components/content-layouts/index.js → esm2020/app/modules/content-layouts/components/content-layouts/index.mjs} +0 -0
  56. /package/{esm2015/app/modules/content-layouts/components/index.js → esm2020/app/modules/content-layouts/components/index.mjs} +0 -0
  57. /package/{esm2015/app/modules/content-pages/components/content-page/index.js → esm2020/app/modules/content-pages/components/content-page/index.mjs} +0 -0
  58. /package/{esm2015/app/modules/content-pages/components/content-page-editor/index.js → esm2020/app/modules/content-pages/components/content-page-editor/index.mjs} +0 -0
  59. /package/{esm2015/app/modules/content-pages/components/content-pages/index.js → esm2020/app/modules/content-pages/components/content-pages/index.mjs} +0 -0
  60. /package/{esm2015/app/modules/content-pages/components/index.js → esm2020/app/modules/content-pages/components/index.mjs} +0 -0
  61. /package/{esm2015/app/modules/content-style/components/content-style/index.js → esm2020/app/modules/content-style/components/content-style/index.mjs} +0 -0
  62. /package/{esm2015/app/modules/editor/components/editor/index.js → esm2020/app/modules/editor/components/editor/index.mjs} +0 -0
  63. /package/{esm2015/app/modules/editor/components/editor-label/index.js → esm2020/app/modules/editor/components/editor-label/index.mjs} +0 -0
  64. /package/{esm2015/app/modules/editor/index.js → esm2020/app/modules/editor/index.mjs} +0 -0
  65. /package/{esm2015/firestitch-content.js → esm2020/firestitch-content.mjs} +0 -0
  66. /package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
@@ -1,117 +0,0 @@
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 { MatTooltipModule } from '@angular/material/tooltip';
13
- import { FsCommonModule } from '@firestitch/common';
14
- import { FsDateModule } from '@firestitch/date';
15
- import { FsDialogModule } from '@firestitch/dialog';
16
- import { FsFormModule } from '@firestitch/form';
17
- import { FsHtmlEditorModule } from '@firestitch/html-editor';
18
- import { FsLabelModule } from '@firestitch/label';
19
- import { FsListModule } from '@firestitch/list';
20
- import { FsSkeletonModule } from '@firestitch/skeleton';
21
- import { FsTextEditorModule } from '@firestitch/text-editor';
22
- import { FsContentEditorModule } from '../editor';
23
- import { ContentPageEditorComponent } from './components';
24
- import { ContentPageComponent } from './components/content-page';
25
- import { FsContentPagesComponent } from './components/content-pages';
26
- import * as i0 from "@angular/core";
27
- export class FsContentPagesModule {
28
- static forRoot() {
29
- return {
30
- ngModule: FsContentPagesModule,
31
- };
32
- }
33
- }
34
- FsContentPagesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
- FsContentPagesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, declarations: [FsContentPagesComponent,
36
- ContentPageComponent,
37
- ContentPageEditorComponent], imports: [CommonModule,
38
- FormsModule,
39
- MatDialogModule,
40
- MatInputModule,
41
- MatFormFieldModule,
42
- MatButtonModule,
43
- MatTabsModule,
44
- MatIconModule,
45
- MatSelectModule,
46
- MatButtonToggleModule,
47
- MatTooltipModule,
48
- FsListModule,
49
- FsDateModule,
50
- FsCommonModule,
51
- FsFormModule,
52
- FsLabelModule,
53
- FsSkeletonModule,
54
- FsHtmlEditorModule,
55
- FsDialogModule,
56
- FsTextEditorModule,
57
- FsContentEditorModule], exports: [FsContentPagesComponent] });
58
- FsContentPagesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, imports: [[
59
- CommonModule,
60
- FormsModule,
61
- MatDialogModule,
62
- MatInputModule,
63
- MatFormFieldModule,
64
- MatButtonModule,
65
- MatTabsModule,
66
- MatIconModule,
67
- MatSelectModule,
68
- MatButtonToggleModule,
69
- MatTooltipModule,
70
- FsListModule,
71
- FsDateModule,
72
- FsCommonModule,
73
- FsFormModule,
74
- FsLabelModule,
75
- FsSkeletonModule,
76
- FsHtmlEditorModule,
77
- FsDialogModule,
78
- FsTextEditorModule,
79
- FsContentEditorModule,
80
- ]] });
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentPagesModule, decorators: [{
82
- type: NgModule,
83
- args: [{
84
- imports: [
85
- CommonModule,
86
- FormsModule,
87
- MatDialogModule,
88
- MatInputModule,
89
- MatFormFieldModule,
90
- MatButtonModule,
91
- MatTabsModule,
92
- MatIconModule,
93
- MatSelectModule,
94
- MatButtonToggleModule,
95
- MatTooltipModule,
96
- FsListModule,
97
- FsDateModule,
98
- FsCommonModule,
99
- FsFormModule,
100
- FsLabelModule,
101
- FsSkeletonModule,
102
- FsHtmlEditorModule,
103
- FsDialogModule,
104
- FsTextEditorModule,
105
- FsContentEditorModule,
106
- ],
107
- exports: [
108
- FsContentPagesComponent,
109
- ],
110
- declarations: [
111
- FsContentPagesComponent,
112
- ContentPageComponent,
113
- ContentPageEditorComponent,
114
- ],
115
- }]
116
- }] });
117
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC1wYWdlcy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1wYWdlcy9mcy1jb250ZW50LXBhZ2VzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUF1QixRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTdDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUN4RSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDM0QsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDM0QsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDJCQU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4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBGc0NvbnRlbnRQYWdlc01vZHVsZSxcbiAgICB9O1xuICB9XG59XG4iXX0=
@@ -1,71 +0,0 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, ViewChild, } from '@angular/core';
2
- import { FsFormDirective } from '@firestitch/form';
3
- import { FsMessage } from '@firestitch/message';
4
- import { FsTextEditorComponent } from '@firestitch/text-editor';
5
- import { Subject } from 'rxjs';
6
- import { tap } from 'rxjs/operators';
7
- import { FS_CONTENT_CONFIG } from '../../../../injectors';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@firestitch/message";
10
- import * as i2 from "@firestitch/text-editor";
11
- import * as i3 from "@firestitch/skeleton";
12
- import * as i4 from "@angular/forms";
13
- import * as i5 from "@firestitch/common";
14
- export class ContentStyleComponent {
15
- constructor(_config, _message, _cdRef) {
16
- this._config = _config;
17
- this._message = _message;
18
- this._cdRef = _cdRef;
19
- this.height = '100%';
20
- this.contentStyle = null;
21
- this.styleConfig = {
22
- tabSize: 2,
23
- language: 'scss',
24
- height: '100%',
25
- };
26
- this._destroy$ = new Subject();
27
- }
28
- ngOnInit() {
29
- this.styleConfig.height = this.height;
30
- this._config.loadContentStyle()
31
- .subscribe((contentStyle) => {
32
- this.contentStyle = contentStyle;
33
- this._cdRef.markForCheck();
34
- });
35
- }
36
- ngOnDestroy() {
37
- this._destroy$.next();
38
- this._destroy$.complete();
39
- }
40
- save() {
41
- this._config.saveContentStyle(this.contentStyle)
42
- .pipe(tap((contentStyle) => {
43
- this.contentStyle = Object.assign(Object.assign({}, this.contentStyle), contentStyle);
44
- this._cdRef.markForCheck();
45
- this._message.success('Saved Changes');
46
- })).subscribe();
47
- }
48
- }
49
- ContentStyleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentStyleComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
50
- ContentStyleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContentStyleComponent, selector: "fs-content-style", inputs: { height: "height" }, viewQueries: [{ propertyName: "textEditors", first: true, predicate: FsTextEditorComponent, descendants: true }, { propertyName: "form", first: true, predicate: FsFormDirective, descendants: true }], ngImport: i0, template: "<ng-container *fsSkeletonForm=\"contentStyle\">\n <fs-text-editor \n [(ngModel)]=\"contentStyle.scss\" \n name=\"contentStyle\"\n [fsModelChangeOptions]=\"{ debounce: 300 }\"\n (fsModelChange)=\"save()\"\n [config]=\"styleConfig\">\n </fs-text-editor> \n</ng-container>\n", styles: [""], components: [{ type: i2.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["ready", "blur"] }], directives: [{ type: i3.FsSkeletonFormDirective, selector: "[fsSkeletonForm]", inputs: ["fsSkeletonForm", "fsSkeletonFormLines"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5.FsModelChangeDirective, selector: "[fsModelChange]", inputs: ["fsModelChangeOptions"], outputs: ["fsModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentStyleComponent, decorators: [{
52
- type: Component,
53
- args: [{
54
- selector: 'fs-content-style',
55
- templateUrl: './content-style.component.html',
56
- styleUrls: ['./content-style.component.scss'],
57
- changeDetection: ChangeDetectionStrategy.OnPush,
58
- }]
59
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
60
- type: Inject,
61
- args: [FS_CONTENT_CONFIG]
62
- }] }, { type: i1.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { textEditors: [{
63
- type: ViewChild,
64
- args: [FsTextEditorComponent]
65
- }], form: [{
66
- type: ViewChild,
67
- args: [FsFormDirective]
68
- }], height: [{
69
- type: Input
70
- }] } });
71
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1zdHlsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1zdHlsZS9jb21wb25lbnRzL2NvbnRlbnQtc3R5bGUvY29udGVudC1zdHlsZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1zdHlsZS9jb21wb25lbnRzL2NvbnRlbnQtc3R5bGUvY29udGVudC1zdHlsZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsTUFBTSxFQUNOLEtBQUssRUFHTCxTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFHdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQy9CLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVyQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7Ozs7OztBQVUxRCxNQUFNLE9BQU8scU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gICAgICAgICAgICAuLi50aGlzLmNvbnRlbnRTdHlsZSxcbiAgICAgICAgICAgIC4uLmNvbnRlbnRTdHlsZSxcbiAgICAgICAgICB9O1xuXG4gICAgICAgICAgdGhpcy5fY2RSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgICAgICAgdGhpcy5fbWVzc2FnZS5zdWNjZXNzKCdTYXZlZCBDaGFuZ2VzJyk7XG4gICAgICAgIH0pLFxuICAgICAgKS5zdWJzY3JpYmUoKTtcbiAgfVxuXG59XG4iLCI8bmctY29udGFpbmVyICpmc1NrZWxldG9uRm9ybT1cImNvbnRlbnRTdHlsZVwiPlxuICA8ZnMtdGV4dC1lZGl0b3IgXG4gICAgWyhuZ01vZGVsKV09XCJjb250ZW50U3R5bGUuc2Nzc1wiIFxuICAgIG5hbWU9XCJjb250ZW50U3R5bGVcIlxuICAgIFtmc01vZGVsQ2hhbmdlT3B0aW9uc109XCJ7IGRlYm91bmNlOiAzMDAgfVwiXG4gICAgKGZzTW9kZWxDaGFuZ2UpPVwic2F2ZSgpXCJcbiAgICBbY29uZmlnXT1cInN0eWxlQ29uZmlnXCI+XG4gIDwvZnMtdGV4dC1lZGl0b3I+ICAgICAgICAgICAgICBcbjwvbmctY29udGFpbmVyPlxuIl19
@@ -1,149 +0,0 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { FsMessage } from '@firestitch/message';
3
- import { Subject } from 'rxjs';
4
- import { tap } from 'rxjs/operators';
5
- import { EditorType } from '../../../../enums';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@firestitch/message";
8
- import * as i2 from "angular-split";
9
- import * as i3 from "../editor-label/editor-label.component";
10
- import * as i4 from "@firestitch/text-editor";
11
- import * as i5 from "@angular/forms";
12
- import * as i6 from "@firestitch/form";
13
- import * as i7 from "@firestitch/common";
14
- import * as i8 from "@firestitch/skeleton";
15
- export class EditorComponent {
16
- constructor(_cdRef, _message) {
17
- this._cdRef = _cdRef;
18
- this._message = _message;
19
- this.showHtml = false;
20
- this.showScss = false;
21
- this.showJs = false;
22
- this.showGlobalScss = false;
23
- this.changed = new EventEmitter();
24
- this.focused = new EventEmitter();
25
- this.blured = new EventEmitter();
26
- this.changes = {};
27
- this.EditorType = EditorType;
28
- this.resizing = false;
29
- this._destroy$ = new Subject();
30
- }
31
- ngOnInit() {
32
- this.initTextEditors();
33
- this.initGlobalContentStyle();
34
- }
35
- ngOnDestroy() {
36
- this._destroy$.next();
37
- this._destroy$.complete();
38
- }
39
- change(type, value) {
40
- this.changed.emit({ type, value });
41
- this.changes[type] = value;
42
- }
43
- get hasChanges() {
44
- return Object.keys(this.changes)
45
- .filter((name) => !!this.changes[name])
46
- .length !== 0;
47
- }
48
- clearChange(type) {
49
- this.changes[type] = undefined;
50
- this._cdRef.markForCheck();
51
- }
52
- initTextEditors() {
53
- this.scssConfig = {
54
- tabSize: 2,
55
- language: 'scss',
56
- height: '100%',
57
- focus: () => {
58
- this._onFocus(EditorType.Scss);
59
- },
60
- blur: () => {
61
- this.blured.emit(EditorType.Scss);
62
- },
63
- };
64
- this.jsConfig = {
65
- tabSize: 2,
66
- language: 'js',
67
- height: '100%',
68
- focus: () => {
69
- this._onFocus(EditorType.Js);
70
- },
71
- blur: () => {
72
- this.blured.emit(EditorType.Js);
73
- },
74
- };
75
- this.htmlConfig = {
76
- tabSize: 2,
77
- language: 'html',
78
- height: '100%',
79
- focus: () => {
80
- this._onFocus(EditorType.Html);
81
- },
82
- blur: () => {
83
- this.blured.emit(EditorType.Html);
84
- },
85
- };
86
- this.globalScssConfig = {
87
- tabSize: 2,
88
- language: 'scss',
89
- height: '100%',
90
- focus: () => {
91
- this._onFocus(EditorType.GlobalScss);
92
- },
93
- blur: () => {
94
- this.blured.emit(EditorType.GlobalScss);
95
- },
96
- };
97
- }
98
- initGlobalContentStyle() {
99
- this.contentConfig.loadContentStyle()
100
- .subscribe((contentStyle) => {
101
- this.contentStyle = contentStyle || {};
102
- this._cdRef.markForCheck();
103
- });
104
- }
105
- saveGlobalScss() {
106
- return this.contentConfig.saveContentStyle(this.contentStyle)
107
- .pipe(tap(() => {
108
- this._message.success('Saved Changes');
109
- }));
110
- }
111
- _onFocus(type) {
112
- this.focusedArea = type;
113
- this.focused.emit(type);
114
- }
115
- }
116
- EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
117
- EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorComponent, selector: "app-editor", inputs: { showHtml: "showHtml", showScss: "showScss", showJs: "showJs", showGlobalScss: "showGlobalScss", html: "html", scss: "scss", js: "js", contentConfig: "contentConfig" }, outputs: { changed: "changed", focused: "focused", blured: "blured" }, ngImport: i0, template: "<as-split [unit]=\"'percent'\" [gutterSize]=\"25\"> \n <as-split-area [size]=\"70\" [visible]=\"showHtml\" [order]=\"1\">\n <div class=\"editor-container\">\n <app-editor-label\n [changed]=\"changes.html !== undefined\"\n [focused]=\"focusedArea === 'html'\">\n HTML\n </app-editor-label>\n <fs-text-editor \n [(ngModel)]=\"html\" \n name=\"html\"\n [fsModelChangeOptions]=\"{ debounce: 0 }\"\n (fsModelChange)=\"change(EditorType.Html, $event)\"\n [config]=\"htmlConfig\">\n </fs-text-editor> \n </div>\n </as-split-area>\n <as-split-area [size]=\"30\" [visible]=\"showScss\" [order]=\"2\">\n <div class=\"editor-container\">\n <app-editor-label\n [changed]=\"changes.scss !== undefined\"\n [focused]=\"focusedArea === 'scss'\">\n SCSS\n </app-editor-label>\n <fs-text-editor \n [(ngModel)]=\"scss\" \n name=\"scss\"\n [fsModelChangeOptions]=\"{ debounce: 0 }\"\n (fsModelChange)=\"change(EditorType.Scss, $event)\"\n [config]=\"scssConfig\">\n </fs-text-editor> \n </div>\n </as-split-area>\n <as-split-area [size]=\"30\" [visible]=\"showJs\" [order]=\"3\">\n <div class=\"editor-container\">\n <app-editor-label\n [changed]=\"changes.js !== undefined\"\n [focused]=\"focusedArea === 'js'\">\n JS\n </app-editor-label>\n <fs-text-editor \n [(ngModel)]=\"js\" \n name=\"js\"\n [fsModelChangeOptions]=\"{ debounce: 0 }\"\n (fsModelChange)=\"change(EditorType.Js, $event)\"\n [config]=\"jsConfig\">\n </fs-text-editor> \n </div>\n </as-split-area>\n <as-split-area [size]=\"30\" [visible]=\"showGlobalScss\" [order]=\"4\">\n <div class=\"editor-container\">\n <app-editor-label\n [changed]=\"changes.globalScss !== undefined\"\n [focused]=\"focusedArea === 'globalScss'\">\n Global SCSS\n </app-editor-label>\n <ng-container *fsSkeleton=\"contentStyle\">\n <fs-text-editor \n [(ngModel)]=\"contentStyle.scss\" \n name=\"globalScss\"\n [fsModelChangeOptions]=\"{ debounce: 300 }\"\n (fsModelChange)=\"change(EditorType.GlobalScss, $event)\"\n [config]=\"globalScssConfig\">\n </fs-text-editor> \n </ng-container> \n </div>\n </as-split-area>\n</as-split>\n", styles: [":host ::ng-deep .as-split-gutter{background-color:unset!important}.editor-container{height:100%;border-radius:5px;display:flex;flex-direction:column}.editor-container fs-text-editor{flex:1}\n"], components: [{ type: i2.SplitComponent, selector: "as-split", inputs: ["direction", "unit", "gutterSize", "gutterStep", "restrictMove", "useTransition", "disabled", "dir", "gutterDblClickDuration", "gutterClickDeltaPx", "gutterAriaLabel"], outputs: ["transitionEnd", "dragStart", "dragEnd", "gutterClick", "gutterDblClick"], exportAs: ["asSplit"] }, { type: i3.EditorLabelComponent, selector: "app-editor-label", inputs: ["changed", "focused"] }, { type: i4.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["ready", "blur"] }], directives: [{ type: i2.SplitAreaDirective, selector: "as-split-area, [as-split-area]", inputs: ["order", "size", "minSize", "maxSize", "lockSize", "visible"], exportAs: ["asSplitArea"] }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6.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: i7.FsModelChangeDirective, selector: "[fsModelChange]", inputs: ["fsModelChangeOptions"], outputs: ["fsModelChange"] }, { type: i8.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorComponent, decorators: [{
119
- type: Component,
120
- args: [{
121
- selector: 'app-editor',
122
- templateUrl: './editor.component.html',
123
- styleUrls: ['./editor.component.scss'],
124
- changeDetection: ChangeDetectionStrategy.OnPush,
125
- }]
126
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FsMessage }]; }, propDecorators: { showHtml: [{
127
- type: Input
128
- }], showScss: [{
129
- type: Input
130
- }], showJs: [{
131
- type: Input
132
- }], showGlobalScss: [{
133
- type: Input
134
- }], html: [{
135
- type: Input
136
- }], scss: [{
137
- type: Input
138
- }], js: [{
139
- type: Input
140
- }], contentConfig: [{
141
- type: Input
142
- }], changed: [{
143
- type: Output
144
- }], focused: [{
145
- type: Output
146
- }], blured: [{
147
- type: Output
148
- }] } });
149
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW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2tlbGV0b249XCJjb250ZW50U3R5bGVcIj5cbiAgICAgICAgPGZzLXRleHQtZWRpdG9yIFxuICAgICAgICAgIFsobmdNb2RlbCldPVwiY29udGVudFN0eWxlLnNjc3NcIiBcbiAgICAgICAgICBuYW1lPVwiZ2xvYmFsU2Nzc1wiXG4gICAgICAgICAgW2ZzTW9kZWxDaGFuZ2VPcHRpb25zXT1cInsgZGVib3VuY2U6IDMwMCB9XCJcbiAgICAgICAgICAoZnNNb2RlbENoYW5nZSk9XCJjaGFuZ2UoRWRpdG9yVHlwZS5HbG9iYWxTY3NzLCAkZXZlbnQpXCJcbiAgICAgICAgICBbY29uZmlnXT1cImdsb2JhbFNjc3NDb25maWdcIj5cbiAgICAgICAgPC9mcy10ZXh0LWVkaXRvcj4gXG4gICAgICA8L25nLWNvbnRhaW5lcj4gICBcbiAgICA8L2Rpdj5cbiAgPC9hcy1zcGxpdC1hcmVhPlxuPC9hcy1zcGxpdD5cbiJdfQ==
@@ -1,21 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export class EditorLabelComponent {
5
- }
6
- EditorLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- EditorLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EditorLabelComponent, selector: "app-editor-label", inputs: { changed: "changed", focused: "focused" }, ngImport: i0, template: "<div class=\"label\" [ngClass]=\"{ focused: focused }\">\n <ng-content></ng-content>\n <span *ngIf=\"changed\" class=\"changed\">&nbsp;&#9679;</span>\n</div>\n", styles: [".label{display:inline-block;background-color:#1e1e1e;color:#c8c8c8;padding:3px 9px 2px;border-top-left-radius:6px;border-top-right-radius:6px;font-size:80%;text-transform:uppercase}.label.focused{color:#fff}.label .changed{font-size:110%;line-height:0}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EditorLabelComponent, decorators: [{
9
- type: Component,
10
- args: [{
11
- selector: 'app-editor-label',
12
- templateUrl: './editor-label.component.html',
13
- styleUrls: ['./editor-label.component.scss'],
14
- changeDetection: ChangeDetectionStrategy.OnPush,
15
- }]
16
- }], propDecorators: { changed: [{
17
- type: Input
18
- }], focused: [{
19
- type: Input
20
- }] } });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItbGFiZWwvZWRpdG9yLWxhYmVsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy9lZGl0b3IvY29tcG9uZW50cy9lZGl0b3ItbGFiZWwvZWRpdG9yLWxhYmVsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssR0FDTixNQUFNLGVBQWUsQ0FBQzs7O0FBU3ZCLE1BQU0sT0FBTyxvQkFBb0I7O2tIQUFwQixvQkFBb0I7c0dBQXBCLG9CQUFvQiw0R0NiakMsbUtBSUE7NEZEU2Esb0JBQW9CO2tCQU5oQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxrQkFBa0I7b0JBQzVC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