@dotcms/angular 0.0.1-alpha.40 → 0.0.1-alpha.42

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 (78) hide show
  1. package/dotcms-angular.d.ts.map +1 -0
  2. package/esm2022/dotcms-angular.mjs +5 -0
  3. package/esm2022/index.mjs +5 -0
  4. package/esm2022/lib/components/dot-editable-text/dot-editable-text.component.mjs +225 -0
  5. package/esm2022/lib/components/dot-editable-text/utils.mjs +43 -0
  6. package/esm2022/lib/components/no-component/no-component.component.mjs +32 -0
  7. package/esm2022/lib/layout/column/column.component.mjs +45 -0
  8. package/esm2022/lib/layout/container/container.component.mjs +126 -0
  9. package/esm2022/lib/layout/contentlet/contentlet.component.mjs +120 -0
  10. package/esm2022/lib/layout/dotcms-layout/dotcms-layout.component.mjs +100 -0
  11. package/esm2022/lib/layout/row/row.component.mjs +29 -0
  12. package/esm2022/lib/models/dotcms.model.mjs +3 -0
  13. package/esm2022/lib/models/index.mjs +3 -0
  14. package/esm2022/lib/services/dotcms-context/page-context.service.mjs +75 -0
  15. package/esm2022/lib/utils/index.mjs +79 -0
  16. package/fesm2022/dotcms-angular.mjs +858 -0
  17. package/fesm2022/dotcms-angular.mjs.map +1 -0
  18. package/{src/index.ts → index.d.ts} +1 -0
  19. package/index.d.ts.map +1 -0
  20. package/lib/components/dot-editable-text/dot-editable-text.component.d.ts +129 -0
  21. package/lib/components/dot-editable-text/dot-editable-text.component.d.ts.map +1 -0
  22. package/lib/components/dot-editable-text/utils.d.ts +7 -0
  23. package/lib/components/dot-editable-text/utils.d.ts.map +1 -0
  24. package/lib/components/no-component/no-component.component.d.ts +22 -0
  25. package/lib/components/no-component/no-component.component.d.ts.map +1 -0
  26. package/lib/layout/column/column.component.d.ts +29 -0
  27. package/lib/layout/column/column.component.d.ts.map +1 -0
  28. package/lib/layout/container/container.component.d.ts +88 -0
  29. package/lib/layout/container/container.component.d.ts.map +1 -0
  30. package/{src/lib/layout/contentlet/contentlet.component.ts → lib/layout/contentlet/contentlet.component.d.ts} +17 -32
  31. package/lib/layout/contentlet/contentlet.component.d.ts.map +1 -0
  32. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts +67 -0
  33. package/lib/layout/dotcms-layout/dotcms-layout.component.d.ts.map +1 -0
  34. package/lib/layout/row/row.component.d.ts +20 -0
  35. package/lib/layout/row/row.component.d.ts.map +1 -0
  36. package/{src/lib/models/dotcms.model.ts → lib/models/dotcms.model.d.ts} +3 -21
  37. package/lib/models/dotcms.model.d.ts.map +1 -0
  38. package/{src/lib/models/index.ts → lib/models/index.d.ts} +1 -8
  39. package/lib/models/index.d.ts.map +1 -0
  40. package/{src/lib/services/dotcms-context/page-context.service.ts → lib/services/dotcms-context/page-context.service.d.ts} +12 -41
  41. package/lib/services/dotcms-context/page-context.service.d.ts.map +1 -0
  42. package/lib/utils/index.d.ts +63 -0
  43. package/lib/utils/index.d.ts.map +1 -0
  44. package/package.json +21 -4
  45. package/.eslintrc.json +0 -18
  46. package/jest.config.ts +0 -22
  47. package/ng-package.json +0 -7
  48. package/project.json +0 -33
  49. package/src/lib/components/dot-editable-text/dot-editable-text.component.css +0 -4
  50. package/src/lib/components/dot-editable-text/dot-editable-text.component.html +0 -8
  51. package/src/lib/components/dot-editable-text/dot-editable-text.component.spec.ts +0 -424
  52. package/src/lib/components/dot-editable-text/dot-editable-text.component.ts +0 -269
  53. package/src/lib/components/dot-editable-text/utils.ts +0 -51
  54. package/src/lib/components/no-component/no-component.component.css +0 -3
  55. package/src/lib/components/no-component/no-component.component.spec.ts +0 -24
  56. package/src/lib/components/no-component/no-component.component.ts +0 -31
  57. package/src/lib/layout/column/column.component.css +0 -99
  58. package/src/lib/layout/column/column.component.spec.ts +0 -33
  59. package/src/lib/layout/column/column.component.ts +0 -49
  60. package/src/lib/layout/container/container.component.css +0 -9
  61. package/src/lib/layout/container/container.component.html +0 -26
  62. package/src/lib/layout/container/container.component.spec.ts +0 -205
  63. package/src/lib/layout/container/container.component.ts +0 -140
  64. package/src/lib/layout/contentlet/contentlet.component.spec.ts +0 -22
  65. package/src/lib/layout/dotcms-layout/dotcms-layout.component.css +0 -3
  66. package/src/lib/layout/dotcms-layout/dotcms-layout.component.spec.ts +0 -195
  67. package/src/lib/layout/dotcms-layout/dotcms-layout.component.ts +0 -150
  68. package/src/lib/layout/row/row.component.css +0 -6
  69. package/src/lib/layout/row/row.component.spec.ts +0 -28
  70. package/src/lib/layout/row/row.component.ts +0 -32
  71. package/src/lib/services/dotcms-context/page-context.spec.ts +0 -80
  72. package/src/lib/utils/index.ts +0 -92
  73. package/src/lib/utils/testing.utils.ts +0 -1019
  74. package/src/test-setup.ts +0 -8
  75. package/tsconfig.json +0 -29
  76. package/tsconfig.lib.json +0 -12
  77. package/tsconfig.lib.prod.json +0 -9
  78. package/tsconfig.spec.json +0 -11
@@ -0,0 +1,67 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { EditorConfig } from '@dotcms/client';
3
+ import { DotCMSPageComponent } from '../../models';
4
+ import { DotCMSPageAsset } from '../../models/dotcms.model';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * `DotcmsLayoutComponent` is a class that represents the layout for a DotCMS page.
8
+ * It includes a `pageAsset` property that represents the DotCMS page asset and a `components` property that represents the dynamic components for the page.
9
+ *
10
+ * @export
11
+ * @class DotcmsLayoutComponent
12
+ */
13
+ export declare class DotcmsLayoutComponent implements OnInit {
14
+ private _pageAsset;
15
+ /**
16
+ * Represents the DotCMS page asset.
17
+ *
18
+ * @type {DotCMSPageAsset}
19
+ * @memberof DotcmsLayoutComponent
20
+ */
21
+ set pageAsset(value: DotCMSPageAsset);
22
+ /**
23
+ * Returns the DotCMS page asset.
24
+ *
25
+ * @readonly
26
+ * @type {DotCMSPageAsset}
27
+ * @memberof DotcmsLayoutComponent
28
+ */
29
+ get pageAsset(): DotCMSPageAsset;
30
+ /**
31
+ * The `components` property is a record of dynamic components for each Contentlet on the page.
32
+ *
33
+ * @type {DotCMSPageComponent}
34
+ * @memberof DotcmsLayoutComponent
35
+ * @required
36
+ */
37
+ components: DotCMSPageComponent;
38
+ /**
39
+ * The `onReload` property is a function that reloads the page after changes are made.
40
+ *
41
+ * @memberof DotcmsLayoutComponent
42
+ * @deprecated In future implementation we will be listening for the changes from the editor to update the page state so reload will not be needed.
43
+ */
44
+ onReload: () => void;
45
+ /**
46
+ *
47
+ * @type {DotCMSFetchConfig}
48
+ * @memberof DotCMSPageEditorConfig
49
+ * @description The configuration custom params for data fetching on Edit Mode.
50
+ * @example <caption>Example with Custom GraphQL query</caption>
51
+ * <dotcms-layout [editor]="{ query: 'query { ... }' }"/>
52
+ *
53
+ * @example <caption>Example usage with Custom Page API parameters</caption>
54
+ * <dotcms-layout [editor]="{ params: { depth: '2' } }"/>;
55
+ */
56
+ editor: EditorConfig;
57
+ private readonly route;
58
+ private readonly pageContextService;
59
+ private readonly destroyRef$;
60
+ private client;
61
+ protected readonly pageAsset$: import("rxjs").Observable<DotCMSPageAsset | null>;
62
+ ngOnInit(): void;
63
+ ngOnDestroy(): void;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<DotcmsLayoutComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<DotcmsLayoutComponent, "dotcms-layout", never, { "pageAsset": { "alias": "pageAsset"; "required": true; }; "components": { "alias": "components"; "required": true; }; "onReload": { "alias": "onReload"; "required": false; }; "editor": { "alias": "editor"; "required": false; }; }, {}, never, never, true, never>;
66
+ }
67
+ //# sourceMappingURL=dotcms-layout.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotcms-layout.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/layout/dotcms-layout/dotcms-layout.component.ts"],"names":[],"mappings":"AACA,OAAO,EAKH,MAAM,EAET,MAAM,eAAe,CAAC;AAIvB,OAAO,EAGH,YAAY,EAKf,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;;AAI5D;;;;;;GAMG;AACH,qBAca,qBAAsB,YAAW,MAAM;IAChD,OAAO,CAAC,UAAU,CAAmB;IAErC;;;;;OAKG;IACH,IACI,SAAS,CAAC,KAAK,EAAE,eAAe,EAOnC;IAED;;;;;;OAMG;IACH,IAAI,SAAS,IAAI,eAAe,CAE/B;IAED;;;;;;OAMG;IACwB,UAAU,EAAG,mBAAmB,CAAC;IAE5D;;;;;OAKG;IACM,QAAQ,EAAG,MAAM,IAAI,CAAC;IAE/B;;;;;;;;;;OAUG;IACM,MAAM,EAAG,YAAY,CAAC;IAE/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;IACjE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,MAAM,CAAgB;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,oDAAwC;IAErE,QAAQ;IA4BR,WAAW;yCA9FF,qBAAqB;2CAArB,qBAAqB;CAqGjC"}
@@ -0,0 +1,20 @@
1
+ import { DotPageAssetLayoutRow } from '../../models';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * This component is responsible to display a row with columns.
5
+ *
6
+ * @export
7
+ * @class RowComponent
8
+ */
9
+ export declare class RowComponent {
10
+ /**
11
+ * The row object containing the columns.
12
+ *
13
+ * @type {DotPageAssetLayoutRow}
14
+ * @memberof RowComponent
15
+ */
16
+ row: DotPageAssetLayoutRow;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<RowComponent, "dotcms-row", never, { "row": { "alias": "row"; "required": true; }; }, {}, never, never, true, never>;
19
+ }
20
+ //# sourceMappingURL=row.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.component.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/layout/row/row.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;;AAGrD;;;;;GAKG;AACH,qBAYa,YAAY;IACrB;;;;;OAKG;IACwB,GAAG,EAAG,qBAAqB,CAAC;yCAP9C,YAAY;2CAAZ,YAAY;CAQxB"}
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
-
3
1
  export interface DotCMSPageAsset {
4
2
  canCreateTemplate: boolean;
5
3
  containers: DotCMSPageAssetContainer;
@@ -22,7 +20,6 @@ export interface DotCMSPageAsset {
22
20
  forward: boolean;
23
21
  };
24
22
  }
25
-
26
23
  export interface DotPageAssetLayoutRow {
27
24
  identifier: number;
28
25
  value?: string;
@@ -30,7 +27,6 @@ export interface DotPageAssetLayoutRow {
30
27
  columns: DotPageAssetLayoutColumn[];
31
28
  styleClass?: string;
32
29
  }
33
-
34
30
  export interface DotPageAssetLayoutColumn {
35
31
  preview: boolean;
36
32
  containers: DotCMSContainer[];
@@ -40,7 +36,6 @@ export interface DotPageAssetLayoutColumn {
40
36
  left: number;
41
37
  styleClass?: string;
42
38
  }
43
-
44
39
  export interface DotCMSPageAssetContainer {
45
40
  [key: string]: {
46
41
  container: DotCMSContainer;
@@ -50,7 +45,6 @@ export interface DotCMSPageAssetContainer {
50
45
  };
51
46
  };
52
47
  }
53
-
54
48
  export interface DotCMSContainer {
55
49
  identifier: string;
56
50
  uuid: string;
@@ -93,7 +87,6 @@ export interface DotCMSContainer {
93
87
  contentlets: DotCMSContentlet[];
94
88
  parentPermissionable: DotCMSSiteParentPermissionable;
95
89
  }
96
-
97
90
  export interface DotCMSContentlet {
98
91
  archived: boolean;
99
92
  baseType: string;
@@ -131,9 +124,8 @@ export interface DotCMSContentlet {
131
124
  contentTypeIcon?: string;
132
125
  variant?: string;
133
126
  __icon__?: string;
134
- [key: string]: any; // This is a catch-all for any other custom properties that might be on the contentlet.
127
+ [key: string]: any;
135
128
  }
136
-
137
129
  export interface DotcmsNavigationItem {
138
130
  code?: any;
139
131
  folder: string;
@@ -147,7 +139,6 @@ export interface DotcmsNavigationItem {
147
139
  target: string;
148
140
  order: number;
149
141
  }
150
-
151
142
  interface DotCMSTemplate {
152
143
  iDate: number;
153
144
  type: string;
@@ -182,7 +173,6 @@ interface DotCMSTemplate {
182
173
  new: boolean;
183
174
  canEdit: boolean;
184
175
  }
185
-
186
176
  interface DotCMSPage {
187
177
  template: string;
188
178
  modDate: number;
@@ -228,7 +218,6 @@ interface DotCMSPage {
228
218
  liveInode: string;
229
219
  shortyLive: string;
230
220
  }
231
-
232
221
  interface DotCMSViewAs {
233
222
  language: {
234
223
  id: number;
@@ -239,7 +228,6 @@ interface DotCMSViewAs {
239
228
  };
240
229
  mode: string;
241
230
  }
242
-
243
231
  interface DotCMSLayout {
244
232
  pageWidth: string;
245
233
  width: string;
@@ -250,7 +238,6 @@ interface DotCMSLayout {
250
238
  body: DotPageAssetLayoutBody;
251
239
  sidebar: DotPageAssetLayoutSidebar;
252
240
  }
253
-
254
241
  interface DotCMSContainerStructure {
255
242
  id: string;
256
243
  structureId: string;
@@ -259,7 +246,6 @@ interface DotCMSContainerStructure {
259
246
  code: string;
260
247
  contentTypeVar: string;
261
248
  }
262
-
263
249
  interface DotPageAssetLayoutSidebar {
264
250
  preview: boolean;
265
251
  containers: DotCMSContainer[];
@@ -267,11 +253,9 @@ interface DotPageAssetLayoutSidebar {
267
253
  widthPercent: number;
268
254
  width: string;
269
255
  }
270
-
271
256
  interface DotPageAssetLayoutBody {
272
257
  rows: DotPageAssetLayoutRow[];
273
258
  }
274
-
275
259
  interface DotCMSSite {
276
260
  lowIndexPriority: boolean;
277
261
  name: string;
@@ -322,14 +306,12 @@ interface DotCMSSite {
322
306
  sortOrder: number;
323
307
  contentType: DotCMSSiteContentType;
324
308
  }
325
-
326
309
  interface DotCMSSiteContentType {
327
310
  owner?: any;
328
311
  parentPermissionable: DotCMSSiteParentPermissionable;
329
312
  permissionId: string;
330
313
  permissionType: string;
331
314
  }
332
-
333
315
  export interface DotCMSSiteParentPermissionable {
334
316
  Inode: string;
335
317
  Identifier: string;
@@ -344,7 +326,6 @@ export interface DotCMSSiteParentPermissionable {
344
326
  childrenPermissionable?: any;
345
327
  variantId?: string;
346
328
  }
347
-
348
329
  interface DotCMSSiteStructure {
349
330
  iDate: number;
350
331
  type: string;
@@ -390,7 +371,6 @@ interface DotCMSSiteStructure {
390
371
  versionId: string;
391
372
  versionType: string;
392
373
  }
393
-
394
374
  interface DotCMSSiteField {
395
375
  iDate: number;
396
376
  type: string;
@@ -432,3 +412,5 @@ interface DotCMSSiteField {
432
412
  versionId: string;
433
413
  versionType: string;
434
414
  }
415
+ export {};
416
+ //# sourceMappingURL=dotcms.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotcms.model.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk/angular/src/lib/models/dotcms.model.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,wBAAwB,CAAC;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB,EAAE,OAAO,CAAC;QAC3B,iBAAiB,EAAE,OAAO,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;KACpB,CA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AAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -1,17 +1,12 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
1
  export * from './dotcms.model';
3
-
4
2
  import { Type } from '@angular/core';
5
-
6
3
  import { DotCMSPageAsset } from './dotcms.model';
7
-
8
4
  /**
9
5
  * Represents a dynamic component entity.
10
6
  * @typedef {Promise<Type<any>>} DynamicComponentEntity
11
7
  * @memberof @dotcms/angular
12
8
  */
13
9
  export type DynamicComponentEntity = Promise<Type<any>>;
14
-
15
10
  /**
16
11
  * Represents the context of a DotCMS page.
17
12
  */
@@ -22,14 +17,12 @@ export interface DotCMSPageContext {
22
17
  * @memberof DotCMSPageContext
23
18
  */
24
19
  pageAsset: DotCMSPageAsset;
25
-
26
20
  /**
27
21
  * Represents the dynamic components of the page for each Content Type.
28
22
  * @type {DotCMSPageComponent}
29
23
  * @memberof DotCMSPageContext
30
24
  */
31
25
  components: DotCMSPageComponent;
32
-
33
26
  /**
34
27
  * Indicates whether the page is being viewed inside the editor.
35
28
  * @type {boolean}
@@ -37,7 +30,6 @@ export interface DotCMSPageContext {
37
30
  */
38
31
  isInsideEditor: boolean;
39
32
  }
40
-
41
33
  /**
42
34
  * Represents a DotCMS page component.
43
35
  * Used to store the dynamic components of a DotCMS page.
@@ -45,3 +37,4 @@ export interface DotCMSPageContext {
45
37
  * @memberof @dotcms/angular
46
38
  */
47
39
  export type DotCMSPageComponent = Record<string, DynamicComponentEntity>;
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,78 +1,49 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
2
-
3
- import { Injectable } from '@angular/core';
4
-
5
- import { map } from 'rxjs/operators';
6
-
7
- import { isInsideEditor } from '@dotcms/client';
8
-
1
+ import { Observable } from 'rxjs';
9
2
  import { DotCMSPageComponent, DotCMSPageContext } from '../../models';
10
3
  import { DotCMSPageAsset } from '../../models/dotcms.model';
11
-
4
+ import * as i0 from "@angular/core";
12
5
  /**
13
6
  * @author dotCMS
14
7
  * @description This service is responsible for managing the page context.
15
8
  * @export
16
9
  * @class PageContextService
17
10
  */
18
- @Injectable({
19
- providedIn: 'root'
20
- })
21
- export class PageContextService {
22
- private context$ = new BehaviorSubject<DotCMSPageContext | null>(null);
23
-
11
+ export declare class PageContextService {
12
+ private context$;
24
13
  /**
25
14
  * @description Get the context
26
15
  * @readonly
27
16
  * @type {DotCMSPageContext}
28
17
  * @memberof PageContextService
29
18
  */
30
- get context(): DotCMSPageContext {
31
- return this.context$.getValue() as DotCMSPageContext;
32
- }
33
-
19
+ get context(): DotCMSPageContext;
34
20
  /**
35
21
  * @description Get the context as an observable
36
22
  * @readonly
37
23
  * @memberof PageContextService
38
24
  */
39
- get contextObs$() {
40
- return this.context$.asObservable();
41
- }
42
-
25
+ get contextObs$(): Observable<DotCMSPageContext | null>;
43
26
  /**
44
27
  * @description Get the current page asset
45
28
  * @readonly
46
29
  * @type {(Observable<DotCMSPageAsset | null>)}
47
30
  * @memberof PageContextService
48
31
  */
49
- get currentPage$(): Observable<DotCMSPageAsset | null> {
50
- return this.contextObs$.pipe(map((context) => context?.pageAsset || null));
51
- }
52
-
32
+ get currentPage$(): Observable<DotCMSPageAsset | null>;
53
33
  /**
54
34
  *
55
35
  * @description Set the context
56
36
  * @param {DotCMSPageAsset} value
57
37
  * @memberof DotcmsContextService
58
38
  */
59
- setContext(pageAsset: DotCMSPageAsset, components: DotCMSPageComponent) {
60
- this.context$.next({
61
- pageAsset,
62
- components,
63
- isInsideEditor: isInsideEditor()
64
- });
65
- }
66
-
39
+ setContext(pageAsset: DotCMSPageAsset, components: DotCMSPageComponent): void;
67
40
  /**
68
41
  * @description Set the page asset in the context
69
42
  * @param {DotCMSPageAsset} pageAsset
70
43
  * @memberof PageContextService
71
44
  */
72
- setPageAsset(pageAsset: DotCMSPageAsset) {
73
- this.context$.next({
74
- ...this.context,
75
- pageAsset
76
- });
77
- }
45
+ setPageAsset(pageAsset: DotCMSPageAsset): void;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageContextService, never>;
47
+ static ɵprov: i0.ɵɵInjectableDeclaration<PageContextService>;
78
48
  }
49
+ //# sourceMappingURL=page-context.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-context.service.d.ts","sourceRoot":"","sources":["../../../../../../../libs/sdk/angular/src/lib/services/dotcms-context/page-context.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AAQnD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;;AAE5D;;;;;GAKG;AACH,qBAGa,kBAAkB;IAC3B,OAAO,CAAC,QAAQ,CAAuD;IAEvE;;;;;OAKG;IACH,IAAI,OAAO,IAAI,iBAAiB,CAE/B;IAED;;;;OAIG;IACH,IAAI,WAAW,yCAEd;IAED;;;;;OAKG;IACH,IAAI,YAAY,IAAI,UAAU,CAAC,eAAe,GAAG,IAAI,CAAC,CAErD;IAED;;;;;OAKG;IACH,UAAU,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB;IAQtE;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,eAAe;yCAnD9B,kBAAkB;6CAAlB,kBAAkB;CAyD9B"}
@@ -0,0 +1,63 @@
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
+ */
9
+ export declare const getContainersData: (containers: DotCMSPageAssetContainer, containerRef: DotCMSContainer) => {
10
+ acceptTypes: string;
11
+ contentlets: import("../models/dotcms.model").DotCMSContentlet[];
12
+ variantId: string | undefined;
13
+ identifier: string;
14
+ uuid: string;
15
+ iDate: number;
16
+ type: string;
17
+ owner?: string | undefined;
18
+ inode: string;
19
+ source: string;
20
+ title: string;
21
+ friendlyName: string;
22
+ modDate: number;
23
+ modUser: string;
24
+ sortOrder: number;
25
+ showOnMenu: boolean;
26
+ code?: string | undefined;
27
+ maxContentlets: number;
28
+ useDiv: boolean;
29
+ sortContentletsBy?: string | undefined;
30
+ preLoop: string;
31
+ postLoop: string;
32
+ staticify: boolean;
33
+ luceneQuery?: string | undefined;
34
+ notes: string;
35
+ languageId?: number | undefined;
36
+ path?: string | undefined;
37
+ live: boolean;
38
+ locked: boolean;
39
+ working: boolean;
40
+ deleted: boolean;
41
+ name: string;
42
+ archived: boolean;
43
+ permissionId: string;
44
+ versionId: string;
45
+ versionType: string;
46
+ permissionType: string;
47
+ categoryId: string;
48
+ idate: number;
49
+ new: boolean;
50
+ parentPermissionable: import("../models/dotcms.model").DotCMSSiteParentPermissionable;
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
+ */
59
+ export declare const getPositionStyleClasses: (start: number, end: number) => {
60
+ startClass: string | null;
61
+ endClass: string | null;
62
+ };
63
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;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.40",
3
+ "version": "0.0.1-alpha.42",
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.40",
8
+ "@dotcms/client": "0.0.1-alpha.42",
9
9
  "@tinymce/tinymce-angular": "^8.0.0",
10
10
  "rxjs": "^7.8.0"
11
11
  },
@@ -28,5 +28,22 @@
28
28
  "bugs": {
29
29
  "url": "https://github.com/dotCMS/core/issues"
30
30
  },
31
- "homepage": "https://github.com/dotCMS/core/tree/master/core-web/libs/sdk/angular/README.md"
32
- }
31
+ "homepage": "https://github.com/dotCMS/core/tree/master/core-web/libs/sdk/angular/README.md",
32
+ "module": "fesm2022/dotcms-angular.mjs",
33
+ "typings": "index.d.ts",
34
+ "exports": {
35
+ "./package.json": {
36
+ "default": "./package.json"
37
+ },
38
+ ".": {
39
+ "types": "./index.d.ts",
40
+ "esm2022": "./esm2022/dotcms-angular.mjs",
41
+ "esm": "./esm2022/dotcms-angular.mjs",
42
+ "default": "./fesm2022/dotcms-angular.mjs"
43
+ }
44
+ },
45
+ "sideEffects": false,
46
+ "dependencies": {
47
+ "tslib": "^2.3.0"
48
+ }
49
+ }
package/.eslintrc.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "extends": ["../../../.eslintrc.base.json"],
3
- "ignorePatterns": ["!**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["*.ts", "*.tsx"],
11
- "rules": {}
12
- },
13
- {
14
- "files": ["*.js", "*.jsx"],
15
- "rules": {}
16
- }
17
- ]
18
- }
package/jest.config.ts DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: 'sdk-angular',
4
- preset: '../../../jest.preset.js',
5
- setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6
- coverageDirectory: '../../../coverage/libs/sdk/angular',
7
- transform: {
8
- '^.+\\.(ts|mjs|js|html)$': [
9
- 'jest-preset-angular',
10
- {
11
- tsconfig: '<rootDir>/tsconfig.spec.json',
12
- stringifyContentPathRegex: '\\.(html|svg)$'
13
- }
14
- ]
15
- },
16
- transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17
- snapshotSerializers: [
18
- 'jest-preset-angular/build/serializers/no-ng-attributes',
19
- 'jest-preset-angular/build/serializers/ng-snapshot',
20
- 'jest-preset-angular/build/serializers/html-comment'
21
- ]
22
- };
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../../dist/libs/sdk/angular",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- }
7
- }
package/project.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "name": "sdk-angular",
3
- "$schema": "../../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "libs/sdk/angular/src",
5
- "prefix": "lib",
6
- "tags": [],
7
- "projectType": "library",
8
- "targets": {
9
- "build": {
10
- "executor": "@nx/angular:package",
11
- "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12
- "options": {
13
- "project": "libs/sdk/angular/ng-package.json"
14
- },
15
- "configurations": {
16
- "production": {
17
- "tsConfig": "libs/sdk/angular/tsconfig.lib.prod.json"
18
- },
19
- "development": {
20
- "tsConfig": "libs/sdk/angular/tsconfig.lib.json"
21
- }
22
- },
23
- "defaultConfiguration": "production"
24
- },
25
- "test": {
26
- "executor": "@nx/jest:jest",
27
- "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
28
- "options": {
29
- "jestConfig": "libs/sdk/angular/jest.config.ts"
30
- }
31
- }
32
- }
33
- }
@@ -1,4 +0,0 @@
1
- :host ::ng-deep .mce-content-body:not(.mce-edit-focus):hover {
2
- outline: 2px solid #006ce7;
3
- border-radius: 4px;
4
- }
@@ -1,8 +0,0 @@
1
- @if (isInsideEditor) {
2
- <editor
3
- #tinyEditor
4
- [init]="init"
5
- [initialValue]="content"
6
- (onMouseDown)="onMouseDown($event)"
7
- (onFocusOut)="onFocusOut()" />
8
- }