@firestitch/content-widget 14.0.0 → 16.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 (41) hide show
  1. package/app/content-widget/components/content-widget/content-widget.component.d.ts +1 -1
  2. package/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.d.ts +1 -1
  3. package/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.d.ts +1 -1
  4. package/app/content-widget/directives/content-widget-content.directive.d.ts +1 -1
  5. package/app/content-widgets/components/content-widget/content-widget.component.d.ts +1 -1
  6. package/app/content-widgets/components/content-widgets/content-widgets.component.d.ts +1 -1
  7. package/esm2022/app/content-widget/components/content-widget/content-widget.component.mjs +47 -0
  8. package/esm2022/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.mjs +28 -0
  9. package/esm2022/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.mjs +51 -0
  10. package/{esm2020 → esm2022}/app/content-widget/directives/content-widget-content.directive.mjs +4 -4
  11. package/{esm2020 → esm2022}/app/content-widget/fs-content-widget.module.mjs +19 -19
  12. package/esm2022/app/content-widget/services/content-widget.service.mjs +28 -0
  13. package/esm2022/app/content-widgets/components/content-widget/content-widget.component.mjs +51 -0
  14. package/esm2022/app/content-widgets/components/content-widgets/content-widgets.component.mjs +74 -0
  15. package/{esm2020 → esm2022}/app/content-widgets/fs-content-widgets.module.mjs +30 -30
  16. package/fesm2022/firestitch-content-widget.mjs +388 -0
  17. package/fesm2022/firestitch-content-widget.mjs.map +1 -0
  18. package/package.json +5 -11
  19. package/esm2020/app/content-widget/components/content-widget/content-widget.component.mjs +0 -42
  20. package/esm2020/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.mjs +0 -25
  21. package/esm2020/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.mjs +0 -48
  22. package/esm2020/app/content-widget/services/content-widget.service.mjs +0 -27
  23. package/esm2020/app/content-widgets/components/content-widget/content-widget.component.mjs +0 -46
  24. package/esm2020/app/content-widgets/components/content-widgets/content-widgets.component.mjs +0 -68
  25. package/fesm2015/firestitch-content-widget.mjs +0 -369
  26. package/fesm2015/firestitch-content-widget.mjs.map +0 -1
  27. package/fesm2020/firestitch-content-widget.mjs +0 -365
  28. package/fesm2020/firestitch-content-widget.mjs.map +0 -1
  29. /package/{esm2020 → esm2022}/app/content-widget/components/content-widget/index.mjs +0 -0
  30. /package/{esm2020 → esm2022}/app/content-widget/components/content-widget-dialog/index.mjs +0 -0
  31. /package/{esm2020 → esm2022}/app/content-widget/components/content-widget-renderer/index.mjs +0 -0
  32. /package/{esm2020 → esm2022}/app/content-widget/components/index.mjs +0 -0
  33. /package/{esm2020 → esm2022}/app/content-widget/directives/index.mjs +0 -0
  34. /package/{esm2020 → esm2022}/app/content-widget/injectors/content-wiget.injector.mjs +0 -0
  35. /package/{esm2020 → esm2022}/app/content-widget/injectors/index.mjs +0 -0
  36. /package/{esm2020 → esm2022}/app/content-widget/interfaces/content-widget-config.mjs +0 -0
  37. /package/{esm2020 → esm2022}/app/content-widget/services/index.mjs +0 -0
  38. /package/{esm2020 → esm2022}/app/content-widgets/components/content-widget/index.mjs +0 -0
  39. /package/{esm2020 → esm2022}/app/content-widgets/components/content-widgets/index.mjs +0 -0
  40. /package/{esm2020 → esm2022}/firestitch-content-widget.mjs +0 -0
  41. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
@@ -0,0 +1,388 @@
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 i4 from '@angular/material/input';
14
+ import { MatInputModule } from '@angular/material/input';
15
+ import * as i5 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 * as i1 from '@firestitch/message';
30
+ import { tap, map, takeUntil } from 'rxjs/operators';
31
+ import { ItemType } from '@firestitch/filter';
32
+ import { Subject } from 'rxjs';
33
+ import * as i1$1 from '@angular/router';
34
+
35
+ let FsContentWidgetComponent$1 = class FsContentWidgetComponent {
36
+ _message;
37
+ _data;
38
+ contentWidget;
39
+ htmlEditorConfig;
40
+ _saveContentWidget;
41
+ constructor(_message, _data) {
42
+ this._message = _message;
43
+ this._data = _data;
44
+ }
45
+ ngOnInit() {
46
+ this._saveContentWidget = this._data.saveContentWidget;
47
+ this.htmlEditorConfig = {
48
+ ...this._data.htmlEditorConfig
49
+ };
50
+ this.contentWidget = { ...this._data.contentWidget };
51
+ }
52
+ save = () => {
53
+ return this._saveContentWidget(this.contentWidget)
54
+ .pipe(tap((contentWidget) => {
55
+ this.contentWidget = { ...this.contentWidget, ...contentWidget };
56
+ this._message.success('Saved Changes');
57
+ }));
58
+ };
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetComponent, deps: [{ token: i1.FsMessage }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FsContentWidgetComponent, 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: "directive", type: i4.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: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i7.MatTabContent, selector: "[matTabContent]" }, { kind: "component", type: i7.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i7.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { 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([fsFormGreaterEqual]):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]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }, { kind: "component", type: i9.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config", "disabled"] }, { kind: "component", type: i10.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout", "dock", "dockable", "fullscreenPercent"] }, { kind: "component", type: i11.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["ready", "blur"] }] });
61
+ };
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetComponent$1, decorators: [{
63
+ type: Component,
64
+ 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"] }]
65
+ }], ctorParameters: function () { return [{ type: i1.FsMessage }, { type: undefined, decorators: [{
66
+ type: Inject,
67
+ args: [MAT_DIALOG_DATA]
68
+ }] }]; } });
69
+
70
+ class FsContentWidgetsComponent {
71
+ _dialog;
72
+ fetchContentWidgets;
73
+ saveContentWidget;
74
+ htmlEditorConfig;
75
+ list;
76
+ config;
77
+ _destroy$ = new Subject();
78
+ constructor(_dialog) {
79
+ this._dialog = _dialog;
80
+ }
81
+ ngOnInit() {
82
+ this.config = {
83
+ paging: false,
84
+ filters: [
85
+ {
86
+ name: 'keyword',
87
+ type: ItemType.Keyword,
88
+ label: 'Search',
89
+ },
90
+ ],
91
+ fetch: (query) => {
92
+ return this.fetchContentWidgets(query)
93
+ .pipe(map((data) => ({ data: data.contentWidgets })));
94
+ },
95
+ };
96
+ }
97
+ ngOnDestroy() {
98
+ this._destroy$.next();
99
+ this._destroy$.complete();
100
+ }
101
+ open(contentWidget) {
102
+ this._dialog.open(FsContentWidgetComponent$1, {
103
+ width: '90%',
104
+ data: {
105
+ contentWidget,
106
+ htmlEditorConfig: this.htmlEditorConfig,
107
+ saveContentWidget: this.saveContentWidget,
108
+ },
109
+ })
110
+ .afterClosed()
111
+ .pipe(takeUntil(this._destroy$))
112
+ .subscribe(() => {
113
+ this.list.reload();
114
+ });
115
+ }
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsComponent, deps: [{ token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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", "sortableDirection", "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"] }] });
118
+ }
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsComponent, decorators: [{
120
+ type: Component,
121
+ 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"] }]
122
+ }], ctorParameters: function () { return [{ type: i3.MatDialog }]; }, propDecorators: { fetchContentWidgets: [{
123
+ type: Input
124
+ }], saveContentWidget: [{
125
+ type: Input
126
+ }], htmlEditorConfig: [{
127
+ type: Input
128
+ }], list: [{
129
+ type: ViewChild,
130
+ args: [FsListComponent, { static: true }]
131
+ }] } });
132
+
133
+ class FsContentWidgetsModule {
134
+ static forRoot() {
135
+ return {
136
+ ngModule: FsContentWidgetsModule,
137
+ };
138
+ }
139
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
140
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
141
+ FsContentWidgetComponent$1], imports: [CommonModule,
142
+ FormsModule,
143
+ MatDialogModule,
144
+ MatInputModule,
145
+ MatFormFieldModule,
146
+ MatButtonModule,
147
+ MatTabsModule,
148
+ FsListModule,
149
+ FsDateModule,
150
+ FsFormModule,
151
+ FsHtmlEditorModule,
152
+ FsDialogModule,
153
+ FsTextEditorModule], exports: [FsContentWidgetsComponent] });
154
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsModule, imports: [CommonModule,
155
+ FormsModule,
156
+ MatDialogModule,
157
+ MatInputModule,
158
+ MatFormFieldModule,
159
+ MatButtonModule,
160
+ MatTabsModule,
161
+ FsListModule,
162
+ FsDateModule,
163
+ FsFormModule,
164
+ FsHtmlEditorModule,
165
+ FsDialogModule,
166
+ FsTextEditorModule] });
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetsModule, decorators: [{
169
+ type: NgModule,
170
+ args: [{
171
+ imports: [
172
+ CommonModule,
173
+ FormsModule,
174
+ MatDialogModule,
175
+ MatInputModule,
176
+ MatFormFieldModule,
177
+ MatButtonModule,
178
+ MatTabsModule,
179
+ FsListModule,
180
+ FsDateModule,
181
+ FsFormModule,
182
+ FsHtmlEditorModule,
183
+ FsDialogModule,
184
+ FsTextEditorModule,
185
+ ],
186
+ exports: [
187
+ FsContentWidgetsComponent,
188
+ ],
189
+ declarations: [
190
+ FsContentWidgetsComponent,
191
+ FsContentWidgetComponent$1,
192
+ ],
193
+ }]
194
+ }] });
195
+
196
+ class FsContentWidgetContentDirective {
197
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
198
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FsContentWidgetContentDirective, selector: "[fsContentWidgetContent]", ngImport: i0 });
199
+ }
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetContentDirective, decorators: [{
201
+ type: Directive,
202
+ args: [{
203
+ selector: '[fsContentWidgetContent]',
204
+ }]
205
+ }] });
206
+
207
+ const FS_CONTENT_WIDGET_CONFIG = new InjectionToken('fs-content-widget-config');
208
+
209
+ class FsContentWidgetRendererComponent {
210
+ _router;
211
+ _el;
212
+ content;
213
+ destroy$ = new Subject();
214
+ constructor(_router, _el) {
215
+ this._router = _router;
216
+ this._el = _el;
217
+ }
218
+ ngAfterViewChecked() {
219
+ this.registerHrefs();
220
+ }
221
+ get el() {
222
+ return this._el.nativeElement;
223
+ }
224
+ registerHrefs() {
225
+ Array.from(this.el.querySelectorAll('a[href]'))
226
+ .filter((el) => {
227
+ return el.getAttribute('href').match(/^\//);
228
+ })
229
+ .forEach((el) => {
230
+ el.addEventListener('click', (event) => {
231
+ if (!event.shiftKey && !event.ctrlKey) {
232
+ event.preventDefault();
233
+ const href = el.getAttribute('href');
234
+ this._router.navigateByUrl(href);
235
+ }
236
+ });
237
+ });
238
+ }
239
+ ngOnDestroy() {
240
+ this.destroy$.next();
241
+ this.destroy$.complete();
242
+ }
243
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetRendererComponent, deps: [{ token: i1$1.Router }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
244
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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"] }] });
245
+ }
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetRendererComponent, decorators: [{
247
+ type: Component,
248
+ 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"] }]
249
+ }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i0.ElementRef }]; }, propDecorators: { content: [{
250
+ type: Input
251
+ }] } });
252
+
253
+ class FsContentWidgetComponent {
254
+ config;
255
+ _cdRef;
256
+ contentWidgetContent;
257
+ content;
258
+ destroy$ = new Subject();
259
+ tag;
260
+ constructor(config, _cdRef) {
261
+ this.config = config;
262
+ this._cdRef = _cdRef;
263
+ }
264
+ ngOnInit() {
265
+ this.config.fetchContentWidget(this.tag)
266
+ .pipe(takeUntil(this.destroy$))
267
+ .subscribe((content) => {
268
+ this.content = content;
269
+ this._cdRef.markForCheck();
270
+ });
271
+ }
272
+ ngOnDestroy() {
273
+ this.destroy$.next();
274
+ this.destroy$.complete();
275
+ }
276
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetComponent, deps: [{ token: FS_CONTENT_WIDGET_CONFIG }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
277
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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"] }] });
278
+ }
279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetComponent, decorators: [{
280
+ type: Component,
281
+ 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"] }]
282
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
283
+ type: Inject,
284
+ args: [FS_CONTENT_WIDGET_CONFIG]
285
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { contentWidgetContent: [{
286
+ type: ContentChild,
287
+ args: [FsContentWidgetContentDirective, { read: TemplateRef }]
288
+ }], tag: [{
289
+ type: Input
290
+ }] } });
291
+
292
+ class FsContentWidgetDialogComponent {
293
+ _data;
294
+ title;
295
+ tag;
296
+ constructor(_data) {
297
+ this._data = _data;
298
+ this.title = _data.title;
299
+ this.tag = _data.tag;
300
+ }
301
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
302
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i10.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout", "dock", "dockable", "fullscreenPercent"] }, { kind: "component", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
303
+ }
304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetDialogComponent, decorators: [{
305
+ type: Component,
306
+ 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" }]
307
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
308
+ type: Inject,
309
+ args: [MAT_DIALOG_DATA]
310
+ }] }]; } });
311
+
312
+ class FsContentWidgetModule {
313
+ static forRoot() {
314
+ return {
315
+ ngModule: FsContentWidgetModule,
316
+ };
317
+ }
318
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
319
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetModule, declarations: [FsContentWidgetRendererComponent,
320
+ FsContentWidgetComponent,
321
+ FsContentWidgetDialogComponent,
322
+ FsContentWidgetContentDirective], imports: [CommonModule,
323
+ MatDialogModule,
324
+ MatButtonModule,
325
+ FsHtmlEditorModule,
326
+ FsDialogModule,
327
+ FsHtmlRendererModule], exports: [FsContentWidgetComponent,
328
+ FsContentWidgetContentDirective] });
329
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetModule, imports: [CommonModule,
330
+ MatDialogModule,
331
+ MatButtonModule,
332
+ FsHtmlEditorModule,
333
+ FsDialogModule,
334
+ FsHtmlRendererModule] });
335
+ }
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidgetModule, decorators: [{
337
+ type: NgModule,
338
+ args: [{
339
+ imports: [
340
+ CommonModule,
341
+ MatDialogModule,
342
+ MatButtonModule,
343
+ FsHtmlEditorModule,
344
+ FsDialogModule,
345
+ FsHtmlRendererModule,
346
+ ],
347
+ exports: [
348
+ FsContentWidgetComponent,
349
+ FsContentWidgetContentDirective,
350
+ ],
351
+ declarations: [
352
+ FsContentWidgetRendererComponent,
353
+ FsContentWidgetComponent,
354
+ FsContentWidgetDialogComponent,
355
+ FsContentWidgetContentDirective,
356
+ ],
357
+ }]
358
+ }] });
359
+
360
+ class FsContentWidget {
361
+ _dialog;
362
+ constructor(_dialog) {
363
+ this._dialog = _dialog;
364
+ }
365
+ open(tag, title) {
366
+ this._dialog.open(FsContentWidgetDialogComponent, {
367
+ data: {
368
+ tag,
369
+ title,
370
+ }
371
+ });
372
+ }
373
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidget, deps: [{ token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
374
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidget, providedIn: 'root' });
375
+ }
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsContentWidget, decorators: [{
377
+ type: Injectable,
378
+ args: [{
379
+ providedIn: 'root',
380
+ }]
381
+ }], ctorParameters: function () { return [{ type: i3.MatDialog }]; } });
382
+
383
+ /**
384
+ * Generated bundle index. Do not edit.
385
+ */
386
+
387
+ export { FS_CONTENT_WIDGET_CONFIG, FsContentWidget, FsContentWidgetComponent, FsContentWidgetContentDirective, FsContentWidgetModule, FsContentWidgetsComponent, FsContentWidgetsModule };
388
+ //# sourceMappingURL=firestitch-content-widget.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firestitch-content-widget.mjs","sources":["../../src/app/content-widgets/components/content-widget/content-widget.component.ts","../../src/app/content-widgets/components/content-widget/content-widget.component.html","../../src/app/content-widgets/components/content-widgets/content-widgets.component.ts","../../src/app/content-widgets/components/content-widgets/content-widgets.component.html","../../src/app/content-widgets/fs-content-widgets.module.ts","../../src/app/content-widget/directives/content-widget-content.directive.ts","../../src/app/content-widget/injectors/content-wiget.injector.ts","../../src/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.ts","../../src/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.html","../../src/app/content-widget/components/content-widget/content-widget.component.ts","../../src/app/content-widget/components/content-widget/content-widget.component.html","../../src/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.ts","../../src/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.html","../../src/app/content-widget/fs-content-widget.module.ts","../../src/app/content-widget/services/content-widget.service.ts","../../src/firestitch-content-widget.ts"],"sourcesContent":["import { Component, Inject, OnInit } from '@angular/core';\n\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { FsHtmlEditorConfig } from '@firestitch/html-editor';\n\nimport { FsMessage } from '@firestitch/message';\nimport { Observable } from 'rxjs';\n\nimport { tap } from 'rxjs/operators';\n\n\n@Component({\n templateUrl: './content-widget.component.html',\n styleUrls: ['./content-widget.component.scss'],\n})\nexport class FsContentWidgetComponent implements OnInit {\n\n public contentWidget;\n public htmlEditorConfig: FsHtmlEditorConfig;\n \n private _saveContentWidget: (contentWidget: any) => Observable<any>;\n\n public constructor(\n private _message: FsMessage,\n @Inject(MAT_DIALOG_DATA) private _data: any,\n ) {\n }\n\n public ngOnInit(): void {\n this._saveContentWidget = this._data.saveContentWidget;\n this.htmlEditorConfig = {\n ...this._data.htmlEditorConfig\n };\n \n this.contentWidget = { ...this._data.contentWidget };\n }\n\n public save = () => {\n return this._saveContentWidget(this.contentWidget)\n .pipe(\n tap((contentWidget) => {\n this.contentWidget = { ...this.contentWidget, ...contentWidget };\n this._message.success('Saved Changes');\n }),\n );\n }\n\n}\n","\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","import { Component, ViewChild, OnInit, OnDestroy, Input } from '@angular/core';\n\nimport { MatDialog } from '@angular/material/dialog';\n\nimport { FsListComponent, FsListConfig } from '@firestitch/list';\nimport { ItemType } from '@firestitch/filter';\n\nimport { Observable, Subject } from 'rxjs';\nimport { map, takeUntil } from 'rxjs/operators';\n\nimport { FsContentWidgetComponent } from '../content-widget/content-widget.component';\nimport { FsHtmlEditorConfig } from '@firestitch/html-editor';\n\n\n@Component({\n selector: 'fs-content-widgets',\n templateUrl: './content-widgets.component.html',\n styleUrls: ['./content-widgets.component.scss'],\n})\nexport class FsContentWidgetsComponent implements OnInit, OnDestroy {\n\n @Input() public fetchContentWidgets: (query?: any) => Observable<{ contentWidgets: any[], paging?: any }>;\n @Input() public saveContentWidget: (contentWidget: any) => Observable<any>;\n @Input() public htmlEditorConfig: FsHtmlEditorConfig;\n\n @ViewChild(FsListComponent, { static: true })\n public list: FsListComponent;\n\n public config: FsListConfig;\n\n private _destroy$ = new Subject();\n\n constructor(\n private _dialog: MatDialog,\n ) {}\n\n public ngOnInit(): void {\n this.config = {\n paging: false,\n filters: [\n {\n name: 'keyword',\n type: ItemType.Keyword,\n label: 'Search',\n },\n ],\n fetch: (query) => {\n return this.fetchContentWidgets(query)\n .pipe(\n map((data: any) => ({ data: data.contentWidgets })),\n );\n },\n };\n }\n\n public ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n }\n\n public open(contentWidget): void {\n this._dialog.open(FsContentWidgetComponent, {\n width: '90%',\n data: { \n contentWidget,\n htmlEditorConfig: this.htmlEditorConfig,\n saveContentWidget: this.saveContentWidget,\n },\n })\n .afterClosed()\n .pipe(\n takeUntil(this._destroy$),\n )\n .subscribe(() => {\n this.list.reload();\n });\n }\n\n}\n","<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","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { FormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nimport { FsListModule } from '@firestitch/list';\nimport { FsDateModule } from '@firestitch/date';\nimport { FsDialogModule } from '@firestitch/dialog';\nimport { FsFormModule } from '@firestitch/form';\nimport { FsHtmlEditorModule } from '@firestitch/html-editor';\nimport { FsTextEditorModule } from '@firestitch/text-editor';\n\nimport { FsContentWidgetComponent } from './components/content-widget';\nimport { FsContentWidgetsComponent } from './components/content-widgets';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n\n MatDialogModule,\n MatInputModule,\n MatFormFieldModule,\n MatButtonModule,\n MatTabsModule,\n\n FsListModule,\n FsDateModule,\n FsFormModule,\n FsHtmlEditorModule,\n FsDialogModule,\n FsTextEditorModule,\n ],\n exports: [\n FsContentWidgetsComponent,\n ],\n declarations: [\n FsContentWidgetsComponent,\n FsContentWidgetComponent,\n ],\n})\nexport class FsContentWidgetsModule {\n static forRoot(): ModuleWithProviders<FsContentWidgetsModule> {\n return {\n ngModule: FsContentWidgetsModule,\n };\n }\n}\n","import { Directive } from '@angular/core';\n\n\n@Directive({\n selector: '[fsContentWidgetContent]',\n})\nexport class FsContentWidgetContentDirective {\n\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const FS_CONTENT_WIDGET_CONFIG = new InjectionToken<any>('fs-content-widget-config');\n","import { AfterViewChecked, Component, ElementRef, Input, OnDestroy } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { Subject } from 'rxjs';\n\n\n@Component({\n selector: 'fs-content-widget-renderer',\n templateUrl: './content-widget-renderer.component.html',\n styleUrls: ['./content-widget-renderer.component.scss'],\n})\nexport class FsContentWidgetRendererComponent implements OnDestroy, AfterViewChecked {\n\n @Input() public content;\n\n private destroy$ = new Subject();\n\n constructor(\n private _router: Router,\n private _el: ElementRef,\n ) { }\n \n public ngAfterViewChecked(): void {\n this.registerHrefs();\n }\n\n public get el(): any {\n return this._el.nativeElement;\n }\n\n public registerHrefs(): void {\n Array.from(this.el.querySelectorAll('a[href]'))\n .filter((el: Element) => {\n return el.getAttribute('href').match(/^\\//);\n })\n .forEach((el: Element) => {\n el.addEventListener('click',(event: MouseEvent) => {\n if(!event.shiftKey && !event.ctrlKey) {\n event.preventDefault();\n const href = el.getAttribute('href');\n this._router.navigateByUrl(href);\n }\n });\n });\n }\n\n public ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n}\n","<fs-html-renderer *ngIf=\"content\" [html]=\"content\"></fs-html-renderer>","import { ChangeDetectorRef, Component, ContentChild, Inject, Input, OnDestroy, OnInit, TemplateRef } from '@angular/core';\n\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { FsContentWidgetContentDirective } from '../../directives';\nimport { FS_CONTENT_WIDGET_CONFIG } from '../../injectors';\nimport { FsContentWidgetConfig } from '../../interfaces/content-widget-config';\n\n\n@Component({\n selector: 'fs-content-widget',\n templateUrl: './content-widget.component.html',\n styleUrls: ['./content-widget.component.scss'],\n})\nexport class FsContentWidgetComponent implements OnDestroy, OnInit {\n\n @ContentChild(FsContentWidgetContentDirective, { read: TemplateRef })\n public contentWidgetContent: TemplateRef<any>;\n\n public content;\n\n private destroy$ = new Subject();\n\n @Input() public tag: string;\n\n constructor(\n @Inject(FS_CONTENT_WIDGET_CONFIG) public config: FsContentWidgetConfig,\n private _cdRef: ChangeDetectorRef,\n ) { }\n \n public ngOnInit(): void {\n this.config.fetchContentWidget(this.tag)\n .pipe(\n takeUntil(this.destroy$),\n )\n .subscribe((content) => {\n this.content = content;\n this._cdRef.markForCheck();\n });\n }\n\n public ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n}\n","<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>","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\n\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\n\n@Component({\n templateUrl: './content-widget-dialog.component.html',\n styleUrls: ['./content-widget-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FsContentWidgetDialogComponent {\n\n public title;\n public tag;\n\n constructor(@Inject(MAT_DIALOG_DATA) private _data) {\n this.title = _data.title;\n this.tag = _data.tag;\n }\n}\n","<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","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { FsHtmlEditorModule, FsHtmlRendererModule } from '@firestitch/html-editor';\n\nimport { FsContentWidgetComponent } from './components/content-widget';\nimport { FsContentWidgetRendererComponent } from './components/content-widget-renderer';\nimport { FsContentWidgetDialogComponent } from './components';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { FsDialogModule } from '@firestitch/dialog';\nimport { FsContentWidgetContentDirective } from './directives';\n\n\n@NgModule({\n imports: [\n CommonModule,\n\n MatDialogModule,\n MatButtonModule,\n\n FsHtmlEditorModule,\n FsDialogModule,\n FsHtmlRendererModule,\n ],\n exports: [\n FsContentWidgetComponent,\n FsContentWidgetContentDirective,\n ],\n declarations: [\n FsContentWidgetRendererComponent,\n FsContentWidgetComponent,\n FsContentWidgetDialogComponent,\n FsContentWidgetContentDirective,\n ],\n})\nexport class FsContentWidgetModule {\n static forRoot(): ModuleWithProviders<FsContentWidgetModule> {\n return {\n ngModule: FsContentWidgetModule,\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\n\nimport { FsContentWidgetDialogComponent } from '../components';\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FsContentWidget {\n\n public constructor(\n private _dialog: MatDialog,\n ) {}\n\n public open(tag: string, title?: string) {\n this._dialog.open(FsContentWidgetDialogComponent, {\n data: { \n tag, \n title,\n }\n });\n }\n\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FsContentWidgetComponent","i1","i2","i3","i2.FsContentWidgetRendererComponent","i4","i5.FsContentWidgetComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAea,wBAAwB,CAAA;AAQzB,IAAA,QAAA,CAAA;AACyB,IAAA,KAAA,CAAA;AAP5B,IAAA,aAAa,CAAC;AACd,IAAA,gBAAgB,CAAqB;AAEpC,IAAA,kBAAkB,CAA0C;IAEpE,WACU,CAAA,QAAmB,EACM,KAAU,EAAA;QADnC,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QACM,IAAK,CAAA,KAAA,GAAL,KAAK,CAAK;KAE5C;IAEM,QAAQ,GAAA;QACb,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACvD,IAAI,CAAC,gBAAgB,GAAG;AACtB,YAAA,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB;SAC/B,CAAC;QAEF,IAAI,CAAC,aAAa,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;KACtD;IAEM,IAAI,GAAG,MAAK;AACjB,QAAA,O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AC,8BAA8B,EAAE;AAChD,YAAA,IAAI,EAAE;gBACJ,GAAG;gBACH,KAAK;AACN,aAAA;AACF,SAAA,CAAC,CAAC;KACJ;wGAbU,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAL,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;4FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/content-widget",
3
- "version": "14.0.0",
3
+ "version": "16.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-content-widget"
@@ -17,11 +17,7 @@
17
17
  "tslib": "^2.0.0"
18
18
  },
19
19
  "sideEffects": false,
20
- "module": "fesm2015/firestitch-content-widget.mjs",
21
- "es2020": "fesm2020/firestitch-content-widget.mjs",
22
- "esm2020": "esm2020/firestitch-content-widget.mjs",
23
- "fesm2020": "fesm2020/firestitch-content-widget.mjs",
24
- "fesm2015": "fesm2015/firestitch-content-widget.mjs",
20
+ "module": "fesm2022/firestitch-content-widget.mjs",
25
21
  "typings": "index.d.ts",
26
22
  "exports": {
27
23
  "./package.json": {
@@ -29,11 +25,9 @@
29
25
  },
30
26
  ".": {
31
27
  "types": "./index.d.ts",
32
- "esm2020": "./esm2020/firestitch-content-widget.mjs",
33
- "es2020": "./fesm2020/firestitch-content-widget.mjs",
34
- "es2015": "./fesm2015/firestitch-content-widget.mjs",
35
- "node": "./fesm2015/firestitch-content-widget.mjs",
36
- "default": "./fesm2020/firestitch-content-widget.mjs"
28
+ "esm2022": "./esm2022/firestitch-content-widget.mjs",
29
+ "esm": "./esm2022/firestitch-content-widget.mjs",
30
+ "default": "./fesm2022/firestitch-content-widget.mjs"
37
31
  }
38
32
  }
39
33
  }
@@ -1,42 +0,0 @@
1
- import { ChangeDetectorRef, Component, ContentChild, Inject, Input, TemplateRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { takeUntil } from 'rxjs/operators';
4
- import { FsContentWidgetContentDirective } from '../../directives';
5
- import { FS_CONTENT_WIDGET_CONFIG } from '../../injectors';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@angular/common";
8
- import * as i2 from "../content-widget-renderer/content-widget-renderer.component";
9
- export class FsContentWidgetComponent {
10
- constructor(config, _cdRef) {
11
- this.config = config;
12
- this._cdRef = _cdRef;
13
- this.destroy$ = new Subject();
14
- }
15
- ngOnInit() {
16
- this.config.fetchContentWidget(this.tag)
17
- .pipe(takeUntil(this.destroy$))
18
- .subscribe((content) => {
19
- this.content = content;
20
- this._cdRef.markForCheck();
21
- });
22
- }
23
- ngOnDestroy() {
24
- this.destroy$.next();
25
- this.destroy$.complete();
26
- }
27
- }
28
- 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 });
29
- 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: ["content"] }] });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetComponent, decorators: [{
31
- type: Component,
32
- 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"] }]
33
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
34
- type: Inject,
35
- args: [FS_CONTENT_WIDGET_CONFIG]
36
- }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { contentWidgetContent: [{
37
- type: ContentChild,
38
- args: [FsContentWidgetContentDirective, { read: TemplateRef }]
39
- }], tag: [{
40
- type: Input
41
- }] } });
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vd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vic2NyaWJlKChjb250ZW50KSA9PiB7XG4gICAgICB0aGlzLmNvbnRlbnQgPSBjb250ZW50O1xuICAgICAgdGhpcy5fY2RSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5kZXN0cm95JC5uZXh0KCk7XG4gICAgdGhpcy5kZXN0cm95JC5jb21wbGV0ZSgpO1xuICB9XG5cbn1cbiIsIjxuZy1jb250YWluZXIgKm5nSWY9XCJjb250ZW50XCI+XG4gIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb250ZW50V2lkZ2V0Q29udGVudDsgZWxzZSByZW5kZXJlclwiPlxuICAgIDxuZy1jb250YWluZXIgXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJjb250ZW50V2lkZ2V0Q29udGVudFwiIFxuICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgY29udGVudDogcmVuZGVyZXIgfVwiPlxuICAgIDwvbmctY29udGFpbmVyPlxuICA8L25nLWNvbnRhaW5lcj5cbiAgPG5nLXRlbXBsYXRlICNyZW5kZXJlcj5cbiAgICA8ZnMtY29udGVudC13aWRnZXQtcmVuZGVyZXIgICAgIFxuICAgICAgW2NvbnRlbnRdPVwiY29udGVudFwiPlxuICAgIDwvZnMtY29udGVudC13aWRnZXQtcmVuZGVyZXI+XG4gIDwvbmctdGVtcGxhdGU+XG48L25nLWNvbnRhaW5lcj4iXX0=
@@ -1,25 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
2
- import { MAT_DIALOG_DATA } from '@angular/material/dialog';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "@angular/material/dialog";
6
- import * as i3 from "@angular/material/button";
7
- import * as i4 from "@firestitch/dialog";
8
- import * as i5 from "../content-widget/content-widget.component";
9
- export class FsContentWidgetDialogComponent {
10
- constructor(_data) {
11
- this._data = _data;
12
- this.title = _data.title;
13
- this.tag = _data.tag;
14
- }
15
- }
16
- 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 });
17
- 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.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: i4.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { kind: "component", type: i5.FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FsContentWidgetDialogComponent, decorators: [{
19
- type: Component,
20
- 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" }]
21
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
22
- type: Inject,
23
- args: [MAT_DIALOG_DATA]
24
- }] }]; } });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXQvY29tcG9uZW50cy9jb250ZW50LXdpZGdldC1kaWFsb2cvY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXQvY29tcG9uZW50cy9jb250ZW50LXdpZGdldC1kaWFsb2cvY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNFL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