@acorex-platform/module-person-core-client 1.0.1 → 2.0.0-beta.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 (40) hide show
  1. package/fesm2022/{acorex-platform-module-person-core-client-assign-existing-person-to-party.command-CicvKND6.mjs → acorex-platform-module-person-core-client-assign-existing-person-to-party.command-kMJk0kmI.mjs} +1 -1
  2. package/fesm2022/{acorex-platform-module-person-core-client-assign-existing-person-to-party.command-CicvKND6.mjs.map → acorex-platform-module-person-core-client-assign-existing-person-to-party.command-kMJk0kmI.mjs.map} +1 -1
  3. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs +1 -1
  4. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs +1 -1
  6. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-DabkKRip.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-BPAvBf7N.mjs} +11 -11
  8. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-DabkKRip.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-BPAvBf7N.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-CsXUqvcL.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-BH4IWFDR.mjs} +3 -3
  10. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-BH4IWFDR.mjs.map +1 -0
  11. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-CD21bFcW.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-sazQCENr.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-CD21bFcW.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-sazQCENr.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-Cb9XxOFn.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-D_myv78x.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-Cb9XxOFn.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-D_myv78x.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-7ZxcUbC-.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-P-JLpCxy.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-7ZxcUbC-.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-P-JLpCxy.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-BDZZ8z5i.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-B6bc7_m-.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-BDZZ8z5i.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-B6bc7_m-.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-BAQbtyzJ.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_pEO0Sz.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-BAQbtyzJ.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_pEO0Sz.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-4JlxAp2h.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-InST4aiE.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-4JlxAp2h.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-InST4aiE.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B0kgbt9q.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-C9nF43x2.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B0kgbt9q.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-C9nF43x2.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-DDexGFP-.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Tk6dRawn.mjs} +3 -3
  26. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Tk6dRawn.mjs.map +1 -0
  27. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CxtwO-SI.mjs → acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CbfrtlSY.mjs} +2 -2
  28. package/fesm2022/{acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CxtwO-SI.mjs.map → acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CbfrtlSY.mjs.map} +1 -1
  29. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog.mjs +1 -1
  30. package/fesm2022/acorex-platform-module-person-core-client-contracts.mjs +40 -4
  31. package/fesm2022/acorex-platform-module-person-core-client-contracts.mjs.map +1 -1
  32. package/fesm2022/{acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs → acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs} +29 -12
  33. package/fesm2022/acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-module-person-core-client.mjs +58 -7
  35. package/fesm2022/acorex-platform-module-person-core-client.mjs.map +1 -1
  36. package/package.json +2 -2
  37. package/types/acorex-platform-module-person-core-client-contracts.d.ts +12 -2
  38. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-CsXUqvcL.mjs.map +0 -1
  39. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-DDexGFP-.mjs.map +0 -1
  40. package/fesm2022/acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { RootConfig, buildContactAssignmentPersonSnapshot, AXPPeopleOrganizationPermissionKeys, AXMPersonCoreMenuKeys } from '@acorex-platform/module-person-core-client/contracts';
1
+ import { RootConfig, buildContactAssignmentPersonSnapshot, resolvePersonWriteTarget, stampPersonFullName, AXPPeopleOrganizationPermissionKeys, AXMPersonCoreMenuKeys } from '@acorex-platform/module-person-core-client/contracts';
2
2
  import * as i0 from '@angular/core';
3
3
  import { NgModule, inject, Injectable } from '@angular/core';
4
4
  import { provideLazyProvider } from '@acorex-platform/framework-client/core';
@@ -11,7 +11,7 @@ import { AXPCommonMenuKeys, AXPCommonPermissionGroupKeys } from '@acorex-platfor
11
11
 
12
12
  //#region ---- ContactAssignment person hydration ----
13
13
  const CONTACT_ASSIGNMENT_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}`;
14
- const PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;
14
+ const PERSON_ENTITY$1 = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;
15
15
  /**
16
16
  * Hydrates nested `person` on ContactAssignment rows from `personId` so consumers
17
17
  * (e.g. party contact lists) receive Person fields such as `fullName`, `phones`, and `emails`.
@@ -39,7 +39,7 @@ const contactAssignmentPersonHydrateMiddleware = {
39
39
  if (!personIds.length) {
40
40
  return;
41
41
  }
42
- const response = await backend.query(PERSON_ENTITY, {
42
+ const response = await backend.query(PERSON_ENTITY$1, {
43
43
  skip: 0,
44
44
  take: personIds.length,
45
45
  filter: { field: 'id', operator: { type: 'in' }, value: personIds },
@@ -67,6 +67,47 @@ const contactAssignmentPersonHydrateMiddleware = {
67
67
  };
68
68
  //#endregion
69
69
 
70
+ //#region ----- Imports -----
71
+ //#endregion
72
+ //#region ----- Person full name -----
73
+ const PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;
74
+ /**
75
+ * Persists Person.fullName as firstName + " " + lastName on create and when a name changes.
76
+ */
77
+ const personFullNameMiddleware = {
78
+ target: {
79
+ entity: PERSON_ENTITY,
80
+ ops: ['create', 'update', 'upsertOne'],
81
+ order: 80,
82
+ },
83
+ execute: async (ctx, next) => {
84
+ const data = ctx.data;
85
+ if (data && typeof data === 'object' && !Array.isArray(data)) {
86
+ const record = data;
87
+ const target = resolvePersonWriteTarget(record);
88
+ const creating = ctx.op === 'create' || ctx.op === 'upsertOne';
89
+ const renaming = 'firstName' in target || 'lastName' in target;
90
+ if (creating || renaming) {
91
+ let existing = null;
92
+ if (!creating && ctx.id != null && (!('firstName' in target) || !('lastName' in target))) {
93
+ try {
94
+ const row = await ctx.entities.getOne(PERSON_ENTITY, ctx.id);
95
+ if (row && typeof row === 'object') {
96
+ existing = row;
97
+ }
98
+ }
99
+ catch {
100
+ existing = null;
101
+ }
102
+ }
103
+ stampPersonFullName(record, existing);
104
+ }
105
+ }
106
+ await next();
107
+ },
108
+ };
109
+ //#endregion
110
+
70
111
  //#region ---- Imports ----
71
112
  //#endregion
72
113
  //#region ---- Module ----
@@ -81,14 +122,19 @@ class AXMPersonCoreModule {
81
122
  multi: true,
82
123
  useValue: contactAssignmentPersonHydrateMiddleware,
83
124
  },
125
+ {
126
+ provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
127
+ multi: true,
128
+ useValue: personFullNameMiddleware,
129
+ },
84
130
  provideCommandSetups([
85
131
  {
86
132
  key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,
87
- command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-CicvKND6.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
133
+ command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-kMJk0kmI.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
88
134
  },
89
135
  {
90
136
  key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,
91
- command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
137
+ command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
92
138
  },
93
139
  ]),
94
140
  ] }); }
@@ -105,14 +151,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
105
151
  multi: true,
106
152
  useValue: contactAssignmentPersonHydrateMiddleware,
107
153
  },
154
+ {
155
+ provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
156
+ multi: true,
157
+ useValue: personFullNameMiddleware,
158
+ },
108
159
  provideCommandSetups([
109
160
  {
110
161
  key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,
111
- command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-CicvKND6.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
162
+ command: () => import('./acorex-platform-module-person-core-client-assign-existing-person-to-party.command-kMJk0kmI.mjs').then((c) => c.AXMContactAssignmentAssignExistingPersonCommand),
112
163
  },
113
164
  {
114
165
  key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,
115
- command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
166
+ command: () => import('./acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs').then((c) => c.AXMContactAssignmentCreateWithNewPersonCommand),
116
167
  },
117
168
  ]),
118
169
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-person-core-client.mjs","sources":["../../../../libs/modules/person-core/client/src/lib/middlewares/contact-assignment-person-hydrate.middleware.ts","../../../../libs/modules/person-core/client/src/lib/person-core.module.ts","../../../../libs/modules/person-core/client/src/lib/menu.provider.ts","../../../../libs/modules/person-core/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/person-core/client/src/acorex-platform-module-person-core-client.ts"],"sourcesContent":["import { AXPEntityStorageMiddleware } from '@acorex-platform/framework-client/layout/entity';\nimport { get, set } from 'lodash';\n\nimport { RootConfig, buildContactAssignmentPersonSnapshot } from '@acorex-platform/module-person-core-client/contracts';\n\n//#region ---- ContactAssignment person hydration ----\n\nconst CONTACT_ASSIGNMENT_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}`;\nconst PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;\n\n/**\n * Hydrates nested `person` on ContactAssignment rows from `personId` so consumers\n * (e.g. party contact lists) receive Person fields such as `fullName`, `phones`, and `emails`.\n */\nexport const contactAssignmentPersonHydrateMiddleware: AXPEntityStorageMiddleware = {\n target: { ops: ['getOne', 'getAll', 'query'], order: 13 },\n execute: async (ctx, next) => {\n const backend = ctx.entities;\n\n await next();\n\n if (ctx.entityName !== CONTACT_ASSIGNMENT_ENTITY) {\n return;\n }\n\n try {\n const rows: Record<string, unknown>[] = Array.isArray(ctx.result)\n ? ctx.result\n : Array.isArray((ctx.result as { items?: unknown[] })?.items)\n ? ((ctx.result as { items: Record<string, unknown>[] }).items ?? [])\n : ctx.result\n ? [ctx.result as Record<string, unknown>]\n : [];\n\n if (!rows.length) {\n return;\n }\n\n const personIds = Array.from(\n new Set(rows.map((row) => get(row, 'personId')).filter((id) => id != null)),\n );\n\n if (!personIds.length) {\n return;\n }\n\n const response = await backend.query(PERSON_ENTITY, {\n skip: 0,\n take: personIds.length,\n filter: { field: 'id', operator: { type: 'in' }, value: personIds },\n });\n\n const personMap = new Map<unknown, Record<string, unknown>>();\n for (const item of response?.items ?? []) {\n const record = item as unknown as Record<string, unknown>;\n personMap.set(get(record, 'id'), record);\n }\n\n for (const row of rows) {\n const personId = get(row, 'personId');\n if (personId == null) {\n continue;\n }\n const person = personMap.get(personId);\n if (person) {\n set(row, 'person', buildContactAssignmentPersonSnapshot(person, personId as string));\n }\n }\n } catch {\n // swallow to avoid breaking main flow\n }\n },\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\nimport { NgModule } from '@angular/core';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_ENTITY_STORAGE_MIDDLEWARE } from '@acorex-platform/framework-client/layout/entity';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { contactAssignmentPersonHydrateMiddleware } from './middlewares/contact-assignment-person-hydrate.middleware';\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [],\n providers: [\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMPersonCorePermissionDefinitionProvider)\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMPersonCoreMenuProvider)\n ),\n \n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n multi: true,\n useValue: contactAssignmentPersonHydrateMiddleware,\n },\n provideCommandSetups([\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,\n command: () =>\n import('./commands/assign-existing-person-to-party.command').then(\n (c) => c.AXMContactAssignmentAssignExistingPersonCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,\n command: () =>\n import('./commands/create-contact-with-new-person.command').then(\n (c) => c.AXMContactAssignmentCreateWithNewPersonCommand,\n ),\n },\n ]),\n ],\n})\nexport class AXMPersonCoreModule { }\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n AXPPeopleOrganizationPermissionKeys,\n AXMPersonCoreMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMPersonCoreMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPPeopleOrganizationPermissionKeys;\n\n context.find(AXPCommonMenuKeys.Contacts).addItems([\n {\n name: AXMPersonCoreMenuKeys.Persons,\n text: RootConfig.entities.person.titlePlural,\n icon: RootConfig.entities.person.icon,\n priority: 30,\n path: this.entityService.withEntity(module.name, RootConfig.entities.person.name).createPath(),\n policy: {\n features: [module.name],\n permissions: [keys.MaintainPersons],\n },\n },\n ]);\n\n context.find(AXPCommonMenuKeys.PeopleAndDemographics).addItems([\n {\n name: AXMPersonCoreMenuKeys.EducationLevels,\n text: RootConfig.entities.educationLevel.titlePlural,\n icon: RootConfig.entities.educationLevel.icon,\n priority: 1,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.educationLevel.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Genders,\n text: RootConfig.entities.gender.titlePlural,\n icon: RootConfig.entities.gender.icon,\n priority: 2,\n path: this.entityService.withEntity(module.name, RootConfig.entities.gender.name).createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.MaritalStatuses,\n text: RootConfig.entities.maritalStatus.titlePlural,\n icon: RootConfig.entities.maritalStatus.icon,\n priority: 3,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.maritalStatus.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonTitles,\n text: RootConfig.entities.personTitle.titlePlural,\n icon: RootConfig.entities.personTitle.icon,\n priority: 4,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personTitle.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonIdentifierTypes,\n text: RootConfig.entities.personIdentifierType.titlePlural,\n icon: RootConfig.entities.personIdentifierType.icon,\n priority: 5,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personIdentifierType.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Religions,\n text: RootConfig.entities.religion.titlePlural,\n icon: RootConfig.entities.religion.icon,\n priority: 6,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.religion.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.ContactRoles,\n text: RootConfig.entities.contactRole.titlePlural,\n icon: RootConfig.entities.contactRole.icon,\n priority: 7,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.contactRole.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPPeopleOrganizationPermissionKeys\n} from '@acorex-platform/module-person-core-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers person-core capabilities into the shared People & Organization group.\n */\n@Injectable()\nexport class AXMPersonCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPPeopleOrganizationPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:people-organization.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.PeopleOrganization.Root, `${G}.people-organization.title`, `${G}.people-organization.description`, { order: 10 });\n\n context\n .addGroup(\n groups.PeopleOrganization.Workforce,\n `${G}.people-organization-workforce.title`,\n `${G}.people-organization-workforce.description`,\n { parent: groups.PeopleOrganization.Root, order: 20 },\n )\n .addPermission(keys.MaintainPersons, `${P}.maintain-persons.title`, `${P}.maintain-persons.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA;AAEA,MAAM,yBAAyB,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE;AAC3G,MAAM,aAAa,GAAG,CAAA,EAA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C,EAC1C,CAAA,EAAG,CAAC,CAAA,0CAAA,CAA4C,EAChD,EAAE,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;AAEtD,aAAA,aAAa,CAAC,IAAI,CAAC,eAAe,EAAE,CAAA,EAAG,CAAC,CAAA,uBAAA,CAAyB,EAAE,CAAA,EAAG,CAAC,CAAA,6BAAA,CAA+B;AACtG,aAAA,aAAa;AACb,aAAA,QAAQ,EAAE;IACf;8GAnBW,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAzC,yCAAyC,EAAA,CAAA,CAAA;;2FAAzC,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBADrD;;;;;;;;ACtBD;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-module-person-core-client.mjs","sources":["../../../../libs/modules/person-core/client/src/lib/middlewares/contact-assignment-person-hydrate.middleware.ts","../../../../libs/modules/person-core/client/src/lib/middlewares/person-full-name.middleware.ts","../../../../libs/modules/person-core/client/src/lib/person-core.module.ts","../../../../libs/modules/person-core/client/src/lib/menu.provider.ts","../../../../libs/modules/person-core/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/person-core/client/src/acorex-platform-module-person-core-client.ts"],"sourcesContent":["import { AXPEntityStorageMiddleware } from '@acorex-platform/framework-client/layout/entity';\nimport { get, set } from 'lodash';\n\nimport { RootConfig, buildContactAssignmentPersonSnapshot } from '@acorex-platform/module-person-core-client/contracts';\n\n//#region ---- ContactAssignment person hydration ----\n\nconst CONTACT_ASSIGNMENT_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}`;\nconst PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;\n\n/**\n * Hydrates nested `person` on ContactAssignment rows from `personId` so consumers\n * (e.g. party contact lists) receive Person fields such as `fullName`, `phones`, and `emails`.\n */\nexport const contactAssignmentPersonHydrateMiddleware: AXPEntityStorageMiddleware = {\n target: { ops: ['getOne', 'getAll', 'query'], order: 13 },\n execute: async (ctx, next) => {\n const backend = ctx.entities;\n\n await next();\n\n if (ctx.entityName !== CONTACT_ASSIGNMENT_ENTITY) {\n return;\n }\n\n try {\n const rows: Record<string, unknown>[] = Array.isArray(ctx.result)\n ? ctx.result\n : Array.isArray((ctx.result as { items?: unknown[] })?.items)\n ? ((ctx.result as { items: Record<string, unknown>[] }).items ?? [])\n : ctx.result\n ? [ctx.result as Record<string, unknown>]\n : [];\n\n if (!rows.length) {\n return;\n }\n\n const personIds = Array.from(\n new Set(rows.map((row) => get(row, 'personId')).filter((id) => id != null)),\n );\n\n if (!personIds.length) {\n return;\n }\n\n const response = await backend.query(PERSON_ENTITY, {\n skip: 0,\n take: personIds.length,\n filter: { field: 'id', operator: { type: 'in' }, value: personIds },\n });\n\n const personMap = new Map<unknown, Record<string, unknown>>();\n for (const item of response?.items ?? []) {\n const record = item as unknown as Record<string, unknown>;\n personMap.set(get(record, 'id'), record);\n }\n\n for (const row of rows) {\n const personId = get(row, 'personId');\n if (personId == null) {\n continue;\n }\n const person = personMap.get(personId);\n if (person) {\n set(row, 'person', buildContactAssignmentPersonSnapshot(person, personId as string));\n }\n }\n } catch {\n // swallow to avoid breaking main flow\n }\n },\n};\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPEntityStorageMiddleware } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig, resolvePersonWriteTarget, stampPersonFullName } from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ----- Person full name -----\n\nconst PERSON_ENTITY = `${RootConfig.module.name}.${RootConfig.entities.person.name}`;\n\n/**\n * Persists Person.fullName as firstName + \" \" + lastName on create and when a name changes.\n */\nexport const personFullNameMiddleware: AXPEntityStorageMiddleware = {\n target: {\n entity: PERSON_ENTITY,\n ops: ['create', 'update', 'upsertOne'],\n order: 80,\n },\n execute: async (ctx, next) => {\n const data = ctx.data;\n if (data && typeof data === 'object' && !Array.isArray(data)) {\n const record = data as Record<string, unknown>;\n const target = resolvePersonWriteTarget(record);\n const creating = ctx.op === 'create' || ctx.op === 'upsertOne';\n const renaming = 'firstName' in target || 'lastName' in target;\n\n if (creating || renaming) {\n let existing: Record<string, unknown> | null = null;\n if (!creating && ctx.id != null && (!('firstName' in target) || !('lastName' in target))) {\n try {\n const row = await ctx.entities.getOne(PERSON_ENTITY, ctx.id);\n if (row && typeof row === 'object') {\n existing = row as unknown as Record<string, unknown>;\n }\n } catch {\n existing = null;\n }\n }\n stampPersonFullName(record, existing);\n }\n }\n\n await next();\n },\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { RootConfig } from '@acorex-platform/module-person-core-client/contracts';\nimport { NgModule } from '@angular/core';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_ENTITY_STORAGE_MIDDLEWARE } from '@acorex-platform/framework-client/layout/entity';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { contactAssignmentPersonHydrateMiddleware } from './middlewares/contact-assignment-person-hydrate.middleware';\nimport { personFullNameMiddleware } from './middlewares/person-full-name.middleware';\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [],\n providers: [\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMPersonCorePermissionDefinitionProvider)\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMPersonCoreMenuProvider)\n ),\n \n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n multi: true,\n useValue: contactAssignmentPersonHydrateMiddleware,\n },\n {\n provide: AXP_ENTITY_STORAGE_MIDDLEWARE,\n multi: true,\n useValue: personFullNameMiddleware,\n },\n provideCommandSetups([\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`,\n command: () =>\n import('./commands/assign-existing-person-to-party.command').then(\n (c) => c.AXMContactAssignmentAssignExistingPersonCommand,\n ),\n },\n {\n key: `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`,\n command: () =>\n import('./commands/create-contact-with-new-person.command').then(\n (c) => c.AXMContactAssignmentCreateWithNewPersonCommand,\n ),\n },\n ]),\n ],\n})\nexport class AXMPersonCoreModule { }\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n AXPPeopleOrganizationPermissionKeys,\n AXMPersonCoreMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-person-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMPersonCoreMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPPeopleOrganizationPermissionKeys;\n\n context.find(AXPCommonMenuKeys.Contacts).addItems([\n {\n name: AXMPersonCoreMenuKeys.Persons,\n text: RootConfig.entities.person.titlePlural,\n icon: RootConfig.entities.person.icon,\n priority: 30,\n path: this.entityService.withEntity(module.name, RootConfig.entities.person.name).createPath(),\n policy: {\n features: [module.name],\n permissions: [keys.MaintainPersons],\n },\n },\n ]);\n\n context.find(AXPCommonMenuKeys.PeopleAndDemographics).addItems([\n {\n name: AXMPersonCoreMenuKeys.EducationLevels,\n text: RootConfig.entities.educationLevel.titlePlural,\n icon: RootConfig.entities.educationLevel.icon,\n priority: 1,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.educationLevel.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Genders,\n text: RootConfig.entities.gender.titlePlural,\n icon: RootConfig.entities.gender.icon,\n priority: 2,\n path: this.entityService.withEntity(module.name, RootConfig.entities.gender.name).createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.MaritalStatuses,\n text: RootConfig.entities.maritalStatus.titlePlural,\n icon: RootConfig.entities.maritalStatus.icon,\n priority: 3,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.maritalStatus.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonTitles,\n text: RootConfig.entities.personTitle.titlePlural,\n icon: RootConfig.entities.personTitle.icon,\n priority: 4,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personTitle.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.PersonIdentifierTypes,\n text: RootConfig.entities.personIdentifierType.titlePlural,\n icon: RootConfig.entities.personIdentifierType.icon,\n priority: 5,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.personIdentifierType.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.Religions,\n text: RootConfig.entities.religion.titlePlural,\n icon: RootConfig.entities.religion.icon,\n priority: 6,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.religion.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n {\n name: AXMPersonCoreMenuKeys.ContactRoles,\n text: RootConfig.entities.contactRole.titlePlural,\n icon: RootConfig.entities.contactRole.icon,\n priority: 7,\n path: this.entityService\n .withEntity(module.name, RootConfig.entities.contactRole.name)\n .createPath(),\n policy: {\n features: [RootConfig.module.name],\n permissions: [keys.Setup],\n },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPPeopleOrganizationPermissionKeys\n} from '@acorex-platform/module-person-core-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers person-core capabilities into the shared People & Organization group.\n */\n@Injectable()\nexport class AXMPersonCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPPeopleOrganizationPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:people-organization.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.PeopleOrganization.Root, `${G}.people-organization.title`, `${G}.people-organization.description`, { order: 10 });\n\n context\n .addGroup(\n groups.PeopleOrganization.Workforce,\n `${G}.people-organization-workforce.title`,\n `${G}.people-organization-workforce.description`,\n { parent: groups.PeopleOrganization.Root, order: 20 },\n )\n .addPermission(keys.MaintainPersons, `${P}.maintain-persons.title`, `${P}.maintain-persons.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PERSON_ENTITY"],"mappings":";;;;;;;;;;;AAKA;AAEA,MAAM,yBAAyB,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE;AAC3G,MAAMA,eAAa,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EA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G,4BAA4B;QAC3C,MAAM,CAAC,GAAG,yCAAyC;QACnD,MAAM,CAAC,GAAG,2BAA2B;QAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAA,EAAG,CAAC,4BAA4B,EAAE,CAAA,EAAG,CAAC,CAAA,gCAAA,CAAkC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QAEzI;AACG,aAAA,QAAQ,CACP,MAAM,CAAC,kBAAkB,CAAC,SAAS,EACnC,CAAA,EAAG,CAAC,CAAA,oCAAA,CAAsC,EAC1C,CAAA,EAAG,CAAC,CAAA,0CAAA,CAA4C,EAChD,EAAE,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;AAEtD,aAAA,aAAa,CAAC,IAAI,CAAC,eAAe,EAAE,CAAA,EAAG,CAAC,CAAA,uBAAA,CAAyB,EAAE,CAAA,EAAG,CAAC,CAAA,6BAAA,CAA+B;AACtG,aAAA,aAAa;AACb,aAAA,QAAQ,EAAE;IACf;8GAnBW,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAzC,yCAAyC,EAAA,CAAA,CAAA;;2FAAzC,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBADrD;;;;;;;;ACtBD;;AAEG;;"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-person-core-client",
3
- "version": "1.0.1",
3
+ "version": "2.0.0-beta.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@acorex-platform/module-location-management-client": "1.0.1",
6
+ "@acorex-platform/module-location-management-client": "2.0.0-beta.0",
7
7
  "@angular/common": "^21.0.0 || ^22.0.0",
8
8
  "@angular/core": "^21.0.0 || ^22.0.0"
9
9
  },
@@ -92,6 +92,16 @@ declare function resolveContactAssignmentPartyContext(processData: Record<string
92
92
  partyTitle: string;
93
93
  };
94
94
 
95
+ /** Stored person name: firstName + " " + lastName. */
96
+ declare function composePersonFullName(firstName: unknown, lastName: unknown): string;
97
+ /**
98
+ * Person write body. Create payloads sometimes nest fields under `data`
99
+ * while the runtime envelope keeps `entity` beside them.
100
+ */
101
+ declare function resolvePersonWriteTarget(data: Record<string, unknown>): Record<string, unknown>;
102
+ /** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
103
+ declare function stampPersonFullName(data: Record<string, unknown>, existing?: Record<string, unknown> | null): void;
104
+
95
105
  /**
96
106
  * Create action with submenu for Person Relationship entity (master list).
97
107
  */
@@ -236,7 +246,7 @@ interface AXMPersonCoreMaritalStatusEntityModel {
236
246
  interface AXMPersonCorePersonEntityModel extends AXPEntityModel<string> {
237
247
  firstName: string;
238
248
  lastName: string;
239
- /** Computed: firstName + " " + lastName (from computed-property plugin) */
249
+ /** Persisted: firstName + " " + lastName */
240
250
  fullName?: string;
241
251
  personTitleId?: string;
242
252
  personTitle?: {
@@ -307,5 +317,5 @@ interface AXMPersonCoreReligionEntityModel {
307
317
  description?: AXPMultiLanguageString | null;
308
318
  }
309
319
 
310
- export { AXMPersonCoreMenuKeys, AXMPersonCorePermissionKeys, AXPPeopleOrganizationPermissionKeys, PersonCoreManifest, RootConfig, buildContactAssignmentPersonSnapshot, contactAssignmentDetailsCrudActionsForPartyContext, contactAssignmentPartyConditions, personRelationshipDetailsCreateActions, personRelationshipMasterCreateAction, resolveContactAssignmentPartyContext, resolveContactAssignmentPartyDisplayTitle };
320
+ export { AXMPersonCoreMenuKeys, AXMPersonCorePermissionKeys, AXPPeopleOrganizationPermissionKeys, PersonCoreManifest, RootConfig, buildContactAssignmentPersonSnapshot, composePersonFullName, contactAssignmentDetailsCrudActionsForPartyContext, contactAssignmentPartyConditions, personRelationshipDetailsCreateActions, personRelationshipMasterCreateAction, resolveContactAssignmentPartyContext, resolveContactAssignmentPartyDisplayTitle, resolvePersonWriteTarget, stampPersonFullName };
311
321
  export type { AXMPersonCoreContactAssignmentEntityModel, AXMPersonCoreContactRoleEntityModel, AXMPersonCoreEducationLevelEntityModel, AXMPersonCoreGenderEntityModel, AXMPersonCoreMaritalStatusEntityModel, AXMPersonCorePersonEntityModel, AXMPersonCorePersonIdentifierTypeEntityModel, AXMPersonCorePersonRelationshipEntityModel, AXMPersonCorePersonTitleEntityModel, AXMPersonCoreReligionEntityModel };
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-CsXUqvcL.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/contact-assignment/contact-assignment.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Imports ----\n\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function contactAssignmentFactory(): Promise<AXPEntity> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.contactAssignment.name,\n title: RootConfig.entities.contactAssignment.title,\n icon: RootConfig.entities.contactAssignment.icon,\n searchTags: [\n 'contact-assignment',\n 'assign contact',\n 'party contact',\n 'contact role',\n 'person assignment',\n 'integration link',\n 'تخصیص تماس',\n 'تخصیص‌های تماس',\n 'طرف',\n 'شخص',\n 'نقش',\n ],\n formats: {\n individual: RootConfig.entities.contactAssignment.title,\n plural: RootConfig.entities.contactAssignment.titlePlural,\n searchResult: {\n title: '{{ context.eval(\"person.fullName\") + \" (\" + context.eval(\"role.title\", { pipes: [\"translate\"] }) + \")\" }}',\n description: '@person-core:contact-assignments.entities.contact-assignment.search-result-description',\n },\n },\n plugins: [{ name: 'notes' }],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'partyId',\n title: '@person-core:contact-assignments.entities.contact-assignment.fields.party.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'BusinessCore.Party',\n multiple: false,\n textField: 'title',\n columns: ['title'],\n expose: [\n { source: 'id', target: 'party.id' },\n { source: 'title', target: 'party.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'personId',\n title: '@person-core:contact-assignments.entities.contact-assignment.fields.person.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.person.name}`,\n multiple: false,\n textField: 'fullName',\n columns: ['fullName', 'phones', 'emails'],\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'person.id' },\n { source: 'fullName', target: 'person.fullName' },\n { source: 'phones', target: 'person.phones' },\n { source: 'emails', target: 'person.emails' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'roleId',\n title: '@person-core:contact-assignments.entities.contact-assignment.fields.role.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.contactRole.name}`,\n multiple: false,\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'role.id' },\n { source: 'title', target: 'role.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'personId', title: '@general:terms.people.contact', options: { dataPath: 'person.fullName' } },\n {\n name: 'roleId',\n title: '@person-core:contact-assignments.entities.contact-assignment.fields.role.title',\n options: { dataPath: 'role.title' },\n },\n { name: 'person.phones', title: '@general:terms.communication.phones', options: { width: '200px' } },\n { name: 'person.emails', title: '@general:terms.communication.emails', options: { width: '200px' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ],\n },\n single: {\n title: '{{ context.eval(\"person.fullName\") + \" - \" + context.eval(\"role.title\", { pipes: [\"translate\"] }) }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'partyId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'personId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'roleId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'roleId', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAYA;AAEA;AAEO,eAAe,wBAAwB,GAAA;AAC5C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK;AAClD,QAAA,I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I,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC5E,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACxC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-DDexGFP-.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/person/person.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { RootConfig as LocationRootConfig } from '@acorex-platform/module-location-management-client/contracts';\nimport { AXPRelationshipKind } from '@acorex-platform/framework-shared/domain';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Repeater Children ----\n\nconst PHONES_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n options: { type: 'phone', placeholder: '@person-core:persons.entities.person.fields.phone.placeholder' },\n },\n];\n\nconst EMAILS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n options: { type: 'email', placeholder: '@person-core:persons.entities.person.fields.email.placeholder' },\n },\n];\n\nconst LOCATION_ROLE_ENTITY = `${LocationRootConfig.module.name}.${LocationRootConfig.entities.locationRole.name}`;\n\nconst ADDRESSES_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.AddressBox,\n mode: 'edit' as const,\n options: {\n mode: 'expandable',\n hasLabel: true,\n labelEntity: LOCATION_ROLE_ENTITY,\n },\n },\n];\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function personFactory(): Promise<AXPEntity> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.person.name,\n title: RootConfig.entities.person.title,\n icon: RootConfig.entities.person.icon,\n searchTags: [\n 'person',\n 'individual',\n 'contact profile',\n 'full name',\n 'birth date',\n 'phone email address',\n 'identity number',\n 'demographics',\n 'شخص',\n 'اشخاص',\n 'پروفایل',\n 'اطلاعات فرد',\n ],\n formats: {\n individual: RootConfig.entities.person.title,\n plural: RootConfig.entities.person.titlePlural,\n displayName: '@general:terms.common.profile',\n searchResult: {\n title: '{{ fullName }} ',\n description: '@person-core:persons.entities.person.search-result-description',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'archive' },\n {\n name: 'computed-property',\n options: {\n fields: [\n {\n name: 'fullName',\n title: '@general:terms.common.full-name',\n value: '{{ context.eval(\"firstName\") + \" \" + context.eval(\"lastName\") }}',\n group: { id: 'profile' },\n visible: false,\n showAs: { type: AXPWidgetsCatalog.text },\n },\n ],\n },\n },\n { name: 'integration-ref', options: { groupId: 'profile' } },\n ],\n groups: [\n {\n id: 'profile',\n title: '@person-core:persons.entities.person.groups.profile',\n icon: 'fa-light fa-user',\n },\n {\n id: 'image',\n title: '@person-core:persons.entities.person.groups.image',\n icon: 'fa-light fa-image',\n },\n {\n id: 'phones',\n title: '@person-core:persons.entities.person.groups.phones',\n icon: 'fa-light fa-phone',\n },\n {\n id: 'emails',\n title: '@person-core:persons.entities.person.groups.emails',\n icon: 'fa-light fa-envelope',\n },\n {\n id: 'addresses',\n title: '@person-core:persons.entities.person.groups.addresses',\n icon: 'fa-light fa-location-dot',\n },\n ],\n properties: [\n {\n name: 'personTitleId',\n title: '@person-core:persons.entities.person.fields.person-title.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.personTitle.name}`,\n valueField: 'id',\n textField: 'title',\n look: 'select',\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'personTitle.id' },\n { source: 'title', target: 'personTitle.title' },\n ],\n },\n },\n },\n },\n {\n name: 'firstName',\n title: '@general:terms.contact.first-name',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'lastName',\n title: '@general:terms.contact.last-name',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'birthDate',\n title: '@person-core:persons.entities.person.fields.birth-date.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsCatalog.dateTime,\n options: { format: 'date' },\n },\n },\n },\n {\n name: 'image',\n title: '@person-core:persons.entities.person.groups.image',\n groupId: 'image',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Advanced.Image,\n options: {\n type: 'profile-photo',\n },\n },\n },\n },\n {\n name: 'genderId',\n title: '@person-core:persons.entities.person.fields.gender.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.gender.name}`,\n valueField: 'id',\n textField: 'title',\n look: 'select',\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'gender.id' },\n { source: 'title', target: 'gender.title' },\n ],\n },\n },\n },\n },\n {\n name: 'identityNumber',\n title: '@person-core:persons.entities.person.fields.identity-number.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@person-core:persons.entities.person.fields.identity-number.placeholder',\n },\n },\n },\n },\n {\n name: 'userId',\n title: '@person-core:persons.entities.person.fields.user.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n valueField: 'id',\n textField: 'displayName',\n look: 'select',\n expose: [\n { source: 'id', target: 'user.id' },\n { source: 'displayName', target: 'user.displayName' },\n ],\n },\n },\n },\n },\n {\n name: 'maritalStatusId',\n title: '@person-core:persons.entities.person.fields.marital-status.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.maritalStatus.name}`,\n valueField: 'id',\n textField: 'title',\n look: 'select',\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'maritalStatus.id' },\n { source: 'title', target: 'maritalStatus.title' },\n ],\n },\n },\n },\n },\n {\n name: 'educationLevelId',\n title: '@person-core:persons.entities.person.fields.education-level.title',\n groupId: 'profile',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.educationLevel.name}`,\n valueField: 'id',\n textField: 'title',\n look: 'select',\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'educationLevel.id' },\n { source: 'title', target: 'educationLevel.title' },\n ],\n },\n },\n },\n },\n {\n name: 'phones',\n title: '@person-core:persons.entities.person.groups.phones',\n groupId: 'phones',\n schema: {\n defaultValue: [],\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true },\n children: [...PHONES_REPEATER_CHILDREN],\n },\n },\n },\n {\n name: 'emails',\n title: '@person-core:persons.entities.person.groups.emails',\n groupId: 'emails',\n schema: {\n defaultValue: [],\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true },\n children: [...EMAILS_REPEATER_CHILDREN],\n },\n },\n },\n {\n name: 'addresses',\n title: '@person-core:persons.entities.person.groups.addresses',\n groupId: 'addresses',\n schema: {\n defaultValue: [],\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true },\n children: [...ADDRESSES_REPEATER_CHILDREN],\n },\n },\n },\n {\n name: 'integrationRef',\n title: '@person-core:persons.entities.person.fields.integration-ref.title',\n groupId: 'profile',\n schema: {\n dataType: 'object',\n visible: false,\n nullable: true,\n readonly: true,\n },\n },\n ],\n columns: [\n { name: 'firstName', options: { width: '200px' } },\n { name: 'lastName', options: { width: '200px' } },\n {\n name: 'fullName',\n showAs: { type: AXPWidgetsCatalog.text, options: { visible: false } },\n options: { width: '250px' },\n },\n { name: 'personTitleId', options: { dataPath: 'personTitle.title', visible: false } },\n { name: 'phones', options: { width: '200px' } },\n { name: 'emails', options: { width: '200px' } },\n { name: 'addresses', options: { width: '250px' } },\n { name: 'birthDate', options: { visible: false } },\n { name: 'genderId', options: { dataPath: 'gender.title', visible: false } },\n { name: 'identityNumber', options: { visible: false } },\n { name: 'userId', options: { visible: false } },\n { name: 'maritalStatusId', options: { dataPath: 'maritalStatus.title', visible: false } },\n { name: 'educationLevelId', options: { dataPath: 'educationLevel.title', visible: false } },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.personRelationship.name}`,\n title: '@person-core:persons.entities.person.related-entities.relationships.title',\n columns: ['toPersonId', 'typeId', 'toPerson.phones', 'toPerson.emails'],\n conditions: [{ name: 'fromPersonId', operator: { type: 'equal' }, value: '{{ context.eval(\"id\") }}' }],\n persistence: {\n foreignKeyField: 'fromPersonId',\n kind: AXPRelationshipKind.Composition,\n onDelete: null,\n },\n actions: [...entityDetailsCrudActions('fromPersonId')],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'profile', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'image', order: 2, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n { id: 'phones', order: 5, layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },\n { id: 'emails', order: 6, layout: { positions: { lg: { colSpan: 6, colStart: 7 } } } },\n { id: 'addresses', order: 7, layout: { positions: { lg: { colSpan: 12, colStart: 1 } } } },\n ],\n properties: [\n { name: 'personTitleId', layout: { positions: { lg: { colSpan: 4, order: 0 } } } },\n { name: 'firstName', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'lastName', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'genderId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'birthDate', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'identityNumber', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'maritalStatusId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'educationLevelId', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'image', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'phones', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'emails', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'addresses', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n ],\n quickCreate: {\n enabled: true,\n properties: ['firstName', 'lastName', 'code', 'phones', 'emails'],\n },\n },\n update: {\n sections: [\n { id: 'profile', layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'image', layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n { id: 'phones', layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },\n { id: 'emails', layout: { positions: { lg: { colSpan: 6, colStart: 7 } } } },\n { id: 'addresses', layout: { positions: { lg: { colSpan: 12, colStart: 1 } } } },\n ],\n properties: [\n { name: 'personTitleId', layout: { positions: { lg: { colSpan: 4, order: 0 } } } },\n { name: 'firstName', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'lastName', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'genderId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'birthDate', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'identityNumber', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'maritalStatusId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'educationLevelId', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'image', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'phones', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'emails', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'addresses', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n ],\n },\n single: {\n title: '{{ (context.eval(\"firstName\") ) + \" \" + (context.eval(\"lastName\") ) }}',\n sections: [\n { id: 'profile', order: 1, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },\n { id: 'image', order: 2, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n { id: 'phones', order: 5, layout: { positions: { lg: { colSpan: 6, colStart: 1 } } } },\n { id: 'emails', order: 6, layout: { positions: { lg: { colSpan: 6, colStart: 7 } } } },\n { id: 'addresses', order: 7, layout: { positions: { lg: { colSpan: 12, colStart: 1 } } } },\n ],\n properties: [\n { name: 'personTitleId', layout: { positions: { lg: { colSpan: 4, order: 0 } } } },\n { name: 'firstName', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'lastName', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'genderId', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'birthDate', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'identityNumber', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'maritalStatusId', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'educationLevelId', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },\n { name: 'image', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'phones', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'emails', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n { name: 'addresses', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'firstName', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":["LocationRootConfig","RootConfig"],"mappings":";;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AAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC3G,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBAC3C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs","sources":["../../../../libs/modules/person-core/client/src/lib/commands/create-contact-with-new-person.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult, runtimeCommandPayloadData} from '@acorex-platform/framework-shared/core';\nimport { inject, Injectable } from '@angular/core';\nimport { AXPEntityDefinitionRegistryService, AXPEntityFormBuilderService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { RootConfig, buildContactAssignmentPersonSnapshot, resolveContactAssignmentPartyContext } from '@acorex-platform/module-person-core-client/contracts';\nimport {\n AXPCommand,\n mergeEntityActionProcessData,\n resolveEntityActionCommandInput,\n type AXPCommandExecuteResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\n\n//#endregion\n\n//#region ---- Command ----\n\n@Injectable({ providedIn: 'root' })\nexport class AXMContactAssignmentCreateWithNewPersonCommand implements AXPCommand<any, any> {\n private readonly entityForm = inject(AXPEntityFormBuilderService);\n private readonly entityService = inject(AXPEntityDefinitionRegistryService);\n private readonly toastService = inject(AXToastService);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(input: any): AXPCommandExecuteResultPromise<any> {\n const resolved = resolveEntityActionCommandInput(input);\n const processData = mergeEntityActionProcessData(input);\n const entity = resolved.entity;\n const locale = this.translationService.getActiveLang?.() ?? 'en-US';\n const partyContext = resolveContactAssignmentPartyContext(processData, locale);\n\n if (!partyContext.partyId) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync(\n '@person-core:contact-assignments.messages.missing-party-context',\n ),\n },\n };\n }\n\n const [assignmentModuleName, assignmentEntityName] = (entity || '').split('.');\n if (!assignmentModuleName || !assignmentEntityName) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-identifier'),\n },\n };\n }\n\n const personDialogTitle = await this.translationService.translateAsync(\n '@person-core:contact-assignments.actions.create-with-new-person.person-dialog-title',\n );\n\n const personResult = (await this.entityForm\n .entity(`${RootConfig.module.name}.${RootConfig.entities.person.name}`)\n .create({})\n .title(personDialogTitle)\n .actions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.create.title');\n })\n .onAction<AXPRuntimeCommandResult<any>>(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const personEntity = await this.entityService.resolve(\n RootConfig.module.name,\n RootConfig.entities.person.name,\n );\n const createPersonFn = personEntity?.commands?.create?.execute as\n | ((payload: unknown) => AXPCommandExecuteResultPromise<any>)\n | undefined;\n\n if (!createPersonFn) {\n const msg = await this.translationService.translateAsync(\n '@general:messages.entity.create-command-unavailable',\n );\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: msg,\n });\n throw new Error(msg);\n }\n\n dialogRef.setLoading(true);\n try {\n const context = dialogRef.context();\n const createResult = await createPersonFn(context);\n const personRow = runtimeCommandPayloadData(createResult);\n if (!personRow?.id && !personRow?._id) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.create-failed'),\n },\n };\n }\n return { success: true, kind: 'object', data: personRow };\n } catch (error: unknown) {\n const errorMsg =\n error instanceof Error\n ? error.message\n : await this.translationService.translateAsync('@general:messages.entity.create-failed');\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: errorMsg,\n });\n throw error;\n } finally {\n dialogRef.setLoading(false);\n }\n })\n .show()) as unknown as AXPRuntimeCommandResult<any>;\n\n const personRow = runtimeCommandPayloadData(personResult) as Record<string, unknown> | undefined;\n if (!personRow) {\n return { success: false };\n }\n const personId = (personRow['id'] ?? personRow['_id']) as string;\n const personSnapshot = buildContactAssignmentPersonSnapshot(personRow, personId);\n\n const assignmentFormTitle = await this.translationService.translateAsync(\n '@person-core:contact-assignments.actions.create-with-new-person.assignment-dialog-title',\n );\n\n const assignmentResult = (await this.entityForm\n .entity(`${assignmentModuleName}.${assignmentEntityName}`)\n .create({\n partyId: partyContext.partyId,\n personId,\n person: personSnapshot,\n })\n .include('roleId', 'notes')\n .title(assignmentFormTitle)\n .actions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.create.title');\n })\n .onAction<AXPRuntimeCommandResult<any>>(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const contactAssignmentEntity = await this.entityService.resolve(\n assignmentModuleName,\n assignmentEntityName,\n );\n const createAssignmentFn = contactAssignmentEntity?.commands?.create?.execute as\n | ((payload: unknown) => AXPCommandExecuteResultPromise<any>)\n | undefined;\n\n if (!createAssignmentFn) {\n const msg = await this.translationService.translateAsync(\n '@general:messages.entity.create-command-unavailable',\n );\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: msg,\n });\n throw new Error(msg);\n }\n\n dialogRef.setLoading(true);\n try {\n const context = dialogRef.context();\n const createResult = await createAssignmentFn({\n ...context,\n partyId: partyContext.partyId,\n personId,\n person: personSnapshot,\n });\n const __single_createResult = runtimeCommandPayloadData(createResult);\n if (__single_createResult) {\n return { success: true, kind: 'object',\n data: runtimeCommandPayloadData(createResult),\n message: {\n text: await this.translationService.translateAsync('@general:messages.generic.success.description'),\n },\n };\n }\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.create-failed'),\n },\n };\n } catch (error: unknown) {\n const errorMsg =\n error instanceof Error\n ? error.message\n : await this.translationService.translateAsync('@general:messages.entity.create-failed');\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content: errorMsg,\n });\n throw error;\n } finally {\n dialogRef.setLoading(false);\n }\n })\n .show()) as unknown as AXPRuntimeCommandResult<any>;\n\n return assignmentResult;\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAgBA;AAEA;MAGa,8CAA8C,CAAA;AAD3D,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,2BAA2B,CAAC;AAChD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC1D,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AA8LnE,IAAA;IA5LC,MAAM,OAAO,CAAC,KAAU,EAAA;AACtB,QAAA,MAAM,QAAQ,GAAG,+BAA+B,CAAC,KAAK,CAAC;AACvD,QAAA,MAAM,WAAW,GAAG,4BAA4B,CAAC,KAAK,CAAC;AACvD,QAAA,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM;QAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,IAAI,IAAI,OAAO;QACnE,MAAM,YAAY,GAAG,oCAAoC,CAAC,WAAW,EAAE,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