@firestitch/content 12.2.8 → 12.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/app/consts/index.d.ts +1 -1
- package/app/consts/page-types.const.d.ts +5 -5
- package/app/enums/editor-type.d.ts +6 -6
- package/app/enums/index.d.ts +2 -2
- package/app/enums/page-type.enum.d.ts +6 -6
- package/app/injectors/content-config.injector.d.ts +2 -2
- package/app/injectors/index.d.ts +1 -1
- package/app/interfaces/content-config.d.ts +21 -21
- package/app/interfaces/content-layout.d.ts +10 -10
- package/app/interfaces/content-page.d.ts +14 -14
- package/app/interfaces/content-style.d.ts +4 -4
- package/app/interfaces/index.d.ts +4 -4
- package/app/modules/content/components/content/content.component.d.ts +25 -25
- package/app/modules/content/components/content/index.d.ts +1 -1
- package/app/modules/content/components/content-renderer/content-renderer.component.d.ts +24 -24
- package/app/modules/content/components/content-renderer/index.d.ts +1 -1
- package/app/modules/content/fs-content.module.d.ts +10 -10
- package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +27 -27
- package/app/modules/content-layouts/components/content-layout/index.d.ts +1 -1
- package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +50 -50
- package/app/modules/content-layouts/components/content-layout-editor/index.d.ts +1 -1
- package/app/modules/content-layouts/components/content-layouts/content-layouts.component.d.ts +21 -21
- package/app/modules/content-layouts/components/content-layouts/index.d.ts +1 -1
- package/app/modules/content-layouts/components/index.d.ts +3 -3
- package/app/modules/content-layouts/fs-content-layouts.module.d.ts +28 -28
- package/app/modules/content-pages/components/content-page/content-page.component.d.ts +32 -32
- package/app/modules/content-pages/components/content-page/index.d.ts +1 -1
- package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +51 -51
- package/app/modules/content-pages/components/content-page-editor/index.d.ts +1 -1
- package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +24 -24
- package/app/modules/content-pages/components/content-pages/index.d.ts +1 -1
- package/app/modules/content-pages/components/index.d.ts +3 -3
- package/app/modules/content-pages/fs-content-pages.module.d.ts +31 -31
- package/app/modules/content-style/components/content-style/content-style.component.d.ts +27 -27
- package/app/modules/content-style/components/content-style/index.d.ts +1 -1
- package/app/modules/content-style/fs-content-style.module.d.ts +14 -14
- package/app/modules/editor/components/editor/editor.component.d.ts +47 -47
- package/app/modules/editor/components/editor/index.d.ts +1 -1
- package/app/modules/editor/fs-content-editor.module.d.ts +23 -23
- package/app/modules/editor/index.d.ts +1 -1
- package/bundles/firestitch-content.umd.js +1330 -1330
- package/bundles/firestitch-content.umd.js.map +1 -1
- package/esm2015/app/consts/index.js +1 -1
- package/esm2015/app/consts/page-types.const.js +7 -7
- package/esm2015/app/enums/editor-type.js +7 -7
- package/esm2015/app/enums/index.js +3 -3
- package/esm2015/app/enums/page-type.enum.js +7 -7
- package/esm2015/app/injectors/content-config.injector.js +2 -2
- package/esm2015/app/injectors/index.js +1 -1
- package/esm2015/app/interfaces/content-config.js +1 -1
- package/esm2015/app/interfaces/content-layout.js +1 -1
- package/esm2015/app/interfaces/content-page.js +1 -1
- package/esm2015/app/interfaces/content-style.js +1 -1
- package/esm2015/app/interfaces/index.js +5 -5
- package/esm2015/app/modules/content/components/content/content.component.js +84 -84
- package/esm2015/app/modules/content/components/content/index.js +1 -1
- package/esm2015/app/modules/content/components/content-renderer/content-renderer.component.js +76 -76
- package/esm2015/app/modules/content/components/content-renderer/index.js +1 -1
- package/esm2015/app/modules/content/fs-content.module.js +32 -32
- package/esm2015/app/modules/content-layouts/components/content-layout/content-layout.component.js +72 -72
- package/esm2015/app/modules/content-layouts/components/content-layout/index.js +1 -1
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +159 -159
- package/esm2015/app/modules/content-layouts/components/content-layout-editor/index.js +1 -1
- package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +120 -120
- package/esm2015/app/modules/content-layouts/components/content-layouts/index.js +1 -1
- package/esm2015/app/modules/content-layouts/components/index.js +4 -4
- package/esm2015/app/modules/content-layouts/fs-content-layouts.module.js +103 -103
- package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +83 -83
- package/esm2015/app/modules/content-pages/components/content-page/index.js +1 -1
- package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +162 -162
- package/esm2015/app/modules/content-pages/components/content-page-editor/index.js +1 -1
- package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +129 -129
- package/esm2015/app/modules/content-pages/components/content-pages/index.js +1 -1
- package/esm2015/app/modules/content-pages/components/index.js +4 -4
- package/esm2015/app/modules/content-pages/fs-content-pages.module.js +112 -112
- package/esm2015/app/modules/content-style/components/content-style/content-style.component.js +70 -70
- package/esm2015/app/modules/content-style/components/content-style/index.js +1 -1
- package/esm2015/app/modules/content-style/fs-content-style.module.js +49 -49
- package/esm2015/app/modules/editor/components/editor/editor.component.js +144 -144
- package/esm2015/app/modules/editor/components/editor/index.js +1 -1
- package/esm2015/app/modules/editor/fs-content-editor.module.js +85 -85
- package/esm2015/app/modules/editor/index.js +1 -1
- package/esm2015/firestitch-content.js +4 -4
- package/esm2015/public_api.js +10 -10
- package/fesm2015/firestitch-content.js +1241 -1241
- package/fesm2015/firestitch-content.js.map +1 -1
- package/firestitch-content.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +10 -10
@@ -1,85 +1,85 @@
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, } from '@angular/core';
|
2
|
-
import { Title } from '@angular/platform-browser';
|
3
|
-
import { NavigationEnd, Router } from '@angular/router';
|
4
|
-
import { HtmlRenderer } from '@firestitch/body';
|
5
|
-
import { Subject } from 'rxjs';
|
6
|
-
import { filter, takeUntil } from 'rxjs/operators';
|
7
|
-
import { FS_CONTENT_CONFIG } from '../../../../injectors';
|
8
|
-
import * as i0 from "@angular/core";
|
9
|
-
import * as i1 from "@angular/platform-browser";
|
10
|
-
import * as i2 from "@angular/router";
|
11
|
-
import * as i3 from "@firestitch/body";
|
12
|
-
import * as i4 from "../content-renderer/content-renderer.component";
|
13
|
-
import * as i5 from "@angular/common";
|
14
|
-
export class FsContentComponent {
|
15
|
-
constructor(_config, _title, _cdRef, _router, _el, _htmlRenderer) {
|
16
|
-
this._config = _config;
|
17
|
-
this._title = _title;
|
18
|
-
this._cdRef = _cdRef;
|
19
|
-
this._router = _router;
|
20
|
-
this._el = _el;
|
21
|
-
this._htmlRenderer = _htmlRenderer;
|
22
|
-
this._destroy$ = new Subject();
|
23
|
-
}
|
24
|
-
ngOnInit() {
|
25
|
-
this._initContent();
|
26
|
-
this._initStyles();
|
27
|
-
}
|
28
|
-
get el() {
|
29
|
-
return this._el.nativeElement;
|
30
|
-
}
|
31
|
-
ngOnDestroy() {
|
32
|
-
this._destroy$.next();
|
33
|
-
this._destroy$.complete();
|
34
|
-
this._title.setTitle('');
|
35
|
-
}
|
36
|
-
_initStyles() {
|
37
|
-
if (this._config.loadContentStyleCss) {
|
38
|
-
this._config.loadContentStyleCss()
|
39
|
-
.subscribe((styles) => {
|
40
|
-
this._htmlRenderer.addStyle(styles, { id: 'content-sytle' });
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
_initContent() {
|
45
|
-
this._loadContent();
|
46
|
-
this._router.events
|
47
|
-
.pipe(filter((e) => e instanceof NavigationEnd), takeUntil(this._destroy$))
|
48
|
-
.subscribe((e) => {
|
49
|
-
this._loadContent();
|
50
|
-
});
|
51
|
-
}
|
52
|
-
_loadContent() {
|
53
|
-
const path = window.location.pathname;
|
54
|
-
this._config.loadContent(path)
|
55
|
-
.subscribe((contentPage) => {
|
56
|
-
if (contentPage.title) {
|
57
|
-
this._title.setTitle(contentPage.title);
|
58
|
-
let ogTitleEl = document.querySelector('head meta[property="og:title"]');
|
59
|
-
if (!ogTitleEl) {
|
60
|
-
ogTitleEl = document.createElement('meta');
|
61
|
-
ogTitleEl.setAttribute('property', 'og:title');
|
62
|
-
document.getElementsByTagName('head')[0].appendChild(ogTitleEl);
|
63
|
-
}
|
64
|
-
ogTitleEl.setAttribute('content', contentPage.title);
|
65
|
-
}
|
66
|
-
this.contentPage = contentPage;
|
67
|
-
this._cdRef.markForCheck();
|
68
|
-
});
|
69
|
-
}
|
70
|
-
}
|
71
|
-
FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.Title }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
72
|
-
FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentComponent, selector: "fs-content", ngImport: i0, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""], components: [{ type: i4.ContentRendererComponent, selector: "fs-content-renderer", inputs: ["contentPage"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, decorators: [{
|
74
|
-
type: Component,
|
75
|
-
args: [{
|
76
|
-
selector: 'fs-content',
|
77
|
-
templateUrl: './content.component.html',
|
78
|
-
styleUrls: ['./content.component.scss'],
|
79
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
80
|
-
}]
|
81
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
82
|
-
type: Inject,
|
83
|
-
args: [FS_CONTENT_CONFIG]
|
84
|
-
}] }, { type: i1.Title }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; } });
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, } from '@angular/core';
|
2
|
+
import { Title } from '@angular/platform-browser';
|
3
|
+
import { NavigationEnd, Router } from '@angular/router';
|
4
|
+
import { HtmlRenderer } from '@firestitch/body';
|
5
|
+
import { Subject } from 'rxjs';
|
6
|
+
import { filter, takeUntil } from 'rxjs/operators';
|
7
|
+
import { FS_CONTENT_CONFIG } from '../../../../injectors';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@angular/platform-browser";
|
10
|
+
import * as i2 from "@angular/router";
|
11
|
+
import * as i3 from "@firestitch/body";
|
12
|
+
import * as i4 from "../content-renderer/content-renderer.component";
|
13
|
+
import * as i5 from "@angular/common";
|
14
|
+
export class FsContentComponent {
|
15
|
+
constructor(_config, _title, _cdRef, _router, _el, _htmlRenderer) {
|
16
|
+
this._config = _config;
|
17
|
+
this._title = _title;
|
18
|
+
this._cdRef = _cdRef;
|
19
|
+
this._router = _router;
|
20
|
+
this._el = _el;
|
21
|
+
this._htmlRenderer = _htmlRenderer;
|
22
|
+
this._destroy$ = new Subject();
|
23
|
+
}
|
24
|
+
ngOnInit() {
|
25
|
+
this._initContent();
|
26
|
+
this._initStyles();
|
27
|
+
}
|
28
|
+
get el() {
|
29
|
+
return this._el.nativeElement;
|
30
|
+
}
|
31
|
+
ngOnDestroy() {
|
32
|
+
this._destroy$.next();
|
33
|
+
this._destroy$.complete();
|
34
|
+
this._title.setTitle('');
|
35
|
+
}
|
36
|
+
_initStyles() {
|
37
|
+
if (this._config.loadContentStyleCss) {
|
38
|
+
this._config.loadContentStyleCss()
|
39
|
+
.subscribe((styles) => {
|
40
|
+
this._htmlRenderer.addStyle(styles, { id: 'content-sytle' });
|
41
|
+
});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
_initContent() {
|
45
|
+
this._loadContent();
|
46
|
+
this._router.events
|
47
|
+
.pipe(filter((e) => e instanceof NavigationEnd), takeUntil(this._destroy$))
|
48
|
+
.subscribe((e) => {
|
49
|
+
this._loadContent();
|
50
|
+
});
|
51
|
+
}
|
52
|
+
_loadContent() {
|
53
|
+
const path = window.location.pathname;
|
54
|
+
this._config.loadContent(path)
|
55
|
+
.subscribe((contentPage) => {
|
56
|
+
if (contentPage.title) {
|
57
|
+
this._title.setTitle(contentPage.title);
|
58
|
+
let ogTitleEl = document.querySelector('head meta[property="og:title"]');
|
59
|
+
if (!ogTitleEl) {
|
60
|
+
ogTitleEl = document.createElement('meta');
|
61
|
+
ogTitleEl.setAttribute('property', 'og:title');
|
62
|
+
document.getElementsByTagName('head')[0].appendChild(ogTitleEl);
|
63
|
+
}
|
64
|
+
ogTitleEl.setAttribute('content', contentPage.title);
|
65
|
+
}
|
66
|
+
this.contentPage = contentPage;
|
67
|
+
this._cdRef.markForCheck();
|
68
|
+
});
|
69
|
+
}
|
70
|
+
}
|
71
|
+
FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.Title }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
72
|
+
FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentComponent, selector: "fs-content", ngImport: i0, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""], components: [{ type: i4.ContentRendererComponent, selector: "fs-content-renderer", inputs: ["contentPage"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, decorators: [{
|
74
|
+
type: Component,
|
75
|
+
args: [{
|
76
|
+
selector: 'fs-content',
|
77
|
+
templateUrl: './content.component.html',
|
78
|
+
styleUrls: ['./content.component.scss'],
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
80
|
+
}]
|
81
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
82
|
+
type: Inject,
|
83
|
+
args: [FS_CONTENT_CONFIG]
|
84
|
+
}] }, { type: i1.Title }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; } });
|
85
85
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLE1BQU0sR0FHUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV4RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFaEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRW5ELE9BQU8sRUFBRS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bnRlbnQtcmVuZGVyZXIgW2NvbnRlbnRQYWdlXT1cImNvbnRlbnRQYWdlXCI+PC9mcy1jb250ZW50LXJlbmRlcmVyPlxuPC9uZy1jb250YWluZXI+Il19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './content.component';
|
1
|
+
export * from './content.component';
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC5jb21wb25lbnQnO1xuIl19
|
package/esm2015/app/modules/content/components/content-renderer/content-renderer.component.js
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, } from '@angular/core';
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
3
|
-
import { Router } from '@angular/router';
|
4
|
-
import { HtmlRenderer } from '@firestitch/body';
|
5
|
-
import { Subject } from 'rxjs';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@angular/platform-browser";
|
8
|
-
import * as i2 from "@angular/router";
|
9
|
-
import * as i3 from "@firestitch/body";
|
10
|
-
import * as i4 from "@angular/common";
|
11
|
-
export class ContentRendererComponent {
|
12
|
-
constructor(_sanitizer, _router, _el, _htmlRenderer) {
|
13
|
-
this._sanitizer = _sanitizer;
|
14
|
-
this._router = _router;
|
15
|
-
this._el = _el;
|
16
|
-
this._htmlRenderer = _htmlRenderer;
|
17
|
-
this._destroy$ = new Subject();
|
18
|
-
}
|
19
|
-
ngOnInit() {
|
20
|
-
this._htmlRenderer.addStyle(this.contentPage.styles, { id: 'contentPageStyles' });
|
21
|
-
this.content = this._sanitizer.bypassSecurityTrustHtml(this.contentPage.content);
|
22
|
-
}
|
23
|
-
ngAfterViewChecked() {
|
24
|
-
this.registerHrefs();
|
25
|
-
if (this.contentPage.js) {
|
26
|
-
const script = document.createElement('script');
|
27
|
-
script.text = this.contentPage.js;
|
28
|
-
this.script.nativeElement.after(script);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
registerHrefs() {
|
32
|
-
Array.from(this.el.querySelectorAll('a[href]'))
|
33
|
-
.filter((el) => {
|
34
|
-
return el.getAttribute('href').match(/^\//);
|
35
|
-
})
|
36
|
-
.forEach((el) => {
|
37
|
-
el.addEventListener('click', (event) => {
|
38
|
-
if (!event.shiftKey && !event.ctrlKey) {
|
39
|
-
event.preventDefault();
|
40
|
-
const href = el.getAttribute('href');
|
41
|
-
this._router.navigateByUrl(href);
|
42
|
-
}
|
43
|
-
});
|
44
|
-
});
|
45
|
-
}
|
46
|
-
get el() {
|
47
|
-
return this._el.nativeElement;
|
48
|
-
}
|
49
|
-
ngOnDestroy() {
|
50
|
-
this.removeStyles();
|
51
|
-
this._destroy$.next();
|
52
|
-
this._destroy$.complete();
|
53
|
-
}
|
54
|
-
removeStyles() {
|
55
|
-
const el = document.querySelector('#contentPageStyles');
|
56
|
-
if (el) {
|
57
|
-
el.remove();
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
ContentRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentRendererComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
62
|
-
ContentRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContentRendererComponent, selector: "fs-content-renderer", inputs: { contentPage: "contentPage" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["script"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentRendererComponent, decorators: [{
|
64
|
-
type: Component,
|
65
|
-
args: [{
|
66
|
-
selector: 'fs-content-renderer',
|
67
|
-
templateUrl: './content-renderer.component.html',
|
68
|
-
styleUrls: ['./content-renderer.component.scss'],
|
69
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
70
|
-
}]
|
71
|
-
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; }, propDecorators: { script: [{
|
72
|
-
type: ViewChild,
|
73
|
-
args: ['script', { read: ElementRef }]
|
74
|
-
}], contentPage: [{
|
75
|
-
type: Input
|
76
|
-
}] } });
|
1
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, } from '@angular/core';
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
3
|
+
import { Router } from '@angular/router';
|
4
|
+
import { HtmlRenderer } from '@firestitch/body';
|
5
|
+
import { Subject } from 'rxjs';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
import * as i1 from "@angular/platform-browser";
|
8
|
+
import * as i2 from "@angular/router";
|
9
|
+
import * as i3 from "@firestitch/body";
|
10
|
+
import * as i4 from "@angular/common";
|
11
|
+
export class ContentRendererComponent {
|
12
|
+
constructor(_sanitizer, _router, _el, _htmlRenderer) {
|
13
|
+
this._sanitizer = _sanitizer;
|
14
|
+
this._router = _router;
|
15
|
+
this._el = _el;
|
16
|
+
this._htmlRenderer = _htmlRenderer;
|
17
|
+
this._destroy$ = new Subject();
|
18
|
+
}
|
19
|
+
ngOnInit() {
|
20
|
+
this._htmlRenderer.addStyle(this.contentPage.styles, { id: 'contentPageStyles' });
|
21
|
+
this.content = this._sanitizer.bypassSecurityTrustHtml(this.contentPage.content);
|
22
|
+
}
|
23
|
+
ngAfterViewChecked() {
|
24
|
+
this.registerHrefs();
|
25
|
+
if (this.contentPage.js) {
|
26
|
+
const script = document.createElement('script');
|
27
|
+
script.text = this.contentPage.js;
|
28
|
+
this.script.nativeElement.after(script);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
registerHrefs() {
|
32
|
+
Array.from(this.el.querySelectorAll('a[href]'))
|
33
|
+
.filter((el) => {
|
34
|
+
return el.getAttribute('href').match(/^\//);
|
35
|
+
})
|
36
|
+
.forEach((el) => {
|
37
|
+
el.addEventListener('click', (event) => {
|
38
|
+
if (!event.shiftKey && !event.ctrlKey) {
|
39
|
+
event.preventDefault();
|
40
|
+
const href = el.getAttribute('href');
|
41
|
+
this._router.navigateByUrl(href);
|
42
|
+
}
|
43
|
+
});
|
44
|
+
});
|
45
|
+
}
|
46
|
+
get el() {
|
47
|
+
return this._el.nativeElement;
|
48
|
+
}
|
49
|
+
ngOnDestroy() {
|
50
|
+
this.removeStyles();
|
51
|
+
this._destroy$.next();
|
52
|
+
this._destroy$.complete();
|
53
|
+
}
|
54
|
+
removeStyles() {
|
55
|
+
const el = document.querySelector('#contentPageStyles');
|
56
|
+
if (el) {
|
57
|
+
el.remove();
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
ContentRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentRendererComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
|
62
|
+
ContentRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContentRendererComponent, selector: "fs-content-renderer", inputs: { contentPage: "contentPage" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["script"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ContentRendererComponent, decorators: [{
|
64
|
+
type: Component,
|
65
|
+
args: [{
|
66
|
+
selector: 'fs-content-renderer',
|
67
|
+
templateUrl: './content-renderer.component.html',
|
68
|
+
styleUrls: ['./content-renderer.component.scss'],
|
69
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
70
|
+
}]
|
71
|
+
}], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; }, propDecorators: { script: [{
|
72
|
+
type: ViewChild,
|
73
|
+
args: ['script', { read: ElementRef }]
|
74
|
+
}], contentPage: [{
|
75
|
+
type: Input
|
76
|
+
}] } });
|
77
77
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzI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ldmVudC5zaGlmdEtleSAmJiAhZXZlbnQuY3RybEtleSkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIGNvbnN0IGhyZWYgPSBlbC5nZXRBdHRyaWJ1dGUoJ2hyZWYnKTtcbiAgICAgICAgICAgIHRoaXMuX3JvdXRlci5uYXZpZ2F0ZUJ5VXJsKGhyZWYpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBnZXQgZWwoKTogYW55IHtcbiAgICByZXR1cm4gdGhpcy5fZWwubmF0aXZlRWxlbWVudDtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnJlbW92ZVN0eWxlcygpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLm5leHQoKTtcbiAgICB0aGlzLl9kZXN0cm95JC5jb21wbGV0ZSgpO1xuICB9XG5cbiAgcHVibGljIHJlbW92ZVN0eWxlcygpOiB2b2lkIHtcbiAgICBjb25zdCBlbCA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJyNjb250ZW50UGFnZVN0eWxlcycpO1xuICAgIGlmKGVsKSB7XG4gICAgICBlbC5yZW1vdmUoKTtcbiAgICB9XG4gIH1cblxufVxuIiwiPGRpdiAqbmdJZj1cImNvbnRlbnRcIiBbaW5uZXJIVE1MXT1cImNvbnRlbnRcIj48L2Rpdj5cbjxzcGFuICNzY3JpcHQ+PC9zcGFuPiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './content-renderer.component';
|
1
|
+
export * from './content-renderer.component';
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1yZW5kZXJlci5jb21wb25lbnQnO1xuIl19
|
@@ -1,33 +1,33 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { FsHtmlEditorModule } from '@firestitch/html-editor';
|
4
|
-
import { FsContentComponent } from './components/content';
|
5
|
-
import { ContentRendererComponent } from './components/content-renderer';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export class FsContentModule {
|
8
|
-
}
|
9
|
-
FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
10
|
-
FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, declarations: [FsContentComponent,
|
11
|
-
ContentRendererComponent], imports: [CommonModule,
|
12
|
-
FsHtmlEditorModule], exports: [FsContentComponent] });
|
13
|
-
FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, imports: [[
|
14
|
-
CommonModule,
|
15
|
-
FsHtmlEditorModule,
|
16
|
-
]] });
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, decorators: [{
|
18
|
-
type: NgModule,
|
19
|
-
args: [{
|
20
|
-
imports: [
|
21
|
-
CommonModule,
|
22
|
-
FsHtmlEditorModule,
|
23
|
-
],
|
24
|
-
exports: [
|
25
|
-
FsContentComponent,
|
26
|
-
],
|
27
|
-
declarations: [
|
28
|
-
FsContentComponent,
|
29
|
-
ContentRendererComponent,
|
30
|
-
],
|
31
|
-
}]
|
32
|
-
}] });
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FsHtmlEditorModule } from '@firestitch/html-editor';
|
4
|
+
import { FsContentComponent } from './components/content';
|
5
|
+
import { ContentRendererComponent } from './components/content-renderer';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export class FsContentModule {
|
8
|
+
}
|
9
|
+
FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
10
|
+
FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, declarations: [FsContentComponent,
|
11
|
+
ContentRendererComponent], imports: [CommonModule,
|
12
|
+
FsHtmlEditorModule], exports: [FsContentComponent] });
|
13
|
+
FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, imports: [[
|
14
|
+
CommonModule,
|
15
|
+
FsHtmlEditorModule,
|
16
|
+
]] });
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, decorators: [{
|
18
|
+
type: NgModule,
|
19
|
+
args: [{
|
20
|
+
imports: [
|
21
|
+
CommonModule,
|
22
|
+
FsHtmlEditorModule,
|
23
|
+
],
|
24
|
+
exports: [
|
25
|
+
FsContentComponent,
|
26
|
+
],
|
27
|
+
declarations: [
|
28
|
+
FsContentComponent,
|
29
|
+
ContentRendererComponent,
|
30
|
+
],
|
31
|
+
}]
|
32
|
+
}] });
|
33
33
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIi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