@acorex/modules 20.2.3 → 20.2.4-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/auth/index.d.ts +1 -0
  2. package/common/index.d.ts +30 -19
  3. package/contact-management/index.d.ts +0 -6
  4. package/conversation/index.d.ts +8 -0
  5. package/dashboard-management/index.d.ts +3 -79
  6. package/data-management/index.d.ts +2 -69
  7. package/document-management/index.d.ts +47 -29
  8. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BBGqLgJC.mjs → acorex-modules-auth-acorex-modules-auth-C3KbvhSU.mjs} +18 -14
  9. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BBGqLgJC.mjs.map → acorex-modules-auth-acorex-modules-auth-C3KbvhSU.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7Nv62Jj.mjs → acorex-modules-auth-app-chooser.component-1rAktuKq.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7Nv62Jj.mjs.map → acorex-modules-auth-app-chooser.component-1rAktuKq.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-auth-login.module-DmEDBKqL.mjs → acorex-modules-auth-login.module-Bq2itSg_.mjs} +4 -4
  13. package/fesm2022/{acorex-modules-auth-login.module-DmEDBKqL.mjs.map → acorex-modules-auth-login.module-Bq2itSg_.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-auth-master.layout-B8L2FPDN.mjs → acorex-modules-auth-master.layout-DONbu77t.mjs} +2 -2
  15. package/fesm2022/{acorex-modules-auth-master.layout-B8L2FPDN.mjs.map → acorex-modules-auth-master.layout-DONbu77t.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-auth-oauth-callback.component-BRJu8jom.mjs → acorex-modules-auth-oauth-callback.component-BgzmfTlY.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-auth-oauth-callback.component-BRJu8jom.mjs.map → acorex-modules-auth-oauth-callback.component-BgzmfTlY.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-password.component-Bh0uhx6-.mjs → acorex-modules-auth-password.component-B9LqFrEG.mjs} +2 -2
  19. package/fesm2022/{acorex-modules-auth-password.component-Bh0uhx6-.mjs.map → acorex-modules-auth-password.component-B9LqFrEG.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-password.component-FNLwhWMe.mjs → acorex-modules-auth-password.component-BuGTsfLH.mjs} +3 -3
  21. package/fesm2022/acorex-modules-auth-password.component-BuGTsfLH.mjs.map +1 -0
  22. package/fesm2022/{acorex-modules-auth-routes-xqc264U-.mjs → acorex-modules-auth-routes-833kPM6o.mjs} +2 -2
  23. package/fesm2022/{acorex-modules-auth-routes-xqc264U-.mjs.map → acorex-modules-auth-routes-833kPM6o.mjs.map} +1 -1
  24. package/fesm2022/{acorex-modules-auth-two-factor.module-C8jrenEW.mjs → acorex-modules-auth-two-factor.module-BS1Pcbxp.mjs} +2 -2
  25. package/fesm2022/{acorex-modules-auth-two-factor.module-C8jrenEW.mjs.map → acorex-modules-auth-two-factor.module-BS1Pcbxp.mjs.map} +1 -1
  26. package/fesm2022/acorex-modules-auth-user-sessions.component-BXHfWAbP.mjs +137 -0
  27. package/fesm2022/acorex-modules-auth-user-sessions.component-BXHfWAbP.mjs.map +1 -0
  28. package/fesm2022/acorex-modules-auth.mjs +1 -1
  29. package/fesm2022/acorex-modules-calendar-management.mjs +12 -40
  30. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  31. package/fesm2022/acorex-modules-common-manage-extra-properties-popup.component-BgXwb8Su.mjs +71 -0
  32. package/fesm2022/acorex-modules-common-manage-extra-properties-popup.component-BgXwb8Su.mjs.map +1 -0
  33. package/fesm2022/acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs +47 -0
  34. package/fesm2022/acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs.map +1 -0
  35. package/fesm2022/{acorex-modules-common-search-popup.component-39U0-TIj.mjs → acorex-modules-common-search-popup.component-BSQyjDKA.mjs} +8 -8
  36. package/fesm2022/{acorex-modules-common-search-popup.component-39U0-TIj.mjs.map → acorex-modules-common-search-popup.component-BSQyjDKA.mjs.map} +1 -1
  37. package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-_KJd8oGw.mjs → acorex-modules-common-timeline-version-history-popup.component-ByAc4Yp9.mjs} +5 -5
  38. package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-_KJd8oGw.mjs.map → acorex-modules-common-timeline-version-history-popup.component-ByAc4Yp9.mjs.map} +1 -1
  39. package/fesm2022/acorex-modules-common.mjs +1037 -328
  40. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  41. package/fesm2022/{acorex-modules-contact-management-contact-method.entity-CIeZtPSy.mjs → acorex-modules-contact-management-contact-method.entity-DR6V9Nox.mjs} +15 -41
  42. package/fesm2022/acorex-modules-contact-management-contact-method.entity-DR6V9Nox.mjs.map +1 -0
  43. package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-CeIealVy.mjs → acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs} +13 -90
  44. package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs.map +1 -0
  45. package/fesm2022/acorex-modules-contact-management.mjs +793 -1
  46. package/fesm2022/acorex-modules-contact-management.mjs.map +1 -1
  47. package/fesm2022/acorex-modules-content-management.mjs +59 -447
  48. package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
  49. package/fesm2022/acorex-modules-conversation.mjs +199 -24
  50. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  51. package/fesm2022/acorex-modules-dashboard-management.mjs +35 -331
  52. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  53. package/fesm2022/acorex-modules-data-management.mjs +157 -1006
  54. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  55. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BvIGh15O.mjs → acorex-modules-document-management-acorex-modules-document-management-BCTTw-hI.mjs} +871 -266
  56. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BCTTw-hI.mjs.map +1 -0
  57. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-ClgS3Q8D.mjs → acorex-modules-document-management-attachment-widget.component-C80j1Gn7.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-ClgS3Q8D.mjs.map → acorex-modules-document-management-attachment-widget.component-C80j1Gn7.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs → acorex-modules-document-management-create-folder-dialog.component-BFnvHSjH.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs.map → acorex-modules-document-management-create-folder-dialog.component-BFnvHSjH.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-document-management-details-view.component-BmJB8bb8.mjs → acorex-modules-document-management-details-view.component-7OR6bXr-.mjs} +2 -2
  62. package/fesm2022/{acorex-modules-document-management-details-view.component-BmJB8bb8.mjs.map → acorex-modules-document-management-details-view.component-7OR6bXr-.mjs.map} +1 -1
  63. package/fesm2022/acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs +116 -0
  64. package/fesm2022/acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs.map +1 -0
  65. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-CK8MX49w.mjs → acorex-modules-document-management-document-signature-popup.component-BOjb2k4S.mjs} +42 -2
  66. package/fesm2022/acorex-modules-document-management-document-signature-popup.component-BOjb2k4S.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs → acorex-modules-document-management-drive-choose.component-B66hegSh.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs.map → acorex-modules-document-management-drive-choose.component-B66hegSh.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-document-management-drive.component-R1V4W9u3.mjs → acorex-modules-document-management-drive.component-DZhd1DUn.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-document-management-drive.component-R1V4W9u3.mjs.map → acorex-modules-document-management-drive.component-DZhd1DUn.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C-9UNa_X.mjs → acorex-modules-document-management-large-icons-view.component-DJn6kyvL.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C-9UNa_X.mjs.map → acorex-modules-document-management-large-icons-view.component-DJn6kyvL.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DL3PEFfv.mjs → acorex-modules-document-management-large-tiles-view.component-BeR4aIqh.mjs} +2 -2
  74. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-DL3PEFfv.mjs.map → acorex-modules-document-management-large-tiles-view.component-BeR4aIqh.mjs.map} +1 -1
  75. package/fesm2022/{acorex-modules-document-management-list-view.component-BGUDmglV.mjs → acorex-modules-document-management-list-view.component-oDeeGScM.mjs} +2 -2
  76. package/fesm2022/{acorex-modules-document-management-list-view.component-BGUDmglV.mjs.map → acorex-modules-document-management-list-view.component-oDeeGScM.mjs.map} +1 -1
  77. package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs → acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs} +7 -7
  78. package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs.map +1 -0
  79. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs → acorex-modules-document-management-permission-definition.provider-CMEJt7pe.mjs} +2 -2
  80. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs.map → acorex-modules-document-management-permission-definition.provider-CMEJt7pe.mjs.map} +1 -1
  81. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DXiQj-Hb.mjs → acorex-modules-document-management-rename-node-dialog.component-Da9v8nVj.mjs} +2 -2
  82. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DXiQj-Hb.mjs.map → acorex-modules-document-management-rename-node-dialog.component-Da9v8nVj.mjs.map} +1 -1
  83. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-C8RZC3TM.mjs → acorex-modules-document-management-small-icons-view.component-Wfms-st6.mjs} +2 -2
  84. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-C8RZC3TM.mjs.map → acorex-modules-document-management-small-icons-view.component-Wfms-st6.mjs.map} +1 -1
  85. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B70rSvao.mjs → acorex-modules-document-management-small-tiles-view.component-DSDfR1nj.mjs} +2 -2
  86. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B70rSvao.mjs.map → acorex-modules-document-management-small-tiles-view.component-DSDfR1nj.mjs.map} +1 -1
  87. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  88. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CeQnu6WW.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-COVNekIY.mjs} +36 -86
  89. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-COVNekIY.mjs.map +1 -0
  90. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CfOa446m.mjs → acorex-modules-form-template-management-permission-definition.provider-BEkbbQH2.mjs} +2 -2
  91. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-CfOa446m.mjs.map → acorex-modules-form-template-management-permission-definition.provider-BEkbbQH2.mjs.map} +1 -1
  92. package/fesm2022/{acorex-modules-form-template-management-settings.provider-hLlHnm-I.mjs → acorex-modules-form-template-management-settings.provider-DSI7cmrW.mjs} +2 -2
  93. package/fesm2022/{acorex-modules-form-template-management-settings.provider-hLlHnm-I.mjs.map → acorex-modules-form-template-management-settings.provider-DSI7cmrW.mjs.map} +1 -1
  94. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-bxYZqmYR.mjs → acorex-modules-form-template-management-template-picker.component-5n_kQMuQ.mjs} +6 -5
  95. package/fesm2022/acorex-modules-form-template-management-template-picker.component-5n_kQMuQ.mjs.map +1 -0
  96. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-D_Ys5kRT.mjs → acorex-modules-form-template-management-template-widget-edit.component-BtCYeGB-.mjs} +2 -2
  97. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-D_Ys5kRT.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-BtCYeGB-.mjs.map} +1 -1
  98. package/fesm2022/{acorex-modules-form-template-management-template.entity-CvlwS8TY.mjs → acorex-modules-form-template-management-template.entity-Cm-AVAF_.mjs} +23 -97
  99. package/fesm2022/acorex-modules-form-template-management-template.entity-Cm-AVAF_.mjs.map +1 -0
  100. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CE13nuke.mjs → acorex-modules-form-template-management-viewer-popup.component-C8TC42DL.mjs} +2 -2
  101. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CE13nuke.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8TC42DL.mjs.map} +1 -1
  102. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  103. package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-8iEAzfh5.mjs → acorex-modules-help-desk-acorex-modules-help-desk-Bvoh_GpG.mjs} +5 -11
  104. package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-Bvoh_GpG.mjs.map +1 -0
  105. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BiJX9lxr.mjs → acorex-modules-help-desk-capture-screen.component-DIMqm4q_.mjs} +2 -2
  106. package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BiJX9lxr.mjs.map → acorex-modules-help-desk-capture-screen.component-DIMqm4q_.mjs.map} +1 -1
  107. package/fesm2022/acorex-modules-help-desk.mjs +1 -1
  108. package/fesm2022/acorex-modules-identifier-management.mjs +81 -39
  109. package/fesm2022/acorex-modules-identifier-management.mjs.map +1 -1
  110. package/fesm2022/acorex-modules-location-management.mjs +20 -32
  111. package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
  112. package/fesm2022/acorex-modules-log-management.mjs +1 -2
  113. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  114. package/fesm2022/acorex-modules-meeting-management-meeting-publish-popup.component-PcBFprq3.mjs +121 -0
  115. package/fesm2022/acorex-modules-meeting-management-meeting-publish-popup.component-PcBFprq3.mjs.map +1 -0
  116. package/fesm2022/acorex-modules-meeting-management.mjs +2897 -0
  117. package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -0
  118. package/fesm2022/acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs +855 -0
  119. package/fesm2022/acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs.map +1 -0
  120. package/fesm2022/acorex-modules-notification-management.mjs +151 -132
  121. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  122. package/fesm2022/{acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs → acorex-modules-organization-management-branch.entity-B_CYwiX9.mjs} +14 -42
  123. package/fesm2022/acorex-modules-organization-management-branch.entity-B_CYwiX9.mjs.map +1 -0
  124. package/fesm2022/{acorex-modules-organization-management-chart.entity-UAn44WCP.mjs → acorex-modules-organization-management-chart.entity-8J9I9lgq.mjs} +14 -42
  125. package/fesm2022/acorex-modules-organization-management-chart.entity-8J9I9lgq.mjs.map +1 -0
  126. package/fesm2022/{acorex-modules-organization-management-company.entity-D1A1HSkC.mjs → acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs} +14 -42
  127. package/fesm2022/acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs.map +1 -0
  128. package/fesm2022/{acorex-modules-organization-management-department.entity-BxCyXNtv.mjs → acorex-modules-organization-management-department.entity-BbBrK4BN.mjs} +14 -42
  129. package/fesm2022/acorex-modules-organization-management-department.entity-BbBrK4BN.mjs.map +1 -0
  130. package/fesm2022/{acorex-modules-organization-management-division.entity-DzQT2jpz.mjs → acorex-modules-organization-management-division.entity-DdX7LcCU.mjs} +14 -42
  131. package/fesm2022/acorex-modules-organization-management-division.entity-DdX7LcCU.mjs.map +1 -0
  132. package/fesm2022/{acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs → acorex-modules-organization-management-employee.entity-zDTyY9NK.mjs} +166 -99
  133. package/fesm2022/acorex-modules-organization-management-employee.entity-zDTyY9NK.mjs.map +1 -0
  134. package/fesm2022/{acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs → acorex-modules-organization-management-employment-type.entity-Dw3TLMtD.mjs} +14 -42
  135. package/fesm2022/acorex-modules-organization-management-employment-type.entity-Dw3TLMtD.mjs.map +1 -0
  136. package/fesm2022/{acorex-modules-organization-management-role.entity-CruQeObl.mjs → acorex-modules-organization-management-position.entity-DT7EyvrR.mjs} +96 -79
  137. package/fesm2022/acorex-modules-organization-management-position.entity-DT7EyvrR.mjs.map +1 -0
  138. package/fesm2022/{acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs → acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs} +19 -91
  139. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs.map +1 -0
  140. package/fesm2022/{acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs → acorex-modules-organization-management-role.entity-BdjgFsgo.mjs} +68 -51
  141. package/fesm2022/acorex-modules-organization-management-role.entity-BdjgFsgo.mjs.map +1 -0
  142. package/fesm2022/{acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs → acorex-modules-organization-management-skill.entity-O1453j6I.mjs} +14 -105
  143. package/fesm2022/acorex-modules-organization-management-skill.entity-O1453j6I.mjs.map +1 -0
  144. package/fesm2022/{acorex-modules-organization-management-team.entity-DMCfAZsr.mjs → acorex-modules-organization-management-team.entity-DkRLWl0u.mjs} +13 -32
  145. package/fesm2022/acorex-modules-organization-management-team.entity-DkRLWl0u.mjs.map +1 -0
  146. package/fesm2022/acorex-modules-organization-management.mjs +34 -254
  147. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  148. package/fesm2022/{acorex-modules-party-management-acorex-modules-party-management-B8X8tXFw.mjs → acorex-modules-party-management-acorex-modules-party-management-BFyD7IcC.mjs} +11 -21
  149. package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-BFyD7IcC.mjs.map +1 -0
  150. package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-b8aNBCpT.mjs → acorex-modules-party-management-party-identifier-type.entity-BYsWpup7.mjs} +20 -19
  151. package/fesm2022/acorex-modules-party-management-party-identifier-type.entity-BYsWpup7.mjs.map +1 -0
  152. package/fesm2022/{acorex-modules-party-management-party-identifier.entity-B_5MSDF1.mjs → acorex-modules-party-management-party-identifier.entity-DSn4lsX-.mjs} +16 -17
  153. package/fesm2022/acorex-modules-party-management-party-identifier.entity-DSn4lsX-.mjs.map +1 -0
  154. package/fesm2022/{acorex-modules-party-management-party-relationship.entity-CLAAuCde.mjs → acorex-modules-party-management-party-relationship.entity-BG5zuKPH.mjs} +9 -14
  155. package/fesm2022/acorex-modules-party-management-party-relationship.entity-BG5zuKPH.mjs.map +1 -0
  156. package/fesm2022/{acorex-modules-party-management-party-role.entity-C5BeakjX.mjs → acorex-modules-party-management-party-role.entity-jCTZL0mT.mjs} +14 -17
  157. package/fesm2022/acorex-modules-party-management-party-role.entity-jCTZL0mT.mjs.map +1 -0
  158. package/fesm2022/{acorex-modules-party-management-party.entity-Blwg8o3o.mjs → acorex-modules-party-management-party.entity-BwAAZRJc.mjs} +45 -45
  159. package/fesm2022/acorex-modules-party-management-party.entity-BwAAZRJc.mjs.map +1 -0
  160. package/fesm2022/acorex-modules-party-management.mjs +1 -1
  161. package/fesm2022/acorex-modules-platform-management.mjs +3 -3
  162. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  163. package/fesm2022/acorex-modules-project-management.mjs +157 -144
  164. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  165. package/fesm2022/{acorex-modules-report-management-report-create-root.component-CPR6H1R1.mjs → acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs} +2 -2
  166. package/fesm2022/acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs.map +1 -0
  167. package/fesm2022/acorex-modules-report-management.mjs +57 -58
  168. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  169. package/fesm2022/acorex-modules-scheduler-job-management.mjs +6 -7
  170. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  171. package/fesm2022/acorex-modules-security-management.mjs +12 -10
  172. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  173. package/fesm2022/{acorex-modules-settings-management-setting-page.component-BWXHxXwS.mjs → acorex-modules-settings-management-setting-page.component-D-NKWNvS.mjs} +11 -1
  174. package/fesm2022/acorex-modules-settings-management-setting-page.component-D-NKWNvS.mjs.map +1 -0
  175. package/fesm2022/acorex-modules-settings-management.mjs +1 -1
  176. package/fesm2022/{acorex-modules-workflow-management-task-board.page-2UTqXn3s.mjs → acorex-modules-task-management-task-board.page-BBbHu2jz.mjs} +314 -69
  177. package/fesm2022/acorex-modules-task-management-task-board.page-BBbHu2jz.mjs.map +1 -0
  178. package/fesm2022/acorex-modules-task-management.mjs +3471 -2888
  179. package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
  180. package/fesm2022/acorex-modules-text-template-management.mjs +4 -6
  181. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  182. package/fesm2022/acorex-modules-training-management.mjs +35 -35
  183. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  184. package/fesm2022/acorex-modules-workflow-management.mjs +39 -1
  185. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  186. package/form-template-management/index.d.ts +8 -31
  187. package/identifier-management/index.d.ts +15 -16
  188. package/meeting-management/README.md +29 -0
  189. package/meeting-management/index.d.ts +248 -0
  190. package/notification-management/index.d.ts +6 -4
  191. package/organization-management/index.d.ts +3 -111
  192. package/package.json +5 -1
  193. package/task-management/README.md +1 -1
  194. package/task-management/index.d.ts +109 -3
  195. package/workflow-management/index.d.ts +4 -33
  196. package/fesm2022/acorex-modules-auth-password.component-FNLwhWMe.mjs.map +0 -1
  197. package/fesm2022/acorex-modules-auth-user-sessions.component-Cu1SCNnF.mjs +0 -135
  198. package/fesm2022/acorex-modules-auth-user-sessions.component-Cu1SCNnF.mjs.map +0 -1
  199. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-_Bxallkg.mjs +0 -863
  200. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-_Bxallkg.mjs.map +0 -1
  201. package/fesm2022/acorex-modules-contact-management-contact-method.entity-CIeZtPSy.mjs.map +0 -1
  202. package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-B2DPfonq.mjs +0 -680
  203. package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-B2DPfonq.mjs.map +0 -1
  204. package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-CeIealVy.mjs.map +0 -1
  205. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BvIGh15O.mjs.map +0 -1
  206. package/fesm2022/acorex-modules-document-management-document-signature-popup.component-CK8MX49w.mjs.map +0 -1
  207. package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs.map +0 -1
  208. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CeQnu6WW.mjs.map +0 -1
  209. package/fesm2022/acorex-modules-form-template-management-category.entity-DmrE2Pfz.mjs +0 -245
  210. package/fesm2022/acorex-modules-form-template-management-category.entity-DmrE2Pfz.mjs.map +0 -1
  211. package/fesm2022/acorex-modules-form-template-management-template-picker.component-bxYZqmYR.mjs.map +0 -1
  212. package/fesm2022/acorex-modules-form-template-management-template.entity-CvlwS8TY.mjs.map +0 -1
  213. package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-8iEAzfh5.mjs.map +0 -1
  214. package/fesm2022/acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs.map +0 -1
  215. package/fesm2022/acorex-modules-organization-management-chart.entity-UAn44WCP.mjs.map +0 -1
  216. package/fesm2022/acorex-modules-organization-management-company.entity-D1A1HSkC.mjs.map +0 -1
  217. package/fesm2022/acorex-modules-organization-management-department.entity-BxCyXNtv.mjs.map +0 -1
  218. package/fesm2022/acorex-modules-organization-management-division.entity-DzQT2jpz.mjs.map +0 -1
  219. package/fesm2022/acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs.map +0 -1
  220. package/fesm2022/acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs.map +0 -1
  221. package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs +0 -305
  222. package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs.map +0 -1
  223. package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs +0 -526
  224. package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs.map +0 -1
  225. package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs.map +0 -1
  226. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs +0 -338
  227. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs.map +0 -1
  228. package/fesm2022/acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs.map +0 -1
  229. package/fesm2022/acorex-modules-organization-management-role.entity-CruQeObl.mjs.map +0 -1
  230. package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs +0 -305
  231. package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs.map +0 -1
  232. package/fesm2022/acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs.map +0 -1
  233. package/fesm2022/acorex-modules-organization-management-team.entity-DMCfAZsr.mjs.map +0 -1
  234. package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-B8X8tXFw.mjs.map +0 -1
  235. package/fesm2022/acorex-modules-party-management-party-identifier-type.entity-b8aNBCpT.mjs.map +0 -1
  236. package/fesm2022/acorex-modules-party-management-party-identifier.entity-B_5MSDF1.mjs.map +0 -1
  237. package/fesm2022/acorex-modules-party-management-party-relationship.entity-CLAAuCde.mjs.map +0 -1
  238. package/fesm2022/acorex-modules-party-management-party-role.entity-C5BeakjX.mjs.map +0 -1
  239. package/fesm2022/acorex-modules-party-management-party.entity-Blwg8o3o.mjs.map +0 -1
  240. package/fesm2022/acorex-modules-report-management-report-create-root.component-CPR6H1R1.mjs.map +0 -1
  241. package/fesm2022/acorex-modules-settings-management-setting-page.component-BWXHxXwS.mjs.map +0 -1
  242. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-BfE17ZXY.mjs +0 -244
  243. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-BfE17ZXY.mjs.map +0 -1
  244. package/fesm2022/acorex-modules-workflow-management-task-board.page-2UTqXn3s.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
2
- import { AXPSearchCommandProvider, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPFileTypeProviderService, AXP_FILE_TYPE_INFO_PROVIDER, AXPFileStorageService, AXPSettingService, AXPLockService, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
- import { AXPEntityService, AXMEntityCrudServiceImpl, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
2
+ import { AXPSearchCommandProvider, createAllQueryView, createQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPFileTypeProviderService, AXP_FILE_TYPE_INFO_PROVIDER, AXPFileStorageService, AXPSettingService, AXPLockService, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
+ import { AXPEntityService, AXMEntityCrudServiceImpl, ensureListActions, actionExists, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_ACTION_PLUGIN } from '@acorex/platform/layout/entity';
4
4
  import * as i0 from '@angular/core';
5
5
  import { inject, Injector, Injectable, NgModule, ChangeDetectionStrategy, Component, signal, viewChild, afterNextRender, computed, input, effect, ViewEncapsulation, output, HostBinding } from '@angular/core';
6
6
  import { firstValueFrom } from 'rxjs';
@@ -26,10 +26,9 @@ import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_LABEL_PROPERTY, AXP_READ
26
26
  import * as i3$2 from '@acorex/components/media-viewer';
27
27
  import { AXMediaViewerContainerComponent, AXMediaViewerModule } from '@acorex/components/media-viewer';
28
28
  import * as i3$4 from '@acorex/platform/workflow';
29
- import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
29
+ import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowTaskProvider, AXPWorkflowModule, AXP_WORKFLOW_TASK_PROVIDER } from '@acorex/platform/workflow';
30
30
  import { AXPopupService } from '@acorex/components/popup';
31
31
  import { AXUploaderService } from '@acorex/components/uploader';
32
- import { AXDialogService } from '@acorex/components/dialog';
33
32
  import * as i3$1 from '@acorex/core/translation';
34
33
  import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
35
34
  import * as i1$5 from '@acorex/platform/layout/components';
@@ -40,7 +39,8 @@ import * as i1$3 from '@acorex/components/button';
40
39
  import { AXButtonModule } from '@acorex/components/button';
41
40
  import { AXTextBoxModule } from '@acorex/components/text-box';
42
41
  import { AXCheckBoxModule } from '@acorex/components/check-box';
43
- import { AXPPlatformScope } from '@acorex/platform/core';
42
+ import { AXPPlatformScope, AXPDistributedEventListenerService } from '@acorex/platform/core';
43
+ import { AXDialogService } from '@acorex/components/dialog';
44
44
  import { AXFileService } from '@acorex/core/file';
45
45
  import { castArray, set as set$1, get as get$1, cloneDeep } from 'lodash-es';
46
46
  import { AXBasePageComponent } from '@acorex/components/page';
@@ -147,6 +147,8 @@ class AXMEntityProvider {
147
147
  return (await Promise.resolve().then(function () { return index$1; })).reviewFactory(this.injector);
148
148
  case RootConfig.entities.distribution.name:
149
149
  return (await Promise.resolve().then(function () { return index$1; })).distributionFactory(this.injector);
150
+ case RootConfig.entities.distributionInteraction.name:
151
+ return (await Promise.resolve().then(function () { return index$1; })).distributionInteractionFactory(this.injector);
150
152
  }
151
153
  }
152
154
  return null;
@@ -247,6 +249,7 @@ class AXMMenuProvider {
247
249
  data: {
248
250
  // requiredPermission: [AXMPermissionsKeys.DocumentManagement.Review.Management]
249
251
  },
252
+ badgeKey: 'review-badge',
250
253
  priority: 4,
251
254
  },
252
255
  {
@@ -358,21 +361,21 @@ async function documentFactory(injector) {
358
361
  // hidden: '{{context.eval("toggle")}}',
359
362
  actions: [],
360
363
  },
361
- {
362
- entity: `${RootConfig.module.name}.${RootConfig.entities.distribution.name}`,
363
- columns: ['version'],
364
- conditions: [
365
- {
366
- name: 'documentId',
367
- operator: {
368
- type: 'equal',
369
- },
370
- value: '{{context.eval("id")}}',
371
- },
372
- ],
373
- // hidden: '{{context.eval("toggle")}}',
374
- actions: [],
375
- },
364
+ // {
365
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.distribution.name}`,
366
+ // columns: ['version'],
367
+ // conditions: [
368
+ // {
369
+ // name: 'documentId',
370
+ // operator: {
371
+ // type: 'equal',
372
+ // },
373
+ // value: '{{context.eval("id")}}',
374
+ // },
375
+ // ],
376
+ // // hidden: '{{context.eval("toggle")}}',
377
+ // actions: [],
378
+ // },
376
379
  ],
377
380
  groups: [
378
381
  {
@@ -434,7 +437,7 @@ async function documentFactory(injector) {
434
437
  },
435
438
  {
436
439
  name: 'metaData',
437
- title: 't("metaData", { scope: "common" })',
440
+ title: `t("metaData", { scope: "${i18n}" })`,
438
441
  groupId: 'section',
439
442
  schema: {
440
443
  dataType: 'string',
@@ -453,7 +456,7 @@ async function documentFactory(injector) {
453
456
  ],
454
457
  },
455
458
  {
456
- name: 'file',
459
+ name: 'fileId',
457
460
  title: `t("file", { scope: "${i18n}" })`,
458
461
  groupId: 'section',
459
462
  schema: {
@@ -487,6 +490,18 @@ async function documentFactory(injector) {
487
490
  },
488
491
  },
489
492
  },
493
+ {
494
+ name: 'size',
495
+ title: `t("size", { scope: "${i18n}" })`,
496
+ schema: {
497
+ dataType: 'number',
498
+ readonly: true,
499
+ interface: {
500
+ type: AXPWidgetsCatalog.number,
501
+ options: {},
502
+ },
503
+ },
504
+ },
490
505
  {
491
506
  name: 'status',
492
507
  title: `t("status", { scope: "${i18n}" })`,
@@ -499,6 +514,9 @@ async function documentFactory(injector) {
499
514
  inline: {
500
515
  enabled: true,
501
516
  },
517
+ advance: {
518
+ enabled: true,
519
+ },
502
520
  },
503
521
  },
504
522
  schema: {
@@ -512,8 +530,91 @@ async function documentFactory(injector) {
512
530
  },
513
531
  },
514
532
  },
533
+ {
534
+ name: 'documentReview',
535
+ title: `t("documentReview", { scope: "${i18n}" })`,
536
+ schema: {
537
+ dataType: 'string',
538
+ readonly: true,
539
+ interface: {
540
+ type: AXPWidgetsCatalog.text,
541
+ options: {
542
+ content: `{{ context.eval('documentReview') }}`,
543
+ },
544
+ },
545
+ },
546
+ },
547
+ {
548
+ name: 'documentReviewReviewer',
549
+ title: `t("documentReview", { scope: "${i18n}" })`,
550
+ schema: {
551
+ dataType: 'string',
552
+ readonly: true,
553
+ interface: {
554
+ type: AXPWidgetsCatalog.text,
555
+ options: {
556
+ content: `{{ context.eval('documentReviewReviewer') }}`,
557
+ },
558
+ },
559
+ },
560
+ },
561
+ {
562
+ name: 'documentReviewComment',
563
+ title: `t("documentReview", { scope: "${i18n}" })`,
564
+ schema: {
565
+ dataType: 'string',
566
+ readonly: true,
567
+ interface: {
568
+ type: AXPWidgetsCatalog.richText,
569
+ options: {
570
+ content: `{{ context.eval('documentReviewComment') }}`,
571
+ },
572
+ },
573
+ },
574
+ },
575
+ {
576
+ name: 'documentReviewStatus',
577
+ title: `t("documentReview", { scope: "${i18n}" })`,
578
+ schema: {
579
+ defaultValue: '{{context.eval("documentReview.reviewStatus") == "Approve"}}',
580
+ dataType: 'string',
581
+ readonly: true,
582
+ interface: {
583
+ type: AXPWidgetsCatalog.toggle,
584
+ options: {
585
+ content: `{{ context.eval('documentReviewComment') }}`,
586
+ },
587
+ },
588
+ },
589
+ },
590
+ ],
591
+ columns: [
592
+ { name: 'name' },
593
+ { name: 'status' },
594
+ { name: 'version' },
595
+ { name: 'fileId' },
596
+ {
597
+ name: 'documentReviewReviewer',
598
+ title: `t("reviewer", { scope: "${i18n}" })`,
599
+ options: {
600
+ dataPath: 'documentReview.reviewer.title',
601
+ },
602
+ },
603
+ {
604
+ name: 'documentReviewComment',
605
+ title: `t("comment", { scope: "${i18n}" })`,
606
+ options: {
607
+ dataPath: 'documentReview.comment',
608
+ },
609
+ },
610
+ {
611
+ name: 'documentReviewStatus',
612
+ title: `t("approve", { scope: "${i18n}" })`,
613
+ options: {
614
+ dataPath: 'documentReview.reviewStatus',
615
+ },
616
+ },
515
617
  ],
516
- columns: [{ name: 'name' }, { name: 'status' }, { name: 'version' }],
517
618
  commands: {
518
619
  create: {
519
620
  execute: async (data) => {
@@ -564,6 +665,7 @@ async function documentFactory(injector) {
564
665
  filters: allFilters,
565
666
  },
566
667
  });
668
+ console.log(x);
567
669
  return x;
568
670
  },
569
671
  type: AXPEntityQueryType.List,
@@ -609,7 +711,7 @@ async function documentFactory(injector) {
609
711
  },
610
712
  },
611
713
  {
612
- name: 'file',
714
+ name: 'fileId',
613
715
  layout: {
614
716
  positions: {
615
717
  lg: {
@@ -699,13 +801,23 @@ async function documentFactory(injector) {
699
801
  layout: {
700
802
  positions: {
701
803
  lg: {
702
- colSpan: 12,
804
+ colSpan: 6,
703
805
  },
704
806
  },
705
807
  },
706
808
  },
707
809
  {
708
810
  name: 'metaData',
811
+ layout: {
812
+ positions: {
813
+ lg: {
814
+ colSpan: 6,
815
+ },
816
+ },
817
+ },
818
+ },
819
+ {
820
+ name: 'fileId',
709
821
  layout: {
710
822
  positions: {
711
823
  lg: {
@@ -770,9 +882,9 @@ async function documentFactory(injector) {
770
882
  decoration: {
771
883
  header: {
772
884
  title: '{{ context.eval("title") + " - version: " + context.eval("version") }}',
773
- }
774
- }
775
- }
885
+ },
886
+ },
887
+ },
776
888
  },
777
889
  priority: 'primary',
778
890
  type: 'review',
@@ -786,40 +898,112 @@ async function documentFactory(injector) {
786
898
  options: {
787
899
  id: '{{context.eval("id")}}',
788
900
  title: '{{context.eval("title")}}',
789
- }
901
+ },
790
902
  },
791
903
  priority: 'primary',
792
904
  type: 'review',
793
905
  scope: AXPEntityCommandScope.TypeLevel,
794
906
  disabled: '{{context.eval("status") != "Reviewed" && context.eval("status") != "Completed"}}',
795
907
  },
908
+ ],
909
+ },
910
+ list: {
911
+ actions: [
796
912
  {
797
- title: `t("document-signature.sign.title", { scope: "${i18n}" })`,
913
+ title: 't("detail", { scope: "common" })',
914
+ command: 'open-entity',
915
+ priority: 'secondary',
916
+ type: 'view',
917
+ default: true,
918
+ scope: AXPEntityCommandScope.Individual,
919
+ },
920
+ {
921
+ title: `t("document-review.send-review.title", { scope: "${i18n}" })`,
922
+ icon: 'fa-light fa-shield-check',
798
923
  command: {
799
- name: 'document-signature',
924
+ name: 'send-to-review',
800
925
  options: {
801
926
  id: '{{context.eval("id")}}',
802
927
  title: '{{context.eval("title")}}',
803
- }
928
+ },
804
929
  },
805
930
  priority: 'secondary',
806
- type: 'sign',
807
- scope: AXPEntityCommandScope.TypeLevel,
808
- hidden: '{{context.eval("status") != "Distributed"}}',
931
+ type: 'sent',
932
+ scope: AXPEntityCommandScope.Individual,
933
+ disabled: '{{context.eval("status") != "Draft"}}',
809
934
  },
810
- ],
811
- },
812
- list: {
813
- actions: [
814
935
  {
815
- title: 't("detail", { scope: "common" })',
816
- command: 'open-entity',
936
+ title: `t("document-review.submit-review.title", { scope: "${i18n}" })`,
937
+ icon: 'fa-light fa-ballot-check',
938
+ command: {
939
+ name: 'submit-review',
940
+ options: {
941
+ id: '{{context.eval("reviewRecordId")}}',
942
+ // reviewedAt : '{{ variables.execute("now") }}',
943
+ decoration: {
944
+ header: {
945
+ title: '{{ context.eval("title") + " - version: " + context.eval("version") }}',
946
+ },
947
+ },
948
+ },
949
+ },
817
950
  priority: 'secondary',
818
- type: 'view',
951
+ type: 'review',
952
+ scope: AXPEntityCommandScope.Individual,
953
+ disabled: '{{context.eval("status") != "PendingReview"}}',
954
+ },
955
+ {
956
+ title: `t("distributed", { scope: "${i18n}" })`,
957
+ icon: 'fa-light fa-chart-network',
958
+ command: {
959
+ name: 'distributed',
960
+ options: {
961
+ id: '{{context.eval("id")}}',
962
+ title: '{{context.eval("title")}}',
963
+ },
964
+ },
965
+ priority: 'secondary',
966
+ type: 'review',
819
967
  scope: AXPEntityCommandScope.Individual,
968
+ disabled: '{{context.eval("status") != "Reviewed" && context.eval("status") != "Completed"}}',
820
969
  },
821
970
  ],
822
- views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
971
+ views: [
972
+ createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] }),
973
+ createQueryView('Draft', `t("draft", { scope: "${i18n}" })`, true, {
974
+ conditions: [
975
+ {
976
+ name: 'status',
977
+ operator: {
978
+ type: 'equal',
979
+ },
980
+ value: 'Draft',
981
+ },
982
+ ],
983
+ }),
984
+ createQueryView('PendingReview', `t("pending", { scope: "${i18n}" })`, true, {
985
+ conditions: [
986
+ {
987
+ name: 'status',
988
+ operator: {
989
+ type: 'equal',
990
+ },
991
+ value: 'PendingReview',
992
+ },
993
+ ],
994
+ }),
995
+ createQueryView('Reviewed', `t("reviewed", { scope: "${i18n}" })`, true, {
996
+ conditions: [
997
+ {
998
+ name: 'status',
999
+ operator: {
1000
+ type: 'equal',
1001
+ },
1002
+ value: 'Reviewed',
1003
+ },
1004
+ ],
1005
+ }),
1006
+ ],
823
1007
  },
824
1008
  },
825
1009
  },
@@ -1069,8 +1253,8 @@ async function documentTypeFactory(injector) {
1069
1253
  {
1070
1254
  event: "{{ events.context('requiresReview') }}",
1071
1255
  action: "{{ context.set('enableVersioning', true) }}",
1072
- }
1073
- ]
1256
+ },
1257
+ ],
1074
1258
  },
1075
1259
  },
1076
1260
  },
@@ -1102,7 +1286,8 @@ async function documentTypeFactory(injector) {
1102
1286
  commands: {
1103
1287
  create: {
1104
1288
  execute: async (data) => {
1105
- data.meta = data.meta.filter((item) => item.status !== 'deleted')
1289
+ data.meta = data.meta
1290
+ .filter((item) => item.status !== 'deleted')
1106
1291
  .map((item) => ({
1107
1292
  ...item,
1108
1293
  status: 'active',
@@ -1118,7 +1303,8 @@ async function documentTypeFactory(injector) {
1118
1303
  },
1119
1304
  update: {
1120
1305
  execute: async (data) => {
1121
- data.meta = data.meta.filter((item) => item.status !== 'deleted')
1306
+ data.meta = data.meta
1307
+ .filter((item) => item.status !== 'deleted')
1122
1308
  .map((item) => ({
1123
1309
  ...item,
1124
1310
  status: 'active',
@@ -1136,7 +1322,7 @@ async function documentTypeFactory(injector) {
1136
1322
  },
1137
1323
  list: {
1138
1324
  execute: async (e) => {
1139
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1325
+ return await dataService.query(e);
1140
1326
  },
1141
1327
  type: AXPEntityQueryType.List,
1142
1328
  },
@@ -1661,7 +1847,7 @@ async function documentTypeMetaDefinitionfactory(injector) {
1661
1847
  },
1662
1848
  list: {
1663
1849
  execute: async (e) => {
1664
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1850
+ return await dataService.query(e);
1665
1851
  },
1666
1852
  type: AXPEntityQueryType.List,
1667
1853
  },
@@ -1930,7 +2116,7 @@ async function documentTypeMetaValueFactory(injector) {
1930
2116
  },
1931
2117
  list: {
1932
2118
  execute: async (e) => {
1933
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2119
+ return await dataService.query(e);
1934
2120
  },
1935
2121
  type: AXPEntityQueryType.List,
1936
2122
  },
@@ -2199,7 +2385,7 @@ async function documentTypeStatusDefinitionFactory(injector) {
2199
2385
  },
2200
2386
  list: {
2201
2387
  execute: async (e) => {
2202
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2388
+ return await dataService.query(e);
2203
2389
  },
2204
2390
  type: AXPEntityQueryType.List,
2205
2391
  },
@@ -2474,7 +2660,7 @@ async function folderFactory(injector) {
2474
2660
  },
2475
2661
  list: {
2476
2662
  execute: async (e) => {
2477
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2663
+ return await dataService.query(e);
2478
2664
  },
2479
2665
  type: AXPEntityQueryType.List,
2480
2666
  },
@@ -2691,8 +2877,8 @@ async function reviewFactory(injector) {
2691
2877
  interface: {
2692
2878
  type: AXPWidgetsCatalog.textBlockLayout,
2693
2879
  options: {
2694
- content: `{{ context.eval('version') }}`
2695
- }
2880
+ content: `{{ context.eval('version') }}`,
2881
+ },
2696
2882
  },
2697
2883
  },
2698
2884
  },
@@ -2734,8 +2920,8 @@ async function reviewFactory(injector) {
2734
2920
  {
2735
2921
  event: "{{ events.context('documentId') }}",
2736
2922
  action: "{{ context.set('version' , context.eval('document').version ) }}",
2737
- }
2738
- ]
2923
+ },
2924
+ ],
2739
2925
  },
2740
2926
  },
2741
2927
  validations: [
@@ -2748,32 +2934,19 @@ async function reviewFactory(injector) {
2748
2934
  name: 'reviewerId',
2749
2935
  title: `t("reviewer", { scope: "${i18n}" })`,
2750
2936
  groupId: 'section',
2751
- options: {
2752
- sort: {
2753
- enabled: true,
2754
- },
2755
- filter: {
2756
- advance: {
2757
- enabled: true,
2758
- },
2759
- inline: {
2760
- enabled: true,
2761
- },
2762
- },
2763
- },
2764
2937
  schema: {
2765
2938
  dataType: 'string',
2766
- defaultValue: "{{ session.currentUser().id }}",
2939
+ defaultValue: '{{ session.currentUser().id }}',
2767
2940
  interface: {
2768
2941
  type: AXPWidgetsCatalog.lookup,
2769
2942
  options: {
2770
2943
  entity: 'SecurityManagement.users',
2771
2944
  multiple: false,
2772
- textField: 'name',
2945
+ textField: 'username',
2773
2946
  valueField: 'id',
2774
2947
  expose: [
2775
2948
  { source: 'id', target: 'reviewer.id' },
2776
- { source: 'name', target: 'reviewer.name' },
2949
+ { source: 'username', target: 'reviewer.username' },
2777
2950
  ],
2778
2951
  },
2779
2952
  },
@@ -2909,12 +3082,12 @@ async function reviewFactory(injector) {
2909
3082
  ],
2910
3083
  columns: [
2911
3084
  { name: 'documentId', options: { dataPath: 'document.name' } },
2912
- { name: 'reviewerId', options: { dataPath: 'reviewerId.displayName' } },
3085
+ { name: 'reviewerId', options: { dataPath: 'reviewer.title' } },
2913
3086
  { name: 'status' },
2914
3087
  { name: 'comment' },
2915
3088
  { name: 'reviewedAt' },
2916
3089
  { name: 'modifiedAt' },
2917
- { name: 'modifiedBy' }
3090
+ { name: 'modifiedBy' },
2918
3091
  ],
2919
3092
  commands: {
2920
3093
  create: {
@@ -2923,7 +3096,7 @@ async function reviewFactory(injector) {
2923
3096
  if (!data.reviewedAt) {
2924
3097
  data.reviewedAt = new Date();
2925
3098
  }
2926
- //TODO for test
3099
+ //TODO for test
2927
3100
  data.reviewStatus = 'Approved';
2928
3101
  // Create the review record
2929
3102
  const res = await dataService.insertOne(data);
@@ -2941,7 +3114,7 @@ async function reviewFactory(injector) {
2941
3114
  execute: async (data) => {
2942
3115
  // Update reviewedAt to current date
2943
3116
  data.reviewedAt = new Date();
2944
- //TODO for test
3117
+ //TODO for test
2945
3118
  data.reviewStatus = 'Approved';
2946
3119
  // Update the review record
2947
3120
  const result = await dataService.updateOne(data.id, data);
@@ -2964,7 +3137,9 @@ async function reviewFactory(injector) {
2964
3137
  },
2965
3138
  list: {
2966
3139
  execute: async (e) => {
2967
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3140
+ const a = await dataService.query(e);
3141
+ console.log(a);
3142
+ return a;
2968
3143
  },
2969
3144
  type: AXPEntityQueryType.List,
2970
3145
  },
@@ -3196,23 +3371,7 @@ async function reviewFactory(injector) {
3196
3371
  actions: [],
3197
3372
  },
3198
3373
  list: {
3199
- actions: [
3200
- {
3201
- title: 't("detail", { scope: "common" })',
3202
- command: 'open-entity',
3203
- priority: 'secondary',
3204
- type: 'view',
3205
- scope: AXPEntityCommandScope.Individual,
3206
- default: true,
3207
- },
3208
- {
3209
- title: 't("detail", { scope: "common" })',
3210
- command: 'open-entity',
3211
- priority: 'secondary',
3212
- type: 'view',
3213
- scope: AXPEntityCommandScope.Individual,
3214
- },
3215
- ],
3374
+ actions: [],
3216
3375
  views: [
3217
3376
  createAllQueryView({
3218
3377
  sorts: [{ name: 'reviewedAt', dir: 'desc' }],
@@ -3256,28 +3415,15 @@ async function distributionFactory(injector) {
3256
3415
  },
3257
3416
  relatedEntities: [
3258
3417
  {
3259
- entity: `${RootConfig.module.name}.${RootConfig.entities.document.name}`,
3260
- columns: ['name'],
3418
+ entity: `${RootConfig.module.name}.${RootConfig.entities.distributionInteraction.name}`,
3419
+ columns: [],
3261
3420
  conditions: [
3262
3421
  {
3263
- name: 'id',
3422
+ name: 'documentDistributionId',
3264
3423
  operator: {
3265
3424
  type: 'equal',
3266
3425
  },
3267
- value: '{{context.eval("documentId")}}',
3268
- },
3269
- ],
3270
- },
3271
- {
3272
- entity: 'SecurityManagement.users',
3273
- columns: ['username'],
3274
- conditions: [
3275
- {
3276
- name: 'id',
3277
- operator: {
3278
- type: 'in',
3279
- },
3280
- value: '{{context.eval("assignedTo")}}',
3426
+ value: '{{context.eval("id")}}',
3281
3427
  },
3282
3428
  ],
3283
3429
  },
@@ -3340,8 +3486,40 @@ async function distributionFactory(injector) {
3340
3486
  },
3341
3487
  ],
3342
3488
  },
3489
+ {
3490
+ name: 'viewedCount',
3491
+ title: `t("viewed-count", { scope: "${i18n}" })`,
3492
+ schema: {
3493
+ dataType: 'string',
3494
+ interface: {
3495
+ type: AXPWidgetsCatalog.text,
3496
+ },
3497
+ },
3498
+ },
3499
+ {
3500
+ name: 'signedCount',
3501
+ title: `t("signed-count", { scope: "${i18n}" })`,
3502
+ schema: {
3503
+ dataType: 'string',
3504
+ interface: {
3505
+ type: AXPWidgetsCatalog.text,
3506
+ },
3507
+ },
3508
+ },
3509
+ {
3510
+ name: 'status',
3511
+ title: `t("status", { scope: "${i18n}" })`,
3512
+ schema: {
3513
+ dataType: 'string',
3514
+ interface: {
3515
+ type: AXPWidgetsCatalog.text,
3516
+ },
3517
+ },
3518
+ },
3519
+ ],
3520
+ columns: [{ name: 'documentId', options: { dataPath: 'document.name' } }, { name: 'version' },
3521
+ { name: 'viewedCount' }, { name: 'signedCount' }, { name: 'status' }
3343
3522
  ],
3344
- columns: [{ name: 'documentId', options: { dataPath: 'document.name' } }, { name: 'version' }],
3345
3523
  commands: {
3346
3524
  create: {
3347
3525
  execute: async (data) => {
@@ -3369,7 +3547,7 @@ async function distributionFactory(injector) {
3369
3547
  },
3370
3548
  list: {
3371
3549
  execute: async (e) => {
3372
- const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3550
+ const x = await dataService.query(e);
3373
3551
  console.log(x);
3374
3552
  return x;
3375
3553
  },
@@ -3441,7 +3619,7 @@ async function distributionFactory(injector) {
3441
3619
  ],
3442
3620
  },
3443
3621
  single: {
3444
- title: `{{document.name}} - {{translate.resolve("@${i18n}.distribution")}}`,
3622
+ title: `{{document.name}}`,
3445
3623
  sections: [
3446
3624
  {
3447
3625
  id: 'section',
@@ -3478,22 +3656,7 @@ async function distributionFactory(injector) {
3478
3656
  },
3479
3657
  },
3480
3658
  ],
3481
- actions: [
3482
- {
3483
- title: `t("document-distribution.sign", { scope: "${i18n}" })`,
3484
- command: {
3485
- name: 'document-signature',
3486
- options: {
3487
- id: '{{context.eval("id")}}',
3488
- title: '{{context.eval("document.name")}}',
3489
- }
3490
- },
3491
- priority: 'primary',
3492
- type: 'sign',
3493
- scope: AXPEntityCommandScope.TypeLevel,
3494
- hidden: '{{context.eval("status") == "Draft"}}',
3495
- },
3496
- ],
3659
+ actions: [],
3497
3660
  },
3498
3661
  list: {
3499
3662
  actions: [
@@ -3576,22 +3739,9 @@ async function distributionInteractionFactory(injector) {
3576
3739
  ],
3577
3740
  properties: [
3578
3741
  {
3579
- name: 'name',
3580
- title: `t("name", { scope: "common" })`,
3742
+ name: 'user',
3743
+ title: `t("user", { scope: "common" })`,
3581
3744
  groupId: 'section',
3582
- options: {
3583
- sort: {
3584
- enabled: true,
3585
- },
3586
- filter: {
3587
- advance: {
3588
- enabled: true,
3589
- },
3590
- inline: {
3591
- enabled: false,
3592
- },
3593
- },
3594
- },
3595
3745
  schema: {
3596
3746
  dataType: 'string',
3597
3747
  interface: {
@@ -3605,36 +3755,55 @@ async function distributionInteractionFactory(injector) {
3605
3755
  ],
3606
3756
  },
3607
3757
  {
3608
- name: 'title',
3609
- title: `t("title", { scope: "common" })`,
3758
+ name: 'hasViewed',
3759
+ title: `t("has-view", { scope: "${i18n}" })`,
3610
3760
  groupId: 'section',
3611
- options: {
3612
- sort: {
3613
- enabled: true,
3761
+ schema: {
3762
+ dataType: 'boolean',
3763
+ interface: {
3764
+ type: AXPWidgetsCatalog.toggle,
3614
3765
  },
3615
- filter: {
3616
- advance: {
3617
- enabled: true,
3618
- },
3619
- inline: {
3620
- enabled: false,
3621
- },
3766
+ },
3767
+ },
3768
+ {
3769
+ name: 'hasSigned',
3770
+ title: `t("has-signed", { scope: "${i18n}" })`,
3771
+ groupId: 'section',
3772
+ schema: {
3773
+ dataType: 'boolean',
3774
+ interface: {
3775
+ type: AXPWidgetsCatalog.toggle,
3622
3776
  },
3623
3777
  },
3778
+ },
3779
+ {
3780
+ name: 'lastViewDate',
3781
+ title: `t("view-at", { scope: "${i18n}" })`,
3782
+ groupId: 'section',
3624
3783
  schema: {
3625
- dataType: 'string',
3784
+ dataType: 'date',
3626
3785
  interface: {
3627
- type: AXPWidgetsCatalog.text,
3786
+ type: AXPWidgetsCatalog.dateTime,
3628
3787
  },
3629
3788
  },
3630
- validations: [
3631
- {
3632
- rule: 'required',
3789
+ },
3790
+ {
3791
+ name: 'lastSignDate',
3792
+ title: `t("signed-at", { scope: "${i18n}" })`,
3793
+ groupId: 'section',
3794
+ schema: {
3795
+ dataType: 'date',
3796
+ interface: {
3797
+ type: AXPWidgetsCatalog.dateTime,
3633
3798
  },
3634
- ],
3799
+ },
3635
3800
  },
3636
3801
  ],
3637
- columns: [{ name: 'name' }, { name: 'title' }],
3802
+ columns: [{ name: 'user', options: { dataPath: 'user.title' } }, { name: 'hasViewed' },
3803
+ { name: 'lastViewDate' },
3804
+ { name: 'hasSigned' },
3805
+ { name: 'lastSignDate' }
3806
+ ],
3638
3807
  commands: {
3639
3808
  create: {
3640
3809
  execute: async (data) => {
@@ -3662,7 +3831,9 @@ async function distributionInteractionFactory(injector) {
3662
3831
  },
3663
3832
  list: {
3664
3833
  execute: async (e) => {
3665
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3834
+ const x = await dataService.query(e);
3835
+ console.log(x);
3836
+ return x;
3666
3837
  },
3667
3838
  type: AXPEntityQueryType.List,
3668
3839
  },
@@ -3772,39 +3943,10 @@ async function distributionInteractionFactory(injector) {
3772
3943
  actions: [],
3773
3944
  },
3774
3945
  list: {
3775
- actions: [
3776
- {
3777
- title: `t("create", { scope: "common" })`,
3778
- command: 'create-entity',
3779
- priority: 'primary',
3780
- type: 'create',
3781
- scope: AXPEntityCommandScope.TypeLevel,
3782
- },
3783
- {
3784
- title: 't("deleteItems", { scope: "common" })',
3785
- command: 'delete-entity',
3786
- priority: 'primary',
3787
- type: 'delete',
3788
- scope: AXPEntityCommandScope.Selected,
3789
- },
3790
- {
3791
- title: 't("detail", { scope: "common" })',
3792
- command: 'open-entity',
3793
- priority: 'secondary',
3794
- type: 'view',
3795
- scope: AXPEntityCommandScope.Individual,
3796
- },
3797
- {
3798
- title: 't("delete", { scope: "common" })',
3799
- command: 'delete-entity',
3800
- priority: 'secondary',
3801
- type: 'delete',
3802
- scope: AXPEntityCommandScope.Individual,
3803
- },
3804
- ],
3946
+ actions: [],
3805
3947
  views: [
3806
3948
  createAllQueryView({
3807
- sorts: [{ name: 'name', dir: 'asc' }]
3949
+ sorts: [{ name: 'name', dir: 'asc' }],
3808
3950
  }),
3809
3951
  ],
3810
3952
  },
@@ -4692,20 +4834,25 @@ const AXMUploadWorkflow = {
4692
4834
  class AXMSendToReviewConfirmAction extends AXPWorkflowAction {
4693
4835
  constructor() {
4694
4836
  super(...arguments);
4695
- this.dialogService = inject(AXDialogService);
4837
+ this.popupService = inject(AXPopupService);
4696
4838
  this.translationService = inject(AXTranslationService);
4697
4839
  }
4698
- //private documentService = inject(AXMDocumentService);
4699
4840
  async execute(context) {
4700
4841
  const documentId = context.getVariable('options.id');
4701
4842
  const documentTitle = context.getVariable('options.title');
4702
- const dialogResult = await this.dialogService.confirm(await this.translationService.translateAsync('document-review.confirm-send.title', {
4703
- scope: 'document-management',
4704
- }), await this.translationService.translateAsync('document-review.confirm-send.message', {
4705
- scope: 'document-management',
4706
- params: { title: documentTitle },
4707
- }), 'primary', 'horizontal', false, 'cancel');
4708
- context.setOutput('confirmed', dialogResult.result);
4843
+ const comp = await import('./acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs').then((m) => m.AXMDocumentSendToReviewPopupComponent);
4844
+ const result = await this.popupService.open(comp, {
4845
+ title: await this.translationService.translateAsync('document-review.confirm-send.title', {
4846
+ scope: 'document-management',
4847
+ params: { title: documentTitle },
4848
+ }),
4849
+ data: {
4850
+ documentId: documentId,
4851
+ documentTitle: documentTitle,
4852
+ },
4853
+ });
4854
+ context.setOutput('confirmed', result.data.confirmed);
4855
+ context.setVariable('assignTo', result.data.assignedTo);
4709
4856
  }
4710
4857
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSendToReviewConfirmAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4711
4858
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMSendToReviewConfirmAction }); }
@@ -4738,6 +4885,7 @@ class AXMUpdateDocumentStatusAction extends AXPWorkflowAction {
4738
4885
  name: document.updatedBy ?? '',
4739
4886
  title: document.updatedBy ?? '',
4740
4887
  },
4888
+ reviewerId: context.getVariable('assignTo'),
4741
4889
  });
4742
4890
  await this.documentService.updateOne(documentId, {
4743
4891
  status: 'PendingReview',
@@ -4811,14 +4959,14 @@ const AXMSendToReviewWorkflow = {
4811
4959
  },
4812
4960
  },
4813
4961
  };
4814
- class AXMCheckOutputAction extends AXPWorkflowAction {
4962
+ class AXMChangeEntityAction extends AXPWorkflowAction {
4815
4963
  async execute(context) {
4816
- console.log(context);
4964
+ context.setVariable('entity', `${RootConfig.module.name}.${RootConfig.entities.document.name}`);
4817
4965
  }
4818
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMCheckOutputAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4819
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMCheckOutputAction }); }
4966
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMChangeEntityAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4967
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMChangeEntityAction }); }
4820
4968
  }
4821
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMCheckOutputAction, decorators: [{
4969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMChangeEntityAction, decorators: [{
4822
4970
  type: Injectable
4823
4971
  }] });
4824
4972
  /**
@@ -4838,6 +4986,26 @@ const AXMSubmitReviewWorkflow = {
4838
4986
  },
4839
4987
  },
4840
4988
  },
4989
+ nextSteps: [
4990
+ {
4991
+ conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
4992
+ nextStepId: 'change-entity',
4993
+ },
4994
+ {
4995
+ conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == false' }],
4996
+ nextStepId: 'show-error',
4997
+ },
4998
+ ],
4999
+ },
5000
+ 'change-entity': {
5001
+ id: 'change-entity',
5002
+ action: 'AXMChangeEntityAction',
5003
+ nextSteps: [
5004
+ {
5005
+ nextStepId: 'reload-entity',
5006
+ conditions: [],
5007
+ },
5008
+ ],
4841
5009
  },
4842
5010
  'reload-entity': {
4843
5011
  id: 'reload-entity',
@@ -4994,8 +5162,10 @@ class AXMDocumentSignaturePopupAction extends AXPWorkflowAction {
4994
5162
  async execute(context) {
4995
5163
  const documentId = context.getVariable('options.id');
4996
5164
  const documentTitle = context.getVariable('options.title');
4997
- const comp = await import('./acorex-modules-document-management-document-signature-popup.component-CK8MX49w.mjs')
5165
+ const fileId = context.getVariable('options.fileId');
5166
+ const comp = await import('./acorex-modules-document-management-document-signature-popup.component-BOjb2k4S.mjs')
4998
5167
  .then(x => x.AXMDocumentSignaturePopupComponent);
5168
+ console.log(fileId);
4999
5169
  const result = await this.popupService.open(comp, {
5000
5170
  title: await this.translationService.translateAsync('document-signature.title', {
5001
5171
  scope: 'document-management',
@@ -5004,7 +5174,8 @@ class AXMDocumentSignaturePopupAction extends AXPWorkflowAction {
5004
5174
  size: 'md',
5005
5175
  data: {
5006
5176
  documentId,
5007
- documentTitle
5177
+ documentTitle,
5178
+ fileId
5008
5179
  }
5009
5180
  });
5010
5181
  context.setOutput('confirmed', result.data?.confirmed || false);
@@ -5117,22 +5288,43 @@ const AXMDocumentSignatureWorkflow = {
5117
5288
  },
5118
5289
  };
5119
5290
 
5120
- class AXMTaskBadgeProviderSample1 {
5291
+ class AXMDocumentReviewBadgeProvider {
5121
5292
  constructor() {
5293
+ this.documentReviewService = inject(AXMDocumentService);
5122
5294
  this.count = signal(0, ...(ngDevMode ? [{ debugName: "count" }] : []));
5123
- this.key = 'badge-1';
5124
- this.count.set(10);
5295
+ this.key = 'review-badge';
5296
+ this.getCount();
5125
5297
  }
5126
- }
5127
- class AXMTaskBadgeProviderSample2 {
5128
- constructor() {
5129
- this.count = signal(5, ...(ngDevMode ? [{ debugName: "count" }] : []));
5130
- this.key = 'badge-2';
5131
- setInterval(() => {
5132
- this.count.update(c => c + 1);
5133
- }, 30000);
5298
+ async getCount() {
5299
+ // Base filter for requiresReview
5300
+ const baseFilters = [
5301
+ {
5302
+ field: 'documentType.requiresReview',
5303
+ operator: { type: 'equal' },
5304
+ value: true,
5305
+ },
5306
+ {
5307
+ field: 'status',
5308
+ operator: { type: 'equal' },
5309
+ value: 'PendingReview',
5310
+ },
5311
+ ];
5312
+ const x = await this.documentReviewService.query({
5313
+ skip: 0,
5314
+ take: 1,
5315
+ filter: {
5316
+ logic: 'and',
5317
+ filters: baseFilters,
5318
+ },
5319
+ });
5320
+ this.count.set(x.total);
5134
5321
  }
5322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMDocumentReviewBadgeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5323
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMDocumentReviewBadgeProvider }); }
5135
5324
  }
5325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMDocumentReviewBadgeProvider, decorators: [{
5326
+ type: Injectable
5327
+ }], ctorParameters: () => [] });
5136
5328
 
5137
5329
  //#region ---- Imports ----
5138
5330
  //#endregion
@@ -5570,7 +5762,7 @@ class AXMDocumentManagerService {
5570
5762
  * Moves a node to another location
5571
5763
  */
5572
5764
  async moveTo(options) {
5573
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs')).AXMDocumentDriveChooseComponent;
5765
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66hegSh.mjs')).AXMDocumentDriveChooseComponent;
5574
5766
  const popup = await this.popupService.open(comp, {
5575
5767
  title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
5576
5768
  data: {
@@ -5603,7 +5795,7 @@ class AXMDocumentManagerService {
5603
5795
  * Copies a node to another location
5604
5796
  */
5605
5797
  async copyTo(options) {
5606
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs')).AXMDocumentDriveChooseComponent;
5798
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66hegSh.mjs')).AXMDocumentDriveChooseComponent;
5607
5799
  const popup = await this.popupService.open(comp, {
5608
5800
  title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
5609
5801
  data: {
@@ -5750,16 +5942,30 @@ class AXMDocumentManagerService {
5750
5942
  status: docType.requiresReview ? (isReviewSent ? 'PendingReview' : 'Draft') : 'Completed',
5751
5943
  });
5752
5944
  if (isReviewSent) {
5753
- const reviewRecordID = await this.reviewService.insertOne({
5754
- documentId: docId,
5755
- // document : docType,
5756
- version: 1,
5757
- reviewStatus: 'Pending',
5758
- modifiedBy: this.sessionService.user,
5759
- });
5760
- await this.documentService.updateOne(docId, {
5761
- reviewRecordId: reviewRecordID,
5945
+ const comp = await import('./acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs').then((m) => m.AXMDocumentSendToReviewPopupComponent);
5946
+ const result = await this.popupService.open(comp, {
5947
+ title: await this.translate.translateAsync('document-review.confirm-send.title', {
5948
+ scope: 'document-management',
5949
+ params: { title: listItem.name },
5950
+ }),
5951
+ data: {
5952
+ documentId: docId,
5953
+ documentTitle: listItem.name,
5954
+ },
5762
5955
  });
5956
+ if (result.data != null && result.data.confirmed) {
5957
+ const reviewRecordID = await this.reviewService.insertOne({
5958
+ documentId: docId,
5959
+ // document : docType,
5960
+ version: 1,
5961
+ reviewStatus: 'Pending',
5962
+ modifiedBy: this.sessionService.user,
5963
+ reviewerId: result.data.assignedTo,
5964
+ });
5965
+ await this.documentService.updateOne(docId, {
5966
+ reviewRecordId: reviewRecordID,
5967
+ });
5968
+ }
5763
5969
  }
5764
5970
  }
5765
5971
  return true;
@@ -5822,12 +6028,26 @@ class AXMDocumentManagerService {
5822
6028
  const newVersion = docType.enableVersioning ? (editableFile.version ?? 1) + 1 : undefined;
5823
6029
  let reviewRecordID = undefined;
5824
6030
  if (isReviewSent) {
5825
- reviewRecordID = await this.reviewService.insertOne({
5826
- documentId: node.id,
5827
- version: newVersion ?? 0,
5828
- reviewStatus: 'Pending',
5829
- modifiedBy: this.sessionService.user,
6031
+ const comp = await import('./acorex-modules-document-management-document-send-to-review-popup.component-CtpLvPIr.mjs').then((m) => m.AXMDocumentSendToReviewPopupComponent);
6032
+ const result = await this.popupService.open(comp, {
6033
+ title: await this.translate.translateAsync('document-review.confirm-send.title', {
6034
+ scope: 'document-management',
6035
+ params: { title: editableFile.name },
6036
+ }),
6037
+ data: {
6038
+ documentId: editableFile.id,
6039
+ documentTitle: editableFile.name,
6040
+ },
5830
6041
  });
6042
+ if (result.data != null && result.data.confirmed) {
6043
+ reviewRecordID = await this.reviewService.insertOne({
6044
+ documentId: node.id,
6045
+ version: newVersion ?? 0,
6046
+ reviewStatus: 'Pending',
6047
+ modifiedBy: this.sessionService.user,
6048
+ reviewerId: result.data.assignedTo,
6049
+ });
6050
+ }
5831
6051
  }
5832
6052
  await this.documentService.updateOne(node.id, {
5833
6053
  fileId: newFileId ?? editableFile.fileId,
@@ -5921,7 +6141,7 @@ class AXMDocumentManagerService {
5921
6141
  * Shows folder edit dialog
5922
6142
  */
5923
6143
  async showFolderEditDialog(node) {
5924
- const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs'))
6144
+ const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BFnvHSjH.mjs'))
5925
6145
  .AXMCreateFolderDialog;
5926
6146
  const popup = await this.popupService.open(comp, {
5927
6147
  title: await this.translate.translateAsync('@document-management:actions.update-folder'),
@@ -5935,7 +6155,7 @@ class AXMDocumentManagerService {
5935
6155
  * Shows create folder dialog
5936
6156
  */
5937
6157
  async showCreateFolderDialog(parentId) {
5938
- const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BWMANjYL.mjs'))
6158
+ const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BFnvHSjH.mjs'))
5939
6159
  .AXMCreateFolderDialog;
5940
6160
  const popup = await this.popupService.open(comp, {
5941
6161
  title: await this.translate.translateAsync('@document-management:actions.create-folder'),
@@ -5949,7 +6169,7 @@ class AXMDocumentManagerService {
5949
6169
  * Shows rename popup for a node
5950
6170
  */
5951
6171
  async showRenamePopup(node) {
5952
- const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-DXiQj-Hb.mjs'))
6172
+ const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-Da9v8nVj.mjs'))
5953
6173
  .AXMRenameNodeDialog;
5954
6174
  const popup = await this.popupService.open(comp, {
5955
6175
  title: 't("actions.rename")',
@@ -5975,7 +6195,7 @@ class AXMDocumentManagerService {
5975
6195
  * Shows choose file dialog
5976
6196
  */
5977
6197
  async showChooseFileDialog(scope) {
5978
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-DoUkm43Y.mjs')).AXMDocumentDriveChooseComponent;
6198
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66hegSh.mjs')).AXMDocumentDriveChooseComponent;
5979
6199
  const result = await this.popupService.open(comp, {
5980
6200
  title: await this.translate.translateAsync('@document-management:actions.choose-from-drive'),
5981
6201
  data: {
@@ -7232,13 +7452,13 @@ class AXMDocumentExplorerComponent {
7232
7452
  this.showContextMenu = input(true, ...(ngDevMode ? [{ debugName: "showContextMenu" }] : []));
7233
7453
  this.view = signal(null, ...(ngDevMode ? [{ debugName: "view" }] : []));
7234
7454
  this.viewMap = {
7235
- list: async () => (await import('./acorex-modules-document-management-list-view.component-BGUDmglV.mjs')).AXMDocumentExplorerListViewComponent,
7236
- 'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-B70rSvao.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
7237
- 'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-DL3PEFfv.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
7238
- details: async () => (await import('./acorex-modules-document-management-details-view.component-BmJB8bb8.mjs')).AXMDocumentExplorerDetailsViewComponent,
7239
- 'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-C-9UNa_X.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
7240
- 'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-C8RZC3TM.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
7241
- 'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-ClgS3Q8D.mjs')).AXMDocumentExplorerAttachmentComponent,
7455
+ list: async () => (await import('./acorex-modules-document-management-list-view.component-oDeeGScM.mjs')).AXMDocumentExplorerListViewComponent,
7456
+ 'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-DSDfR1nj.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
7457
+ 'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-BeR4aIqh.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
7458
+ details: async () => (await import('./acorex-modules-document-management-details-view.component-7OR6bXr-.mjs')).AXMDocumentExplorerDetailsViewComponent,
7459
+ 'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-DJn6kyvL.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
7460
+ 'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-Wfms-st6.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
7461
+ 'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-C80j1Gn7.mjs')).AXMDocumentExplorerAttachmentComponent,
7242
7462
  };
7243
7463
  this.#effect = effect(() => {
7244
7464
  if (this.vm.loadingFolderId() == null) {
@@ -7710,7 +7930,7 @@ class AXPMetaSelectorWidgetEditComponent extends AXPValueWidgetComponent {
7710
7930
  * Handle adding new metadata items
7711
7931
  */
7712
7932
  async handleAddClick() {
7713
- const comp = (await import('./acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs')).AXPMetaChoosePopupComponent;
7933
+ const comp = (await import('./acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs')).AXPMetaChoosePopupComponent;
7714
7934
  const result = await this.popupService.open(comp, {
7715
7935
  title: 'Meta Selector',
7716
7936
  data: {
@@ -7738,7 +7958,7 @@ class AXPMetaSelectorWidgetEditComponent extends AXPValueWidgetComponent {
7738
7958
  * Handle editing a metadata item
7739
7959
  */
7740
7960
  async handleMetaEdit(item) {
7741
- const comp = (await import('./acorex-modules-document-management-meta-choose-popup.component-BZu8EbTh.mjs')).AXPMetaChoosePopupComponent;
7961
+ const comp = (await import('./acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs')).AXPMetaChoosePopupComponent;
7742
7962
  const result = await this.popupService.open(comp, {
7743
7963
  title: 'Edit Meta Selector',
7744
7964
  data: {
@@ -7902,6 +8122,377 @@ const AXPMetaSelectorWidget = {
7902
8122
  },
7903
8123
  };
7904
8124
 
8125
+ class AXMDocumentReviewTaskProvider extends AXPWorkflowTaskProvider {
8126
+ constructor() {
8127
+ super(...arguments);
8128
+ this.documentReviewService = inject(AXMReviewService);
8129
+ this.workflowService = inject(AXPWorkflowService);
8130
+ this.eventService = inject(AXPDistributedEventListenerService);
8131
+ }
8132
+ get name() {
8133
+ return 'document-review';
8134
+ }
8135
+ get title() {
8136
+ return 'Document Review';
8137
+ }
8138
+ get icon() {
8139
+ return 'fa-light fa-file-pen';
8140
+ }
8141
+ /**
8142
+ * Retrieves a list of tasks, optionally filtered by a date range.
8143
+ * If a date range is provided in the options, only tasks that overlap with that range will be returned.
8144
+ * @param options Filtering options, primarily containing a date range.
8145
+ * @returns An array of filtered tasks.
8146
+ */
8147
+ async getTasks(options) {
8148
+ const baseFilter = {
8149
+ logic: 'and',
8150
+ filters: [],
8151
+ };
8152
+ if (options?.range?.from) {
8153
+ baseFilter.filters?.push({
8154
+ field: 'reviewDate',
8155
+ operator: { type: 'gte' },
8156
+ value: options.range.from,
8157
+ });
8158
+ }
8159
+ if (options?.range?.end) {
8160
+ baseFilter.filters?.push({
8161
+ field: 'distributionDate',
8162
+ operator: { type: 'lte' },
8163
+ value: options.range.end,
8164
+ });
8165
+ }
8166
+ const filteredList = await this.documentReviewService.query({
8167
+ skip: options?.skip ?? 0,
8168
+ take: options?.take ?? 10,
8169
+ filter: baseFilter,
8170
+ });
8171
+ const tasks = {
8172
+ items: filteredList.items.map((item) => ({
8173
+ id: item.id,
8174
+ title: item.document?.title ?? '' + ' - ' + item.version,
8175
+ description: item.document?.description ?? '',
8176
+ startDate: item.createdAt ?? new Date(),
8177
+ endDate: item.createdAt
8178
+ ? new Date(new Date(item.createdAt).getTime() + 24 * 60 * 60 * 1000)
8179
+ : new Date(new Date().getTime() + 24 * 60 * 60 * 1000),
8180
+ assignee: {
8181
+ id: item.reviewerId ?? '',
8182
+ type: 'user',
8183
+ fullName: item.reviewer?.title ?? '',
8184
+ },
8185
+ index: 3,
8186
+ status: {
8187
+ id: item.reviewStatus,
8188
+ title: item.reviewStatus,
8189
+ },
8190
+ priority: 'high',
8191
+ reporter: {
8192
+ id: item.createdBy ?? '',
8193
+ type: 'user',
8194
+ fullName: item.createdBy ?? '',
8195
+ },
8196
+ })),
8197
+ total: filteredList.total,
8198
+ };
8199
+ return tasks;
8200
+ }
8201
+ /**
8202
+ * Updates one or more tasks in the provider's list.
8203
+ * This method finds each task by its ID and applies the new properties from the input.
8204
+ * It also automatically recalculates the `allDay` flag based on the task's duration.
8205
+ * @param tasksToUpdate An array of task objects to update. Each object must have an `id`.
8206
+ * @returns An array of the tasks that were successfully updated.
8207
+ */
8208
+ async updateTasks(tasksToUpdate) {
8209
+ console.log(tasksToUpdate);
8210
+ return tasksToUpdate;
8211
+ }
8212
+ async executeCommand(command) {
8213
+ if (command.name === 'submitReview') {
8214
+ console.log(command.options);
8215
+ const workflow = await this.workflowService.execute('submit-review', {
8216
+ options: command.options,
8217
+ });
8218
+ this.eventService.dispatch('task-board.refresh');
8219
+ }
8220
+ return { success: true };
8221
+ }
8222
+ async getActions(task) {
8223
+ const review = {
8224
+ name: 'submitReview',
8225
+ title: 'Submit Review',
8226
+ icon: 'fa-light fa-pen-to-square',
8227
+ command: { name: 'submitReview', options: { id: task?.id ?? '' } },
8228
+ };
8229
+ const list = [];
8230
+ if (task?.status?.id === 'Pending') {
8231
+ list.push(review);
8232
+ }
8233
+ return list;
8234
+ }
8235
+ async getExtraFields() {
8236
+ return [];
8237
+ }
8238
+ async getStatuses() {
8239
+ return [
8240
+ { index: 0, key: 'Pending', title: 'Pending' },
8241
+ { index: 1, key: 'Approved', title: 'Approved' },
8242
+ { index: 2, key: 'Rejected', title: 'Rejected' },
8243
+ ];
8244
+ }
8245
+ }
8246
+
8247
+ class AXMDocumentDistributionTaskProvider extends AXPWorkflowTaskProvider {
8248
+ constructor() {
8249
+ super(...arguments);
8250
+ this.documentService = inject(AXMDistributionService);
8251
+ this.workflowService = inject(AXPWorkflowService);
8252
+ }
8253
+ get name() {
8254
+ return 'document-distribution';
8255
+ }
8256
+ get title() {
8257
+ return 'Document Distribution';
8258
+ }
8259
+ get icon() {
8260
+ return 'fa-light fa-file-pen';
8261
+ }
8262
+ /**
8263
+ * Retrieves a list of tasks, optionally filtered by a date range.
8264
+ * If a date range is provided in the options, only tasks that overlap with that range will be returned.
8265
+ * @param options Filtering options, primarily containing a date range.
8266
+ * @returns An array of filtered tasks.
8267
+ */
8268
+ async getTasks(options) {
8269
+ const baseFilter = {
8270
+ logic: 'and',
8271
+ filters: [],
8272
+ };
8273
+ if (options?.range?.from) {
8274
+ baseFilter.filters?.push({
8275
+ field: 'distributionDate',
8276
+ operator: { type: 'gte' },
8277
+ value: options.range.from,
8278
+ });
8279
+ }
8280
+ if (options?.range?.end) {
8281
+ baseFilter.filters?.push({
8282
+ field: 'distributionDate',
8283
+ operator: { type: 'lte' },
8284
+ value: options.range.end,
8285
+ });
8286
+ }
8287
+ const filteredList = await this.documentService.query({
8288
+ skip: options?.skip ?? 0,
8289
+ take: options?.take ?? 10,
8290
+ filter: baseFilter,
8291
+ });
8292
+ return {
8293
+ items: filteredList.items.map((item) => ({
8294
+ id: item.id,
8295
+ title: item.document?.title ?? '' + ' - ' + item.version,
8296
+ startDate: item.createdAt ?? new Date(),
8297
+ endDate: item.dueDate ?? new Date(),
8298
+ index: 0,
8299
+ status: {
8300
+ id: 0,
8301
+ title: 'Pending',
8302
+ },
8303
+ priority: 'high',
8304
+ reporter: {
8305
+ id: item.createdBy ?? '',
8306
+ type: 'user',
8307
+ },
8308
+ data: item,
8309
+ })),
8310
+ total: filteredList.total,
8311
+ };
8312
+ }
8313
+ /**
8314
+ * Updates one or more tasks in the provider's list.
8315
+ * This method finds each task by its ID and applies the new properties from the input.
8316
+ * It also automatically recalculates the `allDay` flag based on the task's duration.
8317
+ * @param tasksToUpdate An array of task objects to update. Each object must have an `id`.
8318
+ * @returns An array of the tasks that were successfully updated.
8319
+ */
8320
+ async updateTasks(tasksToUpdate) {
8321
+ console.log(tasksToUpdate);
8322
+ return tasksToUpdate;
8323
+ }
8324
+ async executeCommand(command) {
8325
+ if (command.name === 'document-signature') {
8326
+ this.workflowService.execute(command.name, command);
8327
+ }
8328
+ return { success: true };
8329
+ }
8330
+ async getActions(task) {
8331
+ const edit = {
8332
+ title: `t("document-distribution.sign", { scope: "${RootConfig.config.i18n}" })`,
8333
+ command: {
8334
+ name: 'document-signature',
8335
+ options: {
8336
+ id: task?.id,
8337
+ title: task?.title,
8338
+ fileId: task?.data?.document?.fileId,
8339
+ }
8340
+ },
8341
+ };
8342
+ return [edit];
8343
+ }
8344
+ async getExtraFields() {
8345
+ return [];
8346
+ }
8347
+ async getStatuses() {
8348
+ return [
8349
+ { index: 0, key: 'pending', title: 'Pending' },
8350
+ { index: 1, key: 'in-progress', title: 'In Progress' },
8351
+ { index: 2, key: 'done', title: 'Done' },
8352
+ { index: 3, key: 'canceled', title: 'Canceled' },
8353
+ ];
8354
+ }
8355
+ }
8356
+
8357
+ /**
8358
+ * attachments plugin
8359
+ * Notes:
8360
+ * - Always ensures an 'attachments' group and single-view section
8361
+ * - Always ensures the property exists if missing
8362
+ * - Uses provided accept/multiple/fileEditable; others are fixed
8363
+ */
8364
+ const attachmentsPlugin = {
8365
+ name: 'attachments',
8366
+ order: 50,
8367
+ apply: (ctx, options) => {
8368
+ const opts = options ?? {};
8369
+ const field = opts.field && opts.field.trim().length > 0 ? opts.field : 'attachments';
8370
+ const displayTitle = opts.title && opts.title.trim().length > 0 ? opts.title : 'Attachments';
8371
+ // Ensure group and section ids (unique per field)
8372
+ const sectionId = `attachments-${field}`;
8373
+ const groupIdForProperty = `attachments-${field}`;
8374
+ const existingGroups = ctx.groups.list() ?? [];
8375
+ if (!existingGroups.some((g) => g.id === groupIdForProperty)) {
8376
+ ctx.groups.add({ id: groupIdForProperty, title: displayTitle });
8377
+ }
8378
+ // Ensure property exists (using a generic file-uploader interface)
8379
+ const props = ctx.properties.list();
8380
+ if (!props.some((p) => p.name === field)) {
8381
+ ctx.properties.add({
8382
+ name: field,
8383
+ title: displayTitle,
8384
+ groupId: groupIdForProperty,
8385
+ schema: {
8386
+ dataType: 'string',
8387
+ interface: {
8388
+ type: 'file-uploader',
8389
+ options: {
8390
+ multiple: opts.multiple ?? true,
8391
+ accept: opts.accept,
8392
+ fileEditable: opts.fileEditable ?? true,
8393
+ fileIds: `{{ context.eval("${field}") }}`,
8394
+ },
8395
+ },
8396
+ },
8397
+ });
8398
+ }
8399
+ // Ensure column exists
8400
+ const cols = ctx.columns.list() ?? [];
8401
+ if (!cols?.some((c) => c.name === field)) {
8402
+ ctx.columns.add({ name: field });
8403
+ }
8404
+ // Ensure single view section and property layout exists
8405
+ const sectionOrder = 8;
8406
+ const colSpan = 12;
8407
+ ctx.interfaces.master.single.update((single) => {
8408
+ const next = single ?? { title: ctx.entity.title, sections: [], properties: [] };
8409
+ next.sections = next.sections ?? [];
8410
+ if (!next.sections.some((s) => s.id === sectionId)) {
8411
+ next.sections.push({ id: sectionId, title: displayTitle });
8412
+ }
8413
+ next.properties = next.properties ?? [];
8414
+ if (!next.properties.some((p) => p.name === field)) {
8415
+ next.properties.push({
8416
+ name: field,
8417
+ layout: {
8418
+ label: { visible: false },
8419
+ positions: { lg: { colSpan, order: sectionOrder } },
8420
+ },
8421
+ });
8422
+ }
8423
+ return next;
8424
+ });
8425
+ // Ensure create view includes the section and property layout
8426
+ ctx.interfaces.master.create.update((create) => {
8427
+ const next = create ?? { sections: [], properties: [] };
8428
+ next.sections = next.sections ?? [];
8429
+ if (!next.sections.some((s) => s.id === sectionId)) {
8430
+ next.sections.push({ id: sectionId, title: displayTitle });
8431
+ }
8432
+ next.properties = next.properties ?? [];
8433
+ if (!next.properties.some((p) => p.name === field)) {
8434
+ next.properties.push({
8435
+ name: field,
8436
+ layout: {
8437
+ positions: { lg: { colSpan, order: 6 } },
8438
+ },
8439
+ });
8440
+ }
8441
+ return next;
8442
+ });
8443
+ // Ensure update view includes the section and property layout
8444
+ ctx.interfaces.master.modify.update((modify) => {
8445
+ const next = modify ?? { sections: [], properties: [] };
8446
+ next.sections = next.sections ?? [];
8447
+ if (!next.sections.some((s) => s.id === sectionId)) {
8448
+ next.sections.push({ id: sectionId, title: displayTitle });
8449
+ }
8450
+ next.properties = next.properties ?? [];
8451
+ if (!next.properties.some((p) => p.name === field)) {
8452
+ next.properties.push({
8453
+ name: field,
8454
+ layout: {
8455
+ positions: { lg: { colSpan, order: 6 } },
8456
+ },
8457
+ });
8458
+ }
8459
+ return next;
8460
+ });
8461
+ // Ensure list action to open file uploader popup exists
8462
+ ensureListActions(ctx);
8463
+ ctx.interfaces.update((i) => {
8464
+ const actions = i.master.list.actions;
8465
+ const cmdName = 'show-file-uploader-popup';
8466
+ const actionName = `attachments-${field}`;
8467
+ if (!actionExists(actions, cmdName, actionName)) {
8468
+ actions.push({
8469
+ name: actionName,
8470
+ title: opts.titleKey ?? opts.label ?? '@document-management:actions.upload-files',
8471
+ command: {
8472
+ name: cmdName,
8473
+ options: {
8474
+ id: '{{ context.eval("id") }}',
8475
+ files: `{{ context.eval("${field}") }}`,
8476
+ multiple: opts.multiple ?? true,
8477
+ accept: opts.accept ?? '.jpg,.jpeg,.png,.gif,.webp',
8478
+ key: field,
8479
+ fileEditable: opts.fileEditable ?? true,
8480
+ },
8481
+ },
8482
+ priority: 'secondary',
8483
+ type: 'upload',
8484
+ scope: AXPEntityCommandScope.Individual,
8485
+ });
8486
+ }
8487
+ return i;
8488
+ });
8489
+ // Stamp normalized config for middleware
8490
+ ctx.entity.extensions ??= {};
8491
+ ctx.entity.extensions.attachments ??= {};
8492
+ ctx.entity.extensions.attachments[field] = { title: displayTitle };
8493
+ },
8494
+ };
8495
+
7905
8496
  function routesFacory() {
7906
8497
  const config = inject(AXP_ENTITY_CONFIG_TOKEN);
7907
8498
  const routes = [
@@ -7915,11 +8506,11 @@ function routesFacory() {
7915
8506
  children: [
7916
8507
  {
7917
8508
  path: '',
7918
- loadComponent: () => import('./acorex-modules-document-management-drive.component-R1V4W9u3.mjs').then((c) => c.AXMDocumentDriveComponent),
8509
+ loadComponent: () => import('./acorex-modules-document-management-drive.component-DZhd1DUn.mjs').then((c) => c.AXMDocumentDriveComponent),
7919
8510
  },
7920
8511
  {
7921
8512
  path: ':id',
7922
- loadComponent: () => import('./acorex-modules-document-management-drive.component-R1V4W9u3.mjs').then((c) => c.AXMDocumentDriveComponent),
8513
+ loadComponent: () => import('./acorex-modules-document-management-drive.component-DZhd1DUn.mjs').then((c) => c.AXMDocumentDriveComponent),
7923
8514
  },
7924
8515
  ],
7925
8516
  },
@@ -7973,21 +8564,28 @@ class AXMDocumentManagementModule {
7973
8564
  provide: AXP_PERMISSION_DEFINITION_PROVIDER,
7974
8565
  useFactory: async () => {
7975
8566
  const injector = inject(Injector);
7976
- const provider = (await import('./acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs')).AXMPermissionDefinitionProvider;
8567
+ const provider = (await import('./acorex-modules-document-management-permission-definition.provider-CMEJt7pe.mjs')).AXMPermissionDefinitionProvider;
7977
8568
  return new provider(injector);
7978
8569
  },
7979
8570
  multi: true,
7980
8571
  },
7981
8572
  {
7982
8573
  provide: AXP_TASK_BADGE_PROVIDERS,
7983
- useClass: AXMTaskBadgeProviderSample1,
8574
+ useClass: AXMDocumentReviewBadgeProvider,
7984
8575
  multi: true,
7985
8576
  },
7986
8577
  {
7987
- provide: AXP_TASK_BADGE_PROVIDERS,
7988
- useClass: AXMTaskBadgeProviderSample2,
8578
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
8579
+ useClass: AXMDocumentReviewTaskProvider,
7989
8580
  multi: true,
7990
8581
  },
8582
+ {
8583
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
8584
+ useClass: AXMDocumentDistributionTaskProvider,
8585
+ multi: true,
8586
+ },
8587
+ //{ provide: AXP_ENTITY_STORAGE_MIDDLEWARE, multi: true, useValue: attachmentsUploadMiddleware },
8588
+ { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: attachmentsPlugin },
7991
8589
  {
7992
8590
  provide: ROUTES,
7993
8591
  multi: true,
@@ -8016,7 +8614,7 @@ class AXMDocumentManagementModule {
8016
8614
  AXMCreateDistributionRecordsAction,
8017
8615
  AXMDocumentSignaturePopupAction,
8018
8616
  AXMSaveSignatureInteractionAction,
8019
- AXMCheckOutputAction
8617
+ AXMChangeEntityAction
8020
8618
  },
8021
8619
  workflows: {
8022
8620
  'upload-document': AXMUploadWorkflow,
@@ -8054,7 +8652,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
8054
8652
  AXMCreateDistributionRecordsAction,
8055
8653
  AXMDocumentSignaturePopupAction,
8056
8654
  AXMSaveSignatureInteractionAction,
8057
- AXMCheckOutputAction
8655
+ AXMChangeEntityAction
8058
8656
  },
8059
8657
  workflows: {
8060
8658
  'upload-document': AXMUploadWorkflow,
@@ -8104,21 +8702,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
8104
8702
  provide: AXP_PERMISSION_DEFINITION_PROVIDER,
8105
8703
  useFactory: async () => {
8106
8704
  const injector = inject(Injector);
8107
- const provider = (await import('./acorex-modules-document-management-permission-definition.provider-Cbwf5Ved.mjs')).AXMPermissionDefinitionProvider;
8705
+ const provider = (await import('./acorex-modules-document-management-permission-definition.provider-CMEJt7pe.mjs')).AXMPermissionDefinitionProvider;
8108
8706
  return new provider(injector);
8109
8707
  },
8110
8708
  multi: true,
8111
8709
  },
8112
8710
  {
8113
8711
  provide: AXP_TASK_BADGE_PROVIDERS,
8114
- useClass: AXMTaskBadgeProviderSample1,
8712
+ useClass: AXMDocumentReviewBadgeProvider,
8115
8713
  multi: true,
8116
8714
  },
8117
8715
  {
8118
- provide: AXP_TASK_BADGE_PROVIDERS,
8119
- useClass: AXMTaskBadgeProviderSample2,
8716
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
8717
+ useClass: AXMDocumentReviewTaskProvider,
8718
+ multi: true,
8719
+ },
8720
+ {
8721
+ provide: AXP_WORKFLOW_TASK_PROVIDER,
8722
+ useClass: AXMDocumentDistributionTaskProvider,
8120
8723
  multi: true,
8121
8724
  },
8725
+ //{ provide: AXP_ENTITY_STORAGE_MIDDLEWARE, multi: true, useValue: attachmentsUploadMiddleware },
8726
+ { provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: attachmentsPlugin },
8122
8727
  {
8123
8728
  provide: ROUTES,
8124
8729
  multi: true,
@@ -8132,5 +8737,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
8132
8737
  * Generated bundle index. Do not edit.
8133
8738
  */
8134
8739
 
8135
- export { AXPDocumentExplorerViewModel as A, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as B, folderFactory as C, AXMFolderService as D, AXMFolderServiceImpl as E, reviewFactory as F, AXMReviewService as G, AXMReviewServiceImpl as H, distributionFactory as I, AXMDistributionService as J, AXMDistributionServiceImpl as K, distributionInteractionFactory as L, AXMDistributionInteractionService as M, AXMDistributionInteractionServiceImpl as N, AXMEntityProvider as O, AXMMenuProvider as P, AXMSearchCommandProvider as Q, RootConfig as R, AXMSettingProvider as S, AXMDocumentManagerService as a, AXMDocumentExplorerComponent as b, AXMPermissionsKeys as c, AXMFolderPathBreadcrumbsComponent as d, AXMDocumentTypeService as e, AXMDocumentManagementModule as f, documentFactory as g, AXMDocumentManagementDocumentEntityModule as h, AXMDocumentService as i, AXMDocumentServiceImpl as j, getNextStatus as k, canTransition as l, documentTypeFactory as m, AXMDocumentManagementDocumentTypeEntityModule as n, AXMDocumentTypeServiceImpl as o, documentTypeMetaDefinitionfactory as p, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as q, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as r, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as s, documentTypeMetaValueFactory as t, AXMDocumentManagementDocumentTypeMetaValueEntityModule as u, AXMDocumentManagementDocumentTypeMetaValueEntityService as v, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as w, documentTypeStatusDefinitionFactory as x, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as y, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as z };
8136
- //# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-BvIGh15O.mjs.map
8740
+ export { AXPDocumentExplorerViewModel as A, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as B, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as C, folderFactory as D, AXMFolderService as E, AXMFolderServiceImpl as F, reviewFactory as G, AXMReviewService as H, AXMReviewServiceImpl as I, distributionFactory as J, AXMDistributionService as K, AXMDistributionServiceImpl as L, distributionInteractionFactory as M, AXMDistributionInteractionServiceImpl as N, AXMEntityProvider as O, AXMMenuProvider as P, AXMSearchCommandProvider as Q, RootConfig as R, AXMSettingProvider as S, AXMDocumentManagerService as a, AXMDocumentExplorerComponent as b, AXMPermissionsKeys as c, AXMDistributionInteractionService as d, AXMFolderPathBreadcrumbsComponent as e, AXMDocumentTypeService as f, AXMDocumentManagementModule as g, documentFactory as h, AXMDocumentManagementDocumentEntityModule as i, AXMDocumentService as j, AXMDocumentServiceImpl as k, getNextStatus as l, canTransition as m, documentTypeFactory as n, AXMDocumentManagementDocumentTypeEntityModule as o, AXMDocumentTypeServiceImpl as p, documentTypeMetaDefinitionfactory as q, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as r, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as s, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as t, documentTypeMetaValueFactory as u, AXMDocumentManagementDocumentTypeMetaValueEntityModule as v, AXMDocumentManagementDocumentTypeMetaValueEntityService as w, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as x, documentTypeStatusDefinitionFactory as y, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as z };
8741
+ //# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-BCTTw-hI.mjs.map