@firestitch/content-widget 12.2.2 → 13.0.1

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} +61 -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} +82 -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 +373 -0
  44. package/fesm2015/firestitch-content-widget.mjs.map +1 -0
  45. package/fesm2020/firestitch-content-widget.mjs +369 -0
  46. package/fesm2020/firestitch-content-widget.mjs.map +1 -0
  47. package/firestitch-content-widget.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,82 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC13aWRnZXRzLm1vZHVsZS5q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bGUsXG4gICAgfTtcbiAgfVxufVxuIl19
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: "13.4.0", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ FsContentWidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.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: "13.4.0", 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: "13.4.0", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC13aWRnZXRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXRzL2ZzLWNvbnRlbnQtd2lkZ2V0cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1B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sZSxcbiAgICBNYXRJbnB1dE1vZHVsZSxcbiAgICBNYXRGb3JtRmllbGRNb2R1bGUsXG4gICAgTWF0QnV0dG9uTW9kdWxlLFxuICAgIE1hdFRhYnNNb2R1bGUsXG5cbiAgICBGc0xpc3RNb2R1bGUsXG4gICAgRnNEYXRlTW9kdWxlLFxuICAgIEZzRm9ybU1vZHVsZSxcbiAgICBGc0h0bWxFZGl0b3JNb2R1bGUsXG4gICAgRnNEaWFsb2dNb2R1bGUsXG4gICAgRnNUZXh0RWRpdG9yTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRnNDb250ZW50V2lkZ2V0c0NvbXBvbmVudCxcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgRnNDb250ZW50V2lkZ2V0c0NvbXBvbmVudCxcbiAgICBGc0NvbnRlbnRXaWRnZXRDb21wb25lbnQsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIEZzQ29udGVudFdpZGdldHNNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPEZzQ29udGVudFdpZGdldHNNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IEZzQ29udGVudFdpZGdldHNNb2R1bGUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLCtDQUErQyxDQUFDO0FBR3RGLE9BQU8sRU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ZGlyZWN0aXZlcyc7XG5cbmV4cG9ydCB7IEZTX0NPTlRFTlRfV0lER0VUX0NPTkZJRyB9IGZyb20gJy4vYXBwL2NvbnRlbnQtd2lkZ2V0L2luamVjdG9ycy9jb250ZW50LXdpZ2V0LmluamVjdG9yJztcblxuZXhwb3J0IHsgRnNDb250ZW50V2lkZ2V0IH0gZnJvbSAnLi9hcHAvY29udGVudC13aWRnZXQvc2VydmljZXMnO1xuIl19
@@ -0,0 +1,373 @@
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 i2$2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i7 from '@angular/material/button';
6
+ import { MatButtonModule } from '@angular/material/button';
7
+ import * as i3 from '@angular/material/tabs';
8
+ import { MatTabsModule } from '@angular/material/tabs';
9
+ import * as i10 from '@angular/material/dialog';
10
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
11
+ import * as i8 from '@angular/forms';
12
+ import { FormsModule } from '@angular/forms';
13
+ import * as i11 from '@angular/material/input';
14
+ import { MatInputModule } from '@angular/material/input';
15
+ import * as i6 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 i2 from '@firestitch/dialog';
22
+ import { FsDialogModule } from '@firestitch/dialog';
23
+ import * as i9 from '@firestitch/form';
24
+ import { FsFormModule } from '@firestitch/form';
25
+ import * as i5 from '@firestitch/html-editor';
26
+ import { FsHtmlEditorModule, FsHtmlRendererModule } from '@firestitch/html-editor';
27
+ import * as i4 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: "13.4.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: "12.0.0", version: "13.4.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"], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { type: i4.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["ready", "blur"] }, { type: i5.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config", "hint", "disabled"] }, { type: i6.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i7.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"] }], directives: [{ type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9.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: i10.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3.MatTabContent, selector: "[matTabContent]" }, { type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9.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: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i8.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i9.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i8.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i10.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9.FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit", "form"] }, { type: i10.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.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: "13.4.0", ngImport: i0, type: FsContentWidgetsComponent, deps: [{ token: i10.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
107
+ FsContentWidgetsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.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(black),to(rgba(0,0,0,0)))}\n"], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i3$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.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(black),to(rgba(0,0,0,0)))}\n"] }]
111
+ }], ctorParameters: function () { return [{ type: i10.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: "13.4.0", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
+ FsContentWidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.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: "13.4.0", ngImport: i0, type: FsContentWidgetsModule, imports: [[
145
+ CommonModule,
146
+ FormsModule,
147
+ MatDialogModule,
148
+ MatInputModule,
149
+ MatFormFieldModule,
150
+ MatButtonModule,
151
+ MatTabsModule,
152
+ FsListModule,
153
+ FsDateModule,
154
+ FsFormModule,
155
+ FsHtmlEditorModule,
156
+ FsDialogModule,
157
+ FsTextEditorModule,
158
+ ]] });
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetsModule, decorators: [{
160
+ type: NgModule,
161
+ args: [{
162
+ imports: [
163
+ CommonModule,
164
+ FormsModule,
165
+ MatDialogModule,
166
+ MatInputModule,
167
+ MatFormFieldModule,
168
+ MatButtonModule,
169
+ MatTabsModule,
170
+ FsListModule,
171
+ FsDateModule,
172
+ FsFormModule,
173
+ FsHtmlEditorModule,
174
+ FsDialogModule,
175
+ FsTextEditorModule,
176
+ ],
177
+ exports: [
178
+ FsContentWidgetsComponent,
179
+ ],
180
+ declarations: [
181
+ FsContentWidgetsComponent,
182
+ FsContentWidgetComponent$1,
183
+ ],
184
+ }]
185
+ }] });
186
+
187
+ class FsContentWidgetContentDirective {
188
+ }
189
+ FsContentWidgetContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
190
+ FsContentWidgetContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: FsContentWidgetContentDirective, selector: "[fsContentWidgetContent]", ngImport: i0 });
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetContentDirective, decorators: [{
192
+ type: Directive,
193
+ args: [{
194
+ selector: '[fsContentWidgetContent]',
195
+ }]
196
+ }] });
197
+
198
+ const FS_CONTENT_WIDGET_CONFIG = new InjectionToken('fs-content-widget-config');
199
+
200
+ class FsContentWidgetRendererComponent {
201
+ constructor(_router, _el) {
202
+ this._router = _router;
203
+ this._el = _el;
204
+ this.destroy$ = new Subject();
205
+ }
206
+ ngAfterViewChecked() {
207
+ this.registerHrefs();
208
+ }
209
+ get el() {
210
+ return this._el.nativeElement;
211
+ }
212
+ registerHrefs() {
213
+ Array.from(this.el.querySelectorAll('a[href]'))
214
+ .filter((el) => {
215
+ return el.getAttribute('href').match(/^\//);
216
+ })
217
+ .forEach((el) => {
218
+ el.addEventListener('click', (event) => {
219
+ if (!event.shiftKey && !event.ctrlKey) {
220
+ event.preventDefault();
221
+ const href = el.getAttribute('href');
222
+ this._router.navigateByUrl(href);
223
+ }
224
+ });
225
+ });
226
+ }
227
+ ngOnDestroy() {
228
+ this.destroy$.next();
229
+ this.destroy$.complete();
230
+ }
231
+ }
232
+ FsContentWidgetRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetRendererComponent, deps: [{ token: i1$1.Router }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
233
+ FsContentWidgetRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.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"], components: [{ type: i5.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }], directives: [{ type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetRendererComponent, decorators: [{
235
+ type: Component,
236
+ 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"] }]
237
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i0.ElementRef }]; }, propDecorators: { content: [{
238
+ type: Input
239
+ }] } });
240
+
241
+ class FsContentWidgetComponent {
242
+ constructor(config, _cdRef) {
243
+ this.config = config;
244
+ this._cdRef = _cdRef;
245
+ this.destroy$ = new Subject();
246
+ }
247
+ ngOnInit() {
248
+ this.config.fetchContentWidget(this.tag)
249
+ .pipe(takeUntil(this.destroy$))
250
+ .subscribe((content) => {
251
+ this.content = content;
252
+ this._cdRef.markForCheck();
253
+ });
254
+ }
255
+ ngOnDestroy() {
256
+ this.destroy$.next();
257
+ this.destroy$.complete();
258
+ }
259
+ }
260
+ FsContentWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetComponent, deps: [{ token: FS_CONTENT_WIDGET_CONFIG }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
261
+ FsContentWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.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"], components: [{ type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: ["content"] }], directives: [{ type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetComponent, decorators: [{
263
+ type: Component,
264
+ 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"] }]
265
+ }], ctorParameters: function () {
266
+ return [{ type: undefined, decorators: [{
267
+ type: Inject,
268
+ args: [FS_CONTENT_WIDGET_CONFIG]
269
+ }] }, { type: i0.ChangeDetectorRef }];
270
+ }, propDecorators: { contentWidgetContent: [{
271
+ type: ContentChild,
272
+ args: [FsContentWidgetContentDirective, { read: TemplateRef }]
273
+ }], tag: [{
274
+ type: Input
275
+ }] } });
276
+
277
+ class FsContentWidgetDialogComponent {
278
+ constructor(_data) {
279
+ this._data = _data;
280
+ this.title = _data.title;
281
+ this.tag = _data.tag;
282
+ }
283
+ }
284
+ FsContentWidgetDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
285
+ FsContentWidgetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.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: [""], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }, { type: i7.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"] }], directives: [{ type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetDialogComponent, decorators: [{
287
+ type: Component,
288
+ 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", styles: [""] }]
289
+ }], ctorParameters: function () {
290
+ return [{ type: undefined, decorators: [{
291
+ type: Inject,
292
+ args: [MAT_DIALOG_DATA]
293
+ }] }];
294
+ } });
295
+
296
+ class FsContentWidgetModule {
297
+ static forRoot() {
298
+ return {
299
+ ngModule: FsContentWidgetModule,
300
+ };
301
+ }
302
+ }
303
+ FsContentWidgetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
304
+ FsContentWidgetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetModule, declarations: [FsContentWidgetRendererComponent,
305
+ FsContentWidgetComponent,
306
+ FsContentWidgetDialogComponent,
307
+ FsContentWidgetContentDirective], imports: [CommonModule,
308
+ MatDialogModule,
309
+ MatButtonModule,
310
+ FsHtmlEditorModule,
311
+ FsDialogModule,
312
+ FsHtmlRendererModule], exports: [FsContentWidgetComponent,
313
+ FsContentWidgetContentDirective] });
314
+ FsContentWidgetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetModule, imports: [[
315
+ CommonModule,
316
+ MatDialogModule,
317
+ MatButtonModule,
318
+ FsHtmlEditorModule,
319
+ FsDialogModule,
320
+ FsHtmlRendererModule,
321
+ ]] });
322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidgetModule, decorators: [{
323
+ type: NgModule,
324
+ args: [{
325
+ imports: [
326
+ CommonModule,
327
+ MatDialogModule,
328
+ MatButtonModule,
329
+ FsHtmlEditorModule,
330
+ FsDialogModule,
331
+ FsHtmlRendererModule,
332
+ ],
333
+ exports: [
334
+ FsContentWidgetComponent,
335
+ FsContentWidgetContentDirective,
336
+ ],
337
+ declarations: [
338
+ FsContentWidgetRendererComponent,
339
+ FsContentWidgetComponent,
340
+ FsContentWidgetDialogComponent,
341
+ FsContentWidgetContentDirective,
342
+ ],
343
+ }]
344
+ }] });
345
+
346
+ class FsContentWidget {
347
+ constructor(_dialog) {
348
+ this._dialog = _dialog;
349
+ }
350
+ open(tag, title) {
351
+ this._dialog.open(FsContentWidgetDialogComponent, {
352
+ data: {
353
+ tag,
354
+ title,
355
+ }
356
+ });
357
+ }
358
+ }
359
+ FsContentWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidget, deps: [{ token: i10.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
360
+ FsContentWidget.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidget, providedIn: 'root' });
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentWidget, decorators: [{
362
+ type: Injectable,
363
+ args: [{
364
+ providedIn: 'root',
365
+ }]
366
+ }], ctorParameters: function () { return [{ type: i10.MatDialog }]; } });
367
+
368
+ /**
369
+ * Generated bundle index. Do not edit.
370
+ */
371
+
372
+ export { FS_CONTENT_WIDGET_CONFIG, FsContentWidget, FsContentWidgetComponent, FsContentWidgetContentDirective, FsContentWidgetModule, FsContentWidgetsComponent, FsContentWidgetsModule };
373
+ //# sourceMappingURL=firestitch-content-widget.mjs.map