@dotcms/angular 0.0.1-beta.4 → 0.0.1-beta.40
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/README.md +642 -167
- package/dotcms-angular.d.ts.map +1 -1
- package/esm2022/dotcms-angular.mjs +2 -2
- package/esm2022/lib/deprecated/components/dot-editable-text/dot-editable-text.component.mjs +229 -0
- package/esm2022/lib/deprecated/components/dot-editable-text/utils.mjs +43 -0
- package/esm2022/lib/deprecated/components/no-component/no-component.component.mjs +32 -0
- package/esm2022/lib/deprecated/deprecated-api.mjs +11 -0
- package/esm2022/lib/{layout → deprecated/layout}/column/column.component.mjs +1 -1
- package/esm2022/lib/deprecated/layout/container/container.component.mjs +126 -0
- package/esm2022/lib/deprecated/layout/contentlet/contentlet.component.mjs +120 -0
- package/esm2022/lib/deprecated/layout/dotcms-layout/dotcms-layout.component.mjs +106 -0
- package/esm2022/lib/{layout → deprecated/layout}/row/row.component.mjs +1 -1
- package/esm2022/lib/deprecated/models/dotcms.model.mjs +3 -0
- package/esm2022/lib/deprecated/models/index.mjs +3 -0
- package/esm2022/lib/deprecated/services/dotcms-context/page-context.service.mjs +79 -0
- package/esm2022/lib/deprecated/utils/image_loader.mjs +74 -0
- package/esm2022/lib/deprecated/utils/index.mjs +84 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/code.component.mjs +49 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.mjs +125 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/image.component.mjs +25 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/list.component.mjs +66 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/table.component.mjs +97 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/text.component.mjs +231 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/unknown.component.mjs +65 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/blocks/video.component.mjs +48 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.mjs +50 -0
- package/esm2022/next/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.mjs +45 -0
- package/esm2022/next/components/dotcms-editable-text/dotcms-editable-text.component.mjs +240 -0
- package/esm2022/next/components/dotcms-editable-text/utils.mjs +20 -0
- package/esm2022/next/components/dotcms-layout-body/components/column/column.component.mjs +45 -0
- package/esm2022/next/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.mjs +52 -0
- package/esm2022/next/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.mjs +47 -0
- package/esm2022/next/components/dotcms-layout-body/components/container/container.component.mjs +99 -0
- package/esm2022/next/components/dotcms-layout-body/components/contentlet/contentlet.component.mjs +145 -0
- package/esm2022/next/components/dotcms-layout-body/components/fallback-component/fallback-component.component.mjs +47 -0
- package/esm2022/next/components/dotcms-layout-body/components/page-error-message/page-error-message.component.mjs +55 -0
- package/esm2022/next/components/dotcms-layout-body/components/row/row.component.mjs +46 -0
- package/esm2022/next/components/dotcms-layout-body/dotcms-layout-body.component.mjs +69 -0
- package/esm2022/next/directives/dotcms-show-when/dotcms-show-when.directive.mjs +49 -0
- package/esm2022/next/dotcms-angular-next.mjs +5 -0
- package/esm2022/next/models/index.mjs +3 -0
- package/esm2022/next/providers/dotcms-client/dotcms-client.provider.mjs +52 -0
- package/esm2022/next/providers/dotcms-image-loader/dotcms-image_loader.mjs +74 -0
- package/esm2022/next/public_api.mjs +8 -0
- package/esm2022/next/services/dotcms-editable-page.service.mjs +93 -0
- package/esm2022/next/store/dotcms.store.mjs +61 -0
- package/esm2022/public_api.mjs +2 -0
- package/fesm2022/dotcms-angular-next.mjs +1904 -0
- package/fesm2022/dotcms-angular-next.mjs.map +1 -0
- package/fesm2022/dotcms-angular.mjs +103 -10
- package/fesm2022/dotcms-angular.mjs.map +1 -1
- package/index.d.ts +6 -5
- package/lib/{components → deprecated/components}/dot-editable-text/dot-editable-text.component.d.ts +10 -6
- package/lib/deprecated/components/dot-editable-text/dot-editable-text.component.d.ts.map +1 -0
- package/lib/deprecated/components/dot-editable-text/utils.d.ts.map +1 -0
- package/lib/deprecated/components/no-component/no-component.component.d.ts.map +1 -0
- package/lib/deprecated/deprecated-api.d.ts +11 -0
- package/lib/deprecated/deprecated-api.d.ts.map +1 -0
- package/lib/deprecated/layout/column/column.component.d.ts.map +1 -0
- package/lib/deprecated/layout/container/container.component.d.ts.map +1 -0
- package/lib/deprecated/layout/contentlet/contentlet.component.d.ts.map +1 -0
- package/lib/{layout → deprecated/layout}/dotcms-layout/dotcms-layout.component.d.ts +5 -0
- package/lib/deprecated/layout/dotcms-layout/dotcms-layout.component.d.ts.map +1 -0
- package/lib/deprecated/layout/row/row.component.d.ts.map +1 -0
- package/lib/{models → deprecated/models}/dotcms.model.d.ts +2 -2
- package/lib/deprecated/models/dotcms.model.d.ts.map +1 -0
- package/lib/deprecated/models/index.d.ts.map +1 -0
- package/lib/{services → deprecated/services}/dotcms-context/page-context.service.d.ts +4 -0
- package/lib/deprecated/services/dotcms-context/page-context.service.d.ts.map +1 -0
- package/lib/deprecated/utils/image_loader.d.ts +21 -0
- package/lib/deprecated/utils/image_loader.d.ts.map +1 -0
- package/lib/deprecated/utils/index.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/code.component.d.ts +10 -0
- package/next/components/dotcms-block-editor-renderer/blocks/code.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts +34 -0
- package/next/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/image.component.d.ts +9 -0
- package/next/components/dotcms-block-editor-renderer/blocks/image.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/list.component.d.ts +14 -0
- package/next/components/dotcms-block-editor-renderer/blocks/list.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/table.component.d.ts +10 -0
- package/next/components/dotcms-block-editor-renderer/blocks/table.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/text.component.d.ts +27 -0
- package/next/components/dotcms-block-editor-renderer/blocks/text.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts +18 -0
- package/next/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/blocks/video.component.d.ts +10 -0
- package/next/components/dotcms-block-editor-renderer/blocks/video.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts +39 -0
- package/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts.map +1 -0
- package/next/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts +12 -0
- package/next/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts.map +1 -0
- package/next/components/dotcms-editable-text/dotcms-editable-text.component.d.ts +129 -0
- package/next/components/dotcms-editable-text/dotcms-editable-text.component.d.ts.map +1 -0
- package/next/components/dotcms-editable-text/utils.d.ts +7 -0
- package/next/components/dotcms-editable-text/utils.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/column/column.component.d.ts +21 -0
- package/next/components/dotcms-layout-body/components/column/column.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts +27 -0
- package/next/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts +23 -0
- package/next/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/container/container.component.d.ts +32 -0
- package/next/components/dotcms-layout-body/components/container/container.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts +48 -0
- package/next/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts +16 -0
- package/next/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts +13 -0
- package/next/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/components/row/row.component.d.ts +22 -0
- package/next/components/dotcms-layout-body/components/row/row.component.d.ts.map +1 -0
- package/next/components/dotcms-layout-body/dotcms-layout-body.component.d.ts +30 -0
- package/next/components/dotcms-layout-body/dotcms-layout-body.component.d.ts.map +1 -0
- package/next/directives/dotcms-show-when/dotcms-show-when.directive.d.ts +21 -0
- package/next/directives/dotcms-show-when/dotcms-show-when.directive.d.ts.map +1 -0
- package/next/dotcms-angular-next.d.ts.map +1 -0
- package/next/index.d.ts +6 -0
- package/next/models/index.d.ts +39 -0
- package/next/models/index.d.ts.map +1 -0
- package/next/providers/dotcms-client/dotcms-client.provider.d.ts +60 -0
- package/next/providers/dotcms-client/dotcms-client.provider.d.ts.map +1 -0
- package/next/providers/dotcms-image-loader/dotcms-image_loader.d.ts +21 -0
- package/next/providers/dotcms-image-loader/dotcms-image_loader.d.ts.map +1 -0
- package/next/public_api.d.ts +8 -0
- package/next/public_api.d.ts.map +1 -0
- package/next/services/dotcms-editable-page.service.d.ts +40 -0
- package/next/services/dotcms-editable-page.service.d.ts.map +1 -0
- package/next/store/dotcms.store.d.ts +36 -0
- package/next/store/dotcms.store.d.ts.map +1 -0
- package/package.json +9 -2
- package/public_api.d.ts +2 -0
- package/public_api.d.ts.map +1 -0
- package/esm2022/index.mjs +0 -5
- package/esm2022/lib/components/dot-editable-text/dot-editable-text.component.mjs +0 -225
- package/esm2022/lib/components/dot-editable-text/utils.mjs +0 -43
- package/esm2022/lib/components/no-component/no-component.component.mjs +0 -32
- package/esm2022/lib/layout/container/container.component.mjs +0 -126
- package/esm2022/lib/layout/contentlet/contentlet.component.mjs +0 -120
- package/esm2022/lib/layout/dotcms-layout/dotcms-layout.component.mjs +0 -100
- package/esm2022/lib/models/dotcms.model.mjs +0 -3
- package/esm2022/lib/models/index.mjs +0 -3
- package/esm2022/lib/services/dotcms-context/page-context.service.mjs +0 -75
- package/esm2022/lib/utils/index.mjs +0 -84
- package/index.d.ts.map +0 -1
- package/lib/components/dot-editable-text/dot-editable-text.component.d.ts.map +0 -1
- package/lib/components/dot-editable-text/utils.d.ts.map +0 -1
- package/lib/components/no-component/no-component.component.d.ts.map +0 -1
- package/lib/layout/column/column.component.d.ts.map +0 -1
- package/lib/layout/container/container.component.d.ts.map +0 -1
- package/lib/layout/contentlet/contentlet.component.d.ts.map +0 -1
- package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts.map +0 -1
- package/lib/layout/row/row.component.d.ts.map +0 -1
- package/lib/models/dotcms.model.d.ts.map +0 -1
- package/lib/models/index.d.ts.map +0 -1
- package/lib/services/dotcms-context/page-context.service.d.ts.map +0 -1
- package/lib/utils/index.d.ts.map +0 -1
- /package/lib/{components → deprecated/components}/dot-editable-text/utils.d.ts +0 -0
- /package/lib/{components → deprecated/components}/no-component/no-component.component.d.ts +0 -0
- /package/lib/{layout → deprecated/layout}/column/column.component.d.ts +0 -0
- /package/lib/{layout → deprecated/layout}/container/container.component.d.ts +0 -0
- /package/lib/{layout → deprecated/layout}/contentlet/contentlet.component.d.ts +0 -0
- /package/lib/{layout → deprecated/layout}/row/row.component.d.ts +0 -0
- /package/lib/{models → deprecated/models}/index.d.ts +0 -0
- /package/lib/{utils → deprecated/utils}/index.d.ts +0 -0
package/esm2022/next/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.mjs
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { AsyncPipe, NgComponentOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, Input } from '@angular/core';
|
|
3
|
+
import { UVE_MODE } from '@dotcms/types';
|
|
4
|
+
import { getUVEState } from '@dotcms/uve';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class NoComponentProvided {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.style = {
|
|
9
|
+
backgroundColor: '#fffaf0',
|
|
10
|
+
color: '#333',
|
|
11
|
+
padding: '1rem',
|
|
12
|
+
borderRadius: '0.5rem',
|
|
13
|
+
marginBottom: '1rem',
|
|
14
|
+
marginTop: '1rem',
|
|
15
|
+
border: '1px solid #ed8936'
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: NoComponentProvided, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: NoComponentProvided, isStandalone: true, selector: "dotcms-no-component-provided", inputs: { contentType: "contentType" }, ngImport: i0, template: `
|
|
20
|
+
<div data-testid="no-component-provided" [style]="style">
|
|
21
|
+
<strong style="color: #c05621">Dev Warning</strong>
|
|
22
|
+
: No component or custom renderer provided for content type
|
|
23
|
+
<strong style="color: #c05621">{{ contentType || 'Unknown' }}</strong>
|
|
24
|
+
.
|
|
25
|
+
<br />
|
|
26
|
+
Please refer to the
|
|
27
|
+
<a
|
|
28
|
+
href="https://dev.dotcms.com/docs/block-editor"
|
|
29
|
+
target="_blank"
|
|
30
|
+
rel="noopener noreferrer"
|
|
31
|
+
style="color: #c05621">
|
|
32
|
+
Block Editor Custom Renderers Documentation
|
|
33
|
+
</a>
|
|
34
|
+
for guidance.
|
|
35
|
+
</div>
|
|
36
|
+
`, isInline: true }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: NoComponentProvided, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: 'dotcms-no-component-provided',
|
|
42
|
+
standalone: true,
|
|
43
|
+
template: `
|
|
44
|
+
<div data-testid="no-component-provided" [style]="style">
|
|
45
|
+
<strong style="color: #c05621">Dev Warning</strong>
|
|
46
|
+
: No component or custom renderer provided for content type
|
|
47
|
+
<strong style="color: #c05621">{{ contentType || 'Unknown' }}</strong>
|
|
48
|
+
.
|
|
49
|
+
<br />
|
|
50
|
+
Please refer to the
|
|
51
|
+
<a
|
|
52
|
+
href="https://dev.dotcms.com/docs/block-editor"
|
|
53
|
+
target="_blank"
|
|
54
|
+
rel="noopener noreferrer"
|
|
55
|
+
style="color: #c05621">
|
|
56
|
+
Block Editor Custom Renderers Documentation
|
|
57
|
+
</a>
|
|
58
|
+
for guidance.
|
|
59
|
+
</div>
|
|
60
|
+
`
|
|
61
|
+
}]
|
|
62
|
+
}], propDecorators: { contentType: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}] } });
|
|
65
|
+
/**
|
|
66
|
+
* DotContent component that renders content based on content type
|
|
67
|
+
*/
|
|
68
|
+
export class DotContentletBlock {
|
|
69
|
+
constructor() {
|
|
70
|
+
this.$data = computed(() => this.attrs?.['data']);
|
|
71
|
+
this.DOT_CONTENT_NO_DATA_MESSAGE = '[DotCMSBlockEditorRenderer]: No data provided for Contentlet Block. Try to add a contentlet to the block editor. If the error persists, please contact the DotCMS support team.';
|
|
72
|
+
this.DOT_CONTENT_NO_MATCHING_COMPONENT_MESSAGE = (contentType) => `[DotCMSBlockEditorRenderer]: No matching component found for content type: ${contentType}. Provide a custom renderer for this content type to fix this error.`;
|
|
73
|
+
}
|
|
74
|
+
get isDevMode() {
|
|
75
|
+
return getUVEState()?.mode === UVE_MODE.EDIT;
|
|
76
|
+
}
|
|
77
|
+
ngOnInit() {
|
|
78
|
+
if (!this.$data()) {
|
|
79
|
+
console.error(this.DOT_CONTENT_NO_DATA_MESSAGE);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const contentType = this.$data()?.contentType || '';
|
|
83
|
+
this.contentComponent = this.customRenderers?.[contentType];
|
|
84
|
+
if (!this.contentComponent) {
|
|
85
|
+
console.warn(this.DOT_CONTENT_NO_MATCHING_COMPONENT_MESSAGE(contentType));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotContentletBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: DotContentletBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-contentlet", inputs: { customRenderers: "customRenderers", attrs: "attrs" }, ngImport: i0, template: `
|
|
90
|
+
@if (contentComponent) {
|
|
91
|
+
<ng-container
|
|
92
|
+
*ngComponentOutlet="
|
|
93
|
+
contentComponent | async;
|
|
94
|
+
inputs: { contentlet: $data() }
|
|
95
|
+
"></ng-container>
|
|
96
|
+
} @else if (isDevMode) {
|
|
97
|
+
<dotcms-no-component-provided [contentType]="$data()?.contentType" />
|
|
98
|
+
}
|
|
99
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: NoComponentProvided, selector: "dotcms-no-component-provided", inputs: ["contentType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
100
|
+
}
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotContentletBlock, decorators: [{
|
|
102
|
+
type: Component,
|
|
103
|
+
args: [{
|
|
104
|
+
selector: 'dotcms-block-editor-renderer-contentlet',
|
|
105
|
+
standalone: true,
|
|
106
|
+
imports: [NgComponentOutlet, AsyncPipe, NoComponentProvided],
|
|
107
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
108
|
+
template: `
|
|
109
|
+
@if (contentComponent) {
|
|
110
|
+
<ng-container
|
|
111
|
+
*ngComponentOutlet="
|
|
112
|
+
contentComponent | async;
|
|
113
|
+
inputs: { contentlet: $data() }
|
|
114
|
+
"></ng-container>
|
|
115
|
+
} @else if (isDevMode) {
|
|
116
|
+
<dotcms-no-component-provided [contentType]="$data()?.contentType" />
|
|
117
|
+
}
|
|
118
|
+
`
|
|
119
|
+
}]
|
|
120
|
+
}], propDecorators: { customRenderers: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], attrs: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}] } });
|
|
125
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG90LWNvbnRlbnRsZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zZGsvYW5ndWxhci9uZXh0L2NvbXBvbmVudHMvZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci9ibG9ja3MvZG90LWNvbnRlbnRsZXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFcEYsT0FBTyxFQUFtQixRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGFBQWEsQ0FBQzs7QUEyQjFDLE1BQU0sT0FBTyxtQkFBbUI7SUF0Q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y9ibG9jay1lZGl0b3JcIlxuICAgICAgICAgICAgICAgIHRhcmdldD1cIl9ibGFua1wiXG4gICAgICAgICAgICAgICAgcmVsPVwibm9vcGVuZXIgbm9yZWZlcnJlclwiXG4gICAgICAgICAgICAgICAgc3R5bGU9XCJjb2xvcjogI2MwNTYyMVwiPlxuICAgICAgICAgICAgICAgIEJsb2NrIEVkaXRvciBDdXN0b20gUmVuZGVyZXJzIERvY3VtZW50YXRpb25cbiAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgIGZvciBndWlkYW5jZS5cbiAgICAgICAgPC9kaXY+XG4gICAgYFxufSlcbmV4cG9ydCBjbGFzcyBOb0NvbXBvbmVudFByb3ZpZGVkIHtcbiAgICBASW5wdXQoKSBjb250ZW50VHlwZTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuICAgIHByb3RlY3RlZCByZWFkb25seSBzdHlsZSA9IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiAnI2ZmZmFmMCcsXG4gICAgICAgIGNvbG9yOiAnIzMzMycsXG4gICAgICAgIHBhZGRpbmc6ICcxcmVtJyxcbiAgICAgICAgYm9yZGVyUmFkaXVzOiAnMC41cmVtJyxcbiAgICAgICAgbWFyZ2luQm90dG9tOiAnMXJlbScsXG4gICAgICAgIG1hcmdpblRvcDogJzFyZW0nLFxuICAgICAgICBib3JkZXI6ICcxcHggc29saWQgI2VkODkzNidcbiAgICB9O1xufVxuXG4vKipcbiAqIERvdENvbnRlbnQgY29tcG9uZW50IHRoYXQgcmVuZGVycyBjb250ZW50IGJhc2VkIG9uIGNvbnRlbnQgdHlwZVxuICovXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2RvdGNtcy1ibG9jay1lZGl0b3ItcmVuZGVyZXItY29udGVudGxldCcsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgICBpbXBvcnRzOiBbTmdDb21wb25lbnRPdXRsZXQsIEFzeW5jUGlwZSwgTm9Db21wb25lbnRQ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DT05URU5UX05PX01BVENISU5HX0NPTVBPTkVOVF9NRVNTQUdFKGNvbnRlbnRUeXBlKSk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class DotImageBlock {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.$srcURL = computed(() => this.attrs?.['src']);
|
|
6
|
+
}
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotImageBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: DotImageBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-image", inputs: { attrs: "attrs" }, ngImport: i0, template: `
|
|
9
|
+
<img [alt]="attrs?.['alt']" [src]="$srcURL()" />
|
|
10
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotImageBlock, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'dotcms-block-editor-renderer-image',
|
|
16
|
+
standalone: true,
|
|
17
|
+
template: `
|
|
18
|
+
<img [alt]="attrs?.['alt']" [src]="$srcURL()" />
|
|
19
|
+
`,
|
|
20
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
21
|
+
}]
|
|
22
|
+
}], propDecorators: { attrs: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}] } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9v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bmU6IHRydWUsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGltZyBbYWx0XT1cImF0dHJzPy5bJ2FsdCddXCIgW3NyY109XCIkc3JjVVJMKClcIiAvPlxuICAgIGAsXG4gICAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgRG90SW1hZ2VCbG9jayB7XG4gICAgQElucHV0KCkgYXR0cnMhOiBCbG9ja0VkaXRvck5vZGVbJ2F0dHJzJ107XG5cbiAgICBwcm90ZWN0ZWQgcmVhZG9ubHkgJHNyY1VSTCA9IGNvbXB1dGVkKCgpID0+IHRoaXMuYXR0cnM/Llsnc3JjJ10pO1xufVxuIl19
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class DotBulletList {
|
|
4
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotBulletList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: DotBulletList, isStandalone: true, selector: "dotcms-block-editor-renderer-bullet-list", ngImport: i0, template: `
|
|
6
|
+
<ul>
|
|
7
|
+
<ng-content />
|
|
8
|
+
</ul>
|
|
9
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotBulletList, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'dotcms-block-editor-renderer-bullet-list',
|
|
15
|
+
standalone: true,
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
template: `
|
|
18
|
+
<ul>
|
|
19
|
+
<ng-content />
|
|
20
|
+
</ul>
|
|
21
|
+
`
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
export class DotOrdererList {
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotOrdererList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: DotOrdererList, isStandalone: true, selector: "dotcms-block-editor-renderer-ordered-list", ngImport: i0, template: `
|
|
27
|
+
<ol>
|
|
28
|
+
<ng-content />
|
|
29
|
+
</ol>
|
|
30
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotOrdererList, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'dotcms-block-editor-renderer-ordered-list',
|
|
36
|
+
standalone: true,
|
|
37
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38
|
+
template: `
|
|
39
|
+
<ol>
|
|
40
|
+
<ng-content />
|
|
41
|
+
</ol>
|
|
42
|
+
`
|
|
43
|
+
}]
|
|
44
|
+
}] });
|
|
45
|
+
export class DotListItem {
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotListItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: DotListItem, isStandalone: true, selector: "dotcms-block-editor-renderer-list-item", ngImport: i0, template: `
|
|
48
|
+
<li>
|
|
49
|
+
<ng-content />
|
|
50
|
+
</li>
|
|
51
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotListItem, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{
|
|
56
|
+
selector: 'dotcms-block-editor-renderer-list-item',
|
|
57
|
+
standalone: true,
|
|
58
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
+
template: `
|
|
60
|
+
<li>
|
|
61
|
+
<ng-content />
|
|
62
|
+
</li>
|
|
63
|
+
`
|
|
64
|
+
}]
|
|
65
|
+
}] });
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9hbmd1bGFyL25leHQvY29tcG9uZW50cy9kb3RjbXMtYmxvY2stZWRpdG9yLXJlbmRlcmVyL2Jsb2Nrcy9saXN0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVluRSxNQUFNLE9BQU8sYUFBYTs4R0FBYixhQUFhO2tHQUFiLGFBQWEsb0dBTlo7Ozs7S0FJVDs7MkZBRVEsYUFBYTtrQkFWekIsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsMENBQTBDO29CQUNwRCxVQUFVLEVBQUUsSUFBSTtvQkFDaEIsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07b0JBQy9DLFFBQVEsRUFBRTs7OztLQUlUO2lCQUNKOztBQWFELE1BQU0sT0FBTyxjQUFjOzhHQUFkLGNBQWM7a0dBQWQsY0FBYyxxR0FOYjs7O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Y2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPG9sPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgPC9vbD5cbiAgICBgXG59KVxuZXhwb3J0IGNsYXNzIERvdE9yZGVyZXJMaXN0IHt9XG5cbkBDb21wb25lbnQoe1xuICAgIHNlbGVjdG9yOiAnZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci1saXN0LWl0ZW0nLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGxpPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgPC9saT5cbiAgICBgXG59KVxuZXhwb3J0IGNsYXNzIERvdExpc3RJdGVtIHt9XG4iXX0=
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { NgComponentOutlet } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { DotCMSBlockEditorItemComponent } from '../item/dotcms-block-editor-item.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class DotTableBlock {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.blockEditorItem = DotCMSBlockEditorItemComponent;
|
|
8
|
+
}
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotTableBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: DotTableBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-table", inputs: { content: "content" }, ngImport: i0, template: `
|
|
11
|
+
<table>
|
|
12
|
+
<thead>
|
|
13
|
+
@for (rowNode of content?.slice(0, 1); track rowNode.type) {
|
|
14
|
+
<tr>
|
|
15
|
+
@for (cellNode of rowNode.content; track cellNode.type) {
|
|
16
|
+
<th
|
|
17
|
+
[attr.colspan]="cellNode.attrs?.['colspan'] || 1"
|
|
18
|
+
[attr.rowspan]="cellNode.attrs?.['rowspan'] || 1">
|
|
19
|
+
<ng-container
|
|
20
|
+
*ngComponentOutlet="
|
|
21
|
+
blockEditorItem;
|
|
22
|
+
inputs: { content: cellNode.content }
|
|
23
|
+
"></ng-container>
|
|
24
|
+
</th>
|
|
25
|
+
}
|
|
26
|
+
</tr>
|
|
27
|
+
}
|
|
28
|
+
</thead>
|
|
29
|
+
<tbody>
|
|
30
|
+
@for (rowNode of content?.slice(1); track rowNode.type) {
|
|
31
|
+
<tr>
|
|
32
|
+
@for (cellNode of rowNode.content; track cellNode.type) {
|
|
33
|
+
<td
|
|
34
|
+
[attr.colspan]="cellNode.attrs?.['colspan'] || 1"
|
|
35
|
+
[attr.rowspan]="cellNode.attrs?.['rowspan'] || 1">
|
|
36
|
+
<ng-container
|
|
37
|
+
*ngComponentOutlet="
|
|
38
|
+
blockEditorItem;
|
|
39
|
+
inputs: { content: cellNode.content }
|
|
40
|
+
"></ng-container>
|
|
41
|
+
</td>
|
|
42
|
+
}
|
|
43
|
+
</tr>
|
|
44
|
+
}
|
|
45
|
+
</tbody>
|
|
46
|
+
</table>
|
|
47
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }] }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotTableBlock, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: 'dotcms-block-editor-renderer-table',
|
|
53
|
+
standalone: true,
|
|
54
|
+
imports: [NgComponentOutlet],
|
|
55
|
+
template: `
|
|
56
|
+
<table>
|
|
57
|
+
<thead>
|
|
58
|
+
@for (rowNode of content?.slice(0, 1); track rowNode.type) {
|
|
59
|
+
<tr>
|
|
60
|
+
@for (cellNode of rowNode.content; track cellNode.type) {
|
|
61
|
+
<th
|
|
62
|
+
[attr.colspan]="cellNode.attrs?.['colspan'] || 1"
|
|
63
|
+
[attr.rowspan]="cellNode.attrs?.['rowspan'] || 1">
|
|
64
|
+
<ng-container
|
|
65
|
+
*ngComponentOutlet="
|
|
66
|
+
blockEditorItem;
|
|
67
|
+
inputs: { content: cellNode.content }
|
|
68
|
+
"></ng-container>
|
|
69
|
+
</th>
|
|
70
|
+
}
|
|
71
|
+
</tr>
|
|
72
|
+
}
|
|
73
|
+
</thead>
|
|
74
|
+
<tbody>
|
|
75
|
+
@for (rowNode of content?.slice(1); track rowNode.type) {
|
|
76
|
+
<tr>
|
|
77
|
+
@for (cellNode of rowNode.content; track cellNode.type) {
|
|
78
|
+
<td
|
|
79
|
+
[attr.colspan]="cellNode.attrs?.['colspan'] || 1"
|
|
80
|
+
[attr.rowspan]="cellNode.attrs?.['rowspan'] || 1">
|
|
81
|
+
<ng-container
|
|
82
|
+
*ngComponentOutlet="
|
|
83
|
+
blockEditorItem;
|
|
84
|
+
inputs: { content: cellNode.content }
|
|
85
|
+
"></ng-container>
|
|
86
|
+
</td>
|
|
87
|
+
}
|
|
88
|
+
</tr>
|
|
89
|
+
}
|
|
90
|
+
</tbody>
|
|
91
|
+
</table>
|
|
92
|
+
`
|
|
93
|
+
}]
|
|
94
|
+
}], propDecorators: { content: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}] } });
|
|
97
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdC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0IHsgQmxvY2tFZGl0b3JOb2RlIH0gZnJvbSAnQGRvdGNtcy90eXBlcyc7XG5cbmltcG9ydCB7IERvdENNU0Jsb2NrRWRpdG9ySXRlbUNvbXBvbmVudCB9IGZyb20gJy4uL2l0ZW0vZG90Y21zLWJsb2NrLWVkaXRvci1pdGVtLmNvbXBvbmVudCc7XG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2RvdGNtcy1ibG9jay1lZGl0b3ItcmVuZGVyZXItdGFibGUnLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgaW1wb3J0czogW05nQ29tcG9uZW50T3V0bGV0XSxcbiAgICB0ZW1wbGF0ZTogYFxuICAgICAgICA8dGFibGU+XG4gICAgICAgICAgICA8dGhlYWQ+XG4gICAgICAgICAgICAgICAgQGZvciAocm93Tm9kZSBvZiBjb250ZW50Py5zbGljZSgwLCAxKTsgdHJhY2sgcm93Tm9kZS50eXBlKSB7XG4gICAgICAgICAgICAgICAgICAgIDx0cj5cbiAgICAgICAgICAgICAgICAgICAgICAgIEBmb3IgKGNlbGxOb2RlIG9mIHJvd05vZGUuY29udGVudDsgdHJhY2sgY2VsbE5vZGUudHlwZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci5jb2xzcGFuXT1cImNlbGxOb2RlLmF0dHJzPy5bJ2NvbHNwYW4nXSB8fCAxXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIucm93c3Bhbl09XCJjZWxsTm9kZS5hdHRycz8uWydyb3dzcGFuJ10gfHwgMVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdDb21wb25lbnRPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBibG9ja0VkaXRvckl0ZW07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5wdXRzOiB7IGNvbnRlbnQ6IGNlbGxOb2RlLmNvbnRlbnQgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90aD5cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgPC90cj5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICA8L3RoZWFkPlxuICAgICAgICAgICAgPHRib2R5PlxuICAgICAgICAgICAgICAgIEBmb3IgKHJvd05vZGUgb2YgY29udGVudD8uc2xpY2UoMSk7IHRyYWNrIHJvd05vZGUudHlwZSkge1xuICAgICAgICAgICAgICAgICAgICA8dHI+XG4gICAgICAgICAgICAgICAgICAgICAgICBAZm9yIChjZWxsTm9kZSBvZiByb3dOb2RlLmNvbnRlbnQ7IHRyYWNrIGNlbGxOb2RlLnR5cGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuY29sc3Bhbl09XCJjZWxsTm9kZS5hdHRycz8uWydjb2xzcGFuJ10gfHwgMVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFthdHRyLnJvd3NwYW5dPVwiY2VsbE5vZGUuYXR0cnM/Llsncm93c3BhbiddIHx8IDFcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nQ29tcG9uZW50T3V0bGV0PVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2tFZGl0b3JJdGVtO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlucHV0czogeyBjb250ZW50OiBjZWxsTm9kZS5jb250ZW50IH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIDwvdHI+XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgPC90Ym9keT5cbiAgICAgICAgPC90YWJsZT5cbiAgICBgXG59KVxuZXhwb3J0IGNsYXNzIERvdFRhYmxlQmxvY2sge1xuICAgIEBJbnB1dCgpIGNvbnRlbnQ6IEJsb2NrRWRpdG9yTm9kZVtdIHwgdW5kZWZpbmVkO1xuICAgIGJsb2NrRWRpdG9ySXRlbSA9IERvdENNU0Jsb2NrRWRpdG9ySXRlbUNvbXBvbmVudDtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class DotParagraphBlock {
|
|
4
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotParagraphBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.3", type: DotParagraphBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-paragraph", ngImport: i0, template: `
|
|
6
|
+
<p>
|
|
7
|
+
<ng-content />
|
|
8
|
+
</p>
|
|
9
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotParagraphBlock, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'dotcms-block-editor-renderer-paragraph',
|
|
15
|
+
standalone: true,
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
template: `
|
|
18
|
+
<p>
|
|
19
|
+
<ng-content />
|
|
20
|
+
</p>
|
|
21
|
+
`
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
export class DotHeadingBlock {
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotHeadingBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: DotHeadingBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-heading", inputs: { level: "level" }, ngImport: i0, template: `
|
|
27
|
+
@switch (level) {
|
|
28
|
+
@case ('1') {
|
|
29
|
+
<h1>
|
|
30
|
+
<ng-content />
|
|
31
|
+
</h1>
|
|
32
|
+
}
|
|
33
|
+
@case ('2') {
|
|
34
|
+
<h2>
|
|
35
|
+
<ng-content />
|
|
36
|
+
</h2>
|
|
37
|
+
}
|
|
38
|
+
@case ('3') {
|
|
39
|
+
<h3>
|
|
40
|
+
<ng-content />
|
|
41
|
+
</h3>
|
|
42
|
+
}
|
|
43
|
+
@case ('4') {
|
|
44
|
+
<h4>
|
|
45
|
+
<ng-content />
|
|
46
|
+
</h4>
|
|
47
|
+
}
|
|
48
|
+
@case ('5') {
|
|
49
|
+
<h5>
|
|
50
|
+
<ng-content />
|
|
51
|
+
</h5>
|
|
52
|
+
}
|
|
53
|
+
@case ('6') {
|
|
54
|
+
<h6>
|
|
55
|
+
<ng-content />
|
|
56
|
+
</h6>
|
|
57
|
+
}
|
|
58
|
+
@default {
|
|
59
|
+
<h1>
|
|
60
|
+
<ng-content />
|
|
61
|
+
</h1>
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotHeadingBlock, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: 'dotcms-block-editor-renderer-heading',
|
|
70
|
+
standalone: true,
|
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
72
|
+
template: `
|
|
73
|
+
@switch (level) {
|
|
74
|
+
@case ('1') {
|
|
75
|
+
<h1>
|
|
76
|
+
<ng-content />
|
|
77
|
+
</h1>
|
|
78
|
+
}
|
|
79
|
+
@case ('2') {
|
|
80
|
+
<h2>
|
|
81
|
+
<ng-content />
|
|
82
|
+
</h2>
|
|
83
|
+
}
|
|
84
|
+
@case ('3') {
|
|
85
|
+
<h3>
|
|
86
|
+
<ng-content />
|
|
87
|
+
</h3>
|
|
88
|
+
}
|
|
89
|
+
@case ('4') {
|
|
90
|
+
<h4>
|
|
91
|
+
<ng-content />
|
|
92
|
+
</h4>
|
|
93
|
+
}
|
|
94
|
+
@case ('5') {
|
|
95
|
+
<h5>
|
|
96
|
+
<ng-content />
|
|
97
|
+
</h5>
|
|
98
|
+
}
|
|
99
|
+
@case ('6') {
|
|
100
|
+
<h6>
|
|
101
|
+
<ng-content />
|
|
102
|
+
</h6>
|
|
103
|
+
}
|
|
104
|
+
@default {
|
|
105
|
+
<h1>
|
|
106
|
+
<ng-content />
|
|
107
|
+
</h1>
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
`
|
|
111
|
+
}]
|
|
112
|
+
}], propDecorators: { level: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}] } });
|
|
115
|
+
export class DotTextBlock {
|
|
116
|
+
constructor() {
|
|
117
|
+
this.marks = [];
|
|
118
|
+
this.text = '';
|
|
119
|
+
this.$remainingMarks = computed(() => this.marks?.slice(1));
|
|
120
|
+
this.$currentAttrs = computed(() => {
|
|
121
|
+
const attrs = { ...(this.marks?.[0]?.attrs || {}) };
|
|
122
|
+
if (attrs['class']) {
|
|
123
|
+
attrs['className'] = attrs['class'];
|
|
124
|
+
delete attrs['class'];
|
|
125
|
+
}
|
|
126
|
+
return attrs;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotTextBlock, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
130
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: DotTextBlock, isStandalone: true, selector: "dotcms-block-editor-renderer-text", inputs: { marks: "marks", text: "text" }, ngImport: i0, template: `
|
|
131
|
+
@switch (marks?.[0]?.type) {
|
|
132
|
+
@case ('link') {
|
|
133
|
+
<a
|
|
134
|
+
[attr.href]="$currentAttrs()['href'] || ''"
|
|
135
|
+
[attr.target]="$currentAttrs()['target'] || ''">
|
|
136
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
137
|
+
</a>
|
|
138
|
+
}
|
|
139
|
+
@case ('bold') {
|
|
140
|
+
<strong>
|
|
141
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
142
|
+
</strong>
|
|
143
|
+
}
|
|
144
|
+
@case ('underline') {
|
|
145
|
+
<u>
|
|
146
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
147
|
+
</u>
|
|
148
|
+
}
|
|
149
|
+
@case ('italic') {
|
|
150
|
+
<em>
|
|
151
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
152
|
+
</em>
|
|
153
|
+
}
|
|
154
|
+
@case ('strike') {
|
|
155
|
+
<s>
|
|
156
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
157
|
+
</s>
|
|
158
|
+
}
|
|
159
|
+
@case ('superscript') {
|
|
160
|
+
<sup>
|
|
161
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
162
|
+
</sup>
|
|
163
|
+
}
|
|
164
|
+
@case ('subscript') {
|
|
165
|
+
<sub>
|
|
166
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
167
|
+
</sub>
|
|
168
|
+
}
|
|
169
|
+
@default {
|
|
170
|
+
{{ text }}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DotTextBlock, selector: "dotcms-block-editor-renderer-text", inputs: ["marks", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
174
|
+
}
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: DotTextBlock, decorators: [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{
|
|
178
|
+
selector: 'dotcms-block-editor-renderer-text',
|
|
179
|
+
standalone: true,
|
|
180
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
181
|
+
template: `
|
|
182
|
+
@switch (marks?.[0]?.type) {
|
|
183
|
+
@case ('link') {
|
|
184
|
+
<a
|
|
185
|
+
[attr.href]="$currentAttrs()['href'] || ''"
|
|
186
|
+
[attr.target]="$currentAttrs()['target'] || ''">
|
|
187
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
188
|
+
</a>
|
|
189
|
+
}
|
|
190
|
+
@case ('bold') {
|
|
191
|
+
<strong>
|
|
192
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
193
|
+
</strong>
|
|
194
|
+
}
|
|
195
|
+
@case ('underline') {
|
|
196
|
+
<u>
|
|
197
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
198
|
+
</u>
|
|
199
|
+
}
|
|
200
|
+
@case ('italic') {
|
|
201
|
+
<em>
|
|
202
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
203
|
+
</em>
|
|
204
|
+
}
|
|
205
|
+
@case ('strike') {
|
|
206
|
+
<s>
|
|
207
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
208
|
+
</s>
|
|
209
|
+
}
|
|
210
|
+
@case ('superscript') {
|
|
211
|
+
<sup>
|
|
212
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
213
|
+
</sup>
|
|
214
|
+
}
|
|
215
|
+
@case ('subscript') {
|
|
216
|
+
<sub>
|
|
217
|
+
<dotcms-block-editor-renderer-text [marks]="$remainingMarks()" [text]="text" />
|
|
218
|
+
</sub>
|
|
219
|
+
}
|
|
220
|
+
@default {
|
|
221
|
+
{{ text }}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
`
|
|
225
|
+
}]
|
|
226
|
+
}], propDecorators: { marks: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], text: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}] } });
|
|
231
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3Nkay9hbmd1bGFyL25leHQvY29tcG9uZW50cy9kb3RjbXMtYmxvY2stZWRpdG9yLXJlbmRlcmVyL2Jsb2Nrcy90ZXh0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBY3BGLE1BQU0sT0FBTyxpQkFBaUI7OEdBQWpCLGlCQUFpQjtrR0FBakIsa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AgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPHA+XG4gICAgICAgICAgICA8bmctY29udGVudCAvPlxuICAgICAgICA8L3A+XG4gICAgYFxufSlcbmV4cG9ydCBjbGFzcyBEb3RQYXJhZ3JhcGhCbG9jayB7fVxuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2RvdGNtcy1ibG9jay1lZGl0b3ItcmVuZGVyZXItaGVhZGluZycsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgICB0ZW1wbGF0ZTogYFxuICAgICAgICBAc3dpdGNoIChsZXZlbCkge1xuICAgICAgICAgICAgQGNhc2UgKCcxJykge1xuICAgICAgICAgICAgICAgIDxoMT5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2gxPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCcyJykge1xuICAgICAgICAgICAgICAgIDxoMj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2gyPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCczJykge1xuICAgICAgICAgICAgICAgIDxoMz5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2gzPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCc0Jykge1xuICAgICAgICAgICAgICAgIDxoND5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2g0PlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCc1Jykge1xuICAgICAgICAgICAgICAgIDxoNT5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2g1PlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCc2Jykge1xuICAgICAgICAgICAgICAgIDxoNj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2g2PlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGRlZmF1bHQge1xuICAgICAgICAgICAgICAgIDxoMT5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgLz5cbiAgICAgICAgICAgICAgICA8L2gxPlxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgYFxufSlcbmV4cG9ydCBjbGFzcyBEb3RIZWFkaW5nQmxvY2sge1xuICAgIEBJbnB1dCgpIGxldmVsITogc3RyaW5nO1xufVxuXG5pbnRlcmZhY2UgVGV4dEJsb2NrUHJvcHMge1xuICAgIG1hcmtzPzogQmxvY2tFZGl0b3JNYXJrW107XG4gICAgdGV4dD86IHN0cmluZztcbn1cblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdkb3RjbXMtYmxvY2stZWRpdG9yLXJlbmRlcmVyLXRleHQnLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgQHN3aXRjaCAobWFya3M/LlswXT8udHlwZSkge1xuICAgICAgICAgICAgQGNhc2UgKCdsaW5rJykge1xuICAgICAgICAgICAgICAgIDxhXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLmhyZWZdPVwiJGN1cnJlbnRBdHRycygpWydocmVmJ10gfHwgJydcIlxuICAgICAgICAgICAgICAgICAgICBbYXR0ci50YXJnZXRdPVwiJGN1cnJlbnRBdHRycygpWyd0YXJnZXQnXSB8fCAnJ1wiPlxuICAgICAgICAgICAgICAgICAgICA8ZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci10ZXh0IFttYXJrc109XCIkcmVtYWluaW5nTWFya3MoKVwiIFt0ZXh0XT1cInRleHRcIiAvPlxuICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIEBjYXNlICgnYm9sZCcpIHtcbiAgICAgICAgICAgICAgICA8c3Ryb25nPlxuICAgICAgICAgICAgICAgICAgICA8ZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci10ZXh0IFttYXJrc109XCIkcmVtYWluaW5nTWFya3MoKVwiIFt0ZXh0XT1cInRleHRcIiAvPlxuICAgICAgICAgICAgICAgIDwvc3Ryb25nPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCd1bmRlcmxpbmUnKSB7XG4gICAgICAgICAgICAgICAgPHU+XG4gICAgICAgICAgICAgICAgICAgIDxkb3RjbXMtYmxvY2stZWRpdG9yLXJlbmRlcmVyLXRleHQgW21hcmtzXT1cIiRyZW1haW5pbmdNYXJrcygpXCIgW3RleHRdPVwidGV4dFwiIC8+XG4gICAgICAgICAgICAgICAgPC91PlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGNhc2UgKCdpdGFsaWMnKSB7XG4gICAgICAgICAgICAgICAgPGVtPlxuICAgICAgICAgICAgICAgICAgICA8ZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci10ZXh0IFttYXJrc109XCIkcmVtYWluaW5nTWFya3MoKVwiIFt0ZXh0XT1cInRleHRcIiAvPlxuICAgICAgICAgICAgICAgIDwvZW0+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBAY2FzZSAoJ3N0cmlrZScpIHtcbiAgICAgICAgICAgICAgICA8cz5cbiAgICAgICAgICAgICAgICAgICAgPGRvdGNtcy1ibG9jay1lZGl0b3ItcmVuZGVyZXItdGV4dCBbbWFya3NdPVwiJHJlbWFpbmluZ01hcmtzKClcIiBbdGV4dF09XCJ0ZXh0XCIgLz5cbiAgICAgICAgICAgICAgICA8L3M+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBAY2FzZSAoJ3N1cGVyc2NyaXB0Jykge1xuICAgICAgICAgICAgICAgIDxzdXA+XG4gICAgICAgICAgICAgICAgICAgIDxkb3RjbXMtYmxvY2stZWRpdG9yLXJlbmRlcmVyLXRleHQgW21hcmtzXT1cIiRyZW1haW5pbmdNYXJrcygpXCIgW3RleHRdPVwidGV4dFwiIC8+XG4gICAgICAgICAgICAgICAgPC9zdXA+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBAY2FzZSAoJ3N1YnNjcmlwdCcpIHtcbiAgICAgICAgICAgICAgICA8c3ViPlxuICAgICAgICAgICAgICAgICAgICA8ZG90Y21zLWJsb2NrLWVkaXRvci1yZW5kZXJlci10ZXh0IFttYXJrc109XCIkcmVtYWluaW5nTWFya3MoKVwiIFt0ZXh0XT1cInRleHRcIiAvPlxuICAgICAgICAgICAgICAgIDwvc3ViPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGRlZmF1bHQge1xuICAgICAgICAgICAgICAgIHt7IHRleHQgfX1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIGBcbn0pXG5leHBvcnQgY2xhc3MgRG90VGV4dEJsb2NrIHtcbiAgICBASW5wdXQoKSBtYXJrczogVGV4dEJsb2NrUHJvcHNbJ21hcmtzJ10gPSBbXTtcbiAgICBASW5wdXQoKSB0ZXh0ID0gJyc7XG5cbiAgICBwcm90ZWN0ZWQgcmVhZG9ubHkgJHJlbWFpbmluZ01hcmtzID0gY29tcHV0ZWQoKCkgPT4gdGhpcy5tYXJrcz8uc2xpY2UoMSkpO1xuXG4gICAgcHJvdGVjdGVkIHJlYWRvbmx5ICRjdXJyZW50QXR0cnMgPSBjb21wdXRlZCgoKSA9PiB7XG4gICAgICAgIGNvbnN0IGF0dHJzID0geyAuLi4odGhpcy5tYXJrcz8uWzBdPy5hdHRycyB8fCB7fSkgfTtcblxuICAgICAgICBpZiAoYXR0cnNbJ2NsYXNzJ10pIHtcbiAgICAgICAgICAgIGF0dHJzWydjbGFzc05hbWUnXSA9IGF0dHJzWydjbGFzcyddO1xuICAgICAgICAgICAgZGVsZXRlIGF0dHJzWydjbGFzcyddO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGF0dHJzO1xuICAgIH0pO1xufVxuIl19
|