@acorex/modules 19.3.0-next.1 → 19.3.0-next.3
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.
- package/auth/lib/pages/account/app-chooser/app-chooser-list.component.d.ts +1 -0
- package/auth/lib/pages/account/profile/profile-slot.component.d.ts +4 -0
- package/auth/lib/pages/account/tenant-chooser/tenant-chooser.component.d.ts +3 -0
- package/auth/lib/pages/account/user-sessions/user-sessions.component.d.ts +71 -0
- package/auth/lib/pages/account/user-sessions/user-sessions.service.d.ts +22 -0
- package/common/index.d.ts +2 -1
- package/common/lib/common.module.d.ts +2 -1
- package/common/lib/entities/dashboard/dashboard.types.d.ts +1 -1
- package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.d.ts +5 -2
- package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.store.d.ts +2 -0
- package/common/lib/features/home-dashboard/dashboard-home/home-dashboard.type.d.ts +1 -1
- package/common/lib/features/home-dashboard/home-dashboard.module.d.ts +7 -0
- package/common/lib/features/home-dashboard/widget-wrapper/dashboard-widget-wrapper.d.ts +10 -3
- package/common/lib/features/home-dashboard/widgets/dashboard-shortcut/dashboard-shortcut-widget-view.component.d.ts +24 -0
- package/common/lib/features/home-dashboard/widgets/dashboard-shortcut/dashboard-shortcut-widget.config.d.ts +2 -0
- package/common/lib/menu.provider.d.ts +1 -0
- package/common/lib/widgets-names-list.d.ts +39 -0
- package/document-management/index.d.ts +1 -1
- package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-column.component.d.ts +2 -2
- package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-designer.component.d.ts +2 -2
- package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-edit.component.d.ts +2 -2
- package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-view.component.d.ts +2 -2
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +2 -2
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +10 -2
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +2 -2
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-Dd_lmV6C.mjs → acorex-modules-application-management-module-designer.component-ClxaJcjD.mjs} +9 -9
- 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
- package/fesm2022/acorex-modules-application-management.mjs +14 -15
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs → acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs} +100 -28
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs → acorex-modules-auth-app-chooser.component-rr25Ry55.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs.map → acorex-modules-auth-app-chooser.component-rr25Ry55.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-B_WrZQJx.mjs → acorex-modules-auth-login.module-BgTtZuTg.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-B_WrZQJx.mjs.map → acorex-modules-auth-login.module-BgTtZuTg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-hDbrFbwO.mjs → acorex-modules-auth-master.layout-he9vVKsC.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-hDbrFbwO.mjs.map → acorex-modules-auth-master.layout-he9vVKsC.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-DDE0M5GE.mjs → acorex-modules-auth-password.component-U16w7Rq4.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-password.component-DDE0M5GE.mjs.map → acorex-modules-auth-password.component-U16w7Rq4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-BnT_IaqN.mjs → acorex-modules-auth-password.component-_ceO6nyb.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-password.component-BnT_IaqN.mjs.map → acorex-modules-auth-password.component-_ceO6nyb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-Da02kID6.mjs → acorex-modules-auth-routes-CSGjcpD8.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-Da02kID6.mjs.map → acorex-modules-auth-routes-CSGjcpD8.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-settings.provider-CM-T8nbI.mjs +128 -0
- package/fesm2022/acorex-modules-auth-settings.provider-CM-T8nbI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-YZBKyJFH.mjs → acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs} +24 -10
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B2ZYJOrN.mjs → acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-B2ZYJOrN.mjs.map → acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-BrDpX4X1.mjs → acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map → acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs +135 -0
- package/fesm2022/acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs +139 -0
- package/fesm2022/acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-index-rvP9ISgL.mjs → acorex-modules-common-index-Dt3vRkkx.mjs} +141 -37
- package/fesm2022/acorex-modules-common-index-Dt3vRkkx.mjs.map +1 -0
- package/fesm2022/acorex-modules-common.mjs +168 -30
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs → acorex-modules-document-management-acorex-modules-document-management-CRoewhvP.mjs} +59 -56
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CRoewhvP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs → acorex-modules-document-management-create-folder-dialog.component-m7SsCGA1.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs.map → acorex-modules-document-management-create-folder-dialog.component-m7SsCGA1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-BFMgAxeK.mjs → acorex-modules-document-management-details-view.component-CWvWCgXL.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-BFMgAxeK.mjs.map → acorex-modules-document-management-details-view.component-CWvWCgXL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs → acorex-modules-document-management-drive-choose.component-Dh9nJCMs.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs.map → acorex-modules-document-management-drive-choose.component-Dh9nJCMs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs → acorex-modules-document-management-large-icons-view.component-DZ5MHPYz.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs.map → acorex-modules-document-management-large-icons-view.component-DZ5MHPYz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs → acorex-modules-document-management-large-tiles-view.component-CS_2hXao.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs.map → acorex-modules-document-management-large-tiles-view.component-CS_2hXao.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-BPkaAGjR.mjs → acorex-modules-document-management-list-view.component-L1hUtLp8.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-BPkaAGjR.mjs.map → acorex-modules-document-management-list-view.component-L1hUtLp8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs → acorex-modules-document-management-rename-node-dialog.component-4fkD6VF4.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs.map → acorex-modules-document-management-rename-node-dialog.component-4fkD6VF4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs → acorex-modules-document-management-small-icons-view.component-CfHVW4AR.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs.map → acorex-modules-document-management-small-icons-view.component-CfHVW4AR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs → acorex-modules-document-management-small-tiles-view.component-CJJ4KRcD.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs.map → acorex-modules-document-management-small-tiles-view.component-CJJ4KRcD.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-Di2Dkvbh.mjs} +19 -18
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-Di2Dkvbh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs → acorex-modules-form-template-management-category.entity-Cv-0gZOh.mjs} +12 -5
- package/fesm2022/acorex-modules-form-template-management-category.entity-Cv-0gZOh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs → acorex-modules-form-template-management-settings.provider-BZoYtsfh.mjs} +13 -5
- package/fesm2022/acorex-modules-form-template-management-settings.provider-BZoYtsfh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs → acorex-modules-form-template-management-template-widget-edit.component-CNFyBxpm.mjs} +5 -5
- package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CNFyBxpm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs → acorex-modules-form-template-management-template.entity-DbWv7ar9.mjs} +9 -9
- package/fesm2022/acorex-modules-form-template-management-template.entity-DbWv7ar9.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs → acorex-modules-form-template-management-viewer-popup.component-CMrQl-UQ.mjs} +3 -3
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs.map → acorex-modules-form-template-management-viewer-popup.component-CMrQl-UQ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/acorex-modules-log-management.mjs +1351 -0
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +22 -21
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs +489 -0
- package/fesm2022/acorex-modules-organization-management-branch.entity-fs_iKM4S.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-chart.entity-DnmNyyD2.mjs → acorex-modules-organization-management-chart.entity-UAn44WCP.mjs} +14 -13
- package/fesm2022/acorex-modules-organization-management-chart.entity-UAn44WCP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-company.entity-BRkEcDNt.mjs → acorex-modules-organization-management-company.entity-D1A1HSkC.mjs} +12 -11
- package/fesm2022/acorex-modules-organization-management-company.entity-D1A1HSkC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employee.entity-Cp5TejzT.mjs → acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs} +192 -85
- package/fesm2022/acorex-modules-organization-management-department.entity-DI9QpZ1d.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs +442 -0
- package/fesm2022/acorex-modules-organization-management-division.entity-4Gxc1dGd.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs +601 -0
- package/fesm2022/acorex-modules-organization-management-employee.entity-DSvtxcC3.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employment-type.entity-Ul10Mdwm.mjs → acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs} +21 -25
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs → acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-DFqOS0So.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs → acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-2EZNvjAH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs → acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs.map → acorex-modules-organization-management-org-chart.page-eDTvyQpA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-position.entity-BpQbwW-x.mjs → acorex-modules-organization-management-position.entity-DhPT9kzv.mjs} +12 -11
- package/fesm2022/acorex-modules-organization-management-position.entity-DhPT9kzv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-division.entity-qyDyhl-q.mjs → acorex-modules-organization-management-role.entity-C-AIIaDo.mjs} +31 -39
- package/fesm2022/acorex-modules-organization-management-role.entity-C-AIIaDo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-setting.keys-CF6Giykz.mjs → acorex-modules-organization-management-settings.keys-B3cgSi_S.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-settings.keys-B3cgSi_S.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs → acorex-modules-organization-management-settings.provider-hlbUXugb.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-settings.provider-hlbUXugb.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-branch.entity-e5pFx82N.mjs → acorex-modules-organization-management-team.entity-DZqK-yLT.mjs} +71 -60
- package/fesm2022/acorex-modules-organization-management-team.entity-DZqK-yLT.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +77 -40
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs → acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs} +3772 -1443
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-pKyqsPS6.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs +28 -0
- package/fesm2022/acorex-modules-platform-management-capture-screen.component-DN1Jnp7_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-EHtlPye1.mjs → acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs} +7 -7
- package/fesm2022/{acorex-modules-platform-management-list-version.component-EHtlPye1.mjs.map → acorex-modules-platform-management-list-version.component-SLcO7Tof.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs → acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs} +34 -18
- package/fesm2022/acorex-modules-platform-management-settings.provider-CsrDpQQi.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +1147 -461
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs → acorex-modules-text-template-management-settings.provider-fX0dhWUL.mjs} +1 -1
- package/fesm2022/acorex-modules-text-template-management-settings.provider-fX0dhWUL.mjs.map +1 -0
- package/fesm2022/acorex-modules-text-template-management.mjs +2 -2
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/form-template-management/lib/features/designer/widgets/template/template-widget-designer.component.d.ts +2 -2
- package/form-template-management/lib/features/designer/widgets/template/template-widget-edit.component.d.ts +2 -2
- package/form-template-management/lib/features/designer/widgets/template/template-widget-view.component.d.ts +2 -2
- package/form-template-management/lib/features/designer/widgets/template-designer/template-designer-widget-view.component.d.ts +2 -2
- package/form-template-management/lib/settings.keys.d.ts +6 -0
- package/log-management/README.md +3 -0
- package/log-management/index.d.ts +7 -0
- package/log-management/lib/const.d.ts +20 -0
- package/log-management/lib/entities/axp-log/axp-log.entity.d.ts +3 -0
- package/log-management/lib/entities/axp-log/axp-log.service.d.ts +10 -0
- package/log-management/lib/entities/axp-log/axp-log.types.d.ts +23 -0
- package/log-management/lib/entities/axp-log/index.d.ts +3 -0
- package/log-management/lib/entity.provider.d.ts +10 -0
- package/log-management/lib/log-management.module.d.ts +6 -0
- package/log-management/lib/menu.provider.d.ts +5 -0
- package/log-management/lib/permission.provider.d.ts +4 -0
- package/log-management/lib/search-command.provider.d.ts +4 -0
- package/log-management/lib/settings.keys.d.ts +16 -0
- package/log-management/lib/settings.provider.d.ts +12 -0
- package/notification-management/index.d.ts +1 -1
- package/organization-management/lib/entities/branch/branch.types.d.ts +6 -0
- package/organization-management/lib/entities/department/department.types.d.ts +5 -0
- package/organization-management/lib/entities/division/division.types.d.ts +5 -0
- package/organization-management/lib/entities/employee/employee.types.d.ts +9 -1
- package/organization-management/lib/entities/role/role.types.d.ts +1 -1
- package/organization-management/lib/entities/team/team.types.d.ts +4 -1
- package/organization-management/lib/{setting.keys.d.ts → settings.keys.d.ts} +1 -1
- package/package.json +5 -1
- package/platform-management/index.d.ts +1 -0
- package/platform-management/lib/const.d.ts +24 -0
- package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +3 -2
- package/platform-management/lib/entities/index.d.ts +3 -0
- package/platform-management/lib/entities/issue-type/index.d.ts +3 -0
- package/platform-management/lib/entities/issue-type/issue-type.entity.d.ts +3 -0
- package/platform-management/lib/entities/issue-type/issue-type.service.d.ts +10 -0
- package/platform-management/lib/entities/issue-type/issue-type.types.d.ts +6 -0
- package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +3 -1
- package/platform-management/lib/entities/meta-data-definition-category/category.types.d.ts +2 -0
- package/platform-management/lib/entities/my-reported-issues/index.d.ts +3 -0
- package/platform-management/lib/entities/my-reported-issues/my-reported-issues.entity.d.ts +3 -0
- package/platform-management/lib/entities/my-reported-issues/my-reported-issues.service.d.ts +10 -0
- package/platform-management/lib/entities/my-reported-issues/my-reported-issues.types.d.ts +5 -0
- package/platform-management/lib/entities/reported-issues/index.d.ts +3 -0
- package/platform-management/lib/entities/reported-issues/reported-issues.entity.d.ts +3 -0
- package/platform-management/lib/entities/reported-issues/reported-issues.service.d.ts +10 -0
- package/platform-management/lib/entities/reported-issues/reported-issues.types.d.ts +21 -0
- package/platform-management/lib/features/index.d.ts +1 -0
- package/platform-management/lib/features/release-notes/settings.keys.d.ts +3 -0
- package/platform-management/lib/features/release-notes/settings.provider.d.ts +11 -0
- package/platform-management/lib/features/support/capture-screen/capture-screen.types.d.ts +19 -0
- package/platform-management/lib/features/support/capture-screen/components/capture-screen-component/capture-screen.component.d.ts +37 -0
- package/platform-management/lib/features/support/capture-screen/index.d.ts +2 -0
- package/platform-management/lib/features/support/capture-screen/services/capture-screen.service.d.ts +33 -0
- package/platform-management/lib/features/support/index.d.ts +2 -0
- package/platform-management/lib/features/support/report-issue/components/index.d.ts +1 -0
- package/platform-management/lib/features/support/report-issue/components/report-new-issue/report-new-issue.component.d.ts +40 -0
- package/platform-management/lib/features/support/report-issue/index.d.ts +2 -0
- package/platform-management/lib/features/support/report-issue/report-issue.types.d.ts +19 -0
- package/platform-management/lib/features/support/report-issue/services/report-new-issue.viewmodel.d.ts +15 -0
- package/platform-management/lib/features/support/report-issue/workflows/index.d.ts +1 -0
- package/platform-management/lib/features/support/report-issue/workflows/show-report-issue.workflow.d.ts +10 -0
- package/security-management/lib/const.d.ts +6 -0
- package/security-management/lib/entities/device-sessions/device-sessions.entity.d.ts +3 -0
- package/security-management/lib/entities/device-sessions/device-sessions.module.d.ts +6 -0
- package/security-management/lib/entities/device-sessions/device-sessions.service.d.ts +12 -0
- package/security-management/lib/entities/device-sessions/device-sessions.types.d.ts +34 -0
- package/security-management/lib/entities/device-sessions/index.d.ts +4 -0
- package/security-management/lib/entities/index.d.ts +1 -0
- package/security-management/lib/menu.keys.d.ts +2 -1
- package/security-management/lib/security-management.module.d.ts +6 -4
- package/security-management/lib/workflows/terminate-entity.workflow.d.ts +27 -0
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs +0 -271
- package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-YZBKyJFH.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-e5pFx82N.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-chart.entity-DnmNyyD2.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-BRkEcDNt.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-department.entity-ChJXNpXn.mjs +0 -256
- package/fesm2022/acorex-modules-organization-management-department.entity-ChJXNpXn.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-division.entity-qyDyhl-q.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employee.entity-Cp5TejzT.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-Ul10Mdwm.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-BpQbwW-x.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role.entity-B9N4qA_E.mjs +0 -238
- package/fesm2022/acorex-modules-organization-management-role.entity-B9N4qA_E.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-setting.keys-CF6Giykz.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-7q6Eg74A.mjs +0 -238
- package/fesm2022/acorex-modules-organization-management-team.entity-7q6Eg74A.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs.map +0 -1
- package/fesm2022/acorex-modules-text-template-management-setting.provider-fX0dhWUL.mjs.map +0 -1
- /package/auth/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/common/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/document-management/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/form-template-management/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/notification-management/lib/{setting.keys.d.ts → settings.keys.d.ts} +0 -0
- /package/notification-management/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/organization-management/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/platform-management/lib/features/common/regional/{setting.keys.d.ts → settings.keys.d.ts} +0 -0
- /package/platform-management/lib/features/common/regional/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
- /package/text-template-management/lib/{setting.provider.d.ts → settings.provider.d.ts} +0 -0
@@ -2,17 +2,19 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, ViewEncapsulation, Component } from '@angular/core';
|
3
3
|
import * as i2$1 from '@acorex/components/avatar';
|
4
4
|
import { AXAvatarModule } from '@acorex/components/avatar';
|
5
|
-
import * as
|
5
|
+
import * as i3 from '@acorex/components/button';
|
6
6
|
import { AXButtonModule } from '@acorex/components/button';
|
7
7
|
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
8
8
|
import * as i1$1 from '@acorex/components/decorators';
|
9
9
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
10
10
|
import { AXFormModule } from '@acorex/components/form';
|
11
|
-
import * as i3 from '@acorex/components/image';
|
11
|
+
import * as i3$1 from '@acorex/components/image';
|
12
12
|
import { AXImageModule } from '@acorex/components/image';
|
13
13
|
import { AXLabelModule } from '@acorex/components/label';
|
14
|
-
import * as i3$
|
14
|
+
import * as i3$2 from '@acorex/components/loading';
|
15
15
|
import { AXLoadingModule } from '@acorex/components/loading';
|
16
|
+
import * as i9 from '@acorex/components/search-box';
|
17
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
16
18
|
import { AXTextBoxModule } from '@acorex/components/text-box';
|
17
19
|
import * as i6 from '@acorex/core/translation';
|
18
20
|
import { AXTranslationModule } from '@acorex/core/translation';
|
@@ -20,6 +22,8 @@ import { AXPSessionService } from '@acorex/platform/auth';
|
|
20
22
|
import { AXP_PLATFORM_CONFIG_TOKEN, AXPLogoComponent } from '@acorex/platform/common';
|
21
23
|
import * as i1 from '@angular/common';
|
22
24
|
import { CommonModule } from '@angular/common';
|
25
|
+
import * as i2 from '@angular/forms';
|
26
|
+
import { FormsModule } from '@angular/forms';
|
23
27
|
import { Router } from '@angular/router';
|
24
28
|
import { Subscription, first } from 'rxjs';
|
25
29
|
|
@@ -30,6 +34,7 @@ class AXPAuthTenantChooserComponent {
|
|
30
34
|
this.sessionService = inject(AXPSessionService);
|
31
35
|
this.subscription = new Subscription();
|
32
36
|
this.user = this.sessionService.user;
|
37
|
+
this.searchValue = '';
|
33
38
|
this.showAll = false;
|
34
39
|
this.selectedTenant = null;
|
35
40
|
this.displayedTenants = [];
|
@@ -40,16 +45,23 @@ class AXPAuthTenantChooserComponent {
|
|
40
45
|
this.router.navigate(['/auth/account/app-chooser']);
|
41
46
|
}
|
42
47
|
ngOnInit() {
|
43
|
-
this.sessionService.tenants
|
44
|
-
.pipe(first())
|
45
|
-
.subscribe((tenants) => {
|
48
|
+
this.sessionService.tenants$.pipe(first()).subscribe((tenants) => {
|
46
49
|
this.displayedTenants = tenants.slice(0, 4);
|
47
50
|
this.allTenants = tenants;
|
48
51
|
});
|
49
52
|
}
|
53
|
+
filterTenants(tenants) {
|
54
|
+
return tenants.filter((tenant) => tenant.title.toLowerCase().includes(this.searchValue.toLowerCase()));
|
55
|
+
}
|
56
|
+
handleSearch(event) {
|
57
|
+
if (event != undefined) {
|
58
|
+
this.searchValue = event;
|
59
|
+
this.displayedTenants = this.filterTenants(this.allTenants);
|
60
|
+
}
|
61
|
+
}
|
50
62
|
showAllTenants() {
|
51
63
|
this.showAll = !this.showAll;
|
52
|
-
this.displayedTenants = this.showAll ? this.allTenants : this.allTenants.slice(0, 4);
|
64
|
+
this.displayedTenants = this.filterTenants(this.showAll ? this.allTenants : this.allTenants.slice(0, 4));
|
53
65
|
}
|
54
66
|
async handleSignout() {
|
55
67
|
await this.sessionService.signout();
|
@@ -59,12 +71,13 @@ class AXPAuthTenantChooserComponent {
|
|
59
71
|
this.subscription.unsubscribe();
|
60
72
|
}
|
61
73
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAuthTenantChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-lightest md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto ax-text-2xl ax-font-bold\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-
|
74
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPAuthTenantChooserComponent, isStandalone: true, selector: "axp-auth-tenant-chooser", ngImport: i0, template: "<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-lightest md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto ax-text-2xl ax-font-bold\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @if(allTenants && allTenants.length > 4){\n <ax-search-box\n [placeholder]=\"'search' | translate | async\"\n [ngModel]=\"searchValue\"\n (ngModelChange)=\"handleSearch($event)\"\n ><ax-clear-button></ax-clear-button\n ></ax-search-box>\n } @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-size-12 ax-min-w-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm ax-text-start\">{{ tenant.title }} </span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants && allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n", styles: [":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i2$1.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "shape", "look"], outputs: ["sizeChange"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i3$1.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1$1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["source"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i9.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
63
75
|
}
|
64
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAuthTenantChooserComponent, decorators: [{
|
65
77
|
type: Component,
|
66
78
|
args: [{ selector: 'axp-auth-tenant-chooser', imports: [
|
67
79
|
CommonModule,
|
80
|
+
FormsModule,
|
68
81
|
AXFormModule,
|
69
82
|
AXTextBoxModule,
|
70
83
|
AXButtonModule,
|
@@ -76,8 +89,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
76
89
|
AXPLogoComponent,
|
77
90
|
AXLoadingModule,
|
78
91
|
AXTranslationModule,
|
79
|
-
|
92
|
+
AXSearchBoxModule,
|
93
|
+
], encapsulation: ViewEncapsulation.None, template: "<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-lightest md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto ax-text-2xl ax-font-bold\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @if(allTenants && allTenants.length > 4){\n <ax-search-box\n [placeholder]=\"'search' | translate | async\"\n [ngModel]=\"searchValue\"\n (ngModelChange)=\"handleSearch($event)\"\n ><ax-clear-button></ax-clear-button\n ></ax-search-box>\n } @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-size-12 ax-min-w-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm ax-text-start\">{{ tenant.title }} </span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants && allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n", styles: [":host{display:contents}.gradient{background:-webkit-linear-gradient(var(--ax-current-v1),var(--ax-current-v2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}\n"] }]
|
80
94
|
}] });
|
81
95
|
|
82
96
|
export { AXPAuthTenantChooserComponent };
|
83
|
-
//# sourceMappingURL=acorex-modules-auth-tenant-chooser.component-
|
97
|
+
//# sourceMappingURL=acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-auth-tenant-chooser.component-B5VHdItj.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/account/tenant-chooser/tenant-chooser.component.ts","../../../../libs/modules/auth/src/lib/pages/account/tenant-chooser/tenant-chooser.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation, inject } from '@angular/core';\n\nimport { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPSessionService, AXPTenant } from '@acorex/platform/auth';\nimport { AXPLogoComponent, AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { Subscription, first } from 'rxjs';\n\n@Component({\n selector: 'axp-auth-tenant-chooser',\n templateUrl: './tenant-chooser.component.html',\n styleUrls: ['./tenant-chooser.component.scss'],\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXTextBoxModule,\n AXButtonModule,\n AXLabelModule,\n AXCheckBoxModule,\n AXAvatarModule,\n AXImageModule,\n AXDecoratorModule,\n AXPLogoComponent,\n AXLoadingModule,\n AXTranslationModule,\n AXSearchBoxModule,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPAuthTenantChooserComponent implements OnInit, OnDestroy {\n private router = inject(Router);\n protected platformConfig = inject(AXP_PLATFORM_CONFIG_TOKEN);\n private sessionService = inject(AXPSessionService);\n\n private subscription = new Subscription();\n\n protected user = this.sessionService.user;\n\n protected searchValue = '';\n protected showAll = false;\n protected selectedTenant: AXPTenant | null = null;\n protected displayedTenants: AXPTenant[] = [];\n protected allTenants!: AXPTenant[];\n\n protected async handleChooseTenant(item: AXPTenant) {\n this.selectedTenant = item;\n await this.sessionService.setTenant(item);\n this.router.navigate(['/auth/account/app-chooser']);\n }\n\n ngOnInit(): void {\n this.sessionService.tenants$.pipe(first()).subscribe((tenants) => {\n this.displayedTenants = tenants.slice(0, 4);\n this.allTenants = tenants;\n });\n }\n\n filterTenants(tenants: AXPTenant[]): AXPTenant[] {\n return tenants.filter((tenant) => tenant.title.toLowerCase().includes(this.searchValue.toLowerCase()));\n }\n\n handleSearch(event: string) {\n if (event != undefined) {\n this.searchValue = event;\n this.displayedTenants = this.filterTenants(this.allTenants);\n }\n }\n\n showAllTenants() {\n this.showAll = !this.showAll;\n this.displayedTenants = this.filterTenants(this.showAll ? this.allTenants : this.allTenants.slice(0, 4));\n }\n\n async handleSignout() {\n await this.sessionService.signout();\n this.router.navigate(['/auth/login']);\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n","<main\n *translate=\"let t\"\n class=\"ax-w-full ax-space-y-10 ax-h-[100vh] ax-flex ax-flex-col ax-items-center ax-justify-center ax-bg-lightest md:ax-bg-default\"\n>\n <section>\n <axp-logo\n [source]=\"platformConfig.logo?.colored\"\n [attr.alt]=\"platformConfig.title\"\n class=\"ax-w-36 ax-mx-auto ax-text-2xl ax-font-bold\"\n ></axp-logo>\n </section>\n <section class=\"ax-flex ax-justify-center\">\n <div\n class=\"ax-flex ax-gap-2 ax-justify-center ax-text-center ax-flex-col ax-items-center ax-border ax-rounded-lg ax-shadow-lg ax-p-6 md:ax-w-96 ax-w-80\"\n >\n <ax-avatar class=\"ax-rounded-full\" [size]=\"72\">\n @if(user?.avatar){\n <ax-image [src]=\"user?.avatar\"></ax-image>\n }\n </ax-avatar>\n <h2 class=\"md:ax-text-lg ax-font-medium\">{{ t('welcome') | async }}, {{ user?.title }}</h2>\n <p class=\"ax-text-neutral-500 ax-text-sm md:ax-text-base ax-font-medium\">\n {{ t('tenant-chooser.description', { scope: 'auth' }) | async }}\n </p>\n <div class=\"ax-mt-3 ax-w-full ax-overflow-auto ax-max-h-[300px] ax-pe-2\">\n @if(allTenants && allTenants.length > 4){\n <ax-search-box\n [placeholder]=\"'search' | translate | async\"\n [ngModel]=\"searchValue\"\n (ngModelChange)=\"handleSearch($event)\"\n ><ax-clear-button></ax-clear-button\n ></ax-search-box>\n } @for(tenant of displayedTenants; track $index){\n <div\n class=\"ax-flex ax-gap-2 ax-justify-between ax-border-b last:ax-border-b-0 ax-py-3 ax-items-center ax-cursor-pointer\"\n (click)=\"handleChooseTenant(tenant)\"\n >\n <div class=\"ax-flex ax-gap-2 ax-items-center ax-font-medium\">\n <div\n class=\"ax-size-12 ax-min-w-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-bg-neutral-100 ax-m-auto\"\n >\n <ax-icon class=\"fa-solid fa-building ax-text-neutral-500 ax-text-lg\"> </ax-icon>\n </div>\n <span class=\"md:ax-text-base ax-text-sm ax-text-start\">{{ tenant.title }} </span>\n </div>\n @if(tenant.name===selectedTenant?.name){\n <ax-loading></ax-loading>\n }@else {\n <ax-icon class=\"fa-solid fa-chevron-right ax-text-neutral-400\"> </ax-icon>\n }\n </div>\n }\n </div>\n @if(allTenants && allTenants.length>4){\n <div class=\"ax-mt-6 ax-w-full ax-flex ax-justify-center\">\n <ax-button\n (onClick)=\"showAllTenants()\"\n class=\"ax-w-full\"\n look=\"outline\"\n [text]=\"showAll ? (t('viewLess') | async) : (t('viewAll') | async)\"\n ></ax-button>\n </div>\n }\n </div>\n </section>\n <section>\n <p class=\"ax-text-neutral-400 ax-text-sm\">\n {{ t('tenant-chooser.footer', { scope: 'auth' }) | async }}\n <a (click)=\"handleSignout()\" class=\"ax-text-primary ax-cursor-pointer hover:ax-underline ax-font-medium\">\n {{ t('backLogin', { scope: 'auth' }) | async }}\n </a>\n </p>\n </section>\n</main>\n"],"names":["i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0Ca,6BAA6B,CAAA;AAtB1C,IAAA,WAAA,GAAA;AAuBU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACpD,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE1C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAE;AAE/B,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI;QAE/B,IAAW,CAAA,WAAA,GAAG,EAAE;QAChB,IAAO,CAAA,OAAA,GAAG,KAAK;QACf,IAAc,CAAA,cAAA,GAAqB,IAAI;QACvC,IAAgB,CAAA,gBAAA,GAAgB,EAAE;AAwC7C;IArCW,MAAM,kBAAkB,CAAC,IAAe,EAAA;AAChD,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI;QAC1B,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,QAAQ,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a;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;wBACf,mBAAmB;wBACnB,iBAAiB;qBAClB,EACc,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,qlGAAA,EAAA,MAAA,EAAA,CAAA,yMAAA,CAAA,EAAA;;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { ViewEncapsulation, Component } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i3 from '@acorex/components/button';
|
4
4
|
import { AXButtonModule } from '@acorex/components/button';
|
5
5
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
6
6
|
import * as i2 from '@acorex/components/form';
|
@@ -19,7 +19,7 @@ class AXPAuthTwoFactorCodeComponent {
|
|
19
19
|
ngOnInit() { }
|
20
20
|
ngOnDestroy() { }
|
21
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPAuthTwoFactorCodeComponent, isStandalone: true, selector: "axp-auth-two-factor-code", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-8\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('auth.twofactor.title') | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600 ax-mb-4\">\n {{ t('auth.twofactor.hint') | async }}\n </p>\n <p class=\"ax-text-base ax-font-medium\">**** *** 3320</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 class=\"ax-text-start\">{{ t('auth.twofactor.textBoxHint') | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"ax-w-full\" [text]=\"t('common.submit') | async\" color=\"primary\"> </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { 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: "ngmodule", type: AXButtonModule }, { kind: "component", type:
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPAuthTwoFactorCodeComponent, isStandalone: true, selector: "axp-auth-two-factor-code", ngImport: i0, template: "<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-8\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('auth.twofactor.title') | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600 ax-mb-4\">\n {{ t('auth.twofactor.hint') | async }}\n </p>\n <p class=\"ax-text-base ax-font-medium\">**** *** 3320</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 class=\"ax-text-start\">{{ t('auth.twofactor.textBoxHint') | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"ax-w-full\" [text]=\"t('common.submit') | async\" color=\"primary\"> </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { 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: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: AXDecoratorModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { 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: AXTranslationModule }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }], encapsulation: i0.ViewEncapsulation.None }); }
|
23
23
|
}
|
24
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAuthTwoFactorCodeComponent, decorators: [{
|
25
25
|
type: Component,
|
@@ -37,4 +37,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
37
37
|
}] });
|
38
38
|
|
39
39
|
export { AXPAuthTwoFactorCodeComponent };
|
40
|
-
//# sourceMappingURL=acorex-modules-auth-two-factor-code.component-
|
40
|
+
//# sourceMappingURL=acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-two-factor-code.component-
|
1
|
+
{"version":3,"file":"acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs","sources":["../../../../libs/modules/auth/src/lib/pages/two-factor/two-factor-code/two-factor-code.component.ts","../../../../libs/modules/auth/src/lib/pages/two-factor/two-factor-code/two-factor-code.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\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';\n\n\n@Component({\n selector: 'axp-auth-two-factor-code',\n templateUrl: './two-factor-code.component.html',\n imports: [\n CommonModule,\n AXFormModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXTextBoxModule,\n AXLabelModule,\n AXPasswordBoxModule,\n AXTranslationModule,\n ],\n encapsulation: ViewEncapsulation.None\n})\nexport class AXPAuthTwoFactorCodeComponent implements OnInit, OnDestroy {\n ngOnInit(): void { }\n\n ngOnDestroy(): void { }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-8\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('auth.twofactor.title') | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600 ax-mb-4\">\n {{ t('auth.twofactor.hint') | async }}\n </p>\n <p class=\"ax-text-base ax-font-medium\">**** *** 3320</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 class=\"ax-text-start\">{{ t('auth.twofactor.textBoxHint') | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"ax-w-full\" [text]=\"t('common.submit') | async\" color=\"primary\"> </ax-button>\n </div>\n </ax-form>\n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AA,UAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,8BAEjB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,aAAa,EACb,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,+ZACnB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAId,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAhBzC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAE3B,OAAA,EAAA;wBACL,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,mBAAmB;wBACnB,mBAAmB;qBACtB,EACc,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,m1BAAA,EAAA;;;;;"}
|
@@ -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-
|
4
|
+
import { A as AXM_AUTH_CONFIG_TOKEN } from './acorex-modules-auth-acorex-modules-auth-DWcYgyZA.mjs';
|
5
5
|
|
6
6
|
function routesFacory() {
|
7
7
|
const val = inject(AXM_AUTH_CONFIG_TOKEN);
|
@@ -9,7 +9,7 @@ function routesFacory() {
|
|
9
9
|
routes = [
|
10
10
|
{
|
11
11
|
path: 'two-step',
|
12
|
-
loadComponent: () => import('./acorex-modules-auth-two-factor-code.component-
|
12
|
+
loadComponent: () => import('./acorex-modules-auth-two-factor-code.component-PqOn37Gg.mjs').then((c) => c.AXPAuthTwoFactorCodeComponent),
|
13
13
|
},
|
14
14
|
];
|
15
15
|
return routes;
|
@@ -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-
|
45
|
+
//# sourceMappingURL=acorex-modules-auth-two-factor.module-B9UV3Nxb.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-two-factor.module-
|
1
|
+
{"version":3,"file":"acorex-modules-auth-two-factor.module-B9UV3Nxb.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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AO,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 i2 from '@angular/forms';
|
20
|
+
import { FormsModule } from '@angular/forms';
|
21
|
+
import { d as AXMUserDeviceSessionsService } from './acorex-modules-auth-acorex-modules-auth-DWcYgyZA.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</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\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n placeholder=\"Choose...\"\n >\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n</ax-footer>\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: 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: 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</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\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n placeholder=\"Choose...\"\n >\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n</ax-footer>\n" }]
|
132
|
+
}], ctorParameters: () => [] });
|
133
|
+
|
134
|
+
export { AXMUserSessionsComponent };
|
135
|
+
//# sourceMappingURL=acorex-modules-auth-user-sessions.component-Dx0zd4Nj.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-auth-user-sessions.component-Dx0zd4Nj.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</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\n [ngModel]=\"expireTime()\"\n (onValueChanged)=\"onChangeSessionExpireTime($event)\"\n [dataSource]=\"dataSource\"\n textField=\"name\"\n valueField=\"id\"\n placeholder=\"Choose...\"\n >\n </ax-select-box>\n </div>\n </div>\n </ax-suffix>\n </div>\n </div>\n</ax-footer>\n"],"names":["i2","i3"],"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,CAA6D,SAAS,CAAC;AAC7F,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAsC,IAAI,CAAC;AAE9D,QAAA,IAAA,CAAA,eAAe,GAAG;YAChB,EAAE,IAAI,EAAE,qBAAqB,EAAE,EAAE,EAAE,IAAI,CAAC,2BAA2B,CAAC,OAAO,EAAE;YAC7E,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,IAAI,CAAC,2BAA2B,CAAC,QAAQ,EAAE;YAC/E,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,IAAI,CAAC,2BAA2B,CAAC,WAAW,EAAE;YAClF,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAE,EAAE,IAAI,CAAC,2BAA2B,CAAC,SAAS,EAAE;SACjF;QACS,IAAU,CAAA,UAAA,GAAG,IAAI,YAAY,CAAM;AAC3C,YAAA,QAAQ,EAAE,EAAE;AACZ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BAAA,EAAA,SAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,oBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,8BAChB,eAAe,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGN,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAbpC,SAAS;sCAES,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA;wBACP,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,WAAW;wBACX,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;AAChB,qBAAA,EAAA,QAAA,EAAA,irHAAA,EAAA;;;;;"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
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-DWcYgyZA.mjs';
|
2
2
|
//# sourceMappingURL=acorex-modules-auth.mjs.map
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import { AXPopupService } from '@acorex/components/popup';
|
2
|
+
import * as i2 from '@acorex/core/translation';
|
3
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
4
|
+
import { AXPDataGenerator } from '@acorex/platform/core';
|
5
|
+
import { AXPLayoutWidgetComponent } from '@acorex/platform/layout/builder';
|
6
|
+
import { AXP_GLOBAL_SEARCH_CONFIG_TOKEN } from '@acorex/platform/layout/search';
|
7
|
+
import { AXPWorkflowService } from '@acorex/platform/workflow';
|
8
|
+
import * as i1 from '@angular/common';
|
9
|
+
import { CommonModule } from '@angular/common';
|
10
|
+
import * as i0 from '@angular/core';
|
11
|
+
import { inject, computed, HostBinding, ChangeDetectionStrategy, Component } from '@angular/core';
|
12
|
+
|
13
|
+
class AXPDashboardShortcutWidgetViewComponent extends AXPLayoutWidgetComponent {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments);
|
16
|
+
this.popupService = inject(AXPopupService);
|
17
|
+
this.workflow = inject(AXPWorkflowService);
|
18
|
+
this.searchConfig = inject(AXP_GLOBAL_SEARCH_CONFIG_TOKEN);
|
19
|
+
this.item = computed(() => this.options()['item']);
|
20
|
+
this.color = computed(() => this.options()['color']);
|
21
|
+
}
|
22
|
+
ngOnInit() {
|
23
|
+
super.ngOnInit();
|
24
|
+
if (!this.color()) {
|
25
|
+
this.setOptions({
|
26
|
+
color: AXPDataGenerator.color()
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
async executeCommand() {
|
31
|
+
if (this.item()?.command) {
|
32
|
+
await this.workflow.execute(this.item().command.name, this.item().command.options);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
async setCommand() {
|
36
|
+
const component = await this.searchConfig.window();
|
37
|
+
const popup = await this.popupService.open(component, {
|
38
|
+
title: 'Choose command...',
|
39
|
+
size: 'fit',
|
40
|
+
closeOnBackdropClick: true,
|
41
|
+
header: false,
|
42
|
+
});
|
43
|
+
if (popup.data) {
|
44
|
+
const result = popup.data;
|
45
|
+
if (result && result.command) {
|
46
|
+
this.setOptions({
|
47
|
+
item: {
|
48
|
+
name: result.name,
|
49
|
+
title: result.title,
|
50
|
+
description: result.description,
|
51
|
+
icon: result.icon,
|
52
|
+
command: result.command
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
get __style() {
|
59
|
+
const cls = {};
|
60
|
+
cls[`background-color`] = this.color();
|
61
|
+
return cls;
|
62
|
+
}
|
63
|
+
get __class() {
|
64
|
+
const cls = {};
|
65
|
+
cls[`ax-flex`] = true;
|
66
|
+
cls[`ax-flex-col`] = true;
|
67
|
+
cls[`ax-items-center`] = true;
|
68
|
+
cls[`ax-justify-center`] = true;
|
69
|
+
cls[`ax-w-full`] = true;
|
70
|
+
cls[`ax-h-full`] = true;
|
71
|
+
cls[`ax-text-center`] = true;
|
72
|
+
cls[`ax-overflow-hidden`] = true;
|
73
|
+
cls[`ax-cursor-pointer`] = true;
|
74
|
+
cls[`ax-text-white`] = true;
|
75
|
+
return cls;
|
76
|
+
}
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDashboardShortcutWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPDashboardShortcutWidgetViewComponent, isStandalone: true, selector: "ng-component", host: { properties: { "style": "this.__style", "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
79
|
+
@if(item()) {
|
80
|
+
<div
|
81
|
+
class="ax-group ax-flex ax-flex-col ax-items-center ax-justify-center ax-p-3 ax-w-full ax-h-full ax-relative ax-overflow-hidden "
|
82
|
+
(click)="executeCommand()">
|
83
|
+
<div class="ax-absolute ax-inset-0 ax-bg-black/0 hover:ax-bg-black/10 ax-transition-opacity"></div>
|
84
|
+
<i [class]="item().icon + ' ax-text-3xl'"></i>
|
85
|
+
<span class="ax-text-xl ax-font-semibold">{{ item().title | translate | async }}</span>
|
86
|
+
@if(item().description) {
|
87
|
+
<span class="ax-text-sm ax-opacity-90 ax-text-center ax-px-2">{{ item().description! | translate | async }}</span>
|
88
|
+
}
|
89
|
+
</div>
|
90
|
+
} @else {
|
91
|
+
<div
|
92
|
+
(click)="setCommand()"
|
93
|
+
class="ax-group ax-flex ax-flex-col ax-items-center ax-justify-center ax-p-3 ax-w-full ax-h-full ax-relative ax-overflow-hidden">
|
94
|
+
<div class="ax-absolute ax-inset-0 ax-bg-black/0 hover:ax-bg-black/5 ax-transition-opacity"></div>
|
95
|
+
<i class="fa-light fa-plus ax-text-3xl"></i>
|
96
|
+
<span class="ax-text-xl ax-font-semibold">Add Shortcut</span>
|
97
|
+
</div>
|
98
|
+
}
|
99
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
100
|
+
}
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDashboardShortcutWidgetViewComponent, decorators: [{
|
102
|
+
type: Component,
|
103
|
+
args: [{
|
104
|
+
template: `
|
105
|
+
@if(item()) {
|
106
|
+
<div
|
107
|
+
class="ax-group ax-flex ax-flex-col ax-items-center ax-justify-center ax-p-3 ax-w-full ax-h-full ax-relative ax-overflow-hidden "
|
108
|
+
(click)="executeCommand()">
|
109
|
+
<div class="ax-absolute ax-inset-0 ax-bg-black/0 hover:ax-bg-black/10 ax-transition-opacity"></div>
|
110
|
+
<i [class]="item().icon + ' ax-text-3xl'"></i>
|
111
|
+
<span class="ax-text-xl ax-font-semibold">{{ item().title | translate | async }}</span>
|
112
|
+
@if(item().description) {
|
113
|
+
<span class="ax-text-sm ax-opacity-90 ax-text-center ax-px-2">{{ item().description! | translate | async }}</span>
|
114
|
+
}
|
115
|
+
</div>
|
116
|
+
} @else {
|
117
|
+
<div
|
118
|
+
(click)="setCommand()"
|
119
|
+
class="ax-group ax-flex ax-flex-col ax-items-center ax-justify-center ax-p-3 ax-w-full ax-h-full ax-relative ax-overflow-hidden">
|
120
|
+
<div class="ax-absolute ax-inset-0 ax-bg-black/0 hover:ax-bg-black/5 ax-transition-opacity"></div>
|
121
|
+
<i class="fa-light fa-plus ax-text-3xl"></i>
|
122
|
+
<span class="ax-text-xl ax-font-semibold">Add Shortcut</span>
|
123
|
+
</div>
|
124
|
+
}
|
125
|
+
`,
|
126
|
+
standalone: true,
|
127
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
128
|
+
imports: [CommonModule, AXTranslationModule]
|
129
|
+
}]
|
130
|
+
}], propDecorators: { __style: [{
|
131
|
+
type: HostBinding,
|
132
|
+
args: ['style']
|
133
|
+
}], __class: [{
|
134
|
+
type: HostBinding,
|
135
|
+
args: ['class']
|
136
|
+
}] } });
|
137
|
+
|
138
|
+
export { AXPDashboardShortcutWidgetViewComponent };
|
139
|
+
//# sourceMappingURL=acorex-modules-common-dashboard-shortcut-widget-view.component-C9RGRmuR.mjs.map
|