@acorex/modules 20.2.4-next.9 → 20.3.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/application-management/index.d.ts +49 -1
  2. package/calendar-management/index.d.ts +19 -1
  3. package/common/index.d.ts +50 -0
  4. package/contact-management/index.d.ts +40 -4
  5. package/content-management/index.d.ts +20 -2
  6. package/conversation/index.d.ts +34 -16
  7. package/dashboard-management/index.d.ts +11 -4
  8. package/data-management/index.d.ts +20 -2
  9. package/document-management/index.d.ts +36 -6
  10. package/fesm2022/acorex-modules-application-management.mjs +483 -286
  11. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  12. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BbO_ea5W.mjs → acorex-modules-auth-acorex-modules-auth-BTi7qTvr.mjs} +29 -12
  13. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BTi7qTvr.mjs.map +1 -0
  14. package/fesm2022/{acorex-modules-auth-app-chooser.component-y0HLrwJM.mjs → acorex-modules-auth-app-chooser.component-s4LYKAc7.mjs} +2 -2
  15. package/fesm2022/{acorex-modules-auth-app-chooser.component-y0HLrwJM.mjs.map → acorex-modules-auth-app-chooser.component-s4LYKAc7.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-auth-login.module-1U_5UgDs.mjs → acorex-modules-auth-login.module-DetWdAgo.mjs} +4 -4
  17. package/fesm2022/{acorex-modules-auth-login.module-1U_5UgDs.mjs.map → acorex-modules-auth-login.module-DetWdAgo.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-master.layout-DGsAGhOH.mjs → acorex-modules-auth-master.layout-BJRB1Vns.mjs} +2 -2
  19. package/fesm2022/{acorex-modules-auth-master.layout-DGsAGhOH.mjs.map → acorex-modules-auth-master.layout-BJRB1Vns.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-oauth-callback.component-CPHBV5bA.mjs → acorex-modules-auth-oauth-callback.component-DKHJoF3X.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-auth-oauth-callback.component-CPHBV5bA.mjs.map → acorex-modules-auth-oauth-callback.component-DKHJoF3X.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-auth-password.component-CF3ReHyw.mjs → acorex-modules-auth-password.component-B_vA7-vu.mjs} +2 -2
  23. package/fesm2022/{acorex-modules-auth-password.component-CF3ReHyw.mjs.map → acorex-modules-auth-password.component-B_vA7-vu.mjs.map} +1 -1
  24. package/fesm2022/{acorex-modules-auth-password.component-C85NgQxA.mjs → acorex-modules-auth-password.component-WUrm5Y6i.mjs} +2 -2
  25. package/fesm2022/{acorex-modules-auth-password.component-C85NgQxA.mjs.map → acorex-modules-auth-password.component-WUrm5Y6i.mjs.map} +1 -1
  26. package/fesm2022/{acorex-modules-auth-routes-BJh0Fwpy.mjs → acorex-modules-auth-routes-CYf17elA.mjs} +2 -2
  27. package/fesm2022/{acorex-modules-auth-routes-BJh0Fwpy.mjs.map → acorex-modules-auth-routes-CYf17elA.mjs.map} +1 -1
  28. package/fesm2022/acorex-modules-auth-show-profile-command-DjvX7n9K.mjs +53 -0
  29. package/fesm2022/acorex-modules-auth-show-profile-command-DjvX7n9K.mjs.map +1 -0
  30. package/fesm2022/{acorex-modules-auth-two-factor.module-Bsh2_A5L.mjs → acorex-modules-auth-two-factor.module-CeJGeuid.mjs} +2 -2
  31. package/fesm2022/{acorex-modules-auth-two-factor.module-Bsh2_A5L.mjs.map → acorex-modules-auth-two-factor.module-CeJGeuid.mjs.map} +1 -1
  32. package/fesm2022/{acorex-modules-auth-user-sessions.component-ChMkstLg.mjs → acorex-modules-auth-user-sessions.component-D0jQEJcC.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-auth-user-sessions.component-ChMkstLg.mjs.map → acorex-modules-auth-user-sessions.component-D0jQEJcC.mjs.map} +1 -1
  34. package/fesm2022/acorex-modules-auth.mjs +1 -1
  35. package/fesm2022/acorex-modules-calendar-management.mjs +92 -29
  36. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  37. package/fesm2022/{acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs → acorex-modules-common-manage-extra-properties.command-7prqQhV5.mjs} +15 -12
  38. package/fesm2022/acorex-modules-common-manage-extra-properties.command-7prqQhV5.mjs.map +1 -0
  39. package/fesm2022/acorex-modules-common.mjs +106 -8
  40. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  41. package/fesm2022/acorex-modules-contact-management.mjs +280 -122
  42. package/fesm2022/acorex-modules-contact-management.mjs.map +1 -1
  43. package/fesm2022/acorex-modules-content-management.mjs +555 -490
  44. package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
  45. package/fesm2022/acorex-modules-conversation.mjs +315 -252
  46. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  47. package/fesm2022/{acorex-modules-customer-management-acorex-modules-customer-management-DZBixdOT.mjs → acorex-modules-customer-management-acorex-modules-customer-management-BHs4rrB8.mjs} +12 -12
  48. package/fesm2022/{acorex-modules-customer-management-acorex-modules-customer-management-DZBixdOT.mjs.map → acorex-modules-customer-management-acorex-modules-customer-management-BHs4rrB8.mjs.map} +1 -1
  49. package/fesm2022/{acorex-modules-customer-management-activity.entity-By32mnXN.mjs → acorex-modules-customer-management-activity.entity-D_9Nut_6.mjs} +2 -2
  50. package/fesm2022/{acorex-modules-customer-management-activity.entity-By32mnXN.mjs.map → acorex-modules-customer-management-activity.entity-D_9Nut_6.mjs.map} +1 -1
  51. package/fesm2022/{acorex-modules-customer-management-customer-segment.entity-CjFYqTMc.mjs → acorex-modules-customer-management-customer-segment.entity-swBR8-dJ.mjs} +2 -2
  52. package/fesm2022/{acorex-modules-customer-management-customer-segment.entity-CjFYqTMc.mjs.map → acorex-modules-customer-management-customer-segment.entity-swBR8-dJ.mjs.map} +1 -1
  53. package/fesm2022/{acorex-modules-customer-management-customer-type.entity-Bk_Ng_DS.mjs → acorex-modules-customer-management-customer-type.entity-GmfdE2Ex.mjs} +2 -2
  54. package/fesm2022/{acorex-modules-customer-management-customer-type.entity-Bk_Ng_DS.mjs.map → acorex-modules-customer-management-customer-type.entity-GmfdE2Ex.mjs.map} +1 -1
  55. package/fesm2022/{acorex-modules-customer-management-customer.entity-rUNC9glL.mjs → acorex-modules-customer-management-customer.entity-Bld5nRai.mjs} +23 -23
  56. package/fesm2022/acorex-modules-customer-management-customer.entity-Bld5nRai.mjs.map +1 -0
  57. package/fesm2022/{acorex-modules-customer-management-deal-contact-role.entity-BWX44lzi.mjs → acorex-modules-customer-management-deal-contact-role.entity-Ci_ymO_w.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-customer-management-deal-contact-role.entity-BWX44lzi.mjs.map → acorex-modules-customer-management-deal-contact-role.entity-Ci_ymO_w.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-customer-management-lead.entity-B3gv0YnT.mjs → acorex-modules-customer-management-lead.entity-BcQvYHnL.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-customer-management-lead.entity-B3gv0YnT.mjs.map → acorex-modules-customer-management-lead.entity-BcQvYHnL.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-customer-management-lifecycle-stage.entity-cs1hb_Ro.mjs → acorex-modules-customer-management-lifecycle-stage.entity-DSZyAv5_.mjs} +2 -2
  62. package/fesm2022/{acorex-modules-customer-management-lifecycle-stage.entity-cs1hb_Ro.mjs.map → acorex-modules-customer-management-lifecycle-stage.entity-DSZyAv5_.mjs.map} +1 -1
  63. package/fesm2022/{acorex-modules-customer-management-opportunity-stage.entity-C-opdmDW.mjs → acorex-modules-customer-management-opportunity-stage.entity-BpwLN_fw.mjs} +2 -2
  64. package/fesm2022/{acorex-modules-customer-management-opportunity-stage.entity-C-opdmDW.mjs.map → acorex-modules-customer-management-opportunity-stage.entity-BpwLN_fw.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-customer-management-opportunity.entity-D5n_4xgK.mjs → acorex-modules-customer-management-opportunity.entity-DaiL4951.mjs} +2 -2
  66. package/fesm2022/{acorex-modules-customer-management-opportunity.entity-D5n_4xgK.mjs.map → acorex-modules-customer-management-opportunity.entity-DaiL4951.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-customer-management-sales-pipeline.entity-AeLhcil2.mjs → acorex-modules-customer-management-sales-pipeline.entity-DP_w8V9E.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-customer-management-sales-pipeline.entity-AeLhcil2.mjs.map → acorex-modules-customer-management-sales-pipeline.entity-DP_w8V9E.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-customer-management-sales-territory.entity-uK9N7p_k.mjs → acorex-modules-customer-management-sales-territory.entity-BJNrmMO3.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-customer-management-sales-territory.entity-uK9N7p_k.mjs.map → acorex-modules-customer-management-sales-territory.entity-BJNrmMO3.mjs.map} +1 -1
  71. package/fesm2022/acorex-modules-customer-management.mjs +1 -1
  72. package/fesm2022/acorex-modules-dashboard-management.mjs +182 -54
  73. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  74. package/fesm2022/acorex-modules-data-management.mjs +93 -28
  75. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  76. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CiVbcZ81.mjs → acorex-modules-document-management-acorex-modules-document-management-BV6piYsz.mjs} +1037 -926
  77. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BV6piYsz.mjs.map +1 -0
  78. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-iRZU056o.mjs → acorex-modules-document-management-attachment-widget.component-DVXmIiQt.mjs} +2 -2
  79. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-iRZU056o.mjs.map → acorex-modules-document-management-attachment-widget.component-DVXmIiQt.mjs.map} +1 -1
  80. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-DCoD73F7.mjs → acorex-modules-document-management-create-folder-dialog.component-CiT3wteQ.mjs} +2 -2
  81. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-DCoD73F7.mjs.map → acorex-modules-document-management-create-folder-dialog.component-CiT3wteQ.mjs.map} +1 -1
  82. package/fesm2022/{acorex-modules-document-management-details-view.component-D0JuVG8v.mjs → acorex-modules-document-management-details-view.component-BXUpaDZO.mjs} +2 -2
  83. package/fesm2022/{acorex-modules-document-management-details-view.component-D0JuVG8v.mjs.map → acorex-modules-document-management-details-view.component-BXUpaDZO.mjs.map} +1 -1
  84. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-B-VnHqr3.mjs → acorex-modules-document-management-document-signature-popup.component-D3GahdPn.mjs} +2 -2
  85. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-B-VnHqr3.mjs.map → acorex-modules-document-management-document-signature-popup.component-D3GahdPn.mjs.map} +1 -1
  86. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BdIU8PXg.mjs → acorex-modules-document-management-drive-choose.component-Bbms4LAS.mjs} +2 -2
  87. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BdIU8PXg.mjs.map → acorex-modules-document-management-drive-choose.component-Bbms4LAS.mjs.map} +1 -1
  88. package/fesm2022/{acorex-modules-document-management-drive.component-DGQD1adR.mjs → acorex-modules-document-management-drive.component-DfHDC5o7.mjs} +2 -2
  89. package/fesm2022/{acorex-modules-document-management-drive.component-DGQD1adR.mjs.map → acorex-modules-document-management-drive.component-DfHDC5o7.mjs.map} +1 -1
  90. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-Ch9CAOwx.mjs → acorex-modules-document-management-large-icons-view.component-BPmfNI3J.mjs} +2 -2
  91. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-Ch9CAOwx.mjs.map → acorex-modules-document-management-large-icons-view.component-BPmfNI3J.mjs.map} +1 -1
  92. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DgGef-W5.mjs → acorex-modules-document-management-large-tiles-view.component-6fjTzrwf.mjs} +2 -2
  93. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DgGef-W5.mjs.map → acorex-modules-document-management-large-tiles-view.component-6fjTzrwf.mjs.map} +1 -1
  94. package/fesm2022/{acorex-modules-document-management-list-view.component-DK6IZdC0.mjs → acorex-modules-document-management-list-view.component-DeBNY8Aj.mjs} +2 -2
  95. package/fesm2022/{acorex-modules-document-management-list-view.component-DK6IZdC0.mjs.map → acorex-modules-document-management-list-view.component-DeBNY8Aj.mjs.map} +1 -1
  96. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BV7PYxuz.mjs → acorex-modules-document-management-permission-definition.provider-Bn-umdXX.mjs} +2 -2
  97. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BV7PYxuz.mjs.map → acorex-modules-document-management-permission-definition.provider-Bn-umdXX.mjs.map} +1 -1
  98. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C37tOs99.mjs → acorex-modules-document-management-rename-node-dialog.component-LRFo58Xg.mjs} +2 -2
  99. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C37tOs99.mjs.map → acorex-modules-document-management-rename-node-dialog.component-LRFo58Xg.mjs.map} +1 -1
  100. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-D0NHNq4W.mjs → acorex-modules-document-management-small-icons-view.component-BlQ3EhiJ.mjs} +2 -2
  101. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-D0NHNq4W.mjs.map → acorex-modules-document-management-small-icons-view.component-BlQ3EhiJ.mjs.map} +1 -1
  102. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DLNbw_y5.mjs → acorex-modules-document-management-small-tiles-view.component-BM2Uj_Wz.mjs} +2 -2
  103. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DLNbw_y5.mjs.map → acorex-modules-document-management-small-tiles-view.component-BM2Uj_Wz.mjs.map} +1 -1
  104. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  105. package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-BvDYd3fI.mjs → acorex-modules-help-desk-acorex-modules-help-desk-C4s1EVQy.mjs} +123 -49
  106. package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-C4s1EVQy.mjs.map +1 -0
  107. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-DH_FG8iE.mjs → acorex-modules-help-desk-capture-screen.component-BLZbJmw1.mjs} +2 -2
  108. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-DH_FG8iE.mjs.map → acorex-modules-help-desk-capture-screen.component-BLZbJmw1.mjs.map} +1 -1
  109. package/fesm2022/acorex-modules-help-desk.mjs +1 -1
  110. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-By3qopAk.mjs +1519 -0
  111. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-By3qopAk.mjs.map +1 -0
  112. package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs → acorex-modules-human-capital-management-employee-skill.entity-DRUHGUnT.mjs} +17 -17
  113. package/fesm2022/acorex-modules-human-capital-management-employee-skill.entity-DRUHGUnT.mjs.map +1 -0
  114. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs → acorex-modules-human-capital-management-employee.entity-Cn9GnmJE.mjs} +37 -15
  115. package/fesm2022/acorex-modules-human-capital-management-employee.entity-Cn9GnmJE.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs → acorex-modules-human-capital-management-employment-type.entity-BveY2th_.mjs} +11 -10
  117. package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-BveY2th_.mjs.map +1 -0
  118. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CIm3XrTb.mjs +267 -0
  119. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-CIm3XrTb.mjs.map +1 -0
  120. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-COan6Cnw.mjs +95 -0
  121. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-COan6Cnw.mjs.map +1 -0
  122. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs → acorex-modules-human-capital-management-position-assignment.entity-BJw9jR1o.mjs} +14 -14
  123. package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BJw9jR1o.mjs.map +1 -0
  124. package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs → acorex-modules-human-capital-management-skill-level.entity-CZe8y_hA.mjs} +10 -10
  125. package/fesm2022/acorex-modules-human-capital-management-skill-level.entity-CZe8y_hA.mjs.map +1 -0
  126. package/fesm2022/{acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs → acorex-modules-human-capital-management-skill.entity-CDXB7zyy.mjs} +8 -8
  127. package/fesm2022/acorex-modules-human-capital-management-skill.entity-CDXB7zyy.mjs.map +1 -0
  128. package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
  129. package/fesm2022/acorex-modules-locale-management.mjs +120 -13
  130. package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
  131. package/fesm2022/acorex-modules-location-management.mjs +125 -57
  132. package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
  133. package/fesm2022/acorex-modules-log-management.mjs +440 -164
  134. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  135. package/fesm2022/acorex-modules-meeting-management-meeting-schedule.entity-D-RQ-D3d.mjs +155 -0
  136. package/fesm2022/acorex-modules-meeting-management-meeting-schedule.entity-D-RQ-D3d.mjs.map +1 -0
  137. package/fesm2022/acorex-modules-meeting-management.mjs +654 -620
  138. package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -1
  139. package/fesm2022/acorex-modules-notification-management.mjs +835 -795
  140. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  141. package/fesm2022/{acorex-modules-party-management-acorex-modules-party-management-BshJoI7_.mjs → acorex-modules-party-management-acorex-modules-party-management-DzhGLAZb.mjs} +373 -230
  142. package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-DzhGLAZb.mjs.map +1 -0
  143. package/fesm2022/{acorex-modules-party-management-industry.entity-CoMI4imz.mjs → acorex-modules-party-management-industry.entity-sLrAmADa.mjs} +2 -2
  144. package/fesm2022/{acorex-modules-party-management-industry.entity-CoMI4imz.mjs.map → acorex-modules-party-management-industry.entity-sLrAmADa.mjs.map} +1 -1
  145. package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-D-VpvXeU.mjs → acorex-modules-party-management-party-identifier-type.entity-WL-tJlK7.mjs} +2 -2
  146. package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-D-VpvXeU.mjs.map → acorex-modules-party-management-party-identifier-type.entity-WL-tJlK7.mjs.map} +1 -1
  147. package/fesm2022/{acorex-modules-party-management-party-identifier.entity-BcXi9BM0.mjs → acorex-modules-party-management-party-identifier.entity-BGJdllN8.mjs} +2 -2
  148. package/fesm2022/{acorex-modules-party-management-party-identifier.entity-BcXi9BM0.mjs.map → acorex-modules-party-management-party-identifier.entity-BGJdllN8.mjs.map} +1 -1
  149. package/fesm2022/{acorex-modules-party-management-party-relationship.entity-B-gMK84C.mjs → acorex-modules-party-management-party-relationship.entity-Bhqgy4-Y.mjs} +2 -2
  150. package/fesm2022/{acorex-modules-party-management-party-relationship.entity-B-gMK84C.mjs.map → acorex-modules-party-management-party-relationship.entity-Bhqgy4-Y.mjs.map} +1 -1
  151. package/fesm2022/{acorex-modules-party-management-party-role.entity-OV4XUnfD.mjs → acorex-modules-party-management-party-role.entity-BpPCL3GG.mjs} +2 -2
  152. package/fesm2022/{acorex-modules-party-management-party-role.entity-OV4XUnfD.mjs.map → acorex-modules-party-management-party-role.entity-BpPCL3GG.mjs.map} +1 -1
  153. package/fesm2022/{acorex-modules-party-management-party.entity-Cwd9EqB4.mjs → acorex-modules-party-management-party.entity-v-YrPNOP.mjs} +2 -2
  154. package/fesm2022/{acorex-modules-party-management-party.entity-Cwd9EqB4.mjs.map → acorex-modules-party-management-party.entity-v-YrPNOP.mjs.map} +1 -1
  155. package/fesm2022/acorex-modules-party-management.mjs +1 -1
  156. package/fesm2022/acorex-modules-platform-management.mjs +444 -397
  157. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  158. package/fesm2022/acorex-modules-project-management-email-jsa.command-DC3Zbfdn.mjs +115 -0
  159. package/fesm2022/acorex-modules-project-management-email-jsa.command-DC3Zbfdn.mjs.map +1 -0
  160. package/fesm2022/acorex-modules-project-management-reassign-jsa.command-CJKR5FZw.mjs +113 -0
  161. package/fesm2022/acorex-modules-project-management-reassign-jsa.command-CJKR5FZw.mjs.map +1 -0
  162. package/fesm2022/acorex-modules-project-management-setup-jsa.command-Cztc8TDy.mjs +94 -0
  163. package/fesm2022/acorex-modules-project-management-setup-jsa.command-Cztc8TDy.mjs.map +1 -0
  164. package/fesm2022/acorex-modules-project-management-sign-jsa.command-b28tr2kE.mjs +77 -0
  165. package/fesm2022/acorex-modules-project-management-sign-jsa.command-b28tr2kE.mjs.map +1 -0
  166. package/fesm2022/acorex-modules-project-management.mjs +1416 -279
  167. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  168. package/fesm2022/acorex-modules-report-management.mjs +83 -15
  169. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  170. package/fesm2022/acorex-modules-security-management.mjs +4 -1
  171. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  172. package/fesm2022/{acorex-modules-task-management-task-board.page-Je2Y8X62.mjs → acorex-modules-task-management-task-board.page-CaypEYjP.mjs} +3 -1
  173. package/fesm2022/{acorex-modules-task-management-task-board.page-Je2Y8X62.mjs.map → acorex-modules-task-management-task-board.page-CaypEYjP.mjs.map} +1 -1
  174. package/fesm2022/acorex-modules-task-management.mjs +3254 -3069
  175. package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
  176. package/fesm2022/acorex-modules-training-management.mjs +1 -1
  177. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  178. package/help-desk/index.d.ts +32 -14
  179. package/human-capital-management/index.d.ts +150 -2
  180. package/locale-management/index.d.ts +27 -3
  181. package/location-management/index.d.ts +20 -2
  182. package/log-management/index.d.ts +8 -1
  183. package/meeting-management/index.d.ts +47 -20
  184. package/notification-management/index.d.ts +48 -36
  185. package/package.json +5 -5
  186. package/party-management/index.d.ts +43 -1
  187. package/platform-management/index.d.ts +33 -21
  188. package/project-management/index.d.ts +156 -3
  189. package/report-management/index.d.ts +14 -2
  190. package/task-management/index.d.ts +56 -2
  191. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BbO_ea5W.mjs.map +0 -1
  192. package/fesm2022/acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs.map +0 -1
  193. package/fesm2022/acorex-modules-customer-management-customer.entity-rUNC9glL.mjs.map +0 -1
  194. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CiVbcZ81.mjs.map +0 -1
  195. package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-BvDYd3fI.mjs.map +0 -1
  196. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs +0 -723
  197. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-D4A3ZYFq.mjs.map +0 -1
  198. package/fesm2022/acorex-modules-human-capital-management-employee-skill.entity-DfVvf8Fg.mjs.map +0 -1
  199. package/fesm2022/acorex-modules-human-capital-management-employee.entity-ByBqfKiF.mjs.map +0 -1
  200. package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-DZ8ubvD6.mjs.map +0 -1
  201. package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BtIVnv-C.mjs.map +0 -1
  202. package/fesm2022/acorex-modules-human-capital-management-skill-level.entity-DFCE3zcH.mjs.map +0 -1
  203. package/fesm2022/acorex-modules-human-capital-management-skill.entity-DPeTwYH4.mjs.map +0 -1
  204. package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-BshJoI7_.mjs.map +0 -1
@@ -1,8 +1,14 @@
1
- import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
2
- import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
1
+ import { AXPSearchCommandProvider, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
2
+ import { AXPEntityService, AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCrudActions, entityDetailsSimpleCondition, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, inject, Injector, NgModule } from '@angular/core';
4
+ import { inject, Injector, Injectable, NgModule } from '@angular/core';
5
+ import { AXPCommandExecutor, provideCommandSetups, AXPRuntimeModule } from '@acorex/platform/runtime';
6
+ import { AXP_IDENTIFIER_RULES } from '@acorex/modules/identifier-management';
5
7
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
8
+ import { AXPWidgetsList } from '@acorex/modules/common';
9
+ import { AXPWorkflowTaskProvider, AXP_WORKFLOW_TASK_PROVIDER } from '@acorex/platform/workflow';
10
+ import { AXTranslationService } from '@acorex/core/translation';
11
+ import { AXCalendarService } from '@acorex/core/date-time';
6
12
 
7
13
  const config = {
8
14
  i18n: 'project-management',
@@ -16,6 +22,18 @@ const RootConfig = {
16
22
  icon: 'fa-light fa-clipboard-list-check',
17
23
  },
18
24
  entities: {
25
+ jsa: {
26
+ name: 'Jsa',
27
+ title: `t("jsa", { scope: "${config.i18n}" })`,
28
+ titlePlural: `t("jsaPlural", { scope: "${config.i18n}" })`,
29
+ icon: 'fa-light fa-helmet-safety',
30
+ },
31
+ jsaAssignment: {
32
+ name: 'JsaAssignment',
33
+ title: `t("jsaAssignment", { scope: "${config.i18n}" })`,
34
+ titlePlural: `t("jsaAssignmentPlural", { scope: "${config.i18n}" })`,
35
+ icon: 'fa-light fa-user-check',
36
+ },
19
37
  sprintTask: {
20
38
  name: 'SprintTask',
21
39
  title: `t("sprintTask", { scope: "${config.i18n}" })`,
@@ -91,6 +109,227 @@ const RootConfig = {
91
109
  },
92
110
  };
93
111
 
112
+ class AXMEntityProvider {
113
+ constructor() {
114
+ this.injector = inject(Injector);
115
+ }
116
+ preload() {
117
+ const module = RootConfig.module.name;
118
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
119
+ module: module,
120
+ entity: entity.name,
121
+ }));
122
+ }
123
+ async get(moduleName, entityName) {
124
+ if (moduleName == RootConfig.module.name) {
125
+ switch (entityName) {
126
+ case RootConfig.entities.jsa.name: {
127
+ return (await Promise.resolve().then(function () { return jsa_entity; })).jsaFactory(this.injector);
128
+ }
129
+ case RootConfig.entities.jsaAssignment.name: {
130
+ return (await Promise.resolve().then(function () { return jsaAssignment_entity; })).jsaAssignmentFactory(this.injector);
131
+ }
132
+ case RootConfig.entities.project.name: {
133
+ return (await Promise.resolve().then(function () { return project_entity; })).projectFactory(this.injector);
134
+ }
135
+ case RootConfig.entities.projectType.name: {
136
+ return (await Promise.resolve().then(function () { return projectType_entity; })).projectTypeFactory(this.injector);
137
+ }
138
+ case RootConfig.entities.client.name: {
139
+ return (await Promise.resolve().then(function () { return client_entity; })).clientFactory(this.injector);
140
+ }
141
+ case RootConfig.entities.workSite.name: {
142
+ return (await Promise.resolve().then(function () { return workSite_entity; })).workSiteFactory(this.injector);
143
+ }
144
+ case RootConfig.entities.projectRoleMember.name: {
145
+ return (await Promise.resolve().then(function () { return projectRoleMember_entity; })).projectRoleMemberFactory(this.injector);
146
+ }
147
+ case RootConfig.entities.projectMemeber.name: {
148
+ return (await Promise.resolve().then(function () { return projectMemeber_entity; })).projectMemeberFactory(this.injector);
149
+ }
150
+ case RootConfig.entities.taskType.name: {
151
+ return (await Promise.resolve().then(function () { return taskType_entity; })).taskTypeFactory(this.injector);
152
+ }
153
+ case RootConfig.entities.task.name: {
154
+ return (await Promise.resolve().then(function () { return task_entity; })).taskFactory(this.injector);
155
+ }
156
+ case RootConfig.entities.sprint.name: {
157
+ return (await Promise.resolve().then(function () { return sprint_entity; })).sprintFactory(this.injector);
158
+ }
159
+ case RootConfig.entities.timeSheet.name: {
160
+ return (await Promise.resolve().then(function () { return timeSheet_entity; })).timeSheetFactory(this.injector);
161
+ }
162
+ case RootConfig.entities.taskHistory.name: {
163
+ return (await Promise.resolve().then(function () { return taskHistory_entity; })).taskHistoryFactory(this.injector);
164
+ }
165
+ case RootConfig.entities.sprintTask.name: {
166
+ return (await Promise.resolve().then(function () { return sprintTask_entity; })).sprintTaskFactory(this.injector);
167
+ }
168
+ }
169
+ }
170
+ return null;
171
+ }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
173
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider }); }
174
+ }
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider, decorators: [{
176
+ type: Injectable
177
+ }] });
178
+
179
+ class AXMMenuProvider {
180
+ constructor() {
181
+ this.entityService = inject(AXPEntityService);
182
+ }
183
+ async provide(context) {
184
+ const scope = RootConfig.config.i18n;
185
+ const module = RootConfig.module;
186
+ context.addItems([
187
+ {
188
+ priority: 9001,
189
+ text: `t('root-menu', {scope:"${scope}"})`,
190
+ icon: module.icon,
191
+ children: [
192
+ {
193
+ text: '@project-management:projectPlural',
194
+ path: this.entityService.createPath(module.name, RootConfig.entities.project.name),
195
+ icon: RootConfig.entities.project.icon,
196
+ priority: 1,
197
+ },
198
+ // {
199
+ // text: `t("ProjectMemebers", { scope: "common" })`,
200
+ // path: this.entityService.createPath(module.name, RootConfig.entities.projectMemeber.name),
201
+ // icon: RootConfig.entities.projectMemeber.icon,
202
+ // priority: 2,
203
+ // },
204
+ {
205
+ text: '@project-management:projectTypePlural',
206
+ path: this.entityService.createPath(module.name, RootConfig.entities.projectType.name),
207
+ icon: RootConfig.entities.projectType.icon,
208
+ priority: 2,
209
+ },
210
+ // {
211
+ // text: '@project-management:clientPlural',
212
+ // path: this.entityService.createPath(module.name, RootConfig.entities.client.name),
213
+ // icon: RootConfig.entities.client.icon,
214
+ // priority: 3,
215
+ // },
216
+ // {
217
+ // text: `t("Worksites", { scope: "common" })`,
218
+ // path: this.entityService.createPath(module.name, RootConfig.entities.workSite.name),
219
+ // icon: RootConfig.entities.workSite.icon,
220
+ // priority: 4,
221
+ // },
222
+ // {
223
+ // text: `t("ProjectRoleMember", { scope: "common" })`,
224
+ // path: this.entityService.createPath(module.name, RootConfig.entities.projectRoleMember.name),
225
+ // icon: RootConfig.entities.projectRoleMember.icon,
226
+ // priority: 5,
227
+ // },
228
+ {
229
+ text: '@project-management:taskPlural',
230
+ path: this.entityService.createPath(module.name, RootConfig.entities.task.name),
231
+ icon: RootConfig.entities.task.icon,
232
+ priority: 6,
233
+ },
234
+ {
235
+ text: '@project-management:taskTypePlural',
236
+ path: this.entityService.createPath(module.name, RootConfig.entities.taskType.name),
237
+ icon: RootConfig.entities.taskType.icon,
238
+ priority: 7,
239
+ },
240
+ {
241
+ text: '@project-management:sprintPlural',
242
+ path: this.entityService.createPath(module.name, RootConfig.entities.sprint.name),
243
+ icon: RootConfig.entities.sprint.icon,
244
+ priority: 9,
245
+ },
246
+ // {
247
+ // text: `t("Sprint Tasks", { scope: "common" })`,
248
+ // path: this.entityService.createPath(module.name, RootConfig.entities.sprintTask.name),
249
+ // icon: RootConfig.entities.sprintTask.icon,
250
+ // priority: 10,
251
+ // },
252
+ {
253
+ text: '@project-management:timeSheetPlural',
254
+ path: this.entityService.createPath(module.name, RootConfig.entities.timeSheet.name),
255
+ icon: RootConfig.entities.timeSheet.icon,
256
+ priority: 11,
257
+ },
258
+ {
259
+ text: '@project-management:jsa.plural-title',
260
+ path: this.entityService.createPath(module.name, RootConfig.entities.jsa.name),
261
+ icon: RootConfig.entities.jsa.icon,
262
+ priority: 12,
263
+ }
264
+ // {
265
+ // text: `t("Task history", { scope: "common" })`,
266
+ // path: this.entityService.createPath(module.name, RootConfig.entities.taskHistory.name),
267
+ // icon: RootConfig.entities.taskHistory.icon,
268
+ // priority: 12,
269
+ // }
270
+ ],
271
+ },
272
+ ]);
273
+ }
274
+ }
275
+
276
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
277
+ constructor() {
278
+ super(...arguments);
279
+ this.commands = [
280
+ // {
281
+ // group: 'command',
282
+ // title: 'New Form Template',
283
+ // icon: RootConfig.entities.template.icon,
284
+ // description: 'Create a new form template for designing reusable forms.', // Added description
285
+ // commands: {
286
+ // 'create-entity': {
287
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
288
+ // },
289
+ // },
290
+ // }
291
+ ];
292
+ }
293
+ }
294
+
295
+ class AXMSettingProvider {
296
+ async provide(context) {
297
+ // context
298
+ // // Add Form Template Group
299
+ // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
300
+ // // Start Interface Section
301
+ // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
302
+ // .addSetting({
303
+ // key: 'history-panel',
304
+ // title: 'Show History Panel',
305
+ // scope: 'U',
306
+ // isInherited: true,
307
+ // defaultValue: false,
308
+ // widget: {
309
+ // type: AXPWidgetsCatalog.toggle,
310
+ // },
311
+ // description: 'Enable or disable the history panel for forms.',
312
+ // validationRules: [
313
+ // {
314
+ // rule: 'required',
315
+ // },
316
+ // ],
317
+ // })
318
+ // .endSection()
319
+ // .endGroup();
320
+ }
321
+ }
322
+
323
+ const AXM_JSA_CODE_IDENTIFIER_RULE = {
324
+ id: 'jsa-code',
325
+ title: 'JSA Code',
326
+ entity: 'ProjectManagement.Jsa',
327
+ pattern: 'JSA-{date:YYYYMM}-{seq:4}',
328
+ enabled: true,
329
+ priority: 1,
330
+ scopeConfig: { byTenant: false, period: 'monthly', minValue: 1, blockSize: 0 },
331
+ };
332
+
94
333
  class AXMProjectService extends AXMEntityCrudServiceImpl {
95
334
  }
96
335
  class AXMProjectServiceImpl extends AXMProjectService {
@@ -5973,209 +6212,1162 @@ var sprintTask_entity = /*#__PURE__*/Object.freeze({
5973
6212
  sprintTaskFactory: sprintTaskFactory
5974
6213
  });
5975
6214
 
5976
- class AXMEntityProvider {
6215
+ class AXMProjectManagementJsaService extends AXMEntityCrudServiceImpl {
6216
+ }
6217
+ class AXMProjectManagementJsaServiceImpl extends AXMProjectManagementJsaService {
5977
6218
  constructor() {
5978
- this.injector = inject(Injector);
5979
- }
5980
- preload() {
5981
- const module = RootConfig.module.name;
5982
- return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
5983
- module: module,
5984
- entity: entity.name,
5985
- }));
5986
- }
5987
- async get(moduleName, entityName) {
5988
- if (moduleName == RootConfig.module.name) {
5989
- switch (entityName) {
5990
- case RootConfig.entities.project.name: {
5991
- return (await Promise.resolve().then(function () { return project_entity; })).projectFactory(this.injector);
5992
- }
5993
- case RootConfig.entities.projectType.name: {
5994
- return (await Promise.resolve().then(function () { return projectType_entity; })).projectTypeFactory(this.injector);
5995
- }
5996
- case RootConfig.entities.client.name: {
5997
- return (await Promise.resolve().then(function () { return client_entity; })).clientFactory(this.injector);
5998
- }
5999
- case RootConfig.entities.workSite.name: {
6000
- return (await Promise.resolve().then(function () { return workSite_entity; })).workSiteFactory(this.injector);
6001
- }
6002
- case RootConfig.entities.projectRoleMember.name: {
6003
- return (await Promise.resolve().then(function () { return projectRoleMember_entity; })).projectRoleMemberFactory(this.injector);
6004
- }
6005
- case RootConfig.entities.projectMemeber.name: {
6006
- return (await Promise.resolve().then(function () { return projectMemeber_entity; })).projectMemeberFactory(this.injector);
6007
- }
6008
- case RootConfig.entities.taskType.name: {
6009
- return (await Promise.resolve().then(function () { return taskType_entity; })).taskTypeFactory(this.injector);
6010
- }
6011
- case RootConfig.entities.task.name: {
6012
- return (await Promise.resolve().then(function () { return task_entity; })).taskFactory(this.injector);
6013
- }
6014
- case RootConfig.entities.sprint.name: {
6015
- return (await Promise.resolve().then(function () { return sprint_entity; })).sprintFactory(this.injector);
6016
- }
6017
- case RootConfig.entities.timeSheet.name: {
6018
- return (await Promise.resolve().then(function () { return timeSheet_entity; })).timeSheetFactory(this.injector);
6019
- }
6020
- case RootConfig.entities.taskHistory.name: {
6021
- return (await Promise.resolve().then(function () { return taskHistory_entity; })).taskHistoryFactory(this.injector);
6022
- }
6023
- case RootConfig.entities.sprintTask.name: {
6024
- return (await Promise.resolve().then(function () { return sprintTask_entity; })).sprintTaskFactory(this.injector);
6025
- }
6026
- }
6027
- }
6028
- return null;
6219
+ super(`${RootConfig.module.name}.${RootConfig.entities.jsa.name}`);
6029
6220
  }
6030
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6031
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider }); }
6221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6222
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaServiceImpl }); }
6032
6223
  }
6033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMEntityProvider, decorators: [{
6224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaServiceImpl, decorators: [{
6034
6225
  type: Injectable
6035
- }] });
6226
+ }], ctorParameters: () => [] });
6036
6227
 
6037
- class AXMMenuProvider {
6038
- constructor() {
6039
- this.entityService = inject(AXPEntityService);
6040
- }
6041
- async provide(context) {
6042
- const scope = RootConfig.config.i18n;
6043
- const module = RootConfig.module;
6044
- context.addItems([
6228
+ async function jsaFactory(injector) {
6229
+ const dataService = injector.get(AXMProjectManagementJsaService);
6230
+ const i18n = RootConfig.config.i18n;
6231
+ const commands = [
6232
+ {
6233
+ title: '@project-management:jsa.actions.sign',
6234
+ command: {
6235
+ name: 'ProjectManagement.Jsa:Sign',
6236
+ options: {
6237
+ id: '{{ context.eval("id") }}',
6238
+ }
6239
+ },
6240
+ priority: 'primary',
6241
+ type: 'sign',
6242
+ icon: 'fa-light fa-signature',
6243
+ scope: AXPEntityCommandScope.Individual,
6244
+ },
6245
+ {
6246
+ title: '@project-management:jsa.actions.setup',
6247
+ command: {
6248
+ name: 'ProjectManagement.Jsa:Setup',
6249
+ options: {
6250
+ id: '{{ context.eval("id") }}',
6251
+ }
6252
+ },
6253
+ priority: 'primary',
6254
+ type: 'setup',
6255
+ icon: 'fa-light fa-cog',
6256
+ scope: AXPEntityCommandScope.Individual,
6257
+ },
6258
+ {
6259
+ title: '@project-management:jsa.actions.email',
6260
+ command: {
6261
+ name: 'ProjectManagement.Jsa:Email',
6262
+ options: {
6263
+ id: '{{ context.eval("id") }}',
6264
+ }
6265
+ },
6266
+ priority: 'primary',
6267
+ type: 'send',
6268
+ icon: 'fa-light fa-envelope',
6269
+ scope: AXPEntityCommandScope.Individual,
6270
+ },
6271
+ ];
6272
+ const entityDef = {
6273
+ plugins: [
6274
+ { name: 'identifier', options: { field: 'docNo', rule: 'jsa-code' } },
6275
+ { name: 'history' },
6276
+ { name: 'archive' },
6277
+ { name: 'attachments' },
6278
+ { name: 'extra-properties' }
6279
+ ],
6280
+ module: RootConfig.module.name,
6281
+ name: RootConfig.entities.jsa.name,
6282
+ source: '',
6283
+ title: '@project-management:jsa.individual-title',
6284
+ icon: RootConfig.entities.jsa.icon,
6285
+ formats: {
6286
+ individual: '@project-management:jsa.individual-title',
6287
+ plural: '@project-management:jsa.plural-title',
6288
+ searchResult: { title: '{{ title }}', description: RootConfig.module.title },
6289
+ },
6290
+ relatedEntities: [
6045
6291
  {
6046
- priority: 9001,
6047
- text: `t('root-menu', {scope:"${scope}"})`,
6048
- icon: module.icon,
6049
- children: [
6050
- {
6051
- text: `t("Projects", { scope: "common" })`,
6052
- path: this.entityService.createPath(module.name, RootConfig.entities.project.name),
6053
- icon: RootConfig.entities.project.icon,
6054
- priority: 1,
6292
+ entity: `${RootConfig.module.name}.${RootConfig.entities.jsaAssignment.name}`,
6293
+ title: '@project-management:jsa-assignment.assignment-info',
6294
+ columns: ['staffUserId', 'viewedOnApp', 'signedOff', 'signedOffAt'],
6295
+ conditions: [entityDetailsSimpleCondition('jsaId')],
6296
+ actions: [...entityDetailsCrudActions('jsaId')],
6297
+ layout: { type: 'tab-list', position: 'after', order: 2 },
6298
+ },
6299
+ ],
6300
+ groups: [
6301
+ { id: 'basic-info', title: '@general:terms.basic-info' },
6302
+ { id: 'project-details', title: '@project-management:jsa.project-details' },
6303
+ { id: 'people', title: '@general:terms.people' },
6304
+ { id: 'settings', title: '@general:terms.settings' },
6305
+ ],
6306
+ properties: [
6307
+ { name: 'id', title: 'ID', groupId: 'basic-info', schema: { dataType: 'uuid', hidden: true, nullable: false, readonly: true, unique: { enabled: true } } },
6308
+ {
6309
+ name: 'docNo',
6310
+ title: '@project-management:jsa.docNo',
6311
+ groupId: 'basic-info',
6312
+ options: {
6313
+ sort: { enabled: true },
6314
+ filter: {
6315
+ advance: { enabled: true },
6316
+ inline: { enabled: true },
6055
6317
  },
6056
- // {
6057
- // text: `t("ProjectMemebers", { scope: "common" })`,
6058
- // path: this.entityService.createPath(module.name, RootConfig.entities.projectMemeber.name),
6059
- // icon: RootConfig.entities.projectMemeber.icon,
6060
- // priority: 2,
6061
- // },
6062
- {
6063
- text: `t("Project Types", { scope: "common" })`,
6064
- path: this.entityService.createPath(module.name, RootConfig.entities.projectType.name),
6065
- icon: RootConfig.entities.projectType.icon,
6066
- priority: 2,
6318
+ },
6319
+ schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
6320
+ validations: [{ rule: 'required' }]
6321
+ },
6322
+ {
6323
+ name: 'customerId',
6324
+ title: '@project-management:jsa.customer',
6325
+ groupId: 'project-details',
6326
+ options: {
6327
+ sort: { enabled: true },
6328
+ filter: {
6329
+ advance: { enabled: true },
6330
+ inline: { enabled: true },
6067
6331
  },
6068
- {
6069
- text: `t("Clients", { scope: "common" })`,
6070
- path: this.entityService.createPath(module.name, RootConfig.entities.client.name),
6071
- icon: RootConfig.entities.client.icon,
6072
- priority: 3,
6332
+ },
6333
+ schema: {
6334
+ dataType: 'string',
6335
+ interface: {
6336
+ type: AXPWidgetsList.Editors.LookupBox,
6337
+ options: {
6338
+ entity: 'CustomerManagement.Customer',
6339
+ textField: 'party.displayName',
6340
+ valueField: 'id',
6341
+ look: 'select',
6342
+ columns: ['party.displayName', 'customerCode'],
6343
+ expose: [
6344
+ { source: 'id', target: 'customer.id' },
6345
+ { source: 'party.displayName', target: 'customer.party.displayName' },
6346
+ { source: 'party.id', target: 'customer.partyId' },
6347
+ ],
6348
+ },
6073
6349
  },
6074
- // {
6075
- // text: `t("Worksites", { scope: "common" })`,
6076
- // path: this.entityService.createPath(module.name, RootConfig.entities.workSite.name),
6077
- // icon: RootConfig.entities.workSite.icon,
6078
- // priority: 4,
6079
- // },
6080
- // {
6081
- // text: `t("ProjectRoleMember", { scope: "common" })`,
6082
- // path: this.entityService.createPath(module.name, RootConfig.entities.projectRoleMember.name),
6083
- // icon: RootConfig.entities.projectRoleMember.icon,
6084
- // priority: 5,
6085
- // },
6086
- {
6087
- text: `t("Tasks", { scope: "common" })`,
6088
- path: this.entityService.createPath(module.name, RootConfig.entities.task.name),
6089
- icon: RootConfig.entities.task.icon,
6090
- priority: 6,
6350
+ },
6351
+ validations: [{ rule: 'required' }],
6352
+ },
6353
+ {
6354
+ name: 'workSiteId',
6355
+ title: '@project-management:jsa.workSite',
6356
+ groupId: 'project-details',
6357
+ options: {
6358
+ sort: { enabled: true },
6359
+ filter: {
6360
+ advance: { enabled: true },
6361
+ inline: { enabled: true },
6091
6362
  },
6092
- {
6093
- text: `t("Task Type", { scope: "common" })`,
6094
- path: this.entityService.createPath(module.name, RootConfig.entities.taskType.name),
6095
- icon: RootConfig.entities.taskType.icon,
6096
- priority: 7,
6363
+ },
6364
+ schema: {
6365
+ dataType: 'string',
6366
+ interface: {
6367
+ type: AXPWidgetsList.Editors.LookupBox,
6368
+ options: {
6369
+ entity: 'LocationManagement.Location',
6370
+ textField: 'title',
6371
+ valueField: 'id',
6372
+ look: 'select',
6373
+ columns: ['title', 'street1', 'cityId', 'stateId', 'postalCode', 'country.title'],
6374
+ expose: [
6375
+ { source: 'id', target: 'workSite.id' },
6376
+ { source: 'title', target: 'workSite.title' },
6377
+ ],
6378
+ filter: {
6379
+ logic: 'and',
6380
+ filters: [
6381
+ {
6382
+ field: 'reference.id',
6383
+ operator: { type: 'equal' },
6384
+ value: '{{ context.eval("customer.partyId") }}',
6385
+ }
6386
+ ],
6387
+ },
6388
+ },
6389
+ triggers: [
6390
+ {
6391
+ event: "{{ events.context('customerId') }}",
6392
+ action: `{{ widget.refresh() }}`,
6393
+ },
6394
+ ],
6097
6395
  },
6098
- {
6099
- text: `t("Sprints", { scope: "common" })`,
6100
- path: this.entityService.createPath(module.name, RootConfig.entities.sprint.name),
6101
- icon: RootConfig.entities.sprint.icon,
6102
- priority: 9,
6396
+ },
6397
+ validations: [{ rule: 'required' }],
6398
+ },
6399
+ {
6400
+ name: 'jobNo',
6401
+ title: '@project-management:jsa.jobNo',
6402
+ groupId: 'project-details',
6403
+ options: {
6404
+ sort: { enabled: true },
6405
+ filter: {
6406
+ advance: { enabled: true },
6407
+ inline: { enabled: true },
6103
6408
  },
6104
- // {
6105
- // text: `t("Sprint Tasks", { scope: "common" })`,
6106
- // path: this.entityService.createPath(module.name, RootConfig.entities.sprintTask.name),
6107
- // icon: RootConfig.entities.sprintTask.icon,
6108
- // priority: 10,
6109
- // },
6110
- {
6111
- text: `t("TimeSheet", { scope: "common" })`,
6112
- path: this.entityService.createPath(module.name, RootConfig.entities.timeSheet.name),
6113
- icon: RootConfig.entities.timeSheet.icon,
6114
- priority: 11,
6115
- }
6116
- // {
6117
- // text: `t("Task history", { scope: "common" })`,
6118
- // path: this.entityService.createPath(module.name, RootConfig.entities.taskHistory.name),
6119
- // icon: RootConfig.entities.taskHistory.icon,
6120
- // priority: 12,
6121
- // }
6122
- ],
6409
+ },
6410
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }
6411
+ },
6412
+ {
6413
+ name: 'title',
6414
+ title: '@general:terms.title',
6415
+ groupId: 'basic-info',
6416
+ options: {
6417
+ sort: { enabled: true },
6418
+ filter: {
6419
+ advance: { enabled: true },
6420
+ inline: { enabled: true },
6421
+ },
6422
+ },
6423
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
6424
+ validations: [{ rule: 'required' }]
6425
+ },
6426
+ {
6427
+ name: 'assignedToUserId',
6428
+ title: '@project-management:assignedTo',
6429
+ groupId: 'people',
6430
+ options: {
6431
+ sort: { enabled: true },
6432
+ filter: {
6433
+ advance: { enabled: true },
6434
+ inline: { enabled: true },
6435
+ },
6436
+ },
6437
+ schema: {
6438
+ dataType: 'string',
6439
+ interface: {
6440
+ type: AXPWidgetsList.Editors.LookupBox,
6441
+ options: {
6442
+ entity: 'SecurityManagement.User',
6443
+ textField: 'displayName',
6444
+ valueField: 'id',
6445
+ look: 'select',
6446
+ columns: ['displayName'],
6447
+ expose: [
6448
+ { source: 'id', target: 'assignedToUser.id' },
6449
+ { source: 'displayName', target: 'assignedToUser.displayName' },
6450
+ ],
6451
+ },
6452
+ },
6453
+ },
6454
+ validations: [{ rule: 'required' }],
6455
+ },
6456
+ {
6457
+ name: 'preparedByUserId',
6458
+ title: '@project-management:preparedBy',
6459
+ groupId: 'people',
6460
+ options: {
6461
+ sort: { enabled: true },
6462
+ filter: {
6463
+ advance: { enabled: true },
6464
+ inline: { enabled: true },
6465
+ },
6466
+ },
6467
+ schema: {
6468
+ dataType: 'string',
6469
+ defaultValue: '{{ session.currentUser().id }}',
6470
+ interface: {
6471
+ type: AXPWidgetsList.Editors.LookupBox,
6472
+ options: {
6473
+ entity: 'SecurityManagement.User',
6474
+ textField: 'displayName',
6475
+ valueField: 'id',
6476
+ look: 'select',
6477
+ columns: ['displayName'],
6478
+ expose: [
6479
+ { source: 'id', target: 'preparedByUser.id' },
6480
+ { source: 'displayName', target: 'preparedByUser.displayName' },
6481
+ ],
6482
+ },
6483
+ },
6484
+ },
6485
+ validations: [{ rule: 'required' }],
6486
+ },
6487
+ {
6488
+ name: 'templateId',
6489
+ title: '@project-management:jsa.template',
6490
+ groupId: 'project-details',
6491
+ options: {
6492
+ sort: { enabled: true },
6493
+ filter: {
6494
+ advance: { enabled: true },
6495
+ inline: { enabled: true },
6496
+ },
6497
+ },
6498
+ schema: {
6499
+ dataType: 'string',
6500
+ interface: {
6501
+ type: AXPWidgetsList.Editors.LookupBox,
6502
+ options: {
6503
+ entity: 'FormTemplateManagement.Template',
6504
+ textField: 'title',
6505
+ valueField: 'id',
6506
+ look: 'select',
6507
+ columns: ['title'],
6508
+ expose: [
6509
+ { source: 'id', target: 'template.id' },
6510
+ { source: 'title', target: 'template.title' },
6511
+ ],
6512
+ },
6513
+ },
6514
+ },
6515
+ validations: [{ rule: 'required' }],
6516
+ },
6517
+ { name: 'multiSignOff', title: '@project-management:jsa.multiSignOff', groupId: 'settings', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
6518
+ { name: 'siteSupervisorSignedOff', title: '@project-management:jsa.siteSupervisorSignedOff', groupId: 'settings', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
6519
+ {
6520
+ name: 'status',
6521
+ title: '@project-management:jsa.status',
6522
+ groupId: 'settings',
6523
+ schema: {
6524
+ dataType: 'string', readonly: true, defaultValue: 'Pending', nullable: false,
6525
+ interface: {
6526
+ type: AXPWidgetsList.Editors.SelectBox, options: {
6527
+ valueField: 'id',
6528
+ textField: 'title',
6529
+ dataSource: [
6530
+ { id: 'Pending', title: '@project-management:jsa.pending' },
6531
+ { id: 'Setup', title: '@project-management:jsa.setup' },
6532
+ { id: 'Signed', title: '@project-management:jsa.signed' },
6533
+ { id: 'Completed', title: '@project-management:jsa.completed' },
6534
+ ]
6535
+ }
6536
+ },
6537
+ },
6538
+ },
6539
+ ],
6540
+ columns: [
6541
+ { name: 'docNo' },
6542
+ { name: 'title' },
6543
+ { name: 'customerId', options: { dataPath: 'customer.party.displayName' } },
6544
+ { name: 'workSiteId', options: { dataPath: 'workSite.title' } },
6545
+ { name: 'assignedToUserId', options: { dataPath: 'assignedToUser.displayName' } },
6546
+ { name: 'templateId', options: { dataPath: 'template.title' } },
6547
+ { name: 'status' },
6548
+ ],
6549
+ commands: {
6550
+ create: { execute: async (data) => ({ id: await dataService.insertOne(data) }) },
6551
+ delete: { execute: async (id) => await dataService.deleteOne(id) },
6552
+ update: { execute: async (data) => await dataService.updateOne(data.id, data) },
6553
+ },
6554
+ queries: {
6555
+ byKey: { execute: async (id) => await dataService.getOne(id), type: AXPEntityQueryType.Single },
6556
+ list: { execute: async (e) => await dataService.query(e), type: AXPEntityQueryType.List },
6557
+ },
6558
+ interfaces: {
6559
+ master: {
6560
+ create: {
6561
+ sections: [
6562
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
6563
+ { id: 'project-details', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
6564
+ { id: 'people', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
6565
+ { id: 'settings', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
6566
+ ],
6567
+ properties: [
6568
+ { name: 'docNo', layout: { positions: { lg: { colSpan: 6 } } } },
6569
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
6570
+ { name: 'customerId', layout: { positions: { lg: { colSpan: 6 } } } },
6571
+ { name: 'workSiteId', layout: { positions: { lg: { colSpan: 6 } } } },
6572
+ { name: 'jobNo', layout: { positions: { lg: { colSpan: 6 } } } },
6573
+ { name: 'templateId', layout: { positions: { lg: { colSpan: 6 } } } },
6574
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6575
+ { name: 'preparedByUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6576
+ { name: 'multiSignOff', layout: { positions: { lg: { colSpan: 3 } } } },
6577
+ { name: 'siteSupervisorSignedOff', layout: { positions: { lg: { colSpan: 3 } } } },
6578
+ ],
6579
+ },
6580
+ update: {
6581
+ sections: [
6582
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
6583
+ { id: 'project-details', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
6584
+ { id: 'people', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
6585
+ { id: 'settings', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
6586
+ ],
6587
+ properties: [
6588
+ { name: 'docNo', layout: { positions: { lg: { colSpan: 6 } } } },
6589
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
6590
+ { name: 'customerId', layout: { positions: { lg: { colSpan: 6 } } } },
6591
+ { name: 'workSiteId', layout: { positions: { lg: { colSpan: 6 } } } },
6592
+ { name: 'jobNo', layout: { positions: { lg: { colSpan: 6 } } } },
6593
+ { name: 'templateId', layout: { positions: { lg: { colSpan: 6 } } } },
6594
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6595
+ { name: 'preparedByUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6596
+ { name: 'multiSignOff', layout: { positions: { lg: { colSpan: 3 } } } },
6597
+ { name: 'siteSupervisorSignedOff', layout: { positions: { lg: { colSpan: 3 } } } },
6598
+ { name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
6599
+ ],
6600
+ },
6601
+ single: {
6602
+ title: '{{title}}',
6603
+ sections: [
6604
+ { id: 'basic-info', order: 1, layout: { positions: { lg: { colSpan: 12 } } } },
6605
+ { id: 'project-details', order: 2, layout: { positions: { lg: { colSpan: 12 } } } },
6606
+ { id: 'people', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
6607
+ { id: 'settings', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
6608
+ ],
6609
+ properties: [
6610
+ { name: 'docNo', layout: { positions: { lg: { colSpan: 6 } } } },
6611
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
6612
+ { name: 'customerId', layout: { positions: { lg: { colSpan: 6 } } } },
6613
+ { name: 'workSiteId', layout: { positions: { lg: { colSpan: 6 } } } },
6614
+ { name: 'jobNo', layout: { positions: { lg: { colSpan: 6 } } } },
6615
+ { name: 'templateId', layout: { positions: { lg: { colSpan: 6 } } } },
6616
+ { name: 'assignedToUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6617
+ { name: 'preparedByUserId', layout: { positions: { lg: { colSpan: 6 } } } },
6618
+ { name: 'multiSignOff', layout: { positions: { lg: { colSpan: 3 } } } },
6619
+ { name: 'siteSupervisorSignedOff', layout: { positions: { lg: { colSpan: 3 } } } },
6620
+ { name: 'status', layout: { positions: { lg: { colSpan: 6 } } } },
6621
+ ],
6622
+ actions: [
6623
+ ...entityMasterRecordActions(),
6624
+ ],
6625
+ },
6626
+ list: {
6627
+ actions: [
6628
+ ...commands,
6629
+ ...entityMasterCrudActions(),
6630
+ ],
6631
+ views: [createAllQueryView({ sorts: [{ name: 'docNo', dir: 'desc' }] })]
6632
+ },
6633
+ },
6634
+ },
6635
+ };
6636
+ return entityDef;
6637
+ }
6638
+
6639
+ var jsa_entity = /*#__PURE__*/Object.freeze({
6640
+ __proto__: null,
6641
+ jsaFactory: jsaFactory
6642
+ });
6643
+
6644
+ class AXMJsaEntityModule {
6645
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6646
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaEntityModule }); }
6647
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaEntityModule, providers: [
6648
+ {
6649
+ provide: AXMProjectManagementJsaService,
6650
+ useClass: AXMProjectManagementJsaServiceImpl,
6651
+ },
6652
+ ] }); }
6653
+ }
6654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaEntityModule, decorators: [{
6655
+ type: NgModule,
6656
+ args: [{
6657
+ imports: [],
6658
+ exports: [],
6659
+ declarations: [],
6660
+ providers: [
6661
+ {
6662
+ provide: AXMProjectManagementJsaService,
6663
+ useClass: AXMProjectManagementJsaServiceImpl,
6664
+ },
6665
+ ],
6666
+ }]
6667
+ }] });
6668
+
6669
+ class AXMProjectManagementJsaAssignmentService extends AXMEntityCrudServiceImpl {
6670
+ }
6671
+ class AXMProjectManagementJsaAssignmentServiceImpl extends AXMProjectManagementJsaAssignmentService {
6672
+ constructor() {
6673
+ super(`${RootConfig.module.name}.${RootConfig.entities.jsaAssignment.name}`);
6674
+ }
6675
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaAssignmentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6676
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaAssignmentServiceImpl }); }
6677
+ }
6678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementJsaAssignmentServiceImpl, decorators: [{
6679
+ type: Injectable
6680
+ }], ctorParameters: () => [] });
6681
+
6682
+ async function jsaAssignmentFactory(injector) {
6683
+ const dataService = injector.get(AXMProjectManagementJsaAssignmentService);
6684
+ const i18n = RootConfig.config.i18n;
6685
+ const entityDef = {
6686
+ module: RootConfig.module.name,
6687
+ name: RootConfig.entities.jsaAssignment.name,
6688
+ source: '',
6689
+ title: RootConfig.entities.jsaAssignment.title,
6690
+ icon: RootConfig.entities.jsaAssignment.icon,
6691
+ formats: {
6692
+ individual: RootConfig.entities.jsaAssignment.title,
6693
+ plural: RootConfig.entities.jsaAssignment.titlePlural,
6694
+ searchResult: { title: '{{ staffUserId }}', description: RootConfig.module.title },
6695
+ },
6696
+ groups: [
6697
+ { id: 'assignment-info', title: '@project-management:jsa-assignment.assignment-info' },
6698
+ { id: 'tracking', title: '@project-management:jsa-assignment.tracking-info' },
6699
+ ],
6700
+ properties: [
6701
+ { name: 'id', title: 'ID', groupId: 'assignment-info', schema: { dataType: 'uuid', hidden: true, nullable: false, readonly: true, unique: { enabled: true } } },
6702
+ { name: 'jsaId', title: '@project-management:jsa.individual-title', groupId: 'assignment-info', schema: { dataType: 'string', hidden: true } },
6703
+ {
6704
+ name: 'staffUserId',
6705
+ title: '@project-management:jsa-assignment.staff',
6706
+ groupId: 'assignment-info',
6707
+ options: {
6708
+ sort: { enabled: true },
6709
+ filter: {
6710
+ advance: { enabled: true },
6711
+ inline: { enabled: true },
6712
+ },
6713
+ },
6714
+ schema: {
6715
+ dataType: 'string',
6716
+ interface: {
6717
+ type: AXPWidgetsList.Editors.LookupBox,
6718
+ options: {
6719
+ entity: 'SecurityManagement.User',
6720
+ textField: 'displayName',
6721
+ valueField: 'id',
6722
+ look: 'select',
6723
+ columns: ['displayName'],
6724
+ expose: [
6725
+ { source: 'id', target: 'staffUser.id' },
6726
+ { source: 'displayName', target: 'staffUser.displayName' },
6727
+ ],
6728
+ },
6729
+ },
6730
+ },
6731
+ validations: [{ rule: 'required' }],
6732
+ },
6733
+ { name: 'viewedOnApp', title: '@project-management:jsa-assignment.viewed-on-app', groupId: 'tracking', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
6734
+ { name: 'signedOff', title: '@project-management:jsa-assignment.signed-off', groupId: 'tracking', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
6735
+ { name: 'signedOffAt', title: '@project-management:jsa-assignment.signed-off-at', groupId: 'tracking', schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } } },
6736
+ ],
6737
+ columns: [
6738
+ { name: 'staffUserId', options: { dataPath: 'staffUser.displayName' } },
6739
+ { name: 'viewedOnApp' },
6740
+ { name: 'signedOff' },
6741
+ { name: 'signedOffAt' },
6742
+ ],
6743
+ commands: {
6744
+ create: { execute: async (data) => ({ id: await dataService.insertOne(data) }) },
6745
+ delete: { execute: async (id) => await dataService.deleteOne(id) },
6746
+ update: { execute: async (data) => await dataService.updateOne(data.id, data) },
6747
+ },
6748
+ queries: {
6749
+ byKey: { execute: async (id) => await dataService.getOne(id), type: AXPEntityQueryType.Single },
6750
+ list: { execute: async (e) => await dataService.query(e), type: AXPEntityQueryType.List },
6751
+ },
6752
+ interfaces: {
6753
+ master: {
6754
+ create: {
6755
+ sections: [{ id: 'assignment-info' }, { id: 'tracking' }],
6756
+ properties: [
6757
+ { name: 'staffUserId', layout: { positions: { default: { colSpan: 12 } } } },
6758
+ // { name: 'viewedOnApp', layout: { positions: { default: { colSpan: 12 }, md: { colSpan: 6 } } } },
6759
+ // { name: 'signedOff', layout: { positions: { default: { colSpan: 12 }, md: { colSpan: 6 } } } },
6760
+ // { name: 'signedOffAt', layout: { positions: { default: { colSpan: 12 } } } }
6761
+ ]
6762
+ },
6763
+ update: {
6764
+ sections: [{ id: 'assignment-info' }, { id: 'tracking' }],
6765
+ properties: [
6766
+ { name: 'staffUserId', layout: { positions: { default: { colSpan: 12 } } } },
6767
+ { name: 'viewedOnApp', layout: { positions: { default: { colSpan: 12 }, md: { colSpan: 6 } } } },
6768
+ { name: 'signedOff', layout: { positions: { default: { colSpan: 12 }, md: { colSpan: 6 } } } },
6769
+ { name: 'signedOffAt', layout: { positions: { default: { colSpan: 12 } } } }
6770
+ ]
6771
+ },
6772
+ single: {
6773
+ title: '{{staffUserId}}',
6774
+ sections: [{ id: 'assignment-info' }, { id: 'tracking' }],
6775
+ properties: [{ name: 'staffUserId' }, { name: 'viewedOnApp' }, { name: 'signedOff' }, { name: 'signedOffAt' }],
6776
+ actions: [
6777
+ ...entityMasterRecordActions()
6778
+ ]
6779
+ },
6780
+ list: {
6781
+ actions: [
6782
+ ...entityMasterCrudActions()
6783
+ ], views: [createAllQueryView({})]
6784
+ },
6785
+ },
6786
+ },
6787
+ };
6788
+ return entityDef;
6789
+ }
6790
+
6791
+ var jsaAssignment_entity = /*#__PURE__*/Object.freeze({
6792
+ __proto__: null,
6793
+ jsaAssignmentFactory: jsaAssignmentFactory
6794
+ });
6795
+
6796
+ class AXMProjectEntityModule {
6797
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6798
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectEntityModule }); }
6799
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectEntityModule, providers: [
6800
+ {
6801
+ provide: AXMProjectService,
6802
+ useClass: AXMProjectServiceImpl,
6803
+ },
6804
+ ] }); }
6805
+ }
6806
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectEntityModule, decorators: [{
6807
+ type: NgModule,
6808
+ args: [{
6809
+ imports: [],
6810
+ exports: [],
6811
+ declarations: [],
6812
+ providers: [
6813
+ {
6814
+ provide: AXMProjectService,
6815
+ useClass: AXMProjectServiceImpl,
6816
+ },
6817
+ ],
6818
+ }]
6819
+ }] });
6820
+
6821
+ class AXMProjectTypeEntityModule {
6822
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6823
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectTypeEntityModule }); }
6824
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectTypeEntityModule, providers: [
6825
+ {
6826
+ provide: AXMProjectTypeService,
6827
+ useClass: AXMProjectTypeServiceImpl,
6828
+ },
6829
+ ] }); }
6830
+ }
6831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectTypeEntityModule, decorators: [{
6832
+ type: NgModule,
6833
+ args: [{
6834
+ imports: [],
6835
+ exports: [],
6836
+ declarations: [],
6837
+ providers: [
6838
+ {
6839
+ provide: AXMProjectTypeService,
6840
+ useClass: AXMProjectTypeServiceImpl,
6841
+ },
6842
+ ],
6843
+ }]
6844
+ }] });
6845
+
6846
+ class AXMClientEntityModule {
6847
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMClientEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6848
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMClientEntityModule }); }
6849
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMClientEntityModule, providers: [
6850
+ {
6851
+ provide: AXMClientService,
6852
+ useClass: AXMClientServiceImpl,
6853
+ },
6854
+ ] }); }
6855
+ }
6856
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMClientEntityModule, decorators: [{
6857
+ type: NgModule,
6858
+ args: [{
6859
+ imports: [],
6860
+ exports: [],
6861
+ declarations: [],
6862
+ providers: [
6863
+ {
6864
+ provide: AXMClientService,
6865
+ useClass: AXMClientServiceImpl,
6866
+ },
6867
+ ],
6868
+ }]
6869
+ }] });
6870
+
6871
+ class AXMWorkSiteEntityModule {
6872
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMWorkSiteEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6873
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMWorkSiteEntityModule }); }
6874
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMWorkSiteEntityModule, providers: [
6875
+ {
6876
+ provide: AXMWorkSiteService,
6877
+ useClass: AXMWorkSiteServiceImpl,
6878
+ },
6879
+ ] }); }
6880
+ }
6881
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMWorkSiteEntityModule, decorators: [{
6882
+ type: NgModule,
6883
+ args: [{
6884
+ imports: [],
6885
+ exports: [],
6886
+ declarations: [],
6887
+ providers: [
6888
+ {
6889
+ provide: AXMWorkSiteService,
6890
+ useClass: AXMWorkSiteServiceImpl,
6891
+ },
6892
+ ],
6893
+ }]
6894
+ }] });
6895
+
6896
+ class AXMProjectMemeberEntityModule {
6897
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectMemeberEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6898
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectMemeberEntityModule }); }
6899
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectMemeberEntityModule, providers: [
6900
+ {
6901
+ provide: AXMProjectMemeberService,
6902
+ useClass: AXMProjectMemeberServiceImpl,
6903
+ },
6904
+ ] }); }
6905
+ }
6906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectMemeberEntityModule, decorators: [{
6907
+ type: NgModule,
6908
+ args: [{
6909
+ imports: [],
6910
+ exports: [],
6911
+ declarations: [],
6912
+ providers: [
6913
+ {
6914
+ provide: AXMProjectMemeberService,
6915
+ useClass: AXMProjectMemeberServiceImpl,
6916
+ },
6917
+ ],
6918
+ }]
6919
+ }] });
6920
+
6921
+ class AXMProjectRoleMemberEntityModule {
6922
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectRoleMemberEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6923
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectRoleMemberEntityModule }); }
6924
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectRoleMemberEntityModule, providers: [
6925
+ {
6926
+ provide: AXMProjectRoleMemberService,
6927
+ useClass: AXMProjectRoleMemberServiceImpl,
6928
+ },
6929
+ ] }); }
6930
+ }
6931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectRoleMemberEntityModule, decorators: [{
6932
+ type: NgModule,
6933
+ args: [{
6934
+ imports: [],
6935
+ exports: [],
6936
+ declarations: [],
6937
+ providers: [
6938
+ {
6939
+ provide: AXMProjectRoleMemberService,
6940
+ useClass: AXMProjectRoleMemberServiceImpl,
6941
+ },
6942
+ ],
6943
+ }]
6944
+ }] });
6945
+
6946
+ class AXMTaskTypeEntityModule {
6947
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskTypeEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6948
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskTypeEntityModule }); }
6949
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskTypeEntityModule, providers: [
6950
+ {
6951
+ provide: AXMTaskTypeService,
6952
+ useClass: AXMTaskTypeServiceImpl,
6953
+ },
6954
+ ] }); }
6955
+ }
6956
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskTypeEntityModule, decorators: [{
6957
+ type: NgModule,
6958
+ args: [{
6959
+ imports: [],
6960
+ exports: [],
6961
+ declarations: [],
6962
+ providers: [
6963
+ {
6964
+ provide: AXMTaskTypeService,
6965
+ useClass: AXMTaskTypeServiceImpl,
6966
+ },
6967
+ ],
6968
+ }]
6969
+ }] });
6970
+
6971
+ class AXMTaskEntityModule {
6972
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6973
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskEntityModule }); }
6974
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskEntityModule, providers: [
6975
+ {
6976
+ provide: AXMTaskService,
6977
+ useClass: AXMTaskServiceImpl,
6978
+ },
6979
+ ] }); }
6980
+ }
6981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskEntityModule, decorators: [{
6982
+ type: NgModule,
6983
+ args: [{
6984
+ imports: [],
6985
+ exports: [],
6986
+ declarations: [],
6987
+ providers: [
6988
+ {
6989
+ provide: AXMTaskService,
6990
+ useClass: AXMTaskServiceImpl,
6991
+ },
6992
+ ],
6993
+ }]
6994
+ }] });
6995
+
6996
+ class AXMSprintEntityModule {
6997
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6998
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintEntityModule }); }
6999
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintEntityModule, providers: [
7000
+ {
7001
+ provide: AXMSprintService,
7002
+ useClass: AXMSprintServiceImpl,
7003
+ },
7004
+ ] }); }
7005
+ }
7006
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintEntityModule, decorators: [{
7007
+ type: NgModule,
7008
+ args: [{
7009
+ imports: [],
7010
+ exports: [],
7011
+ declarations: [],
7012
+ providers: [
7013
+ {
7014
+ provide: AXMSprintService,
7015
+ useClass: AXMSprintServiceImpl,
7016
+ },
7017
+ ],
7018
+ }]
7019
+ }] });
7020
+
7021
+ class AXMTimeSheetEntityModule {
7022
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTimeSheetEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7023
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMTimeSheetEntityModule }); }
7024
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTimeSheetEntityModule, providers: [
7025
+ {
7026
+ provide: AXMTimeSheetService,
7027
+ useClass: AXMTimeSheetServiceImpl,
6123
7028
  },
6124
- ]);
6125
- }
7029
+ ] }); }
6126
7030
  }
7031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTimeSheetEntityModule, decorators: [{
7032
+ type: NgModule,
7033
+ args: [{
7034
+ imports: [],
7035
+ exports: [],
7036
+ declarations: [],
7037
+ providers: [
7038
+ {
7039
+ provide: AXMTimeSheetService,
7040
+ useClass: AXMTimeSheetServiceImpl,
7041
+ },
7042
+ ],
7043
+ }]
7044
+ }] });
6127
7045
 
6128
- class AXMSearchCommandProvider extends AXPSearchCommandProvider {
7046
+ class AXMTaskHistoryEntityModule {
7047
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskHistoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7048
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskHistoryEntityModule }); }
7049
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskHistoryEntityModule, providers: [
7050
+ {
7051
+ provide: AXMTaskHistoryService,
7052
+ useClass: AXMTaskHistoryServiceImpl,
7053
+ },
7054
+ ] }); }
7055
+ }
7056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMTaskHistoryEntityModule, decorators: [{
7057
+ type: NgModule,
7058
+ args: [{
7059
+ imports: [],
7060
+ exports: [],
7061
+ declarations: [],
7062
+ providers: [
7063
+ {
7064
+ provide: AXMTaskHistoryService,
7065
+ useClass: AXMTaskHistoryServiceImpl,
7066
+ },
7067
+ ],
7068
+ }]
7069
+ }] });
7070
+
7071
+ class AXMSprintTaskEntityModule {
7072
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintTaskEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7073
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintTaskEntityModule }); }
7074
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintTaskEntityModule, providers: [
7075
+ {
7076
+ provide: AXMSprintTaskService,
7077
+ useClass: AXMSprintTaskServiceImpl,
7078
+ },
7079
+ ] }); }
7080
+ }
7081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSprintTaskEntityModule, decorators: [{
7082
+ type: NgModule,
7083
+ args: [{
7084
+ imports: [],
7085
+ exports: [],
7086
+ declarations: [],
7087
+ providers: [
7088
+ {
7089
+ provide: AXMSprintTaskService,
7090
+ useClass: AXMSprintTaskServiceImpl,
7091
+ },
7092
+ ],
7093
+ }]
7094
+ }] });
7095
+
7096
+ class AXMJsaAssignmentEntityModule {
7097
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaAssignmentEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7098
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaAssignmentEntityModule }); }
7099
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaAssignmentEntityModule, providers: [
7100
+ {
7101
+ provide: AXMProjectManagementJsaAssignmentService,
7102
+ useClass: AXMProjectManagementJsaAssignmentServiceImpl,
7103
+ },
7104
+ ] }); }
7105
+ }
7106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaAssignmentEntityModule, decorators: [{
7107
+ type: NgModule,
7108
+ args: [{
7109
+ imports: [],
7110
+ exports: [],
7111
+ declarations: [],
7112
+ providers: [
7113
+ {
7114
+ provide: AXMProjectManagementJsaAssignmentService,
7115
+ useClass: AXMProjectManagementJsaAssignmentServiceImpl,
7116
+ },
7117
+ ],
7118
+ }]
7119
+ }] });
7120
+
7121
+ // Entity Services
7122
+
7123
+ class AXMJsaTaskProvider extends AXPWorkflowTaskProvider {
6129
7124
  constructor() {
6130
7125
  super(...arguments);
6131
- this.commands = [
6132
- // {
6133
- // group: 'command',
6134
- // title: 'New Form Template',
6135
- // icon: RootConfig.entities.template.icon,
6136
- // description: 'Create a new form template for designing reusable forms.', // Added description
6137
- // commands: {
6138
- // 'create-entity': {
6139
- // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
6140
- // },
6141
- // },
6142
- // }
7126
+ this.service = inject(AXMProjectManagementJsaService);
7127
+ this.commandExecutor = inject(AXPCommandExecutor);
7128
+ this.translation = inject(AXTranslationService);
7129
+ this.calendar = inject(AXCalendarService);
7130
+ //#endregion
7131
+ }
7132
+ get name() { return 'jsa'; }
7133
+ get title() { return '@project-management:jsa.plural-title'; }
7134
+ get icon() { return 'fa-light fa-helmet-safety'; }
7135
+ async getTasks(options) {
7136
+ try {
7137
+ const baseFilter = { logic: 'and', filters: [] };
7138
+ // Exclude completed items from task board
7139
+ baseFilter.filters?.push({ field: 'status', operator: { type: 'equal', negative: true }, value: 'Completed' });
7140
+ // Handle date range filtering
7141
+ if (options?.range?.from) {
7142
+ baseFilter.filters?.push({ field: 'createdAt', operator: { type: 'gte' }, value: options.range.from });
7143
+ }
7144
+ if (options?.range?.end) {
7145
+ baseFilter.filters?.push({ field: 'createdAt', operator: { type: 'lte' }, value: options.range.end });
7146
+ }
7147
+ // Handle assignee filtering
7148
+ if (options?.assigneeIds && options.assigneeIds.length > 0) {
7149
+ baseFilter.filters?.push({ field: 'assignedToUserId', operator: { type: 'in' }, value: options.assigneeIds });
7150
+ }
7151
+ const { items, total } = await this.service.query({
7152
+ skip: options?.skip ?? 0,
7153
+ take: options?.take ?? 20,
7154
+ filter: baseFilter,
7155
+ });
7156
+ const tasks = await Promise.all(items.map(async (item) => ({
7157
+ id: item.id,
7158
+ title: `${item.docNo} - ${item.title}`,
7159
+ description: item.jobNo ? `Job: ${item.jobNo}` : 'Job Safety Analysis',
7160
+ startDate: this.calendar.create(item.createdAt).startOf('day').date,
7161
+ endDate: this.calendar.create(item.createdAt).endOf('day').date,
7162
+ assignee: {
7163
+ id: item.assignedToUserId ?? '',
7164
+ type: 'user',
7165
+ fullName: item.assignedToUser?.displayName ?? 'Unassigned'
7166
+ },
7167
+ index: this.getTaskIndex(item.status),
7168
+ status: {
7169
+ id: item.status ?? 'Pending',
7170
+ title: await this.getStatusTitle(item.status ?? 'Pending')
7171
+ },
7172
+ priority: this.getTaskPriority(item.status),
7173
+ reporter: {
7174
+ id: item.preparedByUserId ?? '',
7175
+ type: 'user',
7176
+ fullName: item.preparedByUser?.displayName ?? 'Unknown'
7177
+ },
7178
+ payload: item,
7179
+ })));
7180
+ return { items: tasks, total };
7181
+ }
7182
+ catch (error) {
7183
+ console.error('Error fetching JSA tasks:', error);
7184
+ return { items: [], total: 0 };
7185
+ }
7186
+ }
7187
+ async updateTasks(tasksToUpdate) {
7188
+ return tasksToUpdate;
7189
+ }
7190
+ async executeCommand(command) {
7191
+ if (!command?.name)
7192
+ return { success: true };
7193
+ const id = command.options?.['id'] ?? '';
7194
+ const title = command.options?.['title'] ?? '';
7195
+ switch (command.name) {
7196
+ case 'signJsa':
7197
+ return await this.commandExecutor.execute('ProjectManagement.Jsa:Sign', { id, title }) ?? { success: true };
7198
+ case 'setupJsa':
7199
+ return await this.commandExecutor.execute('ProjectManagement.Jsa:Setup', { id, title }) ?? { success: true };
7200
+ case 'reassignJsa':
7201
+ return await this.commandExecutor.execute('ProjectManagement.Jsa:Reassign', { id, title }) ?? { success: true };
7202
+ case 'emailJsa':
7203
+ return await this.commandExecutor.execute('ProjectManagement.Jsa:Email', { id, title }) ?? { success: true };
7204
+ case 'open':
7205
+ return await this.commandExecutor.execute('Entity:OpenDetails', { entity: 'ProjectManagement.Jsa', data: { id } }) ?? { success: true };
7206
+ }
7207
+ return { success: true };
7208
+ }
7209
+ async getActions(task) {
7210
+ const actions = [];
7211
+ actions.push({
7212
+ name: 'open',
7213
+ title: this.translation.translateSync('@general:actions.view.title'),
7214
+ icon: 'fa-light fa-eye',
7215
+ color: 'primary',
7216
+ break: true,
7217
+ command: { name: 'open', options: { id: task?.id ?? '' } }
7218
+ });
7219
+ // Sign action - available for tasks that need signing
7220
+ if (task?.status?.id === 'Pending' || task?.status?.id === 'Setup') {
7221
+ actions.push({
7222
+ name: 'signJsa',
7223
+ title: this.translation.translateSync('@project-management:jsa.actions.sign'),
7224
+ icon: 'fa-light fa-signature',
7225
+ color: 'primary',
7226
+ command: { name: 'signJsa', options: { id: task?.id ?? '' } }
7227
+ });
7228
+ }
7229
+ // Setup action - available for tasks that need configuration
7230
+ if (task?.status?.id === 'Pending') {
7231
+ actions.push({
7232
+ name: 'setupJsa',
7233
+ title: this.translation.translateSync('@project-management:jsa.actions.setup'),
7234
+ icon: 'fa-light fa-cog',
7235
+ color: 'info',
7236
+ command: { name: 'setupJsa', options: { id: task?.id ?? '' } }
7237
+ });
7238
+ }
7239
+ // Reassign action - available for all active tasks
7240
+ if (task?.status?.id !== 'Completed') {
7241
+ actions.push({
7242
+ name: 'reassignJsa',
7243
+ title: this.translation.translateSync('@project-management:jsa.actions.reassign'),
7244
+ icon: 'fa-light fa-rotate-right',
7245
+ color: 'secondary',
7246
+ command: { name: 'reassignJsa', options: { id: task?.id ?? '' } }
7247
+ });
7248
+ }
7249
+ // Email action - available for all tasks
7250
+ actions.push({
7251
+ name: 'emailJsa',
7252
+ title: this.translation.translateSync('@project-management:jsa.actions.email'),
7253
+ icon: 'fa-light fa-envelope',
7254
+ color: 'info',
7255
+ command: { name: 'emailJsa', options: { id: task?.id ?? '' } }
7256
+ });
7257
+ return actions;
7258
+ }
7259
+ async getExtraFields() { return []; }
7260
+ async getStatuses() {
7261
+ return [
7262
+ { index: 0, key: 'Pending', title: await this.translation.translateAsync('@project-management:jsa.pending'), color: 'warning' },
7263
+ { index: 1, key: 'Setup', title: await this.translation.translateAsync('@project-management:jsa.setup'), color: 'info' },
7264
+ { index: 2, key: 'Signed', title: await this.translation.translateAsync('@project-management:jsa.signed'), color: 'success' },
7265
+ { index: 3, key: 'Completed', title: await this.translation.translateAsync('@project-management:jsa.completed'), color: 'success' },
6143
7266
  ];
6144
7267
  }
7268
+ //#region ---- Helper Methods ----
7269
+ /**
7270
+ * Get task index based on status for ordering
7271
+ */
7272
+ getTaskIndex(status) {
7273
+ switch (status) {
7274
+ case 'Pending': return 0;
7275
+ case 'Setup': return 1;
7276
+ case 'Signed': return 2;
7277
+ case 'Completed': return 3;
7278
+ default: return 0;
7279
+ }
7280
+ }
7281
+ /**
7282
+ * Get task priority based on status
7283
+ */
7284
+ getTaskPriority(status) {
7285
+ switch (status) {
7286
+ case 'Pending': return 'high';
7287
+ case 'Setup': return 'medium';
7288
+ case 'Signed': return 'low';
7289
+ case 'Completed': return 'lowest';
7290
+ default: return 'medium';
7291
+ }
7292
+ }
7293
+ /**
7294
+ * Get translated status title
7295
+ */
7296
+ async getStatusTitle(status) {
7297
+ switch (status) {
7298
+ case 'Pending': return await this.translation.translateAsync('@project-management:jsa.pending');
7299
+ case 'Setup': return await this.translation.translateAsync('@project-management:jsa.setup');
7300
+ case 'Signed': return await this.translation.translateAsync('@project-management:jsa.signed');
7301
+ case 'Completed': return await this.translation.translateAsync('@project-management:jsa.completed');
7302
+ default: return status;
7303
+ }
7304
+ }
6145
7305
  }
6146
7306
 
6147
- class AXMSettingProvider {
6148
- async provide(context) {
6149
- // context
6150
- // // Add Form Template Group
6151
- // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
6152
- // // Start Interface Section
6153
- // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
6154
- // .addSetting({
6155
- // key: 'history-panel',
6156
- // title: 'Show History Panel',
6157
- // scope: 'U',
6158
- // isInherited: true,
6159
- // defaultValue: false,
6160
- // widget: {
6161
- // type: AXPWidgetsCatalog.toggle,
6162
- // },
6163
- // description: 'Enable or disable the history panel for forms.',
6164
- // validationRules: [
6165
- // {
6166
- // rule: 'required',
6167
- // },
6168
- // ],
6169
- // })
6170
- // .endSection()
6171
- // .endGroup();
6172
- }
7307
+ class AXMJsaModule {
7308
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7309
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaModule }); }
7310
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaModule, providers: [
7311
+ {
7312
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
7313
+ useClass: AXMJsaTaskProvider,
7314
+ multi: true,
7315
+ },
7316
+ provideCommandSetups([
7317
+ { key: 'ProjectManagement.Jsa:Sign', command: () => import('./acorex-modules-project-management-sign-jsa.command-b28tr2kE.mjs').then((c) => c.AXPSignJsaCommand) },
7318
+ { key: 'ProjectManagement.Jsa:Setup', command: () => import('./acorex-modules-project-management-setup-jsa.command-Cztc8TDy.mjs').then((c) => c.AXPSetupJsaCommand) },
7319
+ { key: 'ProjectManagement.Jsa:Reassign', command: () => import('./acorex-modules-project-management-reassign-jsa.command-CJKR5FZw.mjs').then((c) => c.AXPReassignJsaCommand) },
7320
+ { key: 'ProjectManagement.Jsa:Email', command: () => import('./acorex-modules-project-management-email-jsa.command-DC3Zbfdn.mjs').then((c) => c.AXPEmailJsaCommand) },
7321
+ ]),
7322
+ ] }); }
6173
7323
  }
7324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMJsaModule, decorators: [{
7325
+ type: NgModule,
7326
+ args: [{
7327
+ imports: [],
7328
+ exports: [],
7329
+ providers: [
7330
+ {
7331
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
7332
+ useClass: AXMJsaTaskProvider,
7333
+ multi: true,
7334
+ },
7335
+ provideCommandSetups([
7336
+ { key: 'ProjectManagement.Jsa:Sign', command: () => import('./acorex-modules-project-management-sign-jsa.command-b28tr2kE.mjs').then((c) => c.AXPSignJsaCommand) },
7337
+ { key: 'ProjectManagement.Jsa:Setup', command: () => import('./acorex-modules-project-management-setup-jsa.command-Cztc8TDy.mjs').then((c) => c.AXPSetupJsaCommand) },
7338
+ { key: 'ProjectManagement.Jsa:Reassign', command: () => import('./acorex-modules-project-management-reassign-jsa.command-CJKR5FZw.mjs').then((c) => c.AXPReassignJsaCommand) },
7339
+ { key: 'ProjectManagement.Jsa:Email', command: () => import('./acorex-modules-project-management-email-jsa.command-DC3Zbfdn.mjs').then((c) => c.AXPEmailJsaCommand) },
7340
+ ]),
7341
+ ],
7342
+ }]
7343
+ }] });
6174
7344
 
6175
7345
  class AXMProjectManagementModule {
6176
7346
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6177
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementModule }); }
7347
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementModule, imports: [AXPRuntimeModule,
7348
+ // Entity Modules
7349
+ AXMProjectEntityModule,
7350
+ AXMProjectTypeEntityModule,
7351
+ AXMClientEntityModule,
7352
+ AXMWorkSiteEntityModule,
7353
+ AXMProjectMemeberEntityModule,
7354
+ AXMProjectRoleMemberEntityModule,
7355
+ AXMTaskTypeEntityModule,
7356
+ AXMTaskEntityModule,
7357
+ AXMSprintEntityModule,
7358
+ AXMTimeSheetEntityModule,
7359
+ AXMTaskHistoryEntityModule,
7360
+ AXMSprintTaskEntityModule,
7361
+ AXMJsaEntityModule,
7362
+ AXMJsaAssignmentEntityModule,
7363
+ // Feature Modules
7364
+ AXMJsaModule] }); }
6178
7365
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementModule, providers: [
7366
+ {
7367
+ provide: AXP_IDENTIFIER_RULES,
7368
+ multi: true,
7369
+ useValue: AXM_JSA_CODE_IDENTIFIER_RULE,
7370
+ },
6179
7371
  {
6180
7372
  provide: AXP_MENU_PROVIDER,
6181
7373
  useClass: AXMMenuProvider,
@@ -6196,63 +7388,56 @@ class AXMProjectManagementModule {
6196
7388
  useClass: AXMSearchCommandProvider,
6197
7389
  multi: true,
6198
7390
  },
6199
- {
6200
- provide: AXMProjectService,
6201
- useClass: AXMProjectServiceImpl,
6202
- },
6203
- {
6204
- provide: AXMProjectTypeService,
6205
- useClass: AXMProjectTypeServiceImpl,
6206
- },
6207
- {
6208
- provide: AXMClientService,
6209
- useClass: AXMClientServiceImpl,
6210
- },
6211
- {
6212
- provide: AXMWorkSiteService,
6213
- useClass: AXMWorkSiteServiceImpl,
6214
- },
6215
- {
6216
- provide: AXMProjectMemeberService,
6217
- useClass: AXMProjectMemeberServiceImpl,
6218
- },
6219
- {
6220
- provide: AXMProjectRoleMemberService,
6221
- useClass: AXMProjectRoleMemberServiceImpl,
6222
- },
6223
- {
6224
- provide: AXMTaskTypeService,
6225
- useClass: AXMTaskTypeServiceImpl,
6226
- },
6227
- {
6228
- provide: AXMTaskService,
6229
- useClass: AXMTaskServiceImpl,
6230
- },
6231
- {
6232
- provide: AXMSprintService,
6233
- useClass: AXMSprintServiceImpl,
6234
- },
6235
- {
6236
- provide: AXMTimeSheetService,
6237
- useClass: AXMTimeSheetServiceImpl,
6238
- },
6239
- {
6240
- provide: AXMTaskHistoryService,
6241
- useClass: AXMTaskHistoryServiceImpl,
6242
- },
6243
- {
6244
- provide: AXMSprintTaskService,
6245
- useClass: AXMSprintTaskServiceImpl,
6246
- },
6247
- ] }); }
7391
+ ], imports: [AXPRuntimeModule,
7392
+ // Entity Modules
7393
+ AXMProjectEntityModule,
7394
+ AXMProjectTypeEntityModule,
7395
+ AXMClientEntityModule,
7396
+ AXMWorkSiteEntityModule,
7397
+ AXMProjectMemeberEntityModule,
7398
+ AXMProjectRoleMemberEntityModule,
7399
+ AXMTaskTypeEntityModule,
7400
+ AXMTaskEntityModule,
7401
+ AXMSprintEntityModule,
7402
+ AXMTimeSheetEntityModule,
7403
+ AXMTaskHistoryEntityModule,
7404
+ AXMSprintTaskEntityModule,
7405
+ AXMJsaEntityModule,
7406
+ AXMJsaAssignmentEntityModule,
7407
+ // Feature Modules
7408
+ AXMJsaModule] }); }
6248
7409
  }
6249
7410
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMProjectManagementModule, decorators: [{
6250
7411
  type: NgModule,
6251
7412
  args: [{
6252
- imports: [],
7413
+ imports: [
7414
+ AXPRuntimeModule,
7415
+ // Entity Modules
7416
+ AXMProjectEntityModule,
7417
+ AXMProjectTypeEntityModule,
7418
+ AXMClientEntityModule,
7419
+ AXMWorkSiteEntityModule,
7420
+ AXMProjectMemeberEntityModule,
7421
+ AXMProjectRoleMemberEntityModule,
7422
+ AXMTaskTypeEntityModule,
7423
+ AXMTaskEntityModule,
7424
+ AXMSprintEntityModule,
7425
+ AXMTimeSheetEntityModule,
7426
+ AXMTaskHistoryEntityModule,
7427
+ AXMSprintTaskEntityModule,
7428
+ AXMJsaEntityModule,
7429
+ AXMJsaAssignmentEntityModule,
7430
+ // Feature Modules
7431
+ AXMJsaModule
7432
+ ],
6253
7433
  exports: [],
6254
7434
  declarations: [],
6255
7435
  providers: [
7436
+ {
7437
+ provide: AXP_IDENTIFIER_RULES,
7438
+ multi: true,
7439
+ useValue: AXM_JSA_CODE_IDENTIFIER_RULE,
7440
+ },
6256
7441
  {
6257
7442
  provide: AXP_MENU_PROVIDER,
6258
7443
  useClass: AXMMenuProvider,
@@ -6273,54 +7458,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
6273
7458
  useClass: AXMSearchCommandProvider,
6274
7459
  multi: true,
6275
7460
  },
6276
- {
6277
- provide: AXMProjectService,
6278
- useClass: AXMProjectServiceImpl,
6279
- },
6280
- {
6281
- provide: AXMProjectTypeService,
6282
- useClass: AXMProjectTypeServiceImpl,
6283
- },
6284
- {
6285
- provide: AXMClientService,
6286
- useClass: AXMClientServiceImpl,
6287
- },
6288
- {
6289
- provide: AXMWorkSiteService,
6290
- useClass: AXMWorkSiteServiceImpl,
6291
- },
6292
- {
6293
- provide: AXMProjectMemeberService,
6294
- useClass: AXMProjectMemeberServiceImpl,
6295
- },
6296
- {
6297
- provide: AXMProjectRoleMemberService,
6298
- useClass: AXMProjectRoleMemberServiceImpl,
6299
- },
6300
- {
6301
- provide: AXMTaskTypeService,
6302
- useClass: AXMTaskTypeServiceImpl,
6303
- },
6304
- {
6305
- provide: AXMTaskService,
6306
- useClass: AXMTaskServiceImpl,
6307
- },
6308
- {
6309
- provide: AXMSprintService,
6310
- useClass: AXMSprintServiceImpl,
6311
- },
6312
- {
6313
- provide: AXMTimeSheetService,
6314
- useClass: AXMTimeSheetServiceImpl,
6315
- },
6316
- {
6317
- provide: AXMTaskHistoryService,
6318
- useClass: AXMTaskHistoryServiceImpl,
6319
- },
6320
- {
6321
- provide: AXMSprintTaskService,
6322
- useClass: AXMSprintTaskServiceImpl,
6323
- },
6324
7461
  ],
6325
7462
  }]
6326
7463
  }] });
@@ -6331,5 +7468,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
6331
7468
  * Generated bundle index. Do not edit.
6332
7469
  */
6333
7470
 
6334
- export { AXMClientService, AXMClientServiceImpl, AXMEntityProvider, AXMMenuProvider, AXMProjectManagementModule, AXMProjectMemeberService, AXMProjectMemeberServiceImpl, AXMProjectRoleMemberService, AXMProjectRoleMemberServiceImpl, AXMProjectService, AXMProjectServiceImpl, AXMProjectTypeService, AXMProjectTypeServiceImpl, AXMSearchCommandProvider, AXMSettingProvider, AXMSprintService, AXMSprintServiceImpl, AXMSprintTaskService, AXMSprintTaskServiceImpl, AXMTaskHistoryService, AXMTaskHistoryServiceImpl, AXMTaskService, AXMTaskServiceImpl, AXMTaskTypeService, AXMTaskTypeServiceImpl, AXMTimeSheetService, AXMTimeSheetServiceImpl, AXMWorkSiteService, AXMWorkSiteServiceImpl, RootConfig, clientFactory, projectFactory, projectMemeberFactory, projectRoleMemberFactory, projectTypeFactory, sprintFactory, sprintTaskFactory, taskFactory, taskHistoryFactory, taskTypeFactory, timeSheetFactory, workSiteFactory };
7471
+ export { AXMClientEntityModule, AXMClientService, AXMClientServiceImpl, AXMEntityProvider, AXMJsaAssignmentEntityModule, AXMJsaEntityModule, AXMMenuProvider, AXMProjectEntityModule, AXMProjectManagementJsaAssignmentService, AXMProjectManagementJsaAssignmentServiceImpl, AXMProjectManagementJsaService, AXMProjectManagementJsaServiceImpl, AXMProjectManagementModule, AXMProjectMemeberEntityModule, AXMProjectMemeberService, AXMProjectMemeberServiceImpl, AXMProjectRoleMemberEntityModule, AXMProjectRoleMemberService, AXMProjectRoleMemberServiceImpl, AXMProjectService, AXMProjectServiceImpl, AXMProjectTypeEntityModule, AXMProjectTypeService, AXMProjectTypeServiceImpl, AXMSearchCommandProvider, AXMSettingProvider, AXMSprintEntityModule, AXMSprintService, AXMSprintServiceImpl, AXMSprintTaskEntityModule, AXMSprintTaskService, AXMSprintTaskServiceImpl, AXMTaskEntityModule, AXMTaskHistoryEntityModule, AXMTaskHistoryService, AXMTaskHistoryServiceImpl, AXMTaskService, AXMTaskServiceImpl, AXMTaskTypeEntityModule, AXMTaskTypeService, AXMTaskTypeServiceImpl, AXMTimeSheetEntityModule, AXMTimeSheetService, AXMTimeSheetServiceImpl, AXMWorkSiteEntityModule, AXMWorkSiteService, AXMWorkSiteServiceImpl, RootConfig, clientFactory, jsaAssignmentFactory, jsaFactory, projectFactory, projectMemeberFactory, projectRoleMemberFactory, projectTypeFactory, sprintFactory, sprintTaskFactory, taskFactory, taskHistoryFactory, taskTypeFactory, timeSheetFactory, workSiteFactory };
6335
7472
  //# sourceMappingURL=acorex-modules-project-management.mjs.map