@acorex/modules 19.3.3-next.0 → 19.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/conversation/lib/entities/comments/pages/comment-list-view.component.d.ts +3 -2
  2. package/dashboard-management/index.d.ts +3 -1
  3. package/dashboard-management/lib/entities/dashboard/dashboard.types.d.ts +4 -0
  4. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +6 -25
  5. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +1 -26
  6. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +8 -0
  7. package/dashboard-management/lib/features/home-dashboard/dashboard-popups/add-dashboard-popup.d.ts +10 -2
  8. package/dashboard-management/lib/features/home-dashboard/dashboard-popups/dashboard-popup.service.d.ts +1 -1
  9. package/dashboard-management/lib/features/home-dashboard/index.d.ts +1 -0
  10. package/dashboard-management/lib/menu.provider.d.ts +1 -0
  11. package/document-management/lib/features/document-explorer/views/attachement-widget/attachment-widget.component.d.ts +126 -0
  12. package/document-management/lib/features/shared/document-manager.types.d.ts +1 -1
  13. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +1 -0
  14. package/fesm2022/{acorex-modules-application-management-module-designer.component-ClxaJcjD.mjs → acorex-modules-application-management-module-designer.component-cD24pUfN.mjs} +7 -7
  15. package/fesm2022/{acorex-modules-application-management-module-designer.component-ClxaJcjD.mjs.map → acorex-modules-application-management-module-designer.component-cD24pUfN.mjs.map} +1 -1
  16. package/fesm2022/acorex-modules-application-management.mjs +41 -41
  17. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  18. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DJZcD1j3.mjs → acorex-modules-auth-acorex-modules-auth-DCWtLiHM.mjs} +43 -43
  19. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DJZcD1j3.mjs.map → acorex-modules-auth-acorex-modules-auth-DCWtLiHM.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-app-chooser.component-DlYxDGQr.mjs → acorex-modules-auth-app-chooser.component-VMhnsjYn.mjs} +5 -5
  21. package/fesm2022/{acorex-modules-auth-app-chooser.component-DlYxDGQr.mjs.map → acorex-modules-auth-app-chooser.component-VMhnsjYn.mjs.map} +1 -1
  22. package/fesm2022/acorex-modules-auth-blank.layout-DIttom0K.mjs +18 -0
  23. package/fesm2022/{acorex-modules-auth-blank.layout-B1a0710P.mjs.map → acorex-modules-auth-blank.layout-DIttom0K.mjs.map} +1 -1
  24. package/fesm2022/{acorex-modules-auth-login.module-D-XgzifC.mjs → acorex-modules-auth-login.module-DxLjSR75.mjs} +8 -8
  25. package/fesm2022/{acorex-modules-auth-login.module-D-XgzifC.mjs.map → acorex-modules-auth-login.module-DxLjSR75.mjs.map} +1 -1
  26. package/fesm2022/{acorex-modules-auth-master.layout-ZaCb3CED.mjs → acorex-modules-auth-master.layout-Dpb-D34R.mjs} +5 -5
  27. package/fesm2022/{acorex-modules-auth-master.layout-ZaCb3CED.mjs.map → acorex-modules-auth-master.layout-Dpb-D34R.mjs.map} +1 -1
  28. package/fesm2022/acorex-modules-auth-password.component-Bcwod5kV.mjs +59 -0
  29. package/fesm2022/{acorex-modules-auth-password.component-CLTZoufP.mjs.map → acorex-modules-auth-password.component-Bcwod5kV.mjs.map} +1 -1
  30. package/fesm2022/{acorex-modules-auth-password.component-C-xRIhrM.mjs → acorex-modules-auth-password.component-CEAzmwdd.mjs} +5 -5
  31. package/fesm2022/{acorex-modules-auth-password.component-C-xRIhrM.mjs.map → acorex-modules-auth-password.component-CEAzmwdd.mjs.map} +1 -1
  32. package/fesm2022/{acorex-modules-auth-routes-4T5jq7su.mjs → acorex-modules-auth-routes-DHX4wD9P.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-auth-routes-4T5jq7su.mjs.map → acorex-modules-auth-routes-DHX4wD9P.mjs.map} +1 -1
  34. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-Ow7QtAWc.mjs → acorex-modules-auth-tenant-chooser.component-S07bx8PP.mjs} +4 -4
  35. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-Ow7QtAWc.mjs.map → acorex-modules-auth-tenant-chooser.component-S07bx8PP.mjs.map} +1 -1
  36. package/fesm2022/acorex-modules-auth-two-factor-code.component-CK9J4jMb.mjs +40 -0
  37. package/fesm2022/{acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs.map → acorex-modules-auth-two-factor-code.component-CK9J4jMb.mjs.map} +1 -1
  38. package/fesm2022/{acorex-modules-auth-two-factor.module-D72KIpvA.mjs → acorex-modules-auth-two-factor.module-CZyzLTm3.mjs} +7 -7
  39. package/fesm2022/{acorex-modules-auth-two-factor.module-D72KIpvA.mjs.map → acorex-modules-auth-two-factor.module-CZyzLTm3.mjs.map} +1 -1
  40. package/fesm2022/{acorex-modules-auth-user-sessions.component-Btnu_Oeq.mjs → acorex-modules-auth-user-sessions.component-SuhoNCuQ.mjs} +5 -5
  41. package/fesm2022/{acorex-modules-auth-user-sessions.component-Btnu_Oeq.mjs.map → acorex-modules-auth-user-sessions.component-SuhoNCuQ.mjs.map} +1 -1
  42. package/fesm2022/acorex-modules-auth.mjs +1 -1
  43. package/fesm2022/{acorex-modules-common-search-popup.component-C3XUb6pF.mjs → acorex-modules-common-search-popup.component-DQYBNkIc.mjs} +4 -4
  44. package/fesm2022/{acorex-modules-common-search-popup.component-C3XUb6pF.mjs.map → acorex-modules-common-search-popup.component-DQYBNkIc.mjs.map} +1 -1
  45. package/fesm2022/acorex-modules-common.mjs +19 -19
  46. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  47. package/fesm2022/acorex-modules-conversation.mjs +45 -45
  48. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  49. package/fesm2022/acorex-modules-dashboard-management.mjs +4994 -1
  50. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  51. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs → acorex-modules-document-management-acorex-modules-document-management-kZDDtr98.mjs} +151 -139
  52. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-kZDDtr98.mjs.map +1 -0
  53. package/fesm2022/acorex-modules-document-management-attachment-widget.component-DlwLjrkw.mjs +32 -0
  54. package/fesm2022/acorex-modules-document-management-attachment-widget.component-DlwLjrkw.mjs.map +1 -0
  55. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs → acorex-modules-document-management-create-folder-dialog.component-CPXnUlUx.mjs} +6 -6
  56. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-Ty5V60Tu.mjs.map → acorex-modules-document-management-create-folder-dialog.component-CPXnUlUx.mjs.map} +1 -1
  57. package/fesm2022/{acorex-modules-document-management-details-view.component-BuUJq8WU.mjs → acorex-modules-document-management-details-view.component-9LB0w9DQ.mjs} +5 -5
  58. package/fesm2022/{acorex-modules-document-management-details-view.component-BuUJq8WU.mjs.map → acorex-modules-document-management-details-view.component-9LB0w9DQ.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs → acorex-modules-document-management-drive-choose.component-CPIB0bcn.mjs} +5 -5
  60. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DSCIj1X_.mjs.map → acorex-modules-document-management-drive-choose.component-CPIB0bcn.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs → acorex-modules-document-management-large-icons-view.component-D--yZaJt.mjs} +5 -5
  62. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvrdSkIZ.mjs.map → acorex-modules-document-management-large-icons-view.component-D--yZaJt.mjs.map} +1 -1
  63. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs → acorex-modules-document-management-large-tiles-view.component-CNeKXArZ.mjs} +5 -5
  64. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-rIxsD8sE.mjs.map → acorex-modules-document-management-large-tiles-view.component-CNeKXArZ.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs → acorex-modules-document-management-link-dialog.component-DKbO2nX8.mjs} +4 -4
  66. package/fesm2022/{acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs.map → acorex-modules-document-management-link-dialog.component-DKbO2nX8.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-document-management-list-view.component-BrutZLAU.mjs → acorex-modules-document-management-list-view.component-q2bCwMab.mjs} +5 -5
  68. package/fesm2022/{acorex-modules-document-management-list-view.component-BrutZLAU.mjs.map → acorex-modules-document-management-list-view.component-q2bCwMab.mjs.map} +1 -1
  69. package/fesm2022/acorex-modules-document-management-lock-dialog.component-By36woOc.mjs +52 -0
  70. package/fesm2022/{acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs.map → acorex-modules-document-management-lock-dialog.component-By36woOc.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs → acorex-modules-document-management-permission-definition.provider-Cqkd87Cb.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-CQOLEctF.mjs.map → acorex-modules-document-management-permission-definition.provider-Cqkd87Cb.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs → acorex-modules-document-management-rename-node-dialog.component-WZYHoTrK.mjs} +6 -6
  74. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-zSY0PShA.mjs.map → acorex-modules-document-management-rename-node-dialog.component-WZYHoTrK.mjs.map} +1 -1
  75. package/fesm2022/{acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs → acorex-modules-document-management-share-dialog.component-Diof2rpe.mjs} +4 -4
  76. package/fesm2022/{acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs.map → acorex-modules-document-management-share-dialog.component-Diof2rpe.mjs.map} +1 -1
  77. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-Bj6G6aqt.mjs +55 -0
  78. package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs.map → acorex-modules-document-management-share-email-dialog.component-Bj6G6aqt.mjs.map} +1 -1
  79. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs → acorex-modules-document-management-small-icons-view.component-iCcvLfHC.mjs} +5 -5
  80. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-CFB6g5r6.mjs.map → acorex-modules-document-management-small-icons-view.component-iCcvLfHC.mjs.map} +1 -1
  81. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs → acorex-modules-document-management-small-tiles-view.component-BlxmyYrn.mjs} +5 -5
  82. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Dp2Lnb3c.mjs.map → acorex-modules-document-management-small-tiles-view.component-BlxmyYrn.mjs.map} +1 -1
  83. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-CNjFnm2w.mjs +37 -0
  84. package/fesm2022/{acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs.map → acorex-modules-document-management-unlock-dialog.component-CNjFnm2w.mjs.map} +1 -1
  85. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  86. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-BL9GxOV_.mjs} +56 -56
  87. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CJ2Qoott.mjs.map → acorex-modules-form-template-management-acorex-modules-form-template-management-BL9GxOV_.mjs.map} +1 -1
  88. package/fesm2022/{acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs → acorex-modules-form-template-management-category.entity-DgpkNWIh.mjs} +2 -2
  89. package/fesm2022/{acorex-modules-form-template-management-category.entity-BjNsUAZq.mjs.map → acorex-modules-form-template-management-category.entity-DgpkNWIh.mjs.map} +1 -1
  90. package/fesm2022/{acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs → acorex-modules-form-template-management-designer.page-BmSMzkbb.mjs} +4 -4
  91. package/fesm2022/{acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs.map → acorex-modules-form-template-management-designer.page-BmSMzkbb.mjs.map} +1 -1
  92. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs → acorex-modules-form-template-management-permission-definition.provider-DwpvJvia.mjs} +2 -2
  93. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CqZ8ytjA.mjs.map → acorex-modules-form-template-management-permission-definition.provider-DwpvJvia.mjs.map} +1 -1
  94. package/fesm2022/{acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs → acorex-modules-form-template-management-settings.provider-BDlPJPWl.mjs} +2 -2
  95. package/fesm2022/{acorex-modules-form-template-management-settings.provider-LrzsYkiL.mjs.map → acorex-modules-form-template-management-settings.provider-BDlPJPWl.mjs.map} +1 -1
  96. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs → acorex-modules-form-template-management-template-picker.component-DWZby-TS.mjs} +4 -4
  97. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs.map → acorex-modules-form-template-management-template-picker.component-DWZby-TS.mjs.map} +1 -1
  98. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs → acorex-modules-form-template-management-template-widget-edit.component-CZ7DLKVC.mjs} +5 -5
  99. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BP75i9zU.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CZ7DLKVC.mjs.map} +1 -1
  100. package/fesm2022/{acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs → acorex-modules-form-template-management-template.entity-DbDR1qAp.mjs} +2 -2
  101. package/fesm2022/{acorex-modules-form-template-management-template.entity-CCaHPkWq.mjs.map → acorex-modules-form-template-management-template.entity-DbDR1qAp.mjs.map} +1 -1
  102. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs → acorex-modules-form-template-management-viewer-popup.component-B4EoS2iO.mjs} +5 -5
  103. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CUOsh6e5.mjs.map → acorex-modules-form-template-management-viewer-popup.component-B4EoS2iO.mjs.map} +1 -1
  104. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  105. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs → acorex-modules-issue-management-acorex-modules-issue-management-7RWgBq87.mjs} +62 -65
  106. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-DcmAnBue.mjs.map → acorex-modules-issue-management-acorex-modules-issue-management-7RWgBq87.mjs.map} +1 -1
  107. package/fesm2022/acorex-modules-issue-management-capture-screen.component-BzvY3UMh.mjs +28 -0
  108. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs.map → acorex-modules-issue-management-capture-screen.component-BzvY3UMh.mjs.map} +1 -1
  109. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  110. package/fesm2022/acorex-modules-log-management.mjs +10 -10
  111. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  112. package/fesm2022/acorex-modules-notification-management.mjs +36 -36
  113. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  114. package/fesm2022/{acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs → acorex-modules-organization-management-add-item.component-sP_aikRE.mjs} +5 -5
  115. package/fesm2022/{acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs.map → acorex-modules-organization-management-add-item.component-sP_aikRE.mjs.map} +1 -1
  116. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs → acorex-modules-organization-management-org-chart-configuration.page-CaNP3qwK.mjs} +5 -5
  117. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-CaNP3qwK.mjs.map} +1 -1
  118. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs → acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs} +4 -4
  119. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs.map → acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs.map} +1 -1
  120. package/fesm2022/{acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs → acorex-modules-organization-management-org-chart.page-B-TZkfTX.mjs} +12 -12
  121. package/fesm2022/{acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs.map → acorex-modules-organization-management-org-chart.page-B-TZkfTX.mjs.map} +1 -1
  122. package/fesm2022/acorex-modules-organization-management-position-category.entity-DrZ9Ott4.mjs +320 -0
  123. package/fesm2022/acorex-modules-organization-management-position-category.entity-DrZ9Ott4.mjs.map +1 -0
  124. package/fesm2022/acorex-modules-organization-management-position.entity-CY4TugWR.mjs +412 -0
  125. package/fesm2022/acorex-modules-organization-management-position.entity-CY4TugWR.mjs.map +1 -0
  126. package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-CmafbyCZ.mjs +332 -0
  127. package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-CmafbyCZ.mjs.map +1 -0
  128. package/fesm2022/{acorex-modules-organization-management-position.entity-DhPT9kzv.mjs → acorex-modules-organization-management-responsibility.entity-DmLeFogS.mjs} +63 -27
  129. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmLeFogS.mjs.map +1 -0
  130. package/fesm2022/{acorex-modules-organization-management-role.entity-C-AIIaDo.mjs → acorex-modules-organization-management-role-category.entity-Cyt1dAKR.mjs} +58 -8
  131. package/fesm2022/acorex-modules-organization-management-role-category.entity-Cyt1dAKR.mjs.map +1 -0
  132. package/fesm2022/acorex-modules-organization-management-role.entity-BDErzNv-.mjs +324 -0
  133. package/fesm2022/acorex-modules-organization-management-role.entity-BDErzNv-.mjs.map +1 -0
  134. package/fesm2022/acorex-modules-organization-management-skill-category.entity-BPgGGVT3.mjs +320 -0
  135. package/fesm2022/acorex-modules-organization-management-skill-category.entity-BPgGGVT3.mjs.map +1 -0
  136. package/fesm2022/acorex-modules-organization-management-skill.entity-D9XojzUV.mjs +287 -0
  137. package/fesm2022/acorex-modules-organization-management-skill.entity-D9XojzUV.mjs.map +1 -0
  138. package/fesm2022/acorex-modules-organization-management.mjs +451 -106
  139. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  140. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs → acorex-modules-platform-management-acorex-modules-platform-management-D8qCuwrP.mjs} +267 -207
  141. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-D8qCuwrP.mjs.map +1 -0
  142. package/fesm2022/{acorex-modules-platform-management-list-version.component-DB8pe9so.mjs → acorex-modules-platform-management-list-version.component-C4efcHZE.mjs} +8 -8
  143. package/fesm2022/acorex-modules-platform-management-list-version.component-C4efcHZE.mjs.map +1 -0
  144. package/fesm2022/{acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs → acorex-modules-platform-management-settings.provider-DOR4HWty.mjs} +2 -2
  145. package/fesm2022/{acorex-modules-platform-management-settings.provider-BQzM-lyt.mjs.map → acorex-modules-platform-management-settings.provider-DOR4HWty.mjs.map} +1 -1
  146. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  147. package/fesm2022/acorex-modules-project-management.mjs +43 -43
  148. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  149. package/fesm2022/acorex-modules-scheduler-job-management.mjs +14 -14
  150. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  151. package/fesm2022/acorex-modules-security-management.mjs +35 -35
  152. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  153. package/fesm2022/{acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs → acorex-modules-settings-management-setting-page.component-X33xeQrg.mjs} +4 -4
  154. package/fesm2022/{acorex-modules-settings-management-setting-page.component-XDFtTqft.mjs.map → acorex-modules-settings-management-setting-page.component-X33xeQrg.mjs.map} +1 -1
  155. package/fesm2022/{acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs → acorex-modules-settings-management-setting-view.component-DryghOjs.mjs} +4 -4
  156. package/fesm2022/{acorex-modules-settings-management-setting-view.component-B_6RIU9e.mjs.map → acorex-modules-settings-management-setting-view.component-DryghOjs.mjs.map} +1 -1
  157. package/fesm2022/acorex-modules-settings-management.mjs +6 -6
  158. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
  159. package/fesm2022/acorex-modules-text-template-management.mjs +24 -24
  160. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  161. package/fesm2022/acorex-modules-training-management.mjs +43 -43
  162. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  163. package/organization-management/lib/const.d.ts +38 -2
  164. package/organization-management/lib/entities/index.d.ts +6 -0
  165. package/organization-management/lib/entities/position/position.types.d.ts +5 -0
  166. package/organization-management/lib/entities/position-category/index.d.ts +3 -0
  167. package/organization-management/lib/entities/position-category/position-category.entity.d.ts +3 -0
  168. package/organization-management/lib/entities/position-category/position-category.module.d.ts +6 -0
  169. package/organization-management/lib/entities/position-category/position-category.service.d.ts +10 -0
  170. package/organization-management/lib/entities/position-category/position-category.types.d.ts +7 -0
  171. package/organization-management/lib/entities/responsibility/index.d.ts +3 -0
  172. package/organization-management/lib/entities/responsibility/responsibility.entity.d.ts +3 -0
  173. package/organization-management/lib/entities/responsibility/responsibility.module.d.ts +7 -0
  174. package/organization-management/lib/entities/responsibility/responsibility.service.d.ts +10 -0
  175. package/organization-management/lib/entities/responsibility/responsibility.types.d.ts +6 -0
  176. package/organization-management/lib/entities/responsibility-category/index.d.ts +3 -0
  177. package/organization-management/lib/entities/responsibility-category/responsibility-category.entity.d.ts +3 -0
  178. package/organization-management/lib/entities/responsibility-category/responsibility-category.module.d.ts +7 -0
  179. package/organization-management/lib/entities/responsibility-category/responsibility-category.service.d.ts +10 -0
  180. package/organization-management/lib/entities/responsibility-category/responsibility-category.types.d.ts +7 -0
  181. package/organization-management/lib/entities/role/role.types.d.ts +3 -0
  182. package/organization-management/lib/entities/role-category/index.d.ts +3 -0
  183. package/organization-management/lib/entities/role-category/role-category.entity.d.ts +3 -0
  184. package/organization-management/lib/entities/role-category/role-category.module.d.ts +6 -0
  185. package/organization-management/lib/entities/role-category/role-category.service.d.ts +10 -0
  186. package/organization-management/lib/entities/role-category/role-category.types.d.ts +7 -0
  187. package/organization-management/lib/entities/skill/index.d.ts +3 -0
  188. package/organization-management/lib/entities/skill/skill.entity.d.ts +3 -0
  189. package/organization-management/lib/entities/skill/skill.module.d.ts +6 -0
  190. package/organization-management/lib/entities/skill/skill.service.d.ts +10 -0
  191. package/organization-management/lib/entities/skill/skill.types.d.ts +6 -0
  192. package/organization-management/lib/entities/skill-category/index.d.ts +3 -0
  193. package/organization-management/lib/entities/skill-category/skill-category.entity.d.ts +3 -0
  194. package/organization-management/lib/entities/skill-category/skill-category.module.d.ts +6 -0
  195. package/organization-management/lib/entities/skill-category/skill-category.service.d.ts +10 -0
  196. package/organization-management/lib/entities/skill-category/skill-category.types.d.ts +7 -0
  197. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +38 -2
  198. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +38 -2
  199. package/organization-management/lib/organization-management.module.d.ts +17 -11
  200. package/package.json +1 -1
  201. package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +1 -4
  202. package/platform-management/lib/entities/promotion/promotion.datasource.d.ts +7 -0
  203. package/platform-management/lib/features/app-terms/components/notify-app/notify-app.component.d.ts +1 -2
  204. package/platform-management/lib/features/app-terms/pages/list/list-terms.component.d.ts +0 -1
  205. package/platform-management/lib/features/app-version/check-version.service.d.ts +1 -3
  206. package/platform-management/lib/features/app-version/components/list-versions/list-version.component.d.ts +2 -1
  207. package/platform-management/lib/features/app-version/components/notify-app/notify-app.component.d.ts +2 -3
  208. package/platform-management/lib/features/app-version/workflows/change-log.workflow.d.ts +8 -0
  209. package/fesm2022/acorex-modules-auth-blank.layout-B1a0710P.mjs +0 -18
  210. package/fesm2022/acorex-modules-auth-password.component-CLTZoufP.mjs +0 -59
  211. package/fesm2022/acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs +0 -40
  212. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs +0 -3755
  213. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-Ccj2AaJ1.mjs.map +0 -1
  214. package/fesm2022/acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs +0 -835
  215. package/fesm2022/acorex-modules-dashboard-management-home-dashboard-BXD0g_tp.mjs.map +0 -1
  216. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dw7YKb_h.mjs.map +0 -1
  217. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs +0 -52
  218. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs +0 -55
  219. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs +0 -37
  220. package/fesm2022/acorex-modules-issue-management-capture-screen.component-BMpafdHr.mjs +0 -28
  221. package/fesm2022/acorex-modules-organization-management-position.entity-DhPT9kzv.mjs.map +0 -1
  222. package/fesm2022/acorex-modules-organization-management-role.entity-C-AIIaDo.mjs.map +0 -1
  223. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BaYlXX3M.mjs.map +0 -1
  224. package/fesm2022/acorex-modules-platform-management-list-version.component-DB8pe9so.mjs.map +0 -1
@@ -62,12 +62,12 @@ class AddItemComponent extends AXBasePageComponent {
62
62
  }
63
63
  }
64
64
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AddItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AddItemComponent, isStandalone: true, selector: "ng-component", providers: [], usesInheritance: true, ngImport: i0, template: "<ax-form *translate=\"let t\" #form>\n <div class=\"ax-flex ax-flex-col ax-gap-4 ax-p-4\">\n <ax-form-field>\n <ax-label>{{t('choose') | async}} </ax-label>\n <ax-select-box [dataSource]=\"dataSource\" textField=\"title\" valueField=\"id\"\n (onValueChanged)=\"handleValueChanged($event)\">\n <ax-search-box></ax-search-box>\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n <!-- <ax-form-field>\n <ax-label>{{t('title') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"title\">\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-text-box>\n </ax-form-field> -->\n <ax-form-field>\n <ax-label>{{t('subtitle') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"subtitle\">\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{t('description') | async}} </ax-label>\n <ax-text-area [(ngModel)]=\"description\">\n </ax-text-area>\n </ax-form-field>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"> </ax-button>\n <ax-button color=\"primary\" [text]=\"t('save') | async\" (onClick)=\"handleSaveClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n</ax-form>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AddItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: AddItemComponent, isStandalone: true, selector: "ng-component", providers: [], usesInheritance: true, ngImport: i0, template: "<ax-form *translate=\"let t\" #form>\n <div class=\"ax-flex ax-flex-col ax-gap-4 ax-p-4\">\n <ax-form-field>\n <ax-label>{{t('choose') | async}} </ax-label>\n <ax-select-box [dataSource]=\"dataSource\" textField=\"title\" valueField=\"id\"\n (onValueChanged)=\"handleValueChanged($event)\">\n <ax-search-box></ax-search-box>\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n <!-- <ax-form-field>\n <ax-label>{{t('title') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"title\">\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-text-box>\n </ax-form-field> -->\n <ax-form-field>\n <ax-label>{{t('subtitle') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"subtitle\">\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{t('description') | async}} </ax-label>\n <ax-text-area [(ngModel)]=\"description\">\n </ax-text-area>\n </ax-form-field>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"> </ax-button>\n <ax-button color=\"primary\" [text]=\"t('save') | async\" (onClick)=\"handleSaveClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n</ax-form>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
67
67
  //
68
- AXSelectBoxModule }, { kind: "component", type: i3.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.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: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i6.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i6.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i6.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i7.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i9.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i10.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4.AXTranslatorDirective, selector: "[translate]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
+ AXSelectBoxModule }, { kind: "component", type: i3.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.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: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i6.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i6.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i6.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i7.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i9.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i10.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4.AXTranslatorDirective, selector: "[translate]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AddItemComponent, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AddItemComponent, decorators: [{
71
71
  type: Component,
72
72
  args: [{ imports: [
73
73
  CommonModule,
@@ -86,4 +86,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
86
86
  }], ctorParameters: () => [] });
87
87
 
88
88
  export { AddItemComponent };
89
- //# sourceMappingURL=acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs.map
89
+ //# sourceMappingURL=acorex-modules-organization-management-add-item.component-sP_aikRE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/add-item/add-item.component.ts","../../../../libs/modules/organization-management/src/lib/features/organization-chart/add-item/add-item.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataSource, AXDataSourceLoadCallback, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { ChangeDetectionStrategy, Component, inject, model } from '@angular/core';\nimport { AXMOrgChartService } from '../org-chart.service';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { AXMOrgChartConfigService } from '../org-chart-configuration.service';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n templateUrl: './add-item.component.html',\n imports: [\n CommonModule,\n FormsModule,\n //\n AXSelectBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXFormModule,\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTextBoxModule,\n AXTextAreaModule,\n AXTranslationModule\n ],\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AddItemComponent extends AXBasePageComponent {\n\n\n protected title: string;\n protected subtitle: string;\n protected description: string;\n\n selectItem: any;\n\n config: {\n query: AXDataSourceLoadCallback<any>,\n valueField: string;\n titleField: string;\n subtitleField?: string;\n descriptionField?: string;\n } = {\n valueField: 'id',\n titleField: 'title',\n query: () => Promise.resolve({ items: [], total: 0 })\n };\n\n constructor() {\n super();\n }\n\n protected dataSource = new AXDataSource<any>({\n pageSize: 10,\n key: this.config.valueField,\n load: async (e) => await this.config.query(e)\n });\n\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n this.close({\n id: this.selectItem[this.config.valueField],\n title: this.title,\n subtitle: this.subtitle,\n description: this.description\n });\n }\n }\n\n protected handleValueChanged(e: AXValueChangedEvent<any>) {\n this.selectItem = e.component.dataService.selectedItems[0];\n if (this.selectItem) {\n this.title = this.selectItem[this.config.titleField];\n if (this.config.subtitleField) {\n this.subtitle = this.selectItem[this.config.subtitleField];\n }\n if (this.config.descriptionField) {\n this.description = this.selectItem[this.config.descriptionField];\n }\n }\n }\n}\n","<ax-form *translate=\"let t\" #form>\n <div class=\"ax-flex ax-flex-col ax-gap-4 ax-p-4\">\n <ax-form-field>\n <ax-label>{{t('choose') | async}} </ax-label>\n <ax-select-box [dataSource]=\"dataSource\" textField=\"title\" valueField=\"id\"\n (onValueChanged)=\"handleValueChanged($event)\">\n <ax-search-box></ax-search-box>\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n <!-- <ax-form-field>\n <ax-label>{{t('title') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"title\">\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-text-box>\n </ax-form-field> -->\n <ax-form-field>\n <ax-label>{{t('subtitle') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"subtitle\">\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{t('description') | async}} </ax-label>\n <ax-text-area [(ngModel)]=\"description\">\n </ax-text-area>\n </ax-form-field>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"> </ax-button>\n <ax-button color=\"primary\" [text]=\"t('save') | async\" (onClick)=\"handleSaveClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n</ax-form>"],"names":["i4","i8","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCM,MAAO,gBAAiB,SAAQ,mBAAmB,CAAA;AAqBvD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAbT,QAAA,IAAA,CAAA,MAAM,GAMF;AACA,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,UAAU,EAAE,OAAO;AACnB,YAAA,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;SACrD;QAMO,IAAU,CAAA,UAAA,GAAG,IAAI,YAAY,CAAM;AAC3C,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU;AAC3B,YAAA,IAAI,EAAE,OAAO,CAAC,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7C,SAAA,CAAC;;IAGQ,MAAM,eAAe,CAA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BACZ,WAAW;;wBAEX,iBAAiB;wBACjB,cAAc;wBACd,aAAa;wBACb,YAAY;wBACZ,iBAAiB;wBACjB,iBAAiB;wBACjB,eAAe;wBACf,gBAAgB;wBAChB;AACD,qBAAA,EAAA,SAAA,EACU,EAAE,EAAA,eAAA,EACI,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m1CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-organization-management-add-item.component-sP_aikRE.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/add-item/add-item.component.ts","../../../../libs/modules/organization-management/src/lib/features/organization-chart/add-item/add-item.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataSource, AXDataSourceLoadCallback, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { ChangeDetectionStrategy, Component, inject, model } from '@angular/core';\nimport { AXMOrgChartService } from '../org-chart.service';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { AXMOrgChartConfigService } from '../org-chart-configuration.service';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n templateUrl: './add-item.component.html',\n imports: [\n CommonModule,\n FormsModule,\n //\n AXSelectBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXFormModule,\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTextBoxModule,\n AXTextAreaModule,\n AXTranslationModule\n ],\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AddItemComponent extends AXBasePageComponent {\n\n\n protected title: string;\n protected subtitle: string;\n protected description: string;\n\n selectItem: any;\n\n config: {\n query: AXDataSourceLoadCallback<any>,\n valueField: string;\n titleField: string;\n subtitleField?: string;\n descriptionField?: string;\n } = {\n valueField: 'id',\n titleField: 'title',\n query: () => Promise.resolve({ items: [], total: 0 })\n };\n\n constructor() {\n super();\n }\n\n protected dataSource = new AXDataSource<any>({\n pageSize: 10,\n key: this.config.valueField,\n load: async (e) => await this.config.query(e)\n });\n\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n this.close({\n id: this.selectItem[this.config.valueField],\n title: this.title,\n subtitle: this.subtitle,\n description: this.description\n });\n }\n }\n\n protected handleValueChanged(e: AXValueChangedEvent<any>) {\n this.selectItem = e.component.dataService.selectedItems[0];\n if (this.selectItem) {\n this.title = this.selectItem[this.config.titleField];\n if (this.config.subtitleField) {\n this.subtitle = this.selectItem[this.config.subtitleField];\n }\n if (this.config.descriptionField) {\n this.description = this.selectItem[this.config.descriptionField];\n }\n }\n }\n}\n","<ax-form *translate=\"let t\" #form>\n <div class=\"ax-flex ax-flex-col ax-gap-4 ax-p-4\">\n <ax-form-field>\n <ax-label>{{t('choose') | async}} </ax-label>\n <ax-select-box [dataSource]=\"dataSource\" textField=\"title\" valueField=\"id\"\n (onValueChanged)=\"handleValueChanged($event)\">\n <ax-search-box></ax-search-box>\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n <!-- <ax-form-field>\n <ax-label>{{t('title') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"title\">\n <ax-validation-rule rule=\"required\"> </ax-validation-rule>\n </ax-text-box>\n </ax-form-field> -->\n <ax-form-field>\n <ax-label>{{t('subtitle') | async}} </ax-label>\n <ax-text-box [(ngModel)]=\"subtitle\">\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{t('description') | async}} </ax-label>\n <ax-text-area [(ngModel)]=\"description\">\n </ax-text-area>\n </ax-form-field>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"> </ax-button>\n <ax-button color=\"primary\" [text]=\"t('save') | async\" (onClick)=\"handleSaveClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n</ax-form>"],"names":["i4","i8","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCM,MAAO,gBAAiB,SAAQ,mBAAmB,CAAA;AAqBvD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAbT,QAAA,IAAA,CAAA,MAAM,GAMF;AACA,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,UAAU,EAAE,OAAO;AACnB,YAAA,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;SACrD;QAMO,IAAU,CAAA,UAAA,GAAG,IAAI,YAAY,CAAM;AAC3C,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU;AAC3B,YAAA,IAAI,EAAE,OAAO,CAAC,KAAK,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC7C,SAAA,CAAC;;IAGQ,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE;AACxC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;YACrB,IAAI,CAAC,KAAK,CAAC;gBACT,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC3C,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,WAAW,EAAE,IAAI,CAAC;AACnB,aAAA,CAAC;;;AAII,IAAA,kBAAkB,CAAC,CAA2B,EAAA;AACtD,QAAA,IAAI,CA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eAAe,EACf,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,EAAA,aAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,cAAA,EAAA,MAAA,EAAA,cAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,SAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,maAChB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAKV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAnB5B,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;;wBAEX,iBAAiB;wBACjB,cAAc;wBACd,aAAa;wBACb,YAAY;wBACZ,iBAAiB;wBACjB,iBAAiB;wBACjB,eAAe;wBACf,gBAAgB;wBAChB;AACD,qBAAA,EAAA,SAAA,EACU,EAAE,EAAA,eAAA,EACI,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m1CAAA,EAAA;;;;;"}
@@ -20,7 +20,7 @@ import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/cor
20
20
  import { FormsModule } from '@angular/forms';
21
21
  import { RouterModule } from '@angular/router';
22
22
  import { RootConfig } from './acorex-modules-organization-management.mjs';
23
- import { A as AXMOrgChartConfigService } from './acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs';
23
+ import { A as AXMOrgChartConfigService } from './acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs';
24
24
 
25
25
  class AXMOrgChartConfigurationPage extends AXPBasePageComponent {
26
26
  constructor() {
@@ -79,8 +79,8 @@ class AXMOrgChartConfigurationPage extends AXPBasePageComponent {
79
79
  },
80
80
  ];
81
81
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartConfigurationPage, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
83
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMOrgChartConfigurationPage, isStandalone: true, selector: "ng-component", providers: [
82
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartConfigurationPage, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
83
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMOrgChartConfigurationPage, isStandalone: true, selector: "ng-component", providers: [
84
84
  AXMOrgChartConfigService,
85
85
  {
86
86
  provide: AXPBasePage,
@@ -92,7 +92,7 @@ class AXMOrgChartConfigurationPage extends AXPBasePageComponent {
92
92
  //
93
93
  AXMenuModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: i4.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXAlertModule }, { kind: "component", type: i5.AXAlertComponent, selector: "ax-alert", inputs: ["color", "timeOut"], outputs: ["colorChange", "onClosed", "timeOutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
94
94
  }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartConfigurationPage, decorators: [{
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartConfigurationPage, decorators: [{
96
96
  type: Component,
97
97
  args: [{ imports: [
98
98
  CommonModule,
@@ -121,4 +121,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
121
121
  }] });
122
122
 
123
123
  export { AXMOrgChartConfigurationPage };
124
- //# sourceMappingURL=acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs.map
124
+ //# sourceMappingURL=acorex-modules-organization-management-org-chart-configuration.page-CaNP3qwK.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-organization-management-org-chart-configuration.page-RuvkSheN.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.page.ts","../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.page.html"],"sourcesContent":["import { AXAlertModule } from '@acorex/components/alert';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXMenuModule } from '@acorex/components/menu';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPBasePage, AXPBasePageComponent, AXPPageLayoutComponent } from '@acorex/platform/themes/default';\nimport {\n AXPThemeLayoutBlockComponent,\n} from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\nimport { RootConfig } from '../../const';\nimport { AXMOrgChartConfigService } from './org-chart-configuration.service';\nimport { AXPActionMenuItem, AXPBreadcrumbItem } from '@acorex/platform/core';\n\n@Component({\n templateUrl: './org-chart-configuration.page.html',\n imports: [\n CommonModule,\n RouterModule,\n FormsModule,\n //\n AXPThemeLayoutBlockComponent,\n AXPPageLayoutComponent,\n //\n AXMenuModule,\n AXButtonModule,\n AXDropdownButtonModule,\n AXTranslationModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXCheckBoxModule,\n AXBreadcrumbsModule,\n AXAlertModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n AXMOrgChartConfigService,\n {\n provide: AXPBasePage,\n useExisting: AXMOrgChartConfigurationPage\n }\n ],\n})\nexport class AXMOrgChartConfigurationPage extends AXPBasePageComponent {\n protected readonly chartService = inject(AXMOrgChartConfigService);\n\n protected loadingStates = signal<{ [parent: string]: { [child: string]: boolean } | undefined }>({});\n\n protected readonly rootConfig = RootConfig;\n\n override async ngOnInit() {\n await super.ngOnInit();\n await this.chartService.load();\n }\n\n protected async togglePermission(parent: string, child: string) {\n //TODO: Check the async and loading\n\n // Set the loading state for this cell to true.\n this.loadingStates.update((states) => {\n if (!states[parent]) {\n states[parent] = {};\n }\n states[parent][child] = true;\n return states;\n });\n\n this.chartService.set(parent, child, !this.chartService.get(parent, child));\n\n await this.chartService.update();\n\n // Turn off the loading state.\n this.loadingStates.update((states) => {\n if (!states[parent]) {\n states[parent] = {};\n }\n states[parent][child] = false;\n return states;\n });\n }\n\n override async getPageTitle(): Promise<string> {\n return await this.translateService.translateAsync('chart-configuration.page-title', { scope: this.rootConfig.config.i18n });\n }\n\n override async getPageDescription(): Promise<string> {\n return await this.translateService.translateAsync('chart-configuration.page-description', { scope: this.rootConfig.config.i18n });\n }\n \n override async getSecondaryMenuItems(): Promise<AXPActionMenuItem[]> {\n return [\n {\n title: await this.translateService.translateAsync('chart-configuration.actions.reset', { scope: this.rootConfig.config.i18n }),\n icon: 'fa-light fa-rotate-left',\n color: 'primary',\n command: {\n name: 'reset',\n }\n }\n ];\n }\n override async getPageBreadcrumbs(): Promise<AXPBreadcrumbItem[]> {\n return [\n {\n title: await this.translateService.translateAsync('root-menu', { scope: this.rootConfig.config.i18n })\n },\n ];\n }\n}\n","<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n <div class=\"ax-flex ax-flex-col ax-gap-6 ax-w-full\">\n <div>\n <h3 class=\"ax-font-semibold ax-text-xl\">Relations Permissions</h3>\n <p class=\"ax-text-sm ax-opacity-85\">\n This matrix sets the relationships between nodes in your organization chart. Click a cell to toggle the\n relation between <span class=\"ax-text-danger-500\">Allowed</span> and\n <span class=\"ax-text-success-500\">Denied</span>.\n </p>\n </div>\n <!---------------- Matrix Table ---------------->\n <div class=\"ax-w-full ax-overflow-auto\">\n <table class=\"ax-table-auto ax-border-collapse ax-max-w-fit ax-border-surface ax-rounded-md\">\n <thead>\n <tr class=\"ax-dark-surface\">\n <!-- Top-left empty cell -->\n <th class=\"ax-border ax-dark-surface ax-p-4 ax-font-semibold ax-text-start\">Parent \\ Child</th>\n <!-- Horizontal headers -->\n @for ( type of chartService.types; track $index) {\n <th class=\"ax-border ax-dark-surface ax-p-4 ax-min-w-32 ax-text-center ax-font-semibold\">{{ type }}</th>\n }\n </tr>\n </thead>\n <tbody>\n <!-- For each parent type, render a row with alternating backgrounds -->\n @for ( parent of chartService.types; track $index) {\n <tr>\n <!-- Vertical header cell with custom header colors -->\n <td class=\"ax-border ax-dark-surface ax-p-4 ax-font-semibold ax-text-start\">{{ parent }}</td>\n <!-- Render a cell for each potential child type -->\n @for ( child of chartService.types; track $index) {\n <td class=\"ax-border ax-lightest-surface ax-border-surface ax-p-2\">\n <div class=\"ax-flex ax-justify-center ax-cursor-pointer ax-sm\">\n @let isLoading = loadingStates()[parent]?.[child];\n <ax-button\n look=\"blank\"\n [color]=\"chartService.isAllowed(parent, child) ? 'success' : 'danger'\"\n [text]=\"chartService.isAllowed(parent, child) ? 'Allowed' : 'Denied'\"\n [disabled]=\"isLoading\"\n (onClick)=\"togglePermission(parent, child)\"\n >\n @if(isLoading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div>\n <ax-alert [color]=\"'warning'\" class=\"ax-max-w-fit\">\n <ax-icon></ax-icon>\n <ax-title>Attention</ax-title>\n <ax-content>\n Changes made here will not update your current organization chart. They will only affect future charts or\n updates.\n </ax-content>\n </ax-alert>\n </div>\n </div>\n </axp-page-content>\n</axp-page-layout>\n"],"names":["i1","i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkDM,MAAO,4BAA6B,SAAQ,oBAAoB,CAAA;AA7BtE,IAAA,WAAA,GAAA;;AA8BqB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAExD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAiE,EAAE,CAAC;QAEjF,IAAU,CAAA,UAAA,GAAG,UAAU;AA4D3C;AA1DU,IAAA,MAAM,QAAQ,GAAA;AACrB,QAAA,MAAM,KAAK,CAAC,QAAQ,EAA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,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,EAChB,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,8BACnB,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAWJ,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBA7BxC,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,WAAW;;wBAEX,4BAA4B;wBAC5B,sBAAsB;;wBAEtB,YAAY;wBACZ,cAAc;wBACd,sBAAsB;wBACtB,mBAAmB;wBACnB,iBAAiB;wBACjB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,aAAa;qBACd,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACT,wBAAwB;AACxB,wBAAA;AACE,4BAAA,OAAO,EAAE,WAAW;AACpB,4BAAA,WAAW,EAA8B;AAC1C;AACF,qBAAA,EAAA,QAAA,EAAA,gjGAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-organization-management-org-chart-configuration.page-CaNP3qwK.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.page.ts","../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.page.html"],"sourcesContent":["import { AXAlertModule } from '@acorex/components/alert';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXMenuModule } from '@acorex/components/menu';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPBasePage, AXPBasePageComponent, AXPPageLayoutComponent } from '@acorex/platform/themes/default';\nimport {\n AXPThemeLayoutBlockComponent,\n} from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\nimport { RootConfig } from '../../const';\nimport { AXMOrgChartConfigService } from './org-chart-configuration.service';\nimport { AXPActionMenuItem, AXPBreadcrumbItem } from '@acorex/platform/core';\n\n@Component({\n templateUrl: './org-chart-configuration.page.html',\n imports: [\n CommonModule,\n RouterModule,\n FormsModule,\n //\n AXPThemeLayoutBlockComponent,\n AXPPageLayoutComponent,\n //\n AXMenuModule,\n AXButtonModule,\n AXDropdownButtonModule,\n AXTranslationModule,\n AXDecoratorModule,\n AXLoadingModule,\n AXCheckBoxModule,\n AXBreadcrumbsModule,\n AXAlertModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n AXMOrgChartConfigService,\n {\n provide: AXPBasePage,\n useExisting: AXMOrgChartConfigurationPage\n }\n ],\n})\nexport class AXMOrgChartConfigurationPage extends AXPBasePageComponent {\n protected readonly chartService = inject(AXMOrgChartConfigService);\n\n protected loadingStates = signal<{ [parent: string]: { [child: string]: boolean } | undefined }>({});\n\n protected readonly rootConfig = RootConfig;\n\n override async ngOnInit() {\n await super.ngOnInit();\n await this.chartService.load();\n }\n\n protected async togglePermission(parent: string, child: string) {\n //TODO: Check the async and loading\n\n // Set the loading state for this cell to true.\n this.loadingStates.update((states) => {\n if (!states[parent]) {\n states[parent] = {};\n }\n states[parent][child] = true;\n return states;\n });\n\n this.chartService.set(parent, child, !this.chartService.get(parent, child));\n\n await this.chartService.update();\n\n // Turn off the loading state.\n this.loadingStates.update((states) => {\n if (!states[parent]) {\n states[parent] = {};\n }\n states[parent][child] = false;\n return states;\n });\n }\n\n override async getPageTitle(): Promise<string> {\n return await this.translateService.translateAsync('chart-configuration.page-title', { scope: this.rootConfig.config.i18n });\n }\n\n override async getPageDescription(): Promise<string> {\n return await this.translateService.translateAsync('chart-configuration.page-description', { scope: this.rootConfig.config.i18n });\n }\n \n override async getSecondaryMenuItems(): Promise<AXPActionMenuItem[]> {\n return [\n {\n title: await this.translateService.translateAsync('chart-configuration.actions.reset', { scope: this.rootConfig.config.i18n }),\n icon: 'fa-light fa-rotate-left',\n color: 'primary',\n command: {\n name: 'reset',\n }\n }\n ];\n }\n override async getPageBreadcrumbs(): Promise<AXPBreadcrumbItem[]> {\n return [\n {\n title: await this.translateService.translateAsync('root-menu', { scope: this.rootConfig.config.i18n })\n },\n ];\n }\n}\n","<axp-page-layout *translate=\"let t\">\n <axp-page-content>\n <div class=\"ax-flex ax-flex-col ax-gap-6 ax-w-full\">\n <div>\n <h3 class=\"ax-font-semibold ax-text-xl\">Relations Permissions</h3>\n <p class=\"ax-text-sm ax-opacity-85\">\n This matrix sets the relationships between nodes in your organization chart. Click a cell to toggle the\n relation between <span class=\"ax-text-danger-500\">Allowed</span> and\n <span class=\"ax-text-success-500\">Denied</span>.\n </p>\n </div>\n <!---------------- Matrix Table ---------------->\n <div class=\"ax-w-full ax-overflow-auto\">\n <table class=\"ax-table-auto ax-border-collapse ax-max-w-fit ax-border-surface ax-rounded-md\">\n <thead>\n <tr class=\"ax-dark-surface\">\n <!-- Top-left empty cell -->\n <th class=\"ax-border ax-dark-surface ax-p-4 ax-font-semibold ax-text-start\">Parent \\ Child</th>\n <!-- Horizontal headers -->\n @for ( type of chartService.types; track $index) {\n <th class=\"ax-border ax-dark-surface ax-p-4 ax-min-w-32 ax-text-center ax-font-semibold\">{{ type }}</th>\n }\n </tr>\n </thead>\n <tbody>\n <!-- For each parent type, render a row with alternating backgrounds -->\n @for ( parent of chartService.types; track $index) {\n <tr>\n <!-- Vertical header cell with custom header colors -->\n <td class=\"ax-border ax-dark-surface ax-p-4 ax-font-semibold ax-text-start\">{{ parent }}</td>\n <!-- Render a cell for each potential child type -->\n @for ( child of chartService.types; track $index) {\n <td class=\"ax-border ax-lightest-surface ax-border-surface ax-p-2\">\n <div class=\"ax-flex ax-justify-center ax-cursor-pointer ax-sm\">\n @let isLoading = loadingStates()[parent]?.[child];\n <ax-button\n look=\"blank\"\n [color]=\"chartService.isAllowed(parent, child) ? 'success' : 'danger'\"\n [text]=\"chartService.isAllowed(parent, child) ? 'Allowed' : 'Denied'\"\n [disabled]=\"isLoading\"\n (onClick)=\"togglePermission(parent, child)\"\n >\n @if(isLoading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </div>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div>\n <ax-alert [color]=\"'warning'\" class=\"ax-max-w-fit\">\n <ax-icon></ax-icon>\n <ax-title>Attention</ax-title>\n <ax-content>\n Changes made here will not update your current organization chart. They will only affect future charts or\n updates.\n </ax-content>\n </ax-alert>\n </div>\n </div>\n </axp-page-content>\n</axp-page-layout>\n"],"names":["i1","i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkDM,MAAO,4BAA6B,SAAQ,oBAAoB,CAAA;AA7BtE,IAAA,WAAA,GAAA;;AA8BqB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAExD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAiE,EAAE,CAAC;QAEjF,IAAU,CAAA,UAAA,GAAG,UAAU;AA4D3C;AA1DU,IAAA,MAAM,QAAQ,GAAA;AACrB,QAAA,MAAM,KAAK,CAAC,QAAQ,EAAE;AACtB,QAAA,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AAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,EAChB,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,8BACnB,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAWJ,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBA7BxC,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,WAAW;;wBAEX,4BAA4B;wBAC5B,sBAAsB;;wBAEtB,YAAY;wBACZ,cAAc;wBACd,sBAAsB;wBACtB,mBAAmB;wBACnB,iBAAiB;wBACjB,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,aAAa;qBACd,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACT,wBAAwB;AACxB,wBAAA;AACE,4BAAA,OAAO,EAAE,WAAW;AACpB,4BAAA,WAAW,EAA8B;AAC1C;AACF,qBAAA,EAAA,QAAA,EAAA,gjGAAA,EAAA;;;;;"}
@@ -136,12 +136,12 @@ class AXMOrgChartConfigService {
136
136
  .scope(AXPPlatformScope.Tenant)
137
137
  .set(AXPOrganizationSetting.Relations, matrix);
138
138
  }
139
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
140
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartConfigService }); }
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
140
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartConfigService }); }
141
141
  }
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartConfigService, decorators: [{
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartConfigService, decorators: [{
143
143
  type: Injectable
144
144
  }] });
145
145
 
146
146
  export { AXMOrgChartConfigService as A };
147
- //# sourceMappingURL=acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs.map
147
+ //# sourceMappingURL=acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.service.ts"],"sourcesContent":["import { inject, Injectable, signal } from '@angular/core';\nimport { AXPSettingService } from '@acorex/platform/common';\nimport { AXPPlatformScope } from '@acorex/platform/core';\nimport { AXPOrganizationSetting } from '../../settings.keys';\nimport { AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS, AXMOrgChartNodePermission } from './org-chart.type';\n\n\n\n\n@Injectable()\nexport class AXMOrgChartConfigService {\n\n private readonly settingService = inject(AXPSettingService);\n //\n protected _types = Object.entries(AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS).map(c => c[1].type);\n\n public get types(): string[] {\n return this._types;\n }\n\n private _defaultPermissioEncoded = '011111100001011100000111100000011100011111110011111110011111110000000011000000000';\n\n public permissions = signal<AXMOrgChartNodePermission>(this.defaultPermissions());\n\n\n private defaultPermissions(): AXMOrgChartNodePermission {\n return this.decode(this._defaultPermissioEncoded);\n }\n\n\n private encode(\n permissions: AXMOrgChartNodePermission\n ): string {\n let str = '';\n for (const parent of this.types) {\n for (const child of this.types) {\n str += (permissions[parent]?.[child] ?? 0).toString();\n }\n }\n return str;\n }\n\n\n private decode(encoded: string): AXMOrgChartNodePermission {\n const result: AXMOrgChartNodePermission = {};\n const expectedLength = this.types.length * this.types.length;\n if (encoded.length !== expectedLength) {\n throw new Error(`Invalid permissions string length. Expected ${expectedLength} but got ${encoded.length}`);\n }\n let index = 0;\n for (const parent of this.types) {\n result[parent] = {};\n for (const child of this.types) {\n const char = encoded.charAt(index);\n result[parent][child] = parseInt(char, 10);\n index++;\n }\n }\n return result;\n }\n\n\n private decodeMatrix(matrix: number[][]): AXMOrgChartNodePermission {\n const newPermissions: AXMOrgChartNodePermission = {};\n this.types.forEach((parent, rowIndex) => {\n newPermissions[parent] = {};\n this.types.forEach((child, colIndex) => {\n newPermissions[parent][child] = matrix[rowIndex][colIndex];\n });\n });\n return newPermissions;\n }\n\n private validateEncodedValue(storedValue: unknown): AXMOrgChartNodePermission {\n try {\n if (typeof storedValue === 'string') {\n const expectedLength = this.types.length * this.types.length;\n // Check that the string is the correct length and only contains 0s and 1s.\n if (storedValue.length === expectedLength && /^[01]+$/.test(storedValue)) {\n return this.decode(storedValue);\n }\n } else if (Array.isArray(storedValue)) {\n // Validate the 2D array dimensions and values.\n if (\n storedValue.length === this.types.length &&\n storedValue.every(\n row =>\n Array.isArray(row) &&\n row.length === this.types.length &&\n row.every(val => val === 0 || val === 1)\n )\n ) {\n return this.decodeMatrix(storedValue);\n }\n } else if (typeof storedValue === 'object' && storedValue !== null) {\n // Validate that the object has all the required keys and that their values are 0 or 1.\n let valid = true;\n for (const parent of this.types) {\n if (!(parent in storedValue)) {\n valid = false;\n break;\n }\n const childPermissions = (storedValue as any)[parent];\n for (const child of this.types) {\n if (!(child in childPermissions) || (childPermissions[child] !== 0 && childPermissions[child] !== 1)) {\n valid = false;\n break;\n }\n }\n if (!valid) break;\n }\n if (valid) {\n return storedValue as AXMOrgChartNodePermission;\n }\n }\n } catch (error) {\n // In case of any errors during validation, fall back to default permissions.\n }\n // Return the default permissions if validation fails.\n return this.defaultPermissions();\n }\n\n\n public isAllowed(parent: string, child: string): boolean {\n return (this.permissions()[parent]?.[child] ?? 0) === 1;\n }\n\n\n public set(parent: string, child: string, value: boolean) {\n this.permissions.update((p) => {\n if (!p[parent]) {\n p[parent] = {};\n }\n p[parent][child] = value ? 1 : 0;\n return p;\n });\n }\n\n public get(parent: string, child: string): boolean {\n return this.permissions()[parent]?.[child] === 1;\n }\n\n\n public async load() {\n const storedValue = await this.settingService\n .scope(AXPPlatformScope.Tenant)\n .get(AXPOrganizationSetting.Relations);\n\n // Use the validation method to ensure the stored value is correct.\n if (storedValue) {\n const validatedPermissions = this.validateEncodedValue(storedValue);\n this.permissions.set(validatedPermissions);\n } else {\n this.permissions.set(this.defaultPermissions());\n }\n }\n\n public async update() {\n const matrix = this.encode(this.permissions());\n await this.settingService\n .scope(AXPPlatformScope.Tenant)\n .set(AXPOrganizationSetting.Relations, matrix);\n }\n\n}\n"],"names":[],"mappings":";;;;;;;MAUa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;AAGqB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;;QAEjD,IAAM,CAAA,MAAA,GAAG,MAAM,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAMtF,IAAwB,CAAA,wBAAA,GAAG,mFAAmF;QAE/G,IAAW,CAAA,WAAA,GAAG,MAAM,CAA4B,IAAI,CAAC,kBAAkB,EAAE,CAAC;AA8IpF;AApJG,IAAA,IAAW,K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,CAAC,MAAc,EAAE,KAAa,EAAA;AACpC,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;;AAI7C,IAAA,MAAM,IAAI,GAAA;AACb,QAAA,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAC1B,aAAA,KAAK,CAAC,gBAAgB,CAAC,MAAM;AAC7B,aAAA,GAAG,CAAC,sBAAsB,CAAC,SAAS,CAAC;;QAG1C,IAAI,WAAW,EAAE;YACb,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;AACnE,YAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,oBAAoB,CAAC;;aACvC;YACH,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;;;AAIhD,IAAA,MAAM,MAAM,GAAA;QACf,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAC9C,MAAM,IAAI,CAAC;AACN,aAAA,KAAK,CAAC,gBAAgB,CAAC,MAAM;AAC7B,aAAA,GAAG,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,CAAC;;8GAvJ7C,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAxB,wBAAwB,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;;;"}
1
+ {"version":3,"file":"acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs","sources":["../../../../libs/modules/organization-management/src/lib/features/organization-chart/org-chart-configuration.service.ts"],"sourcesContent":["import { inject, Injectable, signal } from '@angular/core';\nimport { AXPSettingService } from '@acorex/platform/common';\nimport { AXPPlatformScope } from '@acorex/platform/core';\nimport { AXPOrganizationSetting } from '../../settings.keys';\nimport { AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS, AXMOrgChartNodePermission } from './org-chart.type';\n\n\n\n\n@Injectable()\nexport class AXMOrgChartConfigService {\n\n private readonly settingService = inject(AXPSettingService);\n //\n protected _types = Object.entries(AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS).map(c => c[1].type);\n\n public get types(): string[] {\n return this._types;\n }\n\n private _defaultPermissioEncoded = '011111100001011100000111100000011100011111110011111110011111110000000011000000000';\n\n public permissions = signal<AXMOrgChartNodePermission>(this.defaultPermissions());\n\n\n private defaultPermissions(): AXMOrgChartNodePermission {\n return this.decode(this._defaultPermissioEncoded);\n }\n\n\n private encode(\n permissions: AXMOrgChartNodePermission\n ): string {\n let str = '';\n for (const parent of this.types) {\n for (const child of this.types) {\n str += (permissions[parent]?.[child] ?? 0).toString();\n }\n }\n return str;\n }\n\n\n private decode(encoded: string): AXMOrgChartNodePermission {\n const result: AXMOrgChartNodePermission = {};\n const expectedLength = this.types.length * this.types.length;\n if (encoded.length !== expectedLength) {\n throw new Error(`Invalid permissions string length. Expected ${expectedLength} but got ${encoded.length}`);\n }\n let index = 0;\n for (const parent of this.types) {\n result[parent] = {};\n for (const child of this.types) {\n const char = encoded.charAt(index);\n result[parent][child] = parseInt(char, 10);\n index++;\n }\n }\n return result;\n }\n\n\n private decodeMatrix(matrix: number[][]): AXMOrgChartNodePermission {\n const newPermissions: AXMOrgChartNodePermission = {};\n this.types.forEach((parent, rowIndex) => {\n newPermissions[parent] = {};\n this.types.forEach((child, colIndex) => {\n newPermissions[parent][child] = matrix[rowIndex][colIndex];\n });\n });\n return newPermissions;\n }\n\n private validateEncodedValue(storedValue: unknown): AXMOrgChartNodePermission {\n try {\n if (typeof storedValue === 'string') {\n const expectedLength = this.types.length * this.types.length;\n // Check that the string is the correct length and only contains 0s and 1s.\n if (storedValue.length === expectedLength && /^[01]+$/.test(storedValue)) {\n return this.decode(storedValue);\n }\n } else if (Array.isArray(storedValue)) {\n // Validate the 2D array dimensions and values.\n if (\n storedValue.length === this.types.length &&\n storedValue.every(\n row =>\n Array.isArray(row) &&\n row.length === this.types.length &&\n row.every(val => val === 0 || val === 1)\n )\n ) {\n return this.decodeMatrix(storedValue);\n }\n } else if (typeof storedValue === 'object' && storedValue !== null) {\n // Validate that the object has all the required keys and that their values are 0 or 1.\n let valid = true;\n for (const parent of this.types) {\n if (!(parent in storedValue)) {\n valid = false;\n break;\n }\n const childPermissions = (storedValue as any)[parent];\n for (const child of this.types) {\n if (!(child in childPermissions) || (childPermissions[child] !== 0 && childPermissions[child] !== 1)) {\n valid = false;\n break;\n }\n }\n if (!valid) break;\n }\n if (valid) {\n return storedValue as AXMOrgChartNodePermission;\n }\n }\n } catch (error) {\n // In case of any errors during validation, fall back to default permissions.\n }\n // Return the default permissions if validation fails.\n return this.defaultPermissions();\n }\n\n\n public isAllowed(parent: string, child: string): boolean {\n return (this.permissions()[parent]?.[child] ?? 0) === 1;\n }\n\n\n public set(parent: string, child: string, value: boolean) {\n this.permissions.update((p) => {\n if (!p[parent]) {\n p[parent] = {};\n }\n p[parent][child] = value ? 1 : 0;\n return p;\n });\n }\n\n public get(parent: string, child: string): boolean {\n return this.permissions()[parent]?.[child] === 1;\n }\n\n\n public async load() {\n const storedValue = await this.settingService\n .scope(AXPPlatformScope.Tenant)\n .get(AXPOrganizationSetting.Relations);\n\n // Use the validation method to ensure the stored value is correct.\n if (storedValue) {\n const validatedPermissions = this.validateEncodedValue(storedValue);\n this.permissions.set(validatedPermissions);\n } else {\n this.permissions.set(this.defaultPermissions());\n }\n }\n\n public async update() {\n const matrix = this.encode(this.permissions());\n await this.settingService\n .scope(AXPPlatformScope.Tenant)\n .set(AXPOrganizationSetting.Relations, matrix);\n }\n\n}\n"],"names":[],"mappings":";;;;;;;MAUa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;AAGqB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;;QAEjD,IAAM,CAAA,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kBADpC;;;;;"}
@@ -21,7 +21,7 @@ import { RouterModule } from '@angular/router';
21
21
  import get from 'lodash-es/get';
22
22
  import set from 'lodash-es/set';
23
23
  import { AXMOrganizationManagementDepartmentEntityService, AXMOrganizationManagementDivisionEntityService, AXMOrganizationManagementBranchEntityService, AXMOrganizationManagementEmployeeEntityService, AXMOrganizationManagementPositionEntityService, AXMOrganizationManagementChartEntityService, AXMOrganizationNodeType, AXM_ORG_CHART_NODE_TYPE_ENTITY_MAPPINGS, RootConfig, AXMOrganizationNodeTypeCategory } from './acorex-modules-organization-management.mjs';
24
- import { A as AXMOrgChartConfigService } from './acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs';
24
+ import { A as AXMOrgChartConfigService } from './acorex-modules-organization-management-org-chart-configuration.service-CtA19B8x.mjs';
25
25
  import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
26
26
  import { AXPExportService, AXPRegionalService } from '@acorex/platform/common';
27
27
  import { AXDialogService } from '@acorex/components/dialog';
@@ -151,10 +151,10 @@ class AXMOrgChartPrintService {
151
151
  async translateStatements(key) {
152
152
  return (await this.translationService.translateAsync(key, { scope: 'organization-management' })) + '...';
153
153
  }
154
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartPrintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
155
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartPrintService }); }
154
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartPrintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
155
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartPrintService }); }
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartPrintService, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartPrintService, decorators: [{
158
158
  type: Injectable
159
159
  }] });
160
160
 
@@ -434,7 +434,7 @@ class AXMOrgChartService {
434
434
  async addNode(data) {
435
435
  this.layoutService.setNavigationLoading(true);
436
436
  try {
437
- const component = (await import('./acorex-modules-organization-management-add-item.component-DE0Ek0dk.mjs')).AddItemComponent;
437
+ const component = (await import('./acorex-modules-organization-management-add-item.component-sP_aikRE.mjs')).AddItemComponent;
438
438
  const node = get(data, 'node');
439
439
  const type = get(data, 'config.type');
440
440
  const icon = get(data, 'config.icon');
@@ -551,10 +551,10 @@ class AXMOrgChartService {
551
551
  this.layoutService.setNavigationLoading(false);
552
552
  }
553
553
  }
554
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
555
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartService }); }
554
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
555
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartService }); }
556
556
  }
557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartService, decorators: [{
557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartService, decorators: [{
558
558
  type: Injectable
559
559
  }] });
560
560
 
@@ -936,8 +936,8 @@ class AXMOrgChartPage extends AXPBasePageComponent {
936
936
  ngOnDestroy() {
937
937
  this.clearChart(this.treeContainer().nativeElement);
938
938
  }
939
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartPage, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
940
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMOrgChartPage, isStandalone: true, selector: "ng-component", providers: [
939
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartPage, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
940
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMOrgChartPage, isStandalone: true, selector: "ng-component", providers: [
941
941
  AXMOrgChartConfigService,
942
942
  AXMOrgChartService,
943
943
  AXMOrgChartPrintService,
@@ -951,7 +951,7 @@ class AXMOrgChartPage extends AXPBasePageComponent {
951
951
  //
952
952
  AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
953
953
  }
954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOrgChartPage, decorators: [{
954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMOrgChartPage, decorators: [{
955
955
  type: Component,
956
956
  args: [{ imports: [
957
957
  CommonModule,
@@ -981,4 +981,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
981
981
  }] });
982
982
 
983
983
  export { AXMOrgChartPage };
984
- //# sourceMappingURL=acorex-modules-organization-management-org-chart.page-C2qYJxpY.mjs.map
984
+ //# sourceMappingURL=acorex-modules-organization-management-org-chart.page-B-TZkfTX.mjs.map