@firestitch/content-widget 17.0.0 → 18.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/content-widget/components/content-widget/content-widget.component.d.ts +2 -3
- package/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.d.ts +2 -2
- package/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.d.ts +10 -11
- package/app/content-widget/directives/content-widget-content.directive.d.ts +1 -1
- package/app/content-widget/fs-content-widget.module.d.ts +10 -10
- package/app/content-widget/interfaces/content-widget-config.d.ts +1 -1
- package/app/content-widget/services/content-widget.service.d.ts +0 -2
- package/app/content-widgets/components/content-widget/content-widget.component.d.ts +1 -3
- package/app/content-widgets/components/content-widgets/content-widgets.component.d.ts +1 -3
- package/app/content-widgets/fs-content-widgets.module.d.ts +16 -16
- package/esm2022/app/content-widget/components/content-widget/content-widget.component.mjs +11 -18
- package/esm2022/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.mjs +26 -19
- package/esm2022/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.mjs +48 -26
- package/esm2022/app/content-widget/directives/content-widget-content.directive.mjs +5 -4
- package/esm2022/app/content-widget/fs-content-widget.module.mjs +19 -22
- package/esm2022/app/content-widget/interfaces/content-widget-config.mjs +1 -1
- package/esm2022/app/content-widget/services/content-widget.service.mjs +7 -11
- package/esm2022/app/content-widgets/components/content-widget/content-widget.component.mjs +42 -27
- package/esm2022/app/content-widgets/components/content-widgets/content-widgets.component.mjs +12 -15
- package/esm2022/app/content-widgets/fs-content-widgets.module.mjs +13 -12
- package/fesm2022/firestitch-content-widget.mjs +151 -127
- package/fesm2022/firestitch-content-widget.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FsContentWidgetConfig } from '../../interfaces/content-widget-config';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FsContentWidgetComponent implements OnDestroy, OnInit {
|
|
@@ -8,9 +8,8 @@ export declare class FsContentWidgetComponent implements OnDestroy, OnInit {
|
|
|
8
8
|
content: any;
|
|
9
9
|
private destroy$;
|
|
10
10
|
tag: string;
|
|
11
|
-
constructor(config: FsContentWidgetConfig, _cdRef: ChangeDetectorRef);
|
|
12
11
|
ngOnInit(): void;
|
|
13
12
|
ngOnDestroy(): void;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetComponent, "fs-content-widget", never, { "tag": { "alias": "tag"; "required": false; }; }, {}, ["contentWidgetContent"], never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetComponent, "fs-content-widget", never, { "tag": { "alias": "tag"; "required": false; }; }, {}, ["contentWidgetContent"], never, true, never>;
|
|
16
15
|
}
|
package/app/content-widget/components/content-widget-dialog/content-widget-dialog.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare class FsContentWidgetDialogComponent {
|
|
|
3
3
|
private _data;
|
|
4
4
|
title: any;
|
|
5
5
|
tag: any;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor();
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetDialogComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetDialogComponent, "ng-component", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
package/app/content-widget/components/content-widget-renderer/content-widget-renderer.component.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Router } from '@angular/router';
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsContentWidgetRendererComponent implements
|
|
3
|
+
export declare class FsContentWidgetRendererComponent implements OnChanges, OnDestroy {
|
|
4
|
+
content: string;
|
|
5
|
+
containerRef: ElementRef<HTMLDivElement>;
|
|
5
6
|
private _router;
|
|
6
|
-
private
|
|
7
|
-
|
|
8
|
-
private destroy$;
|
|
9
|
-
constructor(_router: Router, _el: ElementRef);
|
|
10
|
-
ngAfterViewChecked(): void;
|
|
11
|
-
get el(): any;
|
|
12
|
-
registerHrefs(): void;
|
|
7
|
+
private _addedScripts;
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
9
|
ngOnDestroy(): void;
|
|
10
|
+
private _renderContent;
|
|
11
|
+
private _registerHrefs;
|
|
12
|
+
private _cleanup;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetRendererComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetRendererComponent, "fs-content-widget-renderer", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetRendererComponent, "fs-content-widget-renderer", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class FsContentWidgetContentDirective {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetContentDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsContentWidgetContentDirective, "[fsContentWidgetContent]", never, {}, {}, never, never,
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsContentWidgetContentDirective, "[fsContentWidgetContent]", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "@
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "
|
|
11
|
-
import * as i9 from "
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/material/dialog";
|
|
5
|
+
import * as i3 from "@angular/material/button";
|
|
6
|
+
import * as i4 from "@firestitch/html-editor";
|
|
7
|
+
import * as i5 from "@firestitch/dialog";
|
|
8
|
+
import * as i6 from "./components/content-widget-renderer/content-widget-renderer.component";
|
|
9
|
+
import * as i7 from "./components/content-widget/content-widget.component";
|
|
10
|
+
import * as i8 from "./components/content-widget-dialog/content-widget-dialog.component";
|
|
11
|
+
import * as i9 from "./directives/content-widget-content.directive";
|
|
12
12
|
export declare class FsContentWidgetModule {
|
|
13
13
|
static forRoot(): ModuleWithProviders<FsContentWidgetModule>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentWidgetModule, [typeof i1.
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentWidgetModule, never, [typeof i1.CommonModule, typeof i2.MatDialogModule, typeof i3.MatButtonModule, typeof i4.FsHtmlEditorModule, typeof i5.FsDialogModule, typeof i6.FsContentWidgetRendererComponent, typeof i7.FsContentWidgetComponent, typeof i8.FsContentWidgetDialogComponent, typeof i9.FsContentWidgetContentDirective], [typeof i7.FsContentWidgetComponent, typeof i9.FsContentWidgetContentDirective]>;
|
|
16
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentWidgetModule>;
|
|
17
17
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class FsContentWidget {
|
|
4
3
|
private _dialog;
|
|
5
|
-
constructor(_dialog: MatDialog);
|
|
6
4
|
open(tag: string, title?: string): void;
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidget, never>;
|
|
8
6
|
static ɵprov: i0.ɵɵInjectableDeclaration<FsContentWidget>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FsHtmlEditorConfig } from '@firestitch/html-editor';
|
|
3
|
-
import { FsMessage } from '@firestitch/message';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class FsContentWidgetComponent implements OnInit {
|
|
@@ -9,9 +8,8 @@ export declare class FsContentWidgetComponent implements OnInit {
|
|
|
9
8
|
contentWidget: any;
|
|
10
9
|
htmlEditorConfig: FsHtmlEditorConfig;
|
|
11
10
|
private _saveContentWidget;
|
|
12
|
-
constructor(_message: FsMessage, _data: any);
|
|
13
11
|
ngOnInit(): void;
|
|
14
12
|
save: () => Observable<any>;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetComponent, "ng-component", never, {}, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
17
15
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
2
|
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { FsHtmlEditorConfig } from '@firestitch/html-editor';
|
|
@@ -15,10 +14,9 @@ export declare class FsContentWidgetsComponent implements OnInit, OnDestroy {
|
|
|
15
14
|
list: FsListComponent;
|
|
16
15
|
config: FsListConfig;
|
|
17
16
|
private _destroy$;
|
|
18
|
-
constructor(_dialog: MatDialog);
|
|
19
17
|
ngOnInit(): void;
|
|
20
18
|
ngOnDestroy(): void;
|
|
21
19
|
open(contentWidget: any): void;
|
|
22
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetsComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetsComponent, "fs-content-widgets", never, { "fetchContentWidgets": { "alias": "fetchContentWidgets"; "required": false; }; "saveContentWidget": { "alias": "saveContentWidget"; "required": false; }; "htmlEditorConfig": { "alias": "htmlEditorConfig"; "required": false; }; }, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsContentWidgetsComponent, "fs-content-widgets", never, { "fetchContentWidgets": { "alias": "fetchContentWidgets"; "required": false; }; "saveContentWidget": { "alias": "saveContentWidget"; "required": false; }; "htmlEditorConfig": { "alias": "htmlEditorConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
22
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "@angular/
|
|
6
|
-
import * as i4 from "@angular/
|
|
7
|
-
import * as i5 from "@angular/material/
|
|
8
|
-
import * as i6 from "@angular/material/
|
|
9
|
-
import * as i7 from "@angular/material/
|
|
10
|
-
import * as i8 from "@
|
|
11
|
-
import * as i9 from "@
|
|
12
|
-
import * as i10 from "@firestitch/
|
|
13
|
-
import * as i11 from "@firestitch/
|
|
14
|
-
import * as i12 from "@firestitch/
|
|
15
|
-
import * as i13 from "@firestitch/
|
|
16
|
-
import * as i14 from "
|
|
17
|
-
import * as i15 from "
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/material/dialog";
|
|
6
|
+
import * as i4 from "@angular/material/input";
|
|
7
|
+
import * as i5 from "@angular/material/form-field";
|
|
8
|
+
import * as i6 from "@angular/material/button";
|
|
9
|
+
import * as i7 from "@angular/material/tabs";
|
|
10
|
+
import * as i8 from "@firestitch/list";
|
|
11
|
+
import * as i9 from "@firestitch/date";
|
|
12
|
+
import * as i10 from "@firestitch/form";
|
|
13
|
+
import * as i11 from "@firestitch/html-editor";
|
|
14
|
+
import * as i12 from "@firestitch/dialog";
|
|
15
|
+
import * as i13 from "@firestitch/text-editor";
|
|
16
|
+
import * as i14 from "./components/content-widgets/content-widgets.component";
|
|
17
|
+
import * as i15 from "./components/content-widget/content-widget.component";
|
|
18
18
|
export declare class FsContentWidgetsModule {
|
|
19
19
|
static forRoot(): ModuleWithProviders<FsContentWidgetsModule>;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsContentWidgetsModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentWidgetsModule, [typeof i1.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsContentWidgetsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.MatDialogModule, typeof i4.MatInputModule, typeof i5.MatFormFieldModule, typeof i6.MatButtonModule, typeof i7.MatTabsModule, typeof i8.FsListModule, typeof i9.FsDateModule, typeof i10.FsFormModule, typeof i11.FsHtmlEditorModule, typeof i12.FsDialogModule, typeof i13.FsTextEditorModule, typeof i14.FsContentWidgetsComponent, typeof i15.FsContentWidgetComponent], [typeof i14.FsContentWidgetsComponent]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsContentWidgetsModule>;
|
|
23
23
|
}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectorRef, Component, ContentChild, Input, TemplateRef, inject } from '@angular/core';
|
|
2
3
|
import { Subject } from 'rxjs';
|
|
3
4
|
import { takeUntil } from 'rxjs/operators';
|
|
4
5
|
import { FsContentWidgetContentDirective } from '../../directives';
|
|
5
6
|
import { FS_CONTENT_WIDGET_CONFIG } from '../../injectors';
|
|
7
|
+
import { FsContentWidgetRendererComponent } from '../content-widget-renderer/content-widget-renderer.component';
|
|
6
8
|
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
9
|
export class FsContentWidgetComponent {
|
|
10
|
-
config;
|
|
11
|
-
_cdRef;
|
|
10
|
+
config = inject(FS_CONTENT_WIDGET_CONFIG);
|
|
11
|
+
_cdRef = inject(ChangeDetectorRef);
|
|
12
12
|
contentWidgetContent;
|
|
13
13
|
content;
|
|
14
14
|
destroy$ = new Subject();
|
|
15
15
|
tag;
|
|
16
|
-
constructor(config, _cdRef) {
|
|
17
|
-
this.config = config;
|
|
18
|
-
this._cdRef = _cdRef;
|
|
19
|
-
}
|
|
20
16
|
ngOnInit() {
|
|
21
17
|
this.config.fetchContentWidget(this.tag)
|
|
22
18
|
.pipe(takeUntil(this.destroy$))
|
|
@@ -29,19 +25,16 @@ export class FsContentWidgetComponent {
|
|
|
29
25
|
this.destroy$.next(null);
|
|
30
26
|
this.destroy$.complete();
|
|
31
27
|
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsContentWidgetComponent, isStandalone: true, selector: "fs-content-widget", inputs: { tag: "tag" }, queries: [{ propertyName: "contentWidgetContent", first: true, predicate: FsContentWidgetContentDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: "@if (content) {\n @if (contentWidgetContent) {\n <ng-container\n [ngTemplateOutlet]=\"contentWidgetContent\"\n [ngTemplateOutletContext]=\"{ content: renderer }\">\n </ng-container>\n } @else {\n <fs-content-widget-renderer\n [content]=\"content\">\n </fs-content-widget-renderer>\n }\n <ng-template #renderer>\n <fs-content-widget-renderer\n [content]=\"content\">\n </fs-content-widget-renderer>\n </ng-template>\n}", styles: [":host ::ng-deep img{max-width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FsContentWidgetRendererComponent, selector: "fs-content-widget-renderer", inputs: ["content"] }] });
|
|
34
30
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetComponent, decorators: [{
|
|
36
32
|
type: Component,
|
|
37
|
-
args: [{ selector: 'fs-content-widget', template: "
|
|
38
|
-
}],
|
|
39
|
-
type: Inject,
|
|
40
|
-
args: [FS_CONTENT_WIDGET_CONFIG]
|
|
41
|
-
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { contentWidgetContent: [{
|
|
33
|
+
args: [{ selector: 'fs-content-widget', standalone: true, imports: [NgTemplateOutlet, FsContentWidgetRendererComponent], template: "@if (content) {\n @if (contentWidgetContent) {\n <ng-container\n [ngTemplateOutlet]=\"contentWidgetContent\"\n [ngTemplateOutletContext]=\"{ content: renderer }\">\n </ng-container>\n } @else {\n <fs-content-widget-renderer\n [content]=\"content\">\n </fs-content-widget-renderer>\n }\n <ng-template #renderer>\n <fs-content-widget-renderer\n [content]=\"content\">\n </fs-content-widget-renderer>\n </ng-template>\n}", styles: [":host ::ng-deep img{max-width:100%}\n"] }]
|
|
34
|
+
}], propDecorators: { contentWidgetContent: [{
|
|
42
35
|
type: ContentChild,
|
|
43
36
|
args: [FsContentWidgetContentDirective, { read: TemplateRef }]
|
|
44
37
|
}], tag: [{
|
|
45
38
|
type: Input
|
|
46
39
|
}] } });
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb250ZW50LXdpZGdldC9jb21wb25lbnRzL2NvbnRlbnQtd2lkZ2V0L2NvbnRlbnQtd2lkZ2V0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXQvY29tcG9uZW50cy9jb250ZW50LXdpZGdldC9jb250ZW50LXdpZGdldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQXFCLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFMUgsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbkUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0saUJBQWlCLENBQUM7Q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HZvaWQge1xuICAgIHRoaXMuZGVzdHJveSQubmV4dChudWxsKTtcbiAgICB0aGlzLmRlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gIH1cblxufVxuIiwiQGlmIChjb250ZW50KSB7XG4gIEBpZiAoY29udGVudFdpZGdldENvbnRlbnQpIHtcbiAgICA8bmctY29udGFpbmVyXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldF09XCJjb250ZW50V2lkZ2V0Q29udGVudFwiXG4gICAgICBbbmdUZW1wbGF0ZU91dGxldENvbnRleHRdPVwieyBjb250ZW50OiByZW5kZXJlciB9XCI+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIH0gQGVsc2Uge1xuICAgIDxmcy1jb250ZW50LXdpZGdldC1yZW5kZXJlclxuICAgICAgW2NvbnRlbnRdPVwiY29udGVudFwiPlxuICAgIDwvZnMtY29udGVudC13aWRnZXQtcmVuZGVyZXI+XG4gIH1cbiAgPG5nLXRlbXBsYXRlICNyZW5kZXJlcj5cbiAgICA8ZnMtY29udGVudC13aWRnZXQtcmVuZGVyZXJcbiAgICAgIFtjb250ZW50XT1cImNvbnRlbnRcIj5cbiAgICA8L2ZzLWNvbnRlbnQtd2lkZ2V0LXJlbmRlcmVyPlxuICA8L25nLXRlbXBsYXRlPlxufSJdfQ==
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component,
|
|
2
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose } from '@angular/material/dialog';
|
|
3
|
+
import { FsDialogModule } from '@firestitch/dialog';
|
|
4
|
+
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
5
|
+
import { FsContentWidgetComponent } from '../content-widget/content-widget.component';
|
|
6
|
+
import { MatButton } from '@angular/material/button';
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/
|
|
5
|
-
import * as i2 from "@
|
|
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";
|
|
8
|
+
import * as i1 from "@angular/material/dialog";
|
|
9
|
+
import * as i2 from "@firestitch/dialog";
|
|
9
10
|
export class FsContentWidgetDialogComponent {
|
|
10
|
-
_data;
|
|
11
|
+
_data = inject(MAT_DIALOG_DATA);
|
|
11
12
|
title;
|
|
12
13
|
tag;
|
|
13
|
-
constructor(
|
|
14
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
const _data = this._data;
|
|
15
16
|
this.title = _data.title;
|
|
16
17
|
this.tag = _data.tag;
|
|
17
18
|
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsContentWidgetDialogComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n @if (title) {\n <div mat-dialog-title>{{title}}</div>\n }\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: "ngmodule", type: FsDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout", "dock", "dockable", "fullscreenPercent"] }, { kind: "component", type: FsContentWidgetComponent, selector: "fs-content-widget", inputs: ["tag"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20
21
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetDialogComponent, decorators: [{
|
|
22
23
|
type: Component,
|
|
23
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
25
|
+
FsDialogModule,
|
|
26
|
+
MatDialogTitle,
|
|
27
|
+
CdkScrollable,
|
|
28
|
+
MatDialogContent,
|
|
29
|
+
FsContentWidgetComponent,
|
|
30
|
+
MatDialogActions,
|
|
31
|
+
MatButton,
|
|
32
|
+
MatDialogClose,
|
|
33
|
+
], template: "<fs-dialog>\n @if (title) {\n <div mat-dialog-title>{{title}}</div>\n }\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" }]
|
|
34
|
+
}], ctorParameters: () => [] });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXQvY29tcG9uZW50cy9jb250ZW50LXdpZGdldC1kaWFsb2cvY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29udGVudC13aWRnZXQvY29tcG9uZW50cy9jb250ZW50LXdpZGdldC1kaWFsb2cvY29udGVudC13aWRnZXQtZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNFLE9BQU8sRUFBRSxlQUFlLEVBQUUsY0FBYyxFQUFFLGdCQUFnQixFQUFFLGdCQUFnQixFQUFFLGNBQWMsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQy9ILE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sNENBQTRDLENBQUM7QUFDdEYsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7O0FBa0JyRCxNQUFNLE9BQU8sOEJBQThCO0lBQ2pDLEtBQUssR0FBRyxNQUFN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SBfZGF0YS50YWc7XG4gIH1cbn1cbiIsIjxmcy1kaWFsb2c+XG4gIEBpZiAodGl0bGUpIHtcbiAgICA8ZGl2IG1hdC1kaWFsb2ctdGl0bGU+e3t0aXRsZX19PC9kaXY+XG4gIH1cbiAgPG1hdC1kaWFsb2ctY29udGVudD5cbiAgICA8ZnMtY29udGVudC13aWRnZXQgW3RhZ109XCJ0YWdcIj48L2ZzLWNvbnRlbnQtd2lkZ2V0PlxuICA8L21hdC1kaWFsb2ctY29udGVudD5cbiAgPG1hdC1kaWFsb2ctYWN0aW9ucz5cbiAgICA8YnV0dG9uXG4gICAgICBtYXQtYnV0dG9uXG4gICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICBbbWF0LWRpYWxvZy1jbG9zZV09XCJudWxsXCI+XG4gICAgICBDbG9zZVxuICAgIDwvYnV0dG9uPlxuICA8L21hdC1kaWFsb2ctYWN0aW9ucz5cbjwvZnMtZGlhbG9nPlxuIl19
|
|
@@ -1,27 +1,46 @@
|
|
|
1
|
-
import { Component, ElementRef, Input } from '@angular/core';
|
|
1
|
+
import { Component, ElementRef, Input, ViewChild, inject } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/router";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "@firestitch/html-editor";
|
|
8
4
|
export class FsContentWidgetRendererComponent {
|
|
9
|
-
_router;
|
|
10
|
-
_el;
|
|
11
5
|
content;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
containerRef;
|
|
7
|
+
_router = inject(Router);
|
|
8
|
+
_addedScripts = [];
|
|
9
|
+
ngOnChanges(changes) {
|
|
10
|
+
if (changes.content) {
|
|
11
|
+
this._renderContent();
|
|
12
|
+
}
|
|
16
13
|
}
|
|
17
|
-
|
|
18
|
-
this.
|
|
14
|
+
ngOnDestroy() {
|
|
15
|
+
this._cleanup();
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
_renderContent() {
|
|
18
|
+
this._cleanup();
|
|
19
|
+
const container = this.containerRef.nativeElement;
|
|
20
|
+
if (!this.content) {
|
|
21
|
+
container.innerHTML = '';
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const temp = document.createElement('div');
|
|
25
|
+
temp.innerHTML = this.content;
|
|
26
|
+
const scripts = Array.from(temp.querySelectorAll('script'));
|
|
27
|
+
scripts.forEach((script) => script.remove());
|
|
28
|
+
container.innerHTML = temp.innerHTML;
|
|
29
|
+
scripts.forEach((original) => {
|
|
30
|
+
const script = document.createElement('script');
|
|
31
|
+
Array.from(original.attributes).forEach((attr) => {
|
|
32
|
+
script.setAttribute(attr.name, attr.value);
|
|
33
|
+
});
|
|
34
|
+
if (original.textContent) {
|
|
35
|
+
script.textContent = original.textContent;
|
|
36
|
+
}
|
|
37
|
+
container.appendChild(script);
|
|
38
|
+
this._addedScripts.push(script);
|
|
39
|
+
});
|
|
40
|
+
this._registerHrefs(container);
|
|
22
41
|
}
|
|
23
|
-
|
|
24
|
-
Array.from(
|
|
42
|
+
_registerHrefs(container) {
|
|
43
|
+
Array.from(container.querySelectorAll('a[href]'))
|
|
25
44
|
.filter((el) => {
|
|
26
45
|
return el.getAttribute('href').match(/^\//);
|
|
27
46
|
})
|
|
@@ -35,17 +54,20 @@ export class FsContentWidgetRendererComponent {
|
|
|
35
54
|
});
|
|
36
55
|
});
|
|
37
56
|
}
|
|
38
|
-
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
57
|
+
_cleanup() {
|
|
58
|
+
this._addedScripts.forEach((script) => script.remove());
|
|
59
|
+
this._addedScripts = [];
|
|
41
60
|
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsContentWidgetRendererComponent, isStandalone: true, selector: "fs-content-widget-renderer", inputs: { content: "content" }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div #container></div>\n", styles: [":host ::ng-deep img{max-width:100%}\n"] });
|
|
44
63
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetRendererComponent, decorators: [{
|
|
46
65
|
type: Component,
|
|
47
|
-
args: [{ selector: 'fs-content-widget-renderer', template: "<
|
|
48
|
-
}],
|
|
66
|
+
args: [{ selector: 'fs-content-widget-renderer', standalone: true, template: "<div #container></div>\n", styles: [":host ::ng-deep img{max-width:100%}\n"] }]
|
|
67
|
+
}], propDecorators: { content: [{
|
|
49
68
|
type: Input
|
|
69
|
+
}], containerRef: [{
|
|
70
|
+
type: ViewChild,
|
|
71
|
+
args: ['container', { static: true }]
|
|
50
72
|
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQtcmVuZGVyZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb250ZW50LXdpZGdldC9jb21wb25lbnRzL2NvbnRlbnQtd2lkZ2V0LXJlbmRlcmV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AgICB9KTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBfY2xlYW51cCgpOiB2b2lkIHtcbiAgICB0aGlzLl9hZGRlZFNjcmlwdHMuZm9yRWFjaCgoc2NyaXB0KSA9PiBzY3JpcHQucmVtb3ZlKCkpO1xuICAgIHRoaXMuX2FkZGVkU2NyaXB0cyA9IFtdO1xuICB9XG59XG4iLCI8ZGl2ICNjb250YWluZXI+PC9kaXY+XG4iXX0=
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Directive } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class FsContentWidgetContentDirective {
|
|
4
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsContentWidgetContentDirective, isStandalone: true, selector: "[fsContentWidgetContent]", ngImport: i0 });
|
|
6
6
|
}
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetContentDirective, decorators: [{
|
|
8
8
|
type: Directive,
|
|
9
9
|
args: [{
|
|
10
10
|
selector: '[fsContentWidgetContent]',
|
|
11
|
+
standalone: true,
|
|
11
12
|
}]
|
|
12
13
|
}] });
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQtY29udGVudC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbnRlbnQtd2lkZ2V0L2RpcmVjdGl2ZXMvY29udGVudC13aWRnZXQtY29udGVudC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPMUMsTUFBTSxPQUFPLCtCQUErQjt1R0FBL0IsK0JBQStCOzJGQUEvQiwrQkFBK0I7OzJGQUEvQiwrQkFBK0I7a0JBSjNDLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLDBCQUEwQjtvQkFDcEMsVUFBVSxFQUFFLElBQUk7aUJBQ25CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cblxuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6ICdbZnNDb250ZW50V2lkZ2V0Q29udGVudF0nLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG59KVxuZXhwb3J0IGNsYXNzIEZzQ29udGVudFdpZGdldENvbnRlbnREaXJlY3RpdmUge1xuXG59XG4iXX0=
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
1
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import {
|
|
4
|
-
import { FsContentWidgetComponent } from './components/content-widget';
|
|
5
|
-
import { FsContentWidgetRendererComponent } from './components/content-widget-renderer';
|
|
6
|
-
import { FsContentWidgetDialogComponent } from './components';
|
|
7
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
8
3
|
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
9
5
|
import { FsDialogModule } from '@firestitch/dialog';
|
|
6
|
+
import { FsHtmlEditorModule } from '@firestitch/html-editor';
|
|
7
|
+
import { FsContentWidgetDialogComponent } from './components';
|
|
8
|
+
import { FsContentWidgetComponent } from './components/content-widget';
|
|
9
|
+
import { FsContentWidgetRendererComponent } from './components/content-widget-renderer';
|
|
10
10
|
import { FsContentWidgetContentDirective } from './directives';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export class FsContentWidgetModule {
|
|
@@ -15,25 +15,25 @@ export class FsContentWidgetModule {
|
|
|
15
15
|
ngModule: FsContentWidgetModule,
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
20
|
-
FsContentWidgetComponent,
|
|
21
|
-
FsContentWidgetDialogComponent,
|
|
22
|
-
FsContentWidgetContentDirective], imports: [CommonModule,
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetModule, imports: [CommonModule,
|
|
23
20
|
MatDialogModule,
|
|
24
21
|
MatButtonModule,
|
|
25
22
|
FsHtmlEditorModule,
|
|
26
23
|
FsDialogModule,
|
|
27
|
-
|
|
24
|
+
FsContentWidgetRendererComponent,
|
|
25
|
+
FsContentWidgetComponent,
|
|
26
|
+
FsContentWidgetDialogComponent,
|
|
27
|
+
FsContentWidgetContentDirective], exports: [FsContentWidgetComponent,
|
|
28
28
|
FsContentWidgetContentDirective] });
|
|
29
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
29
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetModule, imports: [CommonModule,
|
|
30
30
|
MatDialogModule,
|
|
31
31
|
MatButtonModule,
|
|
32
32
|
FsHtmlEditorModule,
|
|
33
33
|
FsDialogModule,
|
|
34
|
-
|
|
34
|
+
FsContentWidgetDialogComponent] });
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsContentWidgetModule, decorators: [{
|
|
37
37
|
type: NgModule,
|
|
38
38
|
args: [{
|
|
39
39
|
imports: [
|
|
@@ -42,18 +42,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
42
42
|
MatButtonModule,
|
|
43
43
|
FsHtmlEditorModule,
|
|
44
44
|
FsDialogModule,
|
|
45
|
-
|
|
46
|
-
],
|
|
47
|
-
exports: [
|
|
45
|
+
FsContentWidgetRendererComponent,
|
|
48
46
|
FsContentWidgetComponent,
|
|
47
|
+
FsContentWidgetDialogComponent,
|
|
49
48
|
FsContentWidgetContentDirective,
|
|
50
49
|
],
|
|
51
|
-
|
|
52
|
-
FsContentWidgetRendererComponent,
|
|
50
|
+
exports: [
|
|
53
51
|
FsContentWidgetComponent,
|
|
54
|
-
FsContentWidgetDialogComponent,
|
|
55
52
|
FsContentWidgetContentDirective,
|
|
56
53
|
],
|
|
57
54
|
}]
|
|
58
55
|
}] });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC13aWRnZXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9jb250ZW50LXdpZGdldC9mcy1jb250ZW50LXdpZGdldC5tb2R1b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FJlbmRlcmVyQ29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL2NvbnRlbnQtd2lkZ2V0LXJlbmRlcmVyJztcbmltcG9ydCB7IEZzQ29udGVudFdpZGdldENvbnRlbnREaXJlY3RpdmUgfSBmcm9tICcuL2RpcmVjdGl2ZXMnO1xuXG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgTWF0RGlhbG9nTW9kdWxlLFxuICAgIE1hdEJ1dHRvbk1vZHVsZSxcbiAgICBGc0h0bWxFZGl0b3JNb2R1bGUsXG4gICAgRnNEaWFsb2dNb2R1bGUsXG4gICAgRnNDb250ZW50V2lkZ2V0UmVuZGVyZXJDb21wb25lbnQsXG4gICAgRnNDb250ZW50V2lkZ2V0Q29tcG9uZW50LFxuICAgIEZzQ29udGVudFdpZGdldERpYWxvZ0NvbXBvbmVudCxcbiAgICBGc0NvbnRlbnRXaWRnZXRDb250ZW50RGlyZWN0aXZlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRnNDb250ZW50V2lkZ2V0Q29tcG9uZW50LFxuICAgIEZzQ29udGVudFdpZGdldENvbnRlbnREaXJlY3RpdmUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIEZzQ29udGVudFdpZGdldE1vZHVsZSB7XG4gIHB1YmxpYyBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPEZzQ29udGVudFdpZGdldE1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogRnNDb250ZW50V2lkZ2V0TW9kdWxlLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC13aWRnZXQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb250ZW50LXdpZGdldC9pbnRlcmZhY2VzL2NvbnRlbnQtd2lkZ2V0LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIEZzQ29udGVudFdpZGdldENvbmZpZyB7XG4gIGZldGNoQ29udGVudFdpZGdldDogKHRhZzogc3RyaW5nKSA9PiBPYnNlcnZhYmxlPHN0cmluZz47XG59XG4iXX0=
|