@firestitch/content-widget 12.2.2 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/app/content-widget/components/content-widget/content-widget.component.d.ts +16 -16
  2. package/app/content-widget/components/content-widget/index.d.ts +1 -1
  3. package/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.d.ts +9 -9
  4. package/app/content-widget/components/content-widget-dialog/index.d.ts +1 -1
  5. package/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.d.ts +16 -16
  6. package/app/content-widget/components/content-widget-renderer/index.d.ts +1 -1
  7. package/app/content-widget/components/index.d.ts +1 -1
  8. package/app/content-widget/directives/content-widget-content.directive.d.ts +5 -5
  9. package/app/content-widget/directives/index.d.ts +1 -1
  10. package/app/content-widget/fs-content-widget.module.d.ts +17 -17
  11. package/app/content-widget/injectors/content-wiget.injector.d.ts +2 -2
  12. package/app/content-widget/injectors/index.d.ts +1 -1
  13. package/app/content-widget/interfaces/content-widget-config.d.ts +4 -4
  14. package/app/content-widget/services/content-widget.service.d.ts +9 -9
  15. package/app/content-widget/services/index.d.ts +1 -1
  16. package/app/content-widgets/components/content-widget/content-widget.component.d.ts +17 -17
  17. package/app/content-widgets/components/content-widget/index.d.ts +1 -1
  18. package/app/content-widgets/components/content-widgets/content-widgets.component.d.ts +24 -24
  19. package/app/content-widgets/components/content-widgets/index.d.ts +1 -1
  20. package/app/content-widgets/fs-content-widgets.module.d.ts +23 -23
  21. package/esm2020/app/content-widget/components/content-widget/content-widget.component.mjs +42 -0
  22. package/{esm2015/app/content-widget/components/content-widget/index.js → esm2020/app/content-widget/components/content-widget/index.mjs} +1 -1
  23. package/esm2020/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.mjs +25 -0
  24. package/{esm2015/app/content-widget/components/content-widget-dialog/index.js → esm2020/app/content-widget/components/content-widget-dialog/index.mjs} +1 -1
  25. package/{esm2015/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.js → esm2020/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.mjs} +48 -52
  26. package/{esm2015/app/content-widget/components/content-widget-renderer/index.js → esm2020/app/content-widget/components/content-widget-renderer/index.mjs} +1 -1
  27. package/{esm2015/app/content-widget/components/index.js → esm2020/app/content-widget/components/index.mjs} +1 -1
  28. package/{esm2015/app/content-widget/directives/content-widget-content.directive.js → esm2020/app/content-widget/directives/content-widget-content.directive.mjs} +13 -13
  29. package/{esm2015/app/content-widget/directives/index.js → esm2020/app/content-widget/directives/index.mjs} +1 -1
  30. package/{esm2015/app/content-widget/fs-content-widget.module.js → esm2020/app/content-widget/fs-content-widget.module.mjs} +59 -61
  31. package/{esm2015/app/content-widget/injectors/content-wiget.injector.js → esm2020/app/content-widget/injectors/content-wiget.injector.mjs} +2 -2
  32. package/{esm2015/app/content-widget/injectors/index.js → esm2020/app/content-widget/injectors/index.mjs} +1 -1
  33. package/{esm2015/app/content-widget/interfaces/content-widget-config.js → esm2020/app/content-widget/interfaces/content-widget-config.mjs} +1 -1
  34. package/{esm2015/app/content-widget/services/content-widget.service.js → esm2020/app/content-widget/services/content-widget.service.mjs} +27 -27
  35. package/{esm2015/app/content-widget/services/index.js → esm2020/app/content-widget/services/index.mjs} +1 -1
  36. package/esm2020/app/content-widgets/components/content-widget/content-widget.component.mjs +46 -0
  37. package/{esm2015/app/content-widgets/components/content-widget/index.js → esm2020/app/content-widgets/components/content-widget/index.mjs} +1 -1
  38. package/esm2020/app/content-widgets/components/content-widgets/content-widgets.component.mjs +68 -0
  39. package/{esm2015/app/content-widgets/components/content-widgets/index.js → esm2020/app/content-widgets/components/content-widgets/index.mjs} +1 -1
  40. package/{esm2015/app/content-widgets/fs-content-widgets.module.js → esm2020/app/content-widgets/fs-content-widgets.module.mjs} +80 -82
  41. package/{esm2015/firestitch-content-widget.js → esm2020/firestitch-content-widget.mjs} +4 -4
  42. package/{esm2015/public_api.js → esm2020/public_api.mjs} +7 -7
  43. package/fesm2015/firestitch-content-widget.mjs +369 -0
  44. package/fesm2015/firestitch-content-widget.mjs.map +1 -0
  45. package/fesm2020/firestitch-content-widget.mjs +365 -0
  46. package/fesm2020/firestitch-content-widget.mjs.map +1 -0
  47. package/{firestitch-content-widget.d.ts → index.d.ts} +5 -5
  48. package/package.json +20 -7
  49. package/public_api.d.ts +8 -8
  50. package/bundles/firestitch-content-widget.umd.js +0 -433
  51. package/bundles/firestitch-content-widget.umd.js.map +0 -1
  52. package/esm2015/app/content-widget/components/content-widget/content-widget.component.js +0 -46
  53. package/esm2015/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.js +0 -29
  54. package/esm2015/app/content-widgets/components/content-widget/content-widget.component.js +0 -47
  55. package/esm2015/app/content-widgets/components/content-widgets/content-widgets.component.js +0 -72
  56. package/fesm2015/firestitch-content-widget.js +0 -386
  57. package/fesm2015/firestitch-content-widget.js.map +0 -1
@@ -1,82 +1,80 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { MatButtonModule } from '@angular/material/button';
4
- import { MatTabsModule } from '@angular/material/tabs';
5
- import { MatDialogModule } from '@angular/material/dialog';
6
- import { FormsModule } from '@angular/forms';
7
- import { MatInputModule } from '@angular/material/input';
8
- import { MatFormFieldModule } from '@angular/material/form-field';
9
- import { FsListModule } from '@firestitch/list';
10
- import { FsDateModule } from '@firestitch/date';
11
- import { FsDialogModule } from '@firestitch/dialog';
12
- import { FsFormModule } from '@firestitch/form';
13
- import { FsHtmlEditorModule } from '@firestitch/html-editor';
14
- import { FsTextEditorModule } from '@firestitch/text-editor';
15
- import { FsContentWidgetComponent } from './components/content-widget';
16
- import { FsContentWidgetsComponent } from './components/content-widgets';
17
- import * as i0 from "@angular/core";
18
- export class FsContentWidgetsModule {
19
- static forRoot() {
20
- return {
21
- ngModule: FsContentWidgetsModule,
22
- };
23
- }
24
- }
25
- FsContentWidgetsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- FsContentWidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
27
- FsContentWidgetComponent], imports: [CommonModule,
28
- FormsModule,
29
- MatDialogModule,
30
- MatInputModule,
31
- MatFormFieldModule,
32
- MatButtonModule,
33
- MatTabsModule,
34
- FsListModule,
35
- FsDateModule,
36
- FsFormModule,
37
- FsHtmlEditorModule,
38
- FsDialogModule,
39
- FsTextEditorModule], exports: [FsContentWidgetsComponent] });
40
- FsContentWidgetsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentWidgetsModule, imports: [[
41
- CommonModule,
42
- FormsModule,
43
- MatDialogModule,
44
- MatInputModule,
45
- MatFormFieldModule,
46
- MatButtonModule,
47
- MatTabsModule,
48
- FsListModule,
49
- FsDateModule,
50
- FsFormModule,
51
- FsHtmlEditorModule,
52
- FsDialogModule,
53
- FsTextEditorModule,
54
- ]] });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentWidgetsModule, decorators: [{
56
- type: NgModule,
57
- args: [{
58
- imports: [
59
- CommonModule,
60
- FormsModule,
61
- MatDialogModule,
62
- MatInputModule,
63
- MatFormFieldModule,
64
- MatButtonModule,
65
- MatTabsModule,
66
- FsListModule,
67
- FsDateModule,
68
- FsFormModule,
69
- FsHtmlEditorModule,
70
- FsDialogModule,
71
- FsTextEditorModule,
72
- ],
73
- exports: [
74
- FsContentWidgetsComponent,
75
- ],
76
- declarations: [
77
- FsContentWidgetsComponent,
78
- FsContentWidgetComponent,
79
- ],
80
- }]
81
- }] });
82
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC13aWRnZXRzLm1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dldHNNb2R1bGUsXG4gICAgfTtcbiAgfVxufVxuIl19
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MatButtonModule } from '@angular/material/button';
4
+ import { MatTabsModule } from '@angular/material/tabs';
5
+ import { MatDialogModule } from '@angular/material/dialog';
6
+ import { FormsModule } from '@angular/forms';
7
+ import { MatInputModule } from '@angular/material/input';
8
+ import { MatFormFieldModule } from '@angular/material/form-field';
9
+ import { FsListModule } from '@firestitch/list';
10
+ import { FsDateModule } from '@firestitch/date';
11
+ import { FsDialogModule } from '@firestitch/dialog';
12
+ import { FsFormModule } from '@firestitch/form';
13
+ import { FsHtmlEditorModule } from '@firestitch/html-editor';
14
+ import { FsTextEditorModule } from '@firestitch/text-editor';
15
+ import { FsContentWidgetComponent } from './components/content-widget';
16
+ import { FsContentWidgetsComponent } from './components/content-widgets';
17
+ import * as i0 from "@angular/core";
18
+ export class FsContentWidgetsModule {
19
+ static forRoot() {
20
+ return {
21
+ ngModule: FsContentWidgetsModule,
22
+ };
23
+ }
24
+ }
25
+ FsContentWidgetsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ FsContentWidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
27
+ FsContentWidgetComponent], imports: [CommonModule,
28
+ FormsModule,
29
+ MatDialogModule,
30
+ MatInputModule,
31
+ MatFormFieldModule,
32
+ MatButtonModule,
33
+ MatTabsModule,
34
+ FsListModule,
35
+ FsDateModule,
36
+ FsFormModule,
37
+ FsHtmlEditorModule,
38
+ FsDialogModule,
39
+ FsTextEditorModule], exports: [FsContentWidgetsComponent] });
40
+ FsContentWidgetsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, imports: [CommonModule,
41
+ FormsModule,
42
+ MatDialogModule,
43
+ MatInputModule,
44
+ MatFormFieldModule,
45
+ MatButtonModule,
46
+ MatTabsModule,
47
+ FsListModule,
48
+ FsDateModule,
49
+ FsFormModule,
50
+ FsHtmlEditorModule,
51
+ FsDialogModule,
52
+ FsTextEditorModule] });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, decorators: [{
54
+ type: NgModule,
55
+ args: [{
56
+ imports: [
57
+ CommonModule,
58
+ FormsModule,
59
+ MatDialogModule,
60
+ MatInputModule,
61
+ MatFormFieldModule,
62
+ MatButtonModule,
63
+ MatTabsModule,
64
+ FsListModule,
65
+ FsDateModule,
66
+ FsFormModule,
67
+ FsHtmlEditorModule,
68
+ FsDialogModule,
69
+ FsTextEditorModule,
70
+ ],
71
+ exports: [
72
+ FsContentWidgetsComponent,
73
+ ],
74
+ declarations: [
75
+ FsContentWidgetsComponent,
76
+ FsContentWidgetComponent,
77
+ ],
78
+ }]
79
+ }] });
80
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC13aWRnZXRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXRzL2ZzLWNvbnRlbnQtd2lkZ2V0cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd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ICAgTWF0SW5wdXRNb2R1bGUsXG4gICAgTWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIE1hdEJ1dHRvbk1vZHVsZSxcbiAgICBNYXRUYWJzTW9kdWxlLFxuXG4gICAgRnNMaXN0TW9kdWxlLFxuICAgIEZzRGF0ZU1vZHVsZSxcbiAgICBGc0Zvcm1Nb2R1bGUsXG4gICAgRnNIdG1sRWRpdG9yTW9kdWxlLFxuICAgIEZzRGlhbG9nTW9kdWxlLFxuICAgIEZzVGV4dEVkaXRvck1vZHVsZSxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEZzQ29udGVudFdpZGdldHNDb21wb25lbnQsXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIEZzQ29udGVudFdpZGdldHNDb21wb25lbnQsXG4gICAgRnNDb250ZW50V2lkZ2V0Q29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBGc0NvbnRlbnRXaWRnZXRzTW9kdWxlIHtcbiAgc3RhdGljIGZvclJvb3QoKTogTW9kdWxlV2l0aFByb3ZpZGVyczxGc0NvbnRlbnRXaWRnZXRzTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBGc0NvbnRlbnRXaWRnZXRzTW9kdWxlLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlyZXN0aXRjaC1jb250ZW50LXdpZGdldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maXJlc3RpdGNoLWNvbnRlbnQtd2lkZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
@@ -1,8 +1,8 @@
1
- export { FsContentWidgetsModule } from './app/content-widgets/fs-content-widgets.module';
2
- export { FsContentWidgetModule } from './app/content-widget/fs-content-widget.module';
3
- export { FsContentWidgetsComponent } from './app/content-widgets/components/content-widgets/content-widgets.component';
4
- export { FsContentWidgetComponent } from './app/content-widget/components/content-widget/content-widget.component';
5
- export { FsContentWidgetContentDirective } from './app/content-widget/directives';
6
- export { FS_CONTENT_WIDGET_CONFIG } from './app/content-widget/injectors/content-wiget.injector';
7
- export { FsContentWidget } from './app/content-widget/services';
1
+ export { FsContentWidgetsModule } from './app/content-widgets/fs-content-widgets.module';
2
+ export { FsContentWidgetModule } from './app/content-widget/fs-content-widget.module';
3
+ export { FsContentWidgetsComponent } from './app/content-widgets/components/content-widgets/content-widgets.component';
4
+ export { FsContentWidgetComponent } from './app/content-widget/components/content-widget/content-widget.component';
5
+ export { FsContentWidgetContentDirective } from './app/content-widget/directives';
6
+ export { FS_CONTENT_WIDGET_CONFIG } from './app/content-widget/injectors/content-wiget.injector';
7
+ export { FsContentWidget } from './app/content-widget/services';
8
8
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLCtDQUErQyxDQUFDO0FBR3RGLE9BQU8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XQvZGlyZWN0aXZlcyc7XG5cbmV4cG9ydCB7IEZTX0NPTlRFTlRfV0lER0VUX0NPTkZJRyB9IGZyb20gJy4vYXBwL2NvbnRlbnQtd2lkZ2V0L2luamVjdG9ycy9jb250ZW50LXdpZ2V0LmluamVjdG9yJztcblxuZXhwb3J0IHsgRnNDb250ZW50V2lkZ2V0IH0gZnJvbSAnLi9hcHAvY29udGVudC13aWRnZXQvc2VydmljZXMnO1xuIl19
@@ -0,0 +1,369 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Inject, Input, ViewChild, NgModule, Directive, InjectionToken, TemplateRef, ContentChild, ChangeDetectionStrategy, Injectable } from '@angular/core';
3
+ import * as i1$2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i6 from '@angular/material/button';
6
+ import { MatButtonModule } from '@angular/material/button';
7
+ import * as i7 from '@angular/material/tabs';
8
+ import { MatTabsModule } from '@angular/material/tabs';
9
+ import * as i3 from '@angular/material/dialog';
10
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
11
+ import * as i2 from '@angular/forms';
12
+ import { FormsModule } from '@angular/forms';
13
+ import * as i5 from '@angular/material/input';
14
+ import { MatInputModule } from '@angular/material/input';
15
+ import * as i4 from '@angular/material/form-field';
16
+ import { MatFormFieldModule } from '@angular/material/form-field';
17
+ import * as i2$1 from '@firestitch/list';
18
+ import { FsListComponent, FsListModule } from '@firestitch/list';
19
+ import * as i3$1 from '@firestitch/date';
20
+ import { FsDateModule } from '@firestitch/date';
21
+ import * as i10 from '@firestitch/dialog';
22
+ import { FsDialogModule } from '@firestitch/dialog';
23
+ import * as i8 from '@firestitch/form';
24
+ import { FsFormModule } from '@firestitch/form';
25
+ import * as i9 from '@firestitch/html-editor';
26
+ import { FsHtmlEditorModule, FsHtmlRendererModule } from '@firestitch/html-editor';
27
+ import * as i11 from '@firestitch/text-editor';
28
+ import { FsTextEditorModule } from '@firestitch/text-editor';
29
+ import { tap, map, takeUntil } from 'rxjs/operators';
30
+ import * as i1 from '@firestitch/message';
31
+ import { ItemType } from '@firestitch/filter';
32
+ import { Subject } from 'rxjs';
33
+ import * as i1$1 from '@angular/router';
34
+
35
+ class FsContentWidgetComponent$1 {
36
+ constructor(_message, _data) {
37
+ this._message = _message;
38
+ this._data = _data;
39
+ this.save = () => {
40
+ return this._saveContentWidget(this.contentWidget)
41
+ .pipe(tap((contentWidget) => {
42
+ this.contentWidget = Object.assign(Object.assign({}, this.contentWidget), contentWidget);
43
+ this._message.success('Saved Changes');
44
+ }));
45
+ };
46
+ }
47
+ ngOnInit() {
48
+ this._saveContentWidget = this._data.saveContentWidget;
49
+ this.htmlEditorConfig = Object.assign({}, this._data.htmlEditorConfig);
50
+ this.contentWidget = Object.assign({}, this._data.contentWidget);
51
+ }
52
+ }
53
+ FsContentWidgetComponent$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetComponent$1, deps: [{ token: i1.FsMessage }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
54
+ FsContentWidgetComponent$1.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetComponent$1, selector: "ng-component", ngImport: i0, template: "\n<form fsForm [submit]=\"save\">\n <fs-dialog>\n <div mat-dialog-title>\n Content Widget\n <div class=\"subtitle\">{{contentWidget.name}}</div>\n </div>\n <mat-dialog-content>\n <mat-tab-group>\n <mat-tab label=\"HTML\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"contentWidget.content\"\n [config]=\"{ language: 'html', tabSize: 2 }\"\n name=\"html\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Rich Text\">\n <ng-template matTabContent>\n <fs-html-editor\n [(ngModel)]=\"contentWidget.content\"\n [config]=\"htmlEditorConfig\"\n name=\"content\">\n </fs-html-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Styles\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"contentWidget.styles\"\n [config]=\"{ language: 'scss', tabSize: 2 }\"\n name=\"styles\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Settings\">\n <mat-form-field>\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"contentWidget.name\"\n name=\"name\"\n [required]=\"true\">\n </mat-form-field>\n </mat-tab>\n </mat-tab-group>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\">\n Save\n </button>\n <button\n mat-button\n [mat-dialog-close]=\"null\"\n type=\"button\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["mat-form-field{width:100%}fs-html-editor{min-height:400px;display:block;overflow:hidden}.subtitle{font-size:60%;line-height:normal}:host ::ng-deep .mat-tab-body-content{overflow:visible}\n"], dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.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"] }, { kind: "component", type: i6.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"] }, { kind: "component", type: i7.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i7.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "directive", type: i7.MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: i8.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"] }, { kind: "directive", type: i8.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { kind: "directive", type: i8.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])" }, { kind: "directive", type: i8.FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit", "form"] }, { kind: "component", type: i9.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config", "hint", "disabled"] }, { kind: "component", type: i10.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { kind: "component", type: i11.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["ready", "blur"] }] });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetComponent$1, decorators: [{
56
+ type: Component,
57
+ args: [{ template: "\n<form fsForm [submit]=\"save\">\n <fs-dialog>\n <div mat-dialog-title>\n Content Widget\n <div class=\"subtitle\">{{contentWidget.name}}</div>\n </div>\n <mat-dialog-content>\n <mat-tab-group>\n <mat-tab label=\"HTML\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"contentWidget.content\"\n [config]=\"{ language: 'html', tabSize: 2 }\"\n name=\"html\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Rich Text\">\n <ng-template matTabContent>\n <fs-html-editor\n [(ngModel)]=\"contentWidget.content\"\n [config]=\"htmlEditorConfig\"\n name=\"content\">\n </fs-html-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Styles\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"contentWidget.styles\"\n [config]=\"{ language: 'scss', tabSize: 2 }\"\n name=\"styles\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Settings\">\n <mat-form-field>\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"contentWidget.name\"\n name=\"name\"\n [required]=\"true\">\n </mat-form-field>\n </mat-tab>\n </mat-tab-group>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\">\n Save\n </button>\n <button\n mat-button\n [mat-dialog-close]=\"null\"\n type=\"button\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["mat-form-field{width:100%}fs-html-editor{min-height:400px;display:block;overflow:hidden}.subtitle{font-size:60%;line-height:normal}:host ::ng-deep .mat-tab-body-content{overflow:visible}\n"] }]
58
+ }], ctorParameters: function () {
59
+ return [{ type: i1.FsMessage }, { type: undefined, decorators: [{
60
+ type: Inject,
61
+ args: [MAT_DIALOG_DATA]
62
+ }] }];
63
+ } });
64
+
65
+ class FsContentWidgetsComponent {
66
+ constructor(_dialog) {
67
+ this._dialog = _dialog;
68
+ this._destroy$ = new Subject();
69
+ }
70
+ ngOnInit() {
71
+ this.config = {
72
+ paging: false,
73
+ filters: [
74
+ {
75
+ name: 'keyword',
76
+ type: ItemType.Keyword,
77
+ label: 'Search',
78
+ },
79
+ ],
80
+ fetch: (query) => {
81
+ return this.fetchContentWidgets(query)
82
+ .pipe(map((data) => ({ data: data.contentWidgets })));
83
+ },
84
+ };
85
+ }
86
+ ngOnDestroy() {
87
+ this._destroy$.next();
88
+ this._destroy$.complete();
89
+ }
90
+ open(contentWidget) {
91
+ this._dialog.open(FsContentWidgetComponent$1, {
92
+ width: '90%',
93
+ data: {
94
+ contentWidget,
95
+ htmlEditorConfig: this.htmlEditorConfig,
96
+ saveContentWidget: this.saveContentWidget,
97
+ },
98
+ })
99
+ .afterClosed()
100
+ .pipe(takeUntil(this._destroy$))
101
+ .subscribe(() => {
102
+ this.list.reload();
103
+ });
104
+ }
105
+ }
106
+ FsContentWidgetsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsComponent, deps: [{ token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
107
+ FsContentWidgetsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetsComponent, selector: "fs-content-widgets", inputs: { fetchContentWidgets: "fetchContentWidgets", saveContentWidget: "saveContentWidget", htmlEditorConfig: "htmlEditorConfig" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true, static: true }], ngImport: i0, template: "<fs-list [config]=\"config\">\n <fs-list-column class=\"name\">\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Preview</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"preview-container\">\n <div class=\"preview-content\">\n <div [innerHTML]=\"row.content\"></div>\n </div>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column class=\"modified\">\n <ng-template fs-list-header>Modified</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.modifiedDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [":host ::ng-deep .modified,:host ::ng-deep .name{width:1%;white-space:nowrap}:host ::ng-deep .preview-content img{display:none}.preview-content{position:relative;max-height:100px;max-width:100%;overflow:hidden;-webkit-mask-image:-webkit-gradient(linear,left 60%,left bottom,from(rgb(0,0,0)),to(rgba(0,0,0,0)))}\n"], dependencies: [{ kind: "component", type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { kind: "directive", type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { kind: "directive", type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { kind: "directive", type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { kind: "component", type: i3$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }] });
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsComponent, decorators: [{
109
+ type: Component,
110
+ args: [{ selector: 'fs-content-widgets', template: "<fs-list [config]=\"config\">\n <fs-list-column class=\"name\">\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Preview</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"preview-container\">\n <div class=\"preview-content\">\n <div [innerHTML]=\"row.content\"></div>\n </div>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column class=\"modified\">\n <ng-template fs-list-header>Modified</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.modifiedDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [":host ::ng-deep .modified,:host ::ng-deep .name{width:1%;white-space:nowrap}:host ::ng-deep .preview-content img{display:none}.preview-content{position:relative;max-height:100px;max-width:100%;overflow:hidden;-webkit-mask-image:-webkit-gradient(linear,left 60%,left bottom,from(rgb(0,0,0)),to(rgba(0,0,0,0)))}\n"] }]
111
+ }], ctorParameters: function () { return [{ type: i3.MatDialog }]; }, propDecorators: { fetchContentWidgets: [{
112
+ type: Input
113
+ }], saveContentWidget: [{
114
+ type: Input
115
+ }], htmlEditorConfig: [{
116
+ type: Input
117
+ }], list: [{
118
+ type: ViewChild,
119
+ args: [FsListComponent, { static: true }]
120
+ }] } });
121
+
122
+ class FsContentWidgetsModule {
123
+ static forRoot() {
124
+ return {
125
+ ngModule: FsContentWidgetsModule,
126
+ };
127
+ }
128
+ }
129
+ FsContentWidgetsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
+ FsContentWidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
131
+ FsContentWidgetComponent$1], imports: [CommonModule,
132
+ FormsModule,
133
+ MatDialogModule,
134
+ MatInputModule,
135
+ MatFormFieldModule,
136
+ MatButtonModule,
137
+ MatTabsModule,
138
+ FsListModule,
139
+ FsDateModule,
140
+ FsFormModule,
141
+ FsHtmlEditorModule,
142
+ FsDialogModule,
143
+ FsTextEditorModule], exports: [FsContentWidgetsComponent] });
144
+ FsContentWidgetsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, imports: [CommonModule,
145
+ FormsModule,
146
+ MatDialogModule,
147
+ MatInputModule,
148
+ MatFormFieldModule,
149
+ MatButtonModule,
150
+ MatTabsModule,
151
+ FsListModule,
152
+ FsDateModule,
153
+ FsFormModule,
154
+ FsHtmlEditorModule,
155
+ FsDialogModule,
156
+ FsTextEditorModule] });
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetsModule, decorators: [{
158
+ type: NgModule,
159
+ args: [{
160
+ imports: [
161
+ CommonModule,
162
+ FormsModule,
163
+ MatDialogModule,
164
+ MatInputModule,
165
+ MatFormFieldModule,
166
+ MatButtonModule,
167
+ MatTabsModule,
168
+ FsListModule,
169
+ FsDateModule,
170
+ FsFormModule,
171
+ FsHtmlEditorModule,
172
+ FsDialogModule,
173
+ FsTextEditorModule,
174
+ ],
175
+ exports: [
176
+ FsContentWidgetsComponent,
177
+ ],
178
+ declarations: [
179
+ FsContentWidgetsComponent,
180
+ FsContentWidgetComponent$1,
181
+ ],
182
+ }]
183
+ }] });
184
+
185
+ class FsContentWidgetContentDirective {
186
+ }
187
+ FsContentWidgetContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
188
+ FsContentWidgetContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetContentDirective, selector: "[fsContentWidgetContent]", ngImport: i0 });
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetContentDirective, decorators: [{
190
+ type: Directive,
191
+ args: [{
192
+ selector: '[fsContentWidgetContent]',
193
+ }]
194
+ }] });
195
+
196
+ const FS_CONTENT_WIDGET_CONFIG = new InjectionToken('fs-content-widget-config');
197
+
198
+ class FsContentWidgetRendererComponent {
199
+ constructor(_router, _el) {
200
+ this._router = _router;
201
+ this._el = _el;
202
+ this.destroy$ = new Subject();
203
+ }
204
+ ngAfterViewChecked() {
205
+ this.registerHrefs();
206
+ }
207
+ get el() {
208
+ return this._el.nativeElement;
209
+ }
210
+ registerHrefs() {
211
+ Array.from(this.el.querySelectorAll('a[href]'))
212
+ .filter((el) => {
213
+ return el.getAttribute('href').match(/^\//);
214
+ })
215
+ .forEach((el) => {
216
+ el.addEventListener('click', (event) => {
217
+ if (!event.shiftKey && !event.ctrlKey) {
218
+ event.preventDefault();
219
+ const href = el.getAttribute('href');
220
+ this._router.navigateByUrl(href);
221
+ }
222
+ });
223
+ });
224
+ }
225
+ ngOnDestroy() {
226
+ this.destroy$.next();
227
+ this.destroy$.complete();
228
+ }
229
+ }
230
+ FsContentWidgetRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetRendererComponent, deps: [{ token: i1$1.Router }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
231
+ FsContentWidgetRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: { content: "content" }, ngImport: i0, template: "<fs-html-renderer *ngIf=\"content\" [html]=\"content\"></fs-html-renderer>", styles: [":host ::ng-deep img{max-width:100%}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i9.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }] });
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetRendererComponent, decorators: [{
233
+ type: Component,
234
+ args: [{ selector: 'fs-content-widget-renderer', template: "<fs-html-renderer *ngIf=\"content\" [html]=\"content\"></fs-html-renderer>", styles: [":host ::ng-deep img{max-width:100%}\n"] }]
235
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i0.ElementRef }]; }, propDecorators: { content: [{
236
+ type: Input
237
+ }] } });
238
+
239
+ class FsContentWidgetComponent {
240
+ constructor(config, _cdRef) {
241
+ this.config = config;
242
+ this._cdRef = _cdRef;
243
+ this.destroy$ = new Subject();
244
+ }
245
+ ngOnInit() {
246
+ this.config.fetchContentWidget(this.tag)
247
+ .pipe(takeUntil(this.destroy$))
248
+ .subscribe((content) => {
249
+ this.content = content;
250
+ this._cdRef.markForCheck();
251
+ });
252
+ }
253
+ ngOnDestroy() {
254
+ this.destroy$.next();
255
+ this.destroy$.complete();
256
+ }
257
+ }
258
+ FsContentWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetComponent, deps: [{ token: FS_CONTENT_WIDGET_CONFIG }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
259
+ FsContentWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: { tag: "tag" }, queries: [{ propertyName: "contentWidgetContent", first: true, predicate: FsContentWidgetContentDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: "<ng-container *ngIf=\"content\">\n <ng-container *ngIf=\"contentWidgetContent; else renderer\">\n <ng-container \n [ngTemplateOutlet]=\"contentWidgetContent\" \n [ngTemplateOutletContext]=\"{ content: renderer }\">\n </ng-container>\n </ng-container>\n <ng-template #renderer>\n <fs-content-widget-renderer \n [content]=\"content\">\n </fs-content-widget-renderer>\n </ng-template>\n</ng-container>", styles: [":host ::ng-deep img{max-width:100%}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: ["content"] }] });
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetComponent, decorators: [{
261
+ type: Component,
262
+ args: [{ selector: 'fs-content-widget', template: "<ng-container *ngIf=\"content\">\n <ng-container *ngIf=\"contentWidgetContent; else renderer\">\n <ng-container \n [ngTemplateOutlet]=\"contentWidgetContent\" \n [ngTemplateOutletContext]=\"{ content: renderer }\">\n </ng-container>\n </ng-container>\n <ng-template #renderer>\n <fs-content-widget-renderer \n [content]=\"content\">\n </fs-content-widget-renderer>\n </ng-template>\n</ng-container>", styles: [":host ::ng-deep img{max-width:100%}\n"] }]
263
+ }], ctorParameters: function () {
264
+ return [{ type: undefined, decorators: [{
265
+ type: Inject,
266
+ args: [FS_CONTENT_WIDGET_CONFIG]
267
+ }] }, { type: i0.ChangeDetectorRef }];
268
+ }, propDecorators: { contentWidgetContent: [{
269
+ type: ContentChild,
270
+ args: [FsContentWidgetContentDirective, { read: TemplateRef }]
271
+ }], tag: [{
272
+ type: Input
273
+ }] } });
274
+
275
+ class FsContentWidgetDialogComponent {
276
+ constructor(_data) {
277
+ this._data = _data;
278
+ this.title = _data.title;
279
+ this.tag = _data.tag;
280
+ }
281
+ }
282
+ FsContentWidgetDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
283
+ FsContentWidgetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FsContentWidgetDialogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <ng-container *ngIf=\"title\">\n <div mat-dialog-title>{{title}}</div>\n </ng-container>\n <mat-dialog-content>\n <fs-content-widget [tag]=\"tag\"></fs-content-widget>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button \n mat-button \n color=\"primary\" \n type=\"button\" \n [mat-dialog-close]=\"null\">\n Close \n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i6.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"] }, { kind: "component", type: i10.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { kind: "component", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetDialogComponent, decorators: [{
285
+ type: Component,
286
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<fs-dialog>\n <ng-container *ngIf=\"title\">\n <div mat-dialog-title>{{title}}</div>\n </ng-container>\n <mat-dialog-content>\n <fs-content-widget [tag]=\"tag\"></fs-content-widget>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button \n mat-button \n color=\"primary\" \n type=\"button\" \n [mat-dialog-close]=\"null\">\n Close \n </button>\n </mat-dialog-actions>\n</fs-dialog>\n" }]
287
+ }], ctorParameters: function () {
288
+ return [{ type: undefined, decorators: [{
289
+ type: Inject,
290
+ args: [MAT_DIALOG_DATA]
291
+ }] }];
292
+ } });
293
+
294
+ class FsContentWidgetModule {
295
+ static forRoot() {
296
+ return {
297
+ ngModule: FsContentWidgetModule,
298
+ };
299
+ }
300
+ }
301
+ FsContentWidgetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
302
+ FsContentWidgetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetModule, declarations: [FsContentWidgetRendererComponent,
303
+ FsContentWidgetComponent,
304
+ FsContentWidgetDialogComponent,
305
+ FsContentWidgetContentDirective], imports: [CommonModule,
306
+ MatDialogModule,
307
+ MatButtonModule,
308
+ FsHtmlEditorModule,
309
+ FsDialogModule,
310
+ FsHtmlRendererModule], exports: [FsContentWidgetComponent,
311
+ FsContentWidgetContentDirective] });
312
+ FsContentWidgetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetModule, imports: [CommonModule,
313
+ MatDialogModule,
314
+ MatButtonModule,
315
+ FsHtmlEditorModule,
316
+ FsDialogModule,
317
+ FsHtmlRendererModule] });
318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetModule, decorators: [{
319
+ type: NgModule,
320
+ args: [{
321
+ imports: [
322
+ CommonModule,
323
+ MatDialogModule,
324
+ MatButtonModule,
325
+ FsHtmlEditorModule,
326
+ FsDialogModule,
327
+ FsHtmlRendererModule,
328
+ ],
329
+ exports: [
330
+ FsContentWidgetComponent,
331
+ FsContentWidgetContentDirective,
332
+ ],
333
+ declarations: [
334
+ FsContentWidgetRendererComponent,
335
+ FsContentWidgetComponent,
336
+ FsContentWidgetDialogComponent,
337
+ FsContentWidgetContentDirective,
338
+ ],
339
+ }]
340
+ }] });
341
+
342
+ class FsContentWidget {
343
+ constructor(_dialog) {
344
+ this._dialog = _dialog;
345
+ }
346
+ open(tag, title) {
347
+ this._dialog.open(FsContentWidgetDialogComponent, {
348
+ data: {
349
+ tag,
350
+ title,
351
+ }
352
+ });
353
+ }
354
+ }
355
+ FsContentWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidget, deps: [{ token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
356
+ FsContentWidget.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidget, providedIn: 'root' });
357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidget, decorators: [{
358
+ type: Injectable,
359
+ args: [{
360
+ providedIn: 'root',
361
+ }]
362
+ }], ctorParameters: function () { return [{ type: i3.MatDialog }]; } });
363
+
364
+ /**
365
+ * Generated bundle index. Do not edit.
366
+ */
367
+
368
+ export { FS_CONTENT_WIDGET_CONFIG, FsContentWidget, FsContentWidgetComponent, FsContentWidgetContentDirective, FsContentWidgetModule, FsContentWidgetsComponent, FsContentWidgetsModule };
369
+ //# sourceMappingURL=firestitch-content-widget.mjs.map