@acorex/modules 20.2.0-next.0 → 20.2.0-next.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 (138) hide show
  1. package/auth/index.d.ts +58 -4
  2. package/calendar-management/index.d.ts +47 -26
  3. package/conversation/README.md +1 -1
  4. package/conversation/index.d.ts +117 -71
  5. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs → acorex-modules-auth-acorex-modules-auth-BxqN76H7.mjs} +232 -84
  6. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BxqN76H7.mjs.map +1 -0
  7. package/fesm2022/{acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs → acorex-modules-auth-app-chooser.component-5FbgqbVo.mjs} +6 -4
  8. package/fesm2022/acorex-modules-auth-app-chooser.component-5FbgqbVo.mjs.map +1 -0
  9. package/fesm2022/{acorex-modules-auth-login.module-ZEX4NMuJ.mjs → acorex-modules-auth-login.module-CmMM4TpQ.mjs} +4 -4
  10. package/fesm2022/{acorex-modules-auth-login.module-ZEX4NMuJ.mjs.map → acorex-modules-auth-login.module-CmMM4TpQ.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-auth-master.layout-D-lIn4Pl.mjs → acorex-modules-auth-master.layout-eX5-7AeO.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-auth-master.layout-D-lIn4Pl.mjs.map → acorex-modules-auth-master.layout-eX5-7AeO.mjs.map} +1 -1
  13. package/fesm2022/acorex-modules-auth-oauth-callback.component-C9s-5c7F.mjs +97 -0
  14. package/fesm2022/acorex-modules-auth-oauth-callback.component-C9s-5c7F.mjs.map +1 -0
  15. package/fesm2022/{acorex-modules-auth-password.component-CafZfqKe.mjs → acorex-modules-auth-password.component-CDrYHh1x.mjs} +7 -7
  16. package/fesm2022/{acorex-modules-auth-password.component-CafZfqKe.mjs.map → acorex-modules-auth-password.component-CDrYHh1x.mjs.map} +1 -1
  17. package/fesm2022/acorex-modules-auth-password.component-r_Lh8oGN.mjs +226 -0
  18. package/fesm2022/acorex-modules-auth-password.component-r_Lh8oGN.mjs.map +1 -0
  19. package/fesm2022/{acorex-modules-auth-routes-D9-qfC3V.mjs → acorex-modules-auth-routes-CMdsDZud.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-auth-routes-D9-qfC3V.mjs.map → acorex-modules-auth-routes-CMdsDZud.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs → acorex-modules-auth-tenant-chooser.component-BdK5T-8X.mjs} +19 -10
  22. package/fesm2022/acorex-modules-auth-tenant-chooser.component-BdK5T-8X.mjs.map +1 -0
  23. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BglerlU-.mjs → acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs} +6 -6
  24. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BglerlU-.mjs.map → acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs.map} +1 -1
  25. package/fesm2022/{acorex-modules-auth-two-factor.module-D3N2XyOH.mjs → acorex-modules-auth-two-factor.module-YV9pDOnB.mjs} +3 -3
  26. package/fesm2022/{acorex-modules-auth-two-factor.module-D3N2XyOH.mjs.map → acorex-modules-auth-two-factor.module-YV9pDOnB.mjs.map} +1 -1
  27. package/fesm2022/acorex-modules-auth-user-sessions.component-KI9dYs78.mjs +135 -0
  28. package/fesm2022/acorex-modules-auth-user-sessions.component-KI9dYs78.mjs.map +1 -0
  29. package/fesm2022/acorex-modules-auth.mjs +1 -1
  30. package/fesm2022/acorex-modules-calendar-management.mjs +353 -315
  31. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  32. package/fesm2022/{acorex-modules-common-acorex-modules-common-DQESb8jf.mjs → acorex-modules-common-acorex-modules-common-D06CT4CO.mjs} +6 -16
  33. package/fesm2022/acorex-modules-common-acorex-modules-common-D06CT4CO.mjs.map +1 -0
  34. package/fesm2022/{acorex-modules-common-search-popup.component-CpFvcrxw.mjs → acorex-modules-common-search-popup.component-DbTj01Wz.mjs} +2 -2
  35. package/fesm2022/{acorex-modules-common-search-popup.component-CpFvcrxw.mjs.map → acorex-modules-common-search-popup.component-DbTj01Wz.mjs.map} +1 -1
  36. package/fesm2022/{acorex-modules-common-settings.provider-ha75F6g5.mjs → acorex-modules-common-settings.provider-DPVsF4c9.mjs} +2 -2
  37. package/fesm2022/{acorex-modules-common-settings.provider-ha75F6g5.mjs.map → acorex-modules-common-settings.provider-DPVsF4c9.mjs.map} +1 -1
  38. package/fesm2022/acorex-modules-common.mjs +1 -1
  39. package/fesm2022/acorex-modules-conversation.mjs +282 -204
  40. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  41. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  42. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  43. package/fesm2022/acorex-modules-data-management.mjs +3 -3
  44. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  45. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-B4Jd-KGV.mjs → acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs} +411 -51
  46. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs.map +1 -0
  47. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bp4kKjC4.mjs → acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs} +2 -2
  48. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bp4kKjC4.mjs.map → acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs.map} +1 -1
  49. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-12aUAucS.mjs → acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs} +4 -4
  50. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs.map +1 -0
  51. package/fesm2022/{acorex-modules-document-management-details-view.component-bzA7fJZW.mjs → acorex-modules-document-management-details-view.component-CzTg3hha.mjs} +2 -2
  52. package/fesm2022/{acorex-modules-document-management-details-view.component-bzA7fJZW.mjs.map → acorex-modules-document-management-details-view.component-CzTg3hha.mjs.map} +1 -1
  53. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DLJdJzp1.mjs → acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs} +5 -5
  54. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DLJdJzp1.mjs.map → acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs.map} +1 -1
  55. package/fesm2022/{acorex-modules-document-management-drive.component-DrkSd6Rv.mjs → acorex-modules-document-management-drive.component-TzRLr7rb.mjs} +7 -7
  56. package/fesm2022/{acorex-modules-document-management-drive.component-DrkSd6Rv.mjs.map → acorex-modules-document-management-drive.component-TzRLr7rb.mjs.map} +1 -1
  57. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DV8oWdDh.mjs → acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DV8oWdDh.mjs.map → acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Bgr9s_zf.mjs → acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Bgr9s_zf.mjs.map → acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-document-management-link-dialog.component-CSEIhT4P.mjs → acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs} +2 -2
  62. package/fesm2022/acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs.map +1 -0
  63. package/fesm2022/{acorex-modules-document-management-list-view.component-Dz6ymqrq.mjs → acorex-modules-document-management-list-view.component-CWGGArxw.mjs} +2 -2
  64. package/fesm2022/{acorex-modules-document-management-list-view.component-Dz6ymqrq.mjs.map → acorex-modules-document-management-list-view.component-CWGGArxw.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-DYJN-4Pe.mjs → acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs} +8 -9
  66. package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-CN7HVQLu.mjs → acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-CN7HVQLu.mjs.map → acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C_dsLLMb.mjs → acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs} +4 -4
  70. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C_dsLLMb.mjs.map → acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-document-management-share-dialog.component-CBrf7hjZ.mjs → acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs} +2 -2
  72. package/fesm2022/acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs.map +1 -0
  73. package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-D3WcHAOf.mjs → acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs} +2 -2
  74. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs.map +1 -0
  75. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-wvFkjOqg.mjs → acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs} +2 -2
  76. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-wvFkjOqg.mjs.map → acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs.map} +1 -1
  77. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C4ARGOZR.mjs → acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs} +2 -2
  78. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C4ARGOZR.mjs.map → acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs.map} +1 -1
  79. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  80. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-B8ZVc-0b.mjs → acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs} +3 -3
  81. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-B8ZVc-0b.mjs.map → acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs.map} +1 -1
  82. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-D1vapaJC.mjs → acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs} +2 -2
  83. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-D1vapaJC.mjs.map → acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs.map} +1 -1
  84. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  85. package/fesm2022/acorex-modules-notification-management.mjs +109 -28
  86. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  87. package/fesm2022/{acorex-modules-organization-management-add-item.component-DsDk5cyO.mjs → acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs} +2 -2
  88. package/fesm2022/acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs.map +1 -0
  89. package/fesm2022/acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs.map +1 -1
  90. package/fesm2022/acorex-modules-organization-management-department.entity-BxCyXNtv.mjs.map +1 -1
  91. package/fesm2022/acorex-modules-organization-management-division.entity-DzQT2jpz.mjs.map +1 -1
  92. package/fesm2022/acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs.map +1 -1
  93. package/fesm2022/acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs.map +1 -1
  94. package/fesm2022/{acorex-modules-organization-management-org-chart.page-DWQ-5NF_.mjs → acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs} +2 -2
  95. package/fesm2022/{acorex-modules-organization-management-org-chart.page-DWQ-5NF_.mjs.map → acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs.map} +1 -1
  96. package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs.map +1 -1
  97. package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs.map +1 -1
  98. package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs.map +1 -1
  99. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs.map +1 -1
  100. package/fesm2022/acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs.map +1 -1
  101. package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs.map +1 -1
  102. package/fesm2022/acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs.map +1 -1
  103. package/fesm2022/acorex-modules-organization-management-team.entity-DMCfAZsr.mjs.map +1 -1
  104. package/fesm2022/acorex-modules-organization-management.mjs +2 -2
  105. package/fesm2022/acorex-modules-platform-management.mjs +43 -19
  106. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  107. package/fesm2022/acorex-modules-project-management.mjs +48 -38
  108. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  109. package/fesm2022/{acorex-modules-report-management-report-create-root.component-DgouOz2M.mjs → acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs} +2 -2
  110. package/fesm2022/acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs.map +1 -0
  111. package/fesm2022/acorex-modules-report-management.mjs +1 -1
  112. package/fesm2022/acorex-modules-security-management.mjs +753 -217
  113. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  114. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-DnSdOSmj.mjs +213 -0
  115. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-DnSdOSmj.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-workflow-management-task-board.page-BoG_tFGn.mjs → acorex-modules-workflow-management-task-board.page-Bzu4j4VW.mjs} +21 -20
  117. package/fesm2022/acorex-modules-workflow-management-task-board.page-Bzu4j4VW.mjs.map +1 -0
  118. package/fesm2022/acorex-modules-workflow-management.mjs +1 -143
  119. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  120. package/notification-management/index.d.ts +69 -59
  121. package/package.json +9 -9
  122. package/security-management/index.d.ts +13 -4
  123. package/workflow-management/index.d.ts +11 -2
  124. package/fesm2022/acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs.map +0 -1
  125. package/fesm2022/acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs.map +0 -1
  126. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs +0 -134
  127. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs.map +0 -1
  128. package/fesm2022/acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs.map +0 -1
  129. package/fesm2022/acorex-modules-common-acorex-modules-common-DQESb8jf.mjs.map +0 -1
  130. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-B4Jd-KGV.mjs.map +0 -1
  131. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-12aUAucS.mjs.map +0 -1
  132. package/fesm2022/acorex-modules-document-management-link-dialog.component-CSEIhT4P.mjs.map +0 -1
  133. package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-DYJN-4Pe.mjs.map +0 -1
  134. package/fesm2022/acorex-modules-document-management-share-dialog.component-CBrf7hjZ.mjs.map +0 -1
  135. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-D3WcHAOf.mjs.map +0 -1
  136. package/fesm2022/acorex-modules-organization-management-add-item.component-DsDk5cyO.mjs.map +0 -1
  137. package/fesm2022/acorex-modules-report-management-report-create-root.component-DgouOz2M.mjs.map +0 -1
  138. package/fesm2022/acorex-modules-workflow-management-task-board.page-BoG_tFGn.mjs.map +0 -1
@@ -1,21 +1,22 @@
1
- import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, inject, Injector, NgModule, signal, input, output, computed, ViewEncapsulation, Component, ViewChild, effect, ChangeDetectionStrategy } from '@angular/core';
4
- import { AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
- import * as i1 from '@acorex/platform/workflow';
6
- import { AXPWorkflowAction, AXPWorkflowModule, createWorkFlowEvent, AXPWorkflowService } from '@acorex/platform/workflow';
7
- import { AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
8
- import { AXP_USER_AVATAR_PROVIDER, AXPThemeLayoutBlockComponent } from '@acorex/platform/layout/components';
1
+ import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
9
2
  import * as i2 from '@acorex/platform/layout/builder';
10
3
  import { AXPWidgetsCatalog, AXPWidgetGroupEnum, AXPLayoutBuilderModule, AXPValueWidgetComponent, AXPColumnWidgetComponent, AXPLayoutWidgetComponent } from '@acorex/platform/layout/builder';
4
+ import { AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl } from '@acorex/modules/auth';
5
+ import * as i0 from '@angular/core';
6
+ import { NgModule, Injectable, inject, Injector, signal, input, output, computed, ViewEncapsulation, Component, ViewChild, effect, ChangeDetectionStrategy } from '@angular/core';
7
+ import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
8
+ import * as i1 from '@acorex/platform/workflow';
9
+ import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule, AXPWorkflowService } from '@acorex/platform/workflow';
11
10
  import { AXPSessionService, AXPPermissionDefinitionService } from '@acorex/platform/auth';
12
11
  import { AXDataSource } from '@acorex/cdk/common';
13
- import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex/platform/widgets';
14
- import { AXPopupService } from '@acorex/components/popup';
15
- import * as i3$1 from '@acorex/core/translation';
16
- import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
17
12
  import { AXDialogService } from '@acorex/components/dialog';
18
13
  import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
14
+ import * as i3$1 from '@acorex/core/translation';
15
+ import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
16
+ import { AXP_USER_AVATAR_PROVIDER, AXPThemeLayoutBlockComponent } from '@acorex/platform/layout/components';
17
+ import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex/platform/widgets';
18
+ import { AXPopupService } from '@acorex/components/popup';
19
+ import { AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
19
20
  import * as i1$1 from '@angular/common';
20
21
  import { CommonModule } from '@angular/common';
21
22
  import { AXFormModule } from '@acorex/components/form';
@@ -71,8 +72,547 @@ const RootConfig = {
71
72
  title: `t("profile",{scope:"${config.i18n}"})`,
72
73
  icon: 'fa-light fa-user',
73
74
  },
74
- },
75
- };
75
+ },
76
+ };
77
+
78
+ async function factory$3(injector) {
79
+ const dataService = injector.get(AXMDeviceSessionsService);
80
+ const i18n = RootConfig.config.i18n;
81
+ const entityDef = {
82
+ module: RootConfig.module.name,
83
+ name: RootConfig.entities.deviceSessions.name,
84
+ source: '',
85
+ title: RootConfig.entities.deviceSessions.title,
86
+ formats: {
87
+ individual: RootConfig.entities.deviceSessions.title,
88
+ plural: RootConfig.entities.deviceSessions.titlePlural,
89
+ searchResult: {
90
+ title: '{{ title }}',
91
+ description: RootConfig.module.title,
92
+ },
93
+ },
94
+ relatedEntities: [],
95
+ groups: [
96
+ {
97
+ id: 'section',
98
+ title: RootConfig.entities.deviceSessions.title,
99
+ },
100
+ {
101
+ id: 'device',
102
+ title: `t('device', { scope: "${i18n}" })`,
103
+ },
104
+ {
105
+ id: 'session',
106
+ title: `t('session', { scope: "${i18n}" })`,
107
+ },
108
+ ],
109
+ properties: [
110
+ {
111
+ name: 'tenant.name',
112
+ title: `t('tenant', { scope: "${i18n}" })`,
113
+ groupId: 'section',
114
+ options: {
115
+ sort: {
116
+ enabled: true,
117
+ },
118
+ },
119
+ schema: {
120
+ dataType: 'string',
121
+ interface: {
122
+ type: AXPWidgetsCatalog.text,
123
+ },
124
+ },
125
+ validations: [
126
+ {
127
+ rule: 'required',
128
+ },
129
+ ],
130
+ },
131
+ {
132
+ name: 'user.name',
133
+ title: `t('user', { scope: "${i18n}" })`,
134
+ groupId: 'section',
135
+ options: {
136
+ sort: {
137
+ enabled: true,
138
+ },
139
+ },
140
+ schema: {
141
+ dataType: 'string',
142
+ interface: {
143
+ type: AXPWidgetsCatalog.text,
144
+ },
145
+ },
146
+ validations: [
147
+ {
148
+ rule: 'required',
149
+ },
150
+ ],
151
+ },
152
+ {
153
+ name: 'application.name',
154
+ title: `t('application', { scope: "${i18n}" })`,
155
+ groupId: 'section',
156
+ options: {
157
+ sort: {
158
+ enabled: true,
159
+ },
160
+ },
161
+ schema: {
162
+ dataType: 'string',
163
+ interface: {
164
+ type: AXPWidgetsCatalog.text,
165
+ },
166
+ },
167
+ validations: [
168
+ {
169
+ rule: 'required',
170
+ },
171
+ ],
172
+ },
173
+ {
174
+ name: 'clientName',
175
+ title: `t('clientName', { scope: "${i18n}" })`,
176
+ groupId: 'section',
177
+ options: {
178
+ sort: {
179
+ enabled: true,
180
+ },
181
+ },
182
+ schema: {
183
+ dataType: 'string',
184
+ interface: {
185
+ type: AXPWidgetsCatalog.text,
186
+ },
187
+ },
188
+ validations: [
189
+ {
190
+ rule: 'required',
191
+ },
192
+ ],
193
+ },
194
+ {
195
+ name: 'location',
196
+ title: `t('location', { scope: "${i18n}" })`,
197
+ groupId: 'device',
198
+ options: {
199
+ sort: {
200
+ enabled: true,
201
+ },
202
+ },
203
+ schema: {
204
+ dataType: 'string',
205
+ interface: {
206
+ type: AXPWidgetsCatalog.text,
207
+ },
208
+ },
209
+ validations: [
210
+ {
211
+ rule: 'required',
212
+ },
213
+ ],
214
+ },
215
+ {
216
+ name: 'ipAddress',
217
+ title: `t('ipAddress', { scope: "${i18n}" })`,
218
+ groupId: 'device',
219
+ options: {
220
+ sort: {
221
+ enabled: true,
222
+ },
223
+ },
224
+ schema: {
225
+ dataType: 'string',
226
+ interface: {
227
+ type: AXPWidgetsCatalog.text,
228
+ },
229
+ },
230
+ validations: [
231
+ {
232
+ rule: 'required',
233
+ },
234
+ ],
235
+ },
236
+ {
237
+ name: 'lastLoginDate',
238
+ title: `t('lastLoginDate', { scope: "${i18n}" })`,
239
+ groupId: 'session',
240
+ options: {
241
+ sort: {
242
+ enabled: true,
243
+ },
244
+ },
245
+ schema: {
246
+ dataType: 'dateTime',
247
+ interface: {
248
+ type: AXPWidgetsCatalog.dateTime,
249
+ options: {
250
+ format: 'MM/DD/YYYY hh:mm a',
251
+ },
252
+ },
253
+ },
254
+ validations: [
255
+ {
256
+ rule: 'required',
257
+ },
258
+ ],
259
+ },
260
+ {
261
+ name: 'operatingSystem',
262
+ title: `t('operatingSystem', { scope: "${i18n}" })`,
263
+ groupId: 'device',
264
+ options: {
265
+ sort: {
266
+ enabled: true,
267
+ },
268
+ },
269
+ schema: {
270
+ dataType: 'string',
271
+ interface: {
272
+ type: AXPWidgetsCatalog.text,
273
+ },
274
+ },
275
+ validations: [
276
+ {
277
+ rule: 'required',
278
+ },
279
+ ],
280
+ },
281
+ {
282
+ name: 'deviceName',
283
+ title: `t('deviceName', { scope: "${i18n}" })`,
284
+ groupId: 'device',
285
+ options: {
286
+ sort: {
287
+ enabled: true,
288
+ },
289
+ },
290
+ schema: {
291
+ dataType: 'string',
292
+ interface: {
293
+ type: AXPWidgetsCatalog.text,
294
+ },
295
+ },
296
+ validations: [
297
+ {
298
+ rule: 'required',
299
+ },
300
+ ],
301
+ },
302
+ ],
303
+ columns: [
304
+ { name: 'tenant.name' },
305
+ { name: 'user.name' },
306
+ { name: 'application.name' },
307
+ { name: 'clientName' },
308
+ { name: 'location' },
309
+ { name: 'deviceName' },
310
+ { name: 'lastLoginDate' },
311
+ { name: 'operatingSystem' },
312
+ ],
313
+ commands: {
314
+ create: {
315
+ execute: async (data) => {
316
+ const res = await dataService.insertOne(data);
317
+ return { id: res };
318
+ },
319
+ },
320
+ delete: {
321
+ execute: async (id) => {
322
+ return await dataService.deleteOne(id);
323
+ },
324
+ },
325
+ update: {
326
+ execute: async (data) => {
327
+ return await dataService.updateOne(data.id, data);
328
+ },
329
+ },
330
+ terminate: {
331
+ execute: async (id) => {
332
+ const x = await dataService.terminate(id);
333
+ return x;
334
+ },
335
+ },
336
+ },
337
+ queries: {
338
+ byKey: {
339
+ execute: async (id) => {
340
+ return await dataService.getOne(id);
341
+ },
342
+ type: AXPEntityQueryType.Single,
343
+ },
344
+ list: {
345
+ execute: async (e) => {
346
+ const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
347
+ console.log('res', res);
348
+ return res;
349
+ },
350
+ type: AXPEntityQueryType.List,
351
+ },
352
+ },
353
+ interfaces: {
354
+ master: {
355
+ create: {
356
+ sections: [
357
+ {
358
+ id: 'section',
359
+ },
360
+ ],
361
+ properties: [
362
+ {
363
+ name: 'clientName',
364
+ layout: {
365
+ positions: {
366
+ lg: {
367
+ colSpan: 6,
368
+ },
369
+ },
370
+ },
371
+ },
372
+ {
373
+ name: 'title',
374
+ layout: {
375
+ positions: {
376
+ lg: {
377
+ colSpan: 6,
378
+ },
379
+ },
380
+ },
381
+ },
382
+ ],
383
+ },
384
+ update: {
385
+ sections: [
386
+ {
387
+ id: 'section',
388
+ },
389
+ ],
390
+ properties: [
391
+ {
392
+ name: 'ClientName',
393
+ layout: {
394
+ positions: {
395
+ lg: {
396
+ colSpan: 6,
397
+ },
398
+ },
399
+ },
400
+ },
401
+ {
402
+ name: 'title',
403
+ layout: {
404
+ positions: {
405
+ lg: {
406
+ colSpan: 6,
407
+ },
408
+ },
409
+ },
410
+ },
411
+ ],
412
+ },
413
+ single: {
414
+ title: '{{user.name}}',
415
+ sections: [
416
+ {
417
+ id: 'session',
418
+ layout: {
419
+ positions: {
420
+ lg: {
421
+ colSpan: 12,
422
+ },
423
+ },
424
+ },
425
+ },
426
+ {
427
+ id: 'section',
428
+ layout: {
429
+ positions: {
430
+ lg: {
431
+ colSpan: 12,
432
+ },
433
+ },
434
+ },
435
+ },
436
+ {
437
+ id: 'device',
438
+ layout: {
439
+ positions: {
440
+ lg: {
441
+ colSpan: 12,
442
+ },
443
+ },
444
+ },
445
+ },
446
+ ],
447
+ properties: [
448
+ {
449
+ name: 'tenant.name',
450
+ layout: {
451
+ positions: {
452
+ lg: {
453
+ colSpan: 6,
454
+ },
455
+ },
456
+ },
457
+ },
458
+ {
459
+ name: 'user.name',
460
+ layout: {
461
+ positions: {
462
+ lg: {
463
+ colSpan: 6,
464
+ },
465
+ },
466
+ },
467
+ },
468
+ {
469
+ name: 'application.name',
470
+ layout: {
471
+ positions: {
472
+ lg: {
473
+ colSpan: 6,
474
+ },
475
+ },
476
+ },
477
+ },
478
+ {
479
+ name: 'clientName',
480
+ layout: {
481
+ positions: {
482
+ lg: {
483
+ colSpan: 6,
484
+ },
485
+ },
486
+ },
487
+ },
488
+ {
489
+ name: 'location',
490
+ layout: {
491
+ positions: {
492
+ lg: {
493
+ colSpan: 6,
494
+ },
495
+ },
496
+ },
497
+ },
498
+ {
499
+ name: 'ipAddress',
500
+ layout: {
501
+ positions: {
502
+ lg: {
503
+ colSpan: 6,
504
+ },
505
+ },
506
+ },
507
+ },
508
+ {
509
+ name: 'lastLoginDate',
510
+ layout: {
511
+ positions: {
512
+ lg: {
513
+ colSpan: 6,
514
+ },
515
+ },
516
+ },
517
+ },
518
+ {
519
+ name: 'operatingSystem',
520
+ layout: {
521
+ positions: {
522
+ lg: {
523
+ colSpan: 6,
524
+ },
525
+ },
526
+ },
527
+ },
528
+ {
529
+ name: 'deviceName',
530
+ layout: {
531
+ positions: {
532
+ lg: {
533
+ colSpan: 6,
534
+ },
535
+ },
536
+ },
537
+ },
538
+ ],
539
+ actions: [],
540
+ },
541
+ list: {
542
+ actions: [
543
+ // {
544
+ // title: `t("create", { scope: "common" })`,
545
+ // command: 'create-entity',
546
+ // priority: 'primary',
547
+ // type: 'create',
548
+ // scope: AXPEntityCommandScope.TypeLevel,
549
+ // },
550
+ // {
551
+ // title: 't("deleteItems", { scope: "common" })',
552
+ // command: 'delete-entity',
553
+ // priority: 'primary',
554
+ // type: 'delete',
555
+ // scope: AXPEntityCommandScope.Selected,
556
+ // },
557
+ {
558
+ title: 't("terminate.Selected", { scope: "common" })',
559
+ command: 'terminate-entity',
560
+ priority: 'primary',
561
+ type: 'delete',
562
+ scope: AXPEntityCommandScope.Selected,
563
+ },
564
+ {
565
+ title: 't("detail", { scope: "common" })',
566
+ command: 'open-entity',
567
+ priority: 'secondary',
568
+ type: 'view',
569
+ scope: AXPEntityCommandScope.Individual,
570
+ },
571
+ {
572
+ title: 't("terminate", { scope: "common" })',
573
+ command: 'terminate-entity',
574
+ priority: 'secondary',
575
+ type: 'delete',
576
+ scope: AXPEntityCommandScope.Individual,
577
+ },
578
+ ],
579
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
580
+ },
581
+ },
582
+ },
583
+ };
584
+ return entityDef;
585
+ }
586
+
587
+ var deviceSessions_entity = /*#__PURE__*/Object.freeze({
588
+ __proto__: null,
589
+ factory: factory$3
590
+ });
591
+
592
+ class AXMSecurityManagementDeviceSessionsEntityModule {
593
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
594
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule }); }
595
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, providers: [
596
+ {
597
+ provide: AXMDeviceSessionsService,
598
+ useClass: AXMDeviceSessionsServiceImpl,
599
+ },
600
+ ] }); }
601
+ }
602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, decorators: [{
603
+ type: NgModule,
604
+ args: [{
605
+ imports: [],
606
+ exports: [],
607
+ declarations: [],
608
+ providers: [
609
+ {
610
+ provide: AXMDeviceSessionsService,
611
+ useClass: AXMDeviceSessionsServiceImpl,
612
+ },
613
+ ],
614
+ }]
615
+ }] });
76
616
 
77
617
  class AXMSecurityManagementRolesEntityService extends AXMEntityCrudServiceImpl {
78
618
  }
@@ -100,8 +640,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
100
640
  type: Injectable
101
641
  }], ctorParameters: () => [] });
102
642
 
103
- // export * from './device-sessions';
104
-
105
643
  const key = 'security-management';
106
644
  var AXPSecurityManagementMenuKeys;
107
645
  (function (AXPSecurityManagementMenuKeys) {
@@ -129,8 +667,8 @@ class AXMEntityProvider {
129
667
  return (await Promise.resolve().then(function () { return roles_entity; })).factory(this.injector);
130
668
  case RootConfig.entities.profile.name:
131
669
  return (await Promise.resolve().then(function () { return profile_entity; })).factory(this.injector);
132
- // case RootConfig.entities.deviceSessions.name:
133
- // return (await import('./entities/device-sessions/device-sessions.entity')).factory(this.injector);
670
+ case RootConfig.entities.deviceSessions.name:
671
+ return (await Promise.resolve().then(function () { return deviceSessions_entity; })).factory(this.injector);
134
672
  }
135
673
  }
136
674
  return null;
@@ -179,16 +717,16 @@ class AXMMenuProvider {
179
717
  // requiredPermission: 'demo.admin.settings',
180
718
  },
181
719
  },
182
- // {
183
- // priority: 9005,
184
- // text: `t('deviceSessions', { scope: "${scope}" })`,
185
- // path: this.entityService.createPath(moduleName, RootConfig.entities.deviceSessions.name),
186
- // icon: 'fa-light fa-key',
187
- // name: AXPSecurityManagementMenuKeys.DeviceSessions,
188
- // data: {
189
- // // requiredPermission: 'demo.admin.settings',
190
- // },
191
- // },
720
+ {
721
+ priority: 9005,
722
+ text: `t('deviceSessions', { scope: "${scope}" })`,
723
+ path: this.entityService.createPath(moduleName, RootConfig.entities.deviceSessions.name),
724
+ icon: 'fa-light fa-key',
725
+ name: AXPSecurityManagementMenuKeys.DeviceSessions,
726
+ data: {
727
+ // requiredPermission: 'demo.admin.settings',
728
+ },
729
+ },
192
730
  ],
193
731
  },
194
732
  ]);
@@ -1424,39 +1962,189 @@ async function factory(injector) {
1424
1962
  },
1425
1963
  },
1426
1964
  },
1427
- };
1428
- return entityDef;
1429
- }
1430
-
1431
- var roles_entity = /*#__PURE__*/Object.freeze({
1432
- __proto__: null,
1433
- factory: factory
1434
- });
1965
+ };
1966
+ return entityDef;
1967
+ }
1968
+
1969
+ var roles_entity = /*#__PURE__*/Object.freeze({
1970
+ __proto__: null,
1971
+ factory: factory
1972
+ });
1973
+
1974
+ class AXMSecurityManagementRolesEntityModule {
1975
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1976
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule }); }
1977
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, providers: [
1978
+ {
1979
+ provide: AXMSecurityManagementRolesEntityService,
1980
+ useClass: AXMSecurityManagementRolesEntityServiceImpl,
1981
+ },
1982
+ ] }); }
1983
+ }
1984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, decorators: [{
1985
+ type: NgModule,
1986
+ args: [{
1987
+ imports: [],
1988
+ exports: [],
1989
+ declarations: [],
1990
+ providers: [
1991
+ {
1992
+ provide: AXMSecurityManagementRolesEntityService,
1993
+ useClass: AXMSecurityManagementRolesEntityServiceImpl,
1994
+ },
1995
+ ],
1996
+ }]
1997
+ }] });
1998
+
1999
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
2000
+ constructor() {
2001
+ super(...arguments);
2002
+ this.commands = [
2003
+ {
2004
+ id: 'create-security-user',
2005
+ group: 'command',
2006
+ title: 'New User',
2007
+ icon: RootConfig.entities.users.icon,
2008
+ description: 'Create a new user entity in the system.', // Added meaningful description
2009
+ command: {
2010
+ // 'create-entity': {
2011
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`,
2012
+ // },
2013
+ name: 'create-entity',
2014
+ options: {
2015
+ entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`
2016
+ }
2017
+ },
2018
+ },
2019
+ {
2020
+ id: 'create-security-role',
2021
+ group: 'command',
2022
+ title: 'New Security Role',
2023
+ icon: RootConfig.entities.roles.icon,
2024
+ description: 'Define a new security role to manage permissions.', // Added meaningful description
2025
+ command: {
2026
+ // 'create-entity': {
2027
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
2028
+ // },
2029
+ name: 'create-entity',
2030
+ options: {
2031
+ entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
2032
+ }
2033
+ },
2034
+ },
2035
+ ];
2036
+ }
2037
+ }
2038
+
2039
+ const AXPSessionTerminateEvent = createWorkFlowEvent('[Entity] Terminated!');
2040
+ class AXPSessionTerminatePopupAction extends AXPWorkflowAction {
2041
+ constructor() {
2042
+ super(...arguments);
2043
+ this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
2044
+ this.dialogService = inject(AXDialogService);
2045
+ this.loadingDialog = inject(AXLoadingDialogService);
2046
+ this.translationService = inject(AXTranslationService);
2047
+ }
2048
+ async execute(context) {
2049
+ const moduleEntity = context.getVariable('entity');
2050
+ const [moduleName, entityName] = moduleEntity.split('.');
2051
+ const data = context.getVariable('data');
2052
+ const meta = context.getVariable('meta');
2053
+ const ids = Array.isArray(data) ? data.map((c) => c.id) : [data.id];
2054
+ const entity = await this.entityRegistery.resolve(moduleName, entityName);
2055
+ if (entity.parentKey && data[entity.parentKey]) {
2056
+ context.setVariable('meta', { ...meta, refreshTargetId: data[entity.parentKey] });
2057
+ }
2058
+ context.setVariable('terminateSuccessful', false);
2059
+ const dialog = this.loadingDialog.show({
2060
+ title: await this.translationService.translateAsync('workflow.terminating'),
2061
+ mode: 'determinate',
2062
+ status: 'Terminating...',
2063
+ progressValue: 0,
2064
+ text: `0/${ids.length}`,
2065
+ buttons: [
2066
+ {
2067
+ text: await this.translationService.translateAsync('cancel'),
2068
+ color: 'danger',
2069
+ onClick: () => {
2070
+ dialog.close();
2071
+ },
2072
+ },
2073
+ ],
2074
+ });
2075
+ if (entity.commands.terminate != null) {
2076
+ const terminateExec = entity.commands.terminate?.execute;
2077
+ let faildCounter = 0;
2078
+ for (const element of ids) {
2079
+ const res = await terminateExec(element);
2080
+ if (!res) {
2081
+ faildCounter++;
2082
+ await this.dialogService.alert(await this.translationService.translateAsync('workflow.fail-delete-title'), await this.translationService.translateAsync('workflow.fail-delete-body', {
2083
+ params: { item: 1 },
2084
+ }), 'danger');
2085
+ }
2086
+ }
2087
+ context.setOutput('result', faildCounter == 0 ? true : false);
2088
+ setTimeout(() => {
2089
+ dialog.close();
2090
+ this.dispatch(AXPRefreshEvent({ entity: moduleEntity, meta: context.getVariable('meta') }));
2091
+ }, 300);
2092
+ }
2093
+ }
2094
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2095
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction }); }
2096
+ }
2097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction, decorators: [{
2098
+ type: Injectable
2099
+ }] });
2100
+ const AXPSessionTerminateWorkflow = {
2101
+ startStepId: 'show-popup',
2102
+ steps: {
2103
+ 'show-popup': {
2104
+ action: 'AXPSessionTerminatePopupAction',
2105
+ nextSteps: [
2106
+ {
2107
+ conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
2108
+ nextStepId: 'show-toast',
2109
+ },
2110
+ ],
2111
+ },
2112
+ 'show-toast': {
2113
+ action: 'AXPToastAction',
2114
+ input: {
2115
+ color: 'success',
2116
+ title: 'workflow.session-terminated',
2117
+ content: 'workflow.session-terminated-body',
2118
+ },
2119
+ nextSteps: [
2120
+ {
2121
+ conditions: [],
2122
+ nextStepId: 'dispatch-event',
2123
+ },
2124
+ ],
2125
+ },
2126
+ },
2127
+ };
1435
2128
 
1436
- class AXMSecurityManagementRolesEntityModule {
1437
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1438
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule }); }
1439
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, providers: [
1440
- {
1441
- provide: AXMSecurityManagementRolesEntityService,
1442
- useClass: AXMSecurityManagementRolesEntityServiceImpl,
1443
- },
1444
- ] }); }
2129
+ class AXMUserAvatarProvider {
2130
+ constructor() {
2131
+ this.userService = inject(AXMUsersEntityService);
2132
+ }
2133
+ async provide(userId) {
2134
+ const user = await this.userService.getOne(userId);
2135
+ if (!user) {
2136
+ throw new Error(`User not found for ${userId}`);
2137
+ }
2138
+ return {
2139
+ id: user.id,
2140
+ username: user.username,
2141
+ firstName: user.firstName,
2142
+ lastName: user.lastName,
2143
+ status: 'online',
2144
+ avatarUrl: 'https://via.placeholder.com/150',
2145
+ };
2146
+ }
1445
2147
  }
1446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, decorators: [{
1447
- type: NgModule,
1448
- args: [{
1449
- imports: [],
1450
- exports: [],
1451
- declarations: [],
1452
- providers: [
1453
- {
1454
- provide: AXMSecurityManagementRolesEntityService,
1455
- useClass: AXMSecurityManagementRolesEntityServiceImpl,
1456
- },
1457
- ],
1458
- }]
1459
- }] });
1460
2148
 
1461
2149
  const AXPPermissionsWidget = {
1462
2150
  name: "permissions-editor",
@@ -1680,160 +2368,9 @@ class AXMUsersDataSourceDefinition {
1680
2368
  }
1681
2369
  }
1682
2370
 
1683
- class AXMSearchCommandProvider extends AXPSearchCommandProvider {
1684
- constructor() {
1685
- super(...arguments);
1686
- this.commands = [
1687
- {
1688
- id: 'create-security-user',
1689
- group: 'command',
1690
- title: 'New User',
1691
- icon: RootConfig.entities.users.icon,
1692
- description: 'Create a new user entity in the system.', // Added meaningful description
1693
- command: {
1694
- // 'create-entity': {
1695
- // entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`,
1696
- // },
1697
- name: 'create-entity',
1698
- options: {
1699
- entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`
1700
- }
1701
- },
1702
- },
1703
- {
1704
- id: 'create-security-role',
1705
- group: 'command',
1706
- title: 'New Security Role',
1707
- icon: RootConfig.entities.roles.icon,
1708
- description: 'Define a new security role to manage permissions.', // Added meaningful description
1709
- command: {
1710
- // 'create-entity': {
1711
- // entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
1712
- // },
1713
- name: 'create-entity',
1714
- options: {
1715
- entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
1716
- }
1717
- },
1718
- },
1719
- ];
1720
- }
1721
- }
1722
-
1723
- class AXMUserAvatarProvider {
1724
- constructor() {
1725
- this.userService = inject(AXMUsersEntityService);
1726
- }
1727
- async provide(userId) {
1728
- const user = await this.userService.getOne(userId);
1729
- if (!user) {
1730
- throw new Error(`User not found for ${userId}`);
1731
- }
1732
- return {
1733
- id: user.id,
1734
- username: user.username,
1735
- firstName: user.firstName,
1736
- lastName: user.lastName,
1737
- status: 'online',
1738
- avatarUrl: 'https://via.placeholder.com/150',
1739
- };
1740
- }
1741
- }
1742
-
1743
- const AXPSessionTerminateEvent = createWorkFlowEvent('[Entity] Terminated!');
1744
- class AXPSessionTerminatePopupAction extends AXPWorkflowAction {
1745
- constructor() {
1746
- super(...arguments);
1747
- this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
1748
- this.dialogService = inject(AXDialogService);
1749
- this.loadingDialog = inject(AXLoadingDialogService);
1750
- this.translationService = inject(AXTranslationService);
1751
- }
1752
- async execute(context) {
1753
- const moduleEntity = context.getVariable('entity');
1754
- const [moduleName, entityName] = moduleEntity.split('.');
1755
- const data = context.getVariable('data');
1756
- const meta = context.getVariable('meta');
1757
- const ids = Array.isArray(data) ? data.map((c) => c.id) : [data.id];
1758
- const entity = await this.entityRegistery.resolve(moduleName, entityName);
1759
- if (entity.parentKey && data[entity.parentKey]) {
1760
- context.setVariable('meta', { ...meta, refreshTargetId: data[entity.parentKey] });
1761
- }
1762
- context.setVariable('terminateSuccessful', false);
1763
- const dialog = this.loadingDialog.show({
1764
- title: await this.translationService.translateAsync('workflow.terminating'),
1765
- mode: 'determinate',
1766
- status: 'Terminating...',
1767
- progressValue: 0,
1768
- text: `0/${ids.length}`,
1769
- buttons: [
1770
- {
1771
- text: await this.translationService.translateAsync('cancel'),
1772
- color: 'danger',
1773
- onClick: () => {
1774
- dialog.close();
1775
- },
1776
- },
1777
- ],
1778
- });
1779
- if (entity.commands.terminate != null) {
1780
- const terminateExec = entity.commands.terminate?.execute;
1781
- let faildCounter = 0;
1782
- for (const element of ids) {
1783
- const res = await terminateExec(element);
1784
- if (!res) {
1785
- faildCounter++;
1786
- await this.dialogService.alert(await this.translationService.translateAsync('workflow.fail-delete-title'), await this.translationService.translateAsync('workflow.fail-delete-body', {
1787
- params: { item: 1 },
1788
- }), 'danger');
1789
- }
1790
- }
1791
- context.setOutput('result', faildCounter == 0 ? true : false);
1792
- setTimeout(() => {
1793
- dialog.close();
1794
- this.dispatch(AXPRefreshEvent({ entity: moduleEntity, meta: context.getVariable('meta') }));
1795
- }, 300);
1796
- }
1797
- }
1798
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1799
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction }); }
1800
- }
1801
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSessionTerminatePopupAction, decorators: [{
1802
- type: Injectable
1803
- }] });
1804
- const AXPSessionTerminateWorkflow = {
1805
- startStepId: 'show-popup',
1806
- steps: {
1807
- 'show-popup': {
1808
- action: 'AXPSessionTerminatePopupAction',
1809
- nextSteps: [
1810
- {
1811
- conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
1812
- nextStepId: 'show-toast',
1813
- },
1814
- ],
1815
- },
1816
- 'show-toast': {
1817
- action: 'AXPToastAction',
1818
- input: {
1819
- color: 'success',
1820
- title: 'workflow.session-terminated',
1821
- content: 'workflow.session-terminated-body',
1822
- },
1823
- nextSteps: [
1824
- {
1825
- conditions: [],
1826
- nextStepId: 'dispatch-event',
1827
- },
1828
- ],
1829
- },
1830
- },
1831
- };
1832
-
1833
2371
  class AXMSecurityManagementModule {
1834
2372
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1835
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [
1836
- // AXMSecurityManagementDeviceSessionsEntityModule,
2373
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [AXMSecurityManagementDeviceSessionsEntityModule,
1837
2374
  AXMSecurityManagementProfileEntityModule,
1838
2375
  AXMSecurityManagementRolesEntityModule,
1839
2376
  AXMSecurityManagementUsersEntityModule,
@@ -1863,15 +2400,14 @@ class AXMSecurityManagementModule {
1863
2400
  useClass: AXMUsersDataSourceDefinition,
1864
2401
  multi: true,
1865
2402
  },
1866
- ], imports: [
1867
- // AXMSecurityManagementDeviceSessionsEntityModule,
2403
+ ], imports: [AXMSecurityManagementDeviceSessionsEntityModule,
1868
2404
  AXMSecurityManagementProfileEntityModule,
1869
2405
  AXMSecurityManagementRolesEntityModule,
1870
2406
  AXMSecurityManagementUsersEntityModule,
1871
2407
  AXMPermissionsModule,
1872
2408
  AXPWorkflowModule.forChild({
1873
2409
  actions: {
1874
- AXPSessionTerminatePopupAction,
2410
+ AXPSessionTerminatePopupAction
1875
2411
  },
1876
2412
  workflows: {
1877
2413
  'terminate-entity': AXPSessionTerminateWorkflow,
@@ -1883,14 +2419,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
1883
2419
  type: NgModule,
1884
2420
  args: [{
1885
2421
  imports: [
1886
- // AXMSecurityManagementDeviceSessionsEntityModule,
2422
+ AXMSecurityManagementDeviceSessionsEntityModule,
1887
2423
  AXMSecurityManagementProfileEntityModule,
1888
2424
  AXMSecurityManagementRolesEntityModule,
1889
2425
  AXMSecurityManagementUsersEntityModule,
1890
2426
  AXMPermissionsModule,
1891
2427
  AXPWorkflowModule.forChild({
1892
2428
  actions: {
1893
- AXPSessionTerminatePopupAction,
2429
+ AXPSessionTerminatePopupAction
1894
2430
  },
1895
2431
  workflows: {
1896
2432
  'terminate-entity': AXPSessionTerminateWorkflow,
@@ -2446,5 +2982,5 @@ var permissionsWidgetDesigner_component = /*#__PURE__*/Object.freeze({
2446
2982
  * Generated bundle index. Do not edit.
2447
2983
  */
2448
2984
 
2449
- export { AXMPermissionsModule, AXMSecurityManagementModule, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMUsersEntityService, AXMUsersEntityServiceImpl, AXPPermissionsEditorComponent, AXPPermissionsEditorPopupComponent, AXPPermissionsWidget, AXPPermissionsWidgetColumnComponent, AXPPermissionsWidgetDesignerComponent, AXPPermissionsWidgetEditComponent, AXPPermissionsWidgetPrintComponent, AXPPermissionsWidgetViewComponent, AXPSecurityManagementMenuKeys, RootConfig };
2985
+ export { AXMPermissionsModule, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMUsersEntityService, AXMUsersEntityServiceImpl, AXPPermissionsEditorComponent, AXPPermissionsEditorPopupComponent, AXPPermissionsWidget, AXPPermissionsWidgetColumnComponent, AXPPermissionsWidgetDesignerComponent, AXPPermissionsWidgetEditComponent, AXPPermissionsWidgetPrintComponent, AXPPermissionsWidgetViewComponent, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory };
2450
2986
  //# sourceMappingURL=acorex-modules-security-management.mjs.map