@acorex-platform/module-human-capital-management-client 1.0.2 → 2.0.0-beta.1

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 (65) hide show
  1. package/fesm2022/{acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs → acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs} +380 -126
  2. package/fesm2022/acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-human-capital-management-client-approve-leave-request.command-Om_S0k9L.mjs → acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs} +1 -1
  4. package/fesm2022/{acorex-platform-module-human-capital-management-client-approve-leave-request.command-Om_S0k9L.mjs.map → acorex-platform-module-human-capital-management-client-approve-leave-request.command-CWrisv79.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-human-capital-management-client-assign-position-assignment.command-2iHIogn6.mjs → acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs} +2 -2
  6. package/fesm2022/acorex-platform-module-human-capital-management-client-assign-position-assignment.command-BJII8ynP.mjs.map +1 -0
  7. package/fesm2022/{acorex-platform-module-human-capital-management-client-cancel-leave-request.command-DGriRFiQ.mjs → acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs} +1 -1
  8. package/fesm2022/{acorex-platform-module-human-capital-management-client-cancel-leave-request.command-DGriRFiQ.mjs.map → acorex-platform-module-human-capital-management-client-cancel-leave-request.command-CD8tDXCv.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs +1 -0
  10. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-employee.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs +14 -34
  12. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entities-leave-request.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-G4FFIMvd.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-DUPGqkbH.mjs} +44 -9
  14. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-DUPGqkbH.mjs.map +1 -0
  15. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-BEYYlN7b.mjs} +1 -1
  16. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-D8MsCaj5.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-catalog-scope.keys-BEYYlN7b.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-BR9V8Pyn.mjs} +1 -1
  18. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-B5rEwAkf.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-commands.keys-BR9V8Pyn.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DeQmRygb.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-CV3gcLuA.mjs} +4 -3
  20. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-CV3gcLuA.mjs.map +1 -0
  21. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-gkImBJNV.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-Dx78wCvD.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-gkImBJNV.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employment-type.entity-Dx78wCvD.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-D5MKVw7e.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-AutNrrda.mjs} +16 -36
  24. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-AutNrrda.mjs.map +1 -0
  25. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-BS1ln4HC.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-Qd9uROk2.mjs} +3 -3
  26. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-BS1ln4HC.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-type.entity-Qd9uROk2.mjs.map} +1 -1
  27. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-Cj7_EEYt.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-SboaKJyk.mjs} +3 -3
  28. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-Cj7_EEYt.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event-type.entity-SboaKJyk.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DtIy06_8.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DmkzomEV.mjs} +2 -2
  30. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DtIy06_8.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-lifecycle-event.entity-DmkzomEV.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-NYvLlI_7.mjs → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-C3dq7y16.mjs} +3 -3
  32. package/fesm2022/{acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-NYvLlI_7.mjs.map → acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-C3dq7y16.mjs.map} +1 -1
  33. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs +1 -1
  34. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts.mjs +41 -21
  35. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts.mjs.map +1 -1
  36. package/fesm2022/{acorex-platform-module-human-capital-management-client-edit-personal-info.command-Ddf1quqk.mjs → acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs} +8 -5
  37. package/fesm2022/acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs.map +1 -0
  38. package/fesm2022/{acorex-platform-module-human-capital-management-client-edit-signature.command-CPHVtOwv.mjs → acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs} +5 -7
  39. package/fesm2022/acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs.map +1 -0
  40. package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs → acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs} +4 -4
  41. package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs.map → acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs.map} +1 -1
  42. package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-DHamm55f.mjs → acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs} +3 -3
  43. package/fesm2022/{acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-DHamm55f.mjs.map → acorex-platform-module-human-capital-management-client-profile-documents-panel.component.provider-BI2coRF-.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-module-human-capital-management-client-reject-leave-request.command-O9gipd8g.mjs → acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs} +1 -1
  45. package/fesm2022/{acorex-platform-module-human-capital-management-client-reject-leave-request.command-O9gipd8g.mjs.map → acorex-platform-module-human-capital-management-client-reject-leave-request.command-BfvfurT1.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-DmVlDQ8_.mjs → acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs} +1 -1
  47. package/fesm2022/{acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-DmVlDQ8_.mjs.map → acorex-platform-module-human-capital-management-client-revoke-position-assignment.command-a3hP-q88.mjs.map} +1 -1
  48. package/fesm2022/{acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-Bm0LVRB9.mjs → acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs} +1 -1
  49. package/fesm2022/{acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-Bm0LVRB9.mjs.map → acorex-platform-module-human-capital-management-client-start-leave-request-flow.command-BDctjTqW.mjs.map} +1 -1
  50. package/fesm2022/{acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-aGyEvdvc.mjs → acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs} +1 -1
  51. package/fesm2022/{acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-aGyEvdvc.mjs.map → acorex-platform-module-human-capital-management-client-start-lifecycle-event-flow.command-DrKITqtO.mjs.map} +1 -1
  52. package/fesm2022/acorex-platform-module-human-capital-management-client.mjs +1 -1
  53. package/i18n/en-AU/human-capital-management.json +2 -2
  54. package/i18n/en-US/human-capital-management.json +2 -2
  55. package/i18n/fa-IR/human-capital-management.json +2 -2
  56. package/package.json +2 -2
  57. package/types/acorex-platform-module-human-capital-management-client-contracts.d.ts +8 -1
  58. package/types/acorex-platform-module-human-capital-management-client.d.ts +7 -4
  59. package/fesm2022/acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs.map +0 -1
  60. package/fesm2022/acorex-platform-module-human-capital-management-client-assign-position-assignment.command-2iHIogn6.mjs.map +0 -1
  61. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-G4FFIMvd.mjs.map +0 -1
  62. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-employee.entity-DeQmRygb.mjs.map +0 -1
  63. package/fesm2022/acorex-platform-module-human-capital-management-client-contracts-entity-catalog-leave-request.entity-D5MKVw7e.mjs.map +0 -1
  64. package/fesm2022/acorex-platform-module-human-capital-management-client-edit-personal-info.command-Ddf1quqk.mjs.map +0 -1
  65. package/fesm2022/acorex-platform-module-human-capital-management-client-edit-signature.command-CPHVtOwv.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-NYvLlI_7.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/entities/position-assignment/position-assignment.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { AXPHumanCapitalManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryPositionAssignment(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.positionAssignment.name,\n icon: 'fa-light fa-user-tie-hair',\n searchTags: [\n 'position-assignment',\n 'position-assignments',\n 'job-assignment',\n 'org-chart',\n 'reporting-structure',\n 'employee-position',\n 'role-assignment',\n 'واگذاری سمت',\n 'واگذاری‌های سمت',\n 'سمت',\n 'کارمند',\n 'ساختار سازمانی',\n 'منابع انسانی',\n 'مدیریت منابع انسانی',\n ],\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'human-capital-management.status.position-assignment',\n },\n },\n ],\n title: RootConfig.entities.positionAssignment.title,\n formats: {\n individual: RootConfig.entities.positionAssignment.title,\n plural: RootConfig.entities.positionAssignment.titlePlural,\n searchResult: { title: '{{ position.title }}', description: RootConfig.module.title },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'assignment',\n title: '@human-capital-management:position-assignments.entities.position-assignment.groups.assignment',\n },\n { id: 'period', title: '@general:terms.datetime.period' },\n { id: 'additional', title: '@general:terms.interface.additional-info' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'assignment',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'employeeId',\n title: '@general:terms.people.employee',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `HumanCapitalManagement.Employee`,\n textField: 'person.fullName',\n valueField: 'id',\n columns: ['person.fullName', 'employeeCode'],\n expose: [\n { source: 'id', target: 'employee.id' },\n { source: 'person.fullName', target: 'employee.person.fullName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'businessUnitId',\n title: '@organization-management:business-units.terms.individual-title',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.BusinessUnit`,\n textField: 'title',\n valueField: 'id',\n look: 'lookup',\n columns: ['code', 'title', { name: 'positionIds', visible: false }],\n expose: [\n { source: 'id', target: 'businessUnit.id' },\n { source: 'title', target: 'businessUnit.title' },\n { source: 'positionIds', target: 'businessUnit.positionIds' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'positionId',\n title: '@general:terms.organizations.position',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.Position`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n disabled: '{{ !context.eval(\"businessUnitId\") }}',\n expose: [\n { source: 'id', target: 'position.id' },\n { source: 'title', target: 'position.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'id',\n operator: { type: 'in' },\n value: '{{ context.eval(\"businessUnit.positionIds\") || [] }}',\n },\n ],\n },\n },\n triggers: [\n {\n event: \"{{ events.context('businessUnitId') }}\",\n action: `{{ widget.setValue(null); context.set('position.id', null); context.set('position.title', null); widget.refresh(); }}`,\n },\n ],\n },\n },\n validations: [{ rule: 'required' }],\n },\n\n {\n name: 'startDate',\n title: '@general:terms.datetime.start-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@general:terms.datetime.end-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPrimary',\n title: '@general:terms.status.states.is-primary',\n groupId: 'additional',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'additional',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },\n { name: 'positionId', options: { dataPath: 'position.title' } },\n { name: 'startDate' },\n { name: 'endDate' },\n { name: 'isPrimary' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: `{{position.title}}`,\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ...entityMasterCrudActions({ create: false, delete: false, view: true, edit: false }),\n ],\n views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;;AAKO,eAAe,yBAAyB,GAAA;AAE7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,IAAI,EAAE,2BAA2B;AACjC,QAAA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D,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,QAAQ;AACtC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kGAAkG;AACzG,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,oCAAoC,CAAC,kBAAkB,CAAC,MAAM;AACrE,6BAAA;AACD,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACD,wBAAA,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACtF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts-entity-catalog-position-assignment.entity-C3dq7y16.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/entities/position-assignment/position-assignment.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { AXPHumanCapitalManagementCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function factoryPositionAssignment(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.positionAssignment.name,\n icon: 'fa-light fa-user-tie-hair',\n searchTags: [\n 'position-assignment',\n 'position-assignments',\n 'job-assignment',\n 'org-chart',\n 'reporting-structure',\n 'employee-position',\n 'role-assignment',\n 'واگذاری سمت',\n 'واگذاری‌های سمت',\n 'سمت',\n 'کارمند',\n 'ساختار سازمانی',\n 'منابع انسانی',\n 'مدیریت منابع انسانی',\n ],\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'human-capital-management.status.position-assignment',\n },\n },\n ],\n title: RootConfig.entities.positionAssignment.title,\n formats: {\n individual: RootConfig.entities.positionAssignment.title,\n plural: RootConfig.entities.positionAssignment.titlePlural,\n searchResult: { title: '{{ position.title }}', description: RootConfig.module.title },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'assignment',\n title: '@human-capital-management:position-assignments.entities.position-assignment.groups.assignment',\n },\n { id: 'period', title: '@general:terms.datetime.period' },\n { id: 'additional', title: '@general:terms.interface.additional-info' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'assignment',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'employeeId',\n title: '@general:terms.people.employee',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `HumanCapitalManagement.Employee`,\n textField: 'person.fullName',\n valueField: 'id',\n columns: ['person.fullName', 'employeeCode'],\n expose: [\n { source: 'id', target: 'employee.id' },\n { source: 'person.fullName', target: 'employee.person.fullName' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'businessUnitId',\n title: '@organization-management:business-units.terms.individual-title',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.BusinessUnit`,\n textField: 'title',\n valueField: 'id',\n look: 'lookup',\n columns: ['code', 'title', { name: 'positionIds', visible: false }],\n expose: [\n { source: 'id', target: 'businessUnit.id' },\n { source: 'title', target: 'businessUnit.title' },\n { source: 'positionIds', target: 'businessUnit.positionIds' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'positionId',\n title: '@general:terms.organizations.position',\n groupId: 'assignment',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `OrganizationManagement.Position`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n disabled: '{{ !context.eval(\"businessUnitId\") }}',\n expose: [\n { source: 'id', target: 'position.id' },\n { source: 'title', target: 'position.title' },\n ],\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'id',\n operator: { type: 'in' },\n value: '{{ context.eval(\"businessUnit.positionIds\") || [] }}',\n },\n ],\n },\n },\n triggers: [\n {\n event: \"{{ events.context('businessUnitId') }}\",\n action: `{{ widget.setValue(null); context.set('position.id', null); context.set('position.title', null); widget.refresh(); }}`,\n },\n ],\n },\n },\n validations: [{ rule: 'required' }],\n },\n\n {\n name: 'startDate',\n title: '@general:terms.datetime.start-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@general:terms.datetime.end-date',\n groupId: 'period',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'date', interface: { type: AXPWidgetsCatalog.dateTime } },\n },\n {\n name: 'isPrimary',\n title: '@general:terms.status.states.is-primary',\n groupId: 'additional',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'boolean', interface: { type: AXPWidgetsCatalog.toggle } },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'additional',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n ],\n columns: [\n { name: 'employeeId', options: { dataPath: 'employee.person.fullName' } },\n { name: 'businessUnitId', options: { dataPath: 'businessUnit.title' } },\n { name: 'positionId', options: { dataPath: 'position.title' } },\n { name: 'startDate' },\n { name: 'endDate' },\n { name: 'isPrimary' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: `{{position.title}}`,\n sections: [{ id: 'assignment' }, { id: 'period' }, { id: 'additional' }],\n properties: [\n { name: 'employeeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'positionId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'businessUnitId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'startDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'isPrimary', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.assign.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,\n },\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.title',\n command: {\n name: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,\n },\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ...entityMasterCrudActions({ create: false, delete: false, view: true, edit: false }),\n ],\n views: [createAllQueryView({ sorts: [{ name: 'startDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;;AAKO,eAAe,yBAAyB,GAAA;AAE7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,IAAI,EAAE,2BAA2B;AACjC,QAAA,UAAU,EAAE;YACV,qBAAqB;YACrB,sBAAsB;YACtB,gBAAgB;YAChB,WAAW;Y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AAK,EAAE,qBAAqB,CAAC,QAAQ;AACtC,yBAAA;AACD,wBAAA;AACE,4BAAA,KAAK,EAAE,kGAAkG;AACzG,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,oCAAoC,CAAC,kBAAkB,CAAC,MAAM;AACrE,6BAAA;AACD,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACxC,yBAAA;AACD,wBAAA,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACtF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
@@ -1,2 +1,2 @@
1
- export { h as humanCapitalManagementLocalEntityCatalog } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-G4FFIMvd.mjs';
1
+ export { h as humanCapitalManagementLocalEntityCatalog } from './acorex-platform-module-human-capital-management-client-contracts-entity-catalog-acorex-platform-module-human-capital-management-client-contracts-entity-catalog-DUPGqkbH.mjs';
2
2
  //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts-entity-catalog.mjs.map
@@ -1,5 +1,45 @@
1
+ import { axpRegisterDataExecutionCapabilities } from '@acorex-platform/framework-shared/runtime';
2
+ import { axpRegisterEntityPublicReadFields } from '@acorex-platform/framework-shared/entity';
1
3
  import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';
2
4
 
5
+ /**
6
+ * People & Organization capabilities used by this module.
7
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
8
+ */
9
+ const AXPPeopleOrganizationPermissionKeys = {
10
+ Access: 'PeopleOrganization:Permission:Access',
11
+ ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',
12
+ MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',
13
+ MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',
14
+ MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',
15
+ ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',
16
+ MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',
17
+ MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',
18
+ ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',
19
+ DesignJobs: 'PeopleOrganization:Permission:DesignJobs',
20
+ Setup: 'PeopleOrganization:Permission:Setup',
21
+ };
22
+
23
+ // Preparation uses this module's existing read entitlements and never grants access.
24
+ function registerHumanCapitalManagementReferencePreparation() {
25
+ for (const [name, permission] of [
26
+ ['HumanCapitalManagement.EmploymentType', AXPPeopleOrganizationPermissionKeys.Setup],
27
+ ['HumanCapitalManagement.LeaveType', AXPPeopleOrganizationPermissionKeys.Setup],
28
+ ['HumanCapitalManagement.LifecycleEventType', AXPPeopleOrganizationPermissionKeys.Setup],
29
+ ]) {
30
+ axpRegisterDataExecutionCapabilities({
31
+ targetKind: 'Entity', targetKey: name, revision: 'human-capital-management-reference-preparation-v1',
32
+ operations: ['read', 'getOne', 'query'],
33
+ readAccess: { permissions: [permission], features: [] },
34
+ });
35
+ }
36
+ }
37
+ registerHumanCapitalManagementReferencePreparation();
38
+
39
+ // Public login link and the Person lookup's id/displayName snapshot are also
40
+ // returned on merged Employee rows, including seeded legacy rows.
41
+ axpRegisterEntityPublicReadFields('HumanCapitalManagement.Employee', 'userId', 'user');
42
+
3
43
  /** HR catalog scope for questionnaires, question bank items, and workflow definitions. */
4
44
  const HCM_CATALOG_SCOPE_HR = 'human-capital-management.hr';
5
45
 
@@ -52,24 +92,6 @@ const AXPHumanCapitalManagementMenuKeys = {
52
92
  LifecycleEventTypes: 'HumanCapitalManagement:Menu:LifecycleEventTypes',
53
93
  };
54
94
 
55
- /**
56
- * People & Organization capabilities used by this module.
57
- * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
58
- */
59
- const AXPPeopleOrganizationPermissionKeys = {
60
- Access: 'PeopleOrganization:Permission:Access',
61
- ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',
62
- MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',
63
- MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',
64
- MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',
65
- ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',
66
- MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',
67
- MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',
68
- ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',
69
- DesignJobs: 'PeopleOrganization:Permission:DesignJobs',
70
- Setup: 'PeopleOrganization:Permission:Setup',
71
- };
72
-
73
95
  //#region ---- Position assignment status names ----
74
96
  const AXM_POSITION_ASSIGNMENT_STATUS = {
75
97
  active: AXPSystemStatusType.Active,
@@ -211,11 +233,9 @@ const HumanCapitalManagementManifest = {
211
233
 
212
234
  //#endregion
213
235
 
214
- //#region ---- Contracts barrel ----
215
-
216
236
  /**
217
237
  * Generated bundle index. Do not edit.
218
238
  */
219
239
 
220
- export { AXMLeaveRequestOpenStatusIds, AXMLifecycleEventOpenStatusIds, AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS, AXM_POSITION_ASSIGNMENT_STATUS, AXPHumanCapitalManagementCommandKeys, AXPHumanCapitalManagementFeatureKeys, AXPHumanCapitalManagementMenuKeys, AXPHumanCapitalManagementQueryKeys, AXPPeopleOrganizationPermissionKeys, HCM_CATALOG_SCOPE_HR, HumanCapitalManagementManifest, RootConfig };
240
+ export { AXMLeaveRequestOpenStatusIds, AXMLifecycleEventOpenStatusIds, AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS, AXM_POSITION_ASSIGNMENT_STATUS, AXPHumanCapitalManagementCommandKeys, AXPHumanCapitalManagementFeatureKeys, AXPHumanCapitalManagementMenuKeys, AXPHumanCapitalManagementQueryKeys, AXPPeopleOrganizationPermissionKeys, HCM_CATALOG_SCOPE_HR, HumanCapitalManagementManifest, RootConfig, registerHumanCapitalManagementReferencePreparation };
221
241
  //# sourceMappingURL=acorex-platform-module-human-capital-management-client-contracts.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/commands.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/features.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/leave-request-status.constants.ts","../../../../libs/modules/human-capital-management/contracts/src/lifecycle-event-status.constants.ts","../../../../libs/modules/human-capital-management/contracts/src/menu.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/permission.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/position-assignment.status.ts","../../../../libs/modules/human-capital-management/contracts/src/profile-document-drive.types.ts","../../../../libs/modules/human-capital-management/contracts/src/runtime.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/manifest.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/lifecycle-event/lifecycle-event.types.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/lifecycle-event-type/lifecycle-event-type.types.ts","../../../../libs/modules/human-capital-management/contracts/src/index.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts.ts"],"sourcesContent":["/** HR catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HCM_CATALOG_SCOPE_HR = 'human-capital-management.hr';\n","export const AXPHumanCapitalManagementCommandKeys = {\n PositionAssignment: {\n Assign: 'HumanCapitalManagement.PositionAssignment:Assign',\n Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',\n },\n LifecycleEvent: {\n StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',\n },\n LeaveRequest: {\n StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',\n },\n Profile: {\n EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',\n EditSignature: 'HumanCapitalManagement.Profile:EditSignature',\n },\n} as const;\n","export const AXPHumanCapitalManagementFeatureKeys = {\n EmployeeManagement: 'HumanCapitalManagement:Feature:Employee.Management',\n LeaveManagement: 'HumanCapitalManagement:Feature:Leave.Management',\n LifecycleManagement: 'HumanCapitalManagement:Feature:Lifecycle.Management',\n} as const;\n\n","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Leave request open statuses ----\n\n/** Statuses that block starting another run for the same employee and leave type. */\nexport const AXMLeaveRequestOpenStatusIds = [AXPSystemStatusType.WaitingApproval] as const;\n\n//#endregion\n","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Lifecycle event open statuses ----\n\n/** Statuses that block starting another run for the same employee and event type. */\nexport const AXMLifecycleEventOpenStatusIds = [\n AXPSystemStatusType.InProgress,\n AXPSystemStatusType.WaitingSignOff,\n] as const;\n\n//#endregion\n","export const AXPHumanCapitalManagementMenuKeys = {\n Root: 'HumanCapitalManagement:Menu',\n Employees: 'HumanCapitalManagement:Menu:Employees',\n EmploymentTypes: 'HumanCapitalManagement:Menu:EmploymentTypes',\n Divider1: 'HumanCapitalManagement:Menu:Divider1',\n PositionAssignments: 'HumanCapitalManagement:Menu:PositionAssignments',\n Divider2: 'HumanCapitalManagement:Menu:Divider2',\n LeaveTypes: 'HumanCapitalManagement:Menu:LeaveTypes',\n LeaveRequests: 'HumanCapitalManagement:Menu:LeaveRequests',\n LeaveRequestBoard: 'HumanCapitalManagement:Menu:LeaveRequestBoard',\n LifecycleEventTypes: 'HumanCapitalManagement:Menu:LifecycleEventTypes',\n} as const;\n\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","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Position assignment status names ----\n\nexport const AXM_POSITION_ASSIGNMENT_STATUS = {\n active: AXPSystemStatusType.Active,\n scheduled: 'scheduled',\n expired: 'expired',\n revoked: 'revoked',\n} as const;\n\nexport type AXMPositionAssignmentStatusId =\n (typeof AXM_POSITION_ASSIGNMENT_STATUS)[keyof typeof AXM_POSITION_ASSIGNMENT_STATUS];\n\n/**\n * Statuses that still occupy the employee / manager seat for overlap and revoke resolution.\n * Keep in sync with position-assignment duplicate-seat validation (mock and future API rules).\n */\nexport const AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS: readonly AXMPositionAssignmentStatusId[] = [\n AXM_POSITION_ASSIGNMENT_STATUS.active,\n AXM_POSITION_ASSIGNMENT_STATUS.scheduled,\n];\n\n//#endregion\n","//#region ---- Profile document drive context ----\n\n/** Result of resolving the current session user's employee EDMS folder ref. */\nexport interface AXMHcmProfileDocumentDriveContext {\n employeeId: string;\n /** e.g. `HumanCapitalManagement.Employee` */\n refType: string;\n /** Employee record id used as folder `refId`. */\n refId: string;\n /** Allowed document type names for create/upload (matches Employee documents plugin). */\n documentTypeNames: string[];\n}\n\n//#endregion\n","//#region ---- Human capital management runtime keys ----\n\nexport const AXPHumanCapitalManagementQueryKeys = {\n Profile: {\n GetMyDocumentDriveContext: 'HumanCapitalManagement:Profile:GetMyDocumentDriveContext',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\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 * Human Capital Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const HumanCapitalManagementManifest: 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\n type: 'domain',\n domain: 'human-capital',\n // Module dependencies\n dependencies: [\n 'OrganizationManagement',\n 'PersonCore',\n 'LocationManagement',\n 'DocumentManagement',\n 'AssessmentManagement',\n 'WorkflowManagement',\n 'DataManagement',\n ],\n};\n\n//#endregion\n\n","import { AXPMultiLanguageString, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { AXMHumanCapitalManagementEmployeeEntityModel } from '../employee/employee.types';\n\n//#endregion\n\n//#region ---- Lifecycle event ----\n\nexport type AXMHumanCapitalManagementLifecycleEventStatus =\n | AXPSystemStatusType.InProgress\n | AXPSystemStatusType.WaitingSignOff\n | AXPSystemStatusType.Completed\n | AXPSystemStatusType.Cancelled;\n\n/**\n * One employee lifecycle event (onboarding, separation, …), driven by {@link AXMHumanCapitalManagementLifecycleEventTypeEntityModel}.\n */\nexport interface AXMHumanCapitalManagementLifecycleEventEntityModel extends AXPEntityModel<string> {\n employeeId: string;\n employee?: AXMHumanCapitalManagementEmployeeEntityModel;\n eventTypeId: string;\n eventType?: { id: string; title: AXPMultiLanguageString };\n /**\n * Platform user currently assigned the active workflow step (human task / cartable assignee).\n * Populate from workflow engine or middleware when tasks are created or claimed.\n */\n assignedToUserId?: string | null;\n assignedToUser?: { id: string; displayName?: string };\n effectiveDate?: Date;\n notes?: string;\n statusId?: AXMHumanCapitalManagementLifecycleEventStatus;\n status?: { id: AXMHumanCapitalManagementLifecycleEventStatus; title?: string };\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\n//#endregion\n\n//#region ---- Lifecycle event type (reference) ----\n\n/** Workflow template binding and admin-configured default inputs for lifecycle event types. */\nexport interface AXMHumanCapitalManagementLifecycleEventTypeWorkflowConfig {\n workflowDefinitionId: string;\n workflowName: string;\n defaultInput?: Record<string, unknown>;\n}\n\n/**\n * Defines workflow defaults, questionnaire, and metadata schema for employee lifecycle events (onboarding, separation, etc.).\n */\nexport interface AXMHumanCapitalManagementLifecycleEventTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n /** Selected workflow and template-time input defaults (e.g. questionnaireId). */\n workflowConfig?: AXMHumanCapitalManagementLifecycleEventTypeWorkflowConfig | null;\n /** Font Awesome icon classes (e.g. `fa-light fa-user-plus`). */\n icon?: string;\n /** Meta-data-builder schema (`metaDataList`); drives dynamic fields on lifecycle events for this template. */\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './leave-request-status.constants';\nexport * from './lifecycle-event-status.constants';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './position-assignment.status';\nexport * from './profile-document-drive.types';\nexport * from './runtime.keys';\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":";;AAAA;AACO,MAAM,oBAAoB,GAAG;;ACD7B,MAAM,oCAAoC,GAAG;AAClD,IAAA,kBAAkB,EAAE;AAClB,QAAA,MAAM,EAAE,kDAAkD;AAC1D,QAAA,MAAM,EAAE,kDAAkD;AAC3D,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,SAAS,EAAE,iDAAiD;AAC7D,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,+CAA+C;AAC3D,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,gBAAgB,EAAE,iDAAiD;AACnE,QAAA,aAAa,EAAE,8CAA8C;AAC9D,KAAA;;;ACdI,MAAM,oCAAoC,GAAG;AAClD,IAAA,kBAAkB,EAAE,oDAAoD;AACxE,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,mBAAmB,EAAE,qDAAqD;;;ACD5E;AAEA;MACa,4BAA4B,GAAG,CAAC,mBAAmB,CAAC,eAAe;AAEhF;;ACLA;AAEA;AACO,MAAM,8BAA8B,GAAG;AAC5C,IAAA,mBAAmB,CAAC,UAAU;AAC9B,IAAA,mBAAmB,CAAC,cAAc;;AAGpC;;ACVO,MAAM,iCAAiC,GAAG;AAC7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;;AAGG;AACI,MAAM,8BAA8B,GAAsB;AAC/D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAE5B,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,eAAe;;AAEvB,IAAA,YAAY,EAAE;QACZ,wBAAwB;QACxB,YAAY;QACZ,oBAAoB;QACpB,oBAAoB;QACpB,sBAAsB;QACtB,oBAAoB;QACpB,gBAAgB;AACjB,KAAA;;AAGH;;ACCA;;ACLA;;AC9BA;;ACAA;;AAEG;;"}
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-contracts.mjs","sources":["../../../../libs/modules/human-capital-management/contracts/src/permission.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/reference-preparation.capabilities.ts","../../../../libs/modules/human-capital-management/contracts/src/data-execution.capabilities.ts","../../../../libs/modules/human-capital-management/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/commands.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/features.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/leave-request-status.constants.ts","../../../../libs/modules/human-capital-management/contracts/src/lifecycle-event-status.constants.ts","../../../../libs/modules/human-capital-management/contracts/src/menu.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/position-assignment.status.ts","../../../../libs/modules/human-capital-management/contracts/src/profile-document-drive.types.ts","../../../../libs/modules/human-capital-management/contracts/src/runtime.keys.ts","../../../../libs/modules/human-capital-management/contracts/src/root-config.ts","../../../../libs/modules/human-capital-management/contracts/src/manifest.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/lifecycle-event/lifecycle-event.types.ts","../../../../libs/modules/human-capital-management/contracts/src/entities/lifecycle-event-type/lifecycle-event-type.types.ts","../../../../libs/modules/human-capital-management/contracts/src/acorex-platform-module-human-capital-management-client-contracts.ts"],"sourcesContent":["/**\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","import { axpRegisterDataExecutionCapabilities } from '@acorex-platform/framework-shared/runtime';\nimport { AXPPeopleOrganizationPermissionKeys } from './permission.keys';\n\n// Preparation uses this module's existing read entitlements and never grants access.\nexport function registerHumanCapitalManagementReferencePreparation(): void {\n for (const [name, permission] of [\n ['HumanCapitalManagement.EmploymentType', AXPPeopleOrganizationPermissionKeys.Setup],\n ['HumanCapitalManagement.LeaveType', AXPPeopleOrganizationPermissionKeys.Setup],\n ['HumanCapitalManagement.LifecycleEventType', AXPPeopleOrganizationPermissionKeys.Setup],\n ] as const) {\n axpRegisterDataExecutionCapabilities({\n targetKind: 'Entity', targetKey: name, revision: 'human-capital-management-reference-preparation-v1',\n operations: ['read', 'getOne', 'query'],\n readAccess: { permissions: [permission], features: [] },\n });\n }\n}\nregisterHumanCapitalManagementReferencePreparation();\n","import { axpRegisterEntityPublicReadFields } from '@acorex-platform/framework-shared/entity';\n\n// Public login link and the Person lookup's id/displayName snapshot are also\n// returned on merged Employee rows, including seeded legacy rows.\naxpRegisterEntityPublicReadFields('HumanCapitalManagement.Employee', 'userId', 'user');\n","/** HR catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HCM_CATALOG_SCOPE_HR = 'human-capital-management.hr';\n","export const AXPHumanCapitalManagementCommandKeys = {\n PositionAssignment: {\n Assign: 'HumanCapitalManagement.PositionAssignment:Assign',\n Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',\n },\n LifecycleEvent: {\n StartFlow: 'HumanCapitalManagement.LifecycleEvent:StartFlow',\n },\n LeaveRequest: {\n StartFlow: 'HumanCapitalManagement.LeaveRequest:StartFlow',\n },\n Profile: {\n EditPersonalInfo: 'HumanCapitalManagement.Profile:EditPersonalInfo',\n EditSignature: 'HumanCapitalManagement.Profile:EditSignature',\n },\n} as const;\n","export const AXPHumanCapitalManagementFeatureKeys = {\n EmployeeManagement: 'HumanCapitalManagement:Feature:Employee.Management',\n LeaveManagement: 'HumanCapitalManagement:Feature:Leave.Management',\n LifecycleManagement: 'HumanCapitalManagement:Feature:Lifecycle.Management',\n} as const;\n\n","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Leave request open statuses ----\n\n/** Statuses that block starting another run for the same employee and leave type. */\nexport const AXMLeaveRequestOpenStatusIds = [AXPSystemStatusType.WaitingApproval] as const;\n\n//#endregion\n","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Lifecycle event open statuses ----\n\n/** Statuses that block starting another run for the same employee and event type. */\nexport const AXMLifecycleEventOpenStatusIds = [\n AXPSystemStatusType.InProgress,\n AXPSystemStatusType.WaitingSignOff,\n] as const;\n\n//#endregion\n","export const AXPHumanCapitalManagementMenuKeys = {\n Root: 'HumanCapitalManagement:Menu',\n Employees: 'HumanCapitalManagement:Menu:Employees',\n EmploymentTypes: 'HumanCapitalManagement:Menu:EmploymentTypes',\n Divider1: 'HumanCapitalManagement:Menu:Divider1',\n PositionAssignments: 'HumanCapitalManagement:Menu:PositionAssignments',\n Divider2: 'HumanCapitalManagement:Menu:Divider2',\n LeaveTypes: 'HumanCapitalManagement:Menu:LeaveTypes',\n LeaveRequests: 'HumanCapitalManagement:Menu:LeaveRequests',\n LeaveRequestBoard: 'HumanCapitalManagement:Menu:LeaveRequestBoard',\n LifecycleEventTypes: 'HumanCapitalManagement:Menu:LifecycleEventTypes',\n} as const;\n\n","import { AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Position assignment status names ----\n\nexport const AXM_POSITION_ASSIGNMENT_STATUS = {\n active: AXPSystemStatusType.Active,\n scheduled: 'scheduled',\n expired: 'expired',\n revoked: 'revoked',\n} as const;\n\nexport type AXMPositionAssignmentStatusId =\n (typeof AXM_POSITION_ASSIGNMENT_STATUS)[keyof typeof AXM_POSITION_ASSIGNMENT_STATUS];\n\n/**\n * Statuses that still occupy the employee / manager seat for overlap and revoke resolution.\n * Keep in sync with position-assignment duplicate-seat validation (mock and future API rules).\n */\nexport const AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS: readonly AXMPositionAssignmentStatusId[] = [\n AXM_POSITION_ASSIGNMENT_STATUS.active,\n AXM_POSITION_ASSIGNMENT_STATUS.scheduled,\n];\n\n//#endregion\n","//#region ---- Profile document drive context ----\n\n/** Result of resolving the current session user's employee EDMS folder ref. */\nexport interface AXMHcmProfileDocumentDriveContext {\n employeeId: string;\n /** e.g. `HumanCapitalManagement.Employee` */\n refType: string;\n /** Employee record id used as folder `refId`. */\n refId: string;\n /** Allowed document type names for create/upload (matches Employee documents plugin). */\n documentTypeNames: string[];\n}\n\n//#endregion\n","//#region ---- Human capital management runtime keys ----\n\nexport const AXPHumanCapitalManagementQueryKeys = {\n Profile: {\n GetMyDocumentDriveContext: 'HumanCapitalManagement:Profile:GetMyDocumentDriveContext',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'human-capital-management',\n module: 'HumanCapitalManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'human-capital-management',\n name: config.module,\n title: '@human-capital-management:module.title',\n icon: 'fa-light fa-users',\n },\n entities: {\n employee: {\n name: 'Employee',\n source: `${config.module}.Employee`,\n title: '@human-capital-management:employees.entities.employee.title',\n titlePlural: '@human-capital-management:employees.entities.employee.plural',\n icon: 'fa-light fa-address-card',\n },\n employmentType: {\n name: 'EmploymentType',\n source: `${config.module}.EmploymentType`,\n title: '@human-capital-management:employment-types.entities.employment-type.title',\n titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',\n icon: 'fa-light fa-file-signature',\n },\n positionAssignment: {\n name: 'PositionAssignment',\n source: `${config.module}.PositionAssignment`,\n title: '@human-capital-management:position-assignments.entities.position-assignment.title',\n titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',\n icon: 'fa-light fa-user-tie-hair',\n },\n leaveType: {\n name: 'LeaveType',\n source: `${config.module}.LeaveType`,\n title: '@human-capital-management:leave-types.entities.leave-type.title',\n titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',\n icon: 'fa-light fa-calendar-days',\n },\n leaveRequest: {\n name: 'LeaveRequest',\n source: `${config.module}.LeaveRequest`,\n title: '@human-capital-management:leave-requests.entities.leave-request.title',\n titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',\n icon: 'fa-light fa-plane-departure',\n },\n lifecycleEventType: {\n name: 'LifecycleEventType',\n source: `${config.module}.LifecycleEventType`,\n title: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.title',\n titlePlural: '@human-capital-management:lifecycle-event-types.entities.lifecycle-event-type.plural',\n icon: 'fa-light fa-diagram-next',\n },\n lifecycleEvent: {\n name: 'LifecycleEvent',\n source: `${config.module}.LifecycleEvent`,\n title: '@human-capital-management:lifecycle-events.entities.lifecycle-event.title',\n titlePlural: '@human-capital-management:lifecycle-events.entities.lifecycle-event.plural',\n icon: 'fa-light fa-clipboard-list-check',\n },\n },\n pages: {\n appointmentBoard: {\n path: 'Boards/ResourceAppointment',\n title: '@human-capital-management:leave-requests.menus.appointment-board.title',\n icon: 'fa-light fa-calendar-lines',\n },\n },\n queries: {\n dashboard: {\n employeesKpi: `${config.module}:Dashboard:EmployeesKpi`,\n },\n reports: {\n getHeadcountByDepartment: `${config.module}:Reports:GetHeadcountByDepartment`,\n getLeaveUsageByType: `${config.module}:Reports:GetLeaveUsageByType`,\n },\n },\n} as const;\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 * Human Capital Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const HumanCapitalManagementManifest: 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\n type: 'domain',\n domain: 'human-capital',\n // Module dependencies\n dependencies: [\n 'OrganizationManagement',\n 'PersonCore',\n 'LocationManagement',\n 'DocumentManagement',\n 'AssessmentManagement',\n 'WorkflowManagement',\n 'DataManagement',\n ],\n};\n\n//#endregion\n\n","import { AXPMultiLanguageString, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { AXMHumanCapitalManagementEmployeeEntityModel } from '../employee/employee.types';\n\n//#endregion\n\n//#region ---- Lifecycle event ----\n\nexport type AXMHumanCapitalManagementLifecycleEventStatus =\n | AXPSystemStatusType.InProgress\n | AXPSystemStatusType.WaitingSignOff\n | AXPSystemStatusType.Completed\n | AXPSystemStatusType.Cancelled;\n\n/**\n * One employee lifecycle event (onboarding, separation, …), driven by {@link AXMHumanCapitalManagementLifecycleEventTypeEntityModel}.\n */\nexport interface AXMHumanCapitalManagementLifecycleEventEntityModel extends AXPEntityModel<string> {\n employeeId: string;\n employee?: AXMHumanCapitalManagementEmployeeEntityModel;\n eventTypeId: string;\n eventType?: { id: string; title: AXPMultiLanguageString };\n /**\n * Platform user currently assigned the active workflow step (human task / cartable assignee).\n * Populate from workflow engine or middleware when tasks are created or claimed.\n */\n assignedToUserId?: string | null;\n assignedToUser?: { id: string; displayName?: string };\n effectiveDate?: Date;\n notes?: string;\n statusId?: AXMHumanCapitalManagementLifecycleEventStatus;\n status?: { id: AXMHumanCapitalManagementLifecycleEventStatus; title?: string };\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\n//#endregion\n\n//#region ---- Lifecycle event type (reference) ----\n\n/** Workflow template binding and admin-configured default inputs for lifecycle event types. */\nexport interface AXMHumanCapitalManagementLifecycleEventTypeWorkflowConfig {\n workflowDefinitionId: string;\n workflowName: string;\n defaultInput?: Record<string, unknown>;\n}\n\n/**\n * Defines workflow defaults, questionnaire, and metadata schema for employee lifecycle events (onboarding, separation, etc.).\n */\nexport interface AXMHumanCapitalManagementLifecycleEventTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n /** Selected workflow and template-time input defaults (e.g. questionnaireId). */\n workflowConfig?: AXMHumanCapitalManagementLifecycleEventTypeWorkflowConfig | null;\n /** Font Awesome icon classes (e.g. `fa-light fa-user-plus`). */\n icon?: string;\n /** Meta-data-builder schema (`metaDataList`); drives dynamic fields on lifecycle events for this template. */\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;AAGG;AACI,MAAM,mCAAmC,GAAG;AACjD,IAAA,MAAM,EAAE,sCAAsC;AAC9C,IAAA,gBAAgB,EAAE,gDAAgD;AAClE,IAAA,oBAAoB,EAAE,oDAAoD;AAC1E,IAAA,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AC/EH;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,8BAA8B,GAAsB;AAC/D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAE5B,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,eAAe;;AAEvB,IAAA,YAAY,EAAE;QACZ,wBAAwB;QACxB,YAAY;QACZ,oBAAoB;QACpB,oBAAoB;QACpB,sBAAsB;QACtB,oBAAoB;QACpB,gBAAgB;AACjB,KAAA;;AAGH;;ACCA;;ACLA;;AC9BA;;AAEG;;"}
@@ -1,5 +1,6 @@
1
1
  import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
2
  import { AXToastService } from '@acorex/components/toast';
3
+ import { showRecordSavedToast } from '@acorex-platform/framework-client/common';
3
4
  import { AXTranslationService } from '@acorex/core/translation';
4
5
  import { RootConfig as RootConfig$1 } from '@acorex-platform/module-person-core-client/contracts';
5
6
  import { AXPLayoutBuilderService, resolveLayoutBuilderDialogResult } from '@acorex-platform/framework-client/layout/builder';
@@ -7,7 +8,7 @@ import { AXPEntityService } from '@acorex-platform/framework-client/layout/entit
7
8
  import * as i0 from '@angular/core';
8
9
  import { inject, Injectable } from '@angular/core';
9
10
  import { trim, isNil, isEmpty, defaultTo, cloneDeep, isArray, isString, isObject } from 'lodash';
10
- import { A as AXMHcmProfileContextService } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs';
11
+ import { A as AXMHcmProfileContextService } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs';
11
12
  import { AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';
12
13
  import { RootConfig } from '@acorex-platform/module-security-management-client/contracts';
13
14
 
@@ -98,7 +99,10 @@ class AXMHcmEditPersonalInfoCommand {
98
99
  const personData = this.entityService
99
100
  .withEntity(RootConfig$1.module.name, RootConfig$1.entities.person.name)
100
101
  .data();
101
- const person = await personData.byKey(profileContext.personId);
102
+ const person = await personData.byKey(profileContext.personId, {
103
+ fields: ['id', 'personTitleId', 'personTitle', 'firstName', 'lastName', 'birthDate', 'genderId', 'gender', 'identityNumber', 'maritalStatusId', 'maritalStatus', 'educationLevelId', 'educationLevel', 'phones', 'emails'],
104
+ forUpdate: true,
105
+ });
102
106
  if (isNil(person)) {
103
107
  return {
104
108
  success: false,
@@ -239,8 +243,7 @@ class AXMHcmEditPersonalInfoCommand {
239
243
  firstName,
240
244
  lastName,
241
245
  });
242
- const successTitle = await this.translateService.translateAsync('@human-capital-management:profile-page.commands.edit-personal-info.messages.success');
243
- this.toastService.show({ color: 'success', title: successTitle });
246
+ await showRecordSavedToast(this.toastService, this.translateService);
244
247
  return { success: true, kind: 'object', data: undefined };
245
248
  }
246
249
  finally {
@@ -330,4 +333,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
330
333
  }] });
331
334
 
332
335
  export { AXMHcmEditPersonalInfoCommand };
333
- //# sourceMappingURL=acorex-platform-module-human-capital-management-client-edit-personal-info.command-Ddf1quqk.mjs.map
336
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-edit-personal-info.command-Vm1SQZiQ.mjs","sources":["../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/sync-user-from-person.service.ts","../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/commands/edit-personal-info.command.ts"],"sourcesContent":["import { AXPUserProfileIdentityService } from '@acorex-platform/framework-client/auth';\nimport {RootConfig as SecurityManagementRootConfig} from '@acorex-platform/module-security-management-client/contracts';\nimport {AXMSecurityManagementUsersEntityModel} from '@acorex-platform/module-security-management-client/contracts';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { trim } from 'lodash';\n\n//#region ---- Sync payload ----\n\nexport interface AXMHcmSyncUserFromPersonInput {\n firstName: string;\n lastName: string;\n}\n\n//#endregion\n\n//#region ---- Sync user from person service ----\n\n/**\n * Keeps the application user record and session display fields aligned with person identity updates.\n * Avatar sync is handled server-side by HCM avatar middleware when Person.image changes.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmSyncUserFromPersonService {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async sync(userId: string, person: AXMHcmSyncUserFromPersonInput): Promise<void> {\n const displayName = trim(`${person.firstName} ${person.lastName}`);\n if (!displayName) {\n return;\n }\n\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n await userData.update(userId, { displayName });\n\n await this.identityService.applySessionPatch({\n title: displayName,\n });\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRuntimeCommandResult, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXToastService } from '@acorex/components/toast';\nimport { showRecordSavedToast } from '@acorex-platform/framework-client/common';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXPopupSizeType } from '@acorex/components/popup';\n\nimport {RootConfig as PersonCoreRootConfig} from '@acorex-platform/module-person-core-client/contracts'\nimport {AXMPersonCorePersonEntityModel} from '@acorex-platform/module-person-core-client/contracts';\n\nimport {\n AXPLayoutBuilderService,\n resolveLayoutBuilderDialogResult,\n type LookupBoxOptions,\n} from '@acorex-platform/framework-client/layout/builder';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { cloneDeep, defaultTo, isArray, isEmpty, isNil, isObject, isString, trim } from 'lodash';\n\nimport { AXMHcmProfileContextService } from '../profile-context.service';\nimport { AXMHcmSyncUserFromPersonService } from '../sync-user-from-person.service';\n\n//#region ---- Repeater children (aligned with Person entity) ----\n\nconst PHONES_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n options: {\n type: 'phone',\n placeholder: '@person-core:persons.entities.person.fields.phone.placeholder',\n },\n },\n];\n\nconst EMAILS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n options: {\n type: 'email',\n placeholder: '@person-core:persons.entities.person.fields.email.placeholder',\n },\n },\n];\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst PERSON_CORE_MODULE = PersonCoreRootConfig.module.name;\n\n//#endregion\n\n//#region ---- Form context ----\n\ninterface AXMHcmEditPersonalInfoFormContext {\n personTitleId?: string;\n personTitle?: { id: string; title?: unknown };\n firstName: string;\n lastName: string;\n birthDate?: string;\n genderId?: string;\n gender?: { id: string; title?: unknown };\n identityNumber?: string;\n maritalStatusId?: string;\n maritalStatus?: { id: string; title?: unknown };\n educationLevelId?: string;\n educationLevel?: { id: string; title?: unknown };\n phones: Array<{ value: string; label?: string }>;\n emails: Array<{ value: string; label?: string }>;\n}\n\n//#endregion\n\n//#region ---- Edit personal info command ----\n\n/** Opens a self-service dialog to update the linked person record and sync user display fields. */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmEditPersonalInfoCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly profileContextService = inject(AXMHcmProfileContextService);\n private readonly syncUserService = inject(AXMHcmSyncUserFromPersonService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const profileContext = await this.profileContextService.resolve();\n if (isNil(profileContext)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.no-employee',\n ),\n },\n };\n }\n\n const personData = this.entityService\n .withEntity(PersonCoreRootConfig.module.name, PersonCoreRootConfig.entities.person.name)\n .data<string, AXMPersonCorePersonEntityModel>();\n\n const person = await personData.byKey(profileContext.personId, {\n fields: ['id', 'personTitleId', 'personTitle', 'firstName', 'lastName', 'birthDate', 'genderId', 'gender', 'identityNumber', 'maritalStatusId', 'maritalStatus', 'educationLevelId', 'educationLevel', 'phones', 'emails'],\n forUpdate: true,\n });\n if (isNil(person)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.person-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPRuntimeCommandResult<void> | null>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize(this.resolveDialogSize())\n .setCloseButton(true)\n .setContext(this.buildFormContext(person))\n .content((layout) => {\n layout.mode('edit');\n layout.flex((flex) => {\n flex.setDirection('column').setGap('1rem');\n\n flex.fieldset((profileSection) => {\n profileSection\n .setLook('fieldset')\n .setTitle('@person-core:persons.entities.person.groups.profile')\n .setCols(12)\n .formField('@person-core:persons.entities.person.fields.person-title.title', (field) => {\n field.path('personTitleId');\n field.layout({ positions: { lg: { colSpan: 4, order: 0 } } });\n field.lookupBox(this.buildPersonCatalogLookupOptions('personTitle', 'personTitle'));\n })\n .formField('@general:terms.contact.first-name', (field) => {\n field.path('firstName');\n field.layout({ positions: { lg: { colSpan: 4, order: 1 } } });\n field.textBox({\n placeholder: '@general:terms.contact.first-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@general:terms.contact.last-name', (field) => {\n field.path('lastName');\n field.layout({ positions: { lg: { colSpan: 4, order: 2 } } });\n field.textBox({\n placeholder: '@general:terms.contact.last-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@person-core:persons.entities.person.fields.birth-date.title', (field) => {\n field.path('birthDate');\n field.layout({ positions: { lg: { colSpan: 4, order: 3 } } });\n field.dateTimeBox({ format: 'date' });\n })\n .formField('@person-core:persons.entities.person.fields.gender.title', (field) => {\n field.path('genderId');\n field.layout({ positions: { lg: { colSpan: 4, order: 4 } } });\n field.lookupBox(this.buildPersonCatalogLookupOptions('gender', 'gender'));\n })\n .formField('@person-core:persons.entities.person.fields.identity-number.title', (field) => {\n field.path('identityNumber');\n field.layout({ positions: { lg: { colSpan: 4, order: 5 } } });\n field.textBox({\n placeholder: '@person-core:persons.entities.person.fields.identity-number.placeholder',\n });\n })\n .formField('@person-core:persons.entities.person.fields.marital-status.title', (field) => {\n field.path('maritalStatusId');\n field.layout({ positions: { lg: { colSpan: 6, order: 6 } } });\n field.lookupBox(this.buildPersonCatalogLookupOptions('maritalStatus', 'maritalStatus'));\n })\n .formField('@person-core:persons.entities.person.fields.education-level.title', (field) => {\n field.path('educationLevelId');\n field.layout({ positions: { lg: { colSpan: 6, order: 7 } } });\n field.lookupBox(this.buildPersonCatalogLookupOptions('educationLevel', 'educationLevel'));\n });\n });\n\n flex.fieldset((phonesSection) => {\n phonesSection\n .setLook('fieldset')\n .setTitle('@person-core:persons.entities.person.groups.phones')\n .setCols(1)\n .formField('@person-core:persons.entities.person.groups.phones', (field) => {\n field.path('phones');\n field.setShowLabel(false);\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: PHONES_REPEATER_CHILDREN,\n });\n });\n });\n\n flex.fieldset((emailsSection) => {\n emailsSection\n .setLook('fieldset')\n .setTitle('@person-core:persons.entities.person.groups.emails')\n .setCols(1)\n .formField('@person-core:persons.entities.person.groups.emails', (field) => {\n field.path('emails');\n field.setShowLabel(false);\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: EMAILS_REPEATER_CHILDREN,\n });\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return null;\n }\n\n const form = dialogRef.context() as AXMHcmEditPersonalInfoFormContext;\n const firstName = trim(form.firstName);\n const lastName = trim(form.lastName);\n\n if (isEmpty(firstName) || isEmpty(lastName)) {\n throw new Error(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.required-name',\n );\n }\n\n dialogRef.setLoading(true);\n try {\n const phones = this.normalizeContactItems(form.phones);\n const emails = this.normalizeContactItems(form.emails);\n const identityNumber = trim(defaultTo(form.identityNumber, ''));\n\n await personData.update(profileContext.personId, {\n personTitleId: form.personTitleId,\n firstName,\n lastName,\n birthDate: form.birthDate,\n genderId: form.genderId,\n identityNumber: isEmpty(identityNumber) ? undefined : identityNumber,\n maritalStatusId: form.maritalStatusId,\n educationLevelId: form.educationLevelId,\n phones,\n emails,\n });\n\n await this.syncUserService.sync(profileContext.userId, {\n firstName,\n lastName,\n });\n\n await showRecordSavedToast(this.toastService, this.translateService);\n return { success: true, kind: 'object', data: undefined };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n const commandResult = resolveLayoutBuilderDialogResult<AXPRuntimeCommandResult<void>>(result);\n if (!commandResult) {\n return { success: true, kind: 'object', data: undefined };\n }\n\n return commandResult;\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n /** Desktop widths (including 1440) need lg for the 3-column profile grid; smaller viewports use xl. */\n private resolveDialogSize(): AXPopupSizeType {\n const width = window.innerWidth;\n if (width <= 1024) {\n return 'xl';\n }\n\n return 'lg';\n }\n\n private buildFormContext(person: AXMPersonCorePersonEntityModel): AXMHcmEditPersonalInfoFormContext {\n return {\n personTitleId: person.personTitleId,\n personTitle: cloneDeep(person.personTitle),\n firstName: defaultTo(person.firstName, ''),\n lastName: defaultTo(person.lastName, ''),\n birthDate: person.birthDate,\n genderId: person.genderId,\n gender: cloneDeep(person.gender),\n identityNumber: defaultTo(person.identityNumber, ''),\n maritalStatusId: person.maritalStatusId,\n maritalStatus: cloneDeep(person.maritalStatus),\n educationLevelId: person.educationLevelId,\n educationLevel: cloneDeep(person.educationLevel),\n phones: cloneDeep(defaultTo(person.phones, [])),\n emails: cloneDeep(defaultTo(person.emails, [])),\n };\n }\n\n /** Lookup options aligned with Person entity profile catalogs (quick-create enabled). */\n private buildPersonCatalogLookupOptions(\n entityKey: 'personTitle' | 'gender' | 'maritalStatus' | 'educationLevel',\n exposeTarget: 'personTitle' | 'gender' | 'maritalStatus' | 'educationLevel',\n ): Omit<LookupBoxOptions, 'path'> {\n return {\n entity: `${PERSON_CORE_MODULE}.${PersonCoreRootConfig.entities[entityKey].name}`,\n valueField: 'id',\n textField: 'title',\n look: 'select',\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: `${exposeTarget}.id` },\n { source: 'title', target: `${exposeTarget}.title` },\n ],\n } as Omit<LookupBoxOptions, 'path'>;\n }\n\n /** Normalizes repeater contact rows to `{ value: string }[]`, matching Person entity storage. */\n private normalizeContactItems(items: unknown): Array<{ value: string }> {\n if (!isArray(items)) {\n return [];\n }\n\n return items\n .map((entry) => this.normalizeContactEntry(entry))\n .filter((entry) => !isEmpty(entry.value));\n }\n\n private normalizeContactEntry(entry: unknown): { value: string } {\n if (isString(entry)) {\n return { value: trim(entry) };\n }\n\n if (!isObject(entry) || isNil(entry)) {\n return { value: '' };\n }\n\n const record = entry as { value?: unknown; label?: string };\n const inner = record.value;\n\n if (isObject(inner) && !isNil(inner) && 'value' in inner) {\n const nested = inner as { value?: unknown };\n return { value: trim(String(nested.value ?? '')) };\n }\n\n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A,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB;QAEA,MAAM,MAAM,GAAG,KAA4C;AAC3D,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK;AAE1B,QAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,OAAO,IAAI,KAAK,EAAE;YACxD,MAAM,MAAM,GAAG,KAA4B;AAC3C,YAAA,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE;QACpD;AAEA,QAAA,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE;IACpD;8GAjSW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;2FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1,4 +1,5 @@
1
1
  import { AXToastService } from '@acorex/components/toast';
2
+ import { showRecordSavedToast } from '@acorex-platform/framework-client/common';
2
3
  import { AXTranslationService } from '@acorex/core/translation';
3
4
  import { AXPSignatureEditorService } from '@acorex-platform/framework-client/layout/components';
4
5
  import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
@@ -6,7 +7,7 @@ import * as i0 from '@angular/core';
6
7
  import { inject, Injectable } from '@angular/core';
7
8
  import { isNil, defaultTo, isEmpty, trim } from 'lodash';
8
9
  import { RootConfig } from '@acorex-platform/module-human-capital-management-client/contracts';
9
- import { A as AXMHcmProfileContextService } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs';
10
+ import { A as AXMHcmProfileContextService } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs';
10
11
 
11
12
  //#region ---- Edit signature command ----
12
13
  /** Opens the shared signature editor for the current employee record. */
@@ -34,7 +35,7 @@ class AXMHcmEditSignatureCommand {
34
35
  const employeeData = this.entityService
35
36
  .withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
36
37
  .data();
37
- const employee = await employeeData.byKey(profileContext.employeeId);
38
+ const employee = await employeeData.byKey(profileContext.employeeId, { fields: ['id', 'signature'], forUpdate: true });
38
39
  if (isNil(employee)) {
39
40
  return {
40
41
  success: false,
@@ -58,10 +59,7 @@ class AXMHcmEditSignatureCommand {
58
59
  }
59
60
  const signature = trim(defaultTo(result.value, ''));
60
61
  await employeeData.update(profileContext.employeeId, { signature });
61
- const successTitle = await this.translateService.translateAsync(isEmpty(signature)
62
- ? '@human-capital-management:profile-page.commands.edit-signature.messages.removed'
63
- : '@human-capital-management:profile-page.commands.edit-signature.messages.success');
64
- this.toastService.show({ color: 'success', title: successTitle });
62
+ await showRecordSavedToast(this.toastService, this.translateService);
65
63
  return { success: true, kind: 'object', data: undefined };
66
64
  }
67
65
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMHcmEditSignatureCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -73,4 +71,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
73
71
  }] });
74
72
 
75
73
  export { AXMHcmEditSignatureCommand };
76
- //# sourceMappingURL=acorex-platform-module-human-capital-management-client-edit-signature.command-CPHVtOwv.mjs.map
74
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-edit-signature.command-ENU68Czy.mjs","sources":["../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/commands/edit-signature.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXToastService } from '@acorex/components/toast';\nimport { showRecordSavedToast } from '@acorex-platform/framework-client/common';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPSignatureEditorService } from '@acorex-platform/framework-client/layout/components';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject, Injectable } from '@angular/core';\nimport { defaultTo, isEmpty, isNil, trim } from 'lodash';\n\nimport { RootConfig } from '@acorex-platform/module-human-capital-management-client/contracts';\nimport { AXMHumanCapitalManagementEmployeeEntityModel } from '@acorex-platform/module-human-capital-management-client/contracts';\nimport { AXMHcmProfileContextService } from '../profile-context.service';\n\n//#region ---- Edit signature command ----\n\n/** Opens the shared signature editor for the current employee record. */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmEditSignatureCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly signatureEditorService = inject(AXPSignatureEditorService);\n private readonly entityService = inject(AXPEntityService);\n private readonly profileContextService = inject(AXMHcmProfileContextService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): AXPCommandExecuteResultPromise<void> {\n const profileContext = await this.profileContextService.resolve();\n if (isNil(profileContext)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.messages.no-employee',\n ),\n },\n };\n }\n\n const employeeData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.employee.name)\n .data<string, AXMHumanCapitalManagementEmployeeEntityModel>();\n\n const employee = await employeeData.byKey(profileContext.employeeId, { fields: ['id', 'signature'], forUpdate: true });\n if (isNil(employee)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.messages.employee-not-found',\n ),\n },\n };\n }\n\n const existingSignature = defaultTo(employee.signature, '');\n const submitActionKey = isEmpty(existingSignature)\n ? '@general:actions.save.title'\n : '@general:actions.update.title';\n\n const dialogTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.dialog.title',\n );\n\n const result = await this.signatureEditorService.open({\n title: dialogTitle,\n value: existingSignature,\n submitActionKey,\n });\n\n if (result.action === 'cancel') {\n return { success: false };\n }\n\n const signature = trim(defaultTo(result.value, ''));\n await employeeData.update(profileContext.employeeId, { signature });\n\n await showRecordSavedToast(this.toastService, this.translateService);\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;AAeA;AAEA;MAEa,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,sBAAsB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC1D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,qBAAqB,GAAG,MAAM,CAAC,2BAA2B,CAAC;AAC3D,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AA8DjE,IAAA;;;AAxDC,IAAA,MAAM,OAAO,GAAA;QACX,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE;AACjE,QAAA,IAAI,KAAK,CAAC,cAAc,CAAC,EAAE;YACzB,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;oBACP,IAAI,EAA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E,CAAC,CAAC;AACnD,QAAA,MAAM,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,CAAC;QAEnE,MAAM,oBAAoB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC;AACpE,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;IAC3D;8GAlEW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -9,7 +9,7 @@ import { AsyncPipe } from '@angular/common';
9
9
  import * as i0 from '@angular/core';
10
10
  import { input, inject, signal, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
11
11
  import { AXPHumanCapitalManagementQueryKeys } from '@acorex-platform/module-human-capital-management-client/contracts';
12
- import { D as DOCUMENT_DRIVE_PAGE_COMPONENT_KEY } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-2NzXGCVk.mjs';
12
+ import { D as DOCUMENT_DRIVE_PAGE_COMPONENT_KEY } from './acorex-platform-module-human-capital-management-client-acorex-platform-module-human-capital-management-client-D2cJK2Ib.mjs';
13
13
 
14
14
  //#region ----- Imports -----
15
15
  //#endregion
@@ -71,7 +71,7 @@ class AXMHcmProfileDocumentsPanelComponent extends AXPPageLayoutBaseComponent {
71
71
  provide: AXPPageLayoutBase,
72
72
  useExisting: AXMHcmProfileDocumentsPanelComponent,
73
73
  },
74
- ], usesInheritance: true, ngImport: i0, template: "@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n", styles: ["@layer properties;.axm-hcm-profile-documents-panel{display:block;width:100%}.axm-hcm-profile-documents-panel .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-hcm-profile-documents-panel .__empty{margin:0;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: AXPPageComponentRendererDirective, selector: "[axp-page-component-renderer]", inputs: ["componentKey", "rootContext", "pageConfig", "options"], outputs: ["componentReady"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
74
+ ], usesInheritance: true, ngImport: i0, template: "@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n", styles: ["@layer properties;.axm-hcm-profile-documents-panel{display:block;width:100%}.axm-hcm-profile-documents-panel .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-hcm-profile-documents-panel .__empty{margin:0;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: AXPPageComponentRendererDirective, selector: "[axp-page-component-renderer]", inputs: ["componentKey", "rootContext", "pageConfig", "options"], outputs: ["componentReady"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
75
75
  }
76
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMHcmProfileDocumentsPanelComponent, decorators: [{
77
77
  type: Component,
@@ -80,8 +80,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
80
80
  provide: AXPPageLayoutBase,
81
81
  useExisting: AXMHcmProfileDocumentsPanelComponent,
82
82
  },
83
- ], template: "@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n", styles: ["@layer properties;.axm-hcm-profile-documents-panel{display:block;width:100%}.axm-hcm-profile-documents-panel .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-hcm-profile-documents-panel .__empty{margin:0;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
83
+ ], template: "@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n", styles: ["@layer properties;.axm-hcm-profile-documents-panel{display:block;width:100%}.axm-hcm-profile-documents-panel .__loading{display:flex;min-height:calc(var(--spacing, .25rem) * 64);align-items:center;justify-content:center}.axm-hcm-profile-documents-panel .__empty{margin:0;border-radius:var(--radius-2xl, 1rem);border-style:var(--tw-border-style);border-width:1px;--tw-border-style: dashed;border-style:dashed;padding-block:calc(var(--spacing, .25rem) * 12);text-align:center;--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);color:rgb(var(--ax-sys-color-on-lighter-surface));border-color:rgb(var(--ax-sys-color-border-lighter-surface))}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000}}}\n/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n"] }]
84
84
  }], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }] } });
85
85
 
86
86
  export { AXMHcmProfileDocumentsPanelComponent };
87
- //# sourceMappingURL=acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs.map
87
+ //# sourceMappingURL=acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-human-capital-management-client-profile-documents-panel.component-BeHIU0Em.mjs","sources":["../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/profile-documents-panel.component.ts","../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/profile-documents-panel.component.html"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXPPageComponentRendererDirective,\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport { AsyncPipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n AXPHumanCapitalManagementQueryKeys,\n type AXMHcmProfileDocumentDriveContext,\n} from '@acorex-platform/module-human-capital-management-client/contracts';\nimport { DOCUMENT_DRIVE_PAGE_COMPONENT_KEY } from './profile-documents-panel.constants';\n\n//#endregion\n\n//#region ----- Component -----\n\n/** Fetches the employee document-drive context, then mounts the EDMS page. */\n@Component({\n selector: 'axm-hcm-profile-documents-panel',\n imports: [AsyncPipe, AXLoadingModule, AXTranslationModule, AXPPageComponentRendererDirective],\n templateUrl: './profile-documents-panel.component.html',\n styleUrl: './profile-documents-panel.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'axm-hcm-profile-documents-panel' },\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMHcmProfileDocumentsPanelComponent,\n },\n ],\n})\nexport class AXMHcmProfileDocumentsPanelComponent extends AXPPageLayoutBaseComponent {\n //#region ----- Inputs -----\n\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n options = input<Record<string, unknown>>({});\n\n //#endregion\n\n //#region ----- Services & Dependencies -----\n\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly isLoading = signal(true);\n protected readonly drivePageConfig = signal<Record<string, unknown> | null>(null);\n protected readonly driveComponentKey = DOCUMENT_DRIVE_PAGE_COMPONENT_KEY;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override async ngOnInit(): Promise<void> {\n await this.loadDriveContext();\n }\n\n protected override getPageTitle(): string {\n return '';\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async loadDriveContext(): Promise<void> {\n this.isLoading.set(true);\n try {\n const result = await this.queryService.fetch<void, AXMHcmProfileDocumentDriveContext | null>(\n AXPHumanCapitalManagementQueryKeys.Profile.GetMyDocumentDriveContext,\n undefined as void,\n );\n const context = runtimeQueryPayloadData(result);\n if (!context?.refType || !context?.refId) {\n this.drivePageConfig.set(null);\n return;\n }\n\n this.drivePageConfig.set({\n refType: context.refType,\n refId: context.refId,\n allowedDocumentTypeNames: context.documentTypeNames,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;AAAA;AA0BA;AAEA;AAEA;AAgBM,MAAO,oCAAqC,SAAQ,0BAA0B,CAAA;AAfpF,IAAA,WAAA,GAAA;;;QAkBE,IAAA,CAAA,WAAW,GAAG,KAAK,CAA0B,EAAE;wFAAC;AAChD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAA2B;QAC7C,IAAA,CAAA,OAAO,GAAG,KAAK,CAA0B,EAAE;oFAAC;;;AAM3B,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC;;;QAMpC,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,IAAI;sFAAC;QACxB,IAAA,CAAA,eAAe,GAAG,MAAM,CAAiC,IAAI;4FAAC;QAC9D,IAAA,CAAA,iBAAiB,GAAG,iCAAiC;AA0CzE,IAAA;;;AApCU,IAAA,MAAM,QAAQ,GAAA;AACrB,QAAA,MAAM,IAAI,CAAC,gBAAgB,EAAE;IAC/B;IAEmB,YAAY,GAAA;AAC7B,QAAA,OAAO,EAAE;IACX;;;AAMQ,IAAA,MAAM,gBAAgB,GAAA;AAC5B,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC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AAE,KAAK,EAAE,iCAAiC,EAAE,EAAA,SAAA,EACvC;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,oCAAsC;AAClD,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,2cAAA,EAAA,MAAA,EAAA,CAAA,gwFAAA,CAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-human-capital-management-client-profile-documents-panel.component-SwjPfBbl.mjs","sources":["../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/profile-documents-panel.component.ts","../../../../libs/modules/human-capital-management/client/src/lib/features/profile-page/profile-documents-panel.component.html"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport {\n AXPPageComponentRendererDirective,\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport { AsyncPipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n AXPHumanCapitalManagementQueryKeys,\n type AXMHcmProfileDocumentDriveContext,\n} from '@acorex-platform/module-human-capital-management-client/contracts';\nimport { DOCUMENT_DRIVE_PAGE_COMPONENT_KEY } from './profile-documents-panel.constants';\n\n//#endregion\n\n//#region ----- Component -----\n\n/** Fetches the employee document-drive context, then mounts the EDMS page. */\n@Component({\n selector: 'axm-hcm-profile-documents-panel',\n imports: [AsyncPipe, AXLoadingModule, AXTranslationModule, AXPPageComponentRendererDirective],\n templateUrl: './profile-documents-panel.component.html',\n styleUrl: './profile-documents-panel.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'axm-hcm-profile-documents-panel' },\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMHcmProfileDocumentsPanelComponent,\n },\n ],\n})\nexport class AXMHcmProfileDocumentsPanelComponent extends AXPPageLayoutBaseComponent {\n //#region ----- Inputs -----\n\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n options = input<Record<string, unknown>>({});\n\n //#endregion\n\n //#region ----- Services & Dependencies -----\n\n private readonly queryService = inject(AXPQueryService);\n\n //#endregion\n\n //#region ----- State Signals -----\n\n protected readonly isLoading = signal(true);\n protected readonly drivePageConfig = signal<Record<string, unknown> | null>(null);\n protected readonly driveComponentKey = DOCUMENT_DRIVE_PAGE_COMPONENT_KEY;\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override async ngOnInit(): Promise<void> {\n await this.loadDriveContext();\n }\n\n protected override getPageTitle(): string {\n return '';\n }\n\n //#endregion\n\n //#region ----- Data Loading -----\n\n private async loadDriveContext(): Promise<void> {\n this.isLoading.set(true);\n try {\n const result = await this.queryService.fetch<void, AXMHcmProfileDocumentDriveContext | null>(\n AXPHumanCapitalManagementQueryKeys.Profile.GetMyDocumentDriveContext,\n undefined as void,\n );\n const context = runtimeQueryPayloadData(result);\n if (!context?.refType || !context?.refId) {\n this.drivePageConfig.set(null);\n return;\n }\n\n this.drivePageConfig.set({\n refType: context.refType,\n refId: context.refId,\n allowedDocumentTypeNames: context.documentTypeNames,\n });\n } finally {\n this.isLoading.set(false);\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","@if (isLoading()) {\n <div class=\"__loading\">\n <ax-loading></ax-loading>\n </div>\n} @else if (drivePageConfig(); as config) {\n <div\n axp-page-component-renderer\n [componentKey]=\"driveComponentKey\"\n [pageConfig]=\"config\"\n [rootContext]=\"rootContext()\"\n [options]=\"options()\"\n ></div>\n} @else {\n <p class=\"__empty\">{{ '@human-capital-management:profile-page.groups.documents.empty' | translate | async }}</p>\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;AAAA;AA0BA;AAEA;AA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