@acorex/modules 19.3.0-next.5 → 19.3.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 (306) hide show
  1. package/auth/lib/pages/account/app-chooser/app-chooser-slot.component.d.ts +1 -1
  2. package/auth/lib/pages/login/password/password.component.d.ts +1 -0
  3. package/common/index.d.ts +0 -1
  4. package/common/lib/common.module.d.ts +1 -2
  5. package/common/lib/const.d.ts +1 -14
  6. package/dashboard-management/README.md +3 -0
  7. package/dashboard-management/index.d.ts +3 -0
  8. package/dashboard-management/lib/const.d.ts +19 -0
  9. package/dashboard-management/lib/dashboard-management.module.d.ts +7 -0
  10. package/dashboard-management/lib/entity.provider.d.ts +10 -0
  11. package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +0 -6
  12. package/dashboard-management/lib/features/shared/widgets/bar-chart/bar-chart-widget.component.d.ts +72 -0
  13. package/dashboard-management/lib/features/shared/widgets/bar-chart/bar-chart-widget.config.d.ts +7 -0
  14. package/dashboard-management/lib/features/shared/widgets/bar-chart/bar-chart.type.d.ts +34 -0
  15. package/dashboard-management/lib/features/shared/widgets/bar-chart/index.d.ts +2 -0
  16. package/dashboard-management/lib/features/shared/widgets/chart.type.d.ts +3 -0
  17. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar-widget.component.d.ts +40 -0
  18. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar-widget.config.d.ts +7 -0
  19. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar.types.d.ts +50 -0
  20. package/dashboard-management/lib/features/shared/widgets/clock-calendar/index.d.ts +3 -0
  21. package/dashboard-management/lib/features/shared/widgets/dashboard-shortcut/index.d.ts +2 -0
  22. package/dashboard-management/lib/features/shared/widgets/donut-chart/donut-chart-widget.component.d.ts +58 -0
  23. package/dashboard-management/lib/features/shared/widgets/donut-chart/donut-chart-widget.config.d.ts +7 -0
  24. package/dashboard-management/lib/features/shared/widgets/donut-chart/donut-chart.type.d.ts +67 -0
  25. package/dashboard-management/lib/features/shared/widgets/donut-chart/index.d.ts +2 -0
  26. package/dashboard-management/lib/features/shared/widgets/gauge-chart/gauge-chart-widget.component.d.ts +75 -0
  27. package/dashboard-management/lib/features/shared/widgets/gauge-chart/gauge-chart-widget.config.d.ts +7 -0
  28. package/dashboard-management/lib/features/shared/widgets/gauge-chart/gauge-chart.type.d.ts +29 -0
  29. package/dashboard-management/lib/features/shared/widgets/gauge-chart/index.d.ts +3 -0
  30. package/dashboard-management/lib/features/shared/widgets/index.d.ts +11 -0
  31. package/dashboard-management/lib/features/shared/widgets/line-chart/index.d.ts +3 -0
  32. package/dashboard-management/lib/features/shared/widgets/line-chart/line-chart-widget.component.d.ts +76 -0
  33. package/dashboard-management/lib/features/shared/widgets/line-chart/line-chart-widget.config.d.ts +7 -0
  34. package/dashboard-management/lib/features/shared/widgets/line-chart/line-chart.type.d.ts +41 -0
  35. package/dashboard-management/lib/features/shared/widgets/notification/index.d.ts +3 -0
  36. package/dashboard-management/lib/features/shared/widgets/notification/notification-widget.component.d.ts +54 -0
  37. package/dashboard-management/lib/features/shared/widgets/notification/notification-widget.config.d.ts +10 -0
  38. package/dashboard-management/lib/features/shared/widgets/notification/notification.type.d.ts +47 -0
  39. package/dashboard-management/lib/features/shared/widgets/shared/chart-base.component.d.ts +44 -0
  40. package/dashboard-management/lib/features/shared/widgets/shared/chart-base.type.d.ts +37 -0
  41. package/dashboard-management/lib/features/shared/widgets/shared/components/chart-tooltip/chart-tooltip.component.d.ts +28 -0
  42. package/dashboard-management/lib/features/shared/widgets/shared/components/chart-tooltip/index.d.ts +1 -0
  43. package/dashboard-management/lib/features/shared/widgets/shared/index.d.ts +3 -0
  44. package/dashboard-management/lib/features/shared/widgets/sticky-note/index.d.ts +2 -0
  45. package/dashboard-management/lib/features/shared/widgets/sticky-note/sticky-note-widget.component.d.ts +21 -0
  46. package/dashboard-management/lib/features/shared/widgets/sticky-note/sticky-note-widget.config.d.ts +7 -0
  47. package/dashboard-management/lib/features/shared/widgets/tasklist/index.d.ts +3 -0
  48. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist-widget.component.d.ts +34 -0
  49. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist-widget.config.d.ts +7 -0
  50. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist.type.d.ts +36 -0
  51. package/dashboard-management/lib/features/shared/widgets/weather/index.d.ts +3 -0
  52. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/index.d.ts +3 -0
  53. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.abstract.d.ts +174 -0
  54. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.key.d.ts +2 -0
  55. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.mock.service.d.ts +47 -0
  56. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.service.d.ts +48 -0
  57. package/dashboard-management/lib/features/shared/widgets/weather/weather-widget.component.d.ts +109 -0
  58. package/dashboard-management/lib/features/shared/widgets/weather/weather-widget.config.d.ts +14 -0
  59. package/dashboard-management/lib/menu.provider.d.ts +5 -0
  60. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +3 -1
  61. package/fesm2022/acorex-modules-application-management.mjs +2 -2
  62. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  63. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs → acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs} +22 -27
  64. package/fesm2022/acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs.map +1 -0
  65. package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs +64 -0
  66. package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-auth-login.module-BgTtZuTg.mjs → acorex-modules-auth-login.module-TtdNj0aL.mjs} +4 -4
  68. package/fesm2022/{acorex-modules-auth-login.module-BgTtZuTg.mjs.map → acorex-modules-auth-login.module-TtdNj0aL.mjs.map} +1 -1
  69. package/fesm2022/acorex-modules-auth-master.layout-CtVrY1hn.mjs +23 -0
  70. package/fesm2022/acorex-modules-auth-master.layout-CtVrY1hn.mjs.map +1 -0
  71. package/fesm2022/{acorex-modules-auth-password.component-U16w7Rq4.mjs → acorex-modules-auth-password.component-BXm2NAaN.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-auth-password.component-U16w7Rq4.mjs.map → acorex-modules-auth-password.component-BXm2NAaN.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-auth-password.component-_ceO6nyb.mjs → acorex-modules-auth-password.component-Dmj9zZSI.mjs} +5 -3
  74. package/fesm2022/acorex-modules-auth-password.component-Dmj9zZSI.mjs.map +1 -0
  75. package/fesm2022/{acorex-modules-auth-routes-CSGjcpD8.mjs → acorex-modules-auth-routes-DkgsKi3a.mjs} +2 -2
  76. package/fesm2022/{acorex-modules-auth-routes-CSGjcpD8.mjs.map → acorex-modules-auth-routes-DkgsKi3a.mjs.map} +1 -1
  77. package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs +97 -0
  78. package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs.map +1 -0
  79. package/fesm2022/{acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs → acorex-modules-auth-two-factor.module-DDOSqjYs.mjs} +2 -2
  80. package/fesm2022/{acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs.map → acorex-modules-auth-two-factor.module-DDOSqjYs.mjs.map} +1 -1
  81. package/fesm2022/{acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs → acorex-modules-auth-user-sessions.component-B3i44VC5.mjs} +2 -2
  82. package/fesm2022/{acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs.map → acorex-modules-auth-user-sessions.component-B3i44VC5.mjs.map} +1 -1
  83. package/fesm2022/acorex-modules-auth.mjs +1 -1
  84. package/fesm2022/acorex-modules-common.mjs +11 -481
  85. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  86. package/fesm2022/acorex-modules-conversation.mjs +3 -3
  87. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  88. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-CReOsVhq.mjs +5083 -0
  89. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-CReOsVhq.mjs.map +1 -0
  90. package/fesm2022/{acorex-modules-common-index-Dt3vRkkx.mjs → acorex-modules-dashboard-management-home-dashboard-CHXDeuSF.mjs} +22 -9
  91. package/fesm2022/acorex-modules-dashboard-management-home-dashboard-CHXDeuSF.mjs.map +1 -0
  92. package/fesm2022/acorex-modules-dashboard-management.mjs +2 -0
  93. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -0
  94. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CdZ56kDQ.mjs → acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs} +39 -25
  95. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-vYaqbxKs.mjs.map +1 -0
  96. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CetsgMOJ.mjs → acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs} +2 -2
  97. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CetsgMOJ.mjs.map → acorex-modules-document-management-create-folder-dialog.component-Bc_IX3gT.mjs.map} +1 -1
  98. package/fesm2022/{acorex-modules-document-management-details-view.component-CeOqGjR9.mjs → acorex-modules-document-management-details-view.component-_9f5TQJi.mjs} +2 -2
  99. package/fesm2022/{acorex-modules-document-management-details-view.component-CeOqGjR9.mjs.map → acorex-modules-document-management-details-view.component-_9f5TQJi.mjs.map} +1 -1
  100. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmKUj3Jr.mjs → acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs} +2 -2
  101. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmKUj3Jr.mjs.map → acorex-modules-document-management-drive-choose.component-CFOb0_MF.mjs.map} +1 -1
  102. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-7iqPb1Xn.mjs → acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs} +2 -2
  103. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-7iqPb1Xn.mjs.map → acorex-modules-document-management-large-icons-view.component-D9es4CBl.mjs.map} +1 -1
  104. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-C9jalviV.mjs → acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs} +2 -2
  105. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-C9jalviV.mjs.map → acorex-modules-document-management-large-tiles-view.component-Q1Sjg47F.mjs.map} +1 -1
  106. package/fesm2022/{acorex-modules-document-management-list-view.component-Bdb0uAm0.mjs → acorex-modules-document-management-list-view.component-BUu5vrul.mjs} +2 -2
  107. package/fesm2022/{acorex-modules-document-management-list-view.component-Bdb0uAm0.mjs.map → acorex-modules-document-management-list-view.component-BUu5vrul.mjs.map} +1 -1
  108. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Do61g5Sb.mjs → acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs} +2 -2
  109. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Do61g5Sb.mjs.map → acorex-modules-document-management-rename-node-dialog.component-BMRmdslE.mjs.map} +1 -1
  110. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BSPp5gmT.mjs → acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs} +2 -2
  111. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BSPp5gmT.mjs.map → acorex-modules-document-management-small-icons-view.component-ChSS7z9z.mjs.map} +1 -1
  112. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-77-_bfSe.mjs → acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs} +2 -2
  113. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-77-_bfSe.mjs.map → acorex-modules-document-management-small-tiles-view.component-Ci33qbBY.mjs.map} +1 -1
  114. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  115. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-DO18V9JK.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs} +11 -11
  116. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs.map +1 -0
  117. package/fesm2022/{acorex-modules-form-template-management-category.entity-nErIyYxr.mjs → acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs} +2 -2
  118. package/fesm2022/{acorex-modules-form-template-management-category.entity-nErIyYxr.mjs.map → acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs.map} +1 -1
  119. package/fesm2022/{acorex-modules-form-template-management-settings.provider-CROST06h.mjs → acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs} +2 -2
  120. package/fesm2022/{acorex-modules-form-template-management-settings.provider-CROST06h.mjs.map → acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs.map} +1 -1
  121. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-0GHf41xy.mjs → acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs} +2 -2
  122. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-0GHf41xy.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-BkR3x74p.mjs.map} +1 -1
  123. package/fesm2022/{acorex-modules-form-template-management-template.entity-HSE5R67l.mjs → acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs} +2 -2
  124. package/fesm2022/{acorex-modules-form-template-management-template.entity-HSE5R67l.mjs.map → acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs.map} +1 -1
  125. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-pi15hXWY.mjs → acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs} +2 -2
  126. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-pi15hXWY.mjs.map → acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs.map} +1 -1
  127. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  128. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-Q47ZZSSE.mjs +2487 -0
  129. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-Q47ZZSSE.mjs.map +1 -0
  130. package/fesm2022/{acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs → acorex-modules-issue-management-capture-screen.component-Dns1Wrkd.mjs} +6 -6
  131. package/fesm2022/acorex-modules-issue-management-capture-screen.component-Dns1Wrkd.mjs.map +1 -0
  132. package/fesm2022/acorex-modules-issue-management.mjs +2 -0
  133. package/fesm2022/acorex-modules-issue-management.mjs.map +1 -0
  134. package/fesm2022/acorex-modules-log-management.mjs +128 -77
  135. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  136. package/fesm2022/acorex-modules-notification-management.mjs +6 -5
  137. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  138. package/fesm2022/{acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs → acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs} +4 -2
  139. package/fesm2022/acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs.map +1 -0
  140. package/fesm2022/{acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs → acorex-modules-organization-management-department.entity-BMojk26d.mjs} +4 -2
  141. package/fesm2022/acorex-modules-organization-management-department.entity-BMojk26d.mjs.map +1 -0
  142. package/fesm2022/{acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs → acorex-modules-organization-management-division.entity-BnWpX4US.mjs} +4 -2
  143. package/fesm2022/acorex-modules-organization-management-division.entity-BnWpX4US.mjs.map +1 -0
  144. package/fesm2022/{acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs → acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs} +2 -2
  145. package/fesm2022/acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs.map +1 -0
  146. package/fesm2022/{acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs → acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs} +3 -3
  147. package/fesm2022/acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs.map +1 -0
  148. package/fesm2022/{acorex-modules-organization-management-team.entity-DZqK-yLT.mjs → acorex-modules-organization-management-team.entity-mYPhrc2l.mjs} +8 -3
  149. package/fesm2022/acorex-modules-organization-management-team.entity-mYPhrc2l.mjs.map +1 -0
  150. package/fesm2022/acorex-modules-organization-management.mjs +8 -8
  151. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  152. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs → acorex-modules-platform-management-acorex-modules-platform-management-DIsYLKbA.mjs} +438 -2281
  153. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DIsYLKbA.mjs.map +1 -0
  154. package/fesm2022/{acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs → acorex-modules-platform-management-list-version.component-D83yTFAm.mjs} +6 -6
  155. package/fesm2022/{acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs.map → acorex-modules-platform-management-list-version.component-D83yTFAm.mjs.map} +1 -1
  156. package/fesm2022/acorex-modules-platform-management-settings.provider-DKkXCwrd.mjs +463 -0
  157. package/fesm2022/acorex-modules-platform-management-settings.provider-DKkXCwrd.mjs.map +1 -0
  158. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  159. package/fesm2022/acorex-modules-project-management.mjs +6259 -0
  160. package/fesm2022/acorex-modules-project-management.mjs.map +1 -0
  161. package/fesm2022/acorex-modules-security-management.mjs +54 -24
  162. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  163. package/issue-management/README.md +3 -0
  164. package/issue-management/index.d.ts +6 -0
  165. package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/components/capture-screen-component/capture-screen.component.d.ts +5 -5
  166. package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/services/capture-screen.service.d.ts +3 -3
  167. package/issue-management/lib/const.d.ts +37 -0
  168. package/issue-management/lib/entities/index.d.ts +3 -0
  169. package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.service.d.ts +2 -2
  170. package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.types.d.ts +1 -1
  171. package/{platform-management → issue-management}/lib/entities/my-reported-issues/my-reported-issues.service.d.ts +2 -2
  172. package/issue-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts +5 -0
  173. package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.service.d.ts +2 -2
  174. package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.types.d.ts +2 -3
  175. package/issue-management/lib/entity.provider.d.ts +10 -0
  176. package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/components/report-new-issue/report-new-issue.component.d.ts +16 -5
  177. package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/report-issue.types.d.ts +6 -1
  178. package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/services/report-new-issue.viewmodel.d.ts +6 -4
  179. package/issue-management/lib/issue-management.module.d.ts +7 -0
  180. package/issue-management/lib/menu.provider.d.ts +5 -0
  181. package/issue-management/lib/setting.provider.d.ts +4 -0
  182. package/package.json +13 -1
  183. package/platform-management/index.d.ts +1 -2
  184. package/platform-management/lib/const.d.ts +1 -19
  185. package/platform-management/lib/entities/glossary/glossary.entity.d.ts +3 -0
  186. package/platform-management/lib/entities/glossary/glossary.service.d.ts +10 -0
  187. package/platform-management/lib/entities/glossary/glossary.types.d.ts +4 -0
  188. package/platform-management/lib/entities/glossary/index.d.ts +3 -0
  189. package/platform-management/lib/entities/index.d.ts +1 -3
  190. package/platform-management/lib/features/common/common.module.d.ts +1 -1
  191. package/platform-management/lib/features/common/index.d.ts +0 -1
  192. package/platform-management/lib/features/common/regional/language-slot/language-slot.component.d.ts +7 -3
  193. package/platform-management/lib/features/common/regional/regional-store.service.d.ts +5 -1
  194. package/platform-management/lib/features/common/regional/settings.keys.d.ts +8 -3
  195. package/platform-management/lib/features/common/regional/settings.provider.d.ts +1 -0
  196. package/project-management/README.md +3 -0
  197. package/project-management/index.d.ts +7 -0
  198. package/project-management/lib/const.d.ts +85 -0
  199. package/project-management/lib/entities/client/client.entity.d.ts +3 -0
  200. package/project-management/lib/entities/client/client.service.d.ts +10 -0
  201. package/project-management/lib/entities/client/client.types.d.ts +7 -0
  202. package/project-management/lib/entities/client/index.d.ts +3 -0
  203. package/project-management/lib/entities/index.d.ts +12 -0
  204. package/project-management/lib/entities/project/index.d.ts +3 -0
  205. package/project-management/lib/entities/project/project.entity.d.ts +3 -0
  206. package/project-management/lib/entities/project/project.service.d.ts +10 -0
  207. package/project-management/lib/entities/project/project.types.d.ts +11 -0
  208. package/project-management/lib/entities/project-memeber/index.d.ts +3 -0
  209. package/project-management/lib/entities/project-memeber/project-memeber.entity.d.ts +3 -0
  210. package/project-management/lib/entities/project-memeber/project-memeber.service.d.ts +10 -0
  211. package/project-management/lib/entities/project-memeber/project-memeber.types.d.ts +7 -0
  212. package/project-management/lib/entities/project-role-member/index.d.ts +3 -0
  213. package/project-management/lib/entities/project-role-member/project-role-member.entity.d.ts +3 -0
  214. package/project-management/lib/entities/project-role-member/project-role-member.service.d.ts +10 -0
  215. package/{platform-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts → project-management/lib/entities/project-role-member/project-role-member.types.d.ts} +2 -2
  216. package/project-management/lib/entities/project-type/index.d.ts +3 -0
  217. package/project-management/lib/entities/project-type/project-type.entity.d.ts +3 -0
  218. package/project-management/lib/entities/project-type/project-type.service.d.ts +10 -0
  219. package/project-management/lib/entities/project-type/project-type.types.d.ts +4 -0
  220. package/project-management/lib/entities/sprint/index.d.ts +3 -0
  221. package/project-management/lib/entities/sprint/sprint.entity.d.ts +3 -0
  222. package/project-management/lib/entities/sprint/sprint.service.d.ts +10 -0
  223. package/project-management/lib/entities/sprint/sprint.types.d.ts +8 -0
  224. package/project-management/lib/entities/sprint-task/index.d.ts +3 -0
  225. package/project-management/lib/entities/sprint-task/sprint-task.entity.d.ts +3 -0
  226. package/project-management/lib/entities/sprint-task/sprint-task.service.d.ts +10 -0
  227. package/project-management/lib/entities/sprint-task/sprint-task.types.d.ts +5 -0
  228. package/project-management/lib/entities/task/index.d.ts +3 -0
  229. package/project-management/lib/entities/task/task.entity.d.ts +3 -0
  230. package/project-management/lib/entities/task/task.service.d.ts +10 -0
  231. package/project-management/lib/entities/task/task.types.d.ts +19 -0
  232. package/project-management/lib/entities/task-history/index.d.ts +3 -0
  233. package/project-management/lib/entities/task-history/task-history.entity.d.ts +3 -0
  234. package/project-management/lib/entities/task-history/task-history.service.d.ts +10 -0
  235. package/project-management/lib/entities/task-history/task-history.types.d.ts +8 -0
  236. package/project-management/lib/entities/task-type/index.d.ts +3 -0
  237. package/project-management/lib/entities/task-type/task-type.entity.d.ts +3 -0
  238. package/project-management/lib/entities/task-type/task-type.service.d.ts +10 -0
  239. package/project-management/lib/entities/task-type/task-type.types.d.ts +6 -0
  240. package/project-management/lib/entities/time-sheet/index.d.ts +3 -0
  241. package/project-management/lib/entities/time-sheet/time-sheet.entity.d.ts +3 -0
  242. package/project-management/lib/entities/time-sheet/time-sheet.service.d.ts +10 -0
  243. package/project-management/lib/entities/time-sheet/time-sheet.types.d.ts +8 -0
  244. package/project-management/lib/entities/work-site/index.d.ts +3 -0
  245. package/project-management/lib/entities/work-site/work-site.entity.d.ts +3 -0
  246. package/project-management/lib/entities/work-site/work-site.service.d.ts +10 -0
  247. package/project-management/lib/entities/work-site/work-site.types.d.ts +8 -0
  248. package/project-management/lib/entity.provider.d.ts +10 -0
  249. package/project-management/lib/menu.provider.d.ts +5 -0
  250. package/project-management/lib/project-management.module.d.ts +6 -0
  251. package/project-management/lib/search-command.provider.d.ts +4 -0
  252. package/project-management/lib/setting.provider.d.ts +4 -0
  253. package/common/lib/features/home-dashboard/home-dashboard.module.d.ts +0 -7
  254. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs.map +0 -1
  255. package/fesm2022/acorex-modules-auth-app-chooser.component-rr25Ry55.mjs +0 -64
  256. package/fesm2022/acorex-modules-auth-app-chooser.component-rr25Ry55.mjs.map +0 -1
  257. package/fesm2022/acorex-modules-auth-master.layout-he9vVKsC.mjs +0 -23
  258. package/fesm2022/acorex-modules-auth-master.layout-he9vVKsC.mjs.map +0 -1
  259. package/fesm2022/acorex-modules-auth-password.component-_ceO6nyb.mjs.map +0 -1
  260. package/fesm2022/acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs +0 -97
  261. package/fesm2022/acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs.map +0 -1
  262. package/fesm2022/acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs +0 -139
  263. package/fesm2022/acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map +0 -1
  264. package/fesm2022/acorex-modules-common-index-Dt3vRkkx.mjs.map +0 -1
  265. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CdZ56kDQ.mjs.map +0 -1
  266. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DO18V9JK.mjs.map +0 -1
  267. package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs.map +0 -1
  268. package/fesm2022/acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs.map +0 -1
  269. package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs.map +0 -1
  270. package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs.map +0 -1
  271. package/fesm2022/acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs.map +0 -1
  272. package/fesm2022/acorex-modules-organization-management-team.entity-DZqK-yLT.mjs.map +0 -1
  273. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs.map +0 -1
  274. package/fesm2022/acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs.map +0 -1
  275. package/fesm2022/acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs +0 -351
  276. package/fesm2022/acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs.map +0 -1
  277. package/platform-management/lib/features/common/entity.provider.d.ts +0 -9
  278. package/platform-management/lib/features/index.d.ts +0 -1
  279. package/platform-management/lib/features/support/index.d.ts +0 -2
  280. /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.entity.d.ts +0 -0
  281. /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.service.d.ts +0 -0
  282. /package/{common → dashboard-management}/lib/entities/dashboard/dashboard.types.d.ts +0 -0
  283. /package/{common → dashboard-management}/lib/entities/dashboard/index.d.ts +0 -0
  284. /package/{common → dashboard-management}/lib/entities/index.d.ts +0 -0
  285. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +0 -0
  286. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +0 -0
  287. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-home/index.d.ts +0 -0
  288. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/add-dashboard-popup.d.ts +0 -0
  289. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +0 -0
  290. /package/{common → dashboard-management}/lib/features/home-dashboard/dashboard-popups/dashboard-popup.service.d.ts +0 -0
  291. /package/{common → dashboard-management}/lib/features/home-dashboard/widget-wrapper/dashboard-widget-wrapper.d.ts +0 -0
  292. /package/{common/lib/features/home-dashboard → dashboard-management/lib/features/shared}/widgets/dashboard-shortcut/dashboard-shortcut-widget-view.component.d.ts +0 -0
  293. /package/{common/lib/features/home-dashboard → dashboard-management/lib/features/shared}/widgets/dashboard-shortcut/dashboard-shortcut-widget.config.d.ts +0 -0
  294. /package/{common/lib/features/home-dashboard/setrting.keys.d.ts → dashboard-management/lib/settings.keys.d.ts} +0 -0
  295. /package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/capture-screen.types.d.ts +0 -0
  296. /package/{platform-management/lib/features/support → issue-management/lib/components}/capture-screen/index.d.ts +0 -0
  297. /package/{platform-management → issue-management}/lib/entities/issue-type/index.d.ts +0 -0
  298. /package/{platform-management → issue-management}/lib/entities/issue-type/issue-type.entity.d.ts +0 -0
  299. /package/{platform-management → issue-management}/lib/entities/my-reported-issues/index.d.ts +0 -0
  300. /package/{platform-management → issue-management}/lib/entities/my-reported-issues/my-reported-issues.entity.d.ts +0 -0
  301. /package/{platform-management → issue-management}/lib/entities/reported-issues/index.d.ts +0 -0
  302. /package/{platform-management → issue-management}/lib/entities/reported-issues/reported-issues.entity.d.ts +0 -0
  303. /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/components/index.d.ts +0 -0
  304. /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/index.d.ts +0 -0
  305. /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/workflows/index.d.ts +0 -0
  306. /package/{platform-management/lib/features/support → issue-management/lib/features}/report-issue/workflows/show-report-issue.workflow.d.ts +0 -0
@@ -0,0 +1,2487 @@
1
+ import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPRefreshEvent, AXPFileStorageService, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';
2
+ import * as i11 from '@acorex/platform/layout/builder';
3
+ import { AXPWidgetsCatalog, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
4
+ import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
5
+ import * as i0 from '@angular/core';
6
+ import { Injectable, inject, Injector, ApplicationRef, ViewContainerRef, computed, ViewChild, Component, NgModule } from '@angular/core';
7
+ import * as i1$1 from '@acorex/platform/workflow';
8
+ import { AXPWorkflowEventService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
9
+ import * as i10 from '@acorex/components/button';
10
+ import { AXButtonModule } from '@acorex/components/button';
11
+ import { AXDataSource } from '@acorex/components/common';
12
+ import * as i3$1 from '@acorex/components/decorators';
13
+ import { AXDecoratorModule } from '@acorex/components/decorators';
14
+ import * as i4 from '@acorex/components/form';
15
+ import { AXFormModule, AXFormComponent } from '@acorex/components/form';
16
+ import * as i5 from '@acorex/components/label';
17
+ import { AXLabelModule } from '@acorex/components/label';
18
+ import { AXMediaViewerModule } from '@acorex/components/media-viewer';
19
+ import { AXBasePageComponent } from '@acorex/components/page';
20
+ import * as i7 from '@acorex/components/select-box';
21
+ import { AXSelectBoxModule } from '@acorex/components/select-box';
22
+ import * as i8 from '@acorex/components/text-area';
23
+ import { AXTextAreaModule } from '@acorex/components/text-area';
24
+ import * as i6 from '@acorex/components/text-box';
25
+ import { AXTextBoxModule } from '@acorex/components/text-box';
26
+ import * as i3 from '@acorex/core/translation';
27
+ import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
28
+ import { AXMDocumentService } from '@acorex/modules/document-management';
29
+ import { AXPSessionService } from '@acorex/platform/auth';
30
+ import * as i1 from '@angular/common';
31
+ import { CommonModule } from '@angular/common';
32
+ import * as i2 from '@angular/forms';
33
+ import { FormsModule } from '@angular/forms';
34
+ import { AXPopupService } from '@acorex/components/popup';
35
+ import { AXPDataGenerator } from '@acorex/platform/core';
36
+ import { signalStore, withState, withMethods, patchState, withComputed } from '@ngrx/signals';
37
+ import { AXToastService } from '@acorex/components/toast';
38
+ import html2canvas from 'html2canvas';
39
+ import { Subject, take } from 'rxjs';
40
+
41
+ const config = {
42
+ i18n: 'issue-management',
43
+ };
44
+ const RootConfig = {
45
+ config,
46
+ module: {
47
+ route: 'issue-management',
48
+ name: 'IssueManagement',
49
+ title: `t('issueManagement', {scope:"${config.i18n}"})`,
50
+ icon: 'fa-light fa-file-invoice',
51
+ },
52
+ entities: {
53
+ issueType: {
54
+ name: 'IssueType',
55
+ title: `t("issue-type.individual-title", { scope: "${config.i18n}" })`,
56
+ titlePlural: `t("issue-type.plural-title", { scope: "${config.i18n}" })`,
57
+ icon: 'fa-light fa-list',
58
+ },
59
+ reportedIssues: {
60
+ name: 'ReportedIssues',
61
+ title: `t("reported-issues.individual-title", { scope: "${config.i18n}" })`,
62
+ titlePlural: `t("reported-issues.plural-title", { scope: "${config.i18n}" })`,
63
+ icon: 'fa-light fa-bug',
64
+ },
65
+ myReportedIssues: {
66
+ name: 'MyReportedIssues',
67
+ title: `t("my-reported-issues.individual-title", { scope: "${config.i18n}" })`,
68
+ titlePlural: `t("my-reported-issues.plural-title", { scope: "${config.i18n}" })`,
69
+ icon: 'fa-light fa-message-exclamation',
70
+ },
71
+ reportNewIssue: {
72
+ name: 'ReportNewIssue',
73
+ title: `t("report-new-issue.individual-title", { scope: "${config.i18n}" })`,
74
+ titlePlural: `t("report-new-issue.plural-title", { scope: "${config.i18n}" })`,
75
+ icon: 'fa-light fa-clipboard-list-check',
76
+ },
77
+ },
78
+ };
79
+
80
+ class AXMIssueTypeService extends AXMEntityCrudServiceImpl {
81
+ }
82
+ class AXMIssueTypeServiceImpl extends AXMIssueTypeService {
83
+ constructor() {
84
+ super(`${RootConfig.module.name}.${RootConfig.entities.issueType.name}`);
85
+ }
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueTypeServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
87
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueTypeServiceImpl }); }
88
+ }
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueTypeServiceImpl, decorators: [{
90
+ type: Injectable
91
+ }], ctorParameters: () => [] });
92
+
93
+ async function issueTypeEntityFactory(injector) {
94
+ const dataService = injector.get(AXMIssueTypeService);
95
+ const i18n = RootConfig.config.i18n;
96
+ const entityName = 'issue-type';
97
+ const entityDef = {
98
+ module: RootConfig.module.name,
99
+ name: RootConfig.entities.issueType.name,
100
+ source: '',
101
+ title: RootConfig.entities.issueType.title,
102
+ formats: {
103
+ individual: RootConfig.entities.issueType.title,
104
+ plural: RootConfig.entities.issueType.titlePlural,
105
+ searchResult: {
106
+ title: '{{ title }}',
107
+ description: '{{ description }}',
108
+ },
109
+ },
110
+ relatedEntities: [],
111
+ groups: [
112
+ {
113
+ id: 'main',
114
+ title: `t("${entityName}.main-section", { scope: "${i18n}" })`,
115
+ },
116
+ ],
117
+ properties: [
118
+ {
119
+ name: 'id',
120
+ title: 'ID',
121
+ groupId: 'main',
122
+ schema: {
123
+ dataType: 'string',
124
+ hidden: true,
125
+ nullable: false,
126
+ readonly: true,
127
+ unique: {
128
+ enabled: true,
129
+ },
130
+ },
131
+ },
132
+ {
133
+ name: 'title',
134
+ title: `t("${entityName}.title", { scope: "${i18n}" })`,
135
+ groupId: 'main',
136
+ options: {
137
+ sort: {
138
+ enabled: true,
139
+ },
140
+ filter: {
141
+ advance: {
142
+ enabled: true,
143
+ },
144
+ inline: {
145
+ enabled: true,
146
+ },
147
+ },
148
+ },
149
+ schema: {
150
+ dataType: 'string',
151
+ interface: {
152
+ type: AXPWidgetsCatalog.text,
153
+ },
154
+ },
155
+ validations: [
156
+ {
157
+ rule: 'required',
158
+ },
159
+ ],
160
+ },
161
+ {
162
+ name: 'description',
163
+ title: `t("${entityName}.description", { scope: "${i18n}" })`,
164
+ groupId: 'main',
165
+ options: {
166
+ sort: {
167
+ enabled: false,
168
+ },
169
+ filter: {
170
+ advance: {
171
+ enabled: true,
172
+ },
173
+ inline: {
174
+ enabled: false,
175
+ },
176
+ },
177
+ },
178
+ schema: {
179
+ dataType: 'string',
180
+ interface: {
181
+ type: AXPWidgetsCatalog.largeText,
182
+ options: {
183
+ rows: 3,
184
+ },
185
+ },
186
+ },
187
+ validations: [
188
+ {
189
+ rule: 'required',
190
+ },
191
+ ],
192
+ },
193
+ ],
194
+ columns: [{ name: 'title' }, { name: 'description' }],
195
+ commands: {
196
+ create: {
197
+ execute: async (data) => {
198
+ const res = await dataService.insertOne(data);
199
+ return { id: res };
200
+ },
201
+ },
202
+ delete: {
203
+ execute: async (id) => {
204
+ return await dataService.deleteOne(id);
205
+ },
206
+ },
207
+ update: {
208
+ execute: async (data) => {
209
+ return await dataService.updateOne(data.id, data);
210
+ },
211
+ },
212
+ },
213
+ queries: {
214
+ byKey: {
215
+ execute: async (id) => {
216
+ return await dataService.getOne(id);
217
+ },
218
+ type: AXPEntityQueryType.Single,
219
+ },
220
+ list: {
221
+ execute: async (e) => {
222
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
223
+ },
224
+ type: AXPEntityQueryType.List,
225
+ },
226
+ },
227
+ interfaces: {
228
+ master: {
229
+ create: {
230
+ sections: [
231
+ {
232
+ id: 'main',
233
+ },
234
+ ],
235
+ properties: [
236
+ {
237
+ name: 'title',
238
+ layout: {
239
+ positions: {
240
+ lg: {
241
+ colSpan: 12,
242
+ order: 1,
243
+ },
244
+ },
245
+ },
246
+ },
247
+ {
248
+ name: 'description',
249
+ layout: {
250
+ positions: {
251
+ lg: {
252
+ colSpan: 12,
253
+ order: 2,
254
+ },
255
+ },
256
+ },
257
+ },
258
+ ],
259
+ },
260
+ update: {
261
+ sections: [
262
+ {
263
+ id: 'main',
264
+ },
265
+ ],
266
+ properties: [
267
+ {
268
+ name: 'title',
269
+ layout: {
270
+ positions: {
271
+ lg: {
272
+ colSpan: 12,
273
+ order: 1,
274
+ },
275
+ },
276
+ },
277
+ },
278
+ {
279
+ name: 'description',
280
+ layout: {
281
+ positions: {
282
+ lg: {
283
+ colSpan: 12,
284
+ order: 2,
285
+ },
286
+ },
287
+ },
288
+ },
289
+ ],
290
+ },
291
+ single: {
292
+ title: '{{title}}',
293
+ sections: [
294
+ {
295
+ id: 'main',
296
+ },
297
+ ],
298
+ properties: [
299
+ {
300
+ name: 'title',
301
+ layout: {
302
+ positions: {
303
+ lg: {
304
+ colSpan: 12,
305
+ order: 1,
306
+ },
307
+ },
308
+ },
309
+ },
310
+ {
311
+ name: 'description',
312
+ layout: {
313
+ positions: {
314
+ lg: {
315
+ colSpan: 12,
316
+ order: 2,
317
+ },
318
+ },
319
+ },
320
+ },
321
+ ],
322
+ actions: [],
323
+ },
324
+ list: {
325
+ actions: [
326
+ {
327
+ title: `t("create", { scope: "common" })`,
328
+ command: 'create-entity',
329
+ priority: 'primary',
330
+ type: 'create',
331
+ scope: AXPEntityCommandScope.TypeLevel,
332
+ },
333
+ {
334
+ title: 't("deleteItems", { scope: "common" })',
335
+ command: 'delete-entity',
336
+ priority: 'primary',
337
+ type: 'delete',
338
+ scope: AXPEntityCommandScope.Selected,
339
+ },
340
+ {
341
+ title: 't("detail", { scope: "common" })',
342
+ command: 'open-entity',
343
+ priority: 'secondary',
344
+ type: 'view',
345
+ scope: AXPEntityCommandScope.Individual,
346
+ },
347
+ {
348
+ title: 't("delete", { scope: "common" })',
349
+ command: 'delete-entity',
350
+ priority: 'secondary',
351
+ type: 'delete',
352
+ scope: AXPEntityCommandScope.Individual,
353
+ },
354
+ ],
355
+ views: [
356
+ createAllQueryView({
357
+ sorts: [{ name: 'title', dir: 'asc' }],
358
+ }),
359
+ ],
360
+ },
361
+ },
362
+ },
363
+ };
364
+ return entityDef;
365
+ }
366
+
367
+ class AXMReportedIssuesService extends AXMEntityCrudServiceImpl {
368
+ }
369
+ class AXMReportedIssuesServiceImpl extends AXMReportedIssuesService {
370
+ constructor() {
371
+ super(`${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`);
372
+ }
373
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMReportedIssuesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
374
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMReportedIssuesServiceImpl }); }
375
+ }
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMReportedIssuesServiceImpl, decorators: [{
377
+ type: Injectable
378
+ }], ctorParameters: () => [] });
379
+
380
+ async function reportedIssuesEntityFactory(injector) {
381
+ const dataService = injector.get(AXMReportedIssuesService);
382
+ const i18n = RootConfig.config.i18n;
383
+ const entityName = 'reported-issues';
384
+ const entityDef = {
385
+ module: RootConfig.module.name,
386
+ name: RootConfig.entities.reportedIssues.name,
387
+ source: '',
388
+ title: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
389
+ formats: {
390
+ individual: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
391
+ plural: `t("${entityName}.plural-title", { scope: "${i18n}" })`,
392
+ searchResult: {
393
+ title: '{{ title }}',
394
+ description: RootConfig.module.title,
395
+ },
396
+ },
397
+ relatedEntities: [],
398
+ groups: [
399
+ {
400
+ id: 'main',
401
+ title: `t("${entityName}.main-section", { scope: "${i18n}" })`,
402
+ },
403
+ {
404
+ id: 'details',
405
+ title: `t("${entityName}.details-section", { scope: "${i18n}" })`,
406
+ },
407
+ {
408
+ id: 'system',
409
+ title: `t("${entityName}.system-section", { scope: "${i18n}" })`,
410
+ },
411
+ ],
412
+ properties: [
413
+ {
414
+ name: 'id',
415
+ title: 'ID',
416
+ schema: {
417
+ dataType: 'uuid',
418
+ hidden: true,
419
+ nullable: false,
420
+ readonly: true,
421
+ unique: {
422
+ enabled: true,
423
+ },
424
+ },
425
+ },
426
+ {
427
+ name: 'user',
428
+ title: `t("${entityName}.user", { scope: "${i18n}" })`,
429
+ groupId: 'main',
430
+ options: {
431
+ sort: {
432
+ enabled: true,
433
+ },
434
+ filter: {
435
+ advance: {
436
+ enabled: true,
437
+ },
438
+ inline: {
439
+ enabled: true,
440
+ },
441
+ },
442
+ },
443
+ schema: {
444
+ dataType: 'object',
445
+ interface: {
446
+ type: AXPWidgetsCatalog.lookup,
447
+ options: {
448
+ entityName: 'users',
449
+ // textField: 'fullName',
450
+ },
451
+ },
452
+ },
453
+ validations: [
454
+ {
455
+ rule: 'required',
456
+ },
457
+ ],
458
+ },
459
+ {
460
+ name: 'issueType',
461
+ title: `t("${entityName}.issue-type", { scope: "${i18n}" })`,
462
+ groupId: 'main',
463
+ options: {
464
+ sort: {
465
+ enabled: true,
466
+ },
467
+ filter: {
468
+ advance: {
469
+ enabled: true,
470
+ },
471
+ inline: {
472
+ enabled: true,
473
+ },
474
+ },
475
+ },
476
+ schema: {
477
+ dataType: 'string',
478
+ interface: {
479
+ type: AXPWidgetsCatalog.lookup,
480
+ options: {
481
+ entityName: 'issueType',
482
+ // displayField: 'title',
483
+ // valueField: 'id',
484
+ },
485
+ },
486
+ },
487
+ validations: [
488
+ {
489
+ rule: 'required',
490
+ },
491
+ ],
492
+ },
493
+ {
494
+ name: 'priority',
495
+ title: `t("${entityName}.priority", { scope: "${i18n}" })`,
496
+ groupId: 'main',
497
+ options: {
498
+ sort: {
499
+ enabled: true,
500
+ },
501
+ filter: {
502
+ advance: {
503
+ enabled: true,
504
+ },
505
+ inline: {
506
+ enabled: true,
507
+ },
508
+ },
509
+ },
510
+ schema: {
511
+ dataType: 'string',
512
+ interface: {
513
+ type: AXPWidgetsCatalog.select,
514
+ options: {
515
+ items: [
516
+ { title: 'Low', id: 1 },
517
+ { title: 'Medium', id: 2 },
518
+ { title: 'High', id: 3 },
519
+ { title: 'Critical', id: 4 },
520
+ ],
521
+ },
522
+ },
523
+ },
524
+ validations: [
525
+ {
526
+ rule: 'required',
527
+ },
528
+ ],
529
+ },
530
+ {
531
+ name: 'status',
532
+ title: `t("${entityName}.status", { scope: "${i18n}" })`,
533
+ groupId: 'main',
534
+ options: {
535
+ sort: {
536
+ enabled: true,
537
+ },
538
+ filter: {
539
+ advance: {
540
+ enabled: true,
541
+ },
542
+ inline: {
543
+ enabled: true,
544
+ },
545
+ },
546
+ },
547
+ schema: {
548
+ dataType: 'string',
549
+ interface: {
550
+ type: AXPWidgetsCatalog.select,
551
+ options: {
552
+ items: [
553
+ { value: 'new', title: 'New' },
554
+ { value: 'in-progress', title: 'In Progress' },
555
+ { value: 'pending', title: 'Pending' },
556
+ { value: 'resolved', title: 'Resolved' },
557
+ { value: 'closed', title: 'Closed' },
558
+ ],
559
+ },
560
+ },
561
+ },
562
+ validations: [
563
+ {
564
+ rule: 'required',
565
+ },
566
+ ],
567
+ },
568
+ {
569
+ name: 'title',
570
+ title: `t("${entityName}.title", { scope: "${i18n}" })`,
571
+ groupId: 'main',
572
+ options: {
573
+ sort: {
574
+ enabled: true,
575
+ },
576
+ filter: {
577
+ advance: {
578
+ enabled: true,
579
+ },
580
+ inline: {
581
+ enabled: true,
582
+ },
583
+ },
584
+ },
585
+ schema: {
586
+ dataType: 'string',
587
+ interface: {
588
+ type: AXPWidgetsCatalog.text,
589
+ },
590
+ },
591
+ validations: [
592
+ {
593
+ rule: 'required',
594
+ },
595
+ ],
596
+ },
597
+ {
598
+ name: 'description',
599
+ title: `t("${entityName}.description", { scope: "${i18n}" })`,
600
+ groupId: 'details',
601
+ options: {
602
+ sort: {
603
+ enabled: false,
604
+ },
605
+ filter: {
606
+ advance: {
607
+ enabled: true,
608
+ },
609
+ inline: {
610
+ enabled: false,
611
+ },
612
+ },
613
+ },
614
+ schema: {
615
+ dataType: 'string',
616
+ interface: {
617
+ type: AXPWidgetsCatalog.largeText,
618
+ options: {
619
+ rows: 4,
620
+ },
621
+ },
622
+ },
623
+ validations: [
624
+ {
625
+ rule: 'required',
626
+ },
627
+ ],
628
+ },
629
+ {
630
+ name: 'attachments',
631
+ title: `t("${entityName}.attachments", { scope: "${i18n}" })`,
632
+ groupId: 'details',
633
+ options: {
634
+ sort: {
635
+ enabled: false,
636
+ },
637
+ filter: {
638
+ advance: {
639
+ enabled: false,
640
+ },
641
+ inline: {
642
+ enabled: false,
643
+ },
644
+ },
645
+ },
646
+ schema: {
647
+ dataType: 'array',
648
+ interface: {
649
+ type: AXPWidgetsCatalog.documentAttachment,
650
+ options: {
651
+ multiple: true,
652
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
653
+ record: '{{context.eval("id")}}',
654
+ accept: '*/*',
655
+ },
656
+ },
657
+ },
658
+ },
659
+ {
660
+ name: 'systemInfo',
661
+ title: `t("${entityName}.system-info", { scope: "${i18n}" })`,
662
+ groupId: 'system',
663
+ options: {
664
+ sort: {
665
+ enabled: false,
666
+ },
667
+ filter: {
668
+ advance: {
669
+ enabled: false,
670
+ },
671
+ inline: {
672
+ enabled: false,
673
+ },
674
+ },
675
+ },
676
+ schema: {
677
+ dataType: 'object',
678
+ interface: {
679
+ type: AXPWidgetsCatalog.metaData,
680
+ options: {
681
+ fields: [
682
+ { name: 'browser', title: 'Browser' },
683
+ { name: 'os', title: 'Operating System' },
684
+ { name: 'appVersion', title: 'App Version' },
685
+ { name: 'deviceType', title: 'Device Type' },
686
+ { name: 'screenResolution', title: 'Screen Resolution' },
687
+ ],
688
+ },
689
+ },
690
+ },
691
+ },
692
+ {
693
+ name: 'errorLogs',
694
+ title: `t("${entityName}.error-logs", { scope: "${i18n}" })`,
695
+ groupId: 'system',
696
+ options: {
697
+ sort: {
698
+ enabled: false,
699
+ },
700
+ filter: {
701
+ advance: {
702
+ enabled: false,
703
+ },
704
+ inline: {
705
+ enabled: false,
706
+ },
707
+ },
708
+ },
709
+ schema: {
710
+ dataType: 'string',
711
+ interface: {
712
+ type: AXPWidgetsCatalog.largeText,
713
+ options: {
714
+ rows: 8,
715
+ readonly: true,
716
+ },
717
+ },
718
+ },
719
+ },
720
+ {
721
+ name: 'createdAt',
722
+ title: `t("${entityName}.created-at", { scope: "${i18n}" })`,
723
+ groupId: 'system',
724
+ options: {
725
+ sort: {
726
+ enabled: true,
727
+ },
728
+ filter: {
729
+ advance: {
730
+ enabled: true,
731
+ },
732
+ inline: {
733
+ enabled: false,
734
+ },
735
+ },
736
+ },
737
+ schema: {
738
+ dataType: 'date',
739
+ interface: {
740
+ type: AXPWidgetsCatalog.dateTime,
741
+ options: {
742
+ readonly: true,
743
+ },
744
+ },
745
+ },
746
+ },
747
+ ],
748
+ columns: [
749
+ { name: 'user' },
750
+ { name: 'issueType' },
751
+ { name: 'priority' },
752
+ { name: 'status' },
753
+ { name: 'title' },
754
+ { name: 'description' },
755
+ { name: 'createdAt' },
756
+ ],
757
+ // commands: {
758
+ // create: {
759
+ // execute: async (data: any) => {
760
+ // data.createdAt = new Date();
761
+ // data.status = 'new';
762
+ // const res = await dataService.insertOne(data);
763
+ // return { id: res };
764
+ // },
765
+ // },--
766
+ // delete: {
767
+ // execute: async (id: any) => {
768
+ // return await dataService.deleteOne(id);
769
+ // },
770
+ // },
771
+ // update: {
772
+ // execute: async (data: any) => {
773
+ // return await dataService.updateOne(data.id, data);
774
+ // },
775
+ // },
776
+ // },
777
+ queries: {
778
+ byKey: {
779
+ execute: async (id) => {
780
+ return await dataService.getOne(id);
781
+ },
782
+ type: AXPEntityQueryType.Single,
783
+ },
784
+ list: {
785
+ execute: async (e) => {
786
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
787
+ },
788
+ type: AXPEntityQueryType.List,
789
+ },
790
+ },
791
+ interfaces: {
792
+ master: {
793
+ // create: {
794
+ // sections: [
795
+ // {
796
+ // id: 'main',
797
+ // },
798
+ // {
799
+ // id: 'details',
800
+ // },
801
+ // {
802
+ // id: 'system',
803
+ // },
804
+ // ],
805
+ // properties: [
806
+ // {
807
+ // name: 'user',
808
+ // layout: {
809
+ // positions: {
810
+ // lg: {
811
+ // colSpan: 6,
812
+ // order: 1,
813
+ // },
814
+ // },
815
+ // },
816
+ // },
817
+ // {
818
+ // name: 'issueType',
819
+ // layout: {
820
+ // positions: {
821
+ // lg: {
822
+ // colSpan: 6,
823
+ // order: 2,
824
+ // },
825
+ // },
826
+ // },
827
+ // },
828
+ // {
829
+ // name: 'priority',
830
+ // layout: {
831
+ // positions: {
832
+ // lg: {
833
+ // colSpan: 6,
834
+ // order: 3,
835
+ // },
836
+ // },
837
+ // },
838
+ // },
839
+ // {
840
+ // name: 'status',
841
+ // layout: {
842
+ // positions: {
843
+ // lg: {
844
+ // colSpan: 6,
845
+ // order: 4,
846
+ // },
847
+ // },
848
+ // },
849
+ // },
850
+ // {
851
+ // name: 'title',
852
+ // layout: {
853
+ // positions: {
854
+ // lg: {
855
+ // colSpan: 12,
856
+ // order: 5,
857
+ // },
858
+ // },
859
+ // },
860
+ // },
861
+ // {
862
+ // name: 'description',
863
+ // layout: {
864
+ // positions: {
865
+ // lg: {
866
+ // colSpan: 12,
867
+ // order: 6,
868
+ // },
869
+ // },
870
+ // },
871
+ // },
872
+ // {
873
+ // name: 'attachments',
874
+ // layout: {
875
+ // positions: {
876
+ // lg: {
877
+ // colSpan: 12,
878
+ // order: 7,
879
+ // },
880
+ // },
881
+ // },
882
+ // },
883
+ // {
884
+ // name: 'systemInfo',
885
+ // layout: {
886
+ // positions: {
887
+ // lg: {
888
+ // colSpan: 12,
889
+ // order: 8,
890
+ // },
891
+ // },
892
+ // },
893
+ // },
894
+ // {
895
+ // name: 'errorLogs',
896
+ // layout: {
897
+ // positions: {
898
+ // lg: {
899
+ // colSpan: 12,
900
+ // order: 9,
901
+ // },
902
+ // },
903
+ // },
904
+ // },
905
+ // ],
906
+ // },
907
+ // update: {
908
+ // sections: [
909
+ // {
910
+ // id: 'main',
911
+ // },
912
+ // {
913
+ // id: 'details',
914
+ // },
915
+ // {
916
+ // id: 'system',
917
+ // },
918
+ // ],
919
+ // properties: [
920
+ // {
921
+ // name: 'user',
922
+ // layout: {
923
+ // positions: {
924
+ // lg: {
925
+ // colSpan: 6,
926
+ // order: 1,
927
+ // },
928
+ // },
929
+ // },
930
+ // },
931
+ // {
932
+ // name: 'issueType',
933
+ // layout: {
934
+ // positions: {
935
+ // lg: {
936
+ // colSpan: 6,
937
+ // order: 2,
938
+ // },
939
+ // },
940
+ // },
941
+ // },
942
+ // {
943
+ // name: 'priority',
944
+ // layout: {
945
+ // positions: {
946
+ // lg: {
947
+ // colSpan: 6,
948
+ // order: 3,
949
+ // },
950
+ // },
951
+ // },
952
+ // },
953
+ // {
954
+ // name: 'status',
955
+ // layout: {
956
+ // positions: {
957
+ // lg: {
958
+ // colSpan: 6,
959
+ // order: 4,
960
+ // },
961
+ // },
962
+ // },
963
+ // },
964
+ // {
965
+ // name: 'title',
966
+ // layout: {
967
+ // positions: {
968
+ // lg: {
969
+ // colSpan: 12,
970
+ // order: 5,
971
+ // },
972
+ // },
973
+ // },
974
+ // },
975
+ // {
976
+ // name: 'description',
977
+ // layout: {
978
+ // positions: {
979
+ // lg: {
980
+ // colSpan: 12,
981
+ // order: 6,
982
+ // },
983
+ // },
984
+ // },
985
+ // },
986
+ // {
987
+ // name: 'attachments',
988
+ // layout: {
989
+ // positions: {
990
+ // lg: {
991
+ // colSpan: 12,
992
+ // order: 7,
993
+ // },
994
+ // },
995
+ // },
996
+ // },
997
+ // {
998
+ // name: 'systemInfo',
999
+ // layout: {
1000
+ // positions: {
1001
+ // lg: {
1002
+ // colSpan: 12,
1003
+ // order: 8,
1004
+ // },
1005
+ // },
1006
+ // },
1007
+ // },
1008
+ // {
1009
+ // name: 'errorLogs',
1010
+ // layout: {
1011
+ // positions: {
1012
+ // lg: {
1013
+ // colSpan: 12,
1014
+ // order: 9,
1015
+ // },
1016
+ // },
1017
+ // },
1018
+ // },
1019
+ // {
1020
+ // name: 'createdAt',
1021
+ // layout: {
1022
+ // positions: {
1023
+ // lg: {
1024
+ // colSpan: 6,
1025
+ // order: 11,
1026
+ // },
1027
+ // },
1028
+ // },
1029
+ // },
1030
+ // ],
1031
+ // },
1032
+ single: {
1033
+ title: '{{title}}',
1034
+ sections: [
1035
+ {
1036
+ id: 'main',
1037
+ },
1038
+ {
1039
+ id: 'details',
1040
+ },
1041
+ {
1042
+ id: 'system',
1043
+ },
1044
+ ],
1045
+ properties: [
1046
+ {
1047
+ name: 'user',
1048
+ layout: {
1049
+ positions: {
1050
+ lg: {
1051
+ colSpan: 6,
1052
+ order: 1,
1053
+ },
1054
+ },
1055
+ },
1056
+ },
1057
+ {
1058
+ name: 'issueType',
1059
+ layout: {
1060
+ positions: {
1061
+ lg: {
1062
+ colSpan: 6,
1063
+ order: 2,
1064
+ },
1065
+ },
1066
+ },
1067
+ },
1068
+ {
1069
+ name: 'priority',
1070
+ layout: {
1071
+ positions: {
1072
+ lg: {
1073
+ colSpan: 6,
1074
+ order: 3,
1075
+ },
1076
+ },
1077
+ },
1078
+ },
1079
+ {
1080
+ name: 'status',
1081
+ layout: {
1082
+ positions: {
1083
+ lg: {
1084
+ colSpan: 6,
1085
+ order: 4,
1086
+ },
1087
+ },
1088
+ },
1089
+ },
1090
+ {
1091
+ name: 'title',
1092
+ layout: {
1093
+ positions: {
1094
+ lg: {
1095
+ colSpan: 12,
1096
+ order: 5,
1097
+ },
1098
+ },
1099
+ },
1100
+ },
1101
+ {
1102
+ name: 'description',
1103
+ layout: {
1104
+ positions: {
1105
+ lg: {
1106
+ colSpan: 12,
1107
+ order: 6,
1108
+ },
1109
+ },
1110
+ },
1111
+ },
1112
+ {
1113
+ name: 'attachments',
1114
+ layout: {
1115
+ positions: {
1116
+ lg: {
1117
+ colSpan: 12,
1118
+ order: 7,
1119
+ },
1120
+ },
1121
+ },
1122
+ },
1123
+ {
1124
+ name: 'systemInfo',
1125
+ layout: {
1126
+ positions: {
1127
+ lg: {
1128
+ colSpan: 12,
1129
+ order: 8,
1130
+ },
1131
+ },
1132
+ },
1133
+ },
1134
+ {
1135
+ name: 'errorLogs',
1136
+ layout: {
1137
+ positions: {
1138
+ lg: {
1139
+ colSpan: 12,
1140
+ order: 9,
1141
+ },
1142
+ },
1143
+ },
1144
+ },
1145
+ {
1146
+ name: 'createdAt',
1147
+ layout: {
1148
+ positions: {
1149
+ lg: {
1150
+ colSpan: 6,
1151
+ order: 11,
1152
+ },
1153
+ },
1154
+ },
1155
+ },
1156
+ ],
1157
+ actions: [],
1158
+ },
1159
+ list: {
1160
+ actions: [
1161
+ // {
1162
+ // title: `t("create", { scope: "common" })`,
1163
+ // command: 'create-entity',
1164
+ // priority: 'primary',
1165
+ // type: 'create',
1166
+ // scope: AXPEntityCommandScope.TypeLevel,
1167
+ // },
1168
+ // {
1169
+ // title: 't("deleteItems", { scope: "common" })',
1170
+ // command: 'delete-entity',
1171
+ // priority: 'primary',
1172
+ // type: 'delete',
1173
+ // scope: AXPEntityCommandScope.Selected,
1174
+ // },
1175
+ {
1176
+ title: 't("detail", { scope: "common" })',
1177
+ command: 'open-entity',
1178
+ priority: 'secondary',
1179
+ type: 'view',
1180
+ scope: AXPEntityCommandScope.Individual,
1181
+ },
1182
+ // {
1183
+ // title: 't("delete", { scope: "common" })',
1184
+ // command: 'delete-entity',
1185
+ // priority: 'secondary',
1186
+ // type: 'delete',
1187
+ // scope: AXPEntityCommandScope.Individual,
1188
+ // },
1189
+ ],
1190
+ views: [
1191
+ createAllQueryView({
1192
+ sorts: [{ name: 'createdAt', dir: 'desc' }],
1193
+ }),
1194
+ ],
1195
+ },
1196
+ },
1197
+ },
1198
+ };
1199
+ return entityDef;
1200
+ }
1201
+
1202
+ class AXMMyReportedIssuesService extends AXMEntityCrudServiceImpl {
1203
+ }
1204
+ class AXMMyReportedIssuesServiceImpl extends AXMMyReportedIssuesService {
1205
+ constructor() {
1206
+ super(`${RootConfig.module.name}.${RootConfig.entities.myReportedIssues.name}`);
1207
+ }
1208
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1209
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl }); }
1210
+ }
1211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMyReportedIssuesServiceImpl, decorators: [{
1212
+ type: Injectable
1213
+ }], ctorParameters: () => [] });
1214
+
1215
+ async function myReportedIssuesEntityFactory(injector) {
1216
+ const dataService = injector.get(AXMMyReportedIssuesService);
1217
+ const reportedIssueDataService = injector.get(AXMReportedIssuesService);
1218
+ const i18n = RootConfig.config.i18n;
1219
+ const entityName = 'my-reported-issues';
1220
+ const entityDef = {
1221
+ module: RootConfig.module.name,
1222
+ name: RootConfig.entities.myReportedIssues.name,
1223
+ source: '',
1224
+ title: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
1225
+ formats: {
1226
+ individual: `t("${entityName}.individual-title", { scope: "${i18n}" })`,
1227
+ plural: `t("${entityName}.plural-title", { scope: "${i18n}" })`,
1228
+ searchResult: {
1229
+ title: '{{ title }}',
1230
+ description: RootConfig.module.title,
1231
+ },
1232
+ },
1233
+ relatedEntities: [],
1234
+ groups: [
1235
+ {
1236
+ id: 'section',
1237
+ title: `t("${entityName}.section-title", { scope: "${i18n}" })`,
1238
+ },
1239
+ ],
1240
+ properties: [
1241
+ {
1242
+ name: 'id',
1243
+ title: 'ID',
1244
+ schema: {
1245
+ dataType: 'uuid',
1246
+ hidden: true,
1247
+ nullable: false,
1248
+ readonly: true,
1249
+ unique: {
1250
+ enabled: true,
1251
+ },
1252
+ },
1253
+ },
1254
+ {
1255
+ name: 'issueType',
1256
+ title: `t("${entityName}.issue-type", { scope:"${i18n}" })`,
1257
+ groupId: 'section',
1258
+ options: {
1259
+ sort: {
1260
+ enabled: true,
1261
+ },
1262
+ filter: {
1263
+ advance: {
1264
+ enabled: true,
1265
+ },
1266
+ inline: {
1267
+ enabled: true,
1268
+ },
1269
+ },
1270
+ },
1271
+ schema: {
1272
+ dataType: 'string',
1273
+ interface: {
1274
+ type: AXPWidgetsCatalog.lookup,
1275
+ options: {
1276
+ entityName: 'issueType',
1277
+ },
1278
+ },
1279
+ },
1280
+ validations: [
1281
+ {
1282
+ rule: 'required',
1283
+ },
1284
+ ],
1285
+ },
1286
+ {
1287
+ name: 'priority',
1288
+ title: `t("${entityName}.priority", { scope: "${i18n}" })`,
1289
+ groupId: 'section',
1290
+ options: {
1291
+ sort: {
1292
+ enabled: true,
1293
+ },
1294
+ filter: {
1295
+ advance: {
1296
+ enabled: true,
1297
+ },
1298
+ inline: {
1299
+ enabled: true,
1300
+ },
1301
+ },
1302
+ },
1303
+ schema: {
1304
+ dataType: 'string',
1305
+ interface: {
1306
+ type: AXPWidgetsCatalog.select,
1307
+ options: {
1308
+ items: [
1309
+ { value: 'high', title: 'High' },
1310
+ { value: 'medium', title: 'Medium' },
1311
+ { value: 'low', title: 'Low' },
1312
+ ],
1313
+ },
1314
+ },
1315
+ },
1316
+ validations: [
1317
+ {
1318
+ rule: 'required',
1319
+ },
1320
+ ],
1321
+ },
1322
+ {
1323
+ name: 'title',
1324
+ title: `t("${entityName}.title", { scope: "${i18n}" })`,
1325
+ groupId: 'section',
1326
+ options: {
1327
+ sort: {
1328
+ enabled: true,
1329
+ },
1330
+ filter: {
1331
+ advance: {
1332
+ enabled: true,
1333
+ },
1334
+ inline: {
1335
+ enabled: true,
1336
+ },
1337
+ },
1338
+ },
1339
+ schema: {
1340
+ dataType: 'string',
1341
+ interface: {
1342
+ type: AXPWidgetsCatalog.text,
1343
+ },
1344
+ },
1345
+ validations: [
1346
+ {
1347
+ rule: 'required',
1348
+ },
1349
+ ],
1350
+ },
1351
+ {
1352
+ name: 'description',
1353
+ title: `t("${entityName}.description", { scope: "${i18n}" })`,
1354
+ groupId: 'section',
1355
+ options: {
1356
+ sort: {
1357
+ enabled: false,
1358
+ },
1359
+ filter: {
1360
+ advance: {
1361
+ enabled: true,
1362
+ },
1363
+ inline: {
1364
+ enabled: false,
1365
+ },
1366
+ },
1367
+ },
1368
+ schema: {
1369
+ dataType: 'string',
1370
+ interface: {
1371
+ type: AXPWidgetsCatalog.largeText,
1372
+ options: {
1373
+ rows: 4,
1374
+ },
1375
+ },
1376
+ },
1377
+ validations: [
1378
+ {
1379
+ rule: 'required',
1380
+ },
1381
+ ],
1382
+ },
1383
+ {
1384
+ name: 'attachments',
1385
+ title: `t("${entityName}.attachments", { scope: "${i18n}" })`,
1386
+ groupId: 'section',
1387
+ options: {
1388
+ sort: {
1389
+ enabled: false,
1390
+ },
1391
+ filter: {
1392
+ advance: {
1393
+ enabled: false,
1394
+ },
1395
+ inline: {
1396
+ enabled: false,
1397
+ },
1398
+ },
1399
+ },
1400
+ schema: {
1401
+ dataType: 'array',
1402
+ interface: {
1403
+ type: AXPWidgetsCatalog.documentAttachment,
1404
+ options: {
1405
+ multiple: true,
1406
+ accept: '*/*',
1407
+ },
1408
+ },
1409
+ },
1410
+ },
1411
+ {
1412
+ name: 'createdAt',
1413
+ title: `t("${entityName}.created-at", { scope: "${i18n}" })`,
1414
+ groupId: 'section',
1415
+ options: {
1416
+ sort: {
1417
+ enabled: true,
1418
+ },
1419
+ filter: {
1420
+ advance: {
1421
+ enabled: true,
1422
+ },
1423
+ inline: {
1424
+ enabled: false,
1425
+ },
1426
+ },
1427
+ },
1428
+ schema: {
1429
+ dataType: 'date',
1430
+ interface: {
1431
+ type: AXPWidgetsCatalog.dateTime,
1432
+ options: {
1433
+ readonly: true,
1434
+ },
1435
+ },
1436
+ },
1437
+ },
1438
+ ],
1439
+ columns: [
1440
+ { name: 'issueType' },
1441
+ { name: 'priority' },
1442
+ { name: 'title' },
1443
+ { name: 'description' },
1444
+ { name: 'createdAt' },
1445
+ ],
1446
+ commands: {
1447
+ create: {
1448
+ execute: async (data) => {
1449
+ data.createdAt = new Date();
1450
+ const res = await dataService.insertOne(data);
1451
+ return { id: res };
1452
+ },
1453
+ },
1454
+ delete: {
1455
+ execute: async (id) => {
1456
+ return await dataService.deleteOne(id);
1457
+ },
1458
+ },
1459
+ update: {
1460
+ execute: async (data) => {
1461
+ return await dataService.updateOne(data.id, data);
1462
+ },
1463
+ },
1464
+ },
1465
+ queries: {
1466
+ byKey: {
1467
+ execute: async (id) => {
1468
+ return await dataService.getOne(id);
1469
+ },
1470
+ type: AXPEntityQueryType.Single,
1471
+ },
1472
+ list: {
1473
+ execute: async (e) => {
1474
+ return await reportedIssueDataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1475
+ },
1476
+ type: AXPEntityQueryType.List,
1477
+ },
1478
+ },
1479
+ interfaces: {
1480
+ master: {
1481
+ create: {
1482
+ sections: [
1483
+ {
1484
+ id: 'section',
1485
+ },
1486
+ ],
1487
+ properties: [
1488
+ {
1489
+ name: 'issue-type',
1490
+ layout: {
1491
+ positions: {
1492
+ lg: {
1493
+ colSpan: 6,
1494
+ order: 1,
1495
+ },
1496
+ },
1497
+ },
1498
+ },
1499
+ {
1500
+ name: 'priority',
1501
+ layout: {
1502
+ positions: {
1503
+ lg: {
1504
+ colSpan: 6,
1505
+ order: 2,
1506
+ },
1507
+ },
1508
+ },
1509
+ },
1510
+ {
1511
+ name: 'title',
1512
+ layout: {
1513
+ positions: {
1514
+ lg: {
1515
+ colSpan: 12,
1516
+ order: 3,
1517
+ },
1518
+ },
1519
+ },
1520
+ },
1521
+ {
1522
+ name: 'description',
1523
+ layout: {
1524
+ positions: {
1525
+ lg: {
1526
+ colSpan: 12,
1527
+ order: 4,
1528
+ },
1529
+ },
1530
+ },
1531
+ },
1532
+ {
1533
+ name: 'attachments',
1534
+ layout: {
1535
+ positions: {
1536
+ lg: {
1537
+ colSpan: 12,
1538
+ order: 5,
1539
+ },
1540
+ },
1541
+ },
1542
+ },
1543
+ ],
1544
+ },
1545
+ update: {
1546
+ sections: [
1547
+ {
1548
+ id: 'section',
1549
+ },
1550
+ ],
1551
+ properties: [
1552
+ {
1553
+ name: 'issue-type',
1554
+ layout: {
1555
+ positions: {
1556
+ lg: {
1557
+ colSpan: 6,
1558
+ order: 1,
1559
+ },
1560
+ },
1561
+ },
1562
+ },
1563
+ {
1564
+ name: 'priority',
1565
+ layout: {
1566
+ positions: {
1567
+ lg: {
1568
+ colSpan: 6,
1569
+ order: 2,
1570
+ },
1571
+ },
1572
+ },
1573
+ },
1574
+ {
1575
+ name: 'title',
1576
+ layout: {
1577
+ positions: {
1578
+ lg: {
1579
+ colSpan: 12,
1580
+ order: 3,
1581
+ },
1582
+ },
1583
+ },
1584
+ },
1585
+ {
1586
+ name: 'description',
1587
+ layout: {
1588
+ positions: {
1589
+ lg: {
1590
+ colSpan: 12,
1591
+ order: 4,
1592
+ },
1593
+ },
1594
+ },
1595
+ },
1596
+ {
1597
+ name: 'attachments',
1598
+ layout: {
1599
+ positions: {
1600
+ lg: {
1601
+ colSpan: 12,
1602
+ order: 5,
1603
+ },
1604
+ },
1605
+ },
1606
+ },
1607
+ {
1608
+ name: 'created-at',
1609
+ layout: {
1610
+ positions: {
1611
+ lg: {
1612
+ colSpan: 6,
1613
+ order: 6,
1614
+ },
1615
+ },
1616
+ },
1617
+ },
1618
+ ],
1619
+ },
1620
+ single: {
1621
+ title: '{{title}}',
1622
+ sections: [
1623
+ {
1624
+ id: 'section',
1625
+ },
1626
+ ],
1627
+ properties: [
1628
+ {
1629
+ name: 'issue-type',
1630
+ layout: {
1631
+ positions: {
1632
+ lg: {
1633
+ colSpan: 6,
1634
+ order: 1,
1635
+ },
1636
+ },
1637
+ },
1638
+ },
1639
+ {
1640
+ name: 'priority',
1641
+ layout: {
1642
+ positions: {
1643
+ lg: {
1644
+ colSpan: 6,
1645
+ order: 2,
1646
+ },
1647
+ },
1648
+ },
1649
+ },
1650
+ {
1651
+ name: 'title',
1652
+ layout: {
1653
+ positions: {
1654
+ lg: {
1655
+ colSpan: 12,
1656
+ order: 3,
1657
+ },
1658
+ },
1659
+ },
1660
+ },
1661
+ {
1662
+ name: 'description',
1663
+ layout: {
1664
+ positions: {
1665
+ lg: {
1666
+ colSpan: 12,
1667
+ order: 4,
1668
+ },
1669
+ },
1670
+ },
1671
+ },
1672
+ {
1673
+ name: 'attachments',
1674
+ layout: {
1675
+ positions: {
1676
+ lg: {
1677
+ colSpan: 12,
1678
+ order: 5,
1679
+ },
1680
+ },
1681
+ },
1682
+ },
1683
+ {
1684
+ name: 'created-at',
1685
+ layout: {
1686
+ positions: {
1687
+ lg: {
1688
+ colSpan: 6,
1689
+ order: 6,
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1694
+ ],
1695
+ actions: [],
1696
+ },
1697
+ list: {
1698
+ actions: [
1699
+ {
1700
+ title: `t("create", { scope: "common" })`,
1701
+ command: 'show-report-issue',
1702
+ priority: 'primary',
1703
+ type: 'create',
1704
+ scope: AXPEntityCommandScope.TypeLevel,
1705
+ },
1706
+ {
1707
+ title: 't("deleteItems", { scope: "common" })',
1708
+ command: 'delete-entity',
1709
+ priority: 'primary',
1710
+ type: 'delete',
1711
+ scope: AXPEntityCommandScope.Selected,
1712
+ },
1713
+ {
1714
+ title: 't("detail", { scope: "common" })',
1715
+ command: 'open-entity',
1716
+ priority: 'secondary',
1717
+ type: 'view',
1718
+ scope: AXPEntityCommandScope.Individual,
1719
+ },
1720
+ {
1721
+ title: 't("delete", { scope: "common" })',
1722
+ command: 'delete-entity',
1723
+ priority: 'secondary',
1724
+ type: 'delete',
1725
+ scope: AXPEntityCommandScope.Individual,
1726
+ },
1727
+ ],
1728
+ views: [
1729
+ createAllQueryView({
1730
+ sorts: [{ name: 'name', dir: 'asc' }],
1731
+ }),
1732
+ ],
1733
+ },
1734
+ },
1735
+ },
1736
+ };
1737
+ return entityDef;
1738
+ }
1739
+
1740
+ var index = /*#__PURE__*/Object.freeze({
1741
+ __proto__: null,
1742
+ AXMIssueTypeService: AXMIssueTypeService,
1743
+ AXMIssueTypeServiceImpl: AXMIssueTypeServiceImpl,
1744
+ AXMMyReportedIssuesService: AXMMyReportedIssuesService,
1745
+ AXMMyReportedIssuesServiceImpl: AXMMyReportedIssuesServiceImpl,
1746
+ AXMReportedIssuesService: AXMReportedIssuesService,
1747
+ AXMReportedIssuesServiceImpl: AXMReportedIssuesServiceImpl,
1748
+ issueTypeEntityFactory: issueTypeEntityFactory,
1749
+ myReportedIssuesEntityFactory: myReportedIssuesEntityFactory,
1750
+ reportedIssuesEntityFactory: reportedIssuesEntityFactory
1751
+ });
1752
+
1753
+ class AXMEntityProvider {
1754
+ constructor() {
1755
+ this.injector = inject(Injector);
1756
+ }
1757
+ preload() {
1758
+ const module = RootConfig.module.name;
1759
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
1760
+ module: module,
1761
+ entity: entity.name,
1762
+ }));
1763
+ }
1764
+ async get(moduleName, entityName) {
1765
+ if (moduleName == RootConfig.module.name) {
1766
+ return new Promise(async (resolve) => {
1767
+ switch (entityName) {
1768
+ case RootConfig.entities.issueType.name: {
1769
+ const entity = (await Promise.resolve().then(function () { return index; })).issueTypeEntityFactory;
1770
+ resolve(entity(this.injector));
1771
+ break;
1772
+ }
1773
+ case RootConfig.entities.reportedIssues.name: {
1774
+ const entity = (await Promise.resolve().then(function () { return index; })).reportedIssuesEntityFactory;
1775
+ resolve(entity(this.injector));
1776
+ break;
1777
+ }
1778
+ case RootConfig.entities.myReportedIssues.name: {
1779
+ const entity = (await Promise.resolve().then(function () { return index; })).myReportedIssuesEntityFactory;
1780
+ resolve(entity(this.injector));
1781
+ break;
1782
+ }
1783
+ }
1784
+ });
1785
+ }
1786
+ return null;
1787
+ }
1788
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1789
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
1790
+ }
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
1792
+ type: Injectable
1793
+ }] });
1794
+
1795
+ const AXMCaptureScreenService = signalStore({ providedIn: 'root' }, withState(() => {
1796
+ const state = {
1797
+ loading: false,
1798
+ captureMode: 'screenshot',
1799
+ screenshotBlob: '',
1800
+ videoBlob: '',
1801
+ muted: false,
1802
+ isRecording: false,
1803
+ timer: {
1804
+ second: 0,
1805
+ minute: 0,
1806
+ },
1807
+ onFinish: undefined,
1808
+ };
1809
+ return state;
1810
+ }), withMethods((store) => {
1811
+ let interval;
1812
+ let videoStream;
1813
+ let audioStream;
1814
+ let mediaRecorder;
1815
+ let recordedChunks = [];
1816
+ let componentRef;
1817
+ const toastService = inject(AXToastService);
1818
+ const translationService = inject(AXTranslationService);
1819
+ const application = inject(ApplicationRef);
1820
+ const stopRecorderSubject = new Subject();
1821
+ const recordStream = async () => {
1822
+ mediaRecorder = await new MediaRecorder(videoStream, {
1823
+ mimeType: 'video/mp4',
1824
+ });
1825
+ patchState(store, { isRecording: true });
1826
+ mediaRecorder.start();
1827
+ startTimer();
1828
+ mediaRecorder.ondataavailable = (e) => {
1829
+ recordedChunks.push(e.data);
1830
+ };
1831
+ mediaRecorder.onstop = () => {
1832
+ stopRecorder();
1833
+ };
1834
+ videoStream.getVideoTracks()[0].onended = () => {
1835
+ stopRecorder();
1836
+ };
1837
+ };
1838
+ const finishRecording = async (result) => {
1839
+ if (store.onFinish() && result) {
1840
+ store.onFinish()?.(result);
1841
+ }
1842
+ resetState();
1843
+ componentRef.destroy();
1844
+ };
1845
+ const stopRecorder = async () => {
1846
+ stopRecorderSubject.pipe(take(1)).subscribe(async () => {
1847
+ try {
1848
+ if (mediaRecorder && videoStream?.active) {
1849
+ await mediaRecorder.stop();
1850
+ if (audioStream) {
1851
+ audioStream.getTracks().forEach((track) => track.stop());
1852
+ }
1853
+ videoStream.getVideoTracks().forEach((track) => track.stop());
1854
+ clearInterval(interval);
1855
+ patchState(store, { isRecording: false, timer: { second: 0, minute: 0 } });
1856
+ setTimeout(() => {
1857
+ createVideoBlob();
1858
+ });
1859
+ }
1860
+ }
1861
+ catch (error) {
1862
+ console.error('Error stopping recorder:', error);
1863
+ finishRecording(null);
1864
+ }
1865
+ });
1866
+ stopRecorderSubject.next();
1867
+ };
1868
+ const createVideoBlob = () => {
1869
+ try {
1870
+ if (recordedChunks.length > 0) {
1871
+ const blob = new Blob(recordedChunks, {
1872
+ type: recordedChunks[0].type,
1873
+ });
1874
+ finishRecording({ blob, type: 'video' });
1875
+ }
1876
+ }
1877
+ catch (error) {
1878
+ console.error('Error creating video blob:', error);
1879
+ finishRecording(null);
1880
+ }
1881
+ };
1882
+ const startTimer = () => {
1883
+ interval = setInterval(() => {
1884
+ if (store.timer().minute === 5) {
1885
+ stopRecorder();
1886
+ setTimeout(async () => {
1887
+ toastService.show({
1888
+ color: 'warning',
1889
+ content: await translationService.translateAsync('issue.recording-time-limit', {
1890
+ scope: 'issue-management',
1891
+ }),
1892
+ timeOut: 5000,
1893
+ });
1894
+ }, 100);
1895
+ }
1896
+ else if (store.timer().second === 59) {
1897
+ patchState(store, { timer: { minute: ++store.timer().minute, second: 0 } });
1898
+ }
1899
+ else {
1900
+ patchState(store, { timer: { minute: store.timer().minute, second: ++store.timer().second } });
1901
+ }
1902
+ }, 1000);
1903
+ };
1904
+ const resetState = () => {
1905
+ patchState(store, {
1906
+ loading: false,
1907
+ captureMode: 'screenshot',
1908
+ screenshotBlob: '',
1909
+ videoBlob: '',
1910
+ muted: false,
1911
+ isRecording: false,
1912
+ timer: {
1913
+ second: 0,
1914
+ minute: 0,
1915
+ },
1916
+ onFinish: undefined,
1917
+ });
1918
+ };
1919
+ return {
1920
+ init: async (onFinish) => {
1921
+ try {
1922
+ const { AXMCaptureScreenComponent } = await import('./acorex-modules-issue-management-capture-screen.component-Dns1Wrkd.mjs');
1923
+ const viewContainerRef = application.components[0].injector.get(ViewContainerRef);
1924
+ componentRef = viewContainerRef.createComponent(AXMCaptureScreenComponent);
1925
+ document.body.appendChild(componentRef.location.nativeElement);
1926
+ patchState(store, { onFinish });
1927
+ }
1928
+ catch (error) {
1929
+ console.error('Error initializing capture screen:', error);
1930
+ onFinish?.({ blob: new Blob(), type: 'image' });
1931
+ }
1932
+ },
1933
+ cancelClick() {
1934
+ if (store.isRecording()) {
1935
+ stopRecorder();
1936
+ return;
1937
+ }
1938
+ this.changeCaptureMode();
1939
+ finishRecording(null);
1940
+ },
1941
+ changeCaptureMode() {
1942
+ patchState(store, {
1943
+ captureMode: store.captureMode() === 'screenshot' ? 'video' : 'screenshot',
1944
+ });
1945
+ },
1946
+ async mutedClick() {
1947
+ const enabled = store.muted();
1948
+ if (audioStream) {
1949
+ audioStream.getTracks().forEach((track) => (track.enabled = enabled));
1950
+ }
1951
+ patchState(store, { muted: !enabled });
1952
+ },
1953
+ screenshotClick() {
1954
+ patchState(store, { loading: true });
1955
+ const captureElement = document.getElementsByTagName('body')[0];
1956
+ html2canvas(captureElement)
1957
+ .then(async (canvas) => {
1958
+ try {
1959
+ const blob = await new Promise((resolve, reject) => {
1960
+ canvas.toBlob((blob) => (blob ? resolve(blob) : reject(new Error('Failed to create blob'))), 'image/png');
1961
+ });
1962
+ finishRecording({ blob, type: 'image' });
1963
+ }
1964
+ catch (error) {
1965
+ console.error('Error creating screenshot:', error);
1966
+ finishRecording(null);
1967
+ }
1968
+ })
1969
+ .catch((error) => {
1970
+ console.error('Error capturing screenshot:', error);
1971
+ finishRecording(null);
1972
+ })
1973
+ .finally(() => {
1974
+ patchState(store, { loading: false });
1975
+ });
1976
+ },
1977
+ async recordScreenClick() {
1978
+ if (!store.isRecording() && !videoStream?.active) {
1979
+ try {
1980
+ videoStream = await navigator.mediaDevices.getDisplayMedia({
1981
+ video: { displaySurface: 'monitor' },
1982
+ audio: true,
1983
+ });
1984
+ await this.getMicrophonePermission();
1985
+ await recordStream();
1986
+ }
1987
+ catch (error) {
1988
+ console.error('Error starting screen recording:', error);
1989
+ toastService.show({
1990
+ color: 'warning',
1991
+ content: await translationService.translateAsync('issue.capture-screen-error', {
1992
+ scope: 'issue-management',
1993
+ }),
1994
+ timeOut: 5000,
1995
+ });
1996
+ finishRecording(null);
1997
+ }
1998
+ }
1999
+ else if (mediaRecorder) {
2000
+ stopRecorder();
2001
+ }
2002
+ },
2003
+ async getMicrophonePermission() {
2004
+ try {
2005
+ audioStream = await navigator.mediaDevices.getUserMedia({
2006
+ audio: {
2007
+ echoCancellation: true,
2008
+ noiseSuppression: true,
2009
+ sampleRate: 44100,
2010
+ autoGainControl: true,
2011
+ },
2012
+ });
2013
+ if (audioStream && videoStream) {
2014
+ videoStream.addTrack(audioStream.getTracks()[0]);
2015
+ audioStream.getTracks()[0].enabled = !store.muted();
2016
+ }
2017
+ }
2018
+ catch (error) {
2019
+ console.error('Error getting microphone permission:', error);
2020
+ toastService.show({
2021
+ color: 'warning',
2022
+ content: await translationService.translateAsync('issue.get-microphone-error', {
2023
+ scope: 'issue-management',
2024
+ }),
2025
+ timeOut: 5000,
2026
+ });
2027
+ audioStream = null;
2028
+ }
2029
+ },
2030
+ };
2031
+ }));
2032
+
2033
+ const AXMReportNewIssueViewModel = signalStore({ providedIn: 'root' }, withState(() => {
2034
+ const state = {
2035
+ id: AXPDataGenerator.uuid(),
2036
+ data: {
2037
+ title: '',
2038
+ description: '',
2039
+ issueType: {},
2040
+ priority: {},
2041
+ },
2042
+ status: 'new',
2043
+ media: [],
2044
+ };
2045
+ return state;
2046
+ }), withComputed(({ status }) => ({
2047
+ isRecording: computed(() => status() === 'recording'),
2048
+ })), withMethods((store, popupService = inject(AXPopupService), captureScreenService = inject(AXMCaptureScreenService), eventService = inject(AXPWorkflowEventService), fileStorageService = inject(AXPFileStorageService), documentService = inject(AXMDocumentService)) => {
2049
+ const createMediaItem = (name, mediaUrl, type, documentId, fileId) => ({
2050
+ id: (store.media().length + 1).toString(),
2051
+ name: name,
2052
+ type,
2053
+ thumbnail: mediaUrl,
2054
+ url: mediaUrl,
2055
+ documentId,
2056
+ fileId,
2057
+ });
2058
+ return {
2059
+ async startCapturing() {
2060
+ patchState(store, { status: 'recording' });
2061
+ return captureScreenService.init(async (data) => {
2062
+ try {
2063
+ let documentId = '';
2064
+ let file;
2065
+ if (typeof data === 'object' && 'blob' in data) {
2066
+ const mediaUrl = await URL.createObjectURL(data.blob);
2067
+ const fileName = `${new Date().toISOString()}.${data.type === 'image' ? 'png' : 'mp4'}`;
2068
+ file = new File([data.blob], fileName);
2069
+ const fileStorage = await fileStorageService.save({
2070
+ category: 'issue-document',
2071
+ file: file,
2072
+ name: fileName,
2073
+ refId: '',
2074
+ refType: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
2075
+ });
2076
+ documentId = await documentService.insertOne({
2077
+ refRecordId: store.id(),
2078
+ refEntity: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
2079
+ fileId: fileStorage.fileId,
2080
+ name: fileStorage.name,
2081
+ title: fileStorage.name,
2082
+ size: file.size,
2083
+ parentId: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
2084
+ });
2085
+ const newMedia = createMediaItem(fileStorage.name, mediaUrl, data.type, documentId, fileStorage.fileId);
2086
+ patchState(store, {
2087
+ media: [...store.media(), newMedia],
2088
+ status: 'recorded',
2089
+ });
2090
+ }
2091
+ this.showPopup(documentId);
2092
+ return file;
2093
+ }
2094
+ catch (error) {
2095
+ console.error('Error capturing media:', error);
2096
+ return undefined;
2097
+ }
2098
+ });
2099
+ },
2100
+ async showPopup(documentId) {
2101
+ try {
2102
+ const scope = RootConfig.config.i18n;
2103
+ const { AXMReportNewIssueComponent } = await Promise.resolve().then(function () { return reportNewIssue_component; });
2104
+ const config = {
2105
+ title: `t('report-new-issue.individual-title',{scope: "${scope}"})`,
2106
+ };
2107
+ const result = await popupService.open(AXMReportNewIssueComponent, config);
2108
+ if (result.data?.insertResult) {
2109
+ eventService.dispatch(AXPRefreshEvent({ entity: 'reported-issues' }));
2110
+ patchState(store, { status: 'new' });
2111
+ }
2112
+ }
2113
+ catch (error) {
2114
+ console.error('Error showing popup:', error);
2115
+ patchState(store, { status: 'new' });
2116
+ }
2117
+ },
2118
+ deleteCapturedItem(index) {
2119
+ patchState(store, { media: store.media().filter((_, i) => i !== index) });
2120
+ },
2121
+ resetState() {
2122
+ patchState(store, {
2123
+ id: AXPDataGenerator.uuid(),
2124
+ data: {
2125
+ title: '',
2126
+ description: '',
2127
+ issueType: {},
2128
+ priority: {},
2129
+ },
2130
+ status: 'new',
2131
+ media: [],
2132
+ });
2133
+ },
2134
+ };
2135
+ }));
2136
+
2137
+ class AXMReportNewIssueComponent extends AXBasePageComponent {
2138
+ constructor() {
2139
+ super();
2140
+ this.vm = inject(AXMReportNewIssueViewModel);
2141
+ this.sessionService = inject(AXPSessionService);
2142
+ this.issueTypeService = inject(AXMIssueTypeService);
2143
+ this.reportedIssuesService = inject(AXMReportedIssuesService);
2144
+ this.fileStorageService = inject(AXPFileStorageService);
2145
+ this.documentService = inject(AXMDocumentService);
2146
+ this.issueTypeDataSource = new AXDataSource({
2147
+ load: async (_) => {
2148
+ const issueTypeList = await this.issueTypeService.query();
2149
+ return issueTypeList;
2150
+ },
2151
+ pageSize: 20,
2152
+ });
2153
+ this.priorityList = [
2154
+ {
2155
+ title: 'Low',
2156
+ id: 1,
2157
+ },
2158
+ {
2159
+ title: 'Medium',
2160
+ id: 2,
2161
+ },
2162
+ {
2163
+ title: 'High',
2164
+ id: 3,
2165
+ },
2166
+ {
2167
+ title: 'Critical',
2168
+ id: 4,
2169
+ },
2170
+ ];
2171
+ this.attachNode = {
2172
+ type: AXPWidgetsCatalog.documentAttachment,
2173
+ name: 'attach',
2174
+ path: 'attach',
2175
+ // defaultValue: this.vm.media().map((el) => el.documentId),
2176
+ options: {
2177
+ multiple: true,
2178
+ entity: `${RootConfig.module.name}.${RootConfig.entities.reportedIssues.name}`,
2179
+ record: this.vm.id(),
2180
+ actions: [
2181
+ {
2182
+ name: 'attach',
2183
+ icon: 'fa-light fa-video',
2184
+ title: `t('report-new-issue.start-capture-screen', { scope: 'issue-management' })`,
2185
+ callback: async () => {
2186
+ this.vm.startCapturing();
2187
+ this.close();
2188
+ },
2189
+ },
2190
+ ],
2191
+ },
2192
+ };
2193
+ this.context = {};
2194
+ }
2195
+ async handleSubmitClick() {
2196
+ const formResult = await this.form.validate();
2197
+ if (formResult.result) {
2198
+ const params = {
2199
+ id: this.vm.id(),
2200
+ attachments: this.addToFileStorage(),
2201
+ // attachments: this.vm.media(),
2202
+ createdAt: new Date(),
2203
+ description: this.vm.data().description,
2204
+ errorLogs: [],
2205
+ issueType: this.vm.data().issueType,
2206
+ priority: this.vm.data().priority,
2207
+ status: 'new',
2208
+ systemInfo: navigator.userAgent,
2209
+ title: this.vm.data().title,
2210
+ user: this.sessionService.user,
2211
+ };
2212
+ debugger;
2213
+ const reportedIssue = await this.reportedIssuesService.insertOne(params);
2214
+ await this.vm.media().forEach(async (x) => {
2215
+ await this.documentService.updateOne(x.documentId, {
2216
+ refRecordId: reportedIssue,
2217
+ });
2218
+ });
2219
+ if (reportedIssue.length) {
2220
+ this.vm.resetState();
2221
+ this.close({ insertResult: true });
2222
+ }
2223
+ }
2224
+ }
2225
+ async convertURLToFile(url, fileName) {
2226
+ const response = await fetch(url);
2227
+ const blob = await response.blob();
2228
+ const file = new File([blob], fileName);
2229
+ return file;
2230
+ }
2231
+ addToFileStorage() {
2232
+ let fileIDs = [];
2233
+ // this.vm.media().forEach(async (el) => {
2234
+ // const file = await this.convertURLToFile(el.url, el.name as string);
2235
+ // fileIDs.push(
2236
+ // (await this.fileStorageService.save({ category: 'issue-document', file: file, refId: '', refType: '' })).fileId
2237
+ // );
2238
+ // });
2239
+ return fileIDs;
2240
+ }
2241
+ async handleStartRecordingClick() {
2242
+ await this.vm.startCapturing();
2243
+ this.close();
2244
+ }
2245
+ async onDeleteMediaClick(index) {
2246
+ this.vm.deleteCapturedItem(index);
2247
+ }
2248
+ async onCancelClick() {
2249
+ this.vm.resetState();
2250
+ this.close();
2251
+ }
2252
+ handleIssueTypeChange(event) {
2253
+ this.vm.data().issueType = event.component.selectedItems[0];
2254
+ }
2255
+ handlePriorityChange(event) {
2256
+ this.vm.data().priority = event.component.selectedItems[0];
2257
+ }
2258
+ ngOnDestroy() {
2259
+ if (this.vm.status() !== 'recording') {
2260
+ this.vm.resetState();
2261
+ }
2262
+ }
2263
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMReportNewIssueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2264
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMReportNewIssueComponent, isStandalone: true, selector: "axm-report-new-issue", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *translate=\"let t\" class=\"ax-p-6\">\n <ax-form #form>\n <div class=\"ax-grid ax-gap-2\">\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.title', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.issue-type', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.priority', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.description', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n <ax-form-field>\n <axp-widgets-container class=\"ax-flex ax-flex-col ax-gap-2 ax-p-4\" [context]=\"context\">\n <ng-container axp-widget-renderer [node]=\"attachNode\" [mode]=\"'edit'\"> </ng-container>\n </axp-widgets-container>\n </ax-form-field>\n </div>\n </ax-form>\n <!-- @if(vm.media().length > 0){\n <div class=\"ax-py-4\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"ax-block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"ax-icon ax-icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n } -->\n <!-- <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'issue-management' }) | async }}</ax-label>\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-border-dashed ax-border-secondary-500 ax-rounded-lg ax-p-6\"\n >\n <div class=\"ax-rounded-full ax-bg-surface ax-px-4 ax-py-3\">\n <ax-icon class=\"fa-solid fa-paperclip ax-text-on-surface ax-text-xl\"></ax-icon>\n </div>\n <p class=\"ax-text-lg ax-text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'issue-management' }) | async }}\n </p>\n <ax-button\n class=\"ax-w-fit ax-mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'issue-management' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div> -->\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'cancel' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'save' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
2265
+ //
2266
+ AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i4.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i4.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i4.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i6.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTextAreaModule }, { kind: "component", type: i8.AXTextAreaComponent, selector: "ax-text-area", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "placeholder", "maxLength", "look", "rows", "allowResize", "showCounter", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i10.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXMediaViewerModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i11.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i11.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }] }); }
2267
+ }
2268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMReportNewIssueComponent, decorators: [{
2269
+ type: Component,
2270
+ args: [{ selector: 'axm-report-new-issue', imports: [
2271
+ CommonModule,
2272
+ FormsModule,
2273
+ //
2274
+ AXTranslationModule,
2275
+ AXFormModule,
2276
+ AXLabelModule,
2277
+ AXTextBoxModule,
2278
+ AXSelectBoxModule,
2279
+ AXTextAreaModule,
2280
+ AXDecoratorModule,
2281
+ AXButtonModule,
2282
+ AXMediaViewerModule,
2283
+ AXPLayoutBuilderModule,
2284
+ ], template: "<div *translate=\"let t\" class=\"ax-p-6\">\n <ax-form #form>\n <div class=\"ax-grid ax-gap-2\">\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.title', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-text-box [(ngModel)]=\"vm.data().title\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.issue-type', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"issueTypeDataSource\"\n [value]=\"vm.data().issueType\"\n (onValueChanged)=\"handleIssueTypeChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.priority', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-select-box\n valueField=\"id\"\n textField=\"title\"\n [dataSource]=\"priorityList\"\n [value]=\"vm.data().priority\"\n (onValueChanged)=\"handlePriorityChange($event)\"\n ></ax-select-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t('report-new-issue.description', { scope: 'issue-management' }) | async }}</ax-label>\n <ax-text-area [(ngModel)]=\"vm.data().description\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-area>\n </ax-form-field>\n <ax-form-field>\n <axp-widgets-container class=\"ax-flex ax-flex-col ax-gap-2 ax-p-4\" [context]=\"context\">\n <ng-container axp-widget-renderer [node]=\"attachNode\" [mode]=\"'edit'\"> </ng-container>\n </axp-widgets-container>\n </ax-form-field>\n </div>\n </ax-form>\n <!-- @if(vm.media().length > 0){\n <div class=\"ax-py-4\">\n <ax-content>\n <ax-media-viewer-container #mediaViewer [dataArray]=\"vm.media()\" class=\"ax-block\">\n <ax-header>\n <ax-file-info></ax-file-info>\n <ax-suffix>\n <ax-button class=\"ax-sm\" color=\"danger\" (onClick)=\"onDeleteMediaClick(mediaViewer.getActiveIndex())\">\n <ax-icon class=\"ax-icon ax-icon-trash\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"mediaViewer.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"mediaViewer.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n </ax-content>\n </div>\n } -->\n <!-- <div>\n <ax-label>{{ t('report-new-issue.attach', { scope: 'issue-management' }) | async }}</ax-label>\n <div\n class=\"ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-border-dashed ax-border-secondary-500 ax-rounded-lg ax-p-6\"\n >\n <div class=\"ax-rounded-full ax-bg-surface ax-px-4 ax-py-3\">\n <ax-icon class=\"fa-solid fa-paperclip ax-text-on-surface ax-text-xl\"></ax-icon>\n </div>\n <p class=\"ax-text-lg ax-text-on-surface\">\n {{ t('report-new-issue.attach-box-description', { scope: 'issue-management' }) | async }}\n </p>\n <ax-button\n class=\"ax-w-fit ax-mt-6\"\n [text]=\"t('report-new-issue.start-capture-screen', { scope: 'issue-management' }) | async\"\n color=\"secondary\"\n (onClick)=\"handleStartRecordingClick()\"\n ></ax-button>\n </div>\n </div> -->\n</div>\n<ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n color=\"default\"\n [text]=\"'cancel' | translate | async\"\n (onClick)=\"onCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'save' | translate | async\"\n (onClick)=\"handleSubmitClick()\"\n ></ax-button>\n </ax-suffix>\n</ax-footer>\n" }]
2285
+ }], ctorParameters: () => [], propDecorators: { form: [{
2286
+ type: ViewChild,
2287
+ args: [AXFormComponent]
2288
+ }] } });
2289
+
2290
+ var reportNewIssue_component = /*#__PURE__*/Object.freeze({
2291
+ __proto__: null,
2292
+ AXMReportNewIssueComponent: AXMReportNewIssueComponent
2293
+ });
2294
+
2295
+ class AXMShowReportNewIssuePopupeAction extends AXPWorkflowAction {
2296
+ constructor() {
2297
+ super(...arguments);
2298
+ this.popupService = inject(AXPopupService);
2299
+ this.vm = inject(AXMReportNewIssueViewModel);
2300
+ }
2301
+ async execute() {
2302
+ await this.vm.showPopup();
2303
+ }
2304
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReportNewIssuePopupeAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2305
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReportNewIssuePopupeAction }); }
2306
+ }
2307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReportNewIssuePopupeAction, decorators: [{
2308
+ type: Injectable
2309
+ }] });
2310
+ const AXMShowReportNewIssueWorkflow = {
2311
+ startStepId: 'show-popup',
2312
+ steps: {
2313
+ 'show-popup': {
2314
+ action: 'AXMShowReportNewIssuePopupeAction',
2315
+ },
2316
+ },
2317
+ };
2318
+
2319
+ class AXMMenuProvider {
2320
+ constructor() {
2321
+ this.entityService = inject(AXPEntityService);
2322
+ }
2323
+ async provide(context) {
2324
+ const scope = RootConfig.config.i18n;
2325
+ const module = RootConfig.module;
2326
+ context.addItems([
2327
+ {
2328
+ name: 'app-issue',
2329
+ priority: 9001,
2330
+ text: `t('issue-management', {scope:"${scope}"})`,
2331
+ icon: module.icon,
2332
+ children: [
2333
+ {
2334
+ name: 'my-reported-issues',
2335
+ text: RootConfig.entities.myReportedIssues.title,
2336
+ icon: RootConfig.entities.myReportedIssues.icon,
2337
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.myReportedIssues.name),
2338
+ priority: 1000,
2339
+ },
2340
+ {
2341
+ name: 'app-report-issue',
2342
+ text: RootConfig.entities.reportNewIssue.title,
2343
+ icon: RootConfig.entities.reportNewIssue.icon,
2344
+ command: {
2345
+ name: 'show-report-issue',
2346
+ },
2347
+ priority: 1001,
2348
+ },
2349
+ {
2350
+ priority: 9008,
2351
+ text: RootConfig.entities.reportedIssues.title,
2352
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.reportedIssues.name),
2353
+ icon: RootConfig.entities.reportedIssues.icon,
2354
+ },
2355
+ {
2356
+ priority: 9009,
2357
+ text: RootConfig.entities.issueType.title,
2358
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.issueType.name),
2359
+ icon: RootConfig.entities.issueType.icon,
2360
+ },
2361
+ ],
2362
+ },
2363
+ ]);
2364
+ }
2365
+ }
2366
+
2367
+ class AXMSettingProvider {
2368
+ async provide(context) {
2369
+ // context
2370
+ // // Add Form Template Group
2371
+ // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
2372
+ // // Start Interface Section
2373
+ // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
2374
+ // .addSetting({
2375
+ // key: 'history-panel',
2376
+ // title: 'Show History Panel',
2377
+ // scope: 'U',
2378
+ // isInherited: true,
2379
+ // defaultValue: false,
2380
+ // widget: {
2381
+ // type: AXPWidgetsCatalog.toggle,
2382
+ // },
2383
+ // description: 'Enable or disable the history panel for forms.',
2384
+ // validationRules: [
2385
+ // {
2386
+ // rule: 'required',
2387
+ // },
2388
+ // ],
2389
+ // })
2390
+ // .endSection()
2391
+ // .endGroup();
2392
+ }
2393
+ }
2394
+
2395
+ class AXMIssueManagementModule {
2396
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2397
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueManagementModule, imports: [i1$1.AXPWorkflowModule] }); }
2398
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueManagementModule, providers: [
2399
+ {
2400
+ provide: AXMIssueTypeService,
2401
+ useClass: AXMIssueTypeServiceImpl,
2402
+ },
2403
+ {
2404
+ provide: AXMReportedIssuesService,
2405
+ useClass: AXMReportedIssuesServiceImpl,
2406
+ },
2407
+ {
2408
+ provide: AXMMyReportedIssuesService,
2409
+ useClass: AXMMyReportedIssuesServiceImpl,
2410
+ },
2411
+ {
2412
+ provide: AXP_MENU_PROVIDER,
2413
+ useClass: AXMMenuProvider,
2414
+ multi: true,
2415
+ },
2416
+ {
2417
+ provide: AXP_ENTITY_DEFINITION_LOADER,
2418
+ useClass: AXMEntityProvider,
2419
+ multi: true,
2420
+ },
2421
+ {
2422
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
2423
+ useClass: AXMSettingProvider,
2424
+ multi: true,
2425
+ },
2426
+ ], imports: [AXPWorkflowModule.forChild({
2427
+ actions: {
2428
+ AXMShowReportNewIssuePopupeAction: AXMShowReportNewIssuePopupeAction,
2429
+ },
2430
+ workflows: {
2431
+ 'show-report-issue': AXMShowReportNewIssueWorkflow,
2432
+ },
2433
+ })] }); }
2434
+ }
2435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMIssueManagementModule, decorators: [{
2436
+ type: NgModule,
2437
+ args: [{
2438
+ imports: [
2439
+ AXPWorkflowModule.forChild({
2440
+ actions: {
2441
+ AXMShowReportNewIssuePopupeAction: AXMShowReportNewIssuePopupeAction,
2442
+ },
2443
+ workflows: {
2444
+ 'show-report-issue': AXMShowReportNewIssueWorkflow,
2445
+ },
2446
+ }),
2447
+ ],
2448
+ exports: [],
2449
+ declarations: [],
2450
+ providers: [
2451
+ {
2452
+ provide: AXMIssueTypeService,
2453
+ useClass: AXMIssueTypeServiceImpl,
2454
+ },
2455
+ {
2456
+ provide: AXMReportedIssuesService,
2457
+ useClass: AXMReportedIssuesServiceImpl,
2458
+ },
2459
+ {
2460
+ provide: AXMMyReportedIssuesService,
2461
+ useClass: AXMMyReportedIssuesServiceImpl,
2462
+ },
2463
+ {
2464
+ provide: AXP_MENU_PROVIDER,
2465
+ useClass: AXMMenuProvider,
2466
+ multi: true,
2467
+ },
2468
+ {
2469
+ provide: AXP_ENTITY_DEFINITION_LOADER,
2470
+ useClass: AXMEntityProvider,
2471
+ multi: true,
2472
+ },
2473
+ {
2474
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
2475
+ useClass: AXMSettingProvider,
2476
+ multi: true,
2477
+ },
2478
+ ],
2479
+ }]
2480
+ }] });
2481
+
2482
+ /**
2483
+ * Generated bundle index. Do not edit.
2484
+ */
2485
+
2486
+ export { AXMCaptureScreenService as A, RootConfig as R, AXMIssueTypeService as a, AXMIssueTypeServiceImpl as b, AXMMyReportedIssuesService as c, AXMMyReportedIssuesServiceImpl as d, AXMReportedIssuesService as e, AXMReportedIssuesServiceImpl as f, AXMEntityProvider as g, AXMIssueManagementModule as h, issueTypeEntityFactory as i, AXMMenuProvider as j, AXMSettingProvider as k, myReportedIssuesEntityFactory as m, reportedIssuesEntityFactory as r };
2487
+ //# sourceMappingURL=acorex-modules-issue-management-acorex-modules-issue-management-Q47ZZSSE.mjs.map