@dotcms/angular 0.0.1-alpha.37 → 0.0.1-alpha.38

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 (30) hide show
  1. package/README.md +128 -78
  2. package/esm2022/lib/components/dot-editable-text/dot-editable-text.component.mjs +3 -3
  3. package/esm2022/lib/components/no-component/no-component.component.mjs +11 -6
  4. package/esm2022/lib/layout/column/column.component.mjs +16 -4
  5. package/esm2022/lib/layout/container/container.component.mjs +52 -4
  6. package/esm2022/lib/layout/contentlet/contentlet.component.mjs +59 -4
  7. package/esm2022/lib/layout/dotcms-layout/dotcms-layout.component.mjs +17 -4
  8. package/esm2022/lib/layout/row/row.component.mjs +10 -4
  9. package/esm2022/lib/models/index.mjs +1 -1
  10. package/esm2022/lib/services/dotcms-context/page-context.service.mjs +3 -3
  11. package/esm2022/lib/utils/index.mjs +23 -1
  12. package/fesm2022/dotcms-angular.mjs +187 -26
  13. package/fesm2022/dotcms-angular.mjs.map +1 -1
  14. package/lib/components/no-component/no-component.component.d.ts +11 -2
  15. package/lib/components/no-component/no-component.component.d.ts.map +1 -1
  16. package/lib/layout/column/column.component.d.ts +18 -0
  17. package/lib/layout/column/column.component.d.ts.map +1 -1
  18. package/lib/layout/container/container.component.d.ts +54 -0
  19. package/lib/layout/container/container.component.d.ts.map +1 -1
  20. package/lib/layout/contentlet/contentlet.component.d.ts +67 -0
  21. package/lib/layout/contentlet/contentlet.component.d.ts.map +1 -1
  22. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts +16 -3
  23. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts.map +1 -1
  24. package/lib/layout/row/row.component.d.ts +12 -0
  25. package/lib/layout/row/row.component.d.ts.map +1 -1
  26. package/lib/models/index.d.ts +29 -0
  27. package/lib/models/index.d.ts.map +1 -1
  28. package/lib/utils/index.d.ts +14 -0
  29. package/lib/utils/index.d.ts.map +1 -1
  30. package/package.json +2 -2
@@ -1,11 +1,40 @@
1
1
  export * from './dotcms.model';
2
2
  import { Type } from '@angular/core';
3
3
  import { DotCMSPageAsset } from './dotcms.model';
4
+ /**
5
+ * Represents a dynamic component entity.
6
+ * @typedef {Promise<Type<any>>} DynamicComponentEntity
7
+ * @memberof @dotcms/angular
8
+ */
4
9
  export type DynamicComponentEntity = Promise<Type<any>>;
10
+ /**
11
+ * Represents the context of a DotCMS page.
12
+ */
5
13
  export interface DotCMSPageContext {
14
+ /**
15
+ * Represents the DotCMS page asset.
16
+ * @type {DotCMSPageAsset}
17
+ * @memberof DotCMSPageContext
18
+ */
6
19
  pageAsset: DotCMSPageAsset;
20
+ /**
21
+ * Represents the dynamic components of the page for each Content Type.
22
+ * @type {DotCMSPageComponent}
23
+ * @memberof DotCMSPageContext
24
+ */
7
25
  components: DotCMSPageComponent;
26
+ /**
27
+ * Indicates whether the page is being viewed inside the editor.
28
+ * @type {boolean}
29
+ * @memberof DotCMSPageContext
30
+ */
8
31
  isInsideEditor: boolean;
9
32
  }
33
+ /**
34
+ * Represents a DotCMS page component.
35
+ * Used to store the dynamic components of a DotCMS page.
36
+ * @typedef {Record<string, DynamicComponentEntity>} DotCMSPageComponent
37
+ * @memberof @dotcms/angular
38
+ */
10
39
  export type DotCMSPageComponent = Record<string, DynamicComponentEntity>;
11
40
  //# sourceMappingURL=index.d.ts.map
@@ -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,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,mBAAmB,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAED,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":"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,4 +1,11 @@
1
1
  import { DotCMSContainer, DotCMSPageAssetContainer } from '../models/dotcms.model';
2
+ /**
3
+ * Retrieves the data for a set of containers.
4
+ *
5
+ * @param containers - The DotCMSPageAssetContainer object containing the containers.
6
+ * @param containerRef - The DotCMSContainer object representing the container reference.
7
+ * @returns An object containing the container data, accept types, contentlets, and variant ID.
8
+ */
2
9
  export declare const getContainersData: (containers: DotCMSPageAssetContainer, containerRef: DotCMSContainer) => {
3
10
  acceptTypes: string;
4
11
  contentlets: import("../models/dotcms.model").DotCMSContentlet[];
@@ -42,6 +49,13 @@ export declare const getContainersData: (containers: DotCMSPageAssetContainer, c
42
49
  new: boolean;
43
50
  parentPermissionable: import("../models/dotcms.model").DotCMSSiteParentPermissionable;
44
51
  };
52
+ /**
53
+ * Returns the position style classes based on the start and end values.
54
+ * Used to set the grid column start and end values.
55
+ * @param start - The start value.
56
+ * @param end - The end value.
57
+ * @returns An object containing the startClass and endClass.
58
+ */
45
59
  export declare const getPositionStyleClasses: (start: number, end: number) => {
46
60
  startClass: string | null;
47
61
  endClass: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAqCnF,eAAO,MAAM,iBAAiB,eACd,wBAAwB,gBACtB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,OAAO,MAAM;;;CAQjE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AA6CnF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,eACd,wBAAwB,gBACtB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,OAAO,MAAM;;;CAQjE,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dotcms/angular",
3
- "version": "0.0.1-alpha.37",
3
+ "version": "0.0.1-alpha.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.1.0",
6
6
  "@angular/core": "^17.1.0",
7
7
  "@angular/router": "^17.1.0",
8
- "@dotcms/client": "0.0.1-alpha.37",
8
+ "@dotcms/client": "0.0.1-alpha.38",
9
9
  "@tinymce/tinymce-angular": "^8.0.0",
10
10
  "rxjs": "^7.8.0"
11
11
  },