@acorex/modules 21.0.0-next.37 → 21.0.0-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-modules-ai-management-acorex-modules-ai-management-WuqoH4OL.mjs → acorex-modules-ai-management-acorex-modules-ai-management-CU2FvMTx.mjs} +260 -80
- package/fesm2022/acorex-modules-ai-management-acorex-modules-ai-management-CU2FvMTx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-agent.entity-DK9GNMdR.mjs → acorex-modules-ai-management-agent.entity-CUO9Jczk.mjs} +14 -19
- package/fesm2022/acorex-modules-ai-management-agent.entity-CUO9Jczk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CWXEW9yL.mjs → acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-daTGJ1Rd.mjs} +52 -8
- package/fesm2022/acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-daTGJ1Rd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-CNKwIqUE.mjs → acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-Cmprtps-.mjs} +49 -7
- package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-Cmprtps-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-assist.entity-DX2U9sd5.mjs → acorex-modules-ai-management-assist.entity-C1nM_x4Z.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-assist.entity-DX2U9sd5.mjs.map → acorex-modules-ai-management-assist.entity-C1nM_x4Z.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-index-KX3TVRXr.mjs → acorex-modules-ai-management-index-CjTjfydP.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-index-KX3TVRXr.mjs.map → acorex-modules-ai-management-index-CjTjfydP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-model.entity-BeuDUahR.mjs → acorex-modules-ai-management-model.entity-CPHxj8h7.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-model.entity-BeuDUahR.mjs.map → acorex-modules-ai-management-model.entity-CPHxj8h7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-open-ai-endpoint.entity-D-9unl6i.mjs → acorex-modules-ai-management-open-ai-endpoint.entity-a6MjMiXF.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-open-ai-endpoint.entity-D-9unl6i.mjs.map → acorex-modules-ai-management-open-ai-endpoint.entity-a6MjMiXF.mjs.map} +1 -1
- package/fesm2022/acorex-modules-ai-management.mjs +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-BNK6C-Ng.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-DniyhnPK.mjs} +509 -436
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DniyhnPK.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-Ds8pRzvE.mjs → acorex-modules-assessment-management-assessment-case.entity-BggEmLhz.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-Ds8pRzvE.mjs.map → acorex-modules-assessment-management-assessment-case.entity-BggEmLhz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-tq1Q4wkS.mjs → acorex-modules-assessment-management-assessment-session.entity-CWR1QZv1.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-tq1Q4wkS.mjs.map → acorex-modules-assessment-management-assessment-session.entity-CWR1QZv1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-yf0PnWC0.mjs → acorex-modules-assessment-management-fill-assessment-session.command-qajn_XDh.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-yf0PnWC0.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-qajn_XDh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-index-B2SncZAW.mjs → acorex-modules-assessment-management-index-B2l5Se1l.mjs} +25 -26
- package/fesm2022/acorex-modules-assessment-management-index-B2l5Se1l.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-DPzL8C44.mjs → acorex-modules-assessment-management-preview-question.command-BCS477_k.mjs} +10 -11
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-BCS477_k.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BrI5gFtx.mjs → acorex-modules-assessment-management-preview-questionnaire.command-C8lyuqE-.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BrI5gFtx.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-C8lyuqE-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-XD5IJpvW.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DtowOBLy.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-XD5IJpvW.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DtowOBLy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CZ32sQ9M.mjs → acorex-modules-assessment-management-question-bank-item.entity-Br7XcU_u.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CZ32sQ9M.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-Br7XcU_u.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-C7gf4s1y.mjs → acorex-modules-assessment-management-questionnaire-calculation.entity-DNUf5RD3.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-C7gf4s1y.mjs.map → acorex-modules-assessment-management-questionnaire-calculation.entity-DNUf5RD3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BZyIlYWg.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-BdBKHvHP.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BZyIlYWg.mjs.map → acorex-modules-assessment-management-questionnaire-viewer-popup.component-BdBKHvHP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-CmmThk2f.mjs → acorex-modules-assessment-management-questionnaire.entity-B5aP_P4z.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-CmmThk2f.mjs.map → acorex-modules-assessment-management-questionnaire.entity-B5aP_P4z.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-GLqvK8wB.mjs → acorex-modules-assessment-management-save-questionnaire-questions.command-C3Qt5fmY.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-GLqvK8wB.mjs.map → acorex-modules-assessment-management-save-questionnaire-questions.command-C3Qt5fmY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-CU1TVonZ.mjs → acorex-modules-assessment-management-view-session-answers.command-C9VS-Tp3.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-CU1TVonZ.mjs.map → acorex-modules-assessment-management-view-session-answers.command-C9VS-Tp3.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-BDs0ZgD5.mjs → acorex-modules-asset-management-acorex-modules-asset-management-F7Ok5dhs.mjs} +519 -81
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-F7Ok5dhs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system-history.entity-CSCwWY_F.mjs → acorex-modules-asset-management-asset-system-history.entity-D1HZG9wO.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-system-history.entity-CSCwWY_F.mjs.map → acorex-modules-asset-management-asset-system-history.entity-D1HZG9wO.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-CcefMT8J.mjs → acorex-modules-asset-management-asset-system-type.entity-DDh5RK5M.mjs} +60 -38
- package/fesm2022/acorex-modules-asset-management-asset-system-type.entity-DDh5RK5M.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-6Rauu2Z1.mjs → acorex-modules-asset-management-asset-type-section-component.entity-em7lQ1eu.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-6Rauu2Z1.mjs.map → acorex-modules-asset-management-asset-type-section-component.entity-em7lQ1eu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-r_H1QGwp.mjs → acorex-modules-asset-management-asset-type-section.entity-BtcNy6Ra.mjs} +6 -48
- package/fesm2022/acorex-modules-asset-management-asset-type-section.entity-BtcNy6Ra.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type.entity-cWVqpbHH.mjs → acorex-modules-asset-management-asset-type.entity-DWhrFVFI.mjs} +53 -100
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-DWhrFVFI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset.entity-CamZGWTM.mjs → acorex-modules-asset-management-asset.entity-BEjXfkPD.mjs} +66 -56
- package/fesm2022/acorex-modules-asset-management-asset.entity-BEjXfkPD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-assetSystem.entity-Dq2ASslk.mjs → acorex-modules-asset-management-assetSystem.entity-CJCVALaz.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-assetSystem.entity-Dq2ASslk.mjs.map → acorex-modules-asset-management-assetSystem.entity-CJCVALaz.mjs.map} +1 -1
- package/fesm2022/acorex-modules-asset-management.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +38 -41
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1046 -249
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1098 -706
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +63 -35
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +101 -57
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-BRpqFRuI.mjs → acorex-modules-human-capital-management-employee.entity-BmF6_P6d.mjs} +48 -21
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-BmF6_P6d.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-location-management.mjs +18 -99
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-DtODwbIN.mjs +7137 -0
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-DtODwbIN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-DQJJtCqU.mjs → acorex-modules-maintenance-management-failure-effect.entity-BtczD4wu.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-DQJJtCqU.mjs.map → acorex-modules-maintenance-management-failure-effect.entity-BtczD4wu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-gg2fpT2N.mjs → acorex-modules-maintenance-management-failure-mode-asset-type.entity-CDUdEH-e.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-gg2fpT2N.mjs.map → acorex-modules-maintenance-management-failure-mode-asset-type.entity-CDUdEH-e.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-CHUaAnID.mjs → acorex-modules-maintenance-management-failure-mode-mechanism.entity-re5UvGp7.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-CHUaAnID.mjs.map → acorex-modules-maintenance-management-failure-mode-mechanism.entity-re5UvGp7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-B93x1uP_.mjs → acorex-modules-maintenance-management-failure-mode-solution.entity-nbFz4LAe.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-B93x1uP_.mjs.map → acorex-modules-maintenance-management-failure-mode-solution.entity-nbFz4LAe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-McM3l12Q.mjs → acorex-modules-maintenance-management-failure-register-cause.entity-CW2NlX59.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-McM3l12Q.mjs.map → acorex-modules-maintenance-management-failure-register-cause.entity-CW2NlX59.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-_jjy1oeg.mjs → acorex-modules-maintenance-management-failure-register-effect.entity-Bi5XgfoL.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-_jjy1oeg.mjs.map → acorex-modules-maintenance-management-failure-register-effect.entity-Bi5XgfoL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-5CmdhowW.mjs → acorex-modules-maintenance-management-failure-register-mechanism.entity-DcW6sK01.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-5CmdhowW.mjs.map → acorex-modules-maintenance-management-failure-register-mechanism.entity-DcW6sK01.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-D_lQrda5.mjs → acorex-modules-maintenance-management-failure-register.entity-CUxVZo0w.mjs} +3 -3
- package/fesm2022/acorex-modules-maintenance-management-failure-register.entity-CUxVZo0w.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BIZxoVIS.mjs → acorex-modules-maintenance-management-failure-severity.entity-B7LBO-UA.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BIZxoVIS.mjs.map → acorex-modules-maintenance-management-failure-severity.entity-B7LBO-UA.mjs.map} +1 -1
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-D6ATa-HR.mjs +443 -0
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-D6ATa-HR.mjs.map +1 -0
- package/fesm2022/acorex-modules-maintenance-management.mjs +1 -3579
- package/fesm2022/acorex-modules-maintenance-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +11 -5
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-BrVNMCi_.mjs +356 -0
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-BrVNMCi_.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-CO8jMwVJ.mjs +181 -0
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-CO8jMwVJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-WiTemBLu.mjs +359 -0
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-WiTemBLu.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-chart.entity-bRxA8XHZ.mjs → acorex-modules-organization-management-chart.entity-D6Y7kZfM.mjs} +33 -29
- package/fesm2022/acorex-modules-organization-management-chart.entity-D6Y7kZfM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-company.entity-BohMJQNi.mjs → acorex-modules-organization-management-company.entity-wpNiu8g3.mjs} +6 -8
- package/fesm2022/acorex-modules-organization-management-company.entity-wpNiu8g3.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs +48 -0
- package/fesm2022/acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-entity.provider-B0XbUW1I.mjs +59 -0
- package/fesm2022/acorex-modules-organization-management-entity.provider-B0XbUW1I.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-D7t_nNNk.mjs +19 -0
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-D7t_nNNk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-S9Jlmr-o.mjs → acorex-modules-organization-management-job-definition.entity-Cb6zEf65.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-S9Jlmr-o.mjs.map → acorex-modules-organization-management-job-definition.entity-Cb6zEf65.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-RDGmLrqD.mjs +95 -0
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-RDGmLrqD.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-level.entity-oedF18Xm.mjs +274 -0
- package/fesm2022/acorex-modules-organization-management-job-level.entity-oedF18Xm.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-menu.provider-DAKmAxld.mjs +193 -0
- package/fesm2022/acorex-modules-organization-management-menu.provider-DAKmAxld.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-org-chart.page-mHV0AWGZ.mjs +1081 -0
- package/fesm2022/acorex-modules-organization-management-org-chart.page-mHV0AWGZ.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-Be8mvS_Z.mjs +77 -0
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-Be8mvS_Z.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-permission.keys-DwZNBc12.mjs +56 -0
- package/fesm2022/acorex-modules-organization-management-permission.keys-DwZNBc12.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-DLPufeWz.mjs → acorex-modules-organization-management-position.entity-BveMCKMd.mjs} +108 -106
- package/fesm2022/acorex-modules-organization-management-position.entity-BveMCKMd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-mMZywr0X.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-ivufxxLL.mjs} +25 -29
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-ivufxxLL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CfRBMxLk.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-DptdG1Nt.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CfRBMxLk.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-DptdG1Nt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-B06t1G1E.mjs → acorex-modules-organization-management-responsibilities-matrix.component-qO33kvo_.mjs} +14 -21
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-qO33kvo_.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-zOjyjm5H.mjs +137 -0
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-zOjyjm5H.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-CMmr3wJa.mjs → acorex-modules-organization-management-responsibility.entity-jWEiPi5-.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-CMmr3wJa.mjs.map → acorex-modules-organization-management-responsibility.entity-jWEiPi5-.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management-settings.provider-D3ged-4h.mjs +228 -0
- package/fesm2022/acorex-modules-organization-management-settings.provider-D3ged-4h.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-CZ4MibH4.mjs → acorex-modules-organization-management-team-member-role.entity-D9TZoACE.mjs} +68 -8
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-D9TZoACE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-8sTjn5Jn.mjs → acorex-modules-organization-management-team-member.entity-Bz4o7c3d.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-8sTjn5Jn.mjs.map → acorex-modules-organization-management-team-member.entity-Bz4o7c3d.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team.entity-CGR0UlYl.mjs → acorex-modules-organization-management-team.entity-uVffZPeg.mjs} +100 -37
- package/fesm2022/acorex-modules-organization-management-team.entity-uVffZPeg.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-widget-definition.provider-D4yjuqwx.mjs +48 -0
- package/fesm2022/acorex-modules-organization-management-widget-definition.provider-D4yjuqwx.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +1 -2216
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs +40 -0
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-CGyf-4eq.mjs +33 -0
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-CGyf-4eq.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools.mjs +14 -94
- package/fesm2022/acorex-modules-platform-dev-tools.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DPSNAAct.mjs → acorex-modules-report-management-report-runner-root-page.component-BjKrHoBg.mjs} +107 -107
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-BjKrHoBg.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management.mjs +1 -1
- package/fesm2022/{acorex-modules-reservation-management-acorex-modules-reservation-management-BMemqW2V.mjs → acorex-modules-reservation-management-acorex-modules-reservation-management-BoUiTlmu.mjs} +65 -76
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-BoUiTlmu.mjs.map +1 -0
- package/fesm2022/{acorex-modules-reservation-management-reservation-class-status.entity-Bg7d38wV.mjs → acorex-modules-reservation-management-reservation-class-status.entity-D-ZdqKa8.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-class-status.entity-Bg7d38wV.mjs.map → acorex-modules-reservation-management-reservation-class-status.entity-D-ZdqKa8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-reservation-management-reservation-resource-type.entity-BK-rLEXi.mjs → acorex-modules-reservation-management-reservation-resource-type.entity-zPD-Psml.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-resource-type.entity-BK-rLEXi.mjs.map → acorex-modules-reservation-management-reservation-resource-type.entity-zPD-Psml.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-reservation-management-reservation-status-transition.entity-2ngXhKAV.mjs → acorex-modules-reservation-management-reservation-status-transition.entity-CQ85ZAGF.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-status-transition.entity-2ngXhKAV.mjs.map → acorex-modules-reservation-management-reservation-status-transition.entity-CQ85ZAGF.mjs.map} +1 -1
- package/fesm2022/acorex-modules-reservation-management.mjs +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +269 -190
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-C1H_GTqy.mjs → acorex-modules-task-management-task-board.page-DA2563QE.mjs} +15 -10
- package/fesm2022/acorex-modules-task-management-task-board.page-DA2563QE.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +27 -13
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs +5 -0
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-column.component-C8lgSjfc.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-column.component-CDo0QVFy.mjs} +14 -6
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-column.component-CDo0QVFy.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BGUPxGXP.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYJpDQRs.mjs} +31 -16
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYJpDQRs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-definition.entity-Bvs1OfE_.mjs → acorex-modules-workflow-management-activity-definition.entity-B3DkgDQb.mjs} +10 -12
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-B3DkgDQb.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-index-DWIDQsWq.mjs → acorex-modules-workflow-management-index-C9Qc07oK.mjs} +125 -3
- package/fesm2022/acorex-modules-workflow-management-index-C9Qc07oK.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-index-D8fjNgQJ.mjs +726 -0
- package/fesm2022/acorex-modules-workflow-management-index-D8fjNgQJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-index-DMnJRDbq.mjs +294 -0
- package/fesm2022/acorex-modules-workflow-management-index-DMnJRDbq.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs +56 -0
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-definition.entity-aJou58ED.mjs → acorex-modules-workflow-management-workflow-definition.entity-DqPVpcSv.mjs} +101 -140
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DqPVpcSv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-Cq7LE7u5.mjs → acorex-modules-workflow-management-workflow-instance.entity-sfsoT0is.mjs} +10 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-sfsoT0is.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-task-popover.component-CIakASVR.mjs → acorex-modules-workflow-management-workflow-task-popover.component-NpUx0sB5.mjs} +11 -7
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-NpUx0sB5.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +746 -402
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/organization-management/README.md +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +64 -16
- package/types/acorex-modules-asset-management.d.ts +115 -58
- package/types/acorex-modules-common.d.ts +2 -4
- package/types/acorex-modules-dashboard-management.d.ts +226 -109
- package/types/acorex-modules-data-management.d.ts +2 -2
- package/types/acorex-modules-document-management.d.ts +1 -2
- package/types/acorex-modules-human-capital-management.d.ts +6 -0
- package/types/acorex-modules-maintenance-management.d.ts +561 -41
- package/types/acorex-modules-notification-management.d.ts +7 -3
- package/types/acorex-modules-organization-management.d.ts +52 -107
- package/types/acorex-modules-security-management.d.ts +15 -1
- package/types/acorex-modules-task-management.d.ts +8 -13
- package/types/acorex-modules-workflow-management.d.ts +67 -13
- package/fesm2022/acorex-modules-ai-management-acorex-modules-ai-management-WuqoH4OL.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-agent.entity-DK9GNMdR.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CWXEW9yL.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-CNKwIqUE.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-BNK6C-Ng.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-index-B2SncZAW.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-DPzL8C44.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-BDs0ZgD5.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system-type.entity-CcefMT8J.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type-section.entity-r_H1QGwp.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-cWVqpbHH.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset.entity-CamZGWTM.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-BRpqFRuI.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-failure-register.entity-D_lQrda5.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-C-EKX6Oy.mjs +0 -91
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-C-EKX6Oy.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-chart.entity-bRxA8XHZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-BohMJQNi.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-eRTHzLDQ.mjs +0 -784
- package/fesm2022/acorex-modules-organization-management-org-chart.page-eRTHzLDQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-DLPufeWz.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-mMZywr0X.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-B06t1G1E.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-CZ4MibH4.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-CGR0UlYl.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-DPSNAAct.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-BMemqW2V.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-C1H_GTqy.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-column.component-C8lgSjfc.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BGUPxGXP.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-Bvs1OfE_.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-DWIDQsWq.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-aJou58ED.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Cq7LE7u5.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-CIakASVR.mjs.map +0 -1
|
@@ -0,0 +1,1081 @@
|
|
|
1
|
+
import { AXPanViewDirective } from '@acorex/cdk/pan-view';
|
|
2
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
3
|
+
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
4
|
+
import * as i1 from '@acorex/components/button';
|
|
5
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
6
|
+
import * as i2 from '@acorex/components/decorators';
|
|
7
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
8
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
9
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
|
10
|
+
import { AXContextMenuComponent, AXMenuModule } from '@acorex/components/menu';
|
|
11
|
+
import * as i5 from '@acorex/components/switch';
|
|
12
|
+
import { AXSwitchModule } from '@acorex/components/switch';
|
|
13
|
+
import * as i3 from '@acorex/core/translation';
|
|
14
|
+
import { AXTranslationModule, AXTranslationService, createMultiLanguageString, resolveMultiLanguageString } from '@acorex/core/translation';
|
|
15
|
+
import { AXPDataGenerator, AXPPlatformScope, getActionButton } from '@acorex/platform/core';
|
|
16
|
+
import { AXPAvatarComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/layout/components';
|
|
17
|
+
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
|
18
|
+
import * as i6 from '@angular/common';
|
|
19
|
+
import { AsyncPipe, CommonModule } from '@angular/common';
|
|
20
|
+
import * as i0 from '@angular/core';
|
|
21
|
+
import { input, computed, ChangeDetectionStrategy, Component, InjectionToken, inject, ViewEncapsulation, signal, Injectable, viewChild, NgZone, Injector, ViewContainerRef, LOCALE_ID, afterNextRender } from '@angular/core';
|
|
22
|
+
import * as i1$1 from '@angular/forms';
|
|
23
|
+
import { FormsModule } from '@angular/forms';
|
|
24
|
+
import { ActivatedRoute, RouterModule } from '@angular/router';
|
|
25
|
+
import set from 'lodash-es/set';
|
|
26
|
+
import { A as AXMOrgChartNodeType, R as RootConfig, n as normalizeVacantLeafSeatsSetting, a as AXPOrganizationManagementSettings, p as parseOrgChartMode, b as AXMOrgChartCategory } from './acorex-modules-organization-management-acorex-modules-organization-management-BrVNMCi_.mjs';
|
|
27
|
+
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
28
|
+
import { AXPExportService, AXPSettingsService } from '@acorex/platform/common';
|
|
29
|
+
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
30
|
+
import { AXPCommandService } from '@acorex/platform/runtime';
|
|
31
|
+
|
|
32
|
+
//#region ---- Imports ----
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ---- Employee card (org chart node) ----
|
|
35
|
+
/**
|
|
36
|
+
* Compact row for org-chart employee nodes: initials avatar, full name, and optional position line.
|
|
37
|
+
*/
|
|
38
|
+
class AXMOrgChartEmployeeCardComponent {
|
|
39
|
+
constructor() {
|
|
40
|
+
/** When true, shows {@link vacantLabel} and placeholder avatar instead of the name. */
|
|
41
|
+
this.isVacant = input(false, ...(ngDevMode ? [{ debugName: "isVacant" }] : /* istanbul ignore next */ []));
|
|
42
|
+
/** Resolved display name (e.g. employee full name); ignored when {@link isVacant} is true. */
|
|
43
|
+
this.fullName = input('', ...(ngDevMode ? [{ debugName: "fullName" }] : /* istanbul ignore next */ []));
|
|
44
|
+
/** Resolved “Vacant” (or equivalent) label when {@link isVacant} is true. */
|
|
45
|
+
this.vacantLabel = input(undefined, ...(ngDevMode ? [{ debugName: "vacantLabel" }] : /* istanbul ignore next */ []));
|
|
46
|
+
/** Resolved job title, description, or other secondary line; omit or empty to hide. */
|
|
47
|
+
this.position = input(undefined, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** Whether the avatar uses placeholder styling (vacant or missing name). */
|
|
49
|
+
this.avatarPlaceholder = computed(() => this.isVacant() || !this.fullName().trim(), ...(ngDevMode ? [{ debugName: "avatarPlaceholder" }] : /* istanbul ignore next */ []));
|
|
50
|
+
}
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartEmployeeCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartEmployeeCardComponent, isStandalone: true, selector: "axm-org-chart-employee-card", inputs: { isVacant: { classPropertyName: "isVacant", publicName: "isVacant", isSignal: true, isRequired: false, transformFunction: null }, fullName: { classPropertyName: "fullName", publicName: "fullName", isSignal: true, isRequired: false, transformFunction: null }, vacantLabel: { classPropertyName: "vacantLabel", publicName: "vacantLabel", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "--org-chart-person-row" }, ngImport: i0, template: "<axp-avatar [fullName]=\"fullName()\" [placeholder]=\"avatarPlaceholder()\" [size]=\"44\" />\n<div class=\"--merged-role-text\">\n @if (isVacant()) {\n @if (vacantLabel(); as vacant) {\n <span class=\"--merged-vacant\">{{ vacant }}</span>\n }\n @if (position()) {\n <span class=\"--merged-position\">{{ position() }}</span>\n }\n } @else {\n @if (fullName()) {\n <span class=\"--merged-name\">{{ fullName() }}</span>\n }\n @if (position()) {\n <span class=\"--merged-position\">{{ position() }}</span>\n }\n }\n</div>\n", dependencies: [{ kind: "component", type: AXPAvatarComponent, selector: "axp-avatar", inputs: ["size", "src", "fullName", "fallbackText", "placeholder"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartEmployeeCardComponent, decorators: [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{ selector: 'axm-org-chart-employee-card', imports: [AXPAvatarComponent], host: {
|
|
57
|
+
class: '--org-chart-person-row',
|
|
58
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<axp-avatar [fullName]=\"fullName()\" [placeholder]=\"avatarPlaceholder()\" [size]=\"44\" />\n<div class=\"--merged-role-text\">\n @if (isVacant()) {\n @if (vacantLabel(); as vacant) {\n <span class=\"--merged-vacant\">{{ vacant }}</span>\n }\n @if (position()) {\n <span class=\"--merged-position\">{{ position() }}</span>\n }\n } @else {\n @if (fullName()) {\n <span class=\"--merged-name\">{{ fullName() }}</span>\n }\n @if (position()) {\n <span class=\"--merged-position\">{{ position() }}</span>\n }\n }\n</div>\n" }]
|
|
59
|
+
}], propDecorators: { isVacant: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVacant", required: false }] }], fullName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullName", required: false }] }], vacantLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "vacantLabel", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
60
|
+
|
|
61
|
+
const AXM_ORG_CHART_HOST = new InjectionToken('AXM_ORG_CHART_HOST');
|
|
62
|
+
|
|
63
|
+
//#region ---- Imports ----
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ---- Component ----
|
|
66
|
+
/** Standard icon + title card used when a node is not using a merged template. */
|
|
67
|
+
class AXMOrgChartDefaultNodeCardComponent {
|
|
68
|
+
constructor() {
|
|
69
|
+
this.host = inject(AXM_ORG_CHART_HOST);
|
|
70
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
71
|
+
/** Semantic color token passed to {@link AXMOrgChartHostApi.getNodeColors}. */
|
|
72
|
+
this.colorKey = input.required(...(ngDevMode ? [{ debugName: "colorKey" }] : /* istanbul ignore next */ []));
|
|
73
|
+
}
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartDefaultNodeCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartDefaultNodeCardComponent, isStandalone: true, selector: "axm-org-chart-default-node-card", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, colorKey: { classPropertyName: "colorKey", publicName: "colorKey", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div #node class=\"--node-container\" [style]=\"host.getNodeColors(colorKey())\">\n <div class=\"--container\">\n <div class=\"--heading-container\">\n <div class=\"--content\">\n <div class=\"--icon\">\n <i class=\"fa-light fa-xl fa-fw\" [class]=\"data().icon\"></i>\n </div>\n <div class=\"--titles\">\n <span class=\"--title\" [title]=\"data().title | translate | async\">{{ data().title | translate | async }}</span>\n @if (data().subtitle) {\n <span class=\"--sub-title\" [title]=\"data().subtitle! | translate | async\">{{\n data().subtitle! | translate | async\n }}</span>\n }\n </div>\n @if (data().children?.length) {\n <div class=\"--badge\">\n <span>{{ data().children?.length ?? 0 }}</span>\n </div>\n }\n </div>\n </div>\n @if (data().description) {\n <div class=\"--body-container\">\n <div class=\"--description\" [class.ax-pb-3]=\"data().children && data().children!.length > 0\">\n <span>{{ data().description | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
76
|
+
}
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartDefaultNodeCardComponent, decorators: [{
|
|
78
|
+
type: Component,
|
|
79
|
+
args: [{ selector: 'axm-org-chart-default-node-card', imports: [AXButtonModule, AXDecoratorModule, AXTranslationModule, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div #node class=\"--node-container\" [style]=\"host.getNodeColors(colorKey())\">\n <div class=\"--container\">\n <div class=\"--heading-container\">\n <div class=\"--content\">\n <div class=\"--icon\">\n <i class=\"fa-light fa-xl fa-fw\" [class]=\"data().icon\"></i>\n </div>\n <div class=\"--titles\">\n <span class=\"--title\" [title]=\"data().title | translate | async\">{{ data().title | translate | async }}</span>\n @if (data().subtitle) {\n <span class=\"--sub-title\" [title]=\"data().subtitle! | translate | async\">{{\n data().subtitle! | translate | async\n }}</span>\n }\n </div>\n @if (data().children?.length) {\n <div class=\"--badge\">\n <span>{{ data().children?.length ?? 0 }}</span>\n </div>\n }\n </div>\n </div>\n @if (data().description) {\n <div class=\"--body-container\">\n <div class=\"--description\" [class.ax-pb-3]=\"data().children && data().children!.length > 0\">\n <span>{{ data().description | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n</div>\n" }]
|
|
80
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], colorKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorKey", required: true }] }] } });
|
|
81
|
+
|
|
82
|
+
//#region ---- Imports ----
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region ---- Component ----
|
|
85
|
+
/** Business unit node (division / department / branch): merged unit or default card. */
|
|
86
|
+
class AXMOrgChartBusinessUnitNodeComponent {
|
|
87
|
+
constructor() {
|
|
88
|
+
this.host = inject(AXM_ORG_CHART_HOST);
|
|
89
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
90
|
+
}
|
|
91
|
+
isRegional() {
|
|
92
|
+
return this.data().metadata?.['isRegional'] === true;
|
|
93
|
+
}
|
|
94
|
+
getColorKey() {
|
|
95
|
+
return this.isRegional() ? 'accent1' : 'accent2';
|
|
96
|
+
}
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartBusinessUnitNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartBusinessUnitNodeComponent, isStandalone: true, selector: "axm-org-chart-business-unit-node", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-unit') {\n <div\n #node\n class=\"--node-container --merged-card --merged-unit\"\n [class.--vacant]=\"data().metadata?.['unitHead']?.['vacant']\"\n [style]=\"host.getNodeColors(getColorKey())\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top\">\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n @if (data().description) {\n <span class=\"--merged-entity-desc\">{{ data().description | translate | async }}</span>\n }\n </div>\n @if (data().metadata?.['unitHead']; as unitHead) {\n <axm-org-chart-employee-card\n [isVacant]=\"unitHead['vacant'] || !unitHead['employeeName']\"\n [fullName]=\"unitHead['employeeName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"(unitHead['positionTitle'] | translate | async) || ''\"\n />\n }\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" [colorKey]=\"getColorKey()\" />\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: AXMOrgChartEmployeeCardComponent, selector: "axm-org-chart-employee-card", inputs: ["isVacant", "fullName", "vacantLabel", "position"] }, { kind: "component", type: AXMOrgChartDefaultNodeCardComponent, selector: "axm-org-chart-default-node-card", inputs: ["data", "colorKey"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartBusinessUnitNodeComponent, decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{ selector: 'axm-org-chart-business-unit-node', imports: [
|
|
103
|
+
AXButtonModule,
|
|
104
|
+
AXDecoratorModule,
|
|
105
|
+
AXMOrgChartEmployeeCardComponent,
|
|
106
|
+
AXMOrgChartDefaultNodeCardComponent,
|
|
107
|
+
AXTranslationModule,
|
|
108
|
+
AsyncPipe,
|
|
109
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-unit') {\n <div\n #node\n class=\"--node-container --merged-card --merged-unit\"\n [class.--vacant]=\"data().metadata?.['unitHead']?.['vacant']\"\n [style]=\"host.getNodeColors(getColorKey())\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top\">\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n @if (data().description) {\n <span class=\"--merged-entity-desc\">{{ data().description | translate | async }}</span>\n }\n </div>\n @if (data().metadata?.['unitHead']; as unitHead) {\n <axm-org-chart-employee-card\n [isVacant]=\"unitHead['vacant'] || !unitHead['employeeName']\"\n [fullName]=\"unitHead['employeeName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"(unitHead['positionTitle'] | translate | async) || ''\"\n />\n }\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" [colorKey]=\"getColorKey()\" />\n }\n</div>\n" }]
|
|
110
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
|
|
111
|
+
|
|
112
|
+
//#region ---- Imports ----
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region ---- Component ----
|
|
115
|
+
/** Company node: merged executive (CEO block) or default card. */
|
|
116
|
+
class AXMOrgChartCompanyNodeComponent {
|
|
117
|
+
constructor() {
|
|
118
|
+
this.host = inject(AXM_ORG_CHART_HOST);
|
|
119
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
120
|
+
}
|
|
121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartCompanyNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartCompanyNodeComponent, isStandalone: true, selector: "axm-org-chart-company-node", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-executive') {\n <div\n #node\n class=\"--node-container --merged-card\"\n [class.--vacant]=\"data().metadata?.['topRole']?.['vacant']\"\n [style]=\"host.getNodeColors('primary')\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top\">\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n </div>\n @if (data().metadata?.['topRole']; as topRole) {\n <axm-org-chart-employee-card\n [isVacant]=\"topRole['vacant'] || !topRole['employeeName']\"\n [fullName]=\"topRole['employeeName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"(topRole['positionTitle'] | translate | async) || ''\"\n />\n }\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"primary\" />\n }\n</div>\n", dependencies: [{ kind: "component", type: AXMOrgChartEmployeeCardComponent, selector: "axm-org-chart-employee-card", inputs: ["isVacant", "fullName", "vacantLabel", "position"] }, { kind: "component", type: AXMOrgChartDefaultNodeCardComponent, selector: "axm-org-chart-default-node-card", inputs: ["data", "colorKey"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
123
|
+
}
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartCompanyNodeComponent, decorators: [{
|
|
125
|
+
type: Component,
|
|
126
|
+
args: [{ selector: 'axm-org-chart-company-node', imports: [AXMOrgChartEmployeeCardComponent, AXMOrgChartDefaultNodeCardComponent, AXTranslationModule, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-executive') {\n <div\n #node\n class=\"--node-container --merged-card\"\n [class.--vacant]=\"data().metadata?.['topRole']?.['vacant']\"\n [style]=\"host.getNodeColors('primary')\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top\">\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n </div>\n @if (data().metadata?.['topRole']; as topRole) {\n <axm-org-chart-employee-card\n [isVacant]=\"topRole['vacant'] || !topRole['employeeName']\"\n [fullName]=\"topRole['employeeName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"(topRole['positionTitle'] | translate | async) || ''\"\n />\n }\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"primary\" />\n }\n</div>\n" }]
|
|
127
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
|
|
128
|
+
|
|
129
|
+
//#region ---- Imports ----
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ---- Component ----
|
|
132
|
+
/** Employee node: compact employee card or default card. */
|
|
133
|
+
class AXMOrgChartEmployeeNodeComponent {
|
|
134
|
+
constructor() {
|
|
135
|
+
this.host = inject(AXM_ORG_CHART_HOST);
|
|
136
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
137
|
+
}
|
|
138
|
+
/** Frame color for employee merged cards — distinct from business units (`accent2`). */
|
|
139
|
+
getColorKey() {
|
|
140
|
+
return 'accent3';
|
|
141
|
+
}
|
|
142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartEmployeeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartEmployeeNodeComponent, isStandalone: true, selector: "axm-org-chart-employee-node", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'employee-card') {\n <div\n #node\n class=\"--node-container --merged-card --merged-employee\"\n [style]=\"host.getNodeColors(getColorKey())\"\n >\n <div class=\"--container\">\n <axm-org-chart-employee-card\n [fullName]=\"(data().title | translate | async) || ''\"\n [position]=\"data().subtitle ? ((data().subtitle! | translate | async) || '') : undefined\"\n />\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"surface\" />\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: AXMOrgChartEmployeeCardComponent, selector: "axm-org-chart-employee-card", inputs: ["isVacant", "fullName", "vacantLabel", "position"] }, { kind: "component", type: AXMOrgChartDefaultNodeCardComponent, selector: "axm-org-chart-default-node-card", inputs: ["data", "colorKey"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
144
|
+
}
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartEmployeeNodeComponent, decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'axm-org-chart-employee-node', imports: [
|
|
148
|
+
AXButtonModule,
|
|
149
|
+
AXDecoratorModule,
|
|
150
|
+
AXMOrgChartEmployeeCardComponent,
|
|
151
|
+
AXMOrgChartDefaultNodeCardComponent,
|
|
152
|
+
AXTranslationModule,
|
|
153
|
+
AsyncPipe,
|
|
154
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'employee-card') {\n <div\n #node\n class=\"--node-container --merged-card --merged-employee\"\n [style]=\"host.getNodeColors(getColorKey())\"\n >\n <div class=\"--container\">\n <axm-org-chart-employee-card\n [fullName]=\"(data().title | translate | async) || ''\"\n [position]=\"data().subtitle ? ((data().subtitle! | translate | async) || '') : undefined\"\n />\n @if (host.getTeamsMembershipCount(data()); as teamsCount) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ teamsCount }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.teams | translate | async }}</span>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"surface\" />\n }\n</div>\n" }]
|
|
155
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
|
|
156
|
+
|
|
157
|
+
//#region ---- Imports ----
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region ---- Component ----
|
|
160
|
+
/** Position node: merged manager, IC seat, or default card. */
|
|
161
|
+
class AXMOrgChartPositionNodeComponent {
|
|
162
|
+
constructor() {
|
|
163
|
+
this.host = inject(AXM_ORG_CHART_HOST);
|
|
164
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
165
|
+
}
|
|
166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPositionNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
167
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartPositionNodeComponent, isStandalone: true, selector: "axm-org-chart-position-node", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-manager') {\n <div\n #node\n class=\"--node-container --merged-card --merged-manager\"\n [class.--vacant]=\"data().metadata?.['vacant']\"\n [style]=\"host.getNodeColors('accent3')\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top --merged-top-compact\">\n <i class=\"fa-light fa-user-tie fa-fw --merged-type-icon\"></i>\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n </div>\n <axm-org-chart-employee-card\n [isVacant]=\"!!data().metadata?.['vacant'] || !data().metadata?.['occupant']?.['displayName']\"\n [fullName]=\"data().metadata?.['occupant']?.['displayName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"\n data().description && !data().metadata?.['vacant'] && data().metadata?.['occupant']?.['displayName']\n ? (data().description! | translate | async) || ''\n : undefined\n \"\n />\n @if (data().metadata?.['stats']; as s) {\n @if (s['directReports'] != null && s['directReports'] > 0) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ s['directReports'] }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.directReports | translate | async }}</span>\n </div>\n }\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else if (data().metadata?.['chartTemplate'] === 'position-ic') {\n <div\n #node\n class=\"--node-container --merged-card --ic-position\"\n [class.--vacant]=\"data().metadata?.['vacant']\"\n [style]=\"host.getNodeColors('accent3')\"\n >\n <div class=\"--container\">\n <div class=\"--heading-container\">\n <div class=\"--content\">\n <div class=\"--icon\">\n <i class=\"fa-light fa-xl fa-fw\" [class]=\"data().icon\"></i>\n </div>\n <div class=\"--titles\">\n <span class=\"--title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n @if (data().metadata?.['vacant']) {\n <span class=\"--sub-title\">{{ host.chartML.vacant | translate | async }}</span>\n }\n </div>\n @if (data().children?.length) {\n <div class=\"--badge\">\n <span>{{ data().children?.length ?? 0 }}</span>\n </div>\n }\n </div>\n </div>\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"accent3\" />\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: AXMOrgChartEmployeeCardComponent, selector: "axm-org-chart-employee-card", inputs: ["isVacant", "fullName", "vacantLabel", "position"] }, { kind: "component", type: AXMOrgChartDefaultNodeCardComponent, selector: "axm-org-chart-default-node-card", inputs: ["data", "colorKey"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
168
|
+
}
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPositionNodeComponent, decorators: [{
|
|
170
|
+
type: Component,
|
|
171
|
+
args: [{ selector: 'axm-org-chart-position-node', imports: [
|
|
172
|
+
AXButtonModule,
|
|
173
|
+
AXDecoratorModule,
|
|
174
|
+
AXMOrgChartEmployeeCardComponent,
|
|
175
|
+
AXMOrgChartDefaultNodeCardComponent,
|
|
176
|
+
AXTranslationModule,
|
|
177
|
+
AsyncPipe,
|
|
178
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div>\n @if (data().metadata?.['chartTemplate'] === 'merged-manager') {\n <div\n #node\n class=\"--node-container --merged-card --merged-manager\"\n [class.--vacant]=\"data().metadata?.['vacant']\"\n [style]=\"host.getNodeColors('accent3')\"\n >\n <div class=\"--container\">\n <div class=\"--merged-top --merged-top-compact\">\n <i class=\"fa-light fa-user-tie fa-fw --merged-type-icon\"></i>\n <span class=\"--merged-entity-title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n </div>\n <axm-org-chart-employee-card\n [isVacant]=\"!!data().metadata?.['vacant'] || !data().metadata?.['occupant']?.['displayName']\"\n [fullName]=\"data().metadata?.['occupant']?.['displayName'] ?? ''\"\n [vacantLabel]=\"(host.chartML.vacant | translate | async) || ''\"\n [position]=\"\n data().description && !data().metadata?.['vacant'] && data().metadata?.['occupant']?.['displayName']\n ? (data().description! | translate | async) || ''\n : undefined\n \"\n />\n @if (data().metadata?.['stats']; as s) {\n @if (s['directReports'] != null && s['directReports'] > 0) {\n <div class=\"--merged-stats\">\n <span class=\"--merged-stat-n\">{{ s['directReports'] }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.directReports | translate | async }}</span>\n </div>\n }\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else if (data().metadata?.['chartTemplate'] === 'position-ic') {\n <div\n #node\n class=\"--node-container --merged-card --ic-position\"\n [class.--vacant]=\"data().metadata?.['vacant']\"\n [style]=\"host.getNodeColors('accent3')\"\n >\n <div class=\"--container\">\n <div class=\"--heading-container\">\n <div class=\"--content\">\n <div class=\"--icon\">\n <i class=\"fa-light fa-xl fa-fw\" [class]=\"data().icon\"></i>\n </div>\n <div class=\"--titles\">\n <span class=\"--title\" [title]=\"data().title | translate | async\">{{\n data().title | translate | async\n }}</span>\n @if (data().metadata?.['vacant']) {\n <span class=\"--sub-title\">{{ host.chartML.vacant | translate | async }}</span>\n }\n </div>\n @if (data().children?.length) {\n <div class=\"--badge\">\n <span>{{ data().children?.length ?? 0 }}</span>\n </div>\n }\n </div>\n </div>\n @if (host.getSubtreeRosterCounts(data()); as roster) {\n <div class=\"--merged-stats-row\">\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.people }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.people | translate | async }}</span>\n </div>\n <div class=\"--merged-stats-cell\">\n <span class=\"--merged-stat-n\">{{ roster.positions }}</span>\n <span class=\"--merged-stat-label\">{{ host.chartML.positions | translate | async }}</span>\n </div>\n </div>\n }\n @if (host.getNodeInfoItems(data()).length > 0) {\n <div class=\"--merged-info-list\">\n @for (item of host.getNodeInfoItems(data()); track item.label + ':' + item.value) {\n <div class=\"--merged-info-item\">\n <span class=\"--merged-info-label\">{{ item.label | translate | async }}</span>\n <span class=\"--merged-info-value\">{{ item.value }}</span>\n </div>\n }\n </div>\n }\n @if (data().children && data().children!.length > 0) {\n <div class=\"--toggle\">\n <ax-button class=\"ax-xs ax-rounded-sm\" (onClick)=\"host.toggleNode(data(), node)\">\n <ax-icon\n icon=\"fa-solid\"\n [class]=\"data().isExpanded === false ? 'fa-chevron-down' : 'fa-chevron-up'\"\n ></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <axm-org-chart-default-node-card [data]=\"data()\" colorKey=\"accent3\" />\n }\n</div>\n" }]
|
|
179
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
|
|
180
|
+
|
|
181
|
+
//#region ---- Imports ----
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region ---- Component ----
|
|
184
|
+
/**
|
|
185
|
+
* Picks the org chart card by node type. Uses a static @switch (not NgComponentOutlet) so
|
|
186
|
+
* components render reliably when the host is created in code and moved into an SVG foreignObject.
|
|
187
|
+
*/
|
|
188
|
+
class AXMOrgChartNodeOutletComponent {
|
|
189
|
+
constructor() {
|
|
190
|
+
this.NodeTypes = AXMOrgChartNodeType;
|
|
191
|
+
this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
192
|
+
}
|
|
193
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartNodeOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
194
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartNodeOutletComponent, isStandalone: true, selector: "axm-org-chart-node-outlet", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, host: { styleAttribute: "display: block; width: 100%; min-height: 1px; box-sizing: border-box;", classAttribute: "axm-org-chart-node-outlet" }, ngImport: i0, template: "@switch (data().type) {\n@case (NodeTypes.Company) {\n<axm-org-chart-company-node [data]=\"data()\" />\n} @case (NodeTypes.BusinessUnit) {\n<axm-org-chart-business-unit-node [data]=\"data()\" />\n} @case (NodeTypes.Position) {\n<axm-org-chart-position-node [data]=\"data()\" />\n} @case (NodeTypes.Employee) {\n<axm-org-chart-employee-node [data]=\"data()\" />\n} @default {\n<axm-org-chart-company-node [data]=\"data()\" />\n} }", dependencies: [{ kind: "component", type: AXMOrgChartCompanyNodeComponent, selector: "axm-org-chart-company-node", inputs: ["data"] }, { kind: "component", type: AXMOrgChartBusinessUnitNodeComponent, selector: "axm-org-chart-business-unit-node", inputs: ["data"] }, { kind: "component", type: AXMOrgChartPositionNodeComponent, selector: "axm-org-chart-position-node", inputs: ["data"] }, { kind: "component", type: AXMOrgChartEmployeeNodeComponent, selector: "axm-org-chart-employee-node", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
195
|
+
}
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartNodeOutletComponent, decorators: [{
|
|
197
|
+
type: Component,
|
|
198
|
+
args: [{ selector: 'axm-org-chart-node-outlet', imports: [
|
|
199
|
+
AXMOrgChartCompanyNodeComponent,
|
|
200
|
+
AXMOrgChartBusinessUnitNodeComponent,
|
|
201
|
+
AXMOrgChartPositionNodeComponent,
|
|
202
|
+
AXMOrgChartEmployeeNodeComponent,
|
|
203
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
204
|
+
class: 'axm-org-chart-node-outlet',
|
|
205
|
+
style: 'display: block; width: 100%; min-height: 1px; box-sizing: border-box;',
|
|
206
|
+
}, template: "@switch (data().type) {\n@case (NodeTypes.Company) {\n<axm-org-chart-company-node [data]=\"data()\" />\n} @case (NodeTypes.BusinessUnit) {\n<axm-org-chart-business-unit-node [data]=\"data()\" />\n} @case (NodeTypes.Position) {\n<axm-org-chart-position-node [data]=\"data()\" />\n} @case (NodeTypes.Employee) {\n<axm-org-chart-employee-node [data]=\"data()\" />\n} @default {\n<axm-org-chart-company-node [data]=\"data()\" />\n} }" }]
|
|
207
|
+
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }] } });
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Drops leaf vacant seat position nodes from the persisted chart tree (matches generator behavior when
|
|
211
|
+
* `showVacantLeafSeats` is false).
|
|
212
|
+
*/
|
|
213
|
+
function omitVacantLeafSeatNodes(root) {
|
|
214
|
+
const clone = structuredClone(root);
|
|
215
|
+
const visit = (node) => {
|
|
216
|
+
if (!node.children?.length) {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
node.children = node.children.filter((child) => {
|
|
220
|
+
const hideVacantSeat = child.type === AXMOrgChartNodeType.Position && child.metadata?.['vacant'] === true;
|
|
221
|
+
return !hideVacantSeat;
|
|
222
|
+
});
|
|
223
|
+
for (const child of node.children) {
|
|
224
|
+
visit(child);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
visit(clone);
|
|
228
|
+
return clone;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
class AXMOrgChartService {
|
|
232
|
+
constructor() {
|
|
233
|
+
this.entityService = inject(AXPEntityService);
|
|
234
|
+
this.chartData = this.entityService
|
|
235
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.chart.name)
|
|
236
|
+
.data();
|
|
237
|
+
this.loadingDialog = inject(AXLoadingDialogService);
|
|
238
|
+
this.exportService = inject(AXPExportService);
|
|
239
|
+
this.translationService = inject(AXTranslationService);
|
|
240
|
+
this.commandService = inject(AXPCommandService);
|
|
241
|
+
this.settingsService = inject(AXPSettingsService);
|
|
242
|
+
this._modesBundle = signal(null, ...(ngDevMode ? [{ debugName: "_modesBundle" }] : /* istanbul ignore next */ []));
|
|
243
|
+
this._selectedMode = signal('structure', ...(ngDevMode ? [{ debugName: "_selectedMode" }] : /* istanbul ignore next */ []));
|
|
244
|
+
this._showVacantLeafSeats = signal(true, ...(ngDevMode ? [{ debugName: "_showVacantLeafSeats" }] : /* istanbul ignore next */ []));
|
|
245
|
+
this._rootNode = signal({
|
|
246
|
+
id: AXPDataGenerator.uuid(),
|
|
247
|
+
type: AXMOrgChartNodeType.Company,
|
|
248
|
+
title: createMultiLanguageString('Company', 'شرکت'),
|
|
249
|
+
}, ...(ngDevMode ? [{ debugName: "_rootNode" }] : /* istanbul ignore next */ []));
|
|
250
|
+
this.rootNode = this._rootNode.asReadonly();
|
|
251
|
+
this.selectedMode = this._selectedMode.asReadonly();
|
|
252
|
+
this.showVacantLeafSeats = this._showVacantLeafSeats.asReadonly();
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Applies user prefs resolved before first paint (route resolver). Does not persist.
|
|
256
|
+
*/
|
|
257
|
+
applyHydratedUiPrefs(prefs) {
|
|
258
|
+
if (!prefs) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (prefs.selectedMode !== undefined) {
|
|
262
|
+
this._selectedMode.set(prefs.selectedMode);
|
|
263
|
+
}
|
|
264
|
+
if (prefs.showVacantLeafSeats !== undefined) {
|
|
265
|
+
this._showVacantLeafSeats.set(prefs.showVacantLeafSeats);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Applies current mode + vacant visibility from the cached bundle onto {@link rootNode}.
|
|
270
|
+
*/
|
|
271
|
+
applyDisplayRoot() {
|
|
272
|
+
const bundle = this._modesBundle();
|
|
273
|
+
if (!bundle?.modes) {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
const modeKey = this._selectedMode();
|
|
277
|
+
let tree = structuredClone(bundle.modes[modeKey]);
|
|
278
|
+
if (!this._showVacantLeafSeats()) {
|
|
279
|
+
tree = omitVacantLeafSeatNodes(tree);
|
|
280
|
+
}
|
|
281
|
+
this._rootNode.set(tree);
|
|
282
|
+
}
|
|
283
|
+
setChartMode(mode) {
|
|
284
|
+
this._selectedMode.set(mode);
|
|
285
|
+
this.applyDisplayRoot();
|
|
286
|
+
this.persistChartMode(mode);
|
|
287
|
+
}
|
|
288
|
+
setShowVacantLeafSeats(value) {
|
|
289
|
+
const normalized = normalizeVacantLeafSeatsSetting(value);
|
|
290
|
+
if (normalized === undefined) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
this._showVacantLeafSeats.set(normalized);
|
|
294
|
+
this.applyDisplayRoot();
|
|
295
|
+
this.persistShowVacantLeafSeats(normalized);
|
|
296
|
+
}
|
|
297
|
+
//#region ---- User chart preferences (settings) ----
|
|
298
|
+
/**
|
|
299
|
+
* Reads persisted chart UI preferences into signals (does not persist).
|
|
300
|
+
*/
|
|
301
|
+
async restoreChartUiFromSettings() {
|
|
302
|
+
try {
|
|
303
|
+
const userScope = this.settingsService.scope(AXPPlatformScope.User);
|
|
304
|
+
const modeRaw = await userScope.get(AXPOrganizationManagementSettings.HierarchyChartMode);
|
|
305
|
+
const mode = parseOrgChartMode(modeRaw);
|
|
306
|
+
if (mode !== undefined) {
|
|
307
|
+
this._selectedMode.set(mode);
|
|
308
|
+
}
|
|
309
|
+
const vacantRaw = await userScope.get(AXPOrganizationManagementSettings.HierarchyChartShowVacantLeafSeats);
|
|
310
|
+
const vacant = normalizeVacantLeafSeatsSetting(vacantRaw);
|
|
311
|
+
if (vacant !== undefined) {
|
|
312
|
+
this._showVacantLeafSeats.set(vacant);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
catch {
|
|
316
|
+
// Keep constructor defaults when settings are unavailable.
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
persistChartMode(mode) {
|
|
320
|
+
void this.settingsService
|
|
321
|
+
.scope(AXPPlatformScope.User)
|
|
322
|
+
.set(AXPOrganizationManagementSettings.HierarchyChartMode, mode)
|
|
323
|
+
.catch(() => { });
|
|
324
|
+
}
|
|
325
|
+
persistShowVacantLeafSeats(value) {
|
|
326
|
+
void this.settingsService
|
|
327
|
+
.scope(AXPPlatformScope.User)
|
|
328
|
+
.set(AXPOrganizationManagementSettings.HierarchyChartShowVacantLeafSeats, value)
|
|
329
|
+
.catch(() => { });
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
async load() {
|
|
333
|
+
const first = (await this.chartData.query({
|
|
334
|
+
skip: 0,
|
|
335
|
+
take: 1,
|
|
336
|
+
sort: [{ field: 'version', dir: 'desc' }],
|
|
337
|
+
})).items[0];
|
|
338
|
+
const structure = first?.structure;
|
|
339
|
+
if (structure?.modes?.structure &&
|
|
340
|
+
structure?.modes?.location &&
|
|
341
|
+
structure?.modes?.reporting &&
|
|
342
|
+
structure?.modes?.positionHierarchy) {
|
|
343
|
+
this._modesBundle.set(structure);
|
|
344
|
+
await this.restoreChartUiFromSettings();
|
|
345
|
+
this.applyDisplayRoot();
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
await this.generate();
|
|
349
|
+
await this.load();
|
|
350
|
+
}
|
|
351
|
+
async generate() {
|
|
352
|
+
await this.commandService.execute('OrganizationManagement.OrgChart:Generate', {});
|
|
353
|
+
}
|
|
354
|
+
//#region ---- Printing ----
|
|
355
|
+
async printChart(element) {
|
|
356
|
+
const d = this.loadingDialog.show({
|
|
357
|
+
title: 'Printing Organization Chart...',
|
|
358
|
+
mode: 'determinate',
|
|
359
|
+
progressColor: 'primary',
|
|
360
|
+
progressValue: 0,
|
|
361
|
+
status: '0/10',
|
|
362
|
+
text: 'Initializing print process...',
|
|
363
|
+
buttons: [{ text: 'Cancel', color: 'danger', onClick: () => d.close() }],
|
|
364
|
+
});
|
|
365
|
+
try {
|
|
366
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.preparing-document'), 10, '1/10');
|
|
367
|
+
const chartElement = element;
|
|
368
|
+
const { originalStyles, modifiedStyles } = this.expandChart(chartElement);
|
|
369
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.rendering-chart-image'), 25, '2.5/10');
|
|
370
|
+
const blob = await this.exportService.generateBlobFromElement(chartElement, {
|
|
371
|
+
popup: true,
|
|
372
|
+
filter: (node) => !(node instanceof Element && node.classList.contains('--toggle')),
|
|
373
|
+
bgcolor: 'transparent',
|
|
374
|
+
scale: 2,
|
|
375
|
+
quality: 1,
|
|
376
|
+
height: Number.parseInt(modifiedStyles.modifiedHeight),
|
|
377
|
+
width: Number.parseInt(modifiedStyles.modifiedWidth),
|
|
378
|
+
});
|
|
379
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.finalizing-image-processing'), 50, '5/10');
|
|
380
|
+
this.restoreChartStyles(chartElement, originalStyles);
|
|
381
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.downloading-image'), 75, '7.5/10');
|
|
382
|
+
this.exportService.download(blob, 'org-chart.png');
|
|
383
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.process-complete'), 100, '10/10');
|
|
384
|
+
setTimeout(() => d.close(), 1500);
|
|
385
|
+
}
|
|
386
|
+
catch (err) {
|
|
387
|
+
console.error('Error capturing chart:', err);
|
|
388
|
+
await this.updateStep(d, await this.translate('@organization-management:organization-chart.states.failed-to-generate-chart-image'), 100, 'Error', 'danger');
|
|
389
|
+
d.close();
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
expandChart(chartElement) {
|
|
393
|
+
const originalStyles = {
|
|
394
|
+
originalOverflow: chartElement.style.overflow,
|
|
395
|
+
originalWidth: chartElement.style.width,
|
|
396
|
+
originalHeight: chartElement.style.height,
|
|
397
|
+
};
|
|
398
|
+
const modifiedStyles = {
|
|
399
|
+
modifiedOverflow: 'visible',
|
|
400
|
+
modifiedWidth: `${chartElement.scrollWidth}px`,
|
|
401
|
+
modifiedHeight: `${chartElement.scrollHeight}px`,
|
|
402
|
+
};
|
|
403
|
+
chartElement.style.overflow = modifiedStyles.modifiedOverflow;
|
|
404
|
+
chartElement.style.width = modifiedStyles.modifiedWidth;
|
|
405
|
+
chartElement.style.height = modifiedStyles.modifiedHeight;
|
|
406
|
+
return { originalStyles, modifiedStyles };
|
|
407
|
+
}
|
|
408
|
+
restoreChartStyles(chartElement, originalStyles) {
|
|
409
|
+
chartElement.style.overflow = originalStyles.originalOverflow;
|
|
410
|
+
chartElement.style.width = originalStyles.originalWidth;
|
|
411
|
+
chartElement.style.height = originalStyles.originalHeight;
|
|
412
|
+
}
|
|
413
|
+
async updateStep(dialog, text, progress, status, color = 'primary') {
|
|
414
|
+
return new Promise((resolve) => {
|
|
415
|
+
dialog.setProgressColor(color);
|
|
416
|
+
dialog.setProgressText(text);
|
|
417
|
+
dialog.setProgressValue(progress);
|
|
418
|
+
dialog.setProgressStatus(status);
|
|
419
|
+
resolve();
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
async translate(key) {
|
|
423
|
+
return (await this.translationService.translateAsync(key)) + '...';
|
|
424
|
+
}
|
|
425
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
426
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartService }); }
|
|
427
|
+
}
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartService, decorators: [{
|
|
429
|
+
type: Injectable
|
|
430
|
+
}] });
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Component for displaying and interacting with an organizational chart.
|
|
434
|
+
*/
|
|
435
|
+
class AXMOrgChartPage extends AXPPageLayoutBaseComponent {
|
|
436
|
+
constructor() {
|
|
437
|
+
super();
|
|
438
|
+
this.rootConfig = RootConfig;
|
|
439
|
+
this.treeContainer = viewChild.required('chart');
|
|
440
|
+
this.parent = viewChild.required('parent');
|
|
441
|
+
this.contextMenu = viewChild(AXContextMenuComponent, ...(ngDevMode ? [{ debugName: "contextMenu" }] : /* istanbul ignore next */ []));
|
|
442
|
+
this.panView = viewChild(AXPanViewDirective, ...(ngDevMode ? [{ debugName: "panView" }] : /* istanbul ignore next */ []));
|
|
443
|
+
this.ngzone = inject(NgZone);
|
|
444
|
+
this.pageInjector = inject(Injector);
|
|
445
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
446
|
+
// printing is handled by service itself
|
|
447
|
+
this.chartService = inject(AXMOrgChartService);
|
|
448
|
+
this.route = inject(ActivatedRoute);
|
|
449
|
+
this.localeId = inject(LOCALE_ID);
|
|
450
|
+
this.NODE_STROKE_COLOR = 'rgba(var(--ax-sys-color-primary-400))';
|
|
451
|
+
this.LINK_STROKE_WIDTH = 1;
|
|
452
|
+
this.isFullscreen = signal(false, ...(ngDevMode ? [{ debugName: "isFullscreen" }] : /* istanbul ignore next */ []));
|
|
453
|
+
this.panX = signal(0, ...(ngDevMode ? [{ debugName: "panX" }] : /* istanbul ignore next */ []));
|
|
454
|
+
this.panY = signal(0, ...(ngDevMode ? [{ debugName: "panY" }] : /* istanbul ignore next */ []));
|
|
455
|
+
this.panZoomLevel = signal(100, ...(ngDevMode ? [{ debugName: "panZoomLevel" }] : /* istanbul ignore next */ []));
|
|
456
|
+
this.isChartRendered = false;
|
|
457
|
+
this.nodeTypes = [
|
|
458
|
+
{ title: 'Company', color: 'primary', icon: 'fal fa-building', category: AXMOrgChartCategory.Company },
|
|
459
|
+
{ title: 'Business Unit', color: 'accent2', icon: 'fal fa-sitemap', category: AXMOrgChartCategory.BusinessUnit },
|
|
460
|
+
{ title: 'Position', color: 'accent3', icon: 'fal fa-user-tie', category: AXMOrgChartCategory.Position },
|
|
461
|
+
{ title: 'Employee', color: 'surface', icon: 'fal fa-address-card', category: AXMOrgChartCategory.Employee },
|
|
462
|
+
];
|
|
463
|
+
/**
|
|
464
|
+
* UI chrome for chart cards; align copy with `organization-chart.organization-chart.nodes` / mock `org-chart-labels`.
|
|
465
|
+
*/
|
|
466
|
+
this.chartML = {
|
|
467
|
+
vacant: createMultiLanguageString('Vacant', 'خالی'),
|
|
468
|
+
directReports: createMultiLanguageString('Direct reports', 'گزارش مستقیم'),
|
|
469
|
+
teams: createMultiLanguageString('Teams', 'تیمها'),
|
|
470
|
+
people: createMultiLanguageString('People', 'اعضا'),
|
|
471
|
+
positions: createMultiLanguageString('Positions', 'سمتها'),
|
|
472
|
+
unitType: createMultiLanguageString('Unit type', 'نوع واحد'),
|
|
473
|
+
businessUnit: createMultiLanguageString('Business unit', 'واحد سازمانی'),
|
|
474
|
+
location: createMultiLanguageString('Location', 'موقعیت'),
|
|
475
|
+
code: createMultiLanguageString('Code', 'کد'),
|
|
476
|
+
capacity: createMultiLanguageString('Capacity', 'ظرفیت'),
|
|
477
|
+
level: createMultiLanguageString('Level', 'سطح'),
|
|
478
|
+
email: createMultiLanguageString('Email', 'ایمیل'),
|
|
479
|
+
phone: createMultiLanguageString('Phone', 'تلفن'),
|
|
480
|
+
employmentType: createMultiLanguageString('Employment type', 'نوع همکاری'),
|
|
481
|
+
workMode: createMultiLanguageString('Work mode', 'نحوه کار'),
|
|
482
|
+
};
|
|
483
|
+
this.#initialize = afterNextRender(async () => {
|
|
484
|
+
this.d3 = await import('d3');
|
|
485
|
+
await this.refresh();
|
|
486
|
+
});
|
|
487
|
+
this.chartService.applyHydratedUiPrefs(this.route.snapshot.data['orgChartUi']);
|
|
488
|
+
}
|
|
489
|
+
#initialize;
|
|
490
|
+
/**
|
|
491
|
+
* Zooms in the chart.
|
|
492
|
+
*/
|
|
493
|
+
zoomIn() {
|
|
494
|
+
this.panView()?.zoomIn();
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Zooms out the chart.
|
|
498
|
+
*/
|
|
499
|
+
zoomOut() {
|
|
500
|
+
this.panView()?.zoomOut();
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Resets the zoom level and pan position of the chart.
|
|
504
|
+
*/
|
|
505
|
+
zoomReset() {
|
|
506
|
+
this.panView()?.resetPosition();
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Toggles fullscreen mode for the chart.
|
|
510
|
+
*/
|
|
511
|
+
toggleFullscreen() {
|
|
512
|
+
if (this.isFullscreen()) {
|
|
513
|
+
document.exitFullscreen();
|
|
514
|
+
this.isFullscreen.set(false);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
this.parent().nativeElement.requestFullscreen();
|
|
518
|
+
this.isFullscreen.set(true);
|
|
519
|
+
}
|
|
520
|
+
document.querySelector(`foreignObject[node="node-${this.chartService.rootNode().id}"]`)?.scrollIntoView({
|
|
521
|
+
behavior: 'smooth',
|
|
522
|
+
block: 'start',
|
|
523
|
+
inline: 'center',
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Calculates the maximum depth of the organizational chart.
|
|
528
|
+
* @param node - The root node of the chart.
|
|
529
|
+
* @returns The maximum depth of the chart.
|
|
530
|
+
*/
|
|
531
|
+
calculateMaxDepth(node) {
|
|
532
|
+
if (!node.children || node.children.length === 0 || node.isExpanded === false) {
|
|
533
|
+
return 1;
|
|
534
|
+
}
|
|
535
|
+
return 1 + Math.max(...node.children.map((child) => this.calculateMaxDepth(child)));
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Calculates the maximum breadth of the organizational chart.
|
|
539
|
+
* @param node - The root node of the chart.
|
|
540
|
+
* @returns The maximum breadth of the chart.
|
|
541
|
+
*/
|
|
542
|
+
calculateMaxBreadth(node) {
|
|
543
|
+
if (!node.children || node.children.length === 0 || node.isExpanded === false) {
|
|
544
|
+
return 1;
|
|
545
|
+
}
|
|
546
|
+
return node.children.reduce((acc, child) => acc + this.calculateMaxBreadth(child), 0);
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Creates and renders the organizational chart.
|
|
550
|
+
* @param el - The container element for the chart.
|
|
551
|
+
* @param data - The root node of the organizational chart.
|
|
552
|
+
*/
|
|
553
|
+
createChart(el, data) {
|
|
554
|
+
if (!this.d3) {
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
this.ngzone.runOutsideAngular(() => {
|
|
558
|
+
const NODE_WIDTH_BASE = 300;
|
|
559
|
+
const NODE_HEIGHT_BASE = 220;
|
|
560
|
+
const HORIZONTAL_SPACING = 20;
|
|
561
|
+
const VERTICAL_SPACING = 40;
|
|
562
|
+
const NODE_Y_OFFSET = 10;
|
|
563
|
+
this.clearChart(el);
|
|
564
|
+
const newSvg = this.d3.select(el).append('svg');
|
|
565
|
+
const root = this.d3.hierarchy(data);
|
|
566
|
+
root.descendants().forEach((node) => {
|
|
567
|
+
if (node.data.isExpanded === false) {
|
|
568
|
+
node.children = undefined;
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
const treeLayout = this.d3
|
|
572
|
+
.tree()
|
|
573
|
+
.nodeSize([NODE_WIDTH_BASE + HORIZONTAL_SPACING, NODE_HEIGHT_BASE + VERTICAL_SPACING]);
|
|
574
|
+
treeLayout(root);
|
|
575
|
+
let minX = Infinity, maxX = -Infinity, minY = Infinity, maxY = -Infinity;
|
|
576
|
+
root.descendants().forEach((d) => {
|
|
577
|
+
if (d.x < minX)
|
|
578
|
+
minX = d.x;
|
|
579
|
+
if (d.x > maxX)
|
|
580
|
+
maxX = d.x;
|
|
581
|
+
if (d.y < minY)
|
|
582
|
+
minY = d.y;
|
|
583
|
+
if (d.y > maxY)
|
|
584
|
+
maxY = d.y;
|
|
585
|
+
});
|
|
586
|
+
const CONTAINER_WIDTH = maxX - minX + NODE_WIDTH_BASE + 2 * HORIZONTAL_SPACING;
|
|
587
|
+
const CONTAINER_HEIGHT = maxY - minY + NODE_HEIGHT_BASE + 2 * VERTICAL_SPACING;
|
|
588
|
+
newSvg.attr('width', CONTAINER_WIDTH).attr('height', CONTAINER_HEIGHT);
|
|
589
|
+
const g = newSvg
|
|
590
|
+
.append('g')
|
|
591
|
+
.attr('transform', `translate(${-minX + NODE_WIDTH_BASE / 2 + HORIZONTAL_SPACING / 2}, ${-minY + NODE_HEIGHT_BASE / 2 + VERTICAL_SPACING / 2})`);
|
|
592
|
+
g.selectAll('.axp-chart-node')
|
|
593
|
+
.data(root.descendants())
|
|
594
|
+
.enter()
|
|
595
|
+
.append('foreignObject')
|
|
596
|
+
.attr('class', 'axp-chart-node')
|
|
597
|
+
.attr('node', (d) => `node-${d.data.id}`)
|
|
598
|
+
.attr('x', (d) => d.x - NODE_WIDTH_BASE / 2)
|
|
599
|
+
.attr('y', (d) => d.y - NODE_HEIGHT_BASE / 2 + NODE_Y_OFFSET)
|
|
600
|
+
.attr('width', NODE_WIDTH_BASE)
|
|
601
|
+
.attr('height', NODE_HEIGHT_BASE)
|
|
602
|
+
.each((d) => this.renderNodeTemplate(d.data, d.x, d.y));
|
|
603
|
+
g.selectAll('.link')
|
|
604
|
+
.data(root.links())
|
|
605
|
+
.enter()
|
|
606
|
+
.append('path')
|
|
607
|
+
.attr('class', 'link')
|
|
608
|
+
.attr('d', (d) => {
|
|
609
|
+
const source = d.source;
|
|
610
|
+
const target = d.target;
|
|
611
|
+
const sourceBounds = this.getRenderedNodeBounds(source.data.id);
|
|
612
|
+
const targetBounds = this.getRenderedNodeBounds(target.data.id);
|
|
613
|
+
const EDGE_PADDING = 1;
|
|
614
|
+
const MIN_VERTICAL_GAP = 8;
|
|
615
|
+
let sourceBottomY = sourceBounds != null
|
|
616
|
+
? source.y - NODE_HEIGHT_BASE / 2 + NODE_Y_OFFSET + sourceBounds.topOffset + sourceBounds.height
|
|
617
|
+
: source.y;
|
|
618
|
+
let targetTopY = targetBounds != null
|
|
619
|
+
? target.y - NODE_HEIGHT_BASE / 2 + NODE_Y_OFFSET + targetBounds.topOffset
|
|
620
|
+
: target.y - 10;
|
|
621
|
+
// Keep connectors outside card bounds and avoid inverted elbows that cut through nodes.
|
|
622
|
+
sourceBottomY += EDGE_PADDING;
|
|
623
|
+
targetTopY -= EDGE_PADDING;
|
|
624
|
+
if (sourceBottomY >= targetTopY - MIN_VERTICAL_GAP) {
|
|
625
|
+
sourceBottomY = source.y + NODE_Y_OFFSET;
|
|
626
|
+
targetTopY = target.y - 10;
|
|
627
|
+
}
|
|
628
|
+
return `M${source.x},${sourceBottomY}V${(sourceBottomY + targetTopY) / 2}H${target.x}V${targetTopY}`;
|
|
629
|
+
})
|
|
630
|
+
.attr('fill', 'none')
|
|
631
|
+
.attr('stroke', this.NODE_STROKE_COLOR)
|
|
632
|
+
.attr('stroke-width', this.LINK_STROKE_WIDTH)
|
|
633
|
+
.attr('from', (d) => `node-${d.source.data.id}`)
|
|
634
|
+
.attr('to', (d) => `node-${d.target.data.id}`);
|
|
635
|
+
this.contextMenu()?.refresh();
|
|
636
|
+
});
|
|
637
|
+
if (!this.isChartRendered) {
|
|
638
|
+
// document.querySelector(`foreignObject[node="node-${data.id}"] .--heading-container`)?.scrollIntoView({
|
|
639
|
+
// behavior: 'smooth',
|
|
640
|
+
// block: 'center',
|
|
641
|
+
// inline: 'center',
|
|
642
|
+
// });
|
|
643
|
+
this.isChartRendered = true;
|
|
644
|
+
this.panView()?.resetPosition();
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Reads rendered bounds for a node card inside its foreignObject.
|
|
649
|
+
*/
|
|
650
|
+
getRenderedNodeBounds(nodeId) {
|
|
651
|
+
const foreignObject = document.querySelector(`foreignObject[node="node-${nodeId}"]`);
|
|
652
|
+
const nodeContainer = foreignObject?.querySelector('.--node-container');
|
|
653
|
+
if (!foreignObject || !nodeContainer) {
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
656
|
+
return {
|
|
657
|
+
topOffset: nodeContainer.offsetTop,
|
|
658
|
+
height: nodeContainer.offsetHeight,
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Renders the node template for a given organizational node.
|
|
663
|
+
* @param data - The node data.
|
|
664
|
+
* @param x - The x-coordinate of the node.
|
|
665
|
+
* @param y - The y-coordinate of the node.
|
|
666
|
+
*/
|
|
667
|
+
renderNodeTemplate(data, _x, _y) {
|
|
668
|
+
if (data.type == null) {
|
|
669
|
+
set(data, 'type', AXMOrgChartNodeType.Company);
|
|
670
|
+
}
|
|
671
|
+
set(data, 'category', data.type);
|
|
672
|
+
// D3 runs inside runOutsideAngular; created views must be updated inside the zone.
|
|
673
|
+
this.ngzone.run(() => {
|
|
674
|
+
// Dynamic subviews can use an injector that does not inherit the page `providers`.
|
|
675
|
+
// Bridge `AXM_ORG_CHART_HOST` explicitly so child node components can inject it.
|
|
676
|
+
const nodeTreeInjector = Injector.create({
|
|
677
|
+
parent: this.pageInjector,
|
|
678
|
+
providers: [{ provide: AXM_ORG_CHART_HOST, useValue: this }],
|
|
679
|
+
});
|
|
680
|
+
const ref = this.viewContainerRef.createComponent(AXMOrgChartNodeOutletComponent, { injector: nodeTreeInjector });
|
|
681
|
+
ref.setInput('data', data);
|
|
682
|
+
const nodeElement = this.d3.select(this.treeContainer().nativeElement).select(`[node="node-${data.id}"]`);
|
|
683
|
+
const element = nodeElement.node();
|
|
684
|
+
if (element) {
|
|
685
|
+
element.appendChild(ref.location.nativeElement);
|
|
686
|
+
ref.changeDetectorRef.detectChanges();
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
ref.destroy();
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Toggles the expansion state of a node.
|
|
695
|
+
* @param data - The node data.
|
|
696
|
+
* @param el - The HTML element representing the node.
|
|
697
|
+
*/
|
|
698
|
+
toggleNode(data, _el) {
|
|
699
|
+
data.isExpanded = data.isExpanded === undefined ? false : !data.isExpanded;
|
|
700
|
+
this.createChart(this.treeContainer().nativeElement, this.chartService.rootNode());
|
|
701
|
+
// el.scrollIntoView({
|
|
702
|
+
// behavior: 'smooth',
|
|
703
|
+
// });
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Clears the chart from the container element.
|
|
707
|
+
* @param el - The container element.
|
|
708
|
+
*/
|
|
709
|
+
clearChart(el) {
|
|
710
|
+
if (this.d3) {
|
|
711
|
+
this.d3.select(el).select('svg').remove();
|
|
712
|
+
this.viewContainerRef.clear();
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
redrawChart() {
|
|
716
|
+
if (!this.d3 || !this.treeContainer()?.nativeElement) {
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
this.createChart(this.treeContainer().nativeElement, this.chartService.rootNode());
|
|
720
|
+
}
|
|
721
|
+
async refresh() {
|
|
722
|
+
if (this.d3) {
|
|
723
|
+
await this.chartService.load();
|
|
724
|
+
this.redrawChart();
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
onVacantLeafSeatsChange(event) {
|
|
728
|
+
if (!event.isUserInteraction) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
this.chartService.setShowVacantLeafSeats(event.value);
|
|
732
|
+
this.redrawChart();
|
|
733
|
+
}
|
|
734
|
+
//#region Context Menu
|
|
735
|
+
// protected async handleContextMenuOnOpening(e: AXContextMenuOpeningEvent) {
|
|
736
|
+
// const node = get(e.targetElement, '__data__.data') as any as AXMOrganizationNode;
|
|
737
|
+
// const allowedAddItems = await this.chartService.getAllowedAddMenuItems(node);
|
|
738
|
+
// const allowDelete = node.type != AXMOrganizationNodeType.Company;
|
|
739
|
+
// const isPasteAvailable = await this.chartService.isPasteAvailable();
|
|
740
|
+
// const allowPaste = await this.chartService.allowPaste(node);
|
|
741
|
+
// //
|
|
742
|
+
// if (allowedAddItems.length) {
|
|
743
|
+
// e.items.push({
|
|
744
|
+
// text: 'Add New',
|
|
745
|
+
// icon: 'fa-light fa-plus',
|
|
746
|
+
// items: allowedAddItems,
|
|
747
|
+
// break: allowDelete,
|
|
748
|
+
// });
|
|
749
|
+
// }
|
|
750
|
+
// //
|
|
751
|
+
// if (allowDelete) {
|
|
752
|
+
// e.items.push({
|
|
753
|
+
// name: 'cut',
|
|
754
|
+
// text: 'Cut',
|
|
755
|
+
// icon: 'fa-light fa-cut',
|
|
756
|
+
// data: node,
|
|
757
|
+
// });
|
|
758
|
+
// e.items.push({
|
|
759
|
+
// name: 'copy',
|
|
760
|
+
// text: 'Copy',
|
|
761
|
+
// icon: 'fa-light fa-copy',
|
|
762
|
+
// data: node,
|
|
763
|
+
// break: !isPasteAvailable,
|
|
764
|
+
// });
|
|
765
|
+
// }
|
|
766
|
+
// if (isPasteAvailable) {
|
|
767
|
+
// e.items.push({
|
|
768
|
+
// name: 'paste',
|
|
769
|
+
// text: 'Paste',
|
|
770
|
+
// icon: 'fa-light fa-paste',
|
|
771
|
+
// data: node,
|
|
772
|
+
// break: true,
|
|
773
|
+
// disabled: !allowPaste,
|
|
774
|
+
// });
|
|
775
|
+
// }
|
|
776
|
+
// //
|
|
777
|
+
// if (allowDelete) {
|
|
778
|
+
// e.items.push({
|
|
779
|
+
// name: 'remove',
|
|
780
|
+
// text: 'Remove',
|
|
781
|
+
// color: 'danger',
|
|
782
|
+
// icon: 'fa-light fa-trash-can',
|
|
783
|
+
// data: node,
|
|
784
|
+
// });
|
|
785
|
+
// }
|
|
786
|
+
// //
|
|
787
|
+
// if (e.items.length == 0) {
|
|
788
|
+
// e.canceled = true;
|
|
789
|
+
// }
|
|
790
|
+
// }
|
|
791
|
+
async handleContextMenuItemClick(e) { }
|
|
792
|
+
//#endregion
|
|
793
|
+
/**
|
|
794
|
+
* Prints the organizational chart.
|
|
795
|
+
*/
|
|
796
|
+
async printChart() {
|
|
797
|
+
let [panX, panY, panZoomLevel] = [this.panX(), this.panY(), this.panZoomLevel()];
|
|
798
|
+
(this.panX.set(0), this.panY.set(0), this.panZoomLevel.set(100));
|
|
799
|
+
await this.chartService.printChart(this.treeContainer().nativeElement);
|
|
800
|
+
(this.panX.set(panX), this.panY.set(panY), this.panZoomLevel.set(panZoomLevel));
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Gets the node colors based on the provided color.
|
|
804
|
+
* @param color - The color to use for the node.
|
|
805
|
+
* @returns An object containing the node's background, text, and border colors.
|
|
806
|
+
*/
|
|
807
|
+
getNodeColors(color) {
|
|
808
|
+
if (color.includes('surface')) {
|
|
809
|
+
return {
|
|
810
|
+
'--node-bg-color': `var(--ax-sys-color-${color})`,
|
|
811
|
+
'--node-text-color': `var(--ax-sys-color-on-${color})`,
|
|
812
|
+
'--node-border-color': `var(--ax-sys-color-border-${color})`,
|
|
813
|
+
};
|
|
814
|
+
}
|
|
815
|
+
return {
|
|
816
|
+
'--node-bg-color': `var(--ax-sys-color-${color}-surface)`,
|
|
817
|
+
'--node-text-color': `var(--ax-sys-color-on-${color}-surface)`,
|
|
818
|
+
'--node-border-color': `var(--ax-sys-color-border-${color}-surface)`,
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
getSubtreeRosterCounts(data) {
|
|
822
|
+
if (data.type === AXMOrgChartNodeType.Position &&
|
|
823
|
+
data.metadata?.['chartTemplate'] === 'position-ic') {
|
|
824
|
+
const stats = data.metadata?.['stats'];
|
|
825
|
+
const subtreePeopleRaw = stats?.['subtreePeople'];
|
|
826
|
+
let people;
|
|
827
|
+
if (typeof subtreePeopleRaw === 'number' && Number.isFinite(subtreePeopleRaw)) {
|
|
828
|
+
people = Math.max(0, Math.floor(subtreePeopleRaw));
|
|
829
|
+
}
|
|
830
|
+
else if (data.metadata?.['vacant'] === true) {
|
|
831
|
+
people = 0;
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
const childCount = data.children?.length ?? 0;
|
|
835
|
+
people = childCount > 0 ? childCount : 1;
|
|
836
|
+
}
|
|
837
|
+
/** One catalog seat row in the chart. */
|
|
838
|
+
return { people, positions: 1 };
|
|
839
|
+
}
|
|
840
|
+
if (data.type !== AXMOrgChartNodeType.BusinessUnit && data.type !== AXMOrgChartNodeType.Company) {
|
|
841
|
+
return null;
|
|
842
|
+
}
|
|
843
|
+
if (data.metadata?.['isRegional'] === true) {
|
|
844
|
+
return null;
|
|
845
|
+
}
|
|
846
|
+
const stats = data.metadata?.['stats'];
|
|
847
|
+
const peopleRaw = stats?.['subtreePeople'];
|
|
848
|
+
const positionsRaw = stats?.['subtreePositionSeatCount'];
|
|
849
|
+
if (typeof peopleRaw !== 'number' || !Number.isFinite(peopleRaw)) {
|
|
850
|
+
return null;
|
|
851
|
+
}
|
|
852
|
+
if (typeof positionsRaw !== 'number' || !Number.isFinite(positionsRaw)) {
|
|
853
|
+
return null;
|
|
854
|
+
}
|
|
855
|
+
return {
|
|
856
|
+
people: Math.max(0, Math.floor(peopleRaw)),
|
|
857
|
+
positions: Math.max(0, Math.floor(positionsRaw)),
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
getTeamsMembershipCount(data) {
|
|
861
|
+
const stats = data.metadata?.['stats'];
|
|
862
|
+
const candidates = [
|
|
863
|
+
stats?.['teamMemberships'],
|
|
864
|
+
stats?.['teamMembershipCount'],
|
|
865
|
+
stats?.['teams'],
|
|
866
|
+
stats?.['teamsCount'],
|
|
867
|
+
data.metadata?.['teamMemberships'],
|
|
868
|
+
data.metadata?.['teamMembershipCount'],
|
|
869
|
+
data.metadata?.['teamsCount'],
|
|
870
|
+
data.metadata?.['teams'],
|
|
871
|
+
];
|
|
872
|
+
for (const candidate of candidates) {
|
|
873
|
+
if (typeof candidate === 'number' && Number.isFinite(candidate) && candidate >= 0) {
|
|
874
|
+
return candidate;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
return null;
|
|
878
|
+
}
|
|
879
|
+
getNodeInfoItems(data) {
|
|
880
|
+
const metadata = data.metadata ?? {};
|
|
881
|
+
const toText = (value) => {
|
|
882
|
+
if (value == null) {
|
|
883
|
+
return null;
|
|
884
|
+
}
|
|
885
|
+
if (typeof value === 'number' || typeof value === 'boolean') {
|
|
886
|
+
return String(value);
|
|
887
|
+
}
|
|
888
|
+
if (typeof value === 'string') {
|
|
889
|
+
const trimmed = value.trim();
|
|
890
|
+
return trimmed.length ? trimmed : null;
|
|
891
|
+
}
|
|
892
|
+
return null;
|
|
893
|
+
};
|
|
894
|
+
const resolveFirst = (...candidates) => {
|
|
895
|
+
for (const candidate of candidates) {
|
|
896
|
+
const text = toText(candidate);
|
|
897
|
+
if (text != null) {
|
|
898
|
+
return text;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return null;
|
|
902
|
+
};
|
|
903
|
+
const createInfo = (label, value) => {
|
|
904
|
+
return value == null ? null : { label, value };
|
|
905
|
+
};
|
|
906
|
+
const items = [];
|
|
907
|
+
const teamMembershipCount = this.getTeamsMembershipCount(data);
|
|
908
|
+
if (data.type === AXMOrgChartNodeType.BusinessUnit || data.type === AXMOrgChartNodeType.Company) {
|
|
909
|
+
const unitType = resolveFirst(metadata['unitTypeTitle'], metadata['unitType'], metadata['typeLabel']);
|
|
910
|
+
const location = resolveFirst(metadata['locationName'], metadata['regionName'], metadata['countryName']);
|
|
911
|
+
const infoCandidates = [
|
|
912
|
+
createInfo(this.chartML.unitType, unitType),
|
|
913
|
+
createInfo(this.chartML.location, location),
|
|
914
|
+
];
|
|
915
|
+
if (teamMembershipCount != null) {
|
|
916
|
+
infoCandidates.push({ label: this.chartML.teams, value: String(teamMembershipCount) });
|
|
917
|
+
}
|
|
918
|
+
items.push(...infoCandidates.filter((item) => item != null));
|
|
919
|
+
}
|
|
920
|
+
if (data.type === AXMOrgChartNodeType.Position) {
|
|
921
|
+
const vacantIcSeat = metadata['vacant'] === true && metadata['chartTemplate'] === 'position-ic';
|
|
922
|
+
const ouMl = metadata['organizationalUnitTitle'];
|
|
923
|
+
const ouDisplay = ouMl != null && typeof ouMl === 'object'
|
|
924
|
+
? resolveMultiLanguageString(ouMl, this.localeId)
|
|
925
|
+
: null;
|
|
926
|
+
const level = resolveFirst(metadata['jobLevelTitle'], metadata['jobLevel'], metadata['grade']);
|
|
927
|
+
const code = resolveFirst(metadata['code'], metadata['positionCode']);
|
|
928
|
+
const capacity = resolveFirst(metadata['capacity']);
|
|
929
|
+
const positionItems = vacantIcSeat
|
|
930
|
+
? [createInfo(this.chartML.businessUnit, ouDisplay)]
|
|
931
|
+
: [
|
|
932
|
+
createInfo(this.chartML.businessUnit, ouDisplay),
|
|
933
|
+
createInfo(this.chartML.level, level),
|
|
934
|
+
createInfo(this.chartML.code, code),
|
|
935
|
+
createInfo(this.chartML.capacity, capacity),
|
|
936
|
+
];
|
|
937
|
+
items.push(...positionItems.filter((item) => item != null));
|
|
938
|
+
}
|
|
939
|
+
if (data.type === AXMOrgChartNodeType.Employee || data.metadata?.['chartTemplate'] === 'employee-card') {
|
|
940
|
+
const email = resolveFirst(metadata['email'], metadata['workEmail']);
|
|
941
|
+
const phone = resolveFirst(metadata['phone'], metadata['mobile']);
|
|
942
|
+
const employmentType = resolveFirst(metadata['employmentTypeTitle'], metadata['employmentType']);
|
|
943
|
+
const workMode = resolveFirst(metadata['workModeTitle'], metadata['workMode']);
|
|
944
|
+
const employeeInfo = [
|
|
945
|
+
createInfo(this.chartML.email, email),
|
|
946
|
+
createInfo(this.chartML.phone, phone),
|
|
947
|
+
createInfo(this.chartML.employmentType, employmentType),
|
|
948
|
+
createInfo(this.chartML.workMode, workMode),
|
|
949
|
+
];
|
|
950
|
+
/** Teams count is rendered in the `--merged-stats` strip on employee cards — omit here to avoid duplicate rows. */
|
|
951
|
+
items.push(...employeeInfo.filter((item) => item != null));
|
|
952
|
+
}
|
|
953
|
+
return items.slice(0, 4);
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Translation key for the hierarchy chart mode shown under the page title.
|
|
957
|
+
*/
|
|
958
|
+
chartModeDescriptionTranslationKey(mode) {
|
|
959
|
+
const keys = {
|
|
960
|
+
structure: '@organization-management:organization-chart.options.mode.structure',
|
|
961
|
+
location: '@organization-management:organization-chart.options.mode.location',
|
|
962
|
+
reporting: '@organization-management:organization-chart.options.mode.reporting',
|
|
963
|
+
positionHierarchy: '@organization-management:organization-chart.options.mode.positionHierarchy',
|
|
964
|
+
};
|
|
965
|
+
return keys[mode];
|
|
966
|
+
}
|
|
967
|
+
updateVar(oldValue, newValue) {
|
|
968
|
+
oldValue.cat = newValue;
|
|
969
|
+
}
|
|
970
|
+
async getPageTitle() {
|
|
971
|
+
return await this.translateService.translateAsync('@organization-management:organization-chart.components.chart.title');
|
|
972
|
+
}
|
|
973
|
+
async getPageDescription() {
|
|
974
|
+
const mode = this.chartService.selectedMode();
|
|
975
|
+
const modeKey = this.chartModeDescriptionTranslationKey(mode);
|
|
976
|
+
return await this.translateService.translateAsync(modeKey);
|
|
977
|
+
}
|
|
978
|
+
getTitleActions() {
|
|
979
|
+
const mode = this.chartService.selectedMode();
|
|
980
|
+
const modes = ['structure', 'location', 'reporting', 'positionHierarchy'];
|
|
981
|
+
return modes.map((m) => ({
|
|
982
|
+
title: this.chartModeDescriptionTranslationKey(m),
|
|
983
|
+
command: {
|
|
984
|
+
name: 'chart-mode',
|
|
985
|
+
metadata: { mode: m, isSelected: mode === m, hideSelectionCheckSuffix: true },
|
|
986
|
+
},
|
|
987
|
+
// Prefix renders `fa-light {{ icon }}` (matches dashboard title-action check placement).
|
|
988
|
+
icon: mode === m ? 'fa-check' : '',
|
|
989
|
+
}));
|
|
990
|
+
}
|
|
991
|
+
async getSecondaryMenuItems() {
|
|
992
|
+
return [
|
|
993
|
+
{
|
|
994
|
+
...getActionButton('print'),
|
|
995
|
+
command: {
|
|
996
|
+
name: 'print',
|
|
997
|
+
},
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
...getActionButton('refresh'),
|
|
1001
|
+
command: {
|
|
1002
|
+
name: 'refresh',
|
|
1003
|
+
},
|
|
1004
|
+
},
|
|
1005
|
+
];
|
|
1006
|
+
}
|
|
1007
|
+
async getPageBreadcrumbs() {
|
|
1008
|
+
return [
|
|
1009
|
+
{
|
|
1010
|
+
title: await this.translateService.translateAsync('@organization-management:module.menus.root.title'),
|
|
1011
|
+
},
|
|
1012
|
+
];
|
|
1013
|
+
}
|
|
1014
|
+
async execute(command) {
|
|
1015
|
+
if (command.name === 'chart-mode') {
|
|
1016
|
+
const mode = command.metadata?.['mode'];
|
|
1017
|
+
if (mode) {
|
|
1018
|
+
this.chartService.setChartMode(mode);
|
|
1019
|
+
this.redrawChart();
|
|
1020
|
+
this.recompute();
|
|
1021
|
+
}
|
|
1022
|
+
return;
|
|
1023
|
+
}
|
|
1024
|
+
if (command.name == 'print') {
|
|
1025
|
+
await this.printChart();
|
|
1026
|
+
}
|
|
1027
|
+
if (command.name == 'refresh') {
|
|
1028
|
+
await this.chartService.generate();
|
|
1029
|
+
await this.refresh();
|
|
1030
|
+
this.recompute();
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
ngOnDestroy() {
|
|
1034
|
+
this.clearChart(this.treeContainer().nativeElement);
|
|
1035
|
+
}
|
|
1036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1037
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMOrgChartPage, isStandalone: true, selector: "ng-component", providers: [
|
|
1038
|
+
AXMOrgChartService,
|
|
1039
|
+
{
|
|
1040
|
+
provide: AXPPageLayoutBase,
|
|
1041
|
+
useExisting: AXMOrgChartPage,
|
|
1042
|
+
},
|
|
1043
|
+
{ provide: AXM_ORG_CHART_HOST, useExisting: AXMOrgChartPage },
|
|
1044
|
+
], viewQueries: [{ propertyName: "treeContainer", first: true, predicate: ["chart"], descendants: true, isSignal: true }, { propertyName: "parent", first: true, predicate: ["parent"], descendants: true, isSignal: true }, { propertyName: "contextMenu", first: true, predicate: AXContextMenuComponent, descendants: true, isSignal: true }, { propertyName: "panView", first: true, predicate: AXPanViewDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-overflow-hidden\">\n <div class=\"ax-h-[calc(100vh-290px)]\" #parent id=\"parent\">\n <div #chart axPanView [(panX)]=\"panX\" [(panY)]=\"panY\" [freeMode]=\"true\" [(zoom)]=\"panZoomLevel\"\n [fitContent]=\"true\" wrapperClasses=\"h\" class=\"ax-light\"></div>\n </div>\n </axp-page-content>\n <axp-page-footer>\n @if (chartService.selectedMode() !== 'reporting') {\n <axp-layout-prefix>\n <div class=\"ax-flex ax-items-center ax-gap-2 ax-flex-wrap ax-light\">\n <span class=\"ax-text-sm ax-whitespace-nowrap\">{{\n '@organization-management:organization-chart.components.generate-dialog.fields.show-vacant-leaf-seats.label'\n | translate\n | async\n }}</span>\n <ax-switch\n [ngModel]=\"chartService.showVacantLeafSeats()\"\n (onValueChanged)=\"onVacantLeafSeatsChange($event)\"\n ></ax-switch>\n </div>\n </axp-layout-prefix>\n }\n <!-- <axp-layout-prefix>\n <div class=\"ax-flex ax-gap-1 ax-light ax-flex-wrap ax-justify-center\">\n @let v = {cat:'Company'}; @for (item of nodeTypes; track $index) {\n <div class=\"axp-node-hint\" [style]=\"getNodeColors(item.color)\" [class.ax-ms-4]=\"v.cat!=item.category\">\n <div class=\"--badge\"></div>\n {{item.title}}\n </div>\n {{updateVar(v, item.category)}} }\n </div>\n </axp-layout-prefix> -->\n <axp-layout-suffix>\n <div class=\"ax-flex ax-gap-2\">\n <ax-button (onClick)=\"zoomOut()\">\n <ax-icon class=\"fa-solid fa-minus\"> </ax-icon>\n </ax-button>\n <ax-button [text]=\"panZoomLevel()\" (onClick)=\"zoomReset()\"></ax-button>\n <ax-button (onClick)=\"zoomIn()\">\n <ax-icon class=\"fa-solid fa-add\"> </ax-icon>\n </ax-button>\n <ax-button (onClick)=\"toggleFullscreen()\">\n <ax-icon>\n <i class=\"fa-solid\" [class]=\"isFullscreen()? 'fa-compress' : 'fa-expand'\"></i>\n </ax-icon>\n </ax-button>\n </div>\n </axp-layout-suffix>\n </axp-page-footer>\n</axp-page-layout>", styles: ["@charset \"UTF-8\";.axp-node-hint{display:flex;align-items:center;justify-content:center;gap:.25rem;font-size:.75rem;line-height:1rem}.axp-node-hint>div.--badge{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));display:flex;width:.75rem;height:.75rem;align-items:center;justify-content:center;border-radius:.125rem}.axp-chart-node{display:flex;align-items:center;justify-content:center}.axp-chart-node .--node-container{position:relative;cursor:pointer;--node-bg-color: var(--ax-sys-color-primary-surface);--node-text-color: var(--ax-sys-color-on-primary-surface);--node-border-color: var(--ax-sys-color-border-primary-surface)}.axp-chart-node .--node-container .--container{display:flex;max-height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:.375rem;border-width:1px;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container .--container .--heading-container{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));width:100%;padding:.5rem .75rem}.axp-chart-node .--node-container .--container .--heading-container .--content{display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;overflow:hidden}.axp-chart-node .--node-container .--container .--heading-container .--content .--icon{background-color:color-mix(in srgb,rgba(var(--node-bg-color),1) 85%,black);display:flex;width:2.75rem;height:2.75rem;flex:none;align-items:center;justify-content:center;border-radius:.5rem}.axp-chart-node .--node-container .--container .--heading-container .--content .--badge{background-color:color-mix(in srgb,rgba(var(--node-bg-color),1) 85%,black);display:flex;width:1.5rem;height:1.5rem;flex:none;align-items:center;justify-content:center;border-radius:.375rem;line-height:1}.axp-chart-node .--node-container .--container .--heading-container .--content .--badge>span{font-size:.75rem;line-height:1rem}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles{display:flex;width:100%;flex:1 1 0%;flex-direction:column;overflow:hidden}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles .--title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.125rem;line-height:1.75rem;font-weight:600}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles .--sub-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;opacity:.85}.axp-chart-node .--node-container .--container .--body-container{width:100%;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgba(var(--ax-sys-color-on-lightest-surface),var(--tw-text-opacity, 1))}.axp-chart-node .--node-container .--container .--body-container .--description{text-align:center;font-size:.875rem;line-height:1rem;opacity:.85}.axp-chart-node .--node-container .--container .--toggle{position:absolute;left:0;right:0;bottom:-.75rem;display:flex;width:100%;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center}.axp-chart-node .--node-container .--container .--org-chart-person-row{box-sizing:border-box;display:flex;width:100%;min-width:0px;align-items:center;gap:.75rem;padding:.625rem .75rem;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1))}.axp-chart-node .--node-container .--container .--merged-role-text,.axp-chart-node .--node-container .--container .--employee-text{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:.125rem}.axp-chart-node .--node-container .--container .--merged-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:700;line-height:1.25;color:rgba(var(--ax-sys-color-on-surface))}.axp-chart-node .--node-container .--container .--merged-position,.axp-chart-node .--node-container .--container .--merged-position-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:400;line-height:1.375;color:rgba(var(--ax-sys-color-on-surface-variant))}.axp-chart-node .--node-container .--container .--merged-vacant{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:500;text-transform:uppercase;letter-spacing:.025em;color:rgba(var(--ax-sys-color-on-surface-variant))}.axp-chart-node .--node-container.--merged-card .--container{min-width:280px}.axp-chart-node .--node-container.--merged-card.--vacant .--container{border-style:dashed;opacity:.95}.axp-chart-node .--node-container.--merged-card .--merged-top{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));display:flex;flex-direction:column;gap:.125rem;padding:.5rem .75rem}.axp-chart-node .--node-container.--merged-card .--merged-top-compact{flex-direction:row;align-items:center;gap:.5rem}.axp-chart-node .--node-container.--merged-card .--merged-type-icon{opacity:.9}.axp-chart-node .--node-container.--merged-card .--merged-entity-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:600;line-height:1.25}.axp-chart-node .--node-container.--merged-card .--merged-entity-desc{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.75rem;line-height:1rem;opacity:.8}.axp-chart-node .--node-container.--merged-card .--merged-actions{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.25rem}.axp-chart-node .--node-container.--merged-card .--merged-stats{display:flex;align-items:baseline;gap:.5rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.375rem .75rem;border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-stats-row{display:flex;width:100%;min-width:0px;align-items:stretch;justify-content:center;gap:1.5rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-stats-row .--merged-stats-cell{display:flex;min-width:0px;flex:1 1 0%;align-items:baseline;justify-content:center;gap:.5rem;padding:.375rem .5rem}.axp-chart-node .--node-container.--merged-card .--merged-stat-n{font-size:.875rem;line-height:1.25rem;font-weight:600}.axp-chart-node .--node-container.--merged-card .--merged-stat-label{font-size:.75rem;line-height:1rem;opacity:.75}.axp-chart-node .--node-container.--merged-card .--merged-info-list{display:flex;flex-direction:column;gap:.25rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.5rem .75rem;border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-info-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.75rem;line-height:1rem}.axp-chart-node .--node-container.--merged-card .--merged-info-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.7}.axp-chart-node .--node-container.--merged-card .--merged-info-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-weight:500}.axp-chart-node .--node-container.--merged-card.--merged-employee{border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card.--merged-employee .--merged-info-list{border-bottom-width:0px;padding-bottom:.75rem}.axp-chart-node .--node-container.--merged-card.--merged-employee .--merged-info-list+.--toggle{padding-top:0}.axp-chart-node .--node-container.--ic-position.--vacant .--container{border-style:dashed}.axp-chart-node .--node-container.--ic-position .--ic-actions{justify-content:flex-end;padding-left:.5rem;padding-right:.5rem;padding-bottom:.5rem}.axp-chart-node .--node-container.--ic-position.--merged-card .--merged-info-list:last-child{border-bottom-width:0px;padding-bottom:.75rem}#parent:fullscreen{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
|
|
1045
|
+
//
|
|
1046
|
+
AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "directive", type: AXPanViewDirective, selector: "[axPanView]", inputs: ["zoomStep", "minZoom", "maxZoom", "freeMode", "fitContent", "disablePan", "disableZoom", "wrapperClasses", "panX", "panY", "zoom"], outputs: ["panXChange", "panYChange", "zoomChange", "positionChange"], exportAs: ["axPanView"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXSwitchModule }, { kind: "component", type: i5.AXSwitchComponent, selector: "ax-switch", inputs: ["disabled", "readonly", "color", "tabIndex", "value", "name", "isLoading"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged", "readonlyChange", "disabledChange"] }, { kind: "component", type:
|
|
1047
|
+
//
|
|
1048
|
+
AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1049
|
+
}
|
|
1050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMOrgChartPage, decorators: [{
|
|
1051
|
+
type: Component,
|
|
1052
|
+
args: [{ imports: [
|
|
1053
|
+
CommonModule,
|
|
1054
|
+
FormsModule,
|
|
1055
|
+
RouterModule,
|
|
1056
|
+
//
|
|
1057
|
+
AXMenuModule,
|
|
1058
|
+
AXButtonModule,
|
|
1059
|
+
AXDropdownButtonModule,
|
|
1060
|
+
AXTranslationModule,
|
|
1061
|
+
AXDecoratorModule,
|
|
1062
|
+
AXPanViewDirective,
|
|
1063
|
+
AXLoadingModule,
|
|
1064
|
+
AXBreadcrumbsModule,
|
|
1065
|
+
AXBadgeModule,
|
|
1066
|
+
AXSwitchModule,
|
|
1067
|
+
//
|
|
1068
|
+
AXPThemeLayoutBlockComponent,
|
|
1069
|
+
AXPPageLayoutComponent,
|
|
1070
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
1071
|
+
AXMOrgChartService,
|
|
1072
|
+
{
|
|
1073
|
+
provide: AXPPageLayoutBase,
|
|
1074
|
+
useExisting: AXMOrgChartPage,
|
|
1075
|
+
},
|
|
1076
|
+
{ provide: AXM_ORG_CHART_HOST, useExisting: AXMOrgChartPage },
|
|
1077
|
+
], template: "<axp-page-layout *translate=\"let t\">\n <axp-page-content class=\"ax-overflow-hidden\">\n <div class=\"ax-h-[calc(100vh-290px)]\" #parent id=\"parent\">\n <div #chart axPanView [(panX)]=\"panX\" [(panY)]=\"panY\" [freeMode]=\"true\" [(zoom)]=\"panZoomLevel\"\n [fitContent]=\"true\" wrapperClasses=\"h\" class=\"ax-light\"></div>\n </div>\n </axp-page-content>\n <axp-page-footer>\n @if (chartService.selectedMode() !== 'reporting') {\n <axp-layout-prefix>\n <div class=\"ax-flex ax-items-center ax-gap-2 ax-flex-wrap ax-light\">\n <span class=\"ax-text-sm ax-whitespace-nowrap\">{{\n '@organization-management:organization-chart.components.generate-dialog.fields.show-vacant-leaf-seats.label'\n | translate\n | async\n }}</span>\n <ax-switch\n [ngModel]=\"chartService.showVacantLeafSeats()\"\n (onValueChanged)=\"onVacantLeafSeatsChange($event)\"\n ></ax-switch>\n </div>\n </axp-layout-prefix>\n }\n <!-- <axp-layout-prefix>\n <div class=\"ax-flex ax-gap-1 ax-light ax-flex-wrap ax-justify-center\">\n @let v = {cat:'Company'}; @for (item of nodeTypes; track $index) {\n <div class=\"axp-node-hint\" [style]=\"getNodeColors(item.color)\" [class.ax-ms-4]=\"v.cat!=item.category\">\n <div class=\"--badge\"></div>\n {{item.title}}\n </div>\n {{updateVar(v, item.category)}} }\n </div>\n </axp-layout-prefix> -->\n <axp-layout-suffix>\n <div class=\"ax-flex ax-gap-2\">\n <ax-button (onClick)=\"zoomOut()\">\n <ax-icon class=\"fa-solid fa-minus\"> </ax-icon>\n </ax-button>\n <ax-button [text]=\"panZoomLevel()\" (onClick)=\"zoomReset()\"></ax-button>\n <ax-button (onClick)=\"zoomIn()\">\n <ax-icon class=\"fa-solid fa-add\"> </ax-icon>\n </ax-button>\n <ax-button (onClick)=\"toggleFullscreen()\">\n <ax-icon>\n <i class=\"fa-solid\" [class]=\"isFullscreen()? 'fa-compress' : 'fa-expand'\"></i>\n </ax-icon>\n </ax-button>\n </div>\n </axp-layout-suffix>\n </axp-page-footer>\n</axp-page-layout>", styles: ["@charset \"UTF-8\";.axp-node-hint{display:flex;align-items:center;justify-content:center;gap:.25rem;font-size:.75rem;line-height:1rem}.axp-node-hint>div.--badge{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));display:flex;width:.75rem;height:.75rem;align-items:center;justify-content:center;border-radius:.125rem}.axp-chart-node{display:flex;align-items:center;justify-content:center}.axp-chart-node .--node-container{position:relative;cursor:pointer;--node-bg-color: var(--ax-sys-color-primary-surface);--node-text-color: var(--ax-sys-color-on-primary-surface);--node-border-color: var(--ax-sys-color-border-primary-surface)}.axp-chart-node .--node-container .--container{display:flex;max-height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:.375rem;border-width:1px;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container .--container .--heading-container{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));width:100%;padding:.5rem .75rem}.axp-chart-node .--node-container .--container .--heading-container .--content{display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;overflow:hidden}.axp-chart-node .--node-container .--container .--heading-container .--content .--icon{background-color:color-mix(in srgb,rgba(var(--node-bg-color),1) 85%,black);display:flex;width:2.75rem;height:2.75rem;flex:none;align-items:center;justify-content:center;border-radius:.5rem}.axp-chart-node .--node-container .--container .--heading-container .--content .--badge{background-color:color-mix(in srgb,rgba(var(--node-bg-color),1) 85%,black);display:flex;width:1.5rem;height:1.5rem;flex:none;align-items:center;justify-content:center;border-radius:.375rem;line-height:1}.axp-chart-node .--node-container .--container .--heading-container .--content .--badge>span{font-size:.75rem;line-height:1rem}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles{display:flex;width:100%;flex:1 1 0%;flex-direction:column;overflow:hidden}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles .--title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.125rem;line-height:1.75rem;font-weight:600}.axp-chart-node .--node-container .--container .--heading-container .--content .--titles .--sub-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;opacity:.85}.axp-chart-node .--node-container .--container .--body-container{width:100%;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgba(var(--ax-sys-color-on-lightest-surface),var(--tw-text-opacity, 1))}.axp-chart-node .--node-container .--container .--body-container .--description{text-align:center;font-size:.875rem;line-height:1rem;opacity:.85}.axp-chart-node .--node-container .--container .--toggle{position:absolute;left:0;right:0;bottom:-.75rem;display:flex;width:100%;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center}.axp-chart-node .--node-container .--container .--org-chart-person-row{box-sizing:border-box;display:flex;width:100%;min-width:0px;align-items:center;gap:.75rem;padding:.625rem .75rem;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1))}.axp-chart-node .--node-container .--container .--merged-role-text,.axp-chart-node .--node-container .--container .--employee-text{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:.125rem}.axp-chart-node .--node-container .--container .--merged-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;font-weight:700;line-height:1.25;color:rgba(var(--ax-sys-color-on-surface))}.axp-chart-node .--node-container .--container .--merged-position,.axp-chart-node .--node-container .--container .--merged-position-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:400;line-height:1.375;color:rgba(var(--ax-sys-color-on-surface-variant))}.axp-chart-node .--node-container .--container .--merged-vacant{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:500;text-transform:uppercase;letter-spacing:.025em;color:rgba(var(--ax-sys-color-on-surface-variant))}.axp-chart-node .--node-container.--merged-card .--container{min-width:280px}.axp-chart-node .--node-container.--merged-card.--vacant .--container{border-style:dashed;opacity:.95}.axp-chart-node .--node-container.--merged-card .--merged-top{background-color:rgba(var(--node-bg-color));color:rgba(var(--node-text-color));display:flex;flex-direction:column;gap:.125rem;padding:.5rem .75rem}.axp-chart-node .--node-container.--merged-card .--merged-top-compact{flex-direction:row;align-items:center;gap:.5rem}.axp-chart-node .--node-container.--merged-card .--merged-type-icon{opacity:.9}.axp-chart-node .--node-container.--merged-card .--merged-entity-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:600;line-height:1.25}.axp-chart-node .--node-container.--merged-card .--merged-entity-desc{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.75rem;line-height:1rem;opacity:.8}.axp-chart-node .--node-container.--merged-card .--merged-actions{margin-top:.25rem;display:flex;flex-wrap:wrap;gap:.25rem}.axp-chart-node .--node-container.--merged-card .--merged-stats{display:flex;align-items:baseline;gap:.5rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.375rem .75rem;border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-stats-row{display:flex;width:100%;min-width:0px;align-items:stretch;justify-content:center;gap:1.5rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-stats-row .--merged-stats-cell{display:flex;min-width:0px;flex:1 1 0%;align-items:baseline;justify-content:center;gap:.5rem;padding:.375rem .5rem}.axp-chart-node .--node-container.--merged-card .--merged-stat-n{font-size:.875rem;line-height:1.25rem;font-weight:600}.axp-chart-node .--node-container.--merged-card .--merged-stat-label{font-size:.75rem;line-height:1rem;opacity:.75}.axp-chart-node .--node-container.--merged-card .--merged-info-list{display:flex;flex-direction:column;gap:.25rem;border-top-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));padding:.5rem .75rem;border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card .--merged-info-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.75rem;line-height:1rem}.axp-chart-node .--node-container.--merged-card .--merged-info-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.7}.axp-chart-node .--node-container.--merged-card .--merged-info-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-weight:500}.axp-chart-node .--node-container.--merged-card.--merged-employee{border-color:rgba(var(--node-border-color))}.axp-chart-node .--node-container.--merged-card.--merged-employee .--merged-info-list{border-bottom-width:0px;padding-bottom:.75rem}.axp-chart-node .--node-container.--merged-card.--merged-employee .--merged-info-list+.--toggle{padding-top:0}.axp-chart-node .--node-container.--ic-position.--vacant .--container{border-style:dashed}.axp-chart-node .--node-container.--ic-position .--ic-actions{justify-content:flex-end;padding-left:.5rem;padding-right:.5rem;padding-bottom:.5rem}.axp-chart-node .--node-container.--ic-position.--merged-card .--merged-info-list:last-child{border-bottom-width:0px;padding-bottom:.75rem}#parent:fullscreen{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}\n"] }]
|
|
1078
|
+
}], ctorParameters: () => [], propDecorators: { treeContainer: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], parent: [{ type: i0.ViewChild, args: ['parent', { isSignal: true }] }], contextMenu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXContextMenuComponent), { isSignal: true }] }], panView: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPanViewDirective), { isSignal: true }] }] } });
|
|
1079
|
+
|
|
1080
|
+
export { AXMOrgChartPage };
|
|
1081
|
+
//# sourceMappingURL=acorex-modules-organization-management-org-chart.page-mHV0AWGZ.mjs.map
|