@dotcms/angular 0.0.1-beta.9 → 1.0.0

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.
Files changed (126) hide show
  1. package/README.md +646 -167
  2. package/dotcms-angular.d.ts.map +1 -1
  3. package/esm2022/dotcms-angular.mjs +2 -2
  4. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/code.component.mjs +49 -0
  5. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.mjs +125 -0
  6. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/image.component.mjs +25 -0
  7. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/list.component.mjs +66 -0
  8. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/table.component.mjs +97 -0
  9. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/text.component.mjs +231 -0
  10. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/unknown.component.mjs +65 -0
  11. package/esm2022/lib/components/dotcms-block-editor-renderer/blocks/video.component.mjs +48 -0
  12. package/esm2022/lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.mjs +50 -0
  13. package/esm2022/lib/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.mjs +45 -0
  14. package/esm2022/lib/components/dotcms-editable-text/dotcms-editable-text.component.mjs +240 -0
  15. package/esm2022/lib/components/dotcms-editable-text/utils.mjs +20 -0
  16. package/esm2022/lib/components/dotcms-layout-body/components/column/column.component.mjs +45 -0
  17. package/esm2022/lib/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.mjs +52 -0
  18. package/esm2022/lib/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.mjs +47 -0
  19. package/esm2022/lib/components/dotcms-layout-body/components/container/container.component.mjs +99 -0
  20. package/esm2022/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.mjs +145 -0
  21. package/esm2022/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.mjs +47 -0
  22. package/esm2022/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.mjs +55 -0
  23. package/esm2022/lib/components/dotcms-layout-body/components/row/row.component.mjs +46 -0
  24. package/esm2022/lib/components/dotcms-layout-body/dotcms-layout-body.component.mjs +69 -0
  25. package/esm2022/lib/directives/dotcms-show-when/dotcms-show-when.directive.mjs +49 -0
  26. package/esm2022/lib/models/index.mjs +2 -2
  27. package/esm2022/lib/providers/dotcms-client/dotcms-client.provider.mjs +52 -0
  28. package/esm2022/lib/providers/dotcms-image-loader/dotcms-image_loader.mjs +74 -0
  29. package/esm2022/lib/services/dotcms-editable-page.service.mjs +93 -0
  30. package/esm2022/lib/store/dotcms.store.mjs +61 -0
  31. package/esm2022/public_api.mjs +8 -0
  32. package/fesm2022/dotcms-angular.mjs +1578 -612
  33. package/fesm2022/dotcms-angular.mjs.map +1 -1
  34. package/index.d.ts +6 -6
  35. package/lib/components/dotcms-block-editor-renderer/blocks/code.component.d.ts +10 -0
  36. package/lib/components/dotcms-block-editor-renderer/blocks/code.component.d.ts.map +1 -0
  37. package/lib/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts +34 -0
  38. package/lib/components/dotcms-block-editor-renderer/blocks/dot-contentlet.component.d.ts.map +1 -0
  39. package/lib/components/dotcms-block-editor-renderer/blocks/image.component.d.ts +9 -0
  40. package/lib/components/dotcms-block-editor-renderer/blocks/image.component.d.ts.map +1 -0
  41. package/lib/components/dotcms-block-editor-renderer/blocks/list.component.d.ts +14 -0
  42. package/lib/components/dotcms-block-editor-renderer/blocks/list.component.d.ts.map +1 -0
  43. package/lib/components/dotcms-block-editor-renderer/blocks/table.component.d.ts +10 -0
  44. package/lib/components/dotcms-block-editor-renderer/blocks/table.component.d.ts.map +1 -0
  45. package/lib/components/dotcms-block-editor-renderer/blocks/text.component.d.ts +27 -0
  46. package/lib/components/dotcms-block-editor-renderer/blocks/text.component.d.ts.map +1 -0
  47. package/lib/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts +18 -0
  48. package/lib/components/dotcms-block-editor-renderer/blocks/unknown.component.d.ts.map +1 -0
  49. package/lib/components/dotcms-block-editor-renderer/blocks/video.component.d.ts +10 -0
  50. package/lib/components/dotcms-block-editor-renderer/blocks/video.component.d.ts.map +1 -0
  51. package/lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts +39 -0
  52. package/lib/components/dotcms-block-editor-renderer/dotcms-block-editor-renderer.component.d.ts.map +1 -0
  53. package/lib/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts +12 -0
  54. package/lib/components/dotcms-block-editor-renderer/item/dotcms-block-editor-item.component.d.ts.map +1 -0
  55. package/lib/components/{dot-editable-text/dot-editable-text.component.d.ts → dotcms-editable-text/dotcms-editable-text.component.d.ts} +30 -30
  56. package/lib/components/dotcms-editable-text/dotcms-editable-text.component.d.ts.map +1 -0
  57. package/lib/components/dotcms-editable-text/utils.d.ts.map +1 -0
  58. package/lib/components/dotcms-layout-body/components/column/column.component.d.ts +21 -0
  59. package/lib/components/dotcms-layout-body/components/column/column.component.d.ts.map +1 -0
  60. package/lib/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts +27 -0
  61. package/lib/components/dotcms-layout-body/components/container/components/container-not-found/container-not-found.component.d.ts.map +1 -0
  62. package/lib/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts +23 -0
  63. package/lib/components/dotcms-layout-body/components/container/components/empty-container/empty-container.component.d.ts.map +1 -0
  64. package/lib/components/dotcms-layout-body/components/container/container.component.d.ts +32 -0
  65. package/lib/components/dotcms-layout-body/components/container/container.component.d.ts.map +1 -0
  66. package/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts +48 -0
  67. package/lib/components/dotcms-layout-body/components/contentlet/contentlet.component.d.ts.map +1 -0
  68. package/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts +16 -0
  69. package/lib/components/dotcms-layout-body/components/fallback-component/fallback-component.component.d.ts.map +1 -0
  70. package/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts +13 -0
  71. package/lib/components/dotcms-layout-body/components/page-error-message/page-error-message.component.d.ts.map +1 -0
  72. package/lib/components/dotcms-layout-body/components/row/row.component.d.ts +22 -0
  73. package/lib/components/dotcms-layout-body/components/row/row.component.d.ts.map +1 -0
  74. package/lib/components/dotcms-layout-body/dotcms-layout-body.component.d.ts +30 -0
  75. package/lib/components/dotcms-layout-body/dotcms-layout-body.component.d.ts.map +1 -0
  76. package/lib/directives/dotcms-show-when/dotcms-show-when.directive.d.ts +21 -0
  77. package/lib/directives/dotcms-show-when/dotcms-show-when.directive.d.ts.map +1 -0
  78. package/lib/models/index.d.ts +9 -10
  79. package/lib/models/index.d.ts.map +1 -1
  80. package/lib/providers/dotcms-client/dotcms-client.provider.d.ts +60 -0
  81. package/lib/providers/dotcms-client/dotcms-client.provider.d.ts.map +1 -0
  82. package/lib/{utils/image_loader.d.ts → providers/dotcms-image-loader/dotcms-image_loader.d.ts} +1 -1
  83. package/lib/providers/dotcms-image-loader/dotcms-image_loader.d.ts.map +1 -0
  84. package/lib/services/dotcms-editable-page.service.d.ts +40 -0
  85. package/lib/services/dotcms-editable-page.service.d.ts.map +1 -0
  86. package/lib/store/dotcms.store.d.ts +36 -0
  87. package/lib/store/dotcms.store.d.ts.map +1 -0
  88. package/package.json +9 -9
  89. package/public_api.d.ts +9 -0
  90. package/public_api.d.ts.map +1 -0
  91. package/esm2022/index.mjs +0 -6
  92. package/esm2022/lib/components/dot-editable-text/dot-editable-text.component.mjs +0 -225
  93. package/esm2022/lib/components/dot-editable-text/utils.mjs +0 -43
  94. package/esm2022/lib/components/no-component/no-component.component.mjs +0 -32
  95. package/esm2022/lib/layout/column/column.component.mjs +0 -45
  96. package/esm2022/lib/layout/container/container.component.mjs +0 -126
  97. package/esm2022/lib/layout/contentlet/contentlet.component.mjs +0 -120
  98. package/esm2022/lib/layout/dotcms-layout/dotcms-layout.component.mjs +0 -101
  99. package/esm2022/lib/layout/row/row.component.mjs +0 -29
  100. package/esm2022/lib/models/dotcms.model.mjs +0 -3
  101. package/esm2022/lib/services/dotcms-context/page-context.service.mjs +0 -75
  102. package/esm2022/lib/utils/image_loader.mjs +0 -75
  103. package/esm2022/lib/utils/index.mjs +0 -84
  104. package/index.d.ts.map +0 -1
  105. package/lib/components/dot-editable-text/dot-editable-text.component.d.ts.map +0 -1
  106. package/lib/components/dot-editable-text/utils.d.ts.map +0 -1
  107. package/lib/components/no-component/no-component.component.d.ts +0 -22
  108. package/lib/components/no-component/no-component.component.d.ts.map +0 -1
  109. package/lib/layout/column/column.component.d.ts +0 -29
  110. package/lib/layout/column/column.component.d.ts.map +0 -1
  111. package/lib/layout/container/container.component.d.ts +0 -88
  112. package/lib/layout/container/container.component.d.ts.map +0 -1
  113. package/lib/layout/contentlet/contentlet.component.d.ts +0 -86
  114. package/lib/layout/contentlet/contentlet.component.d.ts.map +0 -1
  115. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts +0 -68
  116. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts.map +0 -1
  117. package/lib/layout/row/row.component.d.ts +0 -20
  118. package/lib/layout/row/row.component.d.ts.map +0 -1
  119. package/lib/models/dotcms.model.d.ts +0 -416
  120. package/lib/models/dotcms.model.d.ts.map +0 -1
  121. package/lib/services/dotcms-context/page-context.service.d.ts +0 -49
  122. package/lib/services/dotcms-context/page-context.service.d.ts.map +0 -1
  123. package/lib/utils/image_loader.d.ts.map +0 -1
  124. package/lib/utils/index.d.ts +0 -63
  125. package/lib/utils/index.d.ts.map +0 -1
  126. /package/lib/components/{dot-editable-text → dotcms-editable-text}/utils.d.ts +0 -0
@@ -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/src/lib/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/src/lib/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"}
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotcms-block-editor-renderer.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/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"}
@@ -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/src/lib/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"}
@@ -1,53 +1,53 @@
1
1
  import { EditorComponent } from '@tinymce/tinymce-angular';
2
2
  import { EventObj } from '@tinymce/tinymce-angular/editor/Events';
3
3
  import { OnChanges, OnInit } from '@angular/core';
4
+ import { DotCMSBasicContentlet } from '@dotcms/types';
4
5
  import { DOT_EDITABLE_TEXT_FORMAT, DOT_EDITABLE_TEXT_MODE } from './utils';
5
- import { DotCMSContentlet } from '../../models';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Dot editable text component.
9
9
  * This component is responsible to render a text field that can be edited inline.
10
10
  *
11
11
  * @export
12
- * @class DotEditableTextComponent
12
+ * @class DotCMSEditableTextComponent
13
13
  * @implements {OnInit}
14
14
  * @implements {OnChanges}
15
15
  */
16
- export declare class DotEditableTextComponent implements OnInit, OnChanges {
16
+ export declare class DotCMSEditableTextComponent<T extends DotCMSBasicContentlet> implements OnInit, OnChanges {
17
17
  #private;
18
18
  editorComponent: EditorComponent;
19
19
  /**
20
20
  * Represents the mode of the editor which can be `plain`, `minimal`, or `full`
21
21
  *
22
22
  * @type {DOT_EDITABLE_TEXT_MODE}
23
- * @memberof DotEditableTextComponent
23
+ * @memberof DotCMSEditableTextComponent
24
24
  */
25
25
  mode: DOT_EDITABLE_TEXT_MODE;
26
26
  /**
27
27
  * Represents the format of the editor which can be `text` or `html`
28
28
  *
29
29
  * @type {DOT_EDITABLE_TEXT_FORMAT}
30
- * @memberof DotEditableTextComponent
30
+ * @memberof DotCMSEditableTextComponent
31
31
  */
32
32
  format: DOT_EDITABLE_TEXT_FORMAT;
33
33
  /**
34
34
  * Represents the `contentlet` that can be inline edited
35
35
  *
36
36
  * @type {DotCMSContentlet}
37
- * @memberof DotEditableTextComponent
37
+ * @memberof DotCMSEditableTextComponent
38
38
  */
39
- contentlet: DotCMSContentlet;
39
+ contentlet: T;
40
40
  /**
41
41
  * Represents the field name of the `contentlet` that can be edited
42
42
  *
43
- * @memberof DotEditableTextComponent
43
+ * @memberof DotCMSEditableTextComponent
44
44
  */
45
- fieldName: string;
45
+ fieldName: keyof T;
46
46
  /**
47
47
  * Represents the content of the `contentlet` that can be edited
48
48
  *
49
49
  * @protected
50
- * @memberof DotEditableTextComponent
50
+ * @memberof DotCMSEditableTextComponent
51
51
  */
52
52
  protected content: string;
53
53
  /**
@@ -55,37 +55,37 @@ export declare class DotEditableTextComponent implements OnInit, OnChanges {
55
55
  *
56
56
  * @protected
57
57
  * @type {EditorComponent['init']}
58
- * @memberof DotEditableTextComponent
58
+ * @memberof DotCMSEditableTextComponent
59
59
  */
60
60
  protected init: EditorComponent['init'];
61
- /**
62
- * Represents if the component is inside the editor
63
- *
64
- * @protected
65
- * @type {boolean}
66
- * @memberof DotEditableTextComponent
67
- */
68
- protected isInsideEditor: boolean;
69
61
  /**
70
62
  * The TinyMCE editor
71
63
  *
72
64
  * @readonly
73
- * @memberof DotEditableTextComponent
65
+ * @memberof DotCMSEditableTextComponent
74
66
  */
75
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
76
  /**
77
77
  * Returns the number of pages the contentlet is on
78
78
  *
79
79
  * @readonly
80
- * @memberof DotEditableTextComponent
80
+ * @memberof DotCMSEditableTextComponent
81
81
  */
82
- get onNumberOfPages(): any;
82
+ get onNumberOfPages(): string | 1;
83
83
  /**
84
84
  * Handle copy contentlet inline editing success event
85
85
  *
86
86
  * @param {MessageEvent} { data }
87
87
  * @return {*}
88
- * @memberof DotEditableTextComponent
88
+ * @memberof DotCMSEditableTextComponent
89
89
  */
90
90
  onMessage({ data }: MessageEvent): void;
91
91
  ngOnInit(): void;
@@ -95,14 +95,14 @@ export declare class DotEditableTextComponent implements OnInit, OnChanges {
95
95
  *
96
96
  * @param {EventObj<MouseEvent>} { event }
97
97
  * @return {*}
98
- * @memberof DotEditableTextComponent
98
+ * @memberof DotCMSEditableTextComponent
99
99
  */
100
100
  onMouseDown({ event }: EventObj<MouseEvent>): void;
101
101
  /**
102
102
  * Handle focus out event
103
103
  *
104
104
  * @return {*}
105
- * @memberof DotEditableTextComponent
105
+ * @memberof DotCMSEditableTextComponent
106
106
  */
107
107
  onFocusOut(): void;
108
108
  /**
@@ -111,7 +111,7 @@ export declare class DotEditableTextComponent implements OnInit, OnChanges {
111
111
  * @private
112
112
  * @param {string} editedContent
113
113
  * @return {*}
114
- * @memberof DotEditableTextComponent
114
+ * @memberof DotCMSEditableTextComponent
115
115
  */
116
116
  private innerHTMLToElement;
117
117
  /**
@@ -120,10 +120,10 @@ export declare class DotEditableTextComponent implements OnInit, OnChanges {
120
120
  * @private
121
121
  * @param {string} editedContent
122
122
  * @return {*}
123
- * @memberof DotEditableTextComponent
123
+ * @memberof DotCMSEditableTextComponent
124
124
  */
125
125
  private didContentChange;
126
- static ɵfac: i0.ɵɵFactoryDeclaration<DotEditableTextComponent, never>;
127
- static ɵcmp: i0.ɵɵComponentDeclaration<DotEditableTextComponent, "dot-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>;
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
128
  }
129
- //# sourceMappingURL=dot-editable-text.component.d.ts.map
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/src/lib/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 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/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/src/lib/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/src/lib/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/src/lib/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/src/lib/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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentlet.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/sdk/angular/src/lib/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/src/lib/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/src/lib/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/src/lib/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"}
@@ -0,0 +1,30 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { DotCMSPageAsset, DotCMSPageRendererMode, DotPageAssetLayoutRow } from '@dotcms/types';
3
+ import { DotCMSPageComponent } from '../../models';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * @description This component is used to render the layout for a DotCMS page.
7
+ * @param {DotCMSPageAsset} page - The page to render the layout for
8
+ * @param {DotCMSPageComponent} components - The components to render the layout for
9
+ * @param {DotCMSPageRendererMode} mode - The mode to render the layout for
10
+ *
11
+ * @example
12
+ * <dotcms-layout-body [page]="page" [components]="components" [mode]="'development'" />
13
+ *
14
+ * @export
15
+ * @implements {OnChanges}
16
+ * @class DotCMSLayoutBodyComponent
17
+ */
18
+ export declare class DotCMSLayoutBodyComponent implements OnChanges {
19
+ #private;
20
+ page: DotCMSPageAsset;
21
+ components: DotCMSPageComponent;
22
+ mode: DotCMSPageRendererMode;
23
+ $isDevMode: import("@angular/core").Signal<boolean>;
24
+ $rows: import("@angular/core").WritableSignal<DotPageAssetLayoutRow[]>;
25
+ $isEmpty: import("@angular/core").WritableSignal<boolean>;
26
+ ngOnChanges(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSLayoutBodyComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DotCMSLayoutBodyComponent, "dotcms-layout-body", never, { "page": { "alias": "page"; "required": true; }; "components": { "alias": "components"; "required": true; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
29
+ }
30
+ //# sourceMappingURL=dotcms-layout-body.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotcms-layout-body.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/components/dotcms-layout-body/dotcms-layout-body.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,SAAS,EAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAK/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;;AAEnD;;;;;;;;;;;;GAYG;AACH,qBAiBa,yBAA0B,YAAW,SAAS;;IAC5B,IAAI,EAAG,eAAe,CAAC;IACvB,UAAU,EAAE,mBAAmB,CAAM;IACvD,IAAI,EAAE,sBAAsB,CAAgB;IAIrD,UAAU,0CAAgC;IAE1C,KAAK,kEAAuC;IAE5C,QAAQ,kDAAiB;IAEzB,WAAW;yCAbF,yBAAyB;2CAAzB,yBAAyB;CAwBrC"}
@@ -0,0 +1,21 @@
1
+ import { UVE_MODE } from '@dotcms/types';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to show a template when the UVE is in a specific mode.
5
+ *
6
+ * @example
7
+ * <div *dotCMSShowWhen="UVE_MODE.EDIT">
8
+ * This will be shown when the UVE is in edit mode.
9
+ * </div>
10
+ *
11
+ * @export
12
+ * @class DotCMSShowWhenDirective
13
+ */
14
+ export declare class DotCMSShowWhenDirective {
15
+ #private;
16
+ set dotCMSShowWhen(value: UVE_MODE);
17
+ private updateViewContainer;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DotCMSShowWhenDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DotCMSShowWhenDirective, "[dotCMSShowWhen]", never, { "dotCMSShowWhen": { "alias": "dotCMSShowWhen"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
21
+ //# sourceMappingURL=dotcms-show-when.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotcms-show-when.directive.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/directives/dotcms-show-when/dotcms-show-when.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAY,MAAM,eAAe,CAAC;;AAGnD;;;;;;;;;;GAUG;AACH,qBAIa,uBAAuB;;IAIhC,IAAa,cAAc,CAAC,KAAK,EAAE,QAAQ,EAG1C;IAKD,OAAO,CAAC,mBAAmB;yCAZlB,uBAAuB;2CAAvB,uBAAuB;CAyBnC"}
@@ -1,6 +1,5 @@
1
- export * from './dotcms.model';
2
1
  import { Type } from '@angular/core';
3
- import { DotCMSPageAsset } from './dotcms.model';
2
+ import { DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
4
3
  /**
5
4
  * Represents a dynamic component entity.
6
5
  * @typedef {Promise<Type<any>>} DynamicComponentEntity
@@ -10,25 +9,25 @@ export type DynamicComponentEntity = Promise<Type<any>>;
10
9
  /**
11
10
  * Represents the context of a DotCMS page.
12
11
  */
13
- export interface DotCMSPageContext {
12
+ export interface DotCMSPageStore {
14
13
  /**
15
14
  * Represents the DotCMS page asset.
16
15
  * @type {DotCMSPageAsset}
17
- * @memberof DotCMSPageContext
16
+ * @memberof DotCMSPageStore
18
17
  */
19
- pageAsset: DotCMSPageAsset;
18
+ page: DotCMSPageAsset;
20
19
  /**
21
20
  * Represents the dynamic components of the page for each Content Type.
22
21
  * @type {DotCMSPageComponent}
23
- * @memberof DotCMSPageContext
22
+ * @memberof DotCMSPageStore
24
23
  */
25
24
  components: DotCMSPageComponent;
26
25
  /**
27
- * Indicates whether the page is being viewed inside the editor.
28
- * @type {boolean}
29
- * @memberof DotCMSPageContext
26
+ * Indicates the renderer mode.
27
+ * @type {DotCMSPageRendererMode}
28
+ * @memberof DotCMSPageStore
30
29
  */
31
- isInsideEditor: boolean;
30
+ mode: DotCMSPageRendererMode;
32
31
  }
33
32
  /**
34
33
  * Represents a DotCMS page component.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/models/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;;;OAIG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/models/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;;OAIG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;;;OAIG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC"}