@acorex/modules 19.3.0-next.0 → 19.3.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 (243) hide show
  1. package/auth/lib/pages/account/profile/profile-slot.component.d.ts +4 -0
  2. package/auth/lib/pages/account/user-sessions/user-sessions.component.d.ts +71 -0
  3. package/auth/lib/pages/account/user-sessions/user-sessions.service.d.ts +22 -0
  4. package/common/lib/entities/dashboard/dashboard.types.d.ts +1 -1
  5. package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +4 -0
  6. package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +2 -0
  7. package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +1 -1
  8. package/common/lib/features/home-dashboard/widget-wrapper/dashboard-widget-wrapper.d.ts +6 -1
  9. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +4 -1
  10. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +2 -0
  11. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-column.component.d.ts +2 -2
  12. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-designer.component.d.ts +2 -2
  13. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-edit.component.d.ts +2 -2
  14. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-view.component.d.ts +2 -2
  15. package/document-management/lib/features/shared/document-manager.service.d.ts +2 -0
  16. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +2 -2
  17. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +2 -2
  18. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +2 -2
  19. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +2 -2
  20. package/fesm2022/{acorex-modules-application-management-module-designer.component-Dd_lmV6C.mjs → acorex-modules-application-management-module-designer.component-ClxaJcjD.mjs} +9 -9
  21. package/fesm2022/{acorex-modules-application-management-module-designer.component-Dd_lmV6C.mjs.map → acorex-modules-application-management-module-designer.component-ClxaJcjD.mjs.map} +1 -1
  22. package/fesm2022/acorex-modules-application-management.mjs +14 -15
  23. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  24. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs → acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs} +87 -16
  25. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs.map +1 -0
  26. package/fesm2022/{acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs → acorex-modules-auth-app-chooser.component-D5z_sxdb.mjs} +2 -2
  27. package/fesm2022/{acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs.map → acorex-modules-auth-app-chooser.component-D5z_sxdb.mjs.map} +1 -1
  28. package/fesm2022/{acorex-modules-auth-login.module-B_WrZQJx.mjs → acorex-modules-auth-login.module-D1lvqgpY.mjs} +4 -4
  29. package/fesm2022/{acorex-modules-auth-login.module-B_WrZQJx.mjs.map → acorex-modules-auth-login.module-D1lvqgpY.mjs.map} +1 -1
  30. package/fesm2022/{acorex-modules-auth-master.layout-hDbrFbwO.mjs → acorex-modules-auth-master.layout-D0wN1nJg.mjs} +2 -2
  31. package/fesm2022/{acorex-modules-auth-master.layout-hDbrFbwO.mjs.map → acorex-modules-auth-master.layout-D0wN1nJg.mjs.map} +1 -1
  32. package/fesm2022/{acorex-modules-auth-password.component-DDE0M5GE.mjs → acorex-modules-auth-password.component-BxgUw_hF.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-auth-password.component-DDE0M5GE.mjs.map → acorex-modules-auth-password.component-BxgUw_hF.mjs.map} +1 -1
  34. package/fesm2022/{acorex-modules-auth-password.component-BnT_IaqN.mjs → acorex-modules-auth-password.component-DwcP8s1c.mjs} +7 -7
  35. package/fesm2022/{acorex-modules-auth-password.component-BnT_IaqN.mjs.map → acorex-modules-auth-password.component-DwcP8s1c.mjs.map} +1 -1
  36. package/fesm2022/{acorex-modules-auth-routes-Da02kID6.mjs → acorex-modules-auth-routes-BfuRe12M.mjs} +2 -2
  37. package/fesm2022/{acorex-modules-auth-routes-Da02kID6.mjs.map → acorex-modules-auth-routes-BfuRe12M.mjs.map} +1 -1
  38. package/fesm2022/acorex-modules-auth-setting.provider-CM-T8nbI.mjs +128 -0
  39. package/fesm2022/acorex-modules-auth-setting.provider-CM-T8nbI.mjs.map +1 -0
  40. package/fesm2022/{acorex-modules-auth-two-factor.module-BrDpX4X1.mjs → acorex-modules-auth-two-factor.module-BV_amlHF.mjs} +2 -2
  41. package/fesm2022/{acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map → acorex-modules-auth-two-factor.module-BV_amlHF.mjs.map} +1 -1
  42. package/fesm2022/acorex-modules-auth-user-sessions.component-CjXRKjtX.mjs +135 -0
  43. package/fesm2022/acorex-modules-auth-user-sessions.component-CjXRKjtX.mjs.map +1 -0
  44. package/fesm2022/acorex-modules-auth.mjs +1 -1
  45. package/fesm2022/{acorex-modules-common-index-rvP9ISgL.mjs → acorex-modules-common-index-BhPbl6D7.mjs} +130 -23
  46. package/fesm2022/acorex-modules-common-index-BhPbl6D7.mjs.map +1 -0
  47. package/fesm2022/acorex-modules-common.mjs +1 -1
  48. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  49. package/fesm2022/acorex-modules-conversation.mjs +1 -1
  50. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  51. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs → acorex-modules-document-management-acorex-modules-document-management-By3KxyQi.mjs} +95 -61
  52. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-By3KxyQi.mjs.map +1 -0
  53. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs → acorex-modules-document-management-create-folder-dialog.component-BY-8zP2Y.mjs} +33 -15
  54. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BY-8zP2Y.mjs.map +1 -0
  55. package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs → acorex-modules-document-management-details-view.component-T2Wfo1An.mjs} +2 -2
  56. package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs.map → acorex-modules-document-management-details-view.component-T2Wfo1An.mjs.map} +1 -1
  57. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs → acorex-modules-document-management-drive-choose.component-B9OGXyP2.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs.map → acorex-modules-document-management-drive-choose.component-B9OGXyP2.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs → acorex-modules-document-management-large-icons-view.component-CbS823XB.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs.map → acorex-modules-document-management-large-icons-view.component-CbS823XB.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs → acorex-modules-document-management-large-tiles-view.component-_u1vSWi5.mjs} +2 -2
  62. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs.map → acorex-modules-document-management-large-tiles-view.component-_u1vSWi5.mjs.map} +1 -1
  63. package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs → acorex-modules-document-management-list-view.component-jXR4GQlh.mjs} +2 -2
  64. package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs.map → acorex-modules-document-management-list-view.component-jXR4GQlh.mjs.map} +1 -1
  65. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs → acorex-modules-document-management-rename-node-dialog.component-Cp_X2KqY.mjs} +2 -2
  66. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs.map → acorex-modules-document-management-rename-node-dialog.component-Cp_X2KqY.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs → acorex-modules-document-management-small-icons-view.component-CkoUBGKu.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs.map → acorex-modules-document-management-small-icons-view.component-CkoUBGKu.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs → acorex-modules-document-management-small-tiles-view.component-BFyR4x39.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs.map → acorex-modules-document-management-small-tiles-view.component-BFyR4x39.mjs.map} +1 -1
  71. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  72. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-B89YXZyp.mjs} +19 -18
  73. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-B89YXZyp.mjs.map +1 -0
  74. package/fesm2022/{acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs → acorex-modules-form-template-management-category.entity-Dijep_aT.mjs} +9 -2
  75. package/fesm2022/acorex-modules-form-template-management-category.entity-Dijep_aT.mjs.map +1 -0
  76. package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs → acorex-modules-form-template-management-setting.provider-CT_uJT9V.mjs} +2 -2
  77. package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs.map → acorex-modules-form-template-management-setting.provider-CT_uJT9V.mjs.map} +1 -1
  78. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs → acorex-modules-form-template-management-template-widget-edit.component-C5gnjRm4.mjs} +5 -5
  79. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-C5gnjRm4.mjs.map +1 -0
  80. package/fesm2022/{acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs → acorex-modules-form-template-management-template.entity-dw1iFvcm.mjs} +4 -4
  81. package/fesm2022/acorex-modules-form-template-management-template.entity-dw1iFvcm.mjs.map +1 -0
  82. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs → acorex-modules-form-template-management-viewer-popup.component-oYKbLQpE.mjs} +3 -3
  83. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs.map → acorex-modules-form-template-management-viewer-popup.component-oYKbLQpE.mjs.map} +1 -1
  84. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  85. package/fesm2022/acorex-modules-log-management.mjs +1096 -0
  86. package/fesm2022/acorex-modules-log-management.mjs.map +1 -0
  87. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  88. package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs +489 -0
  89. package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs.map +1 -0
  90. package/fesm2022/{acorex-modules-organization-management-chart.entity-DnmNyyD2.mjs → acorex-modules-organization-management-chart.entity-UAn44WCP.mjs} +14 -13
  91. package/fesm2022/acorex-modules-organization-management-chart.entity-UAn44WCP.mjs.map +1 -0
  92. package/fesm2022/{acorex-modules-organization-management-company.entity-BRkEcDNt.mjs → acorex-modules-organization-management-company.entity-D1A1HSkC.mjs} +12 -11
  93. package/fesm2022/acorex-modules-organization-management-company.entity-D1A1HSkC.mjs.map +1 -0
  94. package/fesm2022/{acorex-modules-organization-management-employee.entity-Cp5TejzT.mjs → acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs} +192 -85
  95. package/fesm2022/acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs.map +1 -0
  96. package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs +442 -0
  97. package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs.map +1 -0
  98. package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs +601 -0
  99. package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs.map +1 -0
  100. package/fesm2022/{acorex-modules-organization-management-employment-type.entity-Ul10Mdwm.mjs → acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs} +21 -25
  101. package/fesm2022/acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs.map +1 -0
  102. package/fesm2022/{acorex-modules-organization-management-position.entity-BpQbwW-x.mjs → acorex-modules-organization-management-position.entity-DhPT9kzv.mjs} +12 -11
  103. package/fesm2022/acorex-modules-organization-management-position.entity-DhPT9kzv.mjs.map +1 -0
  104. package/fesm2022/{acorex-modules-organization-management-division.entity-qyDyhl-q.mjs → acorex-modules-organization-management-role.entity-C-AIIaDo.mjs} +31 -39
  105. package/fesm2022/acorex-modules-organization-management-role.entity-C-AIIaDo.mjs.map +1 -0
  106. package/fesm2022/{acorex-modules-organization-management-branch.entity-e5pFx82N.mjs → acorex-modules-organization-management-team.entity-DZqK-yLT.mjs} +71 -60
  107. package/fesm2022/acorex-modules-organization-management-team.entity-DZqK-yLT.mjs.map +1 -0
  108. package/fesm2022/acorex-modules-organization-management.mjs +35 -35
  109. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  110. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs → acorex-modules-platform-management-acorex-modules-platform-management-Ckc1_cpl.mjs} +3917 -1601
  111. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-Ckc1_cpl.mjs.map +1 -0
  112. package/fesm2022/acorex-modules-platform-management-capture-screen.component-B9hhUIbH.mjs +28 -0
  113. package/fesm2022/acorex-modules-platform-management-capture-screen.component-B9hhUIbH.mjs.map +1 -0
  114. package/fesm2022/{acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs → acorex-modules-platform-management-list-version.component-kbqAusu_.mjs} +6 -6
  115. package/fesm2022/acorex-modules-platform-management-list-version.component-kbqAusu_.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs → acorex-modules-platform-management-setting.provider-DEzI0jUt.mjs} +21 -5
  117. package/fesm2022/acorex-modules-platform-management-setting.provider-DEzI0jUt.mjs.map +1 -0
  118. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  119. package/fesm2022/acorex-modules-security-management.mjs +1147 -461
  120. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  121. package/form-template-management/lib/features/designer/widgets/template/template-widget-designer.component.d.ts +2 -2
  122. package/form-template-management/lib/features/designer/widgets/template/template-widget-edit.component.d.ts +2 -2
  123. package/form-template-management/lib/features/designer/widgets/template/template-widget-view.component.d.ts +2 -2
  124. package/form-template-management/lib/features/designer/widgets/template-designer/template-designer-widget-view.component.d.ts +2 -2
  125. package/log-management/README.md +3 -0
  126. package/log-management/index.d.ts +7 -0
  127. package/log-management/lib/const.d.ts +20 -0
  128. package/log-management/lib/entities/axp-log/axp-log.entity.d.ts +3 -0
  129. package/log-management/lib/entities/axp-log/axp-log.service.d.ts +10 -0
  130. package/log-management/lib/entities/axp-log/axp-log.types.d.ts +23 -0
  131. package/log-management/lib/entities/axp-log/index.d.ts +3 -0
  132. package/log-management/lib/entity.provider.d.ts +10 -0
  133. package/log-management/lib/log-management.module.d.ts +6 -0
  134. package/log-management/lib/menu.provider.d.ts +5 -0
  135. package/log-management/lib/permission.provider.d.ts +4 -0
  136. package/log-management/lib/search-command.provider.d.ts +4 -0
  137. package/log-management/lib/setting.provider.d.ts +4 -0
  138. package/notification-management/lib/{components → features/components}/admin-notification-item/admin-notification-item.component.d.ts +1 -1
  139. package/notification-management/lib/{components → features/components}/admin-notification-panel/admin-notification-panel.component.d.ts +1 -1
  140. package/organization-management/lib/entities/branch/branch.types.d.ts +6 -0
  141. package/organization-management/lib/entities/department/department.types.d.ts +5 -0
  142. package/organization-management/lib/entities/division/division.types.d.ts +5 -0
  143. package/organization-management/lib/entities/employee/employee.types.d.ts +9 -1
  144. package/organization-management/lib/entities/role/role.types.d.ts +1 -1
  145. package/organization-management/lib/entities/team/team.types.d.ts +4 -1
  146. package/package.json +5 -1
  147. package/platform-management/index.d.ts +2 -1
  148. package/platform-management/lib/const.d.ts +24 -0
  149. package/platform-management/lib/entities/app-term/index.d.ts +2 -2
  150. package/platform-management/lib/entities/app-version/index.d.ts +2 -2
  151. package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +3 -2
  152. package/platform-management/lib/entities/index.d.ts +3 -1
  153. package/platform-management/lib/entities/issue-type/index.d.ts +3 -0
  154. package/platform-management/lib/entities/issue-type/issue-type.entity.d.ts +3 -0
  155. package/platform-management/lib/entities/issue-type/issue-type.service.d.ts +10 -0
  156. package/platform-management/lib/entities/issue-type/issue-type.types.d.ts +6 -0
  157. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +3 -1
  158. package/platform-management/lib/entities/meta-data-definition-category/category.types.d.ts +2 -0
  159. package/platform-management/lib/entities/my-reported-issues/index.d.ts +3 -0
  160. package/platform-management/lib/entities/my-reported-issues/my-reported-issues.entity.d.ts +3 -0
  161. package/platform-management/lib/entities/my-reported-issues/my-reported-issues.service.d.ts +10 -0
  162. package/platform-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts +5 -0
  163. package/platform-management/lib/entities/promotion/index.d.ts +1 -1
  164. package/platform-management/lib/entities/reported-issues/index.d.ts +3 -0
  165. package/platform-management/lib/entities/reported-issues/reported-issues.entity.d.ts +3 -0
  166. package/platform-management/lib/entities/reported-issues/reported-issues.service.d.ts +10 -0
  167. package/platform-management/lib/entities/reported-issues/reported-issues.types.d.ts +21 -0
  168. package/platform-management/lib/features/app-terms/check-terms.service.d.ts +11 -0
  169. package/platform-management/lib/{entities/app-term → features/app-terms}/components/notify-app/notify-app.component.d.ts +1 -1
  170. package/platform-management/lib/{entities/app-term → features/app-terms}/pages/list/list-terms.component.d.ts +2 -2
  171. package/platform-management/lib/{entities/check-version.d.ts → features/app-version/check-version.service.d.ts} +3 -4
  172. package/platform-management/lib/{entities → features}/app-version/components/list-versions/list-version.component.d.ts +1 -1
  173. package/platform-management/lib/{entities → features}/app-version/components/notify-app/notify-app.component.d.ts +1 -1
  174. package/platform-management/lib/{common → features/common}/index.d.ts +1 -1
  175. package/platform-management/lib/features/index.d.ts +1 -0
  176. package/platform-management/lib/{entities → features}/promotion/components/promotion-slot/promotion-slot.component.d.ts +2 -2
  177. package/platform-management/lib/features/support/capture-screen/capture-screen.types.d.ts +19 -0
  178. package/platform-management/lib/features/support/capture-screen/components/capture-screen-component/capture-screen.component.d.ts +37 -0
  179. package/platform-management/lib/features/support/capture-screen/index.d.ts +2 -0
  180. package/platform-management/lib/features/support/capture-screen/services/capture-screen.service.d.ts +33 -0
  181. package/platform-management/lib/features/support/index.d.ts +2 -0
  182. package/platform-management/lib/features/support/report-issue/components/index.d.ts +1 -0
  183. package/platform-management/lib/features/support/report-issue/components/report-new-issue/report-new-issue.component.d.ts +40 -0
  184. package/platform-management/lib/features/support/report-issue/index.d.ts +2 -0
  185. package/platform-management/lib/features/support/report-issue/report-issue.types.d.ts +19 -0
  186. package/platform-management/lib/features/support/report-issue/services/report-new-issue.viewmodel.d.ts +15 -0
  187. package/platform-management/lib/features/support/report-issue/workflows/index.d.ts +1 -0
  188. package/platform-management/lib/features/support/report-issue/workflows/show-report-issue.workflow.d.ts +10 -0
  189. package/platform-management/lib/platform-management.module.d.ts +4 -3
  190. package/security-management/lib/const.d.ts +6 -0
  191. package/security-management/lib/entities/device-sessions/device-sessions.entity.d.ts +3 -0
  192. package/security-management/lib/entities/device-sessions/device-sessions.module.d.ts +6 -0
  193. package/security-management/lib/entities/device-sessions/device-sessions.service.d.ts +12 -0
  194. package/security-management/lib/entities/device-sessions/device-sessions.types.d.ts +34 -0
  195. package/security-management/lib/entities/device-sessions/index.d.ts +4 -0
  196. package/security-management/lib/entities/index.d.ts +1 -0
  197. package/security-management/lib/menu.keys.d.ts +2 -1
  198. package/security-management/lib/security-management.module.d.ts +6 -4
  199. package/security-management/lib/workflows/terminate-entity.workflow.d.ts +27 -0
  200. package/fesm2022/acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs.map +0 -1
  201. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs +0 -271
  202. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs.map +0 -1
  203. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs.map +0 -1
  204. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs.map +0 -1
  205. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs.map +0 -1
  206. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs.map +0 -1
  207. package/fesm2022/acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs.map +0 -1
  208. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs.map +0 -1
  209. package/fesm2022/acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs.map +0 -1
  210. package/fesm2022/acorex-modules-organization-management-branch.entity-e5pFx82N.mjs.map +0 -1
  211. package/fesm2022/acorex-modules-organization-management-chart.entity-DnmNyyD2.mjs.map +0 -1
  212. package/fesm2022/acorex-modules-organization-management-company.entity-BRkEcDNt.mjs.map +0 -1
  213. package/fesm2022/acorex-modules-organization-management-department.entity-ChJXNpXn.mjs +0 -256
  214. package/fesm2022/acorex-modules-organization-management-department.entity-ChJXNpXn.mjs.map +0 -1
  215. package/fesm2022/acorex-modules-organization-management-division.entity-qyDyhl-q.mjs.map +0 -1
  216. package/fesm2022/acorex-modules-organization-management-employee.entity-Cp5TejzT.mjs.map +0 -1
  217. package/fesm2022/acorex-modules-organization-management-employment-type.entity-Ul10Mdwm.mjs.map +0 -1
  218. package/fesm2022/acorex-modules-organization-management-position.entity-BpQbwW-x.mjs.map +0 -1
  219. package/fesm2022/acorex-modules-organization-management-role.entity-B9N4qA_E.mjs +0 -238
  220. package/fesm2022/acorex-modules-organization-management-role.entity-B9N4qA_E.mjs.map +0 -1
  221. package/fesm2022/acorex-modules-organization-management-team.entity-7q6Eg74A.mjs +0 -238
  222. package/fesm2022/acorex-modules-organization-management-team.entity-7q6Eg74A.mjs.map +0 -1
  223. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs.map +0 -1
  224. package/fesm2022/acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs.map +0 -1
  225. package/fesm2022/acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs.map +0 -1
  226. /package/notification-management/lib/{components → features/components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  227. /package/platform-management/lib/{entities/app-term → features/app-terms}/pages/index.d.ts +0 -0
  228. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/index.d.ts +0 -0
  229. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/notify-new-term.workflow.d.ts +0 -0
  230. /package/platform-management/lib/{entities → features}/app-version/components/index.d.ts +0 -0
  231. /package/platform-management/lib/{entities → features}/app-version/components/slots/app-version-slot.component.d.ts +0 -0
  232. /package/platform-management/lib/{entities → features}/app-version/workflows/change-log.workflow.d.ts +0 -0
  233. /package/platform-management/lib/{entities → features}/app-version/workflows/index.d.ts +0 -0
  234. /package/platform-management/lib/{entities → features}/app-version/workflows/show-release-notes.workflow.d.ts +0 -0
  235. /package/platform-management/lib/{common → features/common}/common.module.d.ts +0 -0
  236. /package/platform-management/lib/{common → features/common}/entity.provider.d.ts +0 -0
  237. /package/platform-management/lib/{common → features/common}/regional/data-source.provider.d.ts +0 -0
  238. /package/platform-management/lib/{common → features/common}/regional/index.d.ts +0 -0
  239. /package/platform-management/lib/{common → features/common}/regional/language-slot/language-slot.component.d.ts +0 -0
  240. /package/platform-management/lib/{common → features/common}/regional/regional-store.service.d.ts +0 -0
  241. /package/platform-management/lib/{common → features/common}/regional/setting.keys.d.ts +0 -0
  242. /package/platform-management/lib/{common → features/common}/regional/setting.provider.d.ts +0 -0
  243. /package/platform-management/lib/{entities → features}/promotion/components/index.d.ts +0 -0
@@ -1,15 +1,15 @@
1
- import * as i2$2 from '@acorex/components/button';
1
+ import * as i2$1 from '@acorex/components/button';
2
2
  import { AXButtonModule } from '@acorex/components/button';
3
3
  import * as i9 from '@acorex/components/check-box';
4
4
  import { AXCheckBoxModule } from '@acorex/components/check-box';
5
5
  import * as i1$1 from '@acorex/components/decorators';
6
6
  import { AXDecoratorModule } from '@acorex/components/decorators';
7
7
  import { AXDialogService } from '@acorex/components/dialog';
8
- import * as i2$1 from '@acorex/components/form';
8
+ import * as i2 from '@acorex/components/form';
9
9
  import { AXFormModule, AXFormComponent } from '@acorex/components/form';
10
10
  import * as i7 from '@acorex/components/label';
11
11
  import { AXLabelModule } from '@acorex/components/label';
12
- import * as i3 from '@acorex/components/loading';
12
+ import * as i3$1 from '@acorex/components/loading';
13
13
  import { AXLoadingModule } from '@acorex/components/loading';
14
14
  import * as i5 from '@acorex/components/password-box';
15
15
  import { AXPasswordBoxModule } from '@acorex/components/password-box';
@@ -24,10 +24,10 @@ import { inject, ViewChild, Component } from '@angular/core';
24
24
  import { RouterModule, ActivatedRoute, Router } from '@angular/router';
25
25
  import { AXValidationModule } from '@acorex/core/validation';
26
26
  import { AXPSessionService } from '@acorex/platform/auth';
27
- import * as i2 from '@angular/forms';
27
+ import * as i3 from '@angular/forms';
28
28
  import { FormsModule } from '@angular/forms';
29
29
  import { BehaviorSubject } from 'rxjs';
30
- import { A as AXM_AUTH_CONFIG_TOKEN, a as AXMAuthenticationTypes } from './acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs';
30
+ import { A as AXM_AUTH_CONFIG_TOKEN, a as AXMAuthenticationTypes } from './acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs';
31
31
 
32
32
  const MODULES = [
33
33
  CommonModule,
@@ -118,7 +118,7 @@ class AXPLoginPasswordComponent {
118
118
  });
119
119
  }
120
120
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLoginPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
121
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPLoginPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-4\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('signin.title', { scope: 'auth' }) | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n {{ t('signin.hint', { scope: 'auth' }) | async }}\n </p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label>{{ t(l1, { scope: 'auth' }) | async }}</ax-label>\n <ax-text-box [name]=\"'username'\" [autoComplete]=\"'username'\" [(value)]=\"v1\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t(l2, { scope: 'auth' }) | async }}</ax-label>\n <ax-password-box [name]=\"'password'\" [autoComplete]=\"'current-password'\" [(value)]=\"v2\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <ax-check-box [(ngModel)]=\"isKeepLogin\">\n <ax-label class=\"ax-mb-0\">{{ t('signin.remember', { scope: 'auth' }) | async }}</ax-label>\n </ax-check-box>\n <ax-button\n color=\"primary\"\n class=\"ax-sm\"\n [text]=\"t('forgot.password', { scope: 'auth' }) | async\"\n look=\"blank\"\n (onClick)=\"handleForgotOnClick()\"\n >\n </ax-button>\n </div>\n </div>\n <ax-button\n color=\"primary\"\n class=\"ax-mt-6 ax-w-full\"\n [text]=\"t(submitText, { scope: 'auth' }) | async\"\n (onClick)=\"handleLoginClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n <ax-loading *ngIf=\"isLoading$ | async\"></ax-loading>\n </ax-button>\n @if(configs.signin_google ||configs.signin_apple ||configs.signup?.enable){\n <div class=\"ax-heading ax-heading-center !ax-my-8\">\n <span>{{ t('signin.or', { scope: 'auth' }) | async }}</span>\n </div>\n }\n <div class=\"ax-flex ax-flex-col ax-gap-2 lg:ax-flex-row ax-justify-between ax-mt-6\">\n @if(configs.signin_google){\n <ax-button text=\"{{ 'authentication.with-google' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-google fa-lg ax-text-danger-500\"></i>\n </ax-icon>\n </ax-prefix> </ax-button\n >} @if(configs.signin_apple){\n\n <ax-button text=\"{{ 'authentication.with-apple' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-apple fa-xl\"></i>\n </ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n </ax-form>\n @if(configs.signup?.enable){\n <ax-button\n class=\"ax-w-full ax-mt-2\"\n (onClick)=\"handleRegisterOnClick()\"\n text=\"{{ t('register', { scope: 'auth' }) | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n }\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2$1.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i2$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i5.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i9.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }] }); }
121
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPLoginPasswordComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-4\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('signin.title', { scope: 'auth' }) | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n {{ t('signin.hint', { scope: 'auth' }) | async }}\n </p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label>{{ t(l1, { scope: 'auth' }) | async }}</ax-label>\n <ax-text-box [name]=\"'username'\" [autoComplete]=\"'username'\" [(value)]=\"v1\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t(l2, { scope: 'auth' }) | async }}</ax-label>\n <ax-password-box [name]=\"'password'\" [autoComplete]=\"'current-password'\" [(value)]=\"v2\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <ax-check-box [(ngModel)]=\"isKeepLogin\">\n <ax-label class=\"ax-mb-0\">{{ t('signin.remember', { scope: 'auth' }) | async }}</ax-label>\n </ax-check-box>\n <ax-button\n color=\"primary\"\n class=\"ax-sm\"\n [text]=\"t('forgot.password', { scope: 'auth' }) | async\"\n look=\"blank\"\n (onClick)=\"handleForgotOnClick()\"\n >\n </ax-button>\n </div>\n </div>\n <ax-button\n color=\"primary\"\n class=\"ax-mt-6 ax-w-full\"\n [text]=\"t(submitText, { scope: 'auth' }) | async\"\n (onClick)=\"handleLoginClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n <ax-loading *ngIf=\"isLoading$ | async\"></ax-loading>\n </ax-button>\n @if(configs.signin_google ||configs.signin_apple ||configs.signup?.enable){\n <div class=\"ax-heading ax-heading-center !ax-my-8\">\n <span>{{ t('signin.or', { scope: 'auth' }) | async }}</span>\n </div>\n }\n <div class=\"ax-flex ax-flex-col ax-gap-2 lg:ax-flex-row ax-justify-between ax-mt-6\">\n @if(configs.signin_google){\n <ax-button text=\"{{ 'authentication.with-google' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-google fa-lg ax-text-danger-500\"></i>\n </ax-icon>\n </ax-prefix> </ax-button\n >} @if(configs.signin_apple){\n\n <ax-button text=\"{{ 'authentication.with-apple' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-apple fa-xl\"></i>\n </ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n </ax-form>\n @if(configs.signup?.enable){\n <ax-button\n class=\"ax-w-full ax-mt-2\"\n (onClick)=\"handleRegisterOnClick()\"\n text=\"{{ t('register', { scope: 'auth' }) | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n }\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i5.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i9.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXValidationModule }] }); }
122
122
  }
123
123
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLoginPasswordComponent, decorators: [{
124
124
  type: Component,
@@ -129,4 +129,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
129
129
  }] } });
130
130
 
131
131
  export { AXPLoginPasswordComponent };
132
- //# sourceMappingURL=acorex-modules-auth-password.component-BnT_IaqN.mjs.map
132
+ //# sourceMappingURL=acorex-modules-auth-password.component-DwcP8s1c.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-auth-password.component-BnT_IaqN.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/login/password/password.component.ts","../../../../libs/modules/auth/src/lib/pages/login/password/password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPSessionService } from '@acorex/platform/auth';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject } from 'rxjs';\nimport { AXMAuthConfigs, AXMAuthenticationTypes, AXM_AUTH_CONFIG_TOKEN } from '../../../auth.config';\n\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXCheckBoxModule,\n AXTranslationModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './password.component.html',\n imports: [...MODULES],\n})\nexport class AXPLoginPasswordComponent implements OnInit {\n protected configs: AXMAuthConfigs = inject<AXMAuthConfigs>(AXM_AUTH_CONFIG_TOKEN);\n protected l1!: string;\n protected l2!: string;\n\n protected v1 = '';\n protected v2: string | null = '';\n\n protected isLoading$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n protected submitText = 'signin.submit';\n private dialogService = inject(AXDialogService);\n private sessionService = inject(AXPSessionService);\n private activateRoute = inject(ActivatedRoute);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n private router = inject(Router);\n\n protected isKeepLogin: boolean = false;\n\n ngOnInit(): void {\n this.l2 = 'password';\n switch (this.configs.type) {\n case AXMAuthenticationTypes.EmailPassword:\n this.l1 = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.l1 = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.l1 = 'username-email';\n break;\n case AXMAuthenticationTypes.UsernamePassword:\n default:\n this.l1 = 'username';\n }\n }\n\n protected handleForgotOnClick() {\n this.router.navigate(['/auth/forgot']);\n }\n\n protected handleRegisterOnClick() {\n this.router.navigate([this.configs.signup?.url || '/auth/register']);\n }\n\n protected handleLoginClick() {\n const redirectUrl = this.activateRoute.snapshot.queryParams['redirectUrl'];\n this.form.validate().then(async (form) => {\n if (form.result) {\n this.isLoading$.next(true);\n this.submitText = 'processing';\n this.submitText = 'redirecting';\n try {\n await this.sessionService.signin({\n strategy: 'user-pass',\n username: this.v1,\n password: this.v2!,\n });\n await this.sessionService.signInComplete();\n\n if (this.sessionService.tenant?.id == null) {\n this.router.navigate(['/auth/account/tenant-chooser']);\n } else if (this.sessionService.application?.id == null) {\n this.router.navigate(['/auth/account/app-chooser']);\n } else if (redirectUrl) {\n this.router.navigate([redirectUrl]);\n } else {\n this.router.navigate([`/${this.sessionService.application.name}/home`]);\n }\n } catch (error: any) {\n console.log({ error });\n this.submitText = 'signin.submit';\n this.v2 = null;\n this.isLoading$.next(false);\n }\n }\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-4\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('signin.title', { scope: 'auth' }) | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n {{ t('signin.hint', { scope: 'auth' }) | async }}\n </p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label>{{ t(l1, { scope: 'auth' }) | async }}</ax-label>\n <ax-text-box [name]=\"'username'\" [autoComplete]=\"'username'\" [(value)]=\"v1\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t(l2, { scope: 'auth' }) | async }}</ax-label>\n <ax-password-box [name]=\"'password'\" [autoComplete]=\"'current-password'\" [(value)]=\"v2\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <ax-check-box [(ngModel)]=\"isKeepLogin\">\n <ax-label class=\"ax-mb-0\">{{ t('signin.remember', { scope: 'auth' }) | async }}</ax-label>\n </ax-check-box>\n <ax-button\n color=\"primary\"\n class=\"ax-sm\"\n [text]=\"t('forgot.password', { scope: 'auth' }) | async\"\n look=\"blank\"\n (onClick)=\"handleForgotOnClick()\"\n >\n </ax-button>\n </div>\n </div>\n <ax-button\n color=\"primary\"\n class=\"ax-mt-6 ax-w-full\"\n [text]=\"t(submitText, { scope: 'auth' }) | async\"\n (onClick)=\"handleLoginClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n <ax-loading *ngIf=\"isLoading$ | async\"></ax-loading>\n </ax-button>\n @if(configs.signin_google ||configs.signin_apple ||configs.signup?.enable){\n <div class=\"ax-heading ax-heading-center !ax-my-8\">\n <span>{{ t('signin.or', { scope: 'auth' }) | async }}</span>\n </div>\n }\n <div class=\"ax-flex ax-flex-col ax-gap-2 lg:ax-flex-row ax-justify-between ax-mt-6\">\n @if(configs.signin_google){\n <ax-button text=\"{{ 'authentication.with-google' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-google fa-lg ax-text-danger-500\"></i>\n </ax-icon>\n </ax-prefix> </ax-button\n >} @if(configs.signin_apple){\n\n <ax-button text=\"{{ 'authentication.with-apple' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-apple fa-xl\"></i>\n </ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n </ax-form>\n @if(configs.signup?.enable){\n <ax-button\n class=\"ax-w-full ax-mt-2\"\n (onClick)=\"handleRegisterOnClick()\"\n text=\"{{ t('register', { scope: 'auth' }) | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n }\n </div>\n</ng-container>\n"],"names":["i3","i6","i8","i10","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,mBAAmB;IACnB,eAAe;IACf,YAAY;IACZ,kBAAkB;CACnB;MAMY,yBAAyB,CAAA;AAJtC,IAAA,WAAA,GAAA;AAKY,QAAA,IAAA,CAAA,OAAO,GAAmB,MAAM,CAAiB,qBAAqB,CAAC;QAIvE,IAAE,CAAA,EAAA,GAAG,EAAE;QACP,IAAE,CAAA,EAAA,GAAkB,EAAE;AAEtB,QAAA,IAAA,CAAA,UAAU,GAA6B,IAAI,eAAe,CAAC,KAAK,CAAC;QAEjE,IAAU,CAAA,UAAA,GAAG,eAAe;AAC9B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC;AAKtC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAErB,IAAW,CAAA,WAAA,GAAY,KAAK;AA6DvC;IA3DC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,EAAE,GAAG,UAAU;AACpB,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,KAAK,sBAAsB,CAAC,aAAa;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AA,UAAA,EAAA,IAAA,EAAA,mBAAmB,EAEnB,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eAAe,EACf,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,8BACZ,kBAAkB,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;8BAEC,CAAC,GAAG,OAAO,CAAC,EAAA,QAAA,EAAA,utGAAA,EAAA;8BAkBb,IAAI,EAAA,CAAA;sBADX,SAAS;uBAAC,eAAe;;;;;"}
1
+ {"version":3,"file":"acorex-modules-auth-password.component-DwcP8s1c.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/login/password/password.component.ts","../../../../libs/modules/auth/src/lib/pages/login/password/password.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { Component, OnInit, ViewChild, inject } from '@angular/core';\nimport { ActivatedRoute, Router, RouterModule } from '@angular/router';\n\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPSessionService } from '@acorex/platform/auth';\nimport { FormsModule } from '@angular/forms';\nimport { BehaviorSubject } from 'rxjs';\nimport { AXMAuthConfigs, AXMAuthenticationTypes, AXM_AUTH_CONFIG_TOKEN } from '../../../auth.config';\n\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXPasswordBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXDecoratorModule,\n AXCheckBoxModule,\n AXTranslationModule,\n AXTranslationModule,\n AXLoadingModule,\n RouterModule,\n AXValidationModule,\n];\n\n@Component({\n templateUrl: './password.component.html',\n imports: [...MODULES],\n})\nexport class AXPLoginPasswordComponent implements OnInit {\n protected configs: AXMAuthConfigs = inject<AXMAuthConfigs>(AXM_AUTH_CONFIG_TOKEN);\n protected l1!: string;\n protected l2!: string;\n\n protected v1 = '';\n protected v2: string | null = '';\n\n protected isLoading$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n protected submitText = 'signin.submit';\n private dialogService = inject(AXDialogService);\n private sessionService = inject(AXPSessionService);\n private activateRoute = inject(ActivatedRoute);\n\n @ViewChild(AXFormComponent)\n private form!: AXFormComponent;\n\n private router = inject(Router);\n\n protected isKeepLogin: boolean = false;\n\n ngOnInit(): void {\n this.l2 = 'password';\n switch (this.configs.type) {\n case AXMAuthenticationTypes.EmailPassword:\n this.l1 = 'email';\n break;\n case AXMAuthenticationTypes.MobilePassword:\n this.l1 = 'mobile';\n break;\n case AXMAuthenticationTypes.UsernameEmailPassword:\n this.l1 = 'username-email';\n break;\n case AXMAuthenticationTypes.UsernamePassword:\n default:\n this.l1 = 'username';\n }\n }\n\n protected handleForgotOnClick() {\n this.router.navigate(['/auth/forgot']);\n }\n\n protected handleRegisterOnClick() {\n this.router.navigate([this.configs.signup?.url || '/auth/register']);\n }\n\n protected handleLoginClick() {\n const redirectUrl = this.activateRoute.snapshot.queryParams['redirectUrl'];\n this.form.validate().then(async (form) => {\n if (form.result) {\n this.isLoading$.next(true);\n this.submitText = 'processing';\n this.submitText = 'redirecting';\n try {\n await this.sessionService.signin({\n strategy: 'user-pass',\n username: this.v1,\n password: this.v2!,\n });\n await this.sessionService.signInComplete();\n\n if (this.sessionService.tenant?.id == null) {\n this.router.navigate(['/auth/account/tenant-chooser']);\n } else if (this.sessionService.application?.id == null) {\n this.router.navigate(['/auth/account/app-chooser']);\n } else if (redirectUrl) {\n this.router.navigate([redirectUrl]);\n } else {\n this.router.navigate([`/${this.sessionService.application.name}/home`]);\n }\n } catch (error: any) {\n console.log({ error });\n this.submitText = 'signin.submit';\n this.v2 = null;\n this.isLoading$.next(false);\n }\n }\n });\n }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-4\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('signin.title', { scope: 'auth' }) | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600\">\n {{ t('signin.hint', { scope: 'auth' }) | async }}\n </p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label>{{ t(l1, { scope: 'auth' }) | async }}</ax-label>\n <ax-text-box [name]=\"'username'\" [autoComplete]=\"'username'\" [(value)]=\"v1\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-text-box>\n </ax-form-field>\n <ax-form-field>\n <ax-label>{{ t(l2, { scope: 'auth' }) | async }}</ax-label>\n <ax-password-box [name]=\"'password'\" [autoComplete]=\"'current-password'\" [(value)]=\"v2\">\n <ax-validation-rule rule=\"required\"></ax-validation-rule>\n </ax-password-box>\n </ax-form-field>\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <ax-check-box [(ngModel)]=\"isKeepLogin\">\n <ax-label class=\"ax-mb-0\">{{ t('signin.remember', { scope: 'auth' }) | async }}</ax-label>\n </ax-check-box>\n <ax-button\n color=\"primary\"\n class=\"ax-sm\"\n [text]=\"t('forgot.password', { scope: 'auth' }) | async\"\n look=\"blank\"\n (onClick)=\"handleForgotOnClick()\"\n >\n </ax-button>\n </div>\n </div>\n <ax-button\n color=\"primary\"\n class=\"ax-mt-6 ax-w-full\"\n [text]=\"t(submitText, { scope: 'auth' }) | async\"\n (onClick)=\"handleLoginClick()\"\n [disabled]=\"isLoading$ | async\"\n [type]=\"'submit'\"\n >\n <ax-loading *ngIf=\"isLoading$ | async\"></ax-loading>\n </ax-button>\n @if(configs.signin_google ||configs.signin_apple ||configs.signup?.enable){\n <div class=\"ax-heading ax-heading-center !ax-my-8\">\n <span>{{ t('signin.or', { scope: 'auth' }) | async }}</span>\n </div>\n }\n <div class=\"ax-flex ax-flex-col ax-gap-2 lg:ax-flex-row ax-justify-between ax-mt-6\">\n @if(configs.signin_google){\n <ax-button text=\"{{ 'authentication.with-google' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-google fa-lg ax-text-danger-500\"></i>\n </ax-icon>\n </ax-prefix> </ax-button\n >} @if(configs.signin_apple){\n\n <ax-button text=\"{{ 'authentication.with-apple' | translate | async }}\" [color]=\"'default'\">\n <ax-prefix>\n <ax-icon>\n <i class=\"fa-brands fa-apple fa-xl\"></i>\n </ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n </ax-form>\n @if(configs.signup?.enable){\n <ax-button\n class=\"ax-w-full ax-mt-2\"\n (onClick)=\"handleRegisterOnClick()\"\n text=\"{{ t('register', { scope: 'auth' }) | async }}\"\n [color]=\"'default'\"\n >\n </ax-button>\n }\n </div>\n</ng-container>\n"],"names":["i2","i3","i6","i8","i10","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,OAAO,GAAG;IACd,YAAY;IACZ,WA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AAAC,IAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,8BACZ,kBAAkB,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;8BAEC,CAAC,GAAG,OAAO,CAAC,EAAA,QAAA,EAAA,utGAAA,EAAA;8BAkBb,IAAI,EAAA,CAAA;sBADX,SAAS;uBAAC,eAAe;;;;;"}
@@ -1,9 +1,9 @@
1
1
  var routes = [{
2
2
  path: 'forgot',
3
3
  loadComponent: () => {
4
- return import('./acorex-modules-auth-password.component-DDE0M5GE.mjs').then((c) => c.AXPForgetPasswordComponent);
4
+ return import('./acorex-modules-auth-password.component-BxgUw_hF.mjs').then((c) => c.AXPForgetPasswordComponent);
5
5
  },
6
6
  }];
7
7
 
8
8
  export { routes as default };
9
- //# sourceMappingURL=acorex-modules-auth-routes-Da02kID6.mjs.map
9
+ //# sourceMappingURL=acorex-modules-auth-routes-BfuRe12M.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-auth-routes-Da02kID6.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/forgot/routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport default [{\n path: 'forgot',\n loadComponent: () => {\n return import('./password/password.component').then(\n (c) => c.AXPForgetPasswordComponent\n );\n },\n}] as Route[];"],"names":[],"mappings":"AAEA,aAAe,CAAC;AACZ,QAAA,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,MAAK;AAChB,YAAA,OAAO,OAAO,uDAA+B,CAAC,CAAC,IAAI,CAC/C,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CACtC;SACJ;AACJ,KAAA,CAAY;;;;"}
1
+ {"version":3,"file":"acorex-modules-auth-routes-BfuRe12M.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/forgot/routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport default [{\n path: 'forgot',\n loadComponent: () => {\n return import('./password/password.component').then(\n (c) => c.AXPForgetPasswordComponent\n );\n },\n}] as Route[];"],"names":[],"mappings":"AAEA,aAAe,CAAC;AACZ,QAAA,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,MAAK;AAChB,YAAA,OAAO,OAAO,uDAA+B,CAAC,CAAC,IAAI,CAC/C,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CACtC;SACJ;AACJ,KAAA,CAAY;;;;"}
@@ -0,0 +1,128 @@
1
+ import { AXTranslationService } from '@acorex/core/translation';
2
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
+
4
+ class AXMSettingProvider {
5
+ constructor(injector) {
6
+ this.injector = injector;
7
+ this.translateService = this.injector.get(AXTranslationService);
8
+ }
9
+ async provide(context) {
10
+ const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'auth' });
11
+ context
12
+ .addGroup('security-settings', await trans('title'), await trans('description'), 'fa-light fa-lock')
13
+ // Authentication Section - Tenant Level
14
+ .addSection('authentication', await trans('authentication.title'), await trans('authentication.description'))
15
+ .addSetting({
16
+ key: 'two-factor-auth',
17
+ title: await trans('authentication.two-factor.title'),
18
+ scope: 'T',
19
+ isInherited: true,
20
+ defaultValue: false,
21
+ widget: {
22
+ type: AXPWidgetsCatalog.toggle,
23
+ },
24
+ description: await trans('authentication.two-factor.description'),
25
+ })
26
+ .addSetting({
27
+ key: 'password-complexity',
28
+ title: await trans('authentication.password.title'),
29
+ scope: 'T',
30
+ isInherited: true,
31
+ defaultValue: 'Medium',
32
+ widget: {
33
+ type: AXPWidgetsCatalog.select,
34
+ options: {
35
+ valueField: 'value',
36
+ textField: 'text',
37
+ dataSource: [
38
+ {
39
+ text: await trans('authentication.password.options.low'),
40
+ value: 'Low'
41
+ },
42
+ {
43
+ text: await trans('authentication.password.options.medium'),
44
+ value: 'Medium'
45
+ },
46
+ {
47
+ text: await trans('authentication.password.options.high'),
48
+ value: 'High'
49
+ },
50
+ ],
51
+ },
52
+ },
53
+ description: await trans('authentication.password.description'),
54
+ })
55
+ .addSetting({
56
+ key: 'password-expiry-days',
57
+ title: await trans('authentication.password-expiry.title'),
58
+ scope: 'T',
59
+ isInherited: true,
60
+ defaultValue: 90,
61
+ widget: {
62
+ type: AXPWidgetsCatalog.number,
63
+ options: {
64
+ minValue: 30,
65
+ maxValue: 365,
66
+ step: 1
67
+ },
68
+ },
69
+ description: await trans('authentication.password-expiry.description'),
70
+ })
71
+ .addSetting({
72
+ key: 'max-login-attempts',
73
+ title: await trans('authentication.max-attempts.title'),
74
+ scope: 'T',
75
+ isInherited: true,
76
+ defaultValue: 5,
77
+ widget: {
78
+ type: AXPWidgetsCatalog.number,
79
+ options: {
80
+ minValue: 3,
81
+ maxValue: 10,
82
+ step: 1
83
+ },
84
+ },
85
+ description: await trans('authentication.max-attempts.description'),
86
+ })
87
+ .addSetting({
88
+ key: 'lockout-duration',
89
+ title: await trans('authentication.lockout.title'),
90
+ scope: 'T',
91
+ isInherited: true,
92
+ defaultValue: 15,
93
+ widget: {
94
+ type: AXPWidgetsCatalog.number,
95
+ options: {
96
+ minValue: 5,
97
+ maxValue: 60,
98
+ step: 5
99
+ },
100
+ },
101
+ description: await trans('authentication.lockout.description'),
102
+ })
103
+ .endSection()
104
+ // Session Management - Tenant Level
105
+ .addSection('session-management', await trans('session.title'), await trans('session.description'))
106
+ .addSetting({
107
+ key: 'session-timeout',
108
+ title: 'Session Timeout Duration',
109
+ scope: 'T',
110
+ isInherited: true,
111
+ defaultValue: 5,
112
+ widget: {
113
+ type: 'number-editor',
114
+ options: {
115
+ min: 5,
116
+ max: 60,
117
+ step: 1,
118
+ },
119
+ },
120
+ description: 'Set the session timeout duration (in minutes) for the user.',
121
+ })
122
+ .endSection()
123
+ .endGroup();
124
+ }
125
+ }
126
+
127
+ export { AXMSettingProvider };
128
+ //# sourceMappingURL=acorex-modules-auth-setting.provider-CM-T8nbI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-auth-setting.provider-CM-T8nbI.mjs","sources":["../../../../libs/modules/auth/src/lib/setting.provider.ts"],"sourcesContent":["import { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext\n} from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n private readonly translateService = this.injector.get(AXTranslationService);\n\n constructor(private injector: Injector) { }\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n const trans = async (key: string) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'auth' });\n\n context\n .addGroup(\n 'security-settings',\n await trans('title'),\n await trans('description'),\n 'fa-light fa-lock'\n )\n // Authentication Section - Tenant Level\n .addSection(\n 'authentication',\n await trans('authentication.title'),\n await trans('authentication.description')\n )\n .addSetting({\n key: 'two-factor-auth',\n title: await trans('authentication.two-factor.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: await trans('authentication.two-factor.description'),\n })\n .addSetting({\n key: 'password-complexity',\n title: await trans('authentication.password.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: 'Medium',\n widget: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n text: await trans('authentication.password.options.low'),\n value: 'Low'\n },\n {\n text: await trans('authentication.password.options.medium'),\n value: 'Medium'\n },\n {\n text: await trans('authentication.password.options.high'),\n value: 'High'\n },\n ],\n },\n },\n description: await trans('authentication.password.description'),\n })\n .addSetting({\n key: 'password-expiry-days',\n title: await trans('authentication.password-expiry.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: 90,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 30,\n maxValue: 365,\n step: 1\n },\n },\n description: await trans('authentication.password-expiry.description'),\n })\n .addSetting({\n key: 'max-login-attempts',\n title: await trans('authentication.max-attempts.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: 5,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 3,\n maxValue: 10,\n step: 1\n },\n },\n description: await trans('authentication.max-attempts.description'),\n })\n .addSetting({\n key: 'lockout-duration',\n title: await trans('authentication.lockout.title'),\n scope: 'T',\n isInherited: true,\n defaultValue: 15,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 5,\n maxValue: 60,\n step: 5\n },\n },\n description: await trans('authentication.lockout.description'),\n })\n .endSection()\n\n // Session Management - Tenant Level\n .addSection(\n 'session-management',\n await trans('session.title'),\n await trans('session.description')\n )\n .addSetting({\n key: 'session-timeout',\n title: 'Session Timeout Duration',\n scope: 'T',\n isInherited: true,\n defaultValue: 5,\n widget: {\n type: 'number-editor',\n options: {\n min: 5,\n max: 60,\n step: 1,\n },\n },\n description: 'Set the session timeout duration (in minutes) for the user.',\n })\n .endSection()\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;MAQa,kBAAkB,CAAA;AAG7B,IAAA,WAAA,CAAoB,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAFX,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC;;IAI3E,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD,MAAM,KAAK,GAAG,OAAO,GAAW,KAAK,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAY,SAAA,EAAA,GAAG,CAAE,CAAA,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAErH;AACG,aAAA,QAAQ,CACP,mBAAmB,EACnB,MAAM,KAAK,CAAC,OAA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AE,iBAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACP,oBAAA,QAAQ,EAAE,CAAC;AACX,oBAAA,QAAQ,EAAE,EAAE;AACZ,oBAAA,IAAI,EAAE;AACP,iBAAA;AACF,aAAA;AACD,YAAA,WAAW,EAAE,MAAM,KAAK,CAAC,oCAAoC,CAAC;SAC/D;AACA,aAAA,UAAU;;AAGV,aAAA,UAAU,CACT,oBAAoB,EACpB,MAAM,KAAK,CAAC,eAAe,CAAC,EAC5B,MAAM,KAAK,CAAC,qBAAqB,CAAC;AAEnC,aAAA,UAAU,CAAC;AACV,YAAA,GAAG,EAAE,iBAAiB;AACtB,YAAA,KAAK,EAAE,0BAA0B;AACjC,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,OAAO,EAAE;AACP,oBAAA,GAAG,EAAE,CAAC;AACN,oBAAA,GAAG,EAAE,EAAE;AACP,oBAAA,IAAI,EAAE,CAAC;AACR,iBAAA;AACF,aAAA;AACD,YAAA,WAAW,EAAE,6DAA6D;SAC3E;AACA,aAAA,UAAU;AACV,aAAA,QAAQ,EAAE;;AAEhB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, NgModule } from '@angular/core';
3
3
  import { RouterModule, ROUTES } from '@angular/router';
4
- import { A as AXM_AUTH_CONFIG_TOKEN } from './acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs';
4
+ import { A as AXM_AUTH_CONFIG_TOKEN } from './acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs';
5
5
 
6
6
  function routesFacory() {
7
7
  const val = inject(AXM_AUTH_CONFIG_TOKEN);
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
42
42
  }] });
43
43
 
44
44
  export { AXPTwoFactorModule };
45
- //# sourceMappingURL=acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map
45
+ //# sourceMappingURL=acorex-modules-auth-two-factor.module-BV_amlHF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-auth-two-factor.module-BrDpX4X1.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/two-factor/two-factor.module.ts"],"sourcesContent":["import { inject, NgModule } from '@angular/core';\nimport { RouterModule, ROUTES, Routes } from '@angular/router';\nimport { AXM_AUTH_CONFIG_TOKEN } from '../../auth.config';\n\nfunction routesFacory() {\n const val = inject(AXM_AUTH_CONFIG_TOKEN);\n let routes: Routes = [];\n routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then((c) => c.AXPAuthTwoFactorCodeComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule {}\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACzC,IAAI,MAAM,GAAW,EAAE;AACvB,IAAA,MAAM,GAAG;AACP,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,aAAa,EAAE,MACb,OAAO,8DAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,CAAC;AACrG,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAVnB,YAAY,CAAA,EAAA,CAAA,CAAA;AAUX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EARlB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CARS,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAUX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-auth-two-factor.module-BV_amlHF.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/two-factor/two-factor.module.ts"],"sourcesContent":["import { inject, NgModule } from '@angular/core';\nimport { RouterModule, ROUTES, Routes } from '@angular/router';\nimport { AXM_AUTH_CONFIG_TOKEN } from '../../auth.config';\n\nfunction routesFacory() {\n const val = inject(AXM_AUTH_CONFIG_TOKEN);\n let routes: Routes = [];\n routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then((c) => c.AXPAuthTwoFactorCodeComponent),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule {}\n"],"names":[],"mappings":";;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACzC,IAAI,MAAM,GAAW,EAAE;AACvB,IAAA,MAAM,GAAG;AACP,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,aAAa,EAAE,MACb,OAAO,8DAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,CAAC;AACrG,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAVnB,YAAY,CAAA,EAAA,CAAA,CAAA;AAUX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EARlB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CARS,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAUX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;;;"}
@@ -0,0 +1,135 @@
1
+ import { AXButtonModule } from '@acorex/components/button';
2
+ import { AXDataSource } from '@acorex/components/common';
3
+ import * as i1 from '@acorex/components/decorators';
4
+ import { AXDecoratorModule } from '@acorex/components/decorators';
5
+ import { AXDropdownModule } from '@acorex/components/dropdown';
6
+ import { AXPopoverModule } from '@acorex/components/popover';
7
+ import { AXPopupService } from '@acorex/components/popup';
8
+ import * as i4 from '@acorex/components/select-box';
9
+ import { AXSelectBoxModule } from '@acorex/components/select-box';
10
+ import { AXPlatform } from '@acorex/core/platform';
11
+ import { AXTranslationService } from '@acorex/core/translation';
12
+ import { AXPSessionService } from '@acorex/platform/auth';
13
+ import { AXPSettingService } from '@acorex/platform/common';
14
+ import { AXPPlatformScope } from '@acorex/platform/core';
15
+ import * as i1$1 from '@angular/common';
16
+ import { CommonModule } from '@angular/common';
17
+ import * as i0 from '@angular/core';
18
+ import { signal, inject, ChangeDetectorRef, computed, ChangeDetectionStrategy, Component } from '@angular/core';
19
+ import * as i3 from '@angular/forms';
20
+ import { FormsModule } from '@angular/forms';
21
+ import { d as AXMUserDeviceSessionsService } from './acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs';
22
+
23
+ class AXMUserSessionsComponent {
24
+ constructor() {
25
+ this.AXPTokenExpirationDurations = {
26
+ oneWeek: 'oneWeek',
27
+ oneMonth: 'oneMonth',
28
+ threeMonths: 'threeMonths',
29
+ sixMonths: 'sixMonths',
30
+ };
31
+ this.items = signal([]);
32
+ this.activeSession = signal(undefined);
33
+ this.expireTime = signal(null);
34
+ this.expirationItems = [
35
+ { name: 'Terminate in 1 week', id: this.AXPTokenExpirationDurations.oneWeek },
36
+ { name: 'Terminate in 1 month', id: this.AXPTokenExpirationDurations.oneMonth },
37
+ { name: 'Terminate in 3 month', id: this.AXPTokenExpirationDurations.threeMonths },
38
+ { name: 'Terminate in 6 month', id: this.AXPTokenExpirationDurations.sixMonths },
39
+ ];
40
+ this.dataSource = new AXDataSource({
41
+ pageSize: 10,
42
+ key: 'id',
43
+ load: async (e) => {
44
+ let items = this.expirationItems;
45
+ return {
46
+ items,
47
+ total: items.length,
48
+ };
49
+ },
50
+ });
51
+ this.userDeviceSessionsService = inject(AXMUserDeviceSessionsService);
52
+ this.cdRef = inject(ChangeDetectorRef);
53
+ this.popupService = inject(AXPopupService);
54
+ this.platform = inject(AXPlatform);
55
+ this.translateService = inject(AXTranslationService);
56
+ this.sessionService = inject(AXPSessionService);
57
+ this.settingService = inject(AXPSettingService);
58
+ // ✅ Use a computed signal to update dynamically when items change
59
+ this.itemsWithIcons = computed(() => this.items().map((item) => ({
60
+ ...item,
61
+ icon: this.getDeviceIcon(item.deviceName),
62
+ })));
63
+ this.loadUserSessions();
64
+ }
65
+ async loadUserSessions() {
66
+ try {
67
+ let sessions = await this.userDeviceSessionsService.getSessions();
68
+ this.items.set(sessions);
69
+ const activeSession = await this.userDeviceSessionsService.getCurrentActiveSessions();
70
+ this.activeSession.set(activeSession);
71
+ const sessionTimeout = await this.settingService.scope(AXPPlatformScope.User).get('session-timeout');
72
+ if (sessionTimeout && sessionTimeout.id in this.AXPTokenExpirationDurations) {
73
+ let selectedItem = this.expirationItems.find((item) => item.id === sessionTimeout.id);
74
+ if (selectedItem) {
75
+ this.expireTime.set({ name: selectedItem.name, id: selectedItem.id });
76
+ }
77
+ }
78
+ }
79
+ catch (error) {
80
+ console.error('Error loading user sessions', error);
81
+ }
82
+ }
83
+ getDeviceIcon(deviceName) {
84
+ if (!deviceName)
85
+ return 'fa-solid fa-question'; // Default icon if no name is provided
86
+ const lowerCaseName = deviceName.toLowerCase();
87
+ if (lowerCaseName.includes('windows'))
88
+ return 'fa-brands fa-microsoft';
89
+ if (lowerCaseName.includes('mac'))
90
+ return 'fa-brands fa-microsoft';
91
+ if (lowerCaseName.includes('linux'))
92
+ return 'fa-brands fa-microsoft';
93
+ if (lowerCaseName.includes('android'))
94
+ return 'fa-brands fa-android';
95
+ if (lowerCaseName.includes('ios'))
96
+ return 'fa-brands fa-apple';
97
+ if (lowerCaseName.includes('ipad'))
98
+ return 'fa-brands fa-apple';
99
+ if (lowerCaseName.includes('iphone'))
100
+ return 'fa-brands fa-apple';
101
+ return 'fa-solid fa-question'; // Default icon if no match
102
+ }
103
+ onChangeSessionExpireTime(e) {
104
+ this.userDeviceSessionsService.setTokenLifetimeMinutes(e.component.selectedItems[0]);
105
+ }
106
+ async onTerminate(sessionId) {
107
+ if (!sessionId) {
108
+ console.error('No item to terminate');
109
+ return;
110
+ }
111
+ await this.userDeviceSessionsService.terminateSession(sessionId);
112
+ await this.loadUserSessions();
113
+ }
114
+ async onTerminateAll() {
115
+ await this.userDeviceSessionsService.terminateAllSession();
116
+ await this.loadUserSessions();
117
+ }
118
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
119
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMUserSessionsComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"ax-mx-auto ax-p-6\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mb-4\">This Device</p>\n <div\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-primary-200 ax-border ax-bg-primary-50 ax-rounded-lg\">\n <i class=\"{{ getDeviceIcon(activeSession()?.deviceName) }} ax-text-primary-500 ax-m-3\"></i>\n </div>\n <div *ngIf=\"activeSession()\">\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ activeSession()?.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ activeSession()?.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ activeSession()?.location }} <span>{{ activeSession()?.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\"\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-danger-200 ax-border ax-bg-danger-50 ax-rounded-lg\">\n <i class=\"ax-icon ax-icon-clear ax-text-danger-500 ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2 ax-cursor-pointer\" (click)=\"onTerminateAll()\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">Terminate All Other Sessions</div>\n <p class=\"ax-font-normal ax-text-sm ax-subtitle-on-lightest\">Log out all devices exept for this one.</p>\n </div>\n </div>\n <div *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mt-4 ax-mb-4\">Active Devices</p>\n <div *ngFor=\"let item of itemsWithIcons()\">\n <div\n class=\"ax-flex ax-border ax-items-center ax-relative ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <i\n class=\"ax-icon ax-icon-close ax-absolute ax-end-2 ax-top-2 ax-cursor-pointer\"\n (click)=\"onTerminate(item.id)\"\n ></i>\n\n <div class=\"ax-border ax-rounded-lg\">\n <i class=\"{{ item.icon }} ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ item.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ item.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ item.location }} <span>{{ item.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <ax-footer>\n <div class=\"ax-flex-col ax-w-full\">\n <div>\n <p class=\"ax-text-danger-500 ax-font-medium ax-text-base\">Terminate Old Sessions</p>\n </div>\n <div>\n <ax-suffix>\n <div class=\"ax-flex ax-items-center ax-justify-between ax-mt-4\">\n <div class=\"ax-font-normal ax-text-base ax-text-on-lightest\">If inactive for...</div>\n <div class=\"ax-w-3/6\">\n <ax-select-box [ngModel]=\"expireTime()\" (onValueChanged)=\"onChangeSessionExpireTime($event)\" [dataSource]=\"dataSource\" textField=\"name\" valueField=\"id\" placeholder=\"Choose...\">\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n </ax-footer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i4.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXPopoverModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
120
+ }
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMUserSessionsComponent, decorators: [{
122
+ type: Component,
123
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [
124
+ AXButtonModule,
125
+ AXDecoratorModule,
126
+ CommonModule,
127
+ FormsModule,
128
+ AXSelectBoxModule,
129
+ AXDropdownModule,
130
+ AXPopoverModule,
131
+ ], template: "<div class=\"ax-mx-auto ax-p-6\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mb-4\">This Device</p>\n <div\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-primary-200 ax-border ax-bg-primary-50 ax-rounded-lg\">\n <i class=\"{{ getDeviceIcon(activeSession()?.deviceName) }} ax-text-primary-500 ax-m-3\"></i>\n </div>\n <div *ngIf=\"activeSession()\">\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ activeSession()?.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ activeSession()?.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ activeSession()?.location }} <span>{{ activeSession()?.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\"\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-danger-200 ax-border ax-bg-danger-50 ax-rounded-lg\">\n <i class=\"ax-icon ax-icon-clear ax-text-danger-500 ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2 ax-cursor-pointer\" (click)=\"onTerminateAll()\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">Terminate All Other Sessions</div>\n <p class=\"ax-font-normal ax-text-sm ax-subtitle-on-lightest\">Log out all devices exept for this one.</p>\n </div>\n </div>\n <div *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mt-4 ax-mb-4\">Active Devices</p>\n <div *ngFor=\"let item of itemsWithIcons()\">\n <div\n class=\"ax-flex ax-border ax-items-center ax-relative ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <i\n class=\"ax-icon ax-icon-close ax-absolute ax-end-2 ax-top-2 ax-cursor-pointer\"\n (click)=\"onTerminate(item.id)\"\n ></i>\n\n <div class=\"ax-border ax-rounded-lg\">\n <i class=\"{{ item.icon }} ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ item.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ item.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ item.location }} <span>{{ item.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <ax-footer>\n <div class=\"ax-flex-col ax-w-full\">\n <div>\n <p class=\"ax-text-danger-500 ax-font-medium ax-text-base\">Terminate Old Sessions</p>\n </div>\n <div>\n <ax-suffix>\n <div class=\"ax-flex ax-items-center ax-justify-between ax-mt-4\">\n <div class=\"ax-font-normal ax-text-base ax-text-on-lightest\">If inactive for...</div>\n <div class=\"ax-w-3/6\">\n <ax-select-box [ngModel]=\"expireTime()\" (onValueChanged)=\"onChangeSessionExpireTime($event)\" [dataSource]=\"dataSource\" textField=\"name\" valueField=\"id\" placeholder=\"Choose...\">\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n </ax-footer>\n</div>\n" }]
132
+ }], ctorParameters: () => [] });
133
+
134
+ export { AXMUserSessionsComponent };
135
+ //# sourceMappingURL=acorex-modules-auth-user-sessions.component-CjXRKjtX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-auth-user-sessions.component-CjXRKjtX.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/account/user-sessions/user-sessions.component.ts","../../../../libs/modules/auth/src/lib/pages/account/user-sessions/user-sessions.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXPlatform } from '@acorex/core/platform';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXMSecurityManagementDeviceSessionsEntityModel } from '@acorex/modules/security-management';\nimport { AXPSessionService } from '@acorex/platform/auth';\nimport { AXPSettingService } from '@acorex/platform/common';\nimport { AXPPlatformScope } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, computed, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXMUserDeviceSessionsService } from './user-sessions.service';\n@Component({\n templateUrl: './user-sessions.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AXButtonModule,\n AXDecoratorModule,\n CommonModule,\n FormsModule,\n AXSelectBoxModule,\n AXDropdownModule,\n AXPopoverModule,\n ],\n})\nexport class AXMUserSessionsComponent {\n AXPTokenExpirationDurations = {\n oneWeek: 'oneWeek',\n oneMonth: 'oneMonth',\n threeMonths: 'threeMonths',\n sixMonths: 'sixMonths',\n };\n\n items = signal<AXMSecurityManagementDeviceSessionsEntityModel[]>([]);\n activeSession = signal<AXMSecurityManagementDeviceSessionsEntityModel | undefined>(undefined);\n expireTime = signal<{ name: string; id: string } | null>(null);\n\n expirationItems = [\n { name: 'Terminate in 1 week', id: this.AXPTokenExpirationDurations.oneWeek },\n { name: 'Terminate in 1 month', id: this.AXPTokenExpirationDurations.oneMonth },\n { name: 'Terminate in 3 month', id: this.AXPTokenExpirationDurations.threeMonths },\n { name: 'Terminate in 6 month', id: this.AXPTokenExpirationDurations.sixMonths },\n ];\n protected dataSource = new AXDataSource<any>({\n pageSize: 10,\n key: 'id',\n load: async (e) => {\n let items = this.expirationItems;\n return {\n items,\n total: items.length,\n };\n },\n });\n private userDeviceSessionsService = inject(AXMUserDeviceSessionsService);\n private cdRef = inject(ChangeDetectorRef);\n private popupService = inject(AXPopupService);\n private platform = inject(AXPlatform);\n private translateService = inject(AXTranslationService);\n private sessionService = inject(AXPSessionService);\n private settingService = inject(AXPSettingService);\n\n constructor() {\n this.loadUserSessions();\n }\n\n private async loadUserSessions(): Promise<void> {\n try {\n let sessions = await this.userDeviceSessionsService.getSessions();\n this.items.set(sessions);\n const activeSession = await this.userDeviceSessionsService.getCurrentActiveSessions();\n this.activeSession.set(activeSession);\n const sessionTimeout = await this.settingService.scope(AXPPlatformScope.User).get('session-timeout');\n if (sessionTimeout && sessionTimeout.id in this.AXPTokenExpirationDurations) {\n let selectedItem = this.expirationItems.find((item) => item.id === sessionTimeout.id);\n if (selectedItem) {\n this.expireTime.set({ name: selectedItem.name, id: selectedItem.id });\n }\n }\n } catch (error) {\n console.error('Error loading user sessions', error);\n }\n }\n\n // ✅ Use a computed signal to update dynamically when items change\n itemsWithIcons = computed(() =>\n this.items().map((item) => ({\n ...item,\n icon: this.getDeviceIcon(item.deviceName),\n }))\n );\n\n getDeviceIcon(deviceName: string | undefined): string {\n if (!deviceName) return 'fa-solid fa-question'; // Default icon if no name is provided\n\n const lowerCaseName = deviceName.toLowerCase();\n\n if (lowerCaseName.includes('windows')) return 'fa-brands fa-microsoft';\n if (lowerCaseName.includes('mac')) return 'fa-brands fa-microsoft';\n if (lowerCaseName.includes('linux')) return 'fa-brands fa-microsoft';\n if (lowerCaseName.includes('android')) return 'fa-brands fa-android';\n if (lowerCaseName.includes('ios')) return 'fa-brands fa-apple';\n if (lowerCaseName.includes('ipad')) return 'fa-brands fa-apple';\n if (lowerCaseName.includes('iphone')) return 'fa-brands fa-apple';\n\n return 'fa-solid fa-question'; // Default icon if no match\n }\n\n protected onChangeSessionExpireTime(e: AXValueChangedEvent) {\n this.userDeviceSessionsService.setTokenLifetimeMinutes(e.component.selectedItems[0]);\n }\n\n async onTerminate(sessionId: string | undefined): Promise<void> {\n if (!sessionId) {\n console.error('No item to terminate');\n return;\n }\n await this.userDeviceSessionsService.terminateSession(sessionId);\n await this.loadUserSessions();\n }\n\n async onTerminateAll() {\n await this.userDeviceSessionsService.terminateAllSession();\n await this.loadUserSessions();\n }\n}\n","<div class=\"ax-mx-auto ax-p-6\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mb-4\">This Device</p>\n <div\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-primary-200 ax-border ax-bg-primary-50 ax-rounded-lg\">\n <i class=\"{{ getDeviceIcon(activeSession()?.deviceName) }} ax-text-primary-500 ax-m-3\"></i>\n </div>\n <div *ngIf=\"activeSession()\">\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ activeSession()?.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ activeSession()?.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ activeSession()?.location }} <span>{{ activeSession()?.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\"\n class=\"ax-flex ax-border ax-items-center ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <div class=\"ax-border-danger-200 ax-border ax-bg-danger-50 ax-rounded-lg\">\n <i class=\"ax-icon ax-icon-clear ax-text-danger-500 ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2 ax-cursor-pointer\" (click)=\"onTerminateAll()\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">Terminate All Other Sessions</div>\n <p class=\"ax-font-normal ax-text-sm ax-subtitle-on-lightest\">Log out all devices exept for this one.</p>\n </div>\n </div>\n <div *ngIf=\"itemsWithIcons() && itemsWithIcons().length > 0\">\n <p class=\"ax-font-semibold ax-text-base ax-text-on-lightest ax-mt-4 ax-mb-4\">Active Devices</p>\n <div *ngFor=\"let item of itemsWithIcons()\">\n <div\n class=\"ax-flex ax-border ax-items-center ax-relative ax-rounded-lg ax-border-lightest ax-bg-lightest ax-text-on-lightest ax-mb-3 ax-p-3\"\n >\n <i\n class=\"ax-icon ax-icon-close ax-absolute ax-end-2 ax-top-2 ax-cursor-pointer\"\n (click)=\"onTerminate(item.id)\"\n ></i>\n\n <div class=\"ax-border ax-rounded-lg\">\n <i class=\"{{ item.icon }} ax-m-3\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-ml-2\">\n <div class=\"ax-font-medium ax-text-base ax-text-on-lightest\">{{ item.deviceName }}</div>\n <div class=\"ax-font-normal ax-text-sm ax-text-on-lightest\">{{ item.operatingSystem }}</div>\n <p class=\"ax-font-normal ax-text-xs ax-subtitle-on-lightest\">\n {{ item.location }} <span>{{ item.lastLoginDate | date : 'yyyy/MM/dd HH:mm' }}</span>\n </p>\n </div>\n </div>\n </div>\n </div>\n <ax-footer>\n <div class=\"ax-flex-col ax-w-full\">\n <div>\n <p class=\"ax-text-danger-500 ax-font-medium ax-text-base\">Terminate Old Sessions</p>\n </div>\n <div>\n <ax-suffix>\n <div class=\"ax-flex ax-items-center ax-justify-between ax-mt-4\">\n <div class=\"ax-font-normal ax-text-base ax-text-on-lightest\">If inactive for...</div>\n <div class=\"ax-w-3/6\">\n <ax-select-box [ngModel]=\"expireTime()\" (onValueChanged)=\"onChangeSessionExpireTime($event)\" [dataSource]=\"dataSource\" textField=\"name\" valueField=\"id\" placeholder=\"Choose...\">\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n </ax-footer>\n</div>\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MA8Ba,wBAAwB,CAAA;AAqCnC,IAAA,WAAA,GAAA;AApCA,QAAA,IAAA,CAAA,2BAA2B,GAAG;AAC5B,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,QAAQ,EAAE,UAAU;AACpB,YAAA,WAAW,EAAE,aAAa;AAC1B,YAAA,SAAS,EAAE,WAAW;SACvB;AAED,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAmD,EAAE,CAAC;AACpE,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CA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as AXMAuthErrorHandler, g as AXMAuthModule, a as AXMAuthenticationTypes, e as AXMDefaultAuthConfigs, A as AXM_AUTH_CONFIG_TOKEN, h as AXPIdleService, f as configAuthModule } from './acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs';
1
+ export { e as AXMAuthErrorHandler, h as AXMAuthModule, a as AXMAuthenticationTypes, f as AXMDefaultAuthConfigs, A as AXM_AUTH_CONFIG_TOKEN, i as AXPIdleService, g as configAuthModule } from './acorex-modules-auth-acorex-modules-auth-DoIq3IkC.mjs';
2
2
  //# sourceMappingURL=acorex-modules-auth.mjs.map