@firestitch/content-widget 12.2.1 → 12.2.2
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.
- package/app/content-widget/components/content-widget/content-widget.component.d.ts +16 -16
- package/app/content-widget/components/content-widget/index.d.ts +1 -1
- package/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.d.ts +9 -9
- package/app/content-widget/components/content-widget-dialog/index.d.ts +1 -1
- package/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.d.ts +16 -16
- package/app/content-widget/components/content-widget-renderer/index.d.ts +1 -1
- package/app/content-widget/components/index.d.ts +1 -1
- package/app/content-widget/directives/content-widget-content.directive.d.ts +5 -5
- package/app/content-widget/directives/index.d.ts +1 -1
- package/app/content-widget/fs-content-widget.module.d.ts +17 -17
- package/app/content-widget/injectors/content-wiget.injector.d.ts +2 -2
- package/app/content-widget/injectors/index.d.ts +1 -1
- package/app/content-widget/interfaces/content-widget-config.d.ts +4 -4
- package/app/content-widget/services/content-widget.service.d.ts +9 -9
- package/app/content-widget/services/index.d.ts +1 -1
- package/app/content-widgets/components/content-widget/content-widget.component.d.ts +17 -17
- package/app/content-widgets/components/content-widget/index.d.ts +1 -1
- package/app/content-widgets/components/content-widgets/content-widgets.component.d.ts +24 -24
- package/app/content-widgets/components/content-widgets/index.d.ts +1 -1
- package/app/content-widgets/fs-content-widgets.module.d.ts +23 -23
- package/bundles/firestitch-content-widget.umd.js +358 -358
- package/bundles/firestitch-content-widget.umd.js.map +1 -1
- package/esm2015/app/content-widget/components/content-widget/content-widget.component.js +45 -45
- package/esm2015/app/content-widget/components/content-widget/index.js +1 -1
- package/esm2015/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.js +28 -28
- package/esm2015/app/content-widget/components/content-widget-dialog/index.js +1 -1
- package/esm2015/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.js +51 -51
- package/esm2015/app/content-widget/components/content-widget-renderer/index.js +1 -1
- package/esm2015/app/content-widget/components/index.js +1 -1
- package/esm2015/app/content-widget/directives/content-widget-content.directive.js +12 -12
- package/esm2015/app/content-widget/directives/index.js +1 -1
- package/esm2015/app/content-widget/fs-content-widget.module.js +60 -60
- package/esm2015/app/content-widget/injectors/content-wiget.injector.js +2 -2
- package/esm2015/app/content-widget/injectors/index.js +1 -1
- package/esm2015/app/content-widget/interfaces/content-widget-config.js +1 -1
- package/esm2015/app/content-widget/services/content-widget.service.js +26 -26
- package/esm2015/app/content-widget/services/index.js +1 -1
- package/esm2015/app/content-widgets/components/content-widget/content-widget.component.js +46 -46
- package/esm2015/app/content-widgets/components/content-widget/index.js +1 -1
- package/esm2015/app/content-widgets/components/content-widgets/content-widgets.component.js +72 -72
- package/esm2015/app/content-widgets/components/content-widgets/index.js +1 -1
- package/esm2015/app/content-widgets/fs-content-widgets.module.js +81 -81
- package/esm2015/firestitch-content-widget.js +4 -4
- package/esm2015/public_api.js +7 -7
- package/fesm2015/firestitch-content-widget.js +328 -328
- package/fesm2015/firestitch-content-widget.js.map +1 -1
- package/firestitch-content-widget.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +8 -8
|
@@ -39,384 +39,384 @@
|
|
|
39
39
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
40
40
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
41
41
|
|
|
42
|
-
var FsContentWidgetComponent$1 = /** @class */ (function () {
|
|
43
|
-
function FsContentWidgetComponent(_message, _data) {
|
|
44
|
-
var _this = this;
|
|
45
|
-
this._message = _message;
|
|
46
|
-
this._data = _data;
|
|
47
|
-
this.save = function () {
|
|
48
|
-
return _this._saveContentWidget(_this.contentWidget)
|
|
49
|
-
.pipe(operators.tap(function (contentWidget) {
|
|
50
|
-
_this.contentWidget = Object.assign(Object.assign({}, _this.contentWidget), contentWidget);
|
|
51
|
-
_this._message.success('Saved Changes');
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
FsContentWidgetComponent.prototype.ngOnInit = function () {
|
|
56
|
-
this._saveContentWidget = this._data.saveContentWidget;
|
|
57
|
-
this.htmlEditorConfig = Object.assign({}, this._data.htmlEditorConfig);
|
|
58
|
-
this.contentWidget = Object.assign({}, this._data.contentWidget);
|
|
59
|
-
};
|
|
60
|
-
return FsContentWidgetComponent;
|
|
61
|
-
}());
|
|
62
|
-
FsContentWidgetComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent$1, deps: [{ token: i1__namespace.FsMessage }, { token: i10.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
63
|
-
FsContentWidgetComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetComponent$1, selector: "ng-component", ngImport: i0__namespace, 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__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i3__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i4__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i5__namespace.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i7__namespace.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__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i10__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i11__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i8__namespace.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__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i10__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
64
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent$1, decorators: [{
|
|
65
|
-
type: i0.Component,
|
|
66
|
-
args: [{
|
|
67
|
-
templateUrl: './content-widget.component.html',
|
|
68
|
-
styleUrls: ['./content-widget.component.scss'],
|
|
69
|
-
}]
|
|
70
|
-
}], ctorParameters: function () {
|
|
71
|
-
return [{ type: i1__namespace.FsMessage }, { type: undefined, decorators: [{
|
|
72
|
-
type: i0.Inject,
|
|
73
|
-
args: [i10.MAT_DIALOG_DATA]
|
|
74
|
-
}] }];
|
|
42
|
+
var FsContentWidgetComponent$1 = /** @class */ (function () {
|
|
43
|
+
function FsContentWidgetComponent(_message, _data) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
this._message = _message;
|
|
46
|
+
this._data = _data;
|
|
47
|
+
this.save = function () {
|
|
48
|
+
return _this._saveContentWidget(_this.contentWidget)
|
|
49
|
+
.pipe(operators.tap(function (contentWidget) {
|
|
50
|
+
_this.contentWidget = Object.assign(Object.assign({}, _this.contentWidget), contentWidget);
|
|
51
|
+
_this._message.success('Saved Changes');
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
FsContentWidgetComponent.prototype.ngOnInit = function () {
|
|
56
|
+
this._saveContentWidget = this._data.saveContentWidget;
|
|
57
|
+
this.htmlEditorConfig = Object.assign({}, this._data.htmlEditorConfig);
|
|
58
|
+
this.contentWidget = Object.assign({}, this._data.contentWidget);
|
|
59
|
+
};
|
|
60
|
+
return FsContentWidgetComponent;
|
|
61
|
+
}());
|
|
62
|
+
FsContentWidgetComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent$1, deps: [{ token: i1__namespace.FsMessage }, { token: i10.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
63
|
+
FsContentWidgetComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetComponent$1, selector: "ng-component", ngImport: i0__namespace, 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__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i3__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i4__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i5__namespace.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i7__namespace.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__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i10__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i3__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i11__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i8__namespace.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__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i10__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
64
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent$1, decorators: [{
|
|
65
|
+
type: i0.Component,
|
|
66
|
+
args: [{
|
|
67
|
+
templateUrl: './content-widget.component.html',
|
|
68
|
+
styleUrls: ['./content-widget.component.scss'],
|
|
69
|
+
}]
|
|
70
|
+
}], ctorParameters: function () {
|
|
71
|
+
return [{ type: i1__namespace.FsMessage }, { type: undefined, decorators: [{
|
|
72
|
+
type: i0.Inject,
|
|
73
|
+
args: [i10.MAT_DIALOG_DATA]
|
|
74
|
+
}] }];
|
|
75
75
|
} });
|
|
76
76
|
|
|
77
|
-
var FsContentWidgetsComponent = /** @class */ (function () {
|
|
78
|
-
function FsContentWidgetsComponent(_dialog) {
|
|
79
|
-
this._dialog = _dialog;
|
|
80
|
-
this._destroy$ = new rxjs.Subject();
|
|
81
|
-
}
|
|
82
|
-
FsContentWidgetsComponent.prototype.ngOnInit = function () {
|
|
83
|
-
var _this = this;
|
|
84
|
-
this.config = {
|
|
85
|
-
paging: false,
|
|
86
|
-
filters: [
|
|
87
|
-
{
|
|
88
|
-
name: 'keyword',
|
|
89
|
-
type: filter.ItemType.Keyword,
|
|
90
|
-
label: 'Search',
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
fetch: function (query) {
|
|
94
|
-
return _this.fetchContentWidgets(query
|
|
95
|
-
.pipe(operators.map(function (data) { return ({ data: data.contentWidgets }); }));
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
FsContentWidgetsComponent.prototype.ngOnDestroy = function () {
|
|
100
|
-
this._destroy$.next();
|
|
101
|
-
this._destroy$.complete();
|
|
102
|
-
};
|
|
103
|
-
FsContentWidgetsComponent.prototype.open = function (contentWidget) {
|
|
104
|
-
var _this = this;
|
|
105
|
-
|
|
106
|
-
width: '90%',
|
|
107
|
-
data: {
|
|
108
|
-
contentWidget: contentWidget,
|
|
109
|
-
htmlEditorConfig: this.htmlEditorConfig,
|
|
110
|
-
saveContentWidget: this.saveContentWidget,
|
|
111
|
-
},
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
.pipe(operators.takeUntil(this._destroy$))
|
|
115
|
-
.subscribe(function () {
|
|
116
|
-
_this.list.reload();
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
return FsContentWidgetsComponent;
|
|
120
|
-
}());
|
|
121
|
-
FsContentWidgetsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsComponent, deps: [{ token: i10__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
122
|
-
FsContentWidgetsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetsComponent, selector: "fs-content-widgets", inputs: { fetchContentWidgets: "fetchContentWidgets", saveContentWidget: "saveContentWidget", htmlEditorConfig: "htmlEditorConfig" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, 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__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i3__namespace$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
|
|
123
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsComponent, decorators: [{
|
|
124
|
-
type: i0.Component,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: 'fs-content-widgets',
|
|
127
|
-
templateUrl: './content-widgets.component.html',
|
|
128
|
-
styleUrls: ['./content-widgets.component.scss'],
|
|
129
|
-
}]
|
|
130
|
-
}], ctorParameters: function () { return [{ type: i10__namespace.MatDialog }]; }, propDecorators: { fetchContentWidgets: [{
|
|
131
|
-
type: i0.Input
|
|
132
|
-
}], saveContentWidget: [{
|
|
133
|
-
type: i0.Input
|
|
134
|
-
}], htmlEditorConfig: [{
|
|
135
|
-
type: i0.Input
|
|
136
|
-
}], list: [{
|
|
137
|
-
type: i0.ViewChild,
|
|
138
|
-
args: [i2$1.FsListComponent, { static: true }]
|
|
77
|
+
var FsContentWidgetsComponent = /** @class */ (function () {
|
|
78
|
+
function FsContentWidgetsComponent(_dialog) {
|
|
79
|
+
this._dialog = _dialog;
|
|
80
|
+
this._destroy$ = new rxjs.Subject();
|
|
81
|
+
}
|
|
82
|
+
FsContentWidgetsComponent.prototype.ngOnInit = function () {
|
|
83
|
+
var _this = this;
|
|
84
|
+
this.config = {
|
|
85
|
+
paging: false,
|
|
86
|
+
filters: [
|
|
87
|
+
{
|
|
88
|
+
name: 'keyword',
|
|
89
|
+
type: filter.ItemType.Keyword,
|
|
90
|
+
label: 'Search',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
fetch: function (query) {
|
|
94
|
+
return _this.fetchContentWidgets(query)
|
|
95
|
+
.pipe(operators.map(function (data) { return ({ data: data.contentWidgets }); }));
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
FsContentWidgetsComponent.prototype.ngOnDestroy = function () {
|
|
100
|
+
this._destroy$.next();
|
|
101
|
+
this._destroy$.complete();
|
|
102
|
+
};
|
|
103
|
+
FsContentWidgetsComponent.prototype.open = function (contentWidget) {
|
|
104
|
+
var _this = this;
|
|
105
|
+
this._dialog.open(FsContentWidgetComponent$1, {
|
|
106
|
+
width: '90%',
|
|
107
|
+
data: {
|
|
108
|
+
contentWidget: contentWidget,
|
|
109
|
+
htmlEditorConfig: this.htmlEditorConfig,
|
|
110
|
+
saveContentWidget: this.saveContentWidget,
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
.afterClosed()
|
|
114
|
+
.pipe(operators.takeUntil(this._destroy$))
|
|
115
|
+
.subscribe(function () {
|
|
116
|
+
_this.list.reload();
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
return FsContentWidgetsComponent;
|
|
120
|
+
}());
|
|
121
|
+
FsContentWidgetsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsComponent, deps: [{ token: i10__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
122
|
+
FsContentWidgetsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetsComponent, selector: "fs-content-widgets", inputs: { fetchContentWidgets: "fetchContentWidgets", saveContentWidget: "saveContentWidget", htmlEditorConfig: "htmlEditorConfig" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, 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__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i3__namespace$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
|
|
123
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsComponent, decorators: [{
|
|
124
|
+
type: i0.Component,
|
|
125
|
+
args: [{
|
|
126
|
+
selector: 'fs-content-widgets',
|
|
127
|
+
templateUrl: './content-widgets.component.html',
|
|
128
|
+
styleUrls: ['./content-widgets.component.scss'],
|
|
129
|
+
}]
|
|
130
|
+
}], ctorParameters: function () { return [{ type: i10__namespace.MatDialog }]; }, propDecorators: { fetchContentWidgets: [{
|
|
131
|
+
type: i0.Input
|
|
132
|
+
}], saveContentWidget: [{
|
|
133
|
+
type: i0.Input
|
|
134
|
+
}], htmlEditorConfig: [{
|
|
135
|
+
type: i0.Input
|
|
136
|
+
}], list: [{
|
|
137
|
+
type: i0.ViewChild,
|
|
138
|
+
args: [i2$1.FsListComponent, { static: true }]
|
|
139
139
|
}] } });
|
|
140
140
|
|
|
141
|
-
var FsContentWidgetsModule = /** @class */ (function () {
|
|
142
|
-
function FsContentWidgetsModule() {
|
|
143
|
-
}
|
|
144
|
-
FsContentWidgetsModule.forRoot = function () {
|
|
145
|
-
return {
|
|
146
|
-
ngModule: FsContentWidgetsModule,
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
return FsContentWidgetsModule;
|
|
150
|
-
}());
|
|
151
|
-
FsContentWidgetsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
152
|
-
FsContentWidgetsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
|
|
153
|
-
FsContentWidgetComponent$1], imports: [i2$2.CommonModule,
|
|
154
|
-
i8.FormsModule,
|
|
155
|
-
i10.MatDialogModule,
|
|
156
|
-
i11.MatInputModule,
|
|
157
|
-
i6.MatFormFieldModule,
|
|
158
|
-
i7.MatButtonModule,
|
|
159
|
-
i3.MatTabsModule,
|
|
160
|
-
i2$1.FsListModule,
|
|
161
|
-
i3$1.FsDateModule,
|
|
162
|
-
i9.FsFormModule,
|
|
163
|
-
i5.FsHtmlEditorModule,
|
|
164
|
-
i2.FsDialogModule,
|
|
165
|
-
i4.FsTextEditorModule], exports: [FsContentWidgetsComponent] });
|
|
166
|
-
FsContentWidgetsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, imports: [[
|
|
167
|
-
i2$2.CommonModule,
|
|
168
|
-
i8.FormsModule,
|
|
169
|
-
i10.MatDialogModule,
|
|
170
|
-
i11.MatInputModule,
|
|
171
|
-
i6.MatFormFieldModule,
|
|
172
|
-
i7.MatButtonModule,
|
|
173
|
-
i3.MatTabsModule,
|
|
174
|
-
i2$1.FsListModule,
|
|
175
|
-
i3$1.FsDateModule,
|
|
176
|
-
i9.FsFormModule,
|
|
177
|
-
i5.FsHtmlEditorModule,
|
|
178
|
-
i2.FsDialogModule,
|
|
179
|
-
i4.FsTextEditorModule,
|
|
180
|
-
]] });
|
|
181
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, decorators: [{
|
|
182
|
-
type: i0.NgModule,
|
|
183
|
-
args: [{
|
|
184
|
-
imports: [
|
|
185
|
-
i2$2.CommonModule,
|
|
186
|
-
i8.FormsModule,
|
|
187
|
-
i10.MatDialogModule,
|
|
188
|
-
i11.MatInputModule,
|
|
189
|
-
i6.MatFormFieldModule,
|
|
190
|
-
i7.MatButtonModule,
|
|
191
|
-
i3.MatTabsModule,
|
|
192
|
-
i2$1.FsListModule,
|
|
193
|
-
i3$1.FsDateModule,
|
|
194
|
-
i9.FsFormModule,
|
|
195
|
-
i5.FsHtmlEditorModule,
|
|
196
|
-
i2.FsDialogModule,
|
|
197
|
-
i4.FsTextEditorModule,
|
|
198
|
-
],
|
|
199
|
-
exports: [
|
|
200
|
-
FsContentWidgetsComponent,
|
|
201
|
-
],
|
|
202
|
-
declarations: [
|
|
203
|
-
FsContentWidgetsComponent,
|
|
204
|
-
FsContentWidgetComponent$1,
|
|
205
|
-
],
|
|
206
|
-
}]
|
|
141
|
+
var FsContentWidgetsModule = /** @class */ (function () {
|
|
142
|
+
function FsContentWidgetsModule() {
|
|
143
|
+
}
|
|
144
|
+
FsContentWidgetsModule.forRoot = function () {
|
|
145
|
+
return {
|
|
146
|
+
ngModule: FsContentWidgetsModule,
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
return FsContentWidgetsModule;
|
|
150
|
+
}());
|
|
151
|
+
FsContentWidgetsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
152
|
+
FsContentWidgetsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, declarations: [FsContentWidgetsComponent,
|
|
153
|
+
FsContentWidgetComponent$1], imports: [i2$2.CommonModule,
|
|
154
|
+
i8.FormsModule,
|
|
155
|
+
i10.MatDialogModule,
|
|
156
|
+
i11.MatInputModule,
|
|
157
|
+
i6.MatFormFieldModule,
|
|
158
|
+
i7.MatButtonModule,
|
|
159
|
+
i3.MatTabsModule,
|
|
160
|
+
i2$1.FsListModule,
|
|
161
|
+
i3$1.FsDateModule,
|
|
162
|
+
i9.FsFormModule,
|
|
163
|
+
i5.FsHtmlEditorModule,
|
|
164
|
+
i2.FsDialogModule,
|
|
165
|
+
i4.FsTextEditorModule], exports: [FsContentWidgetsComponent] });
|
|
166
|
+
FsContentWidgetsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, imports: [[
|
|
167
|
+
i2$2.CommonModule,
|
|
168
|
+
i8.FormsModule,
|
|
169
|
+
i10.MatDialogModule,
|
|
170
|
+
i11.MatInputModule,
|
|
171
|
+
i6.MatFormFieldModule,
|
|
172
|
+
i7.MatButtonModule,
|
|
173
|
+
i3.MatTabsModule,
|
|
174
|
+
i2$1.FsListModule,
|
|
175
|
+
i3$1.FsDateModule,
|
|
176
|
+
i9.FsFormModule,
|
|
177
|
+
i5.FsHtmlEditorModule,
|
|
178
|
+
i2.FsDialogModule,
|
|
179
|
+
i4.FsTextEditorModule,
|
|
180
|
+
]] });
|
|
181
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetsModule, decorators: [{
|
|
182
|
+
type: i0.NgModule,
|
|
183
|
+
args: [{
|
|
184
|
+
imports: [
|
|
185
|
+
i2$2.CommonModule,
|
|
186
|
+
i8.FormsModule,
|
|
187
|
+
i10.MatDialogModule,
|
|
188
|
+
i11.MatInputModule,
|
|
189
|
+
i6.MatFormFieldModule,
|
|
190
|
+
i7.MatButtonModule,
|
|
191
|
+
i3.MatTabsModule,
|
|
192
|
+
i2$1.FsListModule,
|
|
193
|
+
i3$1.FsDateModule,
|
|
194
|
+
i9.FsFormModule,
|
|
195
|
+
i5.FsHtmlEditorModule,
|
|
196
|
+
i2.FsDialogModule,
|
|
197
|
+
i4.FsTextEditorModule,
|
|
198
|
+
],
|
|
199
|
+
exports: [
|
|
200
|
+
FsContentWidgetsComponent,
|
|
201
|
+
],
|
|
202
|
+
declarations: [
|
|
203
|
+
FsContentWidgetsComponent,
|
|
204
|
+
FsContentWidgetComponent$1,
|
|
205
|
+
],
|
|
206
|
+
}]
|
|
207
207
|
}] });
|
|
208
208
|
|
|
209
|
-
var FsContentWidgetContentDirective = /** @class */ (function () {
|
|
210
|
-
function FsContentWidgetContentDirective() {
|
|
211
|
-
}
|
|
212
|
-
return FsContentWidgetContentDirective;
|
|
213
|
-
}());
|
|
214
|
-
FsContentWidgetContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetContentDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
215
|
-
FsContentWidgetContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetContentDirective, selector: "[fsContentWidgetContent]", ngImport: i0__namespace });
|
|
216
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetContentDirective, decorators: [{
|
|
217
|
-
type: i0.Directive,
|
|
218
|
-
args: [{
|
|
219
|
-
selector: '[fsContentWidgetContent]',
|
|
220
|
-
}]
|
|
209
|
+
var FsContentWidgetContentDirective = /** @class */ (function () {
|
|
210
|
+
function FsContentWidgetContentDirective() {
|
|
211
|
+
}
|
|
212
|
+
return FsContentWidgetContentDirective;
|
|
213
|
+
}());
|
|
214
|
+
FsContentWidgetContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetContentDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
215
|
+
FsContentWidgetContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetContentDirective, selector: "[fsContentWidgetContent]", ngImport: i0__namespace });
|
|
216
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetContentDirective, decorators: [{
|
|
217
|
+
type: i0.Directive,
|
|
218
|
+
args: [{
|
|
219
|
+
selector: '[fsContentWidgetContent]',
|
|
220
|
+
}]
|
|
221
221
|
}] });
|
|
222
222
|
|
|
223
223
|
var FS_CONTENT_WIDGET_CONFIG = new i0.InjectionToken('fs-content-widget-config');
|
|
224
224
|
|
|
225
|
-
var FsContentWidgetRendererComponent = /** @class */ (function () {
|
|
226
|
-
function FsContentWidgetRendererComponent(_router, _el) {
|
|
227
|
-
this._router = _router;
|
|
228
|
-
this._el = _el;
|
|
229
|
-
this.destroy$ = new rxjs.Subject();
|
|
230
|
-
}
|
|
231
|
-
FsContentWidgetRendererComponent.prototype.ngAfterViewChecked = function () {
|
|
232
|
-
this.registerHrefs();
|
|
233
|
-
};
|
|
234
|
-
Object.defineProperty(FsContentWidgetRendererComponent.prototype, "el", {
|
|
235
|
-
get: function () {
|
|
236
|
-
return this._el.nativeElement;
|
|
237
|
-
},
|
|
238
|
-
enumerable: false,
|
|
239
|
-
configurable: true
|
|
240
|
-
});
|
|
241
|
-
FsContentWidgetRendererComponent.prototype.registerHrefs = function () {
|
|
242
|
-
var _this = this;
|
|
243
|
-
Array.from(this.el.querySelectorAll('a[href]'))
|
|
244
|
-
.filter(function (el) {
|
|
245
|
-
return el.getAttribute('href').match(/^\//);
|
|
246
|
-
})
|
|
247
|
-
.forEach(function (el) {
|
|
248
|
-
el.addEventListener('click', function (event) {
|
|
249
|
-
if (!event.shiftKey && !event.ctrlKey) {
|
|
250
|
-
event.preventDefault();
|
|
251
|
-
var href = el.getAttribute('href');
|
|
252
|
-
_this._router.navigateByUrl(href);
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
});
|
|
256
|
-
};
|
|
257
|
-
FsContentWidgetRendererComponent.prototype.ngOnDestroy = function () {
|
|
258
|
-
this.destroy$.next();
|
|
259
|
-
this.destroy$.complete();
|
|
260
|
-
};
|
|
261
|
-
return FsContentWidgetRendererComponent;
|
|
262
|
-
}());
|
|
263
|
-
FsContentWidgetRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetRendererComponent, deps: [{ token: i1__namespace$1.Router }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
264
|
-
FsContentWidgetRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: { content: "content" }, ngImport: i0__namespace, template: "<fs-html-renderer *ngIf=\"content\" [html]=\"content\"></fs-html-renderer>", styles: [":host ::ng-deep img{max-width:100%}\n"], components: [{ type: i5__namespace.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }], directives: [{ type: i2__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
265
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetRendererComponent, decorators: [{
|
|
266
|
-
type: i0.Component,
|
|
267
|
-
args: [{
|
|
268
|
-
selector: 'fs-content-widget-renderer',
|
|
269
|
-
templateUrl: './content-widget-renderer.component.html',
|
|
270
|
-
styleUrls: ['./content-widget-renderer.component.scss'],
|
|
271
|
-
}]
|
|
272
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i0__namespace.ElementRef }]; }, propDecorators: { content: [{
|
|
273
|
-
type: i0.Input
|
|
225
|
+
var FsContentWidgetRendererComponent = /** @class */ (function () {
|
|
226
|
+
function FsContentWidgetRendererComponent(_router, _el) {
|
|
227
|
+
this._router = _router;
|
|
228
|
+
this._el = _el;
|
|
229
|
+
this.destroy$ = new rxjs.Subject();
|
|
230
|
+
}
|
|
231
|
+
FsContentWidgetRendererComponent.prototype.ngAfterViewChecked = function () {
|
|
232
|
+
this.registerHrefs();
|
|
233
|
+
};
|
|
234
|
+
Object.defineProperty(FsContentWidgetRendererComponent.prototype, "el", {
|
|
235
|
+
get: function () {
|
|
236
|
+
return this._el.nativeElement;
|
|
237
|
+
},
|
|
238
|
+
enumerable: false,
|
|
239
|
+
configurable: true
|
|
240
|
+
});
|
|
241
|
+
FsContentWidgetRendererComponent.prototype.registerHrefs = function () {
|
|
242
|
+
var _this = this;
|
|
243
|
+
Array.from(this.el.querySelectorAll('a[href]'))
|
|
244
|
+
.filter(function (el) {
|
|
245
|
+
return el.getAttribute('href').match(/^\//);
|
|
246
|
+
})
|
|
247
|
+
.forEach(function (el) {
|
|
248
|
+
el.addEventListener('click', function (event) {
|
|
249
|
+
if (!event.shiftKey && !event.ctrlKey) {
|
|
250
|
+
event.preventDefault();
|
|
251
|
+
var href = el.getAttribute('href');
|
|
252
|
+
_this._router.navigateByUrl(href);
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
FsContentWidgetRendererComponent.prototype.ngOnDestroy = function () {
|
|
258
|
+
this.destroy$.next();
|
|
259
|
+
this.destroy$.complete();
|
|
260
|
+
};
|
|
261
|
+
return FsContentWidgetRendererComponent;
|
|
262
|
+
}());
|
|
263
|
+
FsContentWidgetRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetRendererComponent, deps: [{ token: i1__namespace$1.Router }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
264
|
+
FsContentWidgetRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: { content: "content" }, ngImport: i0__namespace, template: "<fs-html-renderer *ngIf=\"content\" [html]=\"content\"></fs-html-renderer>", styles: [":host ::ng-deep img{max-width:100%}\n"], components: [{ type: i5__namespace.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }], directives: [{ type: i2__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
265
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetRendererComponent, decorators: [{
|
|
266
|
+
type: i0.Component,
|
|
267
|
+
args: [{
|
|
268
|
+
selector: 'fs-content-widget-renderer',
|
|
269
|
+
templateUrl: './content-widget-renderer.component.html',
|
|
270
|
+
styleUrls: ['./content-widget-renderer.component.scss'],
|
|
271
|
+
}]
|
|
272
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i0__namespace.ElementRef }]; }, propDecorators: { content: [{
|
|
273
|
+
type: i0.Input
|
|
274
274
|
}] } });
|
|
275
275
|
|
|
276
|
-
var FsContentWidgetComponent = /** @class */ (function () {
|
|
277
|
-
function FsContentWidgetComponent(config, _cdRef) {
|
|
278
|
-
this.config = config;
|
|
279
|
-
this._cdRef = _cdRef;
|
|
280
|
-
this.destroy$ = new rxjs.Subject();
|
|
281
|
-
}
|
|
282
|
-
FsContentWidgetComponent.prototype.ngOnInit = function () {
|
|
283
|
-
var _this = this;
|
|
284
|
-
this.config.fetchContentWidget(this.tag)
|
|
285
|
-
.pipe(operators.takeUntil(this.destroy$))
|
|
286
|
-
.subscribe(function (content) {
|
|
287
|
-
_this.content = content;
|
|
288
|
-
_this._cdRef.markForCheck();
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
FsContentWidgetComponent.prototype.ngOnDestroy = function () {
|
|
292
|
-
this.destroy$.next();
|
|
293
|
-
this.destroy$.complete();
|
|
294
|
-
};
|
|
295
|
-
return FsContentWidgetComponent;
|
|
296
|
-
}());
|
|
297
|
-
FsContentWidgetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent, deps: [{ token: FS_CONTENT_WIDGET_CONFIG }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
298
|
-
FsContentWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: { tag: "tag" }, queries: [{ propertyName: "contentWidgetContent", first: true, predicate: FsContentWidgetContentDirective, descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, 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__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
299
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent, decorators: [{
|
|
300
|
-
type: i0.Component,
|
|
301
|
-
args: [{
|
|
302
|
-
selector: 'fs-content-widget',
|
|
303
|
-
templateUrl: './content-widget.component.html',
|
|
304
|
-
styleUrls: ['./content-widget.component.scss'],
|
|
305
|
-
}]
|
|
306
|
-
}], ctorParameters: function () {
|
|
307
|
-
return [{ type: undefined, decorators: [{
|
|
308
|
-
type: i0.Inject,
|
|
309
|
-
args: [FS_CONTENT_WIDGET_CONFIG]
|
|
310
|
-
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
|
311
|
-
}, propDecorators: { contentWidgetContent: [{
|
|
312
|
-
type: i0.ContentChild,
|
|
313
|
-
args: [FsContentWidgetContentDirective, { read: i0.TemplateRef }]
|
|
314
|
-
}], tag: [{
|
|
315
|
-
type: i0.Input
|
|
276
|
+
var FsContentWidgetComponent = /** @class */ (function () {
|
|
277
|
+
function FsContentWidgetComponent(config, _cdRef) {
|
|
278
|
+
this.config = config;
|
|
279
|
+
this._cdRef = _cdRef;
|
|
280
|
+
this.destroy$ = new rxjs.Subject();
|
|
281
|
+
}
|
|
282
|
+
FsContentWidgetComponent.prototype.ngOnInit = function () {
|
|
283
|
+
var _this = this;
|
|
284
|
+
this.config.fetchContentWidget(this.tag)
|
|
285
|
+
.pipe(operators.takeUntil(this.destroy$))
|
|
286
|
+
.subscribe(function (content) {
|
|
287
|
+
_this.content = content;
|
|
288
|
+
_this._cdRef.markForCheck();
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
FsContentWidgetComponent.prototype.ngOnDestroy = function () {
|
|
292
|
+
this.destroy$.next();
|
|
293
|
+
this.destroy$.complete();
|
|
294
|
+
};
|
|
295
|
+
return FsContentWidgetComponent;
|
|
296
|
+
}());
|
|
297
|
+
FsContentWidgetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent, deps: [{ token: FS_CONTENT_WIDGET_CONFIG }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
298
|
+
FsContentWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: { tag: "tag" }, queries: [{ propertyName: "contentWidgetContent", first: true, predicate: FsContentWidgetContentDirective, descendants: true, read: i0.TemplateRef }], ngImport: i0__namespace, 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__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
299
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetComponent, decorators: [{
|
|
300
|
+
type: i0.Component,
|
|
301
|
+
args: [{
|
|
302
|
+
selector: 'fs-content-widget',
|
|
303
|
+
templateUrl: './content-widget.component.html',
|
|
304
|
+
styleUrls: ['./content-widget.component.scss'],
|
|
305
|
+
}]
|
|
306
|
+
}], ctorParameters: function () {
|
|
307
|
+
return [{ type: undefined, decorators: [{
|
|
308
|
+
type: i0.Inject,
|
|
309
|
+
args: [FS_CONTENT_WIDGET_CONFIG]
|
|
310
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
|
311
|
+
}, propDecorators: { contentWidgetContent: [{
|
|
312
|
+
type: i0.ContentChild,
|
|
313
|
+
args: [FsContentWidgetContentDirective, { read: i0.TemplateRef }]
|
|
314
|
+
}], tag: [{
|
|
315
|
+
type: i0.Input
|
|
316
316
|
}] } });
|
|
317
317
|
|
|
318
|
-
var FsContentWidgetDialogComponent = /** @class */ (function () {
|
|
319
|
-
function FsContentWidgetDialogComponent(_data) {
|
|
320
|
-
this._data = _data;
|
|
321
|
-
this.title = _data.title;
|
|
322
|
-
this.tag = _data.tag;
|
|
323
|
-
}
|
|
324
|
-
return FsContentWidgetDialogComponent;
|
|
325
|
-
}());
|
|
326
|
-
FsContentWidgetDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetDialogComponent, deps: [{ token: i10.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
327
|
-
FsContentWidgetDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetDialogComponent, selector: "ng-component", ngImport: i0__namespace, 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__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }, { type: i7__namespace.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__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
328
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetDialogComponent, decorators: [{
|
|
329
|
-
type: i0.Component,
|
|
330
|
-
args: [{
|
|
331
|
-
templateUrl: './content-widget-dialog.component.html',
|
|
332
|
-
styleUrls: ['./content-widget-dialog.component.scss'],
|
|
333
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
334
|
-
}]
|
|
335
|
-
}], ctorParameters: function () {
|
|
336
|
-
return [{ type: undefined, decorators: [{
|
|
337
|
-
type: i0.Inject,
|
|
338
|
-
args: [i10.MAT_DIALOG_DATA]
|
|
339
|
-
}] }];
|
|
318
|
+
var FsContentWidgetDialogComponent = /** @class */ (function () {
|
|
319
|
+
function FsContentWidgetDialogComponent(_data) {
|
|
320
|
+
this._data = _data;
|
|
321
|
+
this.title = _data.title;
|
|
322
|
+
this.tag = _data.tag;
|
|
323
|
+
}
|
|
324
|
+
return FsContentWidgetDialogComponent;
|
|
325
|
+
}());
|
|
326
|
+
FsContentWidgetDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetDialogComponent, deps: [{ token: i10.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
327
|
+
FsContentWidgetDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentWidgetDialogComponent, selector: "ng-component", ngImport: i0__namespace, 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__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }, { type: i7__namespace.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__namespace$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i10__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i10__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
328
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetDialogComponent, decorators: [{
|
|
329
|
+
type: i0.Component,
|
|
330
|
+
args: [{
|
|
331
|
+
templateUrl: './content-widget-dialog.component.html',
|
|
332
|
+
styleUrls: ['./content-widget-dialog.component.scss'],
|
|
333
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
334
|
+
}]
|
|
335
|
+
}], ctorParameters: function () {
|
|
336
|
+
return [{ type: undefined, decorators: [{
|
|
337
|
+
type: i0.Inject,
|
|
338
|
+
args: [i10.MAT_DIALOG_DATA]
|
|
339
|
+
}] }];
|
|
340
340
|
} });
|
|
341
341
|
|
|
342
|
-
var FsContentWidgetModule = /** @class */ (function () {
|
|
343
|
-
function FsContentWidgetModule() {
|
|
344
|
-
}
|
|
345
|
-
FsContentWidgetModule.forRoot = function () {
|
|
346
|
-
return {
|
|
347
|
-
ngModule: FsContentWidgetModule,
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
return FsContentWidgetModule;
|
|
351
|
-
}());
|
|
352
|
-
FsContentWidgetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
353
|
-
FsContentWidgetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, declarations: [FsContentWidgetRendererComponent,
|
|
354
|
-
FsContentWidgetComponent,
|
|
355
|
-
FsContentWidgetDialogComponent,
|
|
356
|
-
FsContentWidgetContentDirective], imports: [i2$2.CommonModule,
|
|
357
|
-
i10.MatDialogModule,
|
|
358
|
-
i7.MatButtonModule,
|
|
359
|
-
i5.FsHtmlEditorModule,
|
|
360
|
-
i2.FsDialogModule,
|
|
361
|
-
i5.FsHtmlRendererModule], exports: [FsContentWidgetComponent,
|
|
362
|
-
FsContentWidgetContentDirective] });
|
|
363
|
-
FsContentWidgetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, imports: [[
|
|
364
|
-
i2$2.CommonModule,
|
|
365
|
-
i10.MatDialogModule,
|
|
366
|
-
i7.MatButtonModule,
|
|
367
|
-
i5.FsHtmlEditorModule,
|
|
368
|
-
i2.FsDialogModule,
|
|
369
|
-
i5.FsHtmlRendererModule,
|
|
370
|
-
]] });
|
|
371
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, decorators: [{
|
|
372
|
-
type: i0.NgModule,
|
|
373
|
-
args: [{
|
|
374
|
-
imports: [
|
|
375
|
-
i2$2.CommonModule,
|
|
376
|
-
i10.MatDialogModule,
|
|
377
|
-
i7.MatButtonModule,
|
|
378
|
-
i5.FsHtmlEditorModule,
|
|
379
|
-
i2.FsDialogModule,
|
|
380
|
-
i5.FsHtmlRendererModule,
|
|
381
|
-
],
|
|
382
|
-
exports: [
|
|
383
|
-
FsContentWidgetComponent,
|
|
384
|
-
FsContentWidgetContentDirective,
|
|
385
|
-
],
|
|
386
|
-
declarations: [
|
|
387
|
-
FsContentWidgetRendererComponent,
|
|
388
|
-
FsContentWidgetComponent,
|
|
389
|
-
FsContentWidgetDialogComponent,
|
|
390
|
-
FsContentWidgetContentDirective,
|
|
391
|
-
],
|
|
392
|
-
}]
|
|
342
|
+
var FsContentWidgetModule = /** @class */ (function () {
|
|
343
|
+
function FsContentWidgetModule() {
|
|
344
|
+
}
|
|
345
|
+
FsContentWidgetModule.forRoot = function () {
|
|
346
|
+
return {
|
|
347
|
+
ngModule: FsContentWidgetModule,
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
return FsContentWidgetModule;
|
|
351
|
+
}());
|
|
352
|
+
FsContentWidgetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
353
|
+
FsContentWidgetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, declarations: [FsContentWidgetRendererComponent,
|
|
354
|
+
FsContentWidgetComponent,
|
|
355
|
+
FsContentWidgetDialogComponent,
|
|
356
|
+
FsContentWidgetContentDirective], imports: [i2$2.CommonModule,
|
|
357
|
+
i10.MatDialogModule,
|
|
358
|
+
i7.MatButtonModule,
|
|
359
|
+
i5.FsHtmlEditorModule,
|
|
360
|
+
i2.FsDialogModule,
|
|
361
|
+
i5.FsHtmlRendererModule], exports: [FsContentWidgetComponent,
|
|
362
|
+
FsContentWidgetContentDirective] });
|
|
363
|
+
FsContentWidgetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, imports: [[
|
|
364
|
+
i2$2.CommonModule,
|
|
365
|
+
i10.MatDialogModule,
|
|
366
|
+
i7.MatButtonModule,
|
|
367
|
+
i5.FsHtmlEditorModule,
|
|
368
|
+
i2.FsDialogModule,
|
|
369
|
+
i5.FsHtmlRendererModule,
|
|
370
|
+
]] });
|
|
371
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidgetModule, decorators: [{
|
|
372
|
+
type: i0.NgModule,
|
|
373
|
+
args: [{
|
|
374
|
+
imports: [
|
|
375
|
+
i2$2.CommonModule,
|
|
376
|
+
i10.MatDialogModule,
|
|
377
|
+
i7.MatButtonModule,
|
|
378
|
+
i5.FsHtmlEditorModule,
|
|
379
|
+
i2.FsDialogModule,
|
|
380
|
+
i5.FsHtmlRendererModule,
|
|
381
|
+
],
|
|
382
|
+
exports: [
|
|
383
|
+
FsContentWidgetComponent,
|
|
384
|
+
FsContentWidgetContentDirective,
|
|
385
|
+
],
|
|
386
|
+
declarations: [
|
|
387
|
+
FsContentWidgetRendererComponent,
|
|
388
|
+
FsContentWidgetComponent,
|
|
389
|
+
FsContentWidgetDialogComponent,
|
|
390
|
+
FsContentWidgetContentDirective,
|
|
391
|
+
],
|
|
392
|
+
}]
|
|
393
393
|
}] });
|
|
394
394
|
|
|
395
|
-
var FsContentWidget = /** @class */ (function () {
|
|
396
|
-
function FsContentWidget(_dialog) {
|
|
397
|
-
this._dialog = _dialog;
|
|
398
|
-
}
|
|
399
|
-
FsContentWidget.prototype.open = function (tag, title) {
|
|
400
|
-
this._dialog.open(FsContentWidgetDialogComponent, {
|
|
401
|
-
data: {
|
|
402
|
-
tag: tag,
|
|
403
|
-
title: title,
|
|
404
|
-
}
|
|
405
|
-
});
|
|
406
|
-
};
|
|
407
|
-
return FsContentWidget;
|
|
408
|
-
}());
|
|
409
|
-
FsContentWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, deps: [{ token: i10__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
410
|
-
FsContentWidget.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, providedIn: 'root' });
|
|
411
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, decorators: [{
|
|
412
|
-
type: i0.Injectable,
|
|
413
|
-
args: [{
|
|
414
|
-
providedIn: 'root',
|
|
415
|
-
}]
|
|
395
|
+
var FsContentWidget = /** @class */ (function () {
|
|
396
|
+
function FsContentWidget(_dialog) {
|
|
397
|
+
this._dialog = _dialog;
|
|
398
|
+
}
|
|
399
|
+
FsContentWidget.prototype.open = function (tag, title) {
|
|
400
|
+
this._dialog.open(FsContentWidgetDialogComponent, {
|
|
401
|
+
data: {
|
|
402
|
+
tag: tag,
|
|
403
|
+
title: title,
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
return FsContentWidget;
|
|
408
|
+
}());
|
|
409
|
+
FsContentWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, deps: [{ token: i10__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
410
|
+
FsContentWidget.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, providedIn: 'root' });
|
|
411
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsContentWidget, decorators: [{
|
|
412
|
+
type: i0.Injectable,
|
|
413
|
+
args: [{
|
|
414
|
+
providedIn: 'root',
|
|
415
|
+
}]
|
|
416
416
|
}], ctorParameters: function () { return [{ type: i10__namespace.MatDialog }]; } });
|
|
417
417
|
|
|
418
|
-
/**
|
|
419
|
-
* Generated bundle index. Do not edit.
|
|
418
|
+
/**
|
|
419
|
+
* Generated bundle index. Do not edit.
|
|
420
420
|
*/
|
|
421
421
|
|
|
422
422
|
exports.FS_CONTENT_WIDGET_CONFIG = FS_CONTENT_WIDGET_CONFIG;
|