@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.
- 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
- 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
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs +1 -1
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs +1 -1
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs.map +1 -1
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-BH4IWFDR.mjs.map +1 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Tk6dRawn.mjs.map +1 -0
- 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
- 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
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-person-core-client-contracts.mjs +40 -4
- package/fesm2022/acorex-platform-module-person-core-client-contracts.mjs.map +1 -1
- 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
- package/fesm2022/acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-person-core-client.mjs +58 -7
- package/fesm2022/acorex-platform-module-person-core-client.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-person-core-client-contracts.d.ts +12 -2
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-CsXUqvcL.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-DDexGFP-.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-person-core-client-create-contact-with-new-person.command-DJXhGax3.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Tk6dRawn.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: 'reference',\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":";;;;;;AAOA;AAEA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA;AAC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AAE,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,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-BPAvBf7N.mjs';
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ---- Entity Factory ----
|
|
@@ -128,4 +128,4 @@ async function religionFactory() {
|
|
|
128
128
|
//#endregion
|
|
129
129
|
|
|
130
130
|
export { religionFactory };
|
|
131
|
-
//# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-
|
|
131
|
+
//# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CbfrtlSY.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-CbfrtlSY.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/religion/religion.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function religionFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.religion.name,\n title: RootConfig.entities.religion.title,\n icon: RootConfig.entities.religion.icon,\n searchTags: [\n 'religion',\n 'faith',\n 'belief reference',\n 'demographic catalog',\n 'person profile',\n 'reference data',\n 'دین',\n 'ادیان',\n 'مسیحیت',\n 'اسلام',\n ],\n formats: {\n individual: RootConfig.entities.religion.title,\n plural: RootConfig.entities.religion.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [\n {\n id: 'basic-info',\n title: '@person-core:religions.entities.religion.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@person-core:religions.entities.religion.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@person-core:religions.entities.religion.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'description', options: { width: '280px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,eAAe,GAAA;IACnC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvF,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC3E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;KAClF;AAED,IAAA,MAAM,SAAS,GAAc;A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AAC,EAAE,EAAE;AACxD,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC/D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,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,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACvC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { p as personCoreLocalEntityCatalog } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-
|
|
1
|
+
export { p as personCoreLocalEntityCatalog } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-BPAvBf7N.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog.mjs.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { axpRegisterEntityPublicReadFields, AXPEntityCommandScope, entityMasterCreateAction, entityDetailsEditAction, entityOverrideDetailsViewAction } from '@acorex-platform/framework-shared/entity';
|
|
1
2
|
import { AXPSystemActionType, resolveMultiLanguageString } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { AXPEntityCommandScope, entityMasterCreateAction, entityDetailsEditAction, entityOverrideDetailsViewAction } from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
import { get } from 'lodash';
|
|
4
4
|
|
|
5
|
+
// The read model returns this display value alongside its first/last name.
|
|
6
|
+
axpRegisterEntityPublicReadFields('PersonCore.Person', 'fullName');
|
|
7
|
+
|
|
5
8
|
const AXMPersonCoreMenuKeys = {
|
|
6
9
|
Root: 'person-core',
|
|
7
10
|
Persons: 'person-core.persons',
|
|
@@ -216,6 +219,39 @@ function contactAssignmentDetailsCrudActionsForPartyContext(partyIdContextPath =
|
|
|
216
219
|
}
|
|
217
220
|
//#endregion
|
|
218
221
|
|
|
222
|
+
//#region ----- Helpers -----
|
|
223
|
+
/** Stored person name: firstName + " " + lastName. */
|
|
224
|
+
function composePersonFullName(firstName, lastName) {
|
|
225
|
+
const first = typeof firstName === 'string' ? firstName.trim() : '';
|
|
226
|
+
const last = typeof lastName === 'string' ? lastName.trim() : '';
|
|
227
|
+
return `${first} ${last}`.trim();
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Person write body. Create payloads sometimes nest fields under `data`
|
|
231
|
+
* while the runtime envelope keeps `entity` beside them.
|
|
232
|
+
*/
|
|
233
|
+
function resolvePersonWriteTarget(data) {
|
|
234
|
+
const nested = data['data'];
|
|
235
|
+
if (nested != null &&
|
|
236
|
+
typeof nested === 'object' &&
|
|
237
|
+
!Array.isArray(nested) &&
|
|
238
|
+
!('firstName' in data) &&
|
|
239
|
+
!('lastName' in data)) {
|
|
240
|
+
return nested;
|
|
241
|
+
}
|
|
242
|
+
return data;
|
|
243
|
+
}
|
|
244
|
+
/** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
|
|
245
|
+
function stampPersonFullName(data, existing) {
|
|
246
|
+
const target = resolvePersonWriteTarget(data);
|
|
247
|
+
const hasFirst = 'firstName' in target;
|
|
248
|
+
const hasLast = 'lastName' in target;
|
|
249
|
+
const firstName = hasFirst ? target['firstName'] : existing?.['firstName'];
|
|
250
|
+
const lastName = hasLast ? target['lastName'] : existing?.['lastName'];
|
|
251
|
+
target['fullName'] = composePersonFullName(firstName, lastName);
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
|
|
219
255
|
//#region ---- Imports ----
|
|
220
256
|
//#endregion
|
|
221
257
|
//#region ---- Display helpers ----
|
|
@@ -236,8 +272,8 @@ function resolveContactAssignmentPartyDisplayTitle(locale, ...candidates) {
|
|
|
236
272
|
//#region ---- Context helpers ----
|
|
237
273
|
/** Builds a person snapshot for nested ContactAssignment display fields. */
|
|
238
274
|
function buildContactAssignmentPersonSnapshot(personRow, personId) {
|
|
239
|
-
const
|
|
240
|
-
|
|
275
|
+
const storedFullName = typeof personRow['fullName'] === 'string' ? personRow['fullName'].trim() : '';
|
|
276
|
+
const fullName = storedFullName || composePersonFullName(personRow['firstName'], personRow['lastName']);
|
|
241
277
|
return {
|
|
242
278
|
id: personId,
|
|
243
279
|
fullName: fullName || undefined,
|
|
@@ -381,5 +417,5 @@ const PersonCoreManifest = {
|
|
|
381
417
|
* Generated bundle index. Do not edit.
|
|
382
418
|
*/
|
|
383
419
|
|
|
384
|
-
export { AXMPersonCoreMenuKeys, AXMPersonCorePermissionKeys, AXPPeopleOrganizationPermissionKeys, PersonCoreManifest, RootConfig, buildContactAssignmentPersonSnapshot, contactAssignmentDetailsCrudActionsForPartyContext, contactAssignmentPartyConditions, personRelationshipDetailsCreateActions, personRelationshipMasterCreateAction, resolveContactAssignmentPartyContext, resolveContactAssignmentPartyDisplayTitle };
|
|
420
|
+
export { AXMPersonCoreMenuKeys, AXMPersonCorePermissionKeys, AXPPeopleOrganizationPermissionKeys, PersonCoreManifest, RootConfig, buildContactAssignmentPersonSnapshot, composePersonFullName, contactAssignmentDetailsCrudActionsForPartyContext, contactAssignmentPartyConditions, personRelationshipDetailsCreateActions, personRelationshipMasterCreateAction, resolveContactAssignmentPartyContext, resolveContactAssignmentPartyDisplayTitle, resolvePersonWriteTarget, stampPersonFullName };
|
|
385
421
|
//# sourceMappingURL=acorex-platform-module-person-core-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-person-core-client-contracts.mjs","sources":["../../../../libs/modules/person-core/contracts/src/menu.keys.ts","../../../../libs/modules/person-core/contracts/src/permission.keys.ts","../../../../libs/modules/person-core/contracts/src/root-config.ts","../../../../libs/modules/person-core/contracts/src/contact-assignment.actions.ts","../../../../libs/modules/person-core/contracts/src/contact-assignment.utils.ts","../../../../libs/modules/person-core/contracts/src/person-relationship.actions.ts","../../../../libs/modules/person-core/contracts/src/manifest.ts","../../../../libs/modules/person-core/contracts/src/entities/contact-assignment/contact-assignment.types.ts","../../../../libs/modules/person-core/contracts/src/entities/contact-role/contact-role.types.ts","../../../../libs/modules/person-core/contracts/src/entities/education-level/education-level.types.ts","../../../../libs/modules/person-core/contracts/src/entities/gender/gender.types.ts","../../../../libs/modules/person-core/contracts/src/entities/marital-status/marital-status.types.ts","../../../../libs/modules/person-core/contracts/src/entities/person-identifier-type/person-identifier-type.types.ts","../../../../libs/modules/person-core/contracts/src/entities/person-title/person-title.types.ts","../../../../libs/modules/person-core/contracts/src/entities/religion/religion.types.ts","../../../../libs/modules/person-core/contracts/src/index.ts","../../../../libs/modules/person-core/contracts/src/acorex-platform-module-person-core-client-contracts.ts"],"sourcesContent":["export const AXMPersonCoreMenuKeys = {\n Root: 'person-core',\n Persons: 'person-core.persons',\n PersonRelationships: 'person-core.person-relationships',\n EducationLevels: 'person-core.education-levels',\n Genders: 'person-core.genders',\n MaritalStatuses: 'person-core.marital-statuses',\n PersonTitles: 'person-core.person-titles',\n PersonIdentifierTypes: 'person-core.person-identifier-types',\n Religions: 'person-core.religions',\n ContactRoles: 'person-core.contact-roles',\n} as const;\n","/**\n * People & Organization capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPPeopleOrganizationPermissionKeys = {\n Access: 'PeopleOrganization:Permission:Access',\n ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',\n MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',\n MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',\n MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',\n ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',\n MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',\n MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',\n ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',\n DesignJobs: 'PeopleOrganization:Permission:DesignJobs',\n Setup: 'PeopleOrganization:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPersonCorePermissionKeys = {\n PersonCore: {\n Person: {\n Management: AXPPeopleOrganizationPermissionKeys.MaintainPersons,\n },\n EducationLevel: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n Gender: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n MaritalStatus: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonTitle: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonIdentifierType: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonRelationship: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n Religion: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n ContactRole: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n },\n} as const;\n","const config = {\n i18n: 'person-core',\n module: 'PersonCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-user',\n },\n entities: {\n person: {\n name: 'Person',\n title: `@${config.i18n}:persons.entities.person.title`,\n titlePlural: `@${config.i18n}:persons.entities.person.plural`,\n icon: 'fa-light fa-user',\n },\n educationLevel: {\n name: 'EducationLevel',\n title: `@${config.i18n}:education-levels.entities.education-level.title`,\n titlePlural: `@${config.i18n}:education-levels.entities.education-level.plural`,\n icon: 'fa-light fa-graduation-cap',\n },\n gender: {\n name: 'Gender',\n title: `@${config.i18n}:genders.entities.gender.title`,\n titlePlural: `@${config.i18n}:genders.entities.gender.plural`,\n icon: 'fa-light fa-venus-mars',\n },\n maritalStatus: {\n name: 'MaritalStatus',\n title: `@${config.i18n}:marital-statuses.entities.marital-status.title`,\n titlePlural: `@${config.i18n}:marital-statuses.entities.marital-status.plural`,\n icon: 'fa-light fa-ring',\n },\n personTitle: {\n name: 'PersonTitle',\n title: `@${config.i18n}:person-titles.entities.person-title.title`,\n titlePlural: `@${config.i18n}:person-titles.entities.person-title.plural`,\n icon: 'fa-light fa-user-tie',\n },\n personIdentifierType: {\n name: 'PersonIdentifierType',\n title: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.title`,\n titlePlural: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.plural`,\n icon: 'fa-light fa-id-card',\n },\n religion: {\n name: 'Religion',\n title: `@${config.i18n}:religions.entities.religion.title`,\n titlePlural: `@${config.i18n}:religions.entities.religion.plural`,\n icon: 'fa-light fa-place-of-worship',\n },\n contactRole: {\n name: 'ContactRole',\n title: `@${config.i18n}:contact-roles.entities.contact-role.title`,\n titlePlural: `@${config.i18n}:contact-roles.entities.contact-role.plural`,\n icon: 'fa-light fa-user-tag',\n },\n personRelationship: {\n name: 'PersonRelationship',\n title: `@${config.i18n}:person-relationships.entities.person-relationship.title`,\n titlePlural: `@${config.i18n}:person-relationships.entities.person-relationship.plural`,\n icon: 'fa-light fa-link',\n },\n contactAssignment: {\n name: 'ContactAssignment',\n title: `@${config.i18n}:contact-assignments.entities.contact-assignment.title`,\n titlePlural: `@${config.i18n}:contact-assignments.entities.contact-assignment.plural`,\n icon: 'fa-light fa-address-book',\n },\n },\n} as const;\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntityAction,\n AXPEntityCommandScope,\n AXPQueryFilter,\n entityDetailsEditAction,\n entityMasterCreateAction,\n entityOverrideDetailsViewAction,\n} from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#region ---- Command keys ----\n\nconst ASSIGN_EXISTING_PERSON = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`;\nconst CREATE_WITH_NEW_PERSON = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`;\n\n//#endregion\n\n//#region ---- Contact assignment related-entity actions ----\n\nconst partyProcessOptions = (partyIdContextPath = 'id') => ({\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {\n partyId: `{{ context.eval(\"${partyIdContextPath}\") }}`,\n 'party.title': '{{ context.eval(\"title\") }}',\n },\n },\n});\n\n/**\n * Filters ContactAssignment rows for the current row context (Party record, or Party merge-detail under Customer).\n */\nexport function contactAssignmentPartyConditions(partyIdContextPath = 'id'): AXPQueryFilter[] {\n return [\n {\n name: 'partyId',\n operator: { type: 'equal' },\n value: `{{ context.eval(\"${partyIdContextPath}\") }}`,\n },\n ];\n}\n\nfunction contactAssignmentPartyCreateAction(partyIdContextPath = 'id'): AXPEntityAction {\n const partyOptions = partyProcessOptions(partyIdContextPath);\n\n return {\n name: 'Create',\n title: '@general:actions.create.title',\n command: { name: 'Entity:Create' },\n icon: 'fa-light fa-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n items: [\n {\n name: 'AssignExistingPerson',\n title: '@person-core:contact-assignments.actions.assign-existing-person.title',\n command: { name: ASSIGN_EXISTING_PERSON, options: partyOptions },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:contact-assignments.actions.create-with-new-person.title',\n command: { name: CREATE_WITH_NEW_PERSON, options: partyOptions },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n}\n\n/**\n * Actions for ContactAssignment when shown from Party/Customer/Supplier.\n * Create menu: assign existing person or create new person with party prefilled.\n */\nexport function contactAssignmentDetailsCrudActionsForPartyContext(\n partyIdContextPath = 'id',\n): AXPEntityAction[] {\n return [\n { ...entityMasterCreateAction(), hidden: true },\n contactAssignmentPartyCreateAction(partyIdContextPath),\n entityDetailsEditAction(),\n entityOverrideDetailsViewAction(),\n ];\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n resolveMultiLanguageString,\n type AXPMultiLanguageString,\n} from '@acorex-platform/framework-shared/core';\nimport { get } from 'lodash';\n\n//#endregion\n\n//#region ---- Display helpers ----\n\n/** Resolves party display title from host/process data (plain string or multi-language object). */\nexport function resolveContactAssignmentPartyDisplayTitle(locale: string, ...candidates: unknown[]): string {\n for (const candidate of candidates) {\n if (candidate == null || candidate === '') {\n continue;\n }\n\n const resolved = resolveMultiLanguageString(\n candidate as string | AXPMultiLanguageString | null | undefined,\n locale,\n ).trim();\n if (resolved) {\n return resolved;\n }\n }\n\n return '';\n}\n\n//#endregion\n\n//#region ---- Context helpers ----\n\n/** Builds a person snapshot for nested ContactAssignment display fields. */\nexport function buildContactAssignmentPersonSnapshot(\n personRow: Record<string, unknown>,\n personId: string,\n): { id: string; fullName?: string; phones?: unknown; emails?: unknown } {\n const fullName =\n (personRow['fullName'] as string | undefined) ??\n [personRow['firstName'], personRow['lastName']].filter(Boolean).join(' ').trim();\n\n return {\n id: personId,\n fullName: fullName || undefined,\n phones: personRow['phones'],\n emails: personRow['emails'],\n };\n}\n\n/** Resolves partyId and display title from command process/host payload. */\nexport function resolveContactAssignmentPartyContext(\n processData: Record<string, unknown>,\n locale: string,\n): { partyId: string; partyTitle: string } {\n const nestedParty = get(processData, 'party') as { id?: string; title?: unknown } | undefined;\n\n return {\n partyId: (processData['partyId'] as string) ?? nestedParty?.id ?? '',\n partyTitle: resolveContactAssignmentPartyDisplayTitle(\n locale,\n processData['party.title'],\n nestedParty?.title,\n get(processData, 'title'),\n ),\n };\n}\n\n//#endregion\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityAction, AXPEntityCommandScope, entityDetailsEditAction, entityOverrideDetailsViewAction } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#region ---- Person relationship actions ----\n\nconst CREATE_WITH_EXISTING = `${RootConfig.module.name}.PersonRelationship:CreateWithExistingPerson`;\nconst CREATE_WITH_NEW = `${RootConfig.module.name}.PersonRelationship:CreateWithNewPerson`;\n\nconst fromPersonIdOptions = (parentId: string) => ({\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {\n [parentId]: '{{context.eval(\"id\")}}',\n },\n },\n});\n\n/**\n * Create action with submenu for Person Relationship entity (master list).\n */\nexport function personRelationshipMasterCreateAction(): AXPEntityAction {\n return {\n name: 'Create',\n title: '@general:actions.create.title',\n command: { name: `${RootConfig.module.name}.PersonRelationship:Create` },\n icon: 'fa-light fa-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n items: [\n {\n name: 'CreateWithExistingPerson',\n title: '@person-core:person-relationships.actions.choose-existing-person.title',\n command: { name: CREATE_WITH_EXISTING },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:person-relationships.actions.create-new-person.title',\n command: { name: CREATE_WITH_NEW },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n}\n\n/**\n * Create action with submenu for Person Relationship when shown as related entity (e.g. in Person details).\n * Injects fromPersonId from parent context.\n */\nexport function personRelationshipDetailsCreateActions(parentId: string): AXPEntityAction[] {\n const createAction: AXPEntityAction = {\n ...personRelationshipMasterCreateAction(),\n items: [\n {\n name: 'CreateWithExistingPerson',\n title: '@person-core:person-relationships.actions.choose-existing-person.title',\n command: {\n name: CREATE_WITH_EXISTING,\n options: fromPersonIdOptions(parentId),\n },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:person-relationships.actions.create-new-person.title',\n command: {\n name: CREATE_WITH_NEW,\n options: fromPersonIdOptions(parentId),\n },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n\n return [createAction, entityDetailsEditAction(), entityOverrideDetailsViewAction()];\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Person Core Module Manifest.\n * Defines module metadata for shared person/demographic reference data.\n */\nexport const PersonCoreManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n dependencies: ['LocationManagement'],\n required: true,\n};\n\n//#endregion\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Types ----\n\nexport interface AXMPersonCoreContactAssignmentEntityModel extends AXPEntityModel<string> {\n partyId: string;\n personId: string;\n roleId: string;\n party?: { id: string; title: AXPMultiLanguageString };\n person?: { id: string; fullName?: string; phones?: unknown[]; emails?: unknown[] };\n role?: { id: string; title: AXPMultiLanguageString };\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ---- ContactRole Model ----\n\nexport interface AXMPersonCoreContactRoleEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n /**\n * ContactRole id used when mirroring a PersonRelationship edge.\n * Symmetric roles point at themselves (e.g. spouse → spouse).\n * Asymmetric pairs point at each other (e.g. mother → child, employs → employee).\n * Omit when no automatic reverse should be created (e.g. child has no unique parent role).\n */\n inverseTypeId?: string | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Education Level Model ----\n\nexport interface AXMPersonCoreEducationLevelEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Gender Model ----\n\nexport interface AXMPersonCoreGenderEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Marital Status Model ----\n\nexport interface AXMPersonCoreMaritalStatusEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Person Identifier Type Model ----\n\nexport interface AXMPersonCorePersonIdentifierTypeEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n scope: 'global' | 'national' | 'regional';\n formatRegex?: string | null;\n minLength?: number | null;\n maxLength?: number | null;\n isUnique: boolean;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Person Title Model ----\n\nexport interface AXMPersonCorePersonTitleEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Religion Model ----\n\nexport interface AXMPersonCoreReligionEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './contact-assignment.actions';\nexport * from './contact-assignment.utils';\nexport * from './person-relationship.actions';\n\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAO,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,mBAAmB,EAAE,kCAAkC;AACvD,IAAA,eAAe,EAAE,8BAA8B;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,eAAe,EAAE,8BAA8B;AAC/C,IAAA,YAAY,EAAE,2BAA2B;AACzC,IAAA,qBAAqB,EAAE,qCAAqC;AAC5D,IAAA,SAAS,EAAE,uBAAuB;AAClC,IAAA,YAAY,EAAE,2BAA2B;;;ACV3C;;;AAGG;AACI,MAAM,mCAAmC,GAAG;AACjD,IAAA,MAAM,EAAE,sCAAsC;AAC9C,IAAA,gBAAgB,EAAE,gDAAgD;AAClE,IAAA,oBAAoB,EAAE,oDAAoD;AAC1E,IAAA,aAAa,EAAE,6CAA6C;AAC5D,IAAA,iBAAiB,EAAE,iDAAiD;AACpE,IAAA,qBAAqB,EAAE,qDAAqD;AAC5E,IAAA,eAAe,EAAE,+CAA+C;AAChE,IAAA,kBAAkB,EAAE,kDAAkD;AACtE,IAAA,uB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B,IAAA,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACpC,IAAA,QAAQ,EAAE,IAAI;;AAGhB;;ACXA;;ACGA;;ACRA;;ACAA;;ACAA;;ACKA;;ACLA;;ACAA;;ACTA;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-person-core-client-contracts.mjs","sources":["../../../../libs/modules/person-core/contracts/src/data-execution.capabilities.ts","../../../../libs/modules/person-core/contracts/src/menu.keys.ts","../../../../libs/modules/person-core/contracts/src/permission.keys.ts","../../../../libs/modules/person-core/contracts/src/root-config.ts","../../../../libs/modules/person-core/contracts/src/contact-assignment.actions.ts","../../../../libs/modules/person-core/contracts/src/person-full-name.util.ts","../../../../libs/modules/person-core/contracts/src/contact-assignment.utils.ts","../../../../libs/modules/person-core/contracts/src/person-relationship.actions.ts","../../../../libs/modules/person-core/contracts/src/manifest.ts","../../../../libs/modules/person-core/contracts/src/entities/contact-assignment/contact-assignment.types.ts","../../../../libs/modules/person-core/contracts/src/entities/contact-role/contact-role.types.ts","../../../../libs/modules/person-core/contracts/src/entities/education-level/education-level.types.ts","../../../../libs/modules/person-core/contracts/src/entities/gender/gender.types.ts","../../../../libs/modules/person-core/contracts/src/entities/marital-status/marital-status.types.ts","../../../../libs/modules/person-core/contracts/src/entities/person-identifier-type/person-identifier-type.types.ts","../../../../libs/modules/person-core/contracts/src/entities/person-title/person-title.types.ts","../../../../libs/modules/person-core/contracts/src/entities/religion/religion.types.ts","../../../../libs/modules/person-core/contracts/src/index.ts","../../../../libs/modules/person-core/contracts/src/acorex-platform-module-person-core-client-contracts.ts"],"sourcesContent":["import { axpRegisterEntityPublicReadFields } from '@acorex-platform/framework-shared/entity';\n\n// The read model returns this display value alongside its first/last name.\naxpRegisterEntityPublicReadFields('PersonCore.Person', 'fullName');\n","export const AXMPersonCoreMenuKeys = {\n Root: 'person-core',\n Persons: 'person-core.persons',\n PersonRelationships: 'person-core.person-relationships',\n EducationLevels: 'person-core.education-levels',\n Genders: 'person-core.genders',\n MaritalStatuses: 'person-core.marital-statuses',\n PersonTitles: 'person-core.person-titles',\n PersonIdentifierTypes: 'person-core.person-identifier-types',\n Religions: 'person-core.religions',\n ContactRoles: 'person-core.contact-roles',\n} as const;\n","/**\n * People & Organization capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPPeopleOrganizationPermissionKeys = {\n Access: 'PeopleOrganization:Permission:Access',\n ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',\n MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',\n MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',\n MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',\n ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',\n MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',\n MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',\n ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',\n DesignJobs: 'PeopleOrganization:Permission:DesignJobs',\n Setup: 'PeopleOrganization:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPersonCorePermissionKeys = {\n PersonCore: {\n Person: {\n Management: AXPPeopleOrganizationPermissionKeys.MaintainPersons,\n },\n EducationLevel: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n Gender: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n MaritalStatus: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonTitle: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonIdentifierType: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n PersonRelationship: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n Religion: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n ContactRole: {\n Management: AXPPeopleOrganizationPermissionKeys.Setup,\n },\n },\n} as const;\n","const config = {\n i18n: 'person-core',\n module: 'PersonCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-user',\n },\n entities: {\n person: {\n name: 'Person',\n title: `@${config.i18n}:persons.entities.person.title`,\n titlePlural: `@${config.i18n}:persons.entities.person.plural`,\n icon: 'fa-light fa-user',\n },\n educationLevel: {\n name: 'EducationLevel',\n title: `@${config.i18n}:education-levels.entities.education-level.title`,\n titlePlural: `@${config.i18n}:education-levels.entities.education-level.plural`,\n icon: 'fa-light fa-graduation-cap',\n },\n gender: {\n name: 'Gender',\n title: `@${config.i18n}:genders.entities.gender.title`,\n titlePlural: `@${config.i18n}:genders.entities.gender.plural`,\n icon: 'fa-light fa-venus-mars',\n },\n maritalStatus: {\n name: 'MaritalStatus',\n title: `@${config.i18n}:marital-statuses.entities.marital-status.title`,\n titlePlural: `@${config.i18n}:marital-statuses.entities.marital-status.plural`,\n icon: 'fa-light fa-ring',\n },\n personTitle: {\n name: 'PersonTitle',\n title: `@${config.i18n}:person-titles.entities.person-title.title`,\n titlePlural: `@${config.i18n}:person-titles.entities.person-title.plural`,\n icon: 'fa-light fa-user-tie',\n },\n personIdentifierType: {\n name: 'PersonIdentifierType',\n title: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.title`,\n titlePlural: `@${config.i18n}:person-identifier-types.entities.person-identifier-type.plural`,\n icon: 'fa-light fa-id-card',\n },\n religion: {\n name: 'Religion',\n title: `@${config.i18n}:religions.entities.religion.title`,\n titlePlural: `@${config.i18n}:religions.entities.religion.plural`,\n icon: 'fa-light fa-place-of-worship',\n },\n contactRole: {\n name: 'ContactRole',\n title: `@${config.i18n}:contact-roles.entities.contact-role.title`,\n titlePlural: `@${config.i18n}:contact-roles.entities.contact-role.plural`,\n icon: 'fa-light fa-user-tag',\n },\n personRelationship: {\n name: 'PersonRelationship',\n title: `@${config.i18n}:person-relationships.entities.person-relationship.title`,\n titlePlural: `@${config.i18n}:person-relationships.entities.person-relationship.plural`,\n icon: 'fa-light fa-link',\n },\n contactAssignment: {\n name: 'ContactAssignment',\n title: `@${config.i18n}:contact-assignments.entities.contact-assignment.title`,\n titlePlural: `@${config.i18n}:contact-assignments.entities.contact-assignment.plural`,\n icon: 'fa-light fa-address-book',\n },\n },\n} as const;\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntityAction,\n AXPEntityCommandScope,\n AXPQueryFilter,\n entityDetailsEditAction,\n entityMasterCreateAction,\n entityOverrideDetailsViewAction,\n} from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#region ---- Command keys ----\n\nconst ASSIGN_EXISTING_PERSON = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:AssignExistingPerson`;\nconst CREATE_WITH_NEW_PERSON = `${RootConfig.module.name}.${RootConfig.entities.contactAssignment.name}:CreateWithNewPerson`;\n\n//#endregion\n\n//#region ---- Contact assignment related-entity actions ----\n\nconst partyProcessOptions = (partyIdContextPath = 'id') => ({\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {\n partyId: `{{ context.eval(\"${partyIdContextPath}\") }}`,\n 'party.title': '{{ context.eval(\"title\") }}',\n },\n },\n});\n\n/**\n * Filters ContactAssignment rows for the current row context (Party record, or Party merge-detail under Customer).\n */\nexport function contactAssignmentPartyConditions(partyIdContextPath = 'id'): AXPQueryFilter[] {\n return [\n {\n name: 'partyId',\n operator: { type: 'equal' },\n value: `{{ context.eval(\"${partyIdContextPath}\") }}`,\n },\n ];\n}\n\nfunction contactAssignmentPartyCreateAction(partyIdContextPath = 'id'): AXPEntityAction {\n const partyOptions = partyProcessOptions(partyIdContextPath);\n\n return {\n name: 'Create',\n title: '@general:actions.create.title',\n command: { name: 'Entity:Create' },\n icon: 'fa-light fa-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n items: [\n {\n name: 'AssignExistingPerson',\n title: '@person-core:contact-assignments.actions.assign-existing-person.title',\n command: { name: ASSIGN_EXISTING_PERSON, options: partyOptions },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:contact-assignments.actions.create-with-new-person.title',\n command: { name: CREATE_WITH_NEW_PERSON, options: partyOptions },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n}\n\n/**\n * Actions for ContactAssignment when shown from Party/Customer/Supplier.\n * Create menu: assign existing person or create new person with party prefilled.\n */\nexport function contactAssignmentDetailsCrudActionsForPartyContext(\n partyIdContextPath = 'id',\n): AXPEntityAction[] {\n return [\n { ...entityMasterCreateAction(), hidden: true },\n contactAssignmentPartyCreateAction(partyIdContextPath),\n entityDetailsEditAction(),\n entityOverrideDetailsViewAction(),\n ];\n}\n\n//#endregion\n","//#region ----- Helpers -----\n\n/** Stored person name: firstName + \" \" + lastName. */\nexport function composePersonFullName(firstName: unknown, lastName: unknown): string {\n const first = typeof firstName === 'string' ? firstName.trim() : '';\n const last = typeof lastName === 'string' ? lastName.trim() : '';\n return `${first} ${last}`.trim();\n}\n\n/**\n * Person write body. Create payloads sometimes nest fields under `data`\n * while the runtime envelope keeps `entity` beside them.\n */\nexport function resolvePersonWriteTarget(data: Record<string, unknown>): Record<string, unknown> {\n const nested = data['data'];\n if (\n nested != null &&\n typeof nested === 'object' &&\n !Array.isArray(nested) &&\n !('firstName' in data) &&\n !('lastName' in data)\n ) {\n return nested as Record<string, unknown>;\n }\n return data;\n}\n\n/** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */\nexport function stampPersonFullName(\n data: Record<string, unknown>,\n existing?: Record<string, unknown> | null,\n): void {\n const target = resolvePersonWriteTarget(data);\n const hasFirst = 'firstName' in target;\n const hasLast = 'lastName' in target;\n const firstName = hasFirst ? target['firstName'] : existing?.['firstName'];\n const lastName = hasLast ? target['lastName'] : existing?.['lastName'];\n target['fullName'] = composePersonFullName(firstName, lastName);\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n resolveMultiLanguageString,\n type AXPMultiLanguageString,\n} from '@acorex-platform/framework-shared/core';\nimport { get } from 'lodash';\n\nimport { composePersonFullName } from './person-full-name.util';\n\n//#endregion\n\n//#region ---- Display helpers ----\n\n/** Resolves party display title from host/process data (plain string or multi-language object). */\nexport function resolveContactAssignmentPartyDisplayTitle(locale: string, ...candidates: unknown[]): string {\n for (const candidate of candidates) {\n if (candidate == null || candidate === '') {\n continue;\n }\n\n const resolved = resolveMultiLanguageString(\n candidate as string | AXPMultiLanguageString | null | undefined,\n locale,\n ).trim();\n if (resolved) {\n return resolved;\n }\n }\n\n return '';\n}\n\n//#endregion\n\n//#region ---- Context helpers ----\n\n/** Builds a person snapshot for nested ContactAssignment display fields. */\nexport function buildContactAssignmentPersonSnapshot(\n personRow: Record<string, unknown>,\n personId: string,\n): { id: string; fullName?: string; phones?: unknown; emails?: unknown } {\n const storedFullName = typeof personRow['fullName'] === 'string' ? personRow['fullName'].trim() : '';\n const fullName = storedFullName || composePersonFullName(personRow['firstName'], personRow['lastName']);\n\n return {\n id: personId,\n fullName: fullName || undefined,\n phones: personRow['phones'],\n emails: personRow['emails'],\n };\n}\n\n/** Resolves partyId and display title from command process/host payload. */\nexport function resolveContactAssignmentPartyContext(\n processData: Record<string, unknown>,\n locale: string,\n): { partyId: string; partyTitle: string } {\n const nestedParty = get(processData, 'party') as { id?: string; title?: unknown } | undefined;\n\n return {\n partyId: (processData['partyId'] as string) ?? nestedParty?.id ?? '',\n partyTitle: resolveContactAssignmentPartyDisplayTitle(\n locale,\n processData['party.title'],\n nestedParty?.title,\n get(processData, 'title'),\n ),\n };\n}\n\n//#endregion\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityAction, AXPEntityCommandScope, entityDetailsEditAction, entityOverrideDetailsViewAction } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#region ---- Person relationship actions ----\n\nconst CREATE_WITH_EXISTING = `${RootConfig.module.name}.PersonRelationship:CreateWithExistingPerson`;\nconst CREATE_WITH_NEW = `${RootConfig.module.name}.PersonRelationship:CreateWithNewPerson`;\n\nconst fromPersonIdOptions = (parentId: string) => ({\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: {\n [parentId]: '{{context.eval(\"id\")}}',\n },\n },\n});\n\n/**\n * Create action with submenu for Person Relationship entity (master list).\n */\nexport function personRelationshipMasterCreateAction(): AXPEntityAction {\n return {\n name: 'Create',\n title: '@general:actions.create.title',\n command: { name: `${RootConfig.module.name}.PersonRelationship:Create` },\n icon: 'fa-light fa-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n items: [\n {\n name: 'CreateWithExistingPerson',\n title: '@person-core:person-relationships.actions.choose-existing-person.title',\n command: { name: CREATE_WITH_EXISTING },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:person-relationships.actions.create-new-person.title',\n command: { name: CREATE_WITH_NEW },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n}\n\n/**\n * Create action with submenu for Person Relationship when shown as related entity (e.g. in Person details).\n * Injects fromPersonId from parent context.\n */\nexport function personRelationshipDetailsCreateActions(parentId: string): AXPEntityAction[] {\n const createAction: AXPEntityAction = {\n ...personRelationshipMasterCreateAction(),\n items: [\n {\n name: 'CreateWithExistingPerson',\n title: '@person-core:person-relationships.actions.choose-existing-person.title',\n command: {\n name: CREATE_WITH_EXISTING,\n options: fromPersonIdOptions(parentId),\n },\n icon: 'fa-light fa-user-magnifying-glass',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'CreateWithNewPerson',\n title: '@person-core:person-relationships.actions.create-new-person.title',\n command: {\n name: CREATE_WITH_NEW,\n options: fromPersonIdOptions(parentId),\n },\n icon: 'fa-light fa-user-plus',\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ],\n };\n\n return [createAction, entityDetailsEditAction(), entityOverrideDetailsViewAction()];\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Person Core Module Manifest.\n * Defines module metadata for shared person/demographic reference data.\n */\nexport const PersonCoreManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n dependencies: ['LocationManagement'],\n required: true,\n};\n\n//#endregion\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Types ----\n\nexport interface AXMPersonCoreContactAssignmentEntityModel extends AXPEntityModel<string> {\n partyId: string;\n personId: string;\n roleId: string;\n party?: { id: string; title: AXPMultiLanguageString };\n person?: { id: string; fullName?: string; phones?: unknown[]; emails?: unknown[] };\n role?: { id: string; title: AXPMultiLanguageString };\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ---- ContactRole Model ----\n\nexport interface AXMPersonCoreContactRoleEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n /**\n * ContactRole id used when mirroring a PersonRelationship edge.\n * Symmetric roles point at themselves (e.g. spouse → spouse).\n * Asymmetric pairs point at each other (e.g. mother → child, employs → employee).\n * Omit when no automatic reverse should be created (e.g. child has no unique parent role).\n */\n inverseTypeId?: string | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Education Level Model ----\n\nexport interface AXMPersonCoreEducationLevelEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Gender Model ----\n\nexport interface AXMPersonCoreGenderEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Marital Status Model ----\n\nexport interface AXMPersonCoreMaritalStatusEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Person Identifier Type Model ----\n\nexport interface AXMPersonCorePersonIdentifierTypeEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n scope: 'global' | 'national' | 'regional';\n formatRegex?: string | null;\n minLength?: number | null;\n maxLength?: number | null;\n isUnique: boolean;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Person Title Model ----\n\nexport interface AXMPersonCorePersonTitleEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n//#region ---- Religion Model ----\n\nexport interface AXMPersonCoreReligionEntityModel {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\nimport './data-execution.capabilities';\n\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './contact-assignment.actions';\nexport * from './contact-assignment.utils';\nexport * from './person-full-name.util';\nexport * from './person-relationship.actions';\n\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAEA;AACA,iCAAiC,CAAC,mBAAmB,EAAE,UAAU,CAAC;;ACH3D,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,mBAAmB,EAAE,kCAAkC;AACvD,IAAA,eAAe,EAAE,8BAA8B;AAC/C,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,eAAe,EAAE,8BAA8B;AAC/C,IAAA,YAAY,EAAE,2BAA2B;AACzC,IAAA,qBAAqB,EAAE,qCAAqC;AAC5D,IAAA,SAAS,EAAE,uBAAuB;AAClC,IAAA,YAAY,EAAE,2BAA2B;;;ACV3C;;;AAGG;AACI,MAAM,mCAAmC,GAAG;AACjD,IAAA,MAAM,EAAE,sCAAsC;AAC9C,IAAA,gBAAgB,EAAE,gDAAgD;AAClE,IAAA,oBAAoB,EAAE,oDAAoD;AAC1E,IAAA,aAAa,EAAE,6CAA6C;AAC5D,IAAA,iBAAiB,EAAE,iDAAiD;AACpE,IAAA,qBAAqB,EAAE,qDAAqD;AAC5E,IAAA,eAAe,EAAE,+CAA+C;AAChE,IAAA,kBAAkB,EAAE,kDAAkD;AACtE,IAAA,uBAAuB,EAAE,uDAAuD;AAChF,IAAA,UAAU,EAAE,0CAA0C;AACtD,IAAA,KAAK,EAAE,qCAAqC;;AAG9C;;;AAGG;AACI,MAAM,2BAA2B,GAAG;AACzC,IAAA,UAAU,EAAE;AACV,QAAA,MAAM,EAAE;YACN,UAAU,EAAE,mCAAmC,CAAC,eAAe;AAChE,SAAA;AACD,QAAA,cAAc,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import { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/cor
|
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, Injectable } from '@angular/core';
|
|
6
6
|
import { AXPEntityFormBuilderService, AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';
|
|
7
|
-
import { resolveContactAssignmentPartyContext, RootConfig, buildContactAssignmentPersonSnapshot } from '@acorex-platform/module-person-core-client/contracts';
|
|
7
|
+
import { resolveContactAssignmentPartyContext, RootConfig, composePersonFullName, buildContactAssignmentPersonSnapshot } from '@acorex-platform/module-person-core-client/contracts';
|
|
8
8
|
import { resolveEntityActionCommandInput, mergeEntityActionProcessData } from '@acorex-platform/framework-shared/runtime';
|
|
9
9
|
|
|
10
10
|
//#region ---- Imports ----
|
|
11
11
|
//#endregion
|
|
12
|
+
//#region ---- Helpers ----
|
|
13
|
+
/** Saved row from either a runtime command result or a plain create payload. */
|
|
14
|
+
function createdRow(result) {
|
|
15
|
+
if (!result || typeof result !== 'object') {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
const payload = runtimeCommandPayloadData(result);
|
|
19
|
+
const row = (payload ?? result);
|
|
20
|
+
const id = row['id'] ?? row['_id'];
|
|
21
|
+
if (id == null || id === '') {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
return row;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
12
27
|
//#region ---- Command ----
|
|
13
28
|
class AXMContactAssignmentCreateWithNewPersonCommand {
|
|
14
29
|
constructor() {
|
|
@@ -66,10 +81,13 @@ class AXMContactAssignmentCreateWithNewPersonCommand {
|
|
|
66
81
|
}
|
|
67
82
|
dialogRef.setLoading(true);
|
|
68
83
|
try {
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
const rawContext = dialogRef.context();
|
|
85
|
+
const context = rawContext != null && typeof rawContext === 'object' && !Array.isArray(rawContext)
|
|
86
|
+
? { ...rawContext }
|
|
87
|
+
: {};
|
|
88
|
+
context['fullName'] = composePersonFullName(context['firstName'], context['lastName']);
|
|
89
|
+
const personRow = createdRow(await createPersonFn(context));
|
|
90
|
+
if (!personRow) {
|
|
73
91
|
return {
|
|
74
92
|
success: false,
|
|
75
93
|
message: {
|
|
@@ -95,7 +113,7 @@ class AXMContactAssignmentCreateWithNewPersonCommand {
|
|
|
95
113
|
}
|
|
96
114
|
})
|
|
97
115
|
.show());
|
|
98
|
-
const personRow =
|
|
116
|
+
const personRow = createdRow(personResult);
|
|
99
117
|
if (!personRow) {
|
|
100
118
|
return { success: false };
|
|
101
119
|
}
|
|
@@ -133,16 +151,15 @@ class AXMContactAssignmentCreateWithNewPersonCommand {
|
|
|
133
151
|
dialogRef.setLoading(true);
|
|
134
152
|
try {
|
|
135
153
|
const context = dialogRef.context();
|
|
136
|
-
const
|
|
154
|
+
const assignmentRow = createdRow(await createAssignmentFn({
|
|
137
155
|
...context,
|
|
138
156
|
partyId: partyContext.partyId,
|
|
139
157
|
personId,
|
|
140
158
|
person: personSnapshot,
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
if (__single_createResult) {
|
|
159
|
+
}));
|
|
160
|
+
if (assignmentRow) {
|
|
144
161
|
return { success: true, kind: 'object',
|
|
145
|
-
data:
|
|
162
|
+
data: assignmentRow,
|
|
146
163
|
message: {
|
|
147
164
|
text: await this.translationService.translateAsync('@general:messages.generic.success.description'),
|
|
148
165
|
},
|
|
@@ -182,4 +199,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
182
199
|
}] });
|
|
183
200
|
|
|
184
201
|
export { AXMContactAssignmentCreateWithNewPersonCommand };
|
|
185
|
-
//# sourceMappingURL=acorex-platform-module-person-core-client-create-contact-with-new-person.command-
|
|
202
|
+
//# sourceMappingURL=acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-person-core-client-create-contact-with-new-person.command-DQtcPE9Z.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, composePersonFullName, 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 ---- Helpers ----\n\n/** Saved row from either a runtime command result or a plain create payload. */\nfunction createdRow(result: unknown): Record<string, unknown> | undefined {\n if (!result || typeof result !== 'object') {\n return undefined;\n }\n\n const payload = runtimeCommandPayloadData(result as AXPRuntimeCommandResult<Record<string, unknown>>);\n const row = (payload ?? result) as Record<string, unknown>;\n const id = row['id'] ?? row['_id'];\n if (id == null || id === '') {\n return undefined;\n }\n return row;\n}\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 rawContext = dialogRef.context();\n const context: Record<string, unknown> =\n rawContext != null && typeof rawContext === 'object' && !Array.isArray(rawContext)\n ? { ...(rawContext as Record<string, unknown>) }\n : {};\n context['fullName'] = composePersonFullName(context['firstName'], context['lastName']);\n const personRow = createdRow(await createPersonFn(context));\n if (!personRow) {\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 = createdRow(personResult);\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 assignmentRow = createdRow(\n await createAssignmentFn({\n ...context,\n partyId: partyContext.partyId,\n personId,\n person: personSnapshot,\n }),\n );\n if (assignmentRow) {\n return { success: true, kind: 'object',\n data: assignmentRow,\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;AAEA;AACA,SAAS,UAAU,CAAC,MAAe,EAAA;IACjC,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AACzC,QAAA,OAAO,SAAS;IAClB;AAEA,IAAA,MAAM,OAAO,GAAG,yBAAyB,CAAC,MAA0D,CAAC;AACrG,IAAA,MAAM,GAAG,IAAI,OAAO,IAAI,MAAM,CAA4B;IAC1D,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC;IAClC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,EAAE,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,OAAO,GAAG;AACZ;AAEA;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;AAmMnE,IAAA;IAjMC,MAAM,OAAO,CAAC,KAAU,EAAA;AACtB,QAAA,MAAM,QAAQ,GAAG,+BAA+B,CAAC,KAAK,CAAC;AACvD,QAAA,MAAM,WAAW,GAAG,4BA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