@acorex-platform/module-content-management-client 0.0.32 → 0.0.33

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 (19) hide show
  1. package/fesm2022/acorex-platform-module-content-management-client-contracts-entities-promotion.mjs +302 -0
  2. package/fesm2022/acorex-platform-module-content-management-client-contracts-entities-promotion.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-content-management-client-contracts-entities-text-template.mjs +264 -0
  4. package/fesm2022/acorex-platform-module-content-management-client-contracts-entities-text-template.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-acorex-platform-module-content-management-client-contracts-entity-catalog-CTui3PB-.mjs +56 -0
  6. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-acorex-platform-module-content-management-client-contracts-entity-catalog-CTui3PB-.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-promotion.entity-DXk_WIh3.mjs +266 -0
  8. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-promotion.entity-DXk_WIh3.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-text-template.entity-C8SFkg-E.mjs +228 -0
  10. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog-text-template.entity-C8SFkg-E.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog.mjs +2 -0
  12. package/fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-content-management-client-local-entities.mjs +30 -0
  14. package/fesm2022/acorex-platform-module-content-management-client-local-entities.mjs.map +1 -0
  15. package/package.json +17 -1
  16. package/types/acorex-platform-module-content-management-client-contracts-entities-promotion.d.ts +8 -0
  17. package/types/acorex-platform-module-content-management-client-contracts-entities-text-template.d.ts +5 -0
  18. package/types/acorex-platform-module-content-management-client-contracts-entity-catalog.d.ts +10 -0
  19. package/types/acorex-platform-module-content-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,30 @@
1
+ import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
2
+ import { RootConfig } from '@acorex-platform/module-content-management-client/contracts';
3
+ export { contentManagementLocalEntityCatalog } from '@acorex-platform/module-content-management-client/contracts/entity-catalog';
4
+
5
+ //#region ----- Imports -----
6
+ //#endregion
7
+ //#region ----- Provide local entities -----
8
+ /**
9
+ * Registers content-management layouts on the client from packaged factories.
10
+ * Each `import()` targets a secondary entry so unused entities stay out of the
11
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
12
+ * `Domain:GetEntityLayout`.
13
+ */
14
+ function provideContentManagementLocalEntities() {
15
+ return provideLocalEntityCatalog({
16
+ moduleName: RootConfig.module.name,
17
+ loaders: {
18
+ [RootConfig.entities.promotion.name]: () => import('@acorex-platform/module-content-management-client/contracts/entities/promotion').then((m) => m.promotionEntityFactory()),
19
+ [RootConfig.entities.textTemplate.name]: () => import('@acorex-platform/module-content-management-client/contracts/entities/text-template').then((m) => m.textTemplateEntityFactory()),
20
+ },
21
+ });
22
+ }
23
+ //#endregion
24
+
25
+ /**
26
+ * Generated bundle index. Do not edit.
27
+ */
28
+
29
+ export { provideContentManagementLocalEntities };
30
+ //# sourceMappingURL=acorex-platform-module-content-management-client-local-entities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-content-management-client-local-entities.mjs","sources":["../../../../libs/modules/content-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/content-management/client/src/lib/acorex-platform-module-content-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-content-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers content-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideContentManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.promotion.name]: () =>\n import('@acorex-platform/module-content-management-client/contracts/entities/promotion').then((m) => m.promotionEntityFactory()),\n [RootConfig.entities.textTemplate.name]: () =>\n import('@acorex-platform/module-content-management-client/contracts/entities/text-template').then((m) => m.textTemplateEntityFactory()),\n },\n });\n}\n\nexport { contentManagementLocalEntityCatalog } from '@acorex-platform/module-content-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,qCAAqC,GAAA;AACnD,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,gFAAgF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,EAAE,CAAC;AAClI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,oFAAoF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,CAAC;AAC1I,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC7BA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-content-management-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -22,6 +22,22 @@
22
22
  "./contracts": {
23
23
  "types": "./types/acorex-platform-module-content-management-client-contracts.d.ts",
24
24
  "default": "./fesm2022/acorex-platform-module-content-management-client-contracts.mjs"
25
+ },
26
+ "./contracts/entities/promotion": {
27
+ "types": "./types/acorex-platform-module-content-management-client-contracts-entities-promotion.d.ts",
28
+ "default": "./fesm2022/acorex-platform-module-content-management-client-contracts-entities-promotion.mjs"
29
+ },
30
+ "./contracts/entities/text-template": {
31
+ "types": "./types/acorex-platform-module-content-management-client-contracts-entities-text-template.d.ts",
32
+ "default": "./fesm2022/acorex-platform-module-content-management-client-contracts-entities-text-template.mjs"
33
+ },
34
+ "./contracts/entity-catalog": {
35
+ "types": "./types/acorex-platform-module-content-management-client-contracts-entity-catalog.d.ts",
36
+ "default": "./fesm2022/acorex-platform-module-content-management-client-contracts-entity-catalog.mjs"
37
+ },
38
+ "./local-entities": {
39
+ "types": "./types/acorex-platform-module-content-management-client-local-entities.d.ts",
40
+ "default": "./fesm2022/acorex-platform-module-content-management-client-local-entities.mjs"
25
41
  }
26
42
  },
27
43
  "type": "module"
@@ -0,0 +1,8 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ /**
4
+ * Builds the Promotion entity definition (mock/runtime parity with former module JSON seed).
5
+ */
6
+ declare function promotionEntityFactory(): Promise<AXPEntity | null>;
7
+
8
+ export { promotionEntityFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function textTemplateEntityFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { textTemplateEntityFactory };
@@ -0,0 +1,10 @@
1
+ import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
2
+
3
+ /**
4
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
5
+ * so RootConfig imports stay light. Server seed and client `local-entities`
6
+ * consume this catalog explicitly.
7
+ */
8
+ declare const contentManagementLocalEntityCatalog: AXPLocalEntityCatalog;
9
+
10
+ export { contentManagementLocalEntityCatalog };
@@ -0,0 +1,12 @@
1
+ import * as _angular_core from '@angular/core';
2
+ export { contentManagementLocalEntityCatalog } from '@acorex-platform/module-content-management-client/contracts/entity-catalog';
3
+
4
+ /**
5
+ * Registers content-management layouts on the client from packaged factories.
6
+ * Each `import()` targets a secondary entry so unused entities stay out of the
7
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
8
+ * `Domain:GetEntityLayout`.
9
+ */
10
+ declare function provideContentManagementLocalEntities(): _angular_core.EnvironmentProviders;
11
+
12
+ export { provideContentManagementLocalEntities };