@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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import { DynamicComponentEntity } from '../../../models';
|
|
3
|
+
import { CustomRenderer } from '../dotcms-block-editor-renderer.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NoComponentProvided {
|
|
6
|
+
contentType: string | undefined;
|
|
7
|
+
protected readonly style: {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
color: string;
|
|
10
|
+
padding: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
marginBottom: string;
|
|
13
|
+
marginTop: string;
|
|
14
|
+
border: string;
|
|
15
|
+
};
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoComponentProvided, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoComponentProvided, "dotcms-no-component-provided", never, { "contentType": { "alias": "contentType"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* DotContent component that renders content based on content type
|
|
21
|
+
*/
|
|
22
|
+
export declare class DotContentletBlock {
|
|
23
|
+
customRenderers: CustomRenderer | undefined;
|
|
24
|
+
attrs: BlockEditorNode['attrs'];
|
|
25
|
+
contentComponent: DynamicComponentEntity | undefined;
|
|
26
|
+
protected readonly $data: import("@angular/core").Signal<any>;
|
|
27
|
+
private readonly DOT_CONTENT_NO_DATA_MESSAGE;
|
|
28
|
+
private readonly DOT_CONTENT_NO_MATCHING_COMPONENT_MESSAGE;
|
|
29
|
+
protected get isDevMode(): boolean;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotContentletBlock, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotContentletBlock, "dotcms-block-editor-renderer-contentlet", never, { "customRenderers": { "alias": "customRenderers"; "required": false; }; "attrs": { "alias": "attrs"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=dot-contentlet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot-contentlet.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;;AAE3E,qBAsBa,mBAAmB;IACnB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,SAAS,CAAC,QAAQ,CAAC,KAAK;;;;;;;;MAQtB;yCAVO,mBAAmB;2CAAnB,mBAAmB;CAW/B;AAED;;GAEG;AACH,qBAiBa,kBAAkB;IAClB,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEzC,gBAAgB,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,QAAQ,CAAC,KAAK,sCAAwC;IAChE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAC0I;IACtL,OAAO,CAAC,QAAQ,CAAC,yCAAyC,CAC0G;IACpK,SAAS,KAAK,SAAS,YAEtB;IAED,QAAQ;yCAdC,kBAAkB;2CAAlB,kBAAkB;CA4B9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DotImageBlock {
|
|
4
|
+
attrs: BlockEditorNode['attrs'];
|
|
5
|
+
protected readonly $srcURL: import("@angular/core").Signal<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotImageBlock, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotImageBlock, "dotcms-block-editor-renderer-image", never, { "attrs": { "alias": "attrs"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=image.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/image.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;;AAEhD,qBAQa,aAAa;IACb,KAAK,EAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAE1C,SAAS,CAAC,QAAQ,CAAC,OAAO,sCAAuC;yCAHxD,aAAa;2CAAb,aAAa;CAIzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DotBulletList {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotBulletList, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotBulletList, "dotcms-block-editor-renderer-bullet-list", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
6
|
+
export declare class DotOrdererList {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotOrdererList, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotOrdererList, "dotcms-block-editor-renderer-ordered-list", never, {}, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class DotListItem {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotListItem, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotListItem, "dotcms-block-editor-renderer-list-item", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=list.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/list.component.ts"],"names":[],"mappings":";AAEA,qBAUa,aAAa;yCAAb,aAAa;2CAAb,aAAa;CAAG;AAE7B,qBAUa,cAAc;yCAAd,cAAc;2CAAd,cAAc;CAAG;AAE9B,qBAUa,WAAW;yCAAX,WAAW;2CAAX,WAAW;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import { DotCMSBlockEditorItemComponent } from '../item/dotcms-block-editor-item.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DotTableBlock {
|
|
5
|
+
content: BlockEditorNode[] | undefined;
|
|
6
|
+
blockEditorItem: typeof DotCMSBlockEditorItemComponent;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotTableBlock, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotTableBlock, "dotcms-block-editor-renderer-table", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=table.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/table.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;;AAC5F,qBA2Ca,aAAa;IACb,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC;IAChD,eAAe,wCAAkC;yCAFxC,aAAa;2CAAb,aAAa;CAGzB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BlockEditorMark } from '@dotcms/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DotParagraphBlock {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotParagraphBlock, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotParagraphBlock, "dotcms-block-editor-renderer-paragraph", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
7
|
+
export declare class DotHeadingBlock {
|
|
8
|
+
level: string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotHeadingBlock, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotHeadingBlock, "dotcms-block-editor-renderer-heading", never, { "level": { "alias": "level"; "required": false; }; }, {}, never, ["*", "*", "*", "*", "*", "*", "*"], true, never>;
|
|
11
|
+
}
|
|
12
|
+
interface TextBlockProps {
|
|
13
|
+
marks?: BlockEditorMark[];
|
|
14
|
+
text?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class DotTextBlock {
|
|
17
|
+
marks: TextBlockProps['marks'];
|
|
18
|
+
text: string;
|
|
19
|
+
protected readonly $remainingMarks: import("@angular/core").Signal<BlockEditorMark[] | undefined>;
|
|
20
|
+
protected readonly $currentAttrs: import("@angular/core").Signal<{
|
|
21
|
+
[x: string]: string;
|
|
22
|
+
}>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotTextBlock, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotTextBlock, "dotcms-block-editor-renderer-text", never, { "marks": { "alias": "marks"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=text.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/text.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;;AAEhD,qBAUa,iBAAiB;yCAAjB,iBAAiB;2CAAjB,iBAAiB;CAAG;AAEjC,qBA4Ca,eAAe;IACf,KAAK,EAAG,MAAM,CAAC;yCADf,eAAe;2CAAf,eAAe;CAE3B;AAED,UAAU,cAAc;IACpB,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAiDa,YAAY;IACZ,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAM;IACpC,IAAI,SAAM;IAEnB,SAAS,CAAC,QAAQ,CAAC,eAAe,gEAAwC;IAE1E,SAAS,CAAC,QAAQ,CAAC,aAAa;;OAS7B;yCAfM,YAAY;2CAAZ,YAAY;CAgBxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DotUnknownBlockComponent {
|
|
4
|
+
node: BlockEditorNode;
|
|
5
|
+
get isEditMode(): boolean;
|
|
6
|
+
protected readonly style: {
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
color: string;
|
|
9
|
+
padding: string;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
marginBottom: string;
|
|
12
|
+
marginTop: string;
|
|
13
|
+
border: string;
|
|
14
|
+
};
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotUnknownBlockComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotUnknownBlockComponent, "dotcms-block-editor-renderer-unknown", never, { "node": { "alias": "node"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=unknown.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unknown.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/unknown.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;;AAG1D,qBAqBa,wBAAwB;IACxB,IAAI,EAAG,eAAe,CAAC;IAEhC,IAAI,UAAU,YAEb;IAED,SAAS,CAAC,QAAQ,CAAC,KAAK;;;;;;;;MAQtB;yCAfO,wBAAwB;2CAAxB,wBAAwB;CAgBpC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DotVideoBlock {
|
|
4
|
+
attrs: BlockEditorNode['attrs'];
|
|
5
|
+
protected readonly $srcURL: import("@angular/core").Signal<any>;
|
|
6
|
+
protected readonly $posterURL: import("@angular/core").Signal<any>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotVideoBlock, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotVideoBlock, "dotcms-block-editor-renderer-video", never, { "attrs": { "alias": "attrs"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=video.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/blocks/video.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;;AAEhD,qBAmBa,aAAa;IACb,KAAK,EAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAE1C,SAAS,CAAC,QAAQ,CAAC,OAAO,sCAAuC;IAEjE,SAAS,CAAC,QAAQ,CAAC,UAAU,sCAAuD;yCAL3E,aAAa;2CAAb,aAAa;CAMzB"}
|
package/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BlockEditorContent } from '@dotcms/types';
|
|
2
|
+
import { BlockEditorState } from '@dotcms/types/internal';
|
|
3
|
+
import { DynamicComponentEntity } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Represents a Custom Renderer used by the Block Editor Component
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @interface CustomRenderer
|
|
10
|
+
*/
|
|
11
|
+
export type CustomRenderer = Record<string, DynamicComponentEntity>;
|
|
12
|
+
/**
|
|
13
|
+
* A component that renders content from DotCMS's Block Editor field.
|
|
14
|
+
*
|
|
15
|
+
* This component provides an easy way to render Block Editor content in your Angular applications.
|
|
16
|
+
* It handles the rendering of standard blocks and allows customization through custom renderers.
|
|
17
|
+
*
|
|
18
|
+
* For more information about Block Editor, see {@link https://dev.dotcms.com/docs/block-editor}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <dotcms-block-editor-renderer
|
|
23
|
+
* [blocks]="myBlockEditorContent"
|
|
24
|
+
* [customRenderers]="myCustomRenderers">
|
|
25
|
+
* </dotcms-block-editor-renderer>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class DotCMSBlockEditorRendererComponent {
|
|
29
|
+
blocks: BlockEditorContent;
|
|
30
|
+
customRenderers: CustomRenderer | undefined;
|
|
31
|
+
class: string | undefined;
|
|
32
|
+
style: string | Record<string, string> | undefined;
|
|
33
|
+
$blockEditorState: import("@angular/core").WritableSignal<BlockEditorState>;
|
|
34
|
+
$isInEditMode: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSBlockEditorRendererComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotCMSBlockEditorRendererComponent, "dotcms-block-editor-renderer", never, { "blocks": { "alias": "blocks"; "required": false; }; "customRenderers": { "alias": "customRenderers"; "required": false; }; "class": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=dotcms-block-editor-renderer.component.d.ts.map
|
package/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotcms-block-editor-renderer.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,qBAOa,kCAAkC;IAClC,MAAM,EAAG,kBAAkB,CAAC;IAC5B,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAE5D,iBAAiB,2DAA6C;IAC9D,aAAa,kDAAiD;IAE9D,QAAQ;yCATC,kCAAkC;2CAAlC,kCAAkC;CAkB9C"}
|
package/next/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BlockEditorNode } from '@dotcms/types';
|
|
2
|
+
import { BlockEditorDefaultBlocks } from '@dotcms/types/internal';
|
|
3
|
+
import { CustomRenderer } from '../dotcms-block-editor-renderer.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DotCMSBlockEditorItemComponent {
|
|
6
|
+
content: BlockEditorNode[] | undefined;
|
|
7
|
+
customRenderers: CustomRenderer | undefined;
|
|
8
|
+
BLOCKS: typeof BlockEditorDefaultBlocks;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSBlockEditorItemComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotCMSBlockEditorItemComponent, "dotcms-block-editor-renderer-block", never, { "content": { "alias": "content"; "required": false; }; "customRenderers": { "alias": "customRenderers"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=dotcms-block-editor-item.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotcms-block-editor-item.component.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/sdk/angular/next/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAUlE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;;AAE3E,qBAwBa,8BAA8B;IAC9B,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC;IACvC,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;IAErD,MAAM,kCAA4B;yCAJzB,8BAA8B;2CAA9B,8BAA8B;CAK1C"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { EditorComponent } from '@tinymce/tinymce-angular';
|
|
2
|
+
import { EventObj } from '@tinymce/tinymce-angular/editor/Events';
|
|
3
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
4
|
+
import { DotCMSBasicContentlet } from '@dotcms/types';
|
|
5
|
+
import { DOT_EDITABLE_TEXT_FORMAT, DOT_EDITABLE_TEXT_MODE } from './utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Dot editable text component.
|
|
9
|
+
* This component is responsible to render a text field that can be edited inline.
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @class DotCMSEditableTextComponent
|
|
13
|
+
* @implements {OnInit}
|
|
14
|
+
* @implements {OnChanges}
|
|
15
|
+
*/
|
|
16
|
+
export declare class DotCMSEditableTextComponent<T extends DotCMSBasicContentlet> implements OnInit, OnChanges {
|
|
17
|
+
#private;
|
|
18
|
+
editorComponent: EditorComponent;
|
|
19
|
+
/**
|
|
20
|
+
* Represents the mode of the editor which can be `plain`, `minimal`, or `full`
|
|
21
|
+
*
|
|
22
|
+
* @type {DOT_EDITABLE_TEXT_MODE}
|
|
23
|
+
* @memberof DotCMSEditableTextComponent
|
|
24
|
+
*/
|
|
25
|
+
mode: DOT_EDITABLE_TEXT_MODE;
|
|
26
|
+
/**
|
|
27
|
+
* Represents the format of the editor which can be `text` or `html`
|
|
28
|
+
*
|
|
29
|
+
* @type {DOT_EDITABLE_TEXT_FORMAT}
|
|
30
|
+
* @memberof DotCMSEditableTextComponent
|
|
31
|
+
*/
|
|
32
|
+
format: DOT_EDITABLE_TEXT_FORMAT;
|
|
33
|
+
/**
|
|
34
|
+
* Represents the `contentlet` that can be inline edited
|
|
35
|
+
*
|
|
36
|
+
* @type {DotCMSContentlet}
|
|
37
|
+
* @memberof DotCMSEditableTextComponent
|
|
38
|
+
*/
|
|
39
|
+
contentlet: T;
|
|
40
|
+
/**
|
|
41
|
+
* Represents the field name of the `contentlet` that can be edited
|
|
42
|
+
*
|
|
43
|
+
* @memberof DotCMSEditableTextComponent
|
|
44
|
+
*/
|
|
45
|
+
fieldName: keyof T;
|
|
46
|
+
/**
|
|
47
|
+
* Represents the content of the `contentlet` that can be edited
|
|
48
|
+
*
|
|
49
|
+
* @protected
|
|
50
|
+
* @memberof DotCMSEditableTextComponent
|
|
51
|
+
*/
|
|
52
|
+
protected content: string;
|
|
53
|
+
/**
|
|
54
|
+
* Represents the configuration of the editor
|
|
55
|
+
*
|
|
56
|
+
* @protected
|
|
57
|
+
* @type {EditorComponent['init']}
|
|
58
|
+
* @memberof DotCMSEditableTextComponent
|
|
59
|
+
*/
|
|
60
|
+
protected init: EditorComponent['init'];
|
|
61
|
+
/**
|
|
62
|
+
* The TinyMCE editor
|
|
63
|
+
*
|
|
64
|
+
* @readonly
|
|
65
|
+
* @memberof DotCMSEditableTextComponent
|
|
66
|
+
*/
|
|
67
|
+
get editor(): import("tinymce").Editor;
|
|
68
|
+
/**
|
|
69
|
+
* Represents if the component is inside the editor
|
|
70
|
+
*
|
|
71
|
+
* @protected
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof DotCMSEditableTextComponent
|
|
74
|
+
*/
|
|
75
|
+
protected get isEditMode(): string | false | null | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Returns the number of pages the contentlet is on
|
|
78
|
+
*
|
|
79
|
+
* @readonly
|
|
80
|
+
* @memberof DotCMSEditableTextComponent
|
|
81
|
+
*/
|
|
82
|
+
get onNumberOfPages(): string | 1;
|
|
83
|
+
/**
|
|
84
|
+
* Handle copy contentlet inline editing success event
|
|
85
|
+
*
|
|
86
|
+
* @param {MessageEvent} { data }
|
|
87
|
+
* @return {*}
|
|
88
|
+
* @memberof DotCMSEditableTextComponent
|
|
89
|
+
*/
|
|
90
|
+
onMessage({ data }: MessageEvent): void;
|
|
91
|
+
ngOnInit(): void;
|
|
92
|
+
ngOnChanges(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Handle mouse down event
|
|
95
|
+
*
|
|
96
|
+
* @param {EventObj<MouseEvent>} { event }
|
|
97
|
+
* @return {*}
|
|
98
|
+
* @memberof DotCMSEditableTextComponent
|
|
99
|
+
*/
|
|
100
|
+
onMouseDown({ event }: EventObj<MouseEvent>): void;
|
|
101
|
+
/**
|
|
102
|
+
* Handle focus out event
|
|
103
|
+
*
|
|
104
|
+
* @return {*}
|
|
105
|
+
* @memberof DotCMSEditableTextComponent
|
|
106
|
+
*/
|
|
107
|
+
onFocusOut(): void;
|
|
108
|
+
/**
|
|
109
|
+
* inner HTML to element
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
* @param {string} editedContent
|
|
113
|
+
* @return {*}
|
|
114
|
+
* @memberof DotCMSEditableTextComponent
|
|
115
|
+
*/
|
|
116
|
+
private innerHTMLToElement;
|
|
117
|
+
/**
|
|
118
|
+
* Check if the content has changed
|
|
119
|
+
*
|
|
120
|
+
* @private
|
|
121
|
+
* @param {string} editedContent
|
|
122
|
+
* @return {*}
|
|
123
|
+
* @memberof DotCMSEditableTextComponent
|
|
124
|
+
*/
|
|
125
|
+
private didContentChange;
|
|
126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSEditableTextComponent<any>, never>;
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DotCMSEditableTextComponent<any>, "dotcms-editable-text", never, { "mode": { "alias": "mode"; "required": false; }; "format": { "alias": "format"; "required": false; }; "contentlet": { "alias": "contentlet"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; }, {}, never, never, true, never>;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=dotcms-editable-text.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotcms-editable-text.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/next/components/dotcms-editable-text/dotcms-editable-text.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,OAAO,EAMH,SAAS,EACT,MAAM,EAIT,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,qBAAqB,EAA6B,MAAM,eAAe,CAAC;AAKjF,OAAO,EAAkB,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AAE3F;;;;;;;;GAQG;AACH,qBAiBa,2BAA2B,CAAC,CAAC,SAAS,qBAAqB,CACpE,YAAW,MAAM,EAAE,SAAS;;IAEA,eAAe,EAAG,eAAe,CAAC;IAE9D;;;;;OAKG;IACM,IAAI,EAAE,sBAAsB,CAAW;IAChD;;;;;OAKG;IACM,MAAM,EAAE,wBAAwB,CAAU;IACnD;;;;;OAKG;IACM,UAAU,EAAG,CAAC,CAAC;IACxB;;;;OAIG;IACM,SAAS,EAAG,MAAM,CAAC,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,OAAO,SAAM;IACvB;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IASzC;;;;;OAKG;IACH,IAAI,MAAM,6BAET;IAED;;;;;;OAMG;IACH,SAAS,KAAK,UAAU,sCAIvB;IAED;;;;;OAKG;IACH,IAAI,eAAe,eAElB;IAED;;;;;;OAMG;IAEH,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE,YAAY;IAgBhC,QAAQ;IAmBR,WAAW;IAOX;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,UAAU,CAAC;IAyB3C;;;;;OAKG;IACH,UAAU;IA0BV;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAQ1B;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;yCAnOf,2BAA2B;2CAA3B,2BAA2B;CAsOvC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EditorComponent } from '@tinymce/tinymce-angular';
|
|
2
|
+
export type DOT_EDITABLE_TEXT_MODE = 'minimal' | 'full' | 'plain';
|
|
3
|
+
export type DOT_EDITABLE_TEXT_FORMAT = 'html' | 'text';
|
|
4
|
+
export declare const TINYMCE_CONFIG: {
|
|
5
|
+
[key in DOT_EDITABLE_TEXT_MODE]: EditorComponent['init'];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/next/components/dotcms-editable-text/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAO3D,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAOvD,eAAO,MAAM,cAAc,EAAE;KACxB,GAAG,IAAI,sBAAsB,GAAG,eAAe,CAAC,MAAM,CAAC;CAc3D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { DotPageAssetLayoutColumn } from '@dotcms/types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* This component renders a column with all its content using the layout provided by dotCMS Page API.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas}
|
|
8
|
+
* @category Components
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class ColumnComponent implements OnChanges {
|
|
12
|
+
/**
|
|
13
|
+
* The column data to be rendered
|
|
14
|
+
*/
|
|
15
|
+
column: DotPageAssetLayoutColumn;
|
|
16
|
+
customClasses: string;
|
|
17
|
+
ngOnChanges(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnComponent, "dotcms-column", never, { "column": { "alias": "column"; "required": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=column.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/column/column.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,SAAS,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;;AAIzD;;;;;;GAMG;AACH,qBAca,eAAgB,YAAW,SAAS;IAC7C;;OAEG;IACwB,MAAM,EAAG,wBAAwB,CAAC;IAEvC,aAAa,SAAM;IAEzC,WAAW;yCARF,eAAe;2CAAf,eAAe;CAa3B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @description This component is used to display a message when a container is not found.
|
|
5
|
+
* @export
|
|
6
|
+
* @internal
|
|
7
|
+
* @class ContainerNotFoundComponent
|
|
8
|
+
* @implements {OnInit}
|
|
9
|
+
*/
|
|
10
|
+
export declare class ContainerNotFoundComponent implements OnInit {
|
|
11
|
+
#private;
|
|
12
|
+
identifier: string;
|
|
13
|
+
$isDevMode: import("@angular/core").Signal<boolean>;
|
|
14
|
+
emptyContainerStyle: {
|
|
15
|
+
width: string;
|
|
16
|
+
'background-color': string;
|
|
17
|
+
display: string;
|
|
18
|
+
'justify-content': string;
|
|
19
|
+
'align-items': string;
|
|
20
|
+
color: string;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerNotFoundComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerNotFoundComponent, "dotcms-container-not-found", never, { "identifier": { "alias": "identifier"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=container-not-found.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-not-found.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,MAAM,EAAE,MAAM,eAAe,CAAC;;AAMjE;;;;;;GAMG;AACH,qBAYa,0BAA2B,YAAW,MAAM;;IAC5C,UAAU,SAAa;IAIhC,UAAU,0CAAyC;IACnD,mBAAmB;;;;;;;;MAAiC;IAEpD,QAAQ;yCARC,0BAA0B;2CAA1B,0BAA0B;CAatC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @description This component is used to display a message when a container is empty.
|
|
4
|
+
* @export
|
|
5
|
+
* @internal
|
|
6
|
+
* @class EmptyContainerComponent
|
|
7
|
+
*/
|
|
8
|
+
export declare class EmptyContainerComponent {
|
|
9
|
+
#private;
|
|
10
|
+
emptyContainerStyle: {
|
|
11
|
+
width: string;
|
|
12
|
+
'background-color': string;
|
|
13
|
+
display: string;
|
|
14
|
+
'justify-content': string;
|
|
15
|
+
'align-items': string;
|
|
16
|
+
color: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
$isDevMode: import("@angular/core").Signal<boolean>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyContainerComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyContainerComponent, "dotcms-empty-container", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=empty-container.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-container.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.ts"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH,qBAca,uBAAuB;;IAChC,mBAAmB;;;;;;;;MAAiC;IAIpD,UAAU,0CAAgC;yCALjC,uBAAuB;2CAAvB,uBAAuB;CAMnC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { DotCMSBasicContentlet, DotCMSColumnContainer, EditableContainerData } from '@dotcms/types';
|
|
3
|
+
import { DotContainerAttributes } from '@dotcms/types/internal';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @description This component renders a container with all its content using the layout provided by dotCMS Page API.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas}
|
|
9
|
+
* @category Components
|
|
10
|
+
* @internal
|
|
11
|
+
* @class ContainerComponent
|
|
12
|
+
*/
|
|
13
|
+
export declare class ContainerComponent implements OnChanges {
|
|
14
|
+
#private;
|
|
15
|
+
/**
|
|
16
|
+
* The container data to be rendered
|
|
17
|
+
*/
|
|
18
|
+
container: DotCMSColumnContainer;
|
|
19
|
+
$containerData: import("@angular/core").WritableSignal<EditableContainerData | null>;
|
|
20
|
+
$contentlets: import("@angular/core").WritableSignal<DotCMSBasicContentlet[]>;
|
|
21
|
+
$isEmpty: import("@angular/core").Signal<boolean>;
|
|
22
|
+
$dotAttributes: import("@angular/core").Signal<DotContainerAttributes>;
|
|
23
|
+
dotObject: string;
|
|
24
|
+
acceptTypes: string | null;
|
|
25
|
+
identifier: string | null;
|
|
26
|
+
maxContentlets: string | null;
|
|
27
|
+
uuid: string | null;
|
|
28
|
+
ngOnChanges(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerComponent, "dotcms-container", never, { "container": { "alias": "container"; "required": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=container.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/container/container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,SAAS,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;;AAahE;;;;;;;GAOG;AACH,qBAiBa,kBAAmB,YAAW,SAAS;;IAChD;;OAEG;IACwB,SAAS,EAAG,qBAAqB,CAAC;IAI7D,cAAc,uEAA8C;IAC5D,YAAY,kEAAuC;IACnD,QAAQ,0CAAoD;IAC5D,cAAc,yDAQX;IAEkC,SAAS,SAAe;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE9D,WAAW;yCA3BF,kBAAkB;2CAAlB,kBAAkB;CA0C9B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef, OnChanges } from '@angular/core';
|
|
2
|
+
import { DotCMSBasicContentlet, EditableContainerData } from '@dotcms/types';
|
|
3
|
+
import { DotContentletAttributes } from '@dotcms/types/internal';
|
|
4
|
+
import { DynamicComponentEntity } from '../../../../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @description Contentlet component that renders DotCMS content with development mode support
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @param {DotCMSContentlet} contentlet - The contentlet to be rendered
|
|
11
|
+
* @param {string} container - The container identifier
|
|
12
|
+
* @class ContentletComponent
|
|
13
|
+
*/
|
|
14
|
+
export declare class ContentletComponent implements OnChanges {
|
|
15
|
+
#private;
|
|
16
|
+
contentlet: DotCMSBasicContentlet;
|
|
17
|
+
containerData: EditableContainerData;
|
|
18
|
+
contentletRef: ElementRef;
|
|
19
|
+
dotObject: string;
|
|
20
|
+
$contentlet: import("@angular/core").WritableSignal<DotCMSBasicContentlet | null>;
|
|
21
|
+
$UserComponent: import("@angular/core").WritableSignal<DynamicComponentEntity | null>;
|
|
22
|
+
$UserNoComponent: import("@angular/core").WritableSignal<DynamicComponentEntity | null>;
|
|
23
|
+
$isDevMode: import("@angular/core").Signal<boolean>;
|
|
24
|
+
$haveContent: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
$style: import("@angular/core").Signal<{
|
|
26
|
+
minHeight: string;
|
|
27
|
+
} | {
|
|
28
|
+
minHeight?: undefined;
|
|
29
|
+
}>;
|
|
30
|
+
$dotAttributes: import("@angular/core").Signal<DotContentletAttributes>;
|
|
31
|
+
identifier: string | null;
|
|
32
|
+
basetype: string | null;
|
|
33
|
+
title: string | null;
|
|
34
|
+
inode: string | null;
|
|
35
|
+
type: string | null;
|
|
36
|
+
containerAttribute: string | null;
|
|
37
|
+
onNumberOfPages: string | null;
|
|
38
|
+
styleAttribute: {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
} | null;
|
|
41
|
+
ngOnChanges(): void;
|
|
42
|
+
ngAfterViewInit(): void;
|
|
43
|
+
private setupComponents;
|
|
44
|
+
private checkContent;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentletComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentletComponent, "dotcms-contentlet", never, { "contentlet": { "alias": "contentlet"; "required": true; }; "containerData": { "alias": "containerData"; "required": true; }; }, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=contentlet.component.d.ts.map
|
package/next/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentlet.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/contentlet/contentlet.component.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,UAAU,EAGV,SAAS,EAIZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;;AAI5D;;;;;;;GAOG;AACH,qBAmBa,mBAAoB,YAAW,SAAS;;IACtB,UAAU,EAAG,qBAAqB,CAAC;IACnC,aAAa,EAAG,qBAAqB,CAAC;IACrC,aAAa,EAAG,UAAU,CAAC;IAClB,SAAS,SAAgB;IAI9D,WAAW,uEAA8C;IACzD,cAAc,wEAA+C;IAC7D,gBAAgB,wEAA+C;IAC/D,UAAU,0CAAgC;IAC1C,YAAY,kDAAiB;IAC7B,MAAM;;;;OAEJ;IACF,cAAc,0DAKX;IAEsC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC7B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACjE,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAQ;IAE/E,WAAW;IAcX,eAAe;IAIf,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,YAAY;yCA5DX,mBAAmB;2CAAnB,mBAAmB;CAmE/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DotCMSBasicContentlet } from '@dotcms/types';
|
|
2
|
+
import { DynamicComponentEntity } from '../../../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @description Fallback component that renders when no custom component is found for a contentlet
|
|
6
|
+
* @category Components
|
|
7
|
+
* @internal
|
|
8
|
+
* @class FallbackComponent
|
|
9
|
+
*/
|
|
10
|
+
export declare class FallbackComponent {
|
|
11
|
+
UserNoComponent: DynamicComponentEntity | null;
|
|
12
|
+
contentlet: DotCMSBasicContentlet;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FallbackComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FallbackComponent, "dotcms-fallback-component", never, { "UserNoComponent": { "alias": "UserNoComponent"; "required": false; }; "contentlet": { "alias": "contentlet"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=fallback-component.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallback-component.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/fallback-component/fallback-component.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;;AAE5D;;;;;GAKG;AACH,qBAea,iBAAiB;IACjB,eAAe,EAAE,sBAAsB,GAAG,IAAI,CAAQ;IACtD,UAAU,EAAG,qBAAqB,CAAC;yCAFnC,iBAAiB;2CAAjB,iBAAiB;CAG7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @description This component is used to display a message when a page is missing the required `layout.body` property.
|
|
5
|
+
* @internal
|
|
6
|
+
* @class PageErrorMessageComponent
|
|
7
|
+
*/
|
|
8
|
+
export declare class PageErrorMessageComponent implements OnInit {
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageErrorMessageComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageErrorMessageComponent, "dotcms-page-error-message", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=page-error-message.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-error-message.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/page-error-message/page-error-message.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,MAAM,EAAE,MAAM,eAAe,CAAC;;AAE3E;;;;GAIG;AACH,qBAsBa,yBAA0B,YAAW,MAAM;IACpD,QAAQ;yCADC,yBAAyB;2CAAzB,yBAAyB;CAIrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { DotPageAssetLayoutRow } from '@dotcms/types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @description This component renders a row with all its content using the layout provided by dotCMS Page API.
|
|
6
|
+
*
|
|
7
|
+
* @see {@link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas}
|
|
8
|
+
* @category Components
|
|
9
|
+
* @internal
|
|
10
|
+
* @class RowComponent
|
|
11
|
+
*/
|
|
12
|
+
export declare class RowComponent implements OnChanges {
|
|
13
|
+
/**
|
|
14
|
+
* The row data to be rendered
|
|
15
|
+
*/
|
|
16
|
+
row: DotPageAssetLayoutRow;
|
|
17
|
+
customClasses: import("@angular/core").WritableSignal<string>;
|
|
18
|
+
ngOnChanges(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowComponent, "dotcms-row", never, { "row": { "alias": "row"; "required": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=row.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/next/components/dotcms-layout-body/components/row/row.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,SAAS,EAAU,MAAM,eAAe,CAAC;AAE7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;;AAKtD;;;;;;;GAOG;AACH,qBAgBa,YAAa,YAAW,SAAS;IAC1C;;OAEG;IACwB,GAAG,EAAG,qBAAqB,CAAC;IAEvD,aAAa,iDAAc;IAE3B,WAAW;yCARF,YAAY;2CAAZ,YAAY;CAWxB"}
|