@acorex/modules 19.3.0 → 19.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/common/lib/common.module.d.ts +2 -1
  2. package/dashboard-management/index.d.ts +1 -0
  3. package/dashboard-management/lib/dashboard-management.module.d.ts +2 -2
  4. package/dashboard-management/lib/entities/dashboard/dashboard.types.d.ts +2 -2
  5. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +7 -7
  6. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +6 -6
  7. package/dashboard-management/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +3 -3
  8. package/dashboard-management/lib/features/home-dashboard/dashboard-popups/add-dashboard-popup.d.ts +3 -3
  9. package/dashboard-management/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +3 -3
  10. package/dashboard-management/lib/features/home-dashboard/dashboard-popups/dashboard-popup.service.d.ts +5 -5
  11. package/dashboard-management/lib/features/home-dashboard/widget-wrapper/dashboard-widget-wrapper.d.ts +4 -3
  12. package/dashboard-management/lib/features/shared/widgets/bar-chart/bar-chart-widget.component.d.ts +17 -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/index.d.ts +2 -0
  15. package/dashboard-management/lib/features/shared/widgets/chart.type.d.ts +3 -0
  16. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar-widget.component.d.ts +39 -0
  17. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar-widget.config.d.ts +7 -0
  18. package/dashboard-management/lib/features/shared/widgets/clock-calendar/clock-calendar.types.d.ts +50 -0
  19. package/dashboard-management/lib/features/shared/widgets/clock-calendar/index.d.ts +3 -0
  20. package/dashboard-management/lib/features/shared/widgets/dashboard-shortcut/index.d.ts +2 -0
  21. package/dashboard-management/lib/features/shared/widgets/donut-chart/donut-chart-widget.component.d.ts +17 -0
  22. package/dashboard-management/lib/features/shared/widgets/donut-chart/donut-chart-widget.config.d.ts +7 -0
  23. package/dashboard-management/lib/features/shared/widgets/donut-chart/index.d.ts +2 -0
  24. package/dashboard-management/lib/features/shared/widgets/gauge-chart/gauge-chart-widget.component.d.ts +16 -0
  25. package/dashboard-management/lib/features/shared/widgets/gauge-chart/gauge-chart-widget.config.d.ts +7 -0
  26. package/dashboard-management/lib/features/shared/widgets/gauge-chart/index.d.ts +2 -0
  27. package/dashboard-management/lib/features/shared/widgets/index.d.ts +9 -0
  28. package/dashboard-management/lib/features/shared/widgets/line-chart/index.d.ts +2 -0
  29. package/dashboard-management/lib/features/shared/widgets/line-chart/line-chart-widget.component.d.ts +17 -0
  30. package/dashboard-management/lib/features/shared/widgets/line-chart/line-chart-widget.config.d.ts +7 -0
  31. package/dashboard-management/lib/features/shared/widgets/sticky-note/index.d.ts +2 -0
  32. package/dashboard-management/lib/features/shared/widgets/sticky-note/sticky-note-widget.component.d.ts +21 -0
  33. package/dashboard-management/lib/features/shared/widgets/sticky-note/sticky-note-widget.config.d.ts +7 -0
  34. package/dashboard-management/lib/features/shared/widgets/tasklist/index.d.ts +3 -0
  35. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist-widget.component.d.ts +34 -0
  36. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist-widget.config.d.ts +7 -0
  37. package/dashboard-management/lib/features/shared/widgets/tasklist/tasklist.type.d.ts +36 -0
  38. package/dashboard-management/lib/features/shared/widgets/weather/index.d.ts +3 -0
  39. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/index.d.ts +3 -0
  40. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.abstract.d.ts +174 -0
  41. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.key.d.ts +2 -0
  42. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.mock.service.d.ts +47 -0
  43. package/dashboard-management/lib/features/shared/widgets/weather/weather-services/weather-api.service.d.ts +48 -0
  44. package/dashboard-management/lib/features/shared/widgets/weather/weather-widget.component.d.ts +109 -0
  45. package/dashboard-management/lib/features/shared/widgets/weather/weather-widget.config.d.ts +14 -0
  46. package/fesm2022/acorex-modules-application-management.mjs +2 -2
  47. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  48. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs → acorex-modules-auth-acorex-modules-auth-DJZcD1j3.mjs} +23 -83
  49. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DJZcD1j3.mjs.map +1 -0
  50. package/fesm2022/acorex-modules-auth-app-chooser.component-DlYxDGQr.mjs +65 -0
  51. package/fesm2022/acorex-modules-auth-app-chooser.component-DlYxDGQr.mjs.map +1 -0
  52. package/fesm2022/{acorex-modules-auth-login.module-TtdNj0aL.mjs → acorex-modules-auth-login.module-D-XgzifC.mjs} +4 -4
  53. package/fesm2022/{acorex-modules-auth-login.module-TtdNj0aL.mjs.map → acorex-modules-auth-login.module-D-XgzifC.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-auth-master.layout-CtVrY1hn.mjs → acorex-modules-auth-master.layout-ZaCb3CED.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-auth-master.layout-CtVrY1hn.mjs.map → acorex-modules-auth-master.layout-ZaCb3CED.mjs.map} +1 -1
  56. package/fesm2022/{acorex-modules-auth-password.component-Dmj9zZSI.mjs → acorex-modules-auth-password.component-C-xRIhrM.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-auth-password.component-Dmj9zZSI.mjs.map → acorex-modules-auth-password.component-C-xRIhrM.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-auth-password.component-BXm2NAaN.mjs → acorex-modules-auth-password.component-CLTZoufP.mjs} +2 -2
  59. package/fesm2022/{acorex-modules-auth-password.component-BXm2NAaN.mjs.map → acorex-modules-auth-password.component-CLTZoufP.mjs.map} +1 -1
  60. package/fesm2022/{acorex-modules-auth-routes-DkgsKi3a.mjs → acorex-modules-auth-routes-4T5jq7su.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-auth-routes-DkgsKi3a.mjs.map → acorex-modules-auth-routes-4T5jq7su.mjs.map} +1 -1
  62. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Ow7QtAWc.mjs +98 -0
  63. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Ow7QtAWc.mjs.map +1 -0
  64. package/fesm2022/{acorex-modules-auth-two-factor.module-DDOSqjYs.mjs → acorex-modules-auth-two-factor.module-D72KIpvA.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-auth-two-factor.module-DDOSqjYs.mjs.map → acorex-modules-auth-two-factor.module-D72KIpvA.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-auth-user-sessions.component-B3i44VC5.mjs → acorex-modules-auth-user-sessions.component-Btnu_Oeq.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-auth-user-sessions.component-B3i44VC5.mjs.map → acorex-modules-auth-user-sessions.component-Btnu_Oeq.mjs.map} +1 -1
  68. package/fesm2022/acorex-modules-auth.mjs +1 -1
  69. package/fesm2022/acorex-modules-common.mjs +3 -5
  70. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  71. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs +3755 -0
  72. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-VORBD1g-.mjs.map +1 -0
  73. package/fesm2022/{acorex-modules-dashboard-management-index-Br6L5KMu.mjs → acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs} +48 -47
  74. package/fesm2022/acorex-modules-dashboard-management-home-dashboard-DiPn_RhH.mjs.map +1 -0
  75. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  76. 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
  77. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Cv92x_9Z.mjs.map +1 -0
  78. package/fesm2022/{acorex-modules-form-template-management-category.entity-nErIyYxr.mjs → acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs} +2 -2
  79. package/fesm2022/{acorex-modules-form-template-management-category.entity-nErIyYxr.mjs.map → acorex-modules-form-template-management-category.entity-DPVwQW4X.mjs.map} +1 -1
  80. package/fesm2022/{acorex-modules-form-template-management-settings.provider-CROST06h.mjs → acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs} +2 -2
  81. package/fesm2022/{acorex-modules-form-template-management-settings.provider-CROST06h.mjs.map → acorex-modules-form-template-management-settings.provider-iwOUp0iw.mjs.map} +1 -1
  82. 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
  83. 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
  84. package/fesm2022/{acorex-modules-form-template-management-template.entity-HSE5R67l.mjs → acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs} +2 -2
  85. package/fesm2022/{acorex-modules-form-template-management-template.entity-HSE5R67l.mjs.map → acorex-modules-form-template-management-template.entity-NgmH7r8R.mjs.map} +1 -1
  86. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-pi15hXWY.mjs → acorex-modules-form-template-management-viewer-popup.component-Cq33xA62.mjs} +2 -2
  87. 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
  88. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  89. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-DhuDuKkz.mjs → acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs} +44 -43
  90. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-U5EJyG5e.mjs.map +1 -0
  91. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-XFV3kuzQ.mjs → acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs} +2 -2
  92. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-XFV3kuzQ.mjs.map → acorex-modules-issue-management-capture-screen.component-3ZAOJBfn.mjs.map} +1 -1
  93. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  94. package/fesm2022/acorex-modules-notification-management.mjs +623 -53
  95. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  96. package/fesm2022/{acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs → acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs} +3 -3
  97. package/fesm2022/acorex-modules-organization-management-org-chart.page-DnRbGIWN.mjs.map +1 -0
  98. package/fesm2022/acorex-modules-organization-management.mjs +2 -2
  99. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DHA8LTwL.mjs → acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs} +59 -6
  100. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-5lToZD6T.mjs.map +1 -0
  101. package/fesm2022/{acorex-modules-platform-management-list-version.component-DgDjbODD.mjs → acorex-modules-platform-management-list-version.component-BElZjmXr.mjs} +2 -2
  102. package/fesm2022/{acorex-modules-platform-management-list-version.component-DgDjbODD.mjs.map → acorex-modules-platform-management-list-version.component-BElZjmXr.mjs.map} +1 -1
  103. package/fesm2022/{acorex-modules-platform-management-settings.provider-W71pfOmi.mjs → acorex-modules-platform-management-settings.provider-CemrvnbH.mjs} +2 -2
  104. package/fesm2022/{acorex-modules-platform-management-settings.provider-W71pfOmi.mjs.map → acorex-modules-platform-management-settings.provider-CemrvnbH.mjs.map} +1 -1
  105. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  106. package/fesm2022/acorex-modules-project-management.mjs +218 -155
  107. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  108. package/fesm2022/acorex-modules-security-management.mjs +472 -787
  109. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  110. package/fesm2022/acorex-modules-training-management.mjs +5574 -0
  111. package/fesm2022/acorex-modules-training-management.mjs.map +1 -0
  112. package/notification-management/index.d.ts +1 -0
  113. package/notification-management/lib/entities/notification/notification.service.d.ts +6 -6
  114. package/notification-management/lib/features/components/admin-notification-panel/admin-notification-panel.component.d.ts +13 -7
  115. package/notification-management/lib/features/dashboard/widgets/my-notification/index.d.ts +2 -0
  116. package/notification-management/lib/features/dashboard/widgets/my-notification/notification-widget.component.d.ts +82 -0
  117. package/notification-management/lib/features/dashboard/widgets/my-notification/notification-widget.config.d.ts +5 -0
  118. package/notification-management/lib/features/shared/notification-connector.service.d.ts +57 -0
  119. package/notification-management/lib/notification-management.module.d.ts +2 -1
  120. package/notification-management/lib/notification-management.type.d.ts +3 -0
  121. package/package.json +5 -1
  122. package/security-management/lib/entities/index.d.ts +1 -2
  123. package/security-management/lib/entities/profile/index.d.ts +0 -1
  124. package/security-management/lib/entities/users/users.service.d.ts +2 -2
  125. package/security-management/lib/entities/users/users.types.d.ts +2 -2
  126. package/security-management/lib/user-avatar.provider.d.ts +5 -0
  127. package/training-management/README.md +3 -0
  128. package/training-management/index.d.ts +7 -0
  129. package/training-management/lib/const.d.ts +85 -0
  130. package/training-management/lib/entities/certificate/certificate.entity.d.ts +3 -0
  131. package/training-management/lib/entities/certificate/certificate.service.d.ts +10 -0
  132. package/training-management/lib/entities/certificate/certificate.types.d.ts +12 -0
  133. package/training-management/lib/entities/certificate/index.d.ts +3 -0
  134. package/training-management/lib/entities/course/course.entity.d.ts +3 -0
  135. package/training-management/lib/entities/course/course.service.d.ts +10 -0
  136. package/training-management/lib/entities/course/course.types.d.ts +8 -0
  137. package/training-management/lib/entities/course/index.d.ts +3 -0
  138. package/training-management/lib/entities/course-location/course-location.entity.d.ts +3 -0
  139. package/training-management/lib/entities/course-location/course-location.service.d.ts +10 -0
  140. package/training-management/lib/entities/course-location/course-location.types.d.ts +6 -0
  141. package/training-management/lib/entities/course-location/index.d.ts +3 -0
  142. package/training-management/lib/entities/course-period/course-period.entity.d.ts +3 -0
  143. package/training-management/lib/entities/course-period/course-period.service.d.ts +10 -0
  144. package/training-management/lib/entities/course-period/course-period.types.d.ts +6 -0
  145. package/training-management/lib/entities/course-period/index.d.ts +3 -0
  146. package/training-management/lib/entities/course-type/course-type.entity.d.ts +3 -0
  147. package/training-management/lib/entities/course-type/course-type.service.d.ts +10 -0
  148. package/training-management/lib/entities/course-type/course-type.types.d.ts +5 -0
  149. package/training-management/lib/entities/course-type/index.d.ts +3 -0
  150. package/training-management/lib/entities/facilitator-type/facilitator-type.entity.d.ts +3 -0
  151. package/training-management/lib/entities/facilitator-type/facilitator-type.service.d.ts +10 -0
  152. package/training-management/lib/entities/facilitator-type/facilitator-type.types.d.ts +6 -0
  153. package/training-management/lib/entities/facilitator-type/index.d.ts +3 -0
  154. package/training-management/lib/entities/index.d.ts +12 -0
  155. package/training-management/lib/entities/location/index.d.ts +3 -0
  156. package/training-management/lib/entities/location/location.entity.d.ts +3 -0
  157. package/training-management/lib/entities/location/location.service.d.ts +10 -0
  158. package/training-management/lib/entities/location/location.types.d.ts +7 -0
  159. package/training-management/lib/entities/period/index.d.ts +3 -0
  160. package/training-management/lib/entities/period/period.entity.d.ts +3 -0
  161. package/training-management/lib/entities/period/period.service.d.ts +10 -0
  162. package/training-management/lib/entities/period/period.types.d.ts +6 -0
  163. package/training-management/lib/entities/training/index.d.ts +3 -0
  164. package/training-management/lib/entities/training/training.entity.d.ts +3 -0
  165. package/training-management/lib/entities/training/training.service.d.ts +10 -0
  166. package/training-management/lib/entities/training/training.types.d.ts +13 -0
  167. package/training-management/lib/entities/training-facilitator/index.d.ts +3 -0
  168. package/training-management/lib/entities/training-facilitator/training-facilitator.entity.d.ts +3 -0
  169. package/training-management/lib/entities/training-facilitator/training-facilitator.service.d.ts +10 -0
  170. package/training-management/lib/entities/training-facilitator/training-facilitator.types.d.ts +7 -0
  171. package/training-management/lib/entities/training-participant/index.d.ts +3 -0
  172. package/training-management/lib/entities/training-participant/training-participant.entity.d.ts +3 -0
  173. package/training-management/lib/entities/training-participant/training-participant.service.d.ts +10 -0
  174. package/training-management/lib/entities/training-participant/training-participant.types.d.ts +7 -0
  175. package/training-management/lib/entities/training-type/index.d.ts +3 -0
  176. package/training-management/lib/entities/training-type/training-type.entity.d.ts +3 -0
  177. package/training-management/lib/entities/training-type/training-type.service.d.ts +10 -0
  178. package/training-management/lib/entities/training-type/training-type.types.d.ts +7 -0
  179. package/training-management/lib/entity.provider.d.ts +10 -0
  180. package/training-management/lib/menu.provider.d.ts +5 -0
  181. package/training-management/lib/permission-definition.provider.d.ts +4 -0
  182. package/training-management/lib/search-command.provider.d.ts +4 -0
  183. package/training-management/lib/setting.provider.d.ts +4 -0
  184. package/training-management/lib/training-management.module.d.ts +6 -0
  185. package/auth/lib/pages/account/avatar/avatar.component.d.ts +0 -20
  186. package/dashboard-management/lib/features/home-dashboard/home-dashboard.module.d.ts +0 -7
  187. package/fesm2022/acorex-modules-auth-acorex-modules-auth-B1HTJdsE.mjs.map +0 -1
  188. package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs +0 -64
  189. package/fesm2022/acorex-modules-auth-app-chooser.component-Ct-vco0y.mjs.map +0 -1
  190. package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs +0 -97
  191. package/fesm2022/acorex-modules-auth-tenant-chooser.component-D9C6LCjn.mjs.map +0 -1
  192. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-DuvWGfl1.mjs +0 -568
  193. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-DuvWGfl1.mjs.map +0 -1
  194. package/fesm2022/acorex-modules-dashboard-management-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs +0 -139
  195. package/fesm2022/acorex-modules-dashboard-management-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map +0 -1
  196. package/fesm2022/acorex-modules-dashboard-management-index-Br6L5KMu.mjs.map +0 -1
  197. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DO18V9JK.mjs.map +0 -1
  198. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-DhuDuKkz.mjs.map +0 -1
  199. package/fesm2022/acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs.map +0 -1
  200. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DHA8LTwL.mjs.map +0 -1
  201. package/security-management/lib/entities/profile/profile.service.d.ts +0 -13
  202. /package/dashboard-management/lib/features/{home-dashboard → shared}/widgets/dashboard-shortcut/dashboard-shortcut-widget-view.component.d.ts +0 -0
  203. /package/dashboard-management/lib/features/{home-dashboard → shared}/widgets/dashboard-shortcut/dashboard-shortcut-widget.config.d.ts +0 -0
  204. /package/dashboard-management/lib/{features/home-dashboard/setrting.keys.d.ts → settings.keys.d.ts} +0 -0
@@ -1,15 +1,16 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, NgModule, inject, Injector } from '@angular/core';
3
- import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
4
1
  import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
2
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
+ import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
4
+ import * as i0 from '@angular/core';
5
+ import { Injectable, NgModule, inject, Injector } from '@angular/core';
6
6
  import * as i1 from '@acorex/platform/workflow';
7
7
  import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
8
+ import { AXPSessionService, AXPPermissionDefinitionService } from '@acorex/platform/auth';
8
9
  import { AXDataSource } from '@acorex/components/common';
9
- import { AXPPermissionDefinitionService } from '@acorex/platform/auth';
10
10
  import { AXDialogService } from '@acorex/components/dialog';
11
11
  import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
12
12
  import { AXTranslationService } from '@acorex/core/translation';
13
+ import { AXP_USER_AVATAR_PROVIDER } from '@acorex/platform/layout/components';
13
14
 
14
15
  const config = {
15
16
  i18n: 'security-management',
@@ -48,59 +49,6 @@ const RootConfig = {
48
49
  },
49
50
  };
50
51
 
51
- class AXMSecurityManagementProfileEntityService {
52
- }
53
- class AXMSecurityManagementProfileEntityServiceImpl extends AXMSecurityManagementProfileEntityService {
54
- get() {
55
- return Promise.resolve({
56
- firstName: 'John',
57
- lastName: 'Doe',
58
- email: 'john.doe@example.com',
59
- phone: '123-456-7890',
60
- address: '123 Main St, Anytown, USA',
61
- city: 'Anytown',
62
- suburb: 'Downtown',
63
- });
64
- }
65
- update() {
66
- return Promise.resolve(null);
67
- }
68
- updateAvatar() {
69
- return Promise.resolve(null);
70
- }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
72
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl }); }
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl, decorators: [{
75
- type: Injectable
76
- }] });
77
-
78
- class AXMSecurityManagementRolesEntityService extends AXMEntityCrudServiceImpl {
79
- }
80
- class AXMSecurityManagementRolesEntityServiceImpl extends AXMSecurityManagementRolesEntityService {
81
- constructor() {
82
- super(`${RootConfig.module.name}.${RootConfig.entities.roles.name}`);
83
- }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
85
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl }); }
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, decorators: [{
88
- type: Injectable
89
- }], ctorParameters: () => [] });
90
-
91
- class AXMtUsersEntityService extends AXMEntityCrudServiceImpl {
92
- }
93
- class AXMUsersEntityServiceImpl extends AXMtUsersEntityService {
94
- constructor() {
95
- super(`${RootConfig.module.name}.${RootConfig.entities.users.name}`);
96
- }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
98
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl }); }
99
- }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl, decorators: [{
101
- type: Injectable
102
- }], ctorParameters: () => [] });
103
-
104
52
  class AXMDeviceSessionsService extends AXMEntityCrudServiceImpl {
105
53
  }
106
54
  class AXMDeviceSessionsServiceImpl extends AXMDeviceSessionsService {
@@ -663,6 +611,32 @@ var AXMSessionStatusTypes;
663
611
  AXMSessionStatusTypes["active"] = "active";
664
612
  })(AXMSessionStatusTypes || (AXMSessionStatusTypes = {}));
665
613
 
614
+ class AXMSecurityManagementRolesEntityService extends AXMEntityCrudServiceImpl {
615
+ }
616
+ class AXMSecurityManagementRolesEntityServiceImpl extends AXMSecurityManagementRolesEntityService {
617
+ constructor() {
618
+ super(`${RootConfig.module.name}.${RootConfig.entities.roles.name}`);
619
+ }
620
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
621
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl }); }
622
+ }
623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, decorators: [{
624
+ type: Injectable
625
+ }], ctorParameters: () => [] });
626
+
627
+ class AXMUsersEntityService extends AXMEntityCrudServiceImpl {
628
+ }
629
+ class AXMUsersEntityServiceImpl extends AXMUsersEntityService {
630
+ constructor() {
631
+ super(`${RootConfig.module.name}.${RootConfig.entities.users.name}`);
632
+ }
633
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
634
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl }); }
635
+ }
636
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUsersEntityServiceImpl, decorators: [{
637
+ type: Injectable
638
+ }], ctorParameters: () => [] });
639
+
666
640
  const key = 'security-management';
667
641
  var AXPSecurityManagementMenuKeys;
668
642
  (function (AXPSecurityManagementMenuKeys) {
@@ -768,38 +742,43 @@ class AXMMenuProvider {
768
742
  }
769
743
 
770
744
  async function factory$2(injector) {
771
- const dataService = injector.get(AXMSecurityManagementProfileEntityService);
745
+ const dataService = injector.get(AXMUsersEntityService);
746
+ const entityResolver = injector.get(AXPEntityResolver);
772
747
  const i18n = RootConfig.config.i18n;
773
748
  const entityDef = {
774
749
  module: RootConfig.module.name,
775
- name: RootConfig.entities.profile.name,
750
+ name: RootConfig.entities.users.name,
776
751
  source: '',
777
- title: RootConfig.entities.profile.title,
752
+ title: RootConfig.entities.users.title,
778
753
  formats: {
779
- individual: `t("profile", { scope: "${i18n}" })`,
780
- plural: RootConfig.entities.profile.title,
754
+ individual: `t("user", { scope: "${i18n}" })`,
755
+ plural: `t("users", { scope: "${i18n}" })`,
781
756
  },
782
757
  relatedEntities: [],
783
758
  groups: [
784
759
  {
785
760
  id: 'info',
786
- title: `t("profile", { scope: "${i18n}" })`,
787
- },
788
- {
789
- id: 'contact',
790
- title: `t("contactInformation", { scope: "${i18n}" })`,
761
+ title: `t("information", { scope: "${i18n}" })`,
791
762
  },
792
763
  {
793
- id: 'address',
794
- title: `t("addressInformation", { scope: "${i18n}" })`,
764
+ id: 'authorizations',
765
+ title: `t("authorizations", { scope: "${i18n}" })`,
795
766
  },
796
767
  ],
797
768
  properties: [
798
769
  {
799
- name: 'firstName',
800
- title: `t("firstName", { scope: "${i18n}" })`,
770
+ name: 'username',
771
+ title: `t("username", { scope: "${i18n}" })`,
801
772
  groupId: 'info',
802
773
  options: {
774
+ filter: {
775
+ advance: {
776
+ enabled: true,
777
+ },
778
+ inline: {
779
+ enabled: true,
780
+ },
781
+ },
803
782
  sort: {
804
783
  enabled: true,
805
784
  },
@@ -817,13 +796,18 @@ async function factory$2(injector) {
817
796
  ],
818
797
  },
819
798
  {
820
- name: 'lastName',
821
- title: `t("lastName", { scope: "${i18n}" })`,
799
+ name: 'firstName',
800
+ title: `t("firstName", { scope: "${i18n}" })`,
822
801
  groupId: 'info',
823
802
  options: {
824
803
  sort: {
825
804
  enabled: true,
826
805
  },
806
+ filter: {
807
+ advance: {
808
+ enabled: true,
809
+ },
810
+ },
827
811
  },
828
812
  schema: {
829
813
  dataType: 'string',
@@ -838,51 +822,50 @@ async function factory$2(injector) {
838
822
  ],
839
823
  },
840
824
  {
841
- name: 'email',
842
- title: `t("email", { scope: "${i18n}" })`,
843
- groupId: 'contact',
844
- options: {
845
- sort: {
846
- enabled: true,
847
- },
848
- },
825
+ name: 'lastName',
826
+ title: `t("lastName", { scope: "${i18n}" })`,
827
+ groupId: 'info',
849
828
  schema: {
850
829
  dataType: 'string',
851
830
  interface: {
852
- type: AXPWidgetsCatalog.contact,
853
- options: {
854
- type: 'email',
855
- hasLabel: false,
831
+ type: AXPWidgetsCatalog.text,
832
+ },
833
+ },
834
+ options: {
835
+ filter: {
836
+ advance: {
837
+ enabled: true,
856
838
  },
857
839
  },
840
+ sort: {
841
+ enabled: true,
842
+ },
858
843
  },
859
844
  validations: [
860
845
  {
861
846
  rule: 'required',
862
847
  },
863
- {
864
- rule: 'email',
865
- },
866
848
  ],
867
849
  },
868
850
  {
869
- name: 'phone',
870
- title: `t("phone", { scope: "${i18n}" })`,
871
- groupId: 'contact',
872
- options: {
873
- sort: {
874
- enabled: true,
875
- },
876
- },
851
+ name: 'nationalCode',
852
+ title: `t("nationalCode", { scope: "${i18n}" })`,
853
+ groupId: 'info',
877
854
  schema: {
878
855
  dataType: 'string',
879
856
  interface: {
880
- type: AXPWidgetsCatalog.contact,
881
- options: {
882
- type: 'phone',
883
- hasLabel: false,
857
+ type: AXPWidgetsCatalog.text,
858
+ },
859
+ },
860
+ options: {
861
+ filter: {
862
+ advance: {
863
+ enabled: true,
884
864
  },
885
865
  },
866
+ sort: {
867
+ enabled: true,
868
+ },
886
869
  },
887
870
  validations: [
888
871
  {
@@ -891,77 +874,126 @@ async function factory$2(injector) {
891
874
  ],
892
875
  },
893
876
  {
894
- name: 'address',
895
- title: `t("address", { scope: "${i18n}" })`,
896
- groupId: 'address',
897
- options: {
898
- sort: {
899
- enabled: true,
900
- },
901
- },
877
+ name: 'mobile',
878
+ title: `t("mobile", { scope: "${i18n}" })`,
879
+ groupId: 'info',
902
880
  schema: {
903
881
  dataType: 'string',
904
882
  interface: {
905
- type: AXPWidgetsCatalog.largeText,
883
+ type: AXPWidgetsCatalog.text,
884
+ options: {
885
+ hasLabel: false,
886
+ placeholder: ``,
887
+ },
906
888
  },
907
889
  },
908
- },
909
- {
910
- name: 'city',
911
- title: `t("city", { scope: "${i18n}" })`,
912
- groupId: 'address',
913
890
  options: {
891
+ filter: {
892
+ advance: {
893
+ enabled: true,
894
+ },
895
+ },
914
896
  sort: {
915
897
  enabled: true,
916
898
  },
917
899
  },
900
+ validations: [],
901
+ },
902
+ {
903
+ name: 'password',
904
+ title: `t("password", { scope: "${i18n}" })`,
905
+ groupId: 'authorizations',
918
906
  schema: {
919
907
  dataType: 'string',
920
908
  interface: {
921
909
  type: AXPWidgetsCatalog.text,
922
910
  },
923
911
  },
924
- },
925
- {
926
- name: 'suburb',
927
- title: `t("suburb", { scope: "${i18n}" })`,
928
- groupId: 'address',
929
912
  options: {
913
+ filter: {
914
+ advance: {
915
+ enabled: true,
916
+ },
917
+ },
930
918
  sort: {
931
919
  enabled: true,
932
920
  },
933
921
  },
922
+ },
923
+ {
924
+ name: 'roles',
925
+ title: `t("roles", { scope: "${i18n}" })`,
926
+ groupId: 'authorizations',
934
927
  schema: {
935
928
  dataType: 'string',
936
929
  interface: {
937
- type: AXPWidgetsCatalog.text,
930
+ type: AXPWidgetsCatalog.select,
931
+ options: {
932
+ triggers: [
933
+ {
934
+ event: "{{ events.context('lastName') }}",
935
+ action: `{{console.log(context.eval('lastName'))}}`,
936
+ },
937
+ ],
938
+ dataSource: new AXDataSource({
939
+ load: async () => {
940
+ const rolesEntity = await entityResolver.get(RootConfig.module.name, 'roles');
941
+ const roles = await (rolesEntity?.queries.list?.execute)({ skip: 0, take: 100 });
942
+ return roles;
943
+ },
944
+ pageSize: 100,
945
+ key: 'id',
946
+ }),
947
+ valueField: 'id',
948
+ textField: 'title',
949
+ multiple: true,
950
+ },
938
951
  },
939
952
  },
953
+ validations: [
954
+ {
955
+ rule: 'required',
956
+ },
957
+ ],
940
958
  },
941
959
  ],
942
- columns: [{ name: 'firstName' }, { name: 'lastName' }, { name: 'email' }, { name: 'phone' }],
960
+ columns: [
961
+ { name: 'username' },
962
+ { name: 'firstName' },
963
+ { name: 'lastName' },
964
+ { name: 'nationalCode' },
965
+ { name: 'mobile' },
966
+ ],
943
967
  commands: {
944
968
  create: {
945
- execute: async (data) => { },
969
+ execute: async (data) => {
970
+ console.log({ data });
971
+ const res = await dataService.insertOne(data);
972
+ return { id: res };
973
+ },
946
974
  },
947
975
  delete: {
948
- execute: async (id) => { },
976
+ execute: async (id) => {
977
+ return await dataService.deleteOne(id);
978
+ },
949
979
  },
950
980
  update: {
951
981
  execute: async (data) => {
952
- return await dataService.update(data.id, data);
982
+ return await dataService.updateOne(data.id, data);
953
983
  },
954
984
  },
955
985
  },
956
986
  queries: {
957
987
  byKey: {
958
988
  execute: async (id) => {
959
- return await dataService.get();
989
+ return await dataService.getOne(id);
960
990
  },
961
991
  type: AXPEntityQueryType.Single,
962
992
  },
963
993
  list: {
964
- execute: async (e) => { },
994
+ execute: async (e) => {
995
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
996
+ },
965
997
  type: AXPEntityQueryType.List,
966
998
  },
967
999
  },
@@ -973,15 +1005,12 @@ async function factory$2(injector) {
973
1005
  id: 'info',
974
1006
  },
975
1007
  {
976
- id: 'contact',
977
- },
978
- {
979
- id: 'address',
1008
+ id: 'authorizations',
980
1009
  },
981
1010
  ],
982
1011
  properties: [
983
1012
  {
984
- name: 'firstName',
1013
+ name: 'username',
985
1014
  layout: {
986
1015
  positions: {
987
1016
  lg: {
@@ -991,7 +1020,7 @@ async function factory$2(injector) {
991
1020
  },
992
1021
  },
993
1022
  {
994
- name: 'lastName',
1023
+ name: 'firstName',
995
1024
  layout: {
996
1025
  positions: {
997
1026
  lg: {
@@ -1001,7 +1030,7 @@ async function factory$2(injector) {
1001
1030
  },
1002
1031
  },
1003
1032
  {
1004
- name: 'email',
1033
+ name: 'lastName',
1005
1034
  layout: {
1006
1035
  positions: {
1007
1036
  lg: {
@@ -1011,7 +1040,7 @@ async function factory$2(injector) {
1011
1040
  },
1012
1041
  },
1013
1042
  {
1014
- name: 'phone',
1043
+ name: 'nationalCode',
1015
1044
  layout: {
1016
1045
  positions: {
1017
1046
  lg: {
@@ -1021,31 +1050,31 @@ async function factory$2(injector) {
1021
1050
  },
1022
1051
  },
1023
1052
  {
1024
- name: 'address',
1053
+ name: 'mobile',
1025
1054
  layout: {
1026
1055
  positions: {
1027
1056
  lg: {
1028
- colSpan: 12,
1057
+ colSpan: 6,
1029
1058
  },
1030
1059
  },
1031
1060
  },
1032
1061
  },
1033
1062
  {
1034
- name: 'city',
1063
+ name: 'roles',
1035
1064
  layout: {
1036
1065
  positions: {
1037
1066
  lg: {
1038
- colSpan: 6,
1067
+ colSpan: 12,
1039
1068
  },
1040
1069
  },
1041
1070
  },
1042
1071
  },
1043
1072
  {
1044
- name: 'suburb',
1073
+ name: 'password',
1045
1074
  layout: {
1046
1075
  positions: {
1047
1076
  lg: {
1048
- colSpan: 6,
1077
+ colSpan: 12,
1049
1078
  },
1050
1079
  },
1051
1080
  },
@@ -1058,15 +1087,12 @@ async function factory$2(injector) {
1058
1087
  id: 'info',
1059
1088
  },
1060
1089
  {
1061
- id: 'contact',
1062
- },
1063
- {
1064
- id: 'address',
1090
+ id: 'authorizations',
1065
1091
  },
1066
1092
  ],
1067
1093
  properties: [
1068
1094
  {
1069
- name: 'firstName',
1095
+ name: 'username',
1070
1096
  layout: {
1071
1097
  positions: {
1072
1098
  lg: {
@@ -1076,7 +1102,7 @@ async function factory$2(injector) {
1076
1102
  },
1077
1103
  },
1078
1104
  {
1079
- name: 'lastName',
1105
+ name: 'firstName',
1080
1106
  layout: {
1081
1107
  positions: {
1082
1108
  lg: {
@@ -1086,7 +1112,7 @@ async function factory$2(injector) {
1086
1112
  },
1087
1113
  },
1088
1114
  {
1089
- name: 'email',
1115
+ name: 'lastName',
1090
1116
  layout: {
1091
1117
  positions: {
1092
1118
  lg: {
@@ -1096,7 +1122,7 @@ async function factory$2(injector) {
1096
1122
  },
1097
1123
  },
1098
1124
  {
1099
- name: 'phone',
1125
+ name: 'nationalCode',
1100
1126
  layout: {
1101
1127
  positions: {
1102
1128
  lg: {
@@ -1106,31 +1132,31 @@ async function factory$2(injector) {
1106
1132
  },
1107
1133
  },
1108
1134
  {
1109
- name: 'address',
1135
+ name: 'mobile',
1110
1136
  layout: {
1111
1137
  positions: {
1112
1138
  lg: {
1113
- colSpan: 12,
1139
+ colSpan: 6,
1114
1140
  },
1115
1141
  },
1116
1142
  },
1117
1143
  },
1118
1144
  {
1119
- name: 'city',
1145
+ name: 'roles',
1120
1146
  layout: {
1121
1147
  positions: {
1122
1148
  lg: {
1123
- colSpan: 6,
1149
+ colSpan: 12,
1124
1150
  },
1125
1151
  },
1126
1152
  },
1127
1153
  },
1128
1154
  {
1129
- name: 'suburb',
1155
+ name: 'password',
1130
1156
  layout: {
1131
1157
  positions: {
1132
1158
  lg: {
1133
- colSpan: 6,
1159
+ colSpan: 12,
1134
1160
  },
1135
1161
  },
1136
1162
  },
@@ -1151,7 +1177,7 @@ async function factory$2(injector) {
1151
1177
  },
1152
1178
  },
1153
1179
  {
1154
- id: 'contact',
1180
+ id: 'authorizations',
1155
1181
  layout: {
1156
1182
  positions: {
1157
1183
  lg: {
@@ -1160,18 +1186,18 @@ async function factory$2(injector) {
1160
1186
  },
1161
1187
  },
1162
1188
  },
1189
+ ],
1190
+ properties: [
1163
1191
  {
1164
- id: 'address',
1192
+ name: 'username',
1165
1193
  layout: {
1166
1194
  positions: {
1167
1195
  lg: {
1168
- colSpan: 12,
1196
+ colSpan: 6,
1169
1197
  },
1170
1198
  },
1171
1199
  },
1172
1200
  },
1173
- ],
1174
- properties: [
1175
1201
  {
1176
1202
  name: 'firstName',
1177
1203
  layout: {
@@ -1193,7 +1219,7 @@ async function factory$2(injector) {
1193
1219
  },
1194
1220
  },
1195
1221
  {
1196
- name: 'email',
1222
+ name: 'nationalCode',
1197
1223
  layout: {
1198
1224
  positions: {
1199
1225
  lg: {
@@ -1203,7 +1229,7 @@ async function factory$2(injector) {
1203
1229
  },
1204
1230
  },
1205
1231
  {
1206
- name: 'phone',
1232
+ name: 'mobile',
1207
1233
  layout: {
1208
1234
  positions: {
1209
1235
  lg: {
@@ -1213,7 +1239,7 @@ async function factory$2(injector) {
1213
1239
  },
1214
1240
  },
1215
1241
  {
1216
- name: 'address',
1242
+ name: 'password',
1217
1243
  layout: {
1218
1244
  positions: {
1219
1245
  lg: {
@@ -1223,26 +1249,266 @@ async function factory$2(injector) {
1223
1249
  },
1224
1250
  },
1225
1251
  {
1226
- name: 'city',
1252
+ name: 'roles',
1227
1253
  layout: {
1228
1254
  positions: {
1229
1255
  lg: {
1230
- colSpan: 6,
1256
+ colSpan: 12,
1231
1257
  },
1232
1258
  },
1233
1259
  },
1234
1260
  },
1261
+ ],
1262
+ actions: [],
1263
+ },
1264
+ list: {
1265
+ actions: [
1235
1266
  {
1236
- name: 'suburb',
1237
- layout: {
1238
- positions: {
1239
- lg: {
1240
- colSpan: 6,
1241
- },
1242
- },
1243
- },
1267
+ title: `t("create", { scope: "common" })`,
1268
+ command: 'create-entity',
1269
+ priority: 'primary',
1270
+ type: 'create',
1271
+ scope: AXPEntityCommandScope.TypeLevel,
1272
+ },
1273
+ // {
1274
+ // title: `t("deleteItems", {scope: "common"})`,
1275
+ // command: 'delete-entity',
1276
+ // priority: 'primary',
1277
+ // type: 'delete',
1278
+ // scope: AXPEntityCommandScope.Selected,
1279
+ // },
1280
+ {
1281
+ title: `t("detail", {scope: "common"})`,
1282
+ command: 'open-entity',
1283
+ priority: 'secondary',
1284
+ type: 'view',
1285
+ scope: AXPEntityCommandScope.Individual,
1286
+ },
1287
+ // {
1288
+ // title: `t("delete", {scope: "common"})`,
1289
+ // command: 'delete-entity',
1290
+ // priority: 'secondary',
1291
+ // type: 'delete',
1292
+ // scope: AXPEntityCommandScope.Individual,
1293
+ // },
1294
+ ],
1295
+ views: [
1296
+ {
1297
+ name: 'all',
1298
+ title: `t("allItem", {scope: "common"})`,
1299
+ fixed: true,
1300
+ columns: [],
1301
+ conditions: [],
1302
+ sorts: [],
1303
+ },
1304
+ ],
1305
+ },
1306
+ },
1307
+ },
1308
+ };
1309
+ const x = entityDef.properties.find((x) => x.name === 'roles')?.schema.interface?.options;
1310
+ return entityDef;
1311
+ }
1312
+
1313
+ var users_entity = /*#__PURE__*/Object.freeze({
1314
+ __proto__: null,
1315
+ factory: factory$2
1316
+ });
1317
+
1318
+ class AXMSecurityManagementUsersEntityModule {
1319
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1320
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule }); }
1321
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, providers: [
1322
+ {
1323
+ provide: AXMUsersEntityService,
1324
+ useClass: AXMUsersEntityServiceImpl,
1325
+ },
1326
+ ] }); }
1327
+ }
1328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, decorators: [{
1329
+ type: NgModule,
1330
+ args: [{
1331
+ imports: [],
1332
+ exports: [],
1333
+ declarations: [],
1334
+ providers: [
1335
+ {
1336
+ provide: AXMUsersEntityService,
1337
+ useClass: AXMUsersEntityServiceImpl,
1244
1338
  },
1245
1339
  ],
1340
+ }]
1341
+ }] });
1342
+
1343
+ async function factory$1(injector) {
1344
+ const dataService = injector.get(AXMUsersEntityService);
1345
+ const sessionService = injector.get(AXPSessionService);
1346
+ const i18n = RootConfig.config.i18n;
1347
+ const entityDef = {
1348
+ module: RootConfig.module.name,
1349
+ name: RootConfig.entities.profile.name,
1350
+ source: '',
1351
+ title: RootConfig.entities.profile.title,
1352
+ formats: {
1353
+ individual: `t("profile", { scope: "${i18n}" })`,
1354
+ plural: RootConfig.entities.profile.title,
1355
+ },
1356
+ relatedEntities: [],
1357
+ groups: [
1358
+ {
1359
+ id: 'info',
1360
+ title: `t("profile", { scope: "${i18n}" })`,
1361
+ },
1362
+ {
1363
+ id: 'contact',
1364
+ title: `t("contactInformation", { scope: "${i18n}" })`,
1365
+ },
1366
+ {
1367
+ id: 'address',
1368
+ title: `t("addressInformation", { scope: "${i18n}" })`,
1369
+ },
1370
+ ],
1371
+ properties: [
1372
+ {
1373
+ name: 'id',
1374
+ title: `t("id", { scope: "${i18n}" })`,
1375
+ groupId: 'info',
1376
+ schema: {
1377
+ dataType: 'string',
1378
+ interface: {
1379
+ type: AXPWidgetsCatalog.text,
1380
+ options: { readOnly: true },
1381
+ },
1382
+ },
1383
+ },
1384
+ {
1385
+ name: 'username',
1386
+ title: `t("username", { scope: "${i18n}" })`,
1387
+ groupId: 'info',
1388
+ schema: {
1389
+ dataType: 'string',
1390
+ interface: {
1391
+ type: AXPWidgetsCatalog.text,
1392
+ },
1393
+ },
1394
+ validations: [{ rule: 'required' }],
1395
+ },
1396
+ {
1397
+ name: 'firstName',
1398
+ title: `t("firstName", { scope: "${i18n}" })`,
1399
+ groupId: 'info',
1400
+ schema: {
1401
+ dataType: 'string',
1402
+ interface: {
1403
+ type: AXPWidgetsCatalog.text,
1404
+ },
1405
+ },
1406
+ validations: [{ rule: 'required' }],
1407
+ },
1408
+ {
1409
+ name: 'lastName',
1410
+ title: `t("lastName", { scope: "${i18n}" })`,
1411
+ groupId: 'info',
1412
+ schema: {
1413
+ dataType: 'string',
1414
+ interface: {
1415
+ type: AXPWidgetsCatalog.text,
1416
+ },
1417
+ },
1418
+ validations: [{ rule: 'required' }],
1419
+ },
1420
+ {
1421
+ name: 'nationalCode',
1422
+ title: `t("nationalCode", { scope: "${i18n}" })`,
1423
+ groupId: 'info',
1424
+ schema: {
1425
+ dataType: 'string',
1426
+ interface: {
1427
+ type: AXPWidgetsCatalog.text,
1428
+ },
1429
+ },
1430
+ validations: [
1431
+ { rule: 'required' },
1432
+ { rule: 'minLength', options: { value: 10 } },
1433
+ { rule: 'maxLength', options: { value: 10 } },
1434
+ ],
1435
+ },
1436
+ {
1437
+ name: 'password',
1438
+ title: `t("password", { scope: "${i18n}" })`,
1439
+ groupId: 'info',
1440
+ schema: {
1441
+ dataType: 'string',
1442
+ interface: {
1443
+ type: AXPWidgetsCatalog.password,
1444
+ },
1445
+ },
1446
+ validations: [{ rule: 'required' }],
1447
+ },
1448
+ ],
1449
+ columns: [],
1450
+ commands: {
1451
+ create: {
1452
+ execute: async (data) => { },
1453
+ },
1454
+ delete: {
1455
+ execute: async (id) => { },
1456
+ },
1457
+ update: {
1458
+ execute: async (data) => {
1459
+ return await dataService.updateOne(data.id, data);
1460
+ },
1461
+ },
1462
+ },
1463
+ queries: {
1464
+ byKey: {
1465
+ execute: async () => {
1466
+ const userId = await sessionService.user?.id;
1467
+ const user = await dataService.getOne(userId);
1468
+ return user;
1469
+ },
1470
+ type: AXPEntityQueryType.Single,
1471
+ },
1472
+ list: {
1473
+ execute: async (e) => { },
1474
+ type: AXPEntityQueryType.List,
1475
+ },
1476
+ },
1477
+ interfaces: {
1478
+ master: {
1479
+ create: {
1480
+ sections: [{ id: 'info' }],
1481
+ properties: [
1482
+ { name: 'id' },
1483
+ { name: 'username' },
1484
+ { name: 'firstName' },
1485
+ { name: 'lastName' },
1486
+ { name: 'nationalCode' },
1487
+ { name: 'password' },
1488
+ ],
1489
+ },
1490
+ update: {
1491
+ sections: [{ id: 'info' }],
1492
+ properties: [
1493
+ { name: 'id' },
1494
+ { name: 'username' },
1495
+ { name: 'firstName' },
1496
+ { name: 'lastName' },
1497
+ { name: 'nationalCode' },
1498
+ { name: 'password' },
1499
+ ],
1500
+ },
1501
+ single: {
1502
+ title: '{{firstName}} {{lastName}}',
1503
+ sections: [{ id: 'info', layout: { positions: { lg: { colSpan: 12 } } } }],
1504
+ properties: [
1505
+ { name: 'id' },
1506
+ { name: 'username' },
1507
+ { name: 'firstName' },
1508
+ { name: 'lastName' },
1509
+ { name: 'nationalCode' },
1510
+ { name: 'password' },
1511
+ ],
1246
1512
  actions: [],
1247
1513
  },
1248
1514
  list: {
@@ -1295,18 +1561,13 @@ async function factory$2(injector) {
1295
1561
 
1296
1562
  var profile_entity = /*#__PURE__*/Object.freeze({
1297
1563
  __proto__: null,
1298
- factory: factory$2
1564
+ factory: factory$1
1299
1565
  });
1300
1566
 
1301
1567
  class AXMSecurityManagementProfileEntityModule {
1302
1568
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1303
1569
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule }); }
1304
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, providers: [
1305
- {
1306
- provide: AXMSecurityManagementProfileEntityService,
1307
- useClass: AXMSecurityManagementProfileEntityServiceImpl,
1308
- },
1309
- ] }); }
1570
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule }); }
1310
1571
  }
1311
1572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, decorators: [{
1312
1573
  type: NgModule,
@@ -1314,16 +1575,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1314
1575
  imports: [],
1315
1576
  exports: [],
1316
1577
  declarations: [],
1317
- providers: [
1318
- {
1319
- provide: AXMSecurityManagementProfileEntityService,
1320
- useClass: AXMSecurityManagementProfileEntityServiceImpl,
1321
- },
1322
- ],
1578
+ providers: [],
1323
1579
  }]
1324
1580
  }] });
1325
1581
 
1326
- async function factory$1(injector) {
1582
+ async function factory(injector) {
1327
1583
  const dataService = injector.get(AXMSecurityManagementRolesEntityService);
1328
1584
  const permissionService = injector.get(AXPPermissionDefinitionService);
1329
1585
  const i18n = RootConfig.config.i18n;
@@ -1719,7 +1975,7 @@ async function factory$1(injector) {
1719
1975
 
1720
1976
  var roles_entity = /*#__PURE__*/Object.freeze({
1721
1977
  __proto__: null,
1722
- factory: factory$1
1978
+ factory: factory
1723
1979
  });
1724
1980
 
1725
1981
  class AXMSecurityManagementRolesEntityModule {
@@ -1747,605 +2003,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1747
2003
  }]
1748
2004
  }] });
1749
2005
 
1750
- async function factory(injector) {
1751
- const dataService = injector.get(AXMtUsersEntityService);
1752
- const entityResolver = injector.get(AXPEntityResolver);
1753
- const i18n = RootConfig.config.i18n;
1754
- const entityDef = {
1755
- module: RootConfig.module.name,
1756
- name: RootConfig.entities.users.name,
1757
- source: '',
1758
- title: RootConfig.entities.users.title,
1759
- formats: {
1760
- individual: `t("user", { scope: "${i18n}" })`,
1761
- plural: `t("users", { scope: "${i18n}" })`,
1762
- },
1763
- relatedEntities: [],
1764
- groups: [
1765
- {
1766
- id: 'info',
1767
- title: `t("information", { scope: "${i18n}" })`,
1768
- },
1769
- {
1770
- id: 'authorizations',
1771
- title: `t("authorizations", { scope: "${i18n}" })`,
1772
- },
1773
- ],
1774
- properties: [
1775
- {
1776
- name: 'username',
1777
- title: `t("username", { scope: "${i18n}" })`,
1778
- groupId: 'info',
1779
- options: {
1780
- filter: {
1781
- advance: {
1782
- enabled: true,
1783
- },
1784
- inline: {
1785
- enabled: true,
1786
- },
1787
- },
1788
- sort: {
1789
- enabled: true,
1790
- },
1791
- },
1792
- schema: {
1793
- dataType: 'string',
1794
- interface: {
1795
- type: AXPWidgetsCatalog.text,
1796
- },
1797
- },
1798
- validations: [
1799
- {
1800
- rule: 'required',
1801
- },
1802
- ],
1803
- },
1804
- {
1805
- name: 'firstname',
1806
- title: `t("firstname", { scope: "${i18n}" })`,
1807
- groupId: 'info',
1808
- options: {
1809
- sort: {
1810
- enabled: true,
1811
- },
1812
- filter: {
1813
- advance: {
1814
- enabled: true,
1815
- },
1816
- },
1817
- },
1818
- schema: {
1819
- dataType: 'string',
1820
- interface: {
1821
- type: AXPWidgetsCatalog.text,
1822
- },
1823
- },
1824
- validations: [
1825
- {
1826
- rule: 'required',
1827
- },
1828
- ],
1829
- },
1830
- {
1831
- name: 'lastname',
1832
- title: `t("lastname", { scope: "${i18n}" })`,
1833
- groupId: 'info',
1834
- schema: {
1835
- dataType: 'string',
1836
- interface: {
1837
- type: AXPWidgetsCatalog.text,
1838
- },
1839
- },
1840
- options: {
1841
- filter: {
1842
- advance: {
1843
- enabled: true,
1844
- },
1845
- },
1846
- sort: {
1847
- enabled: true,
1848
- },
1849
- },
1850
- validations: [
1851
- {
1852
- rule: 'required',
1853
- },
1854
- ],
1855
- },
1856
- {
1857
- name: 'nationalCode',
1858
- title: `t("nationalCode", { scope: "${i18n}" })`,
1859
- groupId: 'info',
1860
- schema: {
1861
- dataType: 'string',
1862
- interface: {
1863
- type: AXPWidgetsCatalog.text,
1864
- },
1865
- },
1866
- options: {
1867
- filter: {
1868
- advance: {
1869
- enabled: true,
1870
- },
1871
- },
1872
- sort: {
1873
- enabled: true,
1874
- },
1875
- },
1876
- validations: [
1877
- {
1878
- rule: 'required',
1879
- },
1880
- ],
1881
- },
1882
- {
1883
- name: 'mobile',
1884
- title: `t("mobile", { scope: "${i18n}" })`,
1885
- groupId: 'info',
1886
- schema: {
1887
- dataType: 'string',
1888
- interface: {
1889
- type: AXPWidgetsCatalog.text,
1890
- options: {
1891
- hasLabel: false,
1892
- placeholder: ``,
1893
- },
1894
- },
1895
- },
1896
- options: {
1897
- filter: {
1898
- advance: {
1899
- enabled: true,
1900
- },
1901
- },
1902
- sort: {
1903
- enabled: true,
1904
- },
1905
- },
1906
- validations: [],
1907
- },
1908
- {
1909
- name: 'password',
1910
- title: `t("password", { scope: "${i18n}" })`,
1911
- groupId: 'authorizations',
1912
- schema: {
1913
- dataType: 'string',
1914
- interface: {
1915
- type: AXPWidgetsCatalog.text,
1916
- },
1917
- },
1918
- options: {
1919
- filter: {
1920
- advance: {
1921
- enabled: true,
1922
- },
1923
- },
1924
- sort: {
1925
- enabled: true,
1926
- },
1927
- },
1928
- },
1929
- {
1930
- name: 'roles',
1931
- title: `t("roles", { scope: "${i18n}" })`,
1932
- groupId: 'authorizations',
1933
- schema: {
1934
- dataType: 'string',
1935
- interface: {
1936
- type: AXPWidgetsCatalog.select,
1937
- options: {
1938
- triggers: [
1939
- {
1940
- event: "{{ events.context('lastname') }}",
1941
- action: `{{console.log(context.eval('lastname'))}}`,
1942
- },
1943
- ],
1944
- dataSource: new AXDataSource({
1945
- load: async () => {
1946
- const rolesEntity = await entityResolver.get(RootConfig.module.name, 'roles');
1947
- const roles = await (rolesEntity?.queries.list?.execute)({ skip: 0, take: 100 });
1948
- return roles;
1949
- },
1950
- pageSize: 100,
1951
- key: 'id',
1952
- }),
1953
- valueField: 'id',
1954
- textField: 'title',
1955
- multiple: true,
1956
- },
1957
- },
1958
- },
1959
- validations: [
1960
- {
1961
- rule: 'required',
1962
- },
1963
- ],
1964
- },
1965
- ],
1966
- columns: [
1967
- { name: 'username' },
1968
- { name: 'firstname' },
1969
- { name: 'lastname' },
1970
- { name: 'nationalCode' },
1971
- { name: 'mobile' },
1972
- ],
1973
- commands: {
1974
- create: {
1975
- execute: async (data) => {
1976
- console.log({ data });
1977
- const res = await dataService.insertOne(data);
1978
- return { id: res };
1979
- },
1980
- },
1981
- delete: {
1982
- execute: async (id) => {
1983
- return await dataService.deleteOne(id);
1984
- },
1985
- },
1986
- update: {
1987
- execute: async (data) => {
1988
- return await dataService.updateOne(data.id, data);
1989
- },
1990
- },
1991
- },
1992
- queries: {
1993
- byKey: {
1994
- execute: async (id) => {
1995
- return await dataService.getOne(id);
1996
- },
1997
- type: AXPEntityQueryType.Single,
1998
- },
1999
- list: {
2000
- execute: async (e) => {
2001
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2002
- },
2003
- type: AXPEntityQueryType.List,
2004
- },
2005
- },
2006
- interfaces: {
2007
- master: {
2008
- create: {
2009
- sections: [
2010
- {
2011
- id: 'info',
2012
- },
2013
- {
2014
- id: 'authorizations',
2015
- },
2016
- ],
2017
- properties: [
2018
- {
2019
- name: 'username',
2020
- layout: {
2021
- positions: {
2022
- lg: {
2023
- colSpan: 6,
2024
- },
2025
- },
2026
- },
2027
- },
2028
- {
2029
- name: 'firstname',
2030
- layout: {
2031
- positions: {
2032
- lg: {
2033
- colSpan: 6,
2034
- },
2035
- },
2036
- },
2037
- },
2038
- {
2039
- name: 'lastname',
2040
- layout: {
2041
- positions: {
2042
- lg: {
2043
- colSpan: 6,
2044
- },
2045
- },
2046
- },
2047
- },
2048
- {
2049
- name: 'nationalCode',
2050
- layout: {
2051
- positions: {
2052
- lg: {
2053
- colSpan: 6,
2054
- },
2055
- },
2056
- },
2057
- },
2058
- {
2059
- name: 'mobile',
2060
- layout: {
2061
- positions: {
2062
- lg: {
2063
- colSpan: 6,
2064
- },
2065
- },
2066
- },
2067
- },
2068
- {
2069
- name: 'roles',
2070
- layout: {
2071
- positions: {
2072
- lg: {
2073
- colSpan: 12,
2074
- },
2075
- },
2076
- },
2077
- },
2078
- {
2079
- name: 'password',
2080
- layout: {
2081
- positions: {
2082
- lg: {
2083
- colSpan: 12,
2084
- },
2085
- },
2086
- },
2087
- },
2088
- ],
2089
- },
2090
- update: {
2091
- sections: [
2092
- {
2093
- id: 'info',
2094
- },
2095
- {
2096
- id: 'authorizations',
2097
- },
2098
- ],
2099
- properties: [
2100
- {
2101
- name: 'username',
2102
- layout: {
2103
- positions: {
2104
- lg: {
2105
- colSpan: 6,
2106
- },
2107
- },
2108
- },
2109
- },
2110
- {
2111
- name: 'firstname',
2112
- layout: {
2113
- positions: {
2114
- lg: {
2115
- colSpan: 6,
2116
- },
2117
- },
2118
- },
2119
- },
2120
- {
2121
- name: 'lastname',
2122
- layout: {
2123
- positions: {
2124
- lg: {
2125
- colSpan: 6,
2126
- },
2127
- },
2128
- },
2129
- },
2130
- {
2131
- name: 'nationalCode',
2132
- layout: {
2133
- positions: {
2134
- lg: {
2135
- colSpan: 6,
2136
- },
2137
- },
2138
- },
2139
- },
2140
- {
2141
- name: 'mobile',
2142
- layout: {
2143
- positions: {
2144
- lg: {
2145
- colSpan: 6,
2146
- },
2147
- },
2148
- },
2149
- },
2150
- {
2151
- name: 'roles',
2152
- layout: {
2153
- positions: {
2154
- lg: {
2155
- colSpan: 12,
2156
- },
2157
- },
2158
- },
2159
- },
2160
- {
2161
- name: 'password',
2162
- layout: {
2163
- positions: {
2164
- lg: {
2165
- colSpan: 12,
2166
- },
2167
- },
2168
- },
2169
- },
2170
- ],
2171
- },
2172
- single: {
2173
- title: '{{firstname}} {{lastname}}',
2174
- sections: [
2175
- {
2176
- id: 'info',
2177
- layout: {
2178
- positions: {
2179
- lg: {
2180
- colSpan: 12,
2181
- },
2182
- },
2183
- },
2184
- },
2185
- {
2186
- id: 'authorizations',
2187
- layout: {
2188
- positions: {
2189
- lg: {
2190
- colSpan: 12,
2191
- },
2192
- },
2193
- },
2194
- },
2195
- ],
2196
- properties: [
2197
- {
2198
- name: 'username',
2199
- layout: {
2200
- positions: {
2201
- lg: {
2202
- colSpan: 6,
2203
- },
2204
- },
2205
- },
2206
- },
2207
- {
2208
- name: 'firstname',
2209
- layout: {
2210
- positions: {
2211
- lg: {
2212
- colSpan: 6,
2213
- },
2214
- },
2215
- },
2216
- },
2217
- {
2218
- name: 'lastname',
2219
- layout: {
2220
- positions: {
2221
- lg: {
2222
- colSpan: 6,
2223
- },
2224
- },
2225
- },
2226
- },
2227
- {
2228
- name: 'nationalCode',
2229
- layout: {
2230
- positions: {
2231
- lg: {
2232
- colSpan: 6,
2233
- },
2234
- },
2235
- },
2236
- },
2237
- {
2238
- name: 'mobile',
2239
- layout: {
2240
- positions: {
2241
- lg: {
2242
- colSpan: 6,
2243
- },
2244
- },
2245
- },
2246
- },
2247
- {
2248
- name: 'password',
2249
- layout: {
2250
- positions: {
2251
- lg: {
2252
- colSpan: 12,
2253
- },
2254
- },
2255
- },
2256
- },
2257
- {
2258
- name: 'roles',
2259
- layout: {
2260
- positions: {
2261
- lg: {
2262
- colSpan: 12,
2263
- },
2264
- },
2265
- },
2266
- },
2267
- ],
2268
- actions: [],
2269
- },
2270
- list: {
2271
- actions: [
2272
- {
2273
- title: `t("create", { scope: "common" })`,
2274
- command: 'create-entity',
2275
- priority: 'primary',
2276
- type: 'create',
2277
- scope: AXPEntityCommandScope.TypeLevel,
2278
- },
2279
- // {
2280
- // title: `t("deleteItems", {scope: "common"})`,
2281
- // command: 'delete-entity',
2282
- // priority: 'primary',
2283
- // type: 'delete',
2284
- // scope: AXPEntityCommandScope.Selected,
2285
- // },
2286
- {
2287
- title: `t("detail", {scope: "common"})`,
2288
- command: 'open-entity',
2289
- priority: 'secondary',
2290
- type: 'view',
2291
- scope: AXPEntityCommandScope.Individual,
2292
- },
2293
- // {
2294
- // title: `t("delete", {scope: "common"})`,
2295
- // command: 'delete-entity',
2296
- // priority: 'secondary',
2297
- // type: 'delete',
2298
- // scope: AXPEntityCommandScope.Individual,
2299
- // },
2300
- ],
2301
- views: [
2302
- {
2303
- name: 'all',
2304
- title: `t("allItem", {scope: "common"})`,
2305
- fixed: true,
2306
- columns: [],
2307
- conditions: [],
2308
- sorts: [],
2309
- },
2310
- ],
2311
- },
2312
- },
2313
- },
2314
- };
2315
- const x = entityDef.properties.find((x) => x.name === 'roles')?.schema.interface?.options;
2316
- return entityDef;
2317
- }
2318
-
2319
- var users_entity = /*#__PURE__*/Object.freeze({
2320
- __proto__: null,
2321
- factory: factory
2322
- });
2323
-
2324
- class AXMSecurityManagementUsersEntityModule {
2325
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2326
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule }); }
2327
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, providers: [
2328
- {
2329
- provide: AXMtUsersEntityService,
2330
- useClass: AXMUsersEntityServiceImpl,
2331
- },
2332
- ] }); }
2333
- }
2334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, decorators: [{
2335
- type: NgModule,
2336
- args: [{
2337
- imports: [],
2338
- exports: [],
2339
- declarations: [],
2340
- providers: [
2341
- {
2342
- provide: AXMtUsersEntityService,
2343
- useClass: AXMUsersEntityServiceImpl,
2344
- },
2345
- ],
2346
- }]
2347
- }] });
2348
-
2349
2006
  class AXMSearchCommandProvider extends AXPSearchCommandProvider {
2350
2007
  constructor() {
2351
2008
  super(...arguments);
@@ -2476,6 +2133,26 @@ const AXPSessionTerminateWorkflow = {
2476
2133
  },
2477
2134
  };
2478
2135
 
2136
+ class AXMUserAvatarProvider {
2137
+ constructor() {
2138
+ this.userService = inject(AXMUsersEntityService);
2139
+ }
2140
+ async provide(userId) {
2141
+ const user = await this.userService.getOne(userId);
2142
+ if (!user) {
2143
+ throw new Error(`User not found for ${userId}`);
2144
+ }
2145
+ return {
2146
+ id: user.id,
2147
+ username: user.username,
2148
+ firstName: user.firstName,
2149
+ lastName: user.lastName,
2150
+ status: 'online',
2151
+ avatarUrl: 'https://via.placeholder.com/150',
2152
+ };
2153
+ }
2154
+ }
2155
+
2479
2156
  class AXMSecurityManagementModule {
2480
2157
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2481
2158
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [AXMSecurityManagementDeviceSessionsEntityModule,
@@ -2498,6 +2175,10 @@ class AXMSecurityManagementModule {
2498
2175
  useClass: AXMSearchCommandProvider,
2499
2176
  multi: true,
2500
2177
  },
2178
+ {
2179
+ provide: AXP_USER_AVATAR_PROVIDER,
2180
+ useClass: AXMUserAvatarProvider,
2181
+ }
2501
2182
  ], imports: [AXMSecurityManagementDeviceSessionsEntityModule,
2502
2183
  AXMSecurityManagementProfileEntityModule,
2503
2184
  AXMSecurityManagementRolesEntityModule,
@@ -2548,6 +2229,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2548
2229
  useClass: AXMSearchCommandProvider,
2549
2230
  multi: true,
2550
2231
  },
2232
+ {
2233
+ provide: AXP_USER_AVATAR_PROVIDER,
2234
+ useClass: AXMUserAvatarProvider,
2235
+ }
2551
2236
  ],
2552
2237
  }]
2553
2238
  }] });
@@ -2556,5 +2241,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2556
2241
  * Generated bundle index. Do not edit.
2557
2242
  */
2558
2243
 
2559
- export { AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementProfileEntityService, AXMSecurityManagementProfileEntityServiceImpl, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMSessionStatusTypes, AXMUsersEntityServiceImpl, AXMtUsersEntityService, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory };
2244
+ export { AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMSessionStatusTypes, AXMUsersEntityService, AXMUsersEntityServiceImpl, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory };
2560
2245
  //# sourceMappingURL=acorex-modules-security-management.mjs.map