@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
@@ -1,10 +1,15 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, inject, Injector
|
3
|
-
import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
4
|
-
import { AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
2
|
+
import { Injectable, NgModule, inject, Injector } from '@angular/core';
|
3
|
+
import { AXMEntityCrudServiceImpl, AXPEntityService, AXPEntityResolver, AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
4
|
+
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSearchCommandProvider, AXPRefreshEvent, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
5
5
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
6
|
+
import * as i1 from '@acorex/platform/workflow';
|
7
|
+
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
6
8
|
import { AXDataSource } from '@acorex/components/common';
|
7
9
|
import { AXPPermissionProviderService } from '@acorex/platform/auth';
|
10
|
+
import { AXDialogService } from '@acorex/components/dialog';
|
11
|
+
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
12
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
8
13
|
|
9
14
|
const config = {
|
10
15
|
i18n: 'security-management',
|
@@ -19,6 +24,12 @@ const RootConfig = {
|
|
19
24
|
icon: 'fa-light fa-file-invoice',
|
20
25
|
},
|
21
26
|
entities: {
|
27
|
+
deviceSessions: {
|
28
|
+
name: 'DeviceSessions',
|
29
|
+
title: `t("session", { scope: "${config.i18n}" })`,
|
30
|
+
titlePlural: `t("sessions", { scope: "${config.i18n}" })`,
|
31
|
+
icon: 'fa-light fa-default',
|
32
|
+
},
|
22
33
|
users: {
|
23
34
|
name: 'users',
|
24
35
|
title: `t("users", { scope: "${config.i18n}" })`,
|
@@ -90,124 +101,675 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
90
101
|
type: Injectable
|
91
102
|
}], ctorParameters: () => [] });
|
92
103
|
|
93
|
-
|
94
|
-
var AXPSecurityManagementMenuKeys;
|
95
|
-
(function (AXPSecurityManagementMenuKeys) {
|
96
|
-
AXPSecurityManagementMenuKeys["Root"] = "security-management";
|
97
|
-
AXPSecurityManagementMenuKeys["Users"] = "security-management:users";
|
98
|
-
AXPSecurityManagementMenuKeys["Roles"] = "security-management:roles";
|
99
|
-
})(AXPSecurityManagementMenuKeys || (AXPSecurityManagementMenuKeys = {}));
|
100
|
-
|
101
|
-
class AXMMenuProvider {
|
102
|
-
constructor() {
|
103
|
-
this.entityService = inject(AXPEntityService);
|
104
|
-
}
|
105
|
-
async provide(context) {
|
106
|
-
const scope = RootConfig.config.i18n;
|
107
|
-
const moduleName = RootConfig.module.name;
|
108
|
-
context.addItems([
|
109
|
-
{
|
110
|
-
priority: 9001,
|
111
|
-
text: `t('root-menu', {scope: "${scope}"})`,
|
112
|
-
icon: 'fa-light fa-lock',
|
113
|
-
name: AXPSecurityManagementMenuKeys.Root,
|
114
|
-
data: {
|
115
|
-
// requiredPermission: 'demo.admin.settings',
|
116
|
-
},
|
117
|
-
children: [
|
118
|
-
{
|
119
|
-
priority: 9003,
|
120
|
-
text: `t('users', { scope: "${scope}" })`,
|
121
|
-
icon: 'fa-light fa-users',
|
122
|
-
name: AXPSecurityManagementMenuKeys.Users,
|
123
|
-
path: this.entityService.createPath(moduleName, RootConfig.entities.users.name),
|
124
|
-
data: {
|
125
|
-
// requiredPermission: 'demo.admin.settings',
|
126
|
-
},
|
127
|
-
},
|
128
|
-
{
|
129
|
-
priority: 9004,
|
130
|
-
text: `t('roles', { scope: "${scope}" })`,
|
131
|
-
path: this.entityService.createPath(moduleName, RootConfig.entities.roles.name),
|
132
|
-
icon: 'fa-light fa-key',
|
133
|
-
name: AXPSecurityManagementMenuKeys.Roles,
|
134
|
-
data: {
|
135
|
-
// requiredPermission: 'demo.admin.settings',
|
136
|
-
},
|
137
|
-
},
|
138
|
-
],
|
139
|
-
},
|
140
|
-
]);
|
141
|
-
}
|
104
|
+
class AXMDeviceSessionsService extends AXMEntityCrudServiceImpl {
|
142
105
|
}
|
143
|
-
|
144
|
-
class AXMEntityProvider {
|
106
|
+
class AXMDeviceSessionsServiceImpl extends AXMDeviceSessionsService {
|
145
107
|
constructor() {
|
146
|
-
|
147
|
-
}
|
148
|
-
preload() {
|
149
|
-
const { entities, module } = RootConfig;
|
150
|
-
return [entities.users.name, entities.roles.name].map((entity) => ({ module: module.name, entity }));
|
108
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.deviceSessions.name}`);
|
151
109
|
}
|
152
|
-
|
153
|
-
|
154
|
-
if (moduleName == module.name) {
|
155
|
-
switch (entityName) {
|
156
|
-
case RootConfig.entities.users.name:
|
157
|
-
return (await Promise.resolve().then(function () { return users_entity; })).factory(this.injector);
|
158
|
-
case RootConfig.entities.roles.name:
|
159
|
-
return (await Promise.resolve().then(function () { return roles_entity; })).factory(this.injector);
|
160
|
-
case RootConfig.entities.profile.name:
|
161
|
-
return (await Promise.resolve().then(function () { return profile_entity; })).factory(this.injector);
|
162
|
-
}
|
163
|
-
}
|
164
|
-
return null;
|
110
|
+
terminate(id) {
|
111
|
+
throw new Error('Method not implemented.');
|
165
112
|
}
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
167
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDeviceSessionsServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
114
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDeviceSessionsServiceImpl }); }
|
168
115
|
}
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDeviceSessionsServiceImpl, decorators: [{
|
170
117
|
type: Injectable
|
171
|
-
}] });
|
118
|
+
}], ctorParameters: () => [] });
|
172
119
|
|
173
|
-
async function factory$
|
174
|
-
const dataService = injector.get(
|
175
|
-
const entityResolver = injector.get(AXPEntityResolver);
|
176
|
-
const i18n = RootConfig.config.i18n;
|
120
|
+
async function factory$3(injector) {
|
121
|
+
const dataService = injector.get(AXMDeviceSessionsService);
|
177
122
|
const entityDef = {
|
178
123
|
module: RootConfig.module.name,
|
179
|
-
name: RootConfig.entities.
|
124
|
+
name: RootConfig.entities.deviceSessions.name,
|
180
125
|
source: '',
|
181
|
-
title: RootConfig.entities.
|
126
|
+
title: RootConfig.entities.deviceSessions.title,
|
182
127
|
formats: {
|
183
|
-
individual:
|
184
|
-
plural:
|
128
|
+
individual: RootConfig.entities.deviceSessions.title,
|
129
|
+
plural: RootConfig.entities.deviceSessions.titlePlural,
|
130
|
+
searchResult: {
|
131
|
+
title: '{{ title }}',
|
132
|
+
description: RootConfig.module.title,
|
133
|
+
},
|
185
134
|
},
|
186
135
|
relatedEntities: [],
|
187
136
|
groups: [
|
188
137
|
{
|
189
|
-
id: '
|
190
|
-
title:
|
138
|
+
id: 'section',
|
139
|
+
title: RootConfig.entities.deviceSessions.title,
|
140
|
+
},
|
141
|
+
],
|
142
|
+
properties: [
|
143
|
+
{
|
144
|
+
name: 'tenant.name',
|
145
|
+
title: 't("tenant", { scope: "common" })',
|
146
|
+
groupId: 'section',
|
147
|
+
options: {
|
148
|
+
sort: {
|
149
|
+
enabled: true,
|
150
|
+
},
|
151
|
+
},
|
152
|
+
schema: {
|
153
|
+
dataType: 'string',
|
154
|
+
interface: {
|
155
|
+
type: AXPWidgetsCatalog.text,
|
156
|
+
},
|
157
|
+
},
|
158
|
+
validations: [
|
159
|
+
{
|
160
|
+
rule: 'required',
|
161
|
+
},
|
162
|
+
],
|
163
|
+
},
|
164
|
+
{
|
165
|
+
name: 'user.name',
|
166
|
+
title: 't("user", { scope: "common" })',
|
167
|
+
groupId: 'section',
|
168
|
+
options: {
|
169
|
+
sort: {
|
170
|
+
enabled: true,
|
171
|
+
},
|
172
|
+
},
|
173
|
+
schema: {
|
174
|
+
dataType: 'string',
|
175
|
+
interface: {
|
176
|
+
type: AXPWidgetsCatalog.text,
|
177
|
+
},
|
178
|
+
},
|
179
|
+
validations: [
|
180
|
+
{
|
181
|
+
rule: 'required',
|
182
|
+
},
|
183
|
+
],
|
184
|
+
},
|
185
|
+
{
|
186
|
+
name: 'application.name',
|
187
|
+
title: 't("application", { scope: "common" })',
|
188
|
+
groupId: 'section',
|
189
|
+
options: {
|
190
|
+
sort: {
|
191
|
+
enabled: true,
|
192
|
+
},
|
193
|
+
},
|
194
|
+
schema: {
|
195
|
+
dataType: 'string',
|
196
|
+
interface: {
|
197
|
+
type: AXPWidgetsCatalog.text,
|
198
|
+
},
|
199
|
+
},
|
200
|
+
validations: [
|
201
|
+
{
|
202
|
+
rule: 'required',
|
203
|
+
},
|
204
|
+
],
|
205
|
+
},
|
206
|
+
{
|
207
|
+
name: 'clientName',
|
208
|
+
title: 't("clientName", { scope: "common" })',
|
209
|
+
groupId: 'section',
|
210
|
+
options: {
|
211
|
+
sort: {
|
212
|
+
enabled: true,
|
213
|
+
},
|
214
|
+
},
|
215
|
+
schema: {
|
216
|
+
dataType: 'string',
|
217
|
+
interface: {
|
218
|
+
type: AXPWidgetsCatalog.text,
|
219
|
+
},
|
220
|
+
},
|
221
|
+
validations: [
|
222
|
+
{
|
223
|
+
rule: 'required',
|
224
|
+
},
|
225
|
+
],
|
226
|
+
},
|
227
|
+
{
|
228
|
+
name: 'location',
|
229
|
+
title: 't("location", { scope: "common" })',
|
230
|
+
groupId: 'section',
|
231
|
+
options: {
|
232
|
+
sort: {
|
233
|
+
enabled: true,
|
234
|
+
},
|
235
|
+
},
|
236
|
+
schema: {
|
237
|
+
dataType: 'string',
|
238
|
+
interface: {
|
239
|
+
type: AXPWidgetsCatalog.text,
|
240
|
+
},
|
241
|
+
},
|
242
|
+
validations: [
|
243
|
+
{
|
244
|
+
rule: 'required',
|
245
|
+
},
|
246
|
+
],
|
247
|
+
},
|
248
|
+
{
|
249
|
+
name: 'ipAddress',
|
250
|
+
title: 't("ipAddress", { scope: "common" })',
|
251
|
+
groupId: 'section',
|
252
|
+
options: {
|
253
|
+
sort: {
|
254
|
+
enabled: true,
|
255
|
+
},
|
256
|
+
},
|
257
|
+
schema: {
|
258
|
+
dataType: 'string',
|
259
|
+
interface: {
|
260
|
+
type: AXPWidgetsCatalog.text,
|
261
|
+
},
|
262
|
+
},
|
263
|
+
validations: [
|
264
|
+
{
|
265
|
+
rule: 'required',
|
266
|
+
},
|
267
|
+
],
|
268
|
+
},
|
269
|
+
{
|
270
|
+
name: 'lastLoginDate',
|
271
|
+
title: 't("lastLoginDate", { scope: "common" })',
|
272
|
+
groupId: 'section',
|
273
|
+
options: {
|
274
|
+
sort: {
|
275
|
+
enabled: true,
|
276
|
+
},
|
277
|
+
},
|
278
|
+
schema: {
|
279
|
+
dataType: 'dateTime',
|
280
|
+
interface: {
|
281
|
+
type: AXPWidgetsCatalog.dateTime,
|
282
|
+
options: {
|
283
|
+
format: 'MM/dd/yyyy hh:mm a',
|
284
|
+
},
|
285
|
+
},
|
286
|
+
},
|
287
|
+
validations: [
|
288
|
+
{
|
289
|
+
rule: 'required',
|
290
|
+
},
|
291
|
+
],
|
292
|
+
},
|
293
|
+
{
|
294
|
+
name: 'operatingSystem',
|
295
|
+
title: 't("operatingSystem", { scope: "common" })',
|
296
|
+
groupId: 'section',
|
297
|
+
options: {
|
298
|
+
sort: {
|
299
|
+
enabled: true,
|
300
|
+
},
|
301
|
+
},
|
302
|
+
schema: {
|
303
|
+
dataType: 'string',
|
304
|
+
interface: {
|
305
|
+
type: AXPWidgetsCatalog.text,
|
306
|
+
},
|
307
|
+
},
|
308
|
+
validations: [
|
309
|
+
{
|
310
|
+
rule: 'required',
|
311
|
+
},
|
312
|
+
],
|
313
|
+
},
|
314
|
+
{
|
315
|
+
name: 'deviceName',
|
316
|
+
title: 't("deviceName", { scope: "common" })',
|
317
|
+
groupId: 'section',
|
318
|
+
options: {
|
319
|
+
sort: {
|
320
|
+
enabled: true,
|
321
|
+
},
|
322
|
+
},
|
323
|
+
schema: {
|
324
|
+
dataType: 'string',
|
325
|
+
interface: {
|
326
|
+
type: AXPWidgetsCatalog.text,
|
327
|
+
},
|
328
|
+
},
|
329
|
+
validations: [
|
330
|
+
{
|
331
|
+
rule: 'required',
|
332
|
+
},
|
333
|
+
],
|
334
|
+
},
|
335
|
+
],
|
336
|
+
columns: [
|
337
|
+
{ name: 'tenant.name' },
|
338
|
+
{ name: 'user.name' },
|
339
|
+
{ name: 'application.name' },
|
340
|
+
{ name: 'clientName' },
|
341
|
+
{ name: 'location' },
|
342
|
+
{ name: 'deviceName' },
|
343
|
+
{ name: 'lastLoginDate' },
|
344
|
+
{ name: 'operatingSystem' },
|
345
|
+
],
|
346
|
+
commands: {
|
347
|
+
create: {
|
348
|
+
execute: async (data) => {
|
349
|
+
const res = await dataService.insertOne(data);
|
350
|
+
return { id: res };
|
351
|
+
},
|
352
|
+
},
|
353
|
+
delete: {
|
354
|
+
execute: async (id) => {
|
355
|
+
return await dataService.deleteOne(id);
|
356
|
+
},
|
357
|
+
},
|
358
|
+
update: {
|
359
|
+
execute: async (data) => {
|
360
|
+
return await dataService.updateOne(data.id, data);
|
361
|
+
},
|
362
|
+
},
|
363
|
+
terminate: {
|
364
|
+
execute: async (id) => {
|
365
|
+
const x = await dataService.terminate(id);
|
366
|
+
return x;
|
367
|
+
},
|
368
|
+
},
|
369
|
+
},
|
370
|
+
queries: {
|
371
|
+
byKey: {
|
372
|
+
execute: async (id) => {
|
373
|
+
return await dataService.getOne(id);
|
374
|
+
},
|
375
|
+
type: AXPEntityQueryType.Single,
|
376
|
+
},
|
377
|
+
list: {
|
378
|
+
execute: async (e) => {
|
379
|
+
const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
380
|
+
console.log('res', res);
|
381
|
+
return res;
|
382
|
+
},
|
383
|
+
type: AXPEntityQueryType.List,
|
384
|
+
},
|
385
|
+
},
|
386
|
+
interfaces: {
|
387
|
+
master: {
|
388
|
+
create: {
|
389
|
+
sections: [
|
390
|
+
{
|
391
|
+
id: 'section',
|
392
|
+
},
|
393
|
+
],
|
394
|
+
properties: [
|
395
|
+
{
|
396
|
+
name: 'clientName',
|
397
|
+
layout: {
|
398
|
+
positions: {
|
399
|
+
lg: {
|
400
|
+
colSpan: 6,
|
401
|
+
},
|
402
|
+
},
|
403
|
+
},
|
404
|
+
},
|
405
|
+
{
|
406
|
+
name: 'title',
|
407
|
+
layout: {
|
408
|
+
positions: {
|
409
|
+
lg: {
|
410
|
+
colSpan: 6,
|
411
|
+
},
|
412
|
+
},
|
413
|
+
},
|
414
|
+
},
|
415
|
+
],
|
416
|
+
},
|
417
|
+
update: {
|
418
|
+
sections: [
|
419
|
+
{
|
420
|
+
id: 'section',
|
421
|
+
},
|
422
|
+
],
|
423
|
+
properties: [
|
424
|
+
{
|
425
|
+
name: 'ClientName',
|
426
|
+
layout: {
|
427
|
+
positions: {
|
428
|
+
lg: {
|
429
|
+
colSpan: 6,
|
430
|
+
},
|
431
|
+
},
|
432
|
+
},
|
433
|
+
},
|
434
|
+
{
|
435
|
+
name: 'title',
|
436
|
+
layout: {
|
437
|
+
positions: {
|
438
|
+
lg: {
|
439
|
+
colSpan: 6,
|
440
|
+
},
|
441
|
+
},
|
442
|
+
},
|
443
|
+
},
|
444
|
+
],
|
445
|
+
},
|
446
|
+
single: {
|
447
|
+
title: '{{user.name}}',
|
448
|
+
sections: [
|
449
|
+
{
|
450
|
+
id: 'section',
|
451
|
+
layout: {
|
452
|
+
positions: {
|
453
|
+
lg: {
|
454
|
+
colSpan: 12,
|
455
|
+
},
|
456
|
+
},
|
457
|
+
},
|
458
|
+
},
|
459
|
+
],
|
460
|
+
properties: [
|
461
|
+
{
|
462
|
+
name: 'location',
|
463
|
+
layout: {
|
464
|
+
positions: {
|
465
|
+
lg: {
|
466
|
+
colSpan: 6,
|
467
|
+
},
|
468
|
+
},
|
469
|
+
},
|
470
|
+
},
|
471
|
+
{
|
472
|
+
name: 'user.name',
|
473
|
+
layout: {
|
474
|
+
positions: {
|
475
|
+
lg: {
|
476
|
+
colSpan: 6,
|
477
|
+
},
|
478
|
+
},
|
479
|
+
},
|
480
|
+
},
|
481
|
+
{
|
482
|
+
name: 'tenant.name',
|
483
|
+
layout: {
|
484
|
+
positions: {
|
485
|
+
lg: {
|
486
|
+
colSpan: 6,
|
487
|
+
},
|
488
|
+
},
|
489
|
+
},
|
490
|
+
},
|
491
|
+
{
|
492
|
+
name: 'application.name',
|
493
|
+
layout: {
|
494
|
+
positions: {
|
495
|
+
lg: {
|
496
|
+
colSpan: 6,
|
497
|
+
},
|
498
|
+
},
|
499
|
+
},
|
500
|
+
},
|
501
|
+
{
|
502
|
+
name: 'clientName',
|
503
|
+
layout: {
|
504
|
+
positions: {
|
505
|
+
lg: {
|
506
|
+
colSpan: 6,
|
507
|
+
},
|
508
|
+
},
|
509
|
+
},
|
510
|
+
},
|
511
|
+
{
|
512
|
+
name: 'ipAddress',
|
513
|
+
layout: {
|
514
|
+
positions: {
|
515
|
+
lg: {
|
516
|
+
colSpan: 6,
|
517
|
+
},
|
518
|
+
},
|
519
|
+
},
|
520
|
+
},
|
521
|
+
{
|
522
|
+
name: 'lastLoginDate',
|
523
|
+
layout: {
|
524
|
+
positions: {
|
525
|
+
lg: {
|
526
|
+
colSpan: 6,
|
527
|
+
},
|
528
|
+
},
|
529
|
+
},
|
530
|
+
},
|
531
|
+
{
|
532
|
+
name: 'operatingSystem',
|
533
|
+
layout: {
|
534
|
+
positions: {
|
535
|
+
lg: {
|
536
|
+
colSpan: 6,
|
537
|
+
},
|
538
|
+
},
|
539
|
+
},
|
540
|
+
},
|
541
|
+
{
|
542
|
+
name: 'deviceName',
|
543
|
+
layout: {
|
544
|
+
positions: {
|
545
|
+
lg: {
|
546
|
+
colSpan: 6,
|
547
|
+
},
|
548
|
+
},
|
549
|
+
},
|
550
|
+
},
|
551
|
+
{
|
552
|
+
name: 'deviceName',
|
553
|
+
layout: {
|
554
|
+
positions: {
|
555
|
+
lg: {
|
556
|
+
colSpan: 6,
|
557
|
+
},
|
558
|
+
},
|
559
|
+
},
|
560
|
+
},
|
561
|
+
],
|
562
|
+
actions: [],
|
563
|
+
},
|
564
|
+
list: {
|
565
|
+
actions: [
|
566
|
+
// {
|
567
|
+
// title: `t("create", { scope: "common" })`,
|
568
|
+
// command: 'create-entity',
|
569
|
+
// priority: 'primary',
|
570
|
+
// type: 'create',
|
571
|
+
// scope: AXPEntityCommandScope.TypeLevel,
|
572
|
+
// },
|
573
|
+
// {
|
574
|
+
// title: 't("deleteItems", { scope: "common" })',
|
575
|
+
// command: 'delete-entity',
|
576
|
+
// priority: 'primary',
|
577
|
+
// type: 'delete',
|
578
|
+
// scope: AXPEntityCommandScope.Selected,
|
579
|
+
// },
|
580
|
+
{
|
581
|
+
title: 't("terminate.Selected", { scope: "common" })',
|
582
|
+
command: 'terminate-entity',
|
583
|
+
priority: 'primary',
|
584
|
+
type: 'delete',
|
585
|
+
scope: AXPEntityCommandScope.Selected,
|
586
|
+
},
|
587
|
+
{
|
588
|
+
title: 't("detail", { scope: "common" })',
|
589
|
+
command: 'open-entity',
|
590
|
+
priority: 'secondary',
|
591
|
+
type: 'view',
|
592
|
+
scope: AXPEntityCommandScope.Individual,
|
593
|
+
},
|
594
|
+
{
|
595
|
+
title: 't("terminate", { scope: "common" })',
|
596
|
+
command: 'terminate-entity',
|
597
|
+
priority: 'secondary',
|
598
|
+
type: 'delete',
|
599
|
+
scope: AXPEntityCommandScope.Individual,
|
600
|
+
},
|
601
|
+
],
|
602
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
603
|
+
},
|
604
|
+
},
|
605
|
+
},
|
606
|
+
};
|
607
|
+
return entityDef;
|
608
|
+
}
|
609
|
+
|
610
|
+
var deviceSessions_entity = /*#__PURE__*/Object.freeze({
|
611
|
+
__proto__: null,
|
612
|
+
factory: factory$3
|
613
|
+
});
|
614
|
+
|
615
|
+
class AXMSecurityManagementDeviceSessionsEntityModule {
|
616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
617
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule }); }
|
618
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, providers: [
|
619
|
+
{
|
620
|
+
provide: AXMDeviceSessionsService,
|
621
|
+
useClass: AXMDeviceSessionsServiceImpl,
|
622
|
+
},
|
623
|
+
] }); }
|
624
|
+
}
|
625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementDeviceSessionsEntityModule, decorators: [{
|
626
|
+
type: NgModule,
|
627
|
+
args: [{
|
628
|
+
imports: [],
|
629
|
+
exports: [],
|
630
|
+
declarations: [],
|
631
|
+
providers: [
|
632
|
+
{
|
633
|
+
provide: AXMDeviceSessionsService,
|
634
|
+
useClass: AXMDeviceSessionsServiceImpl,
|
635
|
+
},
|
636
|
+
],
|
637
|
+
}]
|
638
|
+
}] });
|
639
|
+
|
640
|
+
var AXMSessionStatusTypes;
|
641
|
+
(function (AXMSessionStatusTypes) {
|
642
|
+
AXMSessionStatusTypes["revoked"] = "revoked";
|
643
|
+
AXMSessionStatusTypes["expired"] = "expired";
|
644
|
+
AXMSessionStatusTypes["active"] = "active";
|
645
|
+
})(AXMSessionStatusTypes || (AXMSessionStatusTypes = {}));
|
646
|
+
|
647
|
+
const key = 'security-management';
|
648
|
+
var AXPSecurityManagementMenuKeys;
|
649
|
+
(function (AXPSecurityManagementMenuKeys) {
|
650
|
+
AXPSecurityManagementMenuKeys["Root"] = "security-management";
|
651
|
+
AXPSecurityManagementMenuKeys["Users"] = "security-management:users";
|
652
|
+
AXPSecurityManagementMenuKeys["Roles"] = "security-management:roles";
|
653
|
+
AXPSecurityManagementMenuKeys["DeviceSessions"] = "security-management:deviceSessions";
|
654
|
+
})(AXPSecurityManagementMenuKeys || (AXPSecurityManagementMenuKeys = {}));
|
655
|
+
|
656
|
+
class AXMEntityProvider {
|
657
|
+
constructor() {
|
658
|
+
this.injector = inject(Injector);
|
659
|
+
}
|
660
|
+
preload() {
|
661
|
+
const { entities, module } = RootConfig;
|
662
|
+
return [entities.users.name, entities.roles.name].map((entity) => ({ module: module.name, entity }));
|
663
|
+
}
|
664
|
+
async get(moduleName, entityName) {
|
665
|
+
const { entities, module } = RootConfig;
|
666
|
+
if (moduleName == module.name) {
|
667
|
+
switch (entityName) {
|
668
|
+
case RootConfig.entities.users.name:
|
669
|
+
return (await Promise.resolve().then(function () { return users_entity; })).factory(this.injector);
|
670
|
+
case RootConfig.entities.roles.name:
|
671
|
+
return (await Promise.resolve().then(function () { return roles_entity; })).factory(this.injector);
|
672
|
+
case RootConfig.entities.profile.name:
|
673
|
+
return (await Promise.resolve().then(function () { return profile_entity; })).factory(this.injector);
|
674
|
+
case RootConfig.entities.deviceSessions.name:
|
675
|
+
return (await Promise.resolve().then(function () { return deviceSessions_entity; })).factory(this.injector);
|
676
|
+
}
|
677
|
+
}
|
678
|
+
return null;
|
679
|
+
}
|
680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
681
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
|
682
|
+
}
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
|
684
|
+
type: Injectable
|
685
|
+
}] });
|
686
|
+
|
687
|
+
class AXMMenuProvider {
|
688
|
+
constructor() {
|
689
|
+
this.entityService = inject(AXPEntityService);
|
690
|
+
}
|
691
|
+
async provide(context) {
|
692
|
+
const scope = RootConfig.config.i18n;
|
693
|
+
const moduleName = RootConfig.module.name;
|
694
|
+
context.addItems([
|
695
|
+
{
|
696
|
+
priority: 9001,
|
697
|
+
text: `t('root-menu', {scope: "${scope}"})`,
|
698
|
+
icon: 'fa-light fa-lock',
|
699
|
+
name: AXPSecurityManagementMenuKeys.Root,
|
700
|
+
data: {
|
701
|
+
// requiredPermission: 'demo.admin.settings',
|
702
|
+
},
|
703
|
+
children: [
|
704
|
+
{
|
705
|
+
priority: 9003,
|
706
|
+
text: `t('users', { scope: "${scope}" })`,
|
707
|
+
icon: 'fa-light fa-users',
|
708
|
+
name: AXPSecurityManagementMenuKeys.Users,
|
709
|
+
path: this.entityService.createPath(moduleName, RootConfig.entities.users.name),
|
710
|
+
data: {
|
711
|
+
// requiredPermission: 'demo.admin.settings',
|
712
|
+
},
|
713
|
+
},
|
714
|
+
{
|
715
|
+
priority: 9004,
|
716
|
+
text: `t('roles', { scope: "${scope}" })`,
|
717
|
+
path: this.entityService.createPath(moduleName, RootConfig.entities.roles.name),
|
718
|
+
icon: 'fa-light fa-key',
|
719
|
+
name: AXPSecurityManagementMenuKeys.Roles,
|
720
|
+
data: {
|
721
|
+
// requiredPermission: 'demo.admin.settings',
|
722
|
+
},
|
723
|
+
},
|
724
|
+
{
|
725
|
+
priority: 9005,
|
726
|
+
text: `t('deviceSessions', { scope: "${scope}" })`,
|
727
|
+
path: this.entityService.createPath(moduleName, RootConfig.entities.deviceSessions.name),
|
728
|
+
icon: 'fa-light fa-key',
|
729
|
+
name: AXPSecurityManagementMenuKeys.DeviceSessions,
|
730
|
+
data: {
|
731
|
+
// requiredPermission: 'demo.admin.settings',
|
732
|
+
},
|
733
|
+
},
|
734
|
+
],
|
735
|
+
},
|
736
|
+
]);
|
737
|
+
}
|
738
|
+
}
|
739
|
+
|
740
|
+
async function factory$2(injector) {
|
741
|
+
const dataService = injector.get(AXMSecurityManagementProfileEntityService);
|
742
|
+
const i18n = RootConfig.config.i18n;
|
743
|
+
const entityDef = {
|
744
|
+
module: RootConfig.module.name,
|
745
|
+
name: RootConfig.entities.profile.name,
|
746
|
+
source: '',
|
747
|
+
title: RootConfig.entities.profile.title,
|
748
|
+
formats: {
|
749
|
+
individual: `t("profile", { scope: "${i18n}" })`,
|
750
|
+
plural: RootConfig.entities.profile.title,
|
751
|
+
},
|
752
|
+
relatedEntities: [],
|
753
|
+
groups: [
|
754
|
+
{
|
755
|
+
id: 'info',
|
756
|
+
title: `t("profile", { scope: "${i18n}" })`,
|
757
|
+
},
|
758
|
+
{
|
759
|
+
id: 'contact',
|
760
|
+
title: `t("contactInformation", { scope: "${i18n}" })`,
|
191
761
|
},
|
192
762
|
{
|
193
|
-
id: '
|
194
|
-
title: `t("
|
763
|
+
id: 'address',
|
764
|
+
title: `t("addressInformation", { scope: "${i18n}" })`,
|
195
765
|
},
|
196
766
|
],
|
197
767
|
properties: [
|
198
768
|
{
|
199
|
-
name: '
|
200
|
-
title: `t("
|
769
|
+
name: 'firstName',
|
770
|
+
title: `t("firstName", { scope: "${i18n}" })`,
|
201
771
|
groupId: 'info',
|
202
772
|
options: {
|
203
|
-
filter: {
|
204
|
-
advance: {
|
205
|
-
enabled: true,
|
206
|
-
},
|
207
|
-
inline: {
|
208
|
-
enabled: true,
|
209
|
-
},
|
210
|
-
},
|
211
773
|
sort: {
|
212
774
|
enabled: true,
|
213
775
|
},
|
@@ -225,18 +787,13 @@ async function factory$2(injector) {
|
|
225
787
|
],
|
226
788
|
},
|
227
789
|
{
|
228
|
-
name: '
|
229
|
-
title: `t("
|
790
|
+
name: 'lastName',
|
791
|
+
title: `t("lastName", { scope: "${i18n}" })`,
|
230
792
|
groupId: 'info',
|
231
793
|
options: {
|
232
794
|
sort: {
|
233
795
|
enabled: true,
|
234
796
|
},
|
235
|
-
filter: {
|
236
|
-
advance: {
|
237
|
-
enabled: true,
|
238
|
-
},
|
239
|
-
},
|
240
797
|
},
|
241
798
|
schema: {
|
242
799
|
dataType: 'string',
|
@@ -251,50 +808,51 @@ async function factory$2(injector) {
|
|
251
808
|
],
|
252
809
|
},
|
253
810
|
{
|
254
|
-
name: '
|
255
|
-
title: `t("
|
256
|
-
groupId: '
|
811
|
+
name: 'email',
|
812
|
+
title: `t("email", { scope: "${i18n}" })`,
|
813
|
+
groupId: 'contact',
|
814
|
+
options: {
|
815
|
+
sort: {
|
816
|
+
enabled: true,
|
817
|
+
},
|
818
|
+
},
|
257
819
|
schema: {
|
258
820
|
dataType: 'string',
|
259
821
|
interface: {
|
260
|
-
type: AXPWidgetsCatalog.
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
filter: {
|
265
|
-
advance: {
|
266
|
-
enabled: true,
|
822
|
+
type: AXPWidgetsCatalog.contact,
|
823
|
+
options: {
|
824
|
+
type: 'email',
|
825
|
+
hasLabel: false,
|
267
826
|
},
|
268
827
|
},
|
269
|
-
sort: {
|
270
|
-
enabled: true,
|
271
|
-
},
|
272
828
|
},
|
273
829
|
validations: [
|
274
830
|
{
|
275
831
|
rule: 'required',
|
276
832
|
},
|
833
|
+
{
|
834
|
+
rule: 'email',
|
835
|
+
},
|
277
836
|
],
|
278
837
|
},
|
279
838
|
{
|
280
|
-
name: '
|
281
|
-
title: `t("
|
282
|
-
groupId: '
|
839
|
+
name: 'phone',
|
840
|
+
title: `t("phone", { scope: "${i18n}" })`,
|
841
|
+
groupId: 'contact',
|
842
|
+
options: {
|
843
|
+
sort: {
|
844
|
+
enabled: true,
|
845
|
+
},
|
846
|
+
},
|
283
847
|
schema: {
|
284
848
|
dataType: 'string',
|
285
849
|
interface: {
|
286
|
-
type: AXPWidgetsCatalog.
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
filter: {
|
291
|
-
advance: {
|
292
|
-
enabled: true,
|
850
|
+
type: AXPWidgetsCatalog.contact,
|
851
|
+
options: {
|
852
|
+
type: 'phone',
|
853
|
+
hasLabel: false,
|
293
854
|
},
|
294
855
|
},
|
295
|
-
sort: {
|
296
|
-
enabled: true,
|
297
|
-
},
|
298
856
|
},
|
299
857
|
validations: [
|
300
858
|
{
|
@@ -303,126 +861,77 @@ async function factory$2(injector) {
|
|
303
861
|
],
|
304
862
|
},
|
305
863
|
{
|
306
|
-
name: '
|
307
|
-
title: `t("
|
308
|
-
groupId: '
|
864
|
+
name: 'address',
|
865
|
+
title: `t("address", { scope: "${i18n}" })`,
|
866
|
+
groupId: 'address',
|
867
|
+
options: {
|
868
|
+
sort: {
|
869
|
+
enabled: true,
|
870
|
+
},
|
871
|
+
},
|
309
872
|
schema: {
|
310
873
|
dataType: 'string',
|
311
874
|
interface: {
|
312
|
-
type: AXPWidgetsCatalog.
|
313
|
-
options: {
|
314
|
-
hasLabel: false,
|
315
|
-
placeholder: ``,
|
316
|
-
},
|
875
|
+
type: AXPWidgetsCatalog.largeText,
|
317
876
|
},
|
318
877
|
},
|
878
|
+
},
|
879
|
+
{
|
880
|
+
name: 'city',
|
881
|
+
title: `t("city", { scope: "${i18n}" })`,
|
882
|
+
groupId: 'address',
|
319
883
|
options: {
|
320
|
-
filter: {
|
321
|
-
advance: {
|
322
|
-
enabled: true,
|
323
|
-
},
|
324
|
-
},
|
325
884
|
sort: {
|
326
885
|
enabled: true,
|
327
886
|
},
|
328
887
|
},
|
329
|
-
validations: [],
|
330
|
-
},
|
331
|
-
{
|
332
|
-
name: 'password',
|
333
|
-
title: `t("password", { scope: "${i18n}" })`,
|
334
|
-
groupId: 'authorizations',
|
335
888
|
schema: {
|
336
889
|
dataType: 'string',
|
337
890
|
interface: {
|
338
891
|
type: AXPWidgetsCatalog.text,
|
339
892
|
},
|
340
893
|
},
|
894
|
+
},
|
895
|
+
{
|
896
|
+
name: 'suburb',
|
897
|
+
title: `t("suburb", { scope: "${i18n}" })`,
|
898
|
+
groupId: 'address',
|
341
899
|
options: {
|
342
|
-
filter: {
|
343
|
-
advance: {
|
344
|
-
enabled: true,
|
345
|
-
},
|
346
|
-
},
|
347
900
|
sort: {
|
348
901
|
enabled: true,
|
349
902
|
},
|
350
903
|
},
|
351
|
-
},
|
352
|
-
{
|
353
|
-
name: 'roles',
|
354
|
-
title: `t("roles", { scope: "${i18n}" })`,
|
355
|
-
groupId: 'authorizations',
|
356
904
|
schema: {
|
357
905
|
dataType: 'string',
|
358
906
|
interface: {
|
359
|
-
type: AXPWidgetsCatalog.
|
360
|
-
options: {
|
361
|
-
triggers: [
|
362
|
-
{
|
363
|
-
event: "{{ events.context('lastname') }}",
|
364
|
-
action: `{{console.log(context.eval('lastname'))}}`,
|
365
|
-
},
|
366
|
-
],
|
367
|
-
dataSource: new AXDataSource({
|
368
|
-
load: async () => {
|
369
|
-
const rolesEntity = await entityResolver.get(RootConfig.module.name, 'roles');
|
370
|
-
const roles = await (rolesEntity?.queries.list?.execute)({ skip: 0, take: 100 });
|
371
|
-
return roles;
|
372
|
-
},
|
373
|
-
pageSize: 100,
|
374
|
-
key: 'id',
|
375
|
-
}),
|
376
|
-
valueField: 'id',
|
377
|
-
textField: 'title',
|
378
|
-
multiple: true,
|
379
|
-
},
|
907
|
+
type: AXPWidgetsCatalog.text,
|
380
908
|
},
|
381
909
|
},
|
382
|
-
validations: [
|
383
|
-
{
|
384
|
-
rule: 'required',
|
385
|
-
},
|
386
|
-
],
|
387
910
|
},
|
388
911
|
],
|
389
|
-
columns: [
|
390
|
-
{ name: 'username' },
|
391
|
-
{ name: 'firstname' },
|
392
|
-
{ name: 'lastname' },
|
393
|
-
{ name: 'nationalCode' },
|
394
|
-
{ name: 'mobile' },
|
395
|
-
],
|
912
|
+
columns: [{ name: 'firstName' }, { name: 'lastName' }, { name: 'email' }, { name: 'phone' }],
|
396
913
|
commands: {
|
397
914
|
create: {
|
398
|
-
execute: async (data) => {
|
399
|
-
console.log({ data });
|
400
|
-
const res = await dataService.insertOne(data);
|
401
|
-
return { id: res };
|
402
|
-
},
|
915
|
+
execute: async (data) => { },
|
403
916
|
},
|
404
917
|
delete: {
|
405
|
-
execute: async (id) => {
|
406
|
-
return await dataService.deleteOne(id);
|
407
|
-
},
|
918
|
+
execute: async (id) => { },
|
408
919
|
},
|
409
920
|
update: {
|
410
921
|
execute: async (data) => {
|
411
|
-
return await dataService.
|
922
|
+
return await dataService.update(data.id, data);
|
412
923
|
},
|
413
924
|
},
|
414
925
|
},
|
415
926
|
queries: {
|
416
927
|
byKey: {
|
417
928
|
execute: async (id) => {
|
418
|
-
return await dataService.
|
929
|
+
return await dataService.get();
|
419
930
|
},
|
420
931
|
type: AXPEntityQueryType.Single,
|
421
932
|
},
|
422
933
|
list: {
|
423
|
-
execute: async (e) => {
|
424
|
-
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
425
|
-
},
|
934
|
+
execute: async (e) => { },
|
426
935
|
type: AXPEntityQueryType.List,
|
427
936
|
},
|
428
937
|
},
|
@@ -434,12 +943,15 @@ async function factory$2(injector) {
|
|
434
943
|
id: 'info',
|
435
944
|
},
|
436
945
|
{
|
437
|
-
id: '
|
946
|
+
id: 'contact',
|
947
|
+
},
|
948
|
+
{
|
949
|
+
id: 'address',
|
438
950
|
},
|
439
951
|
],
|
440
952
|
properties: [
|
441
953
|
{
|
442
|
-
name: '
|
954
|
+
name: 'firstName',
|
443
955
|
layout: {
|
444
956
|
positions: {
|
445
957
|
lg: {
|
@@ -449,7 +961,7 @@ async function factory$2(injector) {
|
|
449
961
|
},
|
450
962
|
},
|
451
963
|
{
|
452
|
-
name: '
|
964
|
+
name: 'lastName',
|
453
965
|
layout: {
|
454
966
|
positions: {
|
455
967
|
lg: {
|
@@ -459,7 +971,7 @@ async function factory$2(injector) {
|
|
459
971
|
},
|
460
972
|
},
|
461
973
|
{
|
462
|
-
name: '
|
974
|
+
name: 'email',
|
463
975
|
layout: {
|
464
976
|
positions: {
|
465
977
|
lg: {
|
@@ -469,7 +981,7 @@ async function factory$2(injector) {
|
|
469
981
|
},
|
470
982
|
},
|
471
983
|
{
|
472
|
-
name: '
|
984
|
+
name: 'phone',
|
473
985
|
layout: {
|
474
986
|
positions: {
|
475
987
|
lg: {
|
@@ -479,31 +991,31 @@ async function factory$2(injector) {
|
|
479
991
|
},
|
480
992
|
},
|
481
993
|
{
|
482
|
-
name: '
|
994
|
+
name: 'address',
|
483
995
|
layout: {
|
484
996
|
positions: {
|
485
997
|
lg: {
|
486
|
-
colSpan:
|
998
|
+
colSpan: 12,
|
487
999
|
},
|
488
1000
|
},
|
489
1001
|
},
|
490
1002
|
},
|
491
1003
|
{
|
492
|
-
name: '
|
1004
|
+
name: 'city',
|
493
1005
|
layout: {
|
494
1006
|
positions: {
|
495
1007
|
lg: {
|
496
|
-
colSpan:
|
1008
|
+
colSpan: 6,
|
497
1009
|
},
|
498
1010
|
},
|
499
1011
|
},
|
500
1012
|
},
|
501
1013
|
{
|
502
|
-
name: '
|
1014
|
+
name: 'suburb',
|
503
1015
|
layout: {
|
504
1016
|
positions: {
|
505
1017
|
lg: {
|
506
|
-
colSpan:
|
1018
|
+
colSpan: 6,
|
507
1019
|
},
|
508
1020
|
},
|
509
1021
|
},
|
@@ -516,12 +1028,15 @@ async function factory$2(injector) {
|
|
516
1028
|
id: 'info',
|
517
1029
|
},
|
518
1030
|
{
|
519
|
-
id: '
|
1031
|
+
id: 'contact',
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
id: 'address',
|
520
1035
|
},
|
521
1036
|
],
|
522
1037
|
properties: [
|
523
1038
|
{
|
524
|
-
name: '
|
1039
|
+
name: 'firstName',
|
525
1040
|
layout: {
|
526
1041
|
positions: {
|
527
1042
|
lg: {
|
@@ -531,7 +1046,7 @@ async function factory$2(injector) {
|
|
531
1046
|
},
|
532
1047
|
},
|
533
1048
|
{
|
534
|
-
name: '
|
1049
|
+
name: 'lastName',
|
535
1050
|
layout: {
|
536
1051
|
positions: {
|
537
1052
|
lg: {
|
@@ -541,7 +1056,7 @@ async function factory$2(injector) {
|
|
541
1056
|
},
|
542
1057
|
},
|
543
1058
|
{
|
544
|
-
name: '
|
1059
|
+
name: 'email',
|
545
1060
|
layout: {
|
546
1061
|
positions: {
|
547
1062
|
lg: {
|
@@ -551,7 +1066,7 @@ async function factory$2(injector) {
|
|
551
1066
|
},
|
552
1067
|
},
|
553
1068
|
{
|
554
|
-
name: '
|
1069
|
+
name: 'phone',
|
555
1070
|
layout: {
|
556
1071
|
positions: {
|
557
1072
|
lg: {
|
@@ -561,31 +1076,31 @@ async function factory$2(injector) {
|
|
561
1076
|
},
|
562
1077
|
},
|
563
1078
|
{
|
564
|
-
name: '
|
1079
|
+
name: 'address',
|
565
1080
|
layout: {
|
566
1081
|
positions: {
|
567
1082
|
lg: {
|
568
|
-
colSpan:
|
1083
|
+
colSpan: 12,
|
569
1084
|
},
|
570
1085
|
},
|
571
1086
|
},
|
572
1087
|
},
|
573
1088
|
{
|
574
|
-
name: '
|
1089
|
+
name: 'city',
|
575
1090
|
layout: {
|
576
1091
|
positions: {
|
577
1092
|
lg: {
|
578
|
-
colSpan:
|
1093
|
+
colSpan: 6,
|
579
1094
|
},
|
580
1095
|
},
|
581
1096
|
},
|
582
1097
|
},
|
583
1098
|
{
|
584
|
-
name: '
|
1099
|
+
name: 'suburb',
|
585
1100
|
layout: {
|
586
1101
|
positions: {
|
587
1102
|
lg: {
|
588
|
-
colSpan:
|
1103
|
+
colSpan: 6,
|
589
1104
|
},
|
590
1105
|
},
|
591
1106
|
},
|
@@ -593,7 +1108,7 @@ async function factory$2(injector) {
|
|
593
1108
|
],
|
594
1109
|
},
|
595
1110
|
single: {
|
596
|
-
title: '{{
|
1111
|
+
title: '{{firstName}} {{lastName}}',
|
597
1112
|
sections: [
|
598
1113
|
{
|
599
1114
|
id: 'info',
|
@@ -606,7 +1121,17 @@ async function factory$2(injector) {
|
|
606
1121
|
},
|
607
1122
|
},
|
608
1123
|
{
|
609
|
-
id: '
|
1124
|
+
id: 'contact',
|
1125
|
+
layout: {
|
1126
|
+
positions: {
|
1127
|
+
lg: {
|
1128
|
+
colSpan: 12,
|
1129
|
+
},
|
1130
|
+
},
|
1131
|
+
},
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
id: 'address',
|
610
1135
|
layout: {
|
611
1136
|
positions: {
|
612
1137
|
lg: {
|
@@ -618,7 +1143,7 @@ async function factory$2(injector) {
|
|
618
1143
|
],
|
619
1144
|
properties: [
|
620
1145
|
{
|
621
|
-
name: '
|
1146
|
+
name: 'firstName',
|
622
1147
|
layout: {
|
623
1148
|
positions: {
|
624
1149
|
lg: {
|
@@ -628,7 +1153,7 @@ async function factory$2(injector) {
|
|
628
1153
|
},
|
629
1154
|
},
|
630
1155
|
{
|
631
|
-
name: '
|
1156
|
+
name: 'lastName',
|
632
1157
|
layout: {
|
633
1158
|
positions: {
|
634
1159
|
lg: {
|
@@ -638,7 +1163,7 @@ async function factory$2(injector) {
|
|
638
1163
|
},
|
639
1164
|
},
|
640
1165
|
{
|
641
|
-
name: '
|
1166
|
+
name: 'email',
|
642
1167
|
layout: {
|
643
1168
|
positions: {
|
644
1169
|
lg: {
|
@@ -648,7 +1173,7 @@ async function factory$2(injector) {
|
|
648
1173
|
},
|
649
1174
|
},
|
650
1175
|
{
|
651
|
-
name: '
|
1176
|
+
name: 'phone',
|
652
1177
|
layout: {
|
653
1178
|
positions: {
|
654
1179
|
lg: {
|
@@ -658,31 +1183,31 @@ async function factory$2(injector) {
|
|
658
1183
|
},
|
659
1184
|
},
|
660
1185
|
{
|
661
|
-
name: '
|
1186
|
+
name: 'address',
|
662
1187
|
layout: {
|
663
1188
|
positions: {
|
664
1189
|
lg: {
|
665
|
-
colSpan:
|
1190
|
+
colSpan: 12,
|
666
1191
|
},
|
667
1192
|
},
|
668
1193
|
},
|
669
1194
|
},
|
670
1195
|
{
|
671
|
-
name: '
|
1196
|
+
name: 'city',
|
672
1197
|
layout: {
|
673
1198
|
positions: {
|
674
1199
|
lg: {
|
675
|
-
colSpan:
|
1200
|
+
colSpan: 6,
|
676
1201
|
},
|
677
1202
|
},
|
678
1203
|
},
|
679
1204
|
},
|
680
1205
|
{
|
681
|
-
name: '
|
1206
|
+
name: 'suburb',
|
682
1207
|
layout: {
|
683
1208
|
positions: {
|
684
1209
|
lg: {
|
685
|
-
colSpan:
|
1210
|
+
colSpan: 6,
|
686
1211
|
},
|
687
1212
|
},
|
688
1213
|
},
|
@@ -699,32 +1224,32 @@ async function factory$2(injector) {
|
|
699
1224
|
type: 'create',
|
700
1225
|
scope: AXPEntityCommandScope.TypeLevel,
|
701
1226
|
},
|
702
|
-
// {
|
703
|
-
// title: `t("deleteItems", {scope: "common"})`,
|
704
|
-
// command: 'delete-entity',
|
705
|
-
// priority: 'primary',
|
706
|
-
// type: 'delete',
|
707
|
-
// scope: AXPEntityCommandScope.Selected,
|
708
|
-
// },
|
709
1227
|
{
|
710
|
-
title:
|
1228
|
+
title: 't("deleteItems", { scope: "common" })',
|
1229
|
+
command: 'delete-entity',
|
1230
|
+
priority: 'primary',
|
1231
|
+
type: 'delete',
|
1232
|
+
scope: AXPEntityCommandScope.Selected,
|
1233
|
+
},
|
1234
|
+
{
|
1235
|
+
title: 't("detail", { scope: "common" })',
|
711
1236
|
command: 'open-entity',
|
712
1237
|
priority: 'secondary',
|
713
1238
|
type: 'view',
|
714
1239
|
scope: AXPEntityCommandScope.Individual,
|
715
1240
|
},
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
1241
|
+
{
|
1242
|
+
title: 't("delete", { scope: "common" })',
|
1243
|
+
command: 'delete-entity',
|
1244
|
+
priority: 'secondary',
|
1245
|
+
type: 'delete',
|
1246
|
+
scope: AXPEntityCommandScope.Individual,
|
1247
|
+
},
|
723
1248
|
],
|
724
1249
|
views: [
|
725
1250
|
{
|
726
1251
|
name: 'all',
|
727
|
-
title:
|
1252
|
+
title: 't("allItem", { scope: "common" })',
|
728
1253
|
fixed: true,
|
729
1254
|
columns: [],
|
730
1255
|
conditions: [],
|
@@ -735,26 +1260,25 @@ async function factory$2(injector) {
|
|
735
1260
|
},
|
736
1261
|
},
|
737
1262
|
};
|
738
|
-
const x = entityDef.properties.find((x) => x.name === 'roles')?.schema.interface?.options;
|
739
1263
|
return entityDef;
|
740
1264
|
}
|
741
1265
|
|
742
|
-
var
|
1266
|
+
var profile_entity = /*#__PURE__*/Object.freeze({
|
743
1267
|
__proto__: null,
|
744
1268
|
factory: factory$2
|
745
1269
|
});
|
746
1270
|
|
747
|
-
class
|
748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
749
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type:
|
750
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
1271
|
+
class AXMSecurityManagementProfileEntityModule {
|
1272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1273
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule }); }
|
1274
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, providers: [
|
751
1275
|
{
|
752
|
-
provide:
|
753
|
-
useClass:
|
1276
|
+
provide: AXMSecurityManagementProfileEntityService,
|
1277
|
+
useClass: AXMSecurityManagementProfileEntityServiceImpl,
|
754
1278
|
},
|
755
1279
|
] }); }
|
756
1280
|
}
|
757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
1281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, decorators: [{
|
758
1282
|
type: NgModule,
|
759
1283
|
args: [{
|
760
1284
|
imports: [],
|
@@ -762,8 +1286,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
762
1286
|
declarations: [],
|
763
1287
|
providers: [
|
764
1288
|
{
|
765
|
-
provide:
|
766
|
-
useClass:
|
1289
|
+
provide: AXMSecurityManagementProfileEntityService,
|
1290
|
+
useClass: AXMSecurityManagementProfileEntityServiceImpl,
|
767
1291
|
},
|
768
1292
|
],
|
769
1293
|
}]
|
@@ -1193,79 +1717,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1193
1717
|
}]
|
1194
1718
|
}] });
|
1195
1719
|
|
1196
|
-
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
1197
|
-
constructor() {
|
1198
|
-
super(...arguments);
|
1199
|
-
this.commands = [
|
1200
|
-
{
|
1201
|
-
id: 'create-security-user',
|
1202
|
-
group: 'command',
|
1203
|
-
title: 'New User',
|
1204
|
-
icon: RootConfig.entities.users.icon,
|
1205
|
-
description: 'Create a new user entity in the system.', // Added meaningful description
|
1206
|
-
command: {
|
1207
|
-
// 'create-entity': {
|
1208
|
-
// entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`,
|
1209
|
-
// },
|
1210
|
-
name: 'create-entity',
|
1211
|
-
options: {
|
1212
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`
|
1213
|
-
}
|
1214
|
-
},
|
1215
|
-
},
|
1216
|
-
{
|
1217
|
-
id: 'create-security-role',
|
1218
|
-
group: 'command',
|
1219
|
-
title: 'New Security Role',
|
1220
|
-
icon: RootConfig.entities.roles.icon,
|
1221
|
-
description: 'Define a new security role to manage permissions.', // Added meaningful description
|
1222
|
-
command: {
|
1223
|
-
// 'create-entity': {
|
1224
|
-
// entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
|
1225
|
-
// },
|
1226
|
-
name: 'create-entity',
|
1227
|
-
options: {
|
1228
|
-
entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
|
1229
|
-
}
|
1230
|
-
},
|
1231
|
-
},
|
1232
|
-
];
|
1233
|
-
}
|
1234
|
-
}
|
1235
|
-
|
1236
1720
|
async function factory(injector) {
|
1237
|
-
const dataService = injector.get(
|
1721
|
+
const dataService = injector.get(AXMtUsersEntityService);
|
1722
|
+
const entityResolver = injector.get(AXPEntityResolver);
|
1238
1723
|
const i18n = RootConfig.config.i18n;
|
1239
1724
|
const entityDef = {
|
1240
1725
|
module: RootConfig.module.name,
|
1241
|
-
name: RootConfig.entities.
|
1726
|
+
name: RootConfig.entities.users.name,
|
1242
1727
|
source: '',
|
1243
|
-
title: RootConfig.entities.
|
1728
|
+
title: RootConfig.entities.users.title,
|
1244
1729
|
formats: {
|
1245
|
-
individual: `t("
|
1246
|
-
plural:
|
1730
|
+
individual: `t("user", { scope: "${i18n}" })`,
|
1731
|
+
plural: `t("users", { scope: "${i18n}" })`,
|
1247
1732
|
},
|
1248
1733
|
relatedEntities: [],
|
1249
1734
|
groups: [
|
1250
1735
|
{
|
1251
1736
|
id: 'info',
|
1252
|
-
title: `t("
|
1253
|
-
},
|
1254
|
-
{
|
1255
|
-
id: 'contact',
|
1256
|
-
title: `t("contactInformation", { scope: "${i18n}" })`,
|
1737
|
+
title: `t("information", { scope: "${i18n}" })`,
|
1257
1738
|
},
|
1258
1739
|
{
|
1259
|
-
id: '
|
1260
|
-
title: `t("
|
1740
|
+
id: 'authorizations',
|
1741
|
+
title: `t("authorizations", { scope: "${i18n}" })`,
|
1261
1742
|
},
|
1262
1743
|
],
|
1263
1744
|
properties: [
|
1264
1745
|
{
|
1265
|
-
name: '
|
1266
|
-
title: `t("
|
1746
|
+
name: 'username',
|
1747
|
+
title: `t("username", { scope: "${i18n}" })`,
|
1267
1748
|
groupId: 'info',
|
1268
1749
|
options: {
|
1750
|
+
filter: {
|
1751
|
+
advance: {
|
1752
|
+
enabled: true,
|
1753
|
+
},
|
1754
|
+
inline: {
|
1755
|
+
enabled: true,
|
1756
|
+
},
|
1757
|
+
},
|
1269
1758
|
sort: {
|
1270
1759
|
enabled: true,
|
1271
1760
|
},
|
@@ -1283,13 +1772,18 @@ async function factory(injector) {
|
|
1283
1772
|
],
|
1284
1773
|
},
|
1285
1774
|
{
|
1286
|
-
name: '
|
1287
|
-
title: `t("
|
1775
|
+
name: 'firstname',
|
1776
|
+
title: `t("firstname", { scope: "${i18n}" })`,
|
1288
1777
|
groupId: 'info',
|
1289
1778
|
options: {
|
1290
1779
|
sort: {
|
1291
1780
|
enabled: true,
|
1292
1781
|
},
|
1782
|
+
filter: {
|
1783
|
+
advance: {
|
1784
|
+
enabled: true,
|
1785
|
+
},
|
1786
|
+
},
|
1293
1787
|
},
|
1294
1788
|
schema: {
|
1295
1789
|
dataType: 'string',
|
@@ -1304,51 +1798,50 @@ async function factory(injector) {
|
|
1304
1798
|
],
|
1305
1799
|
},
|
1306
1800
|
{
|
1307
|
-
name: '
|
1308
|
-
title: `t("
|
1309
|
-
groupId: '
|
1310
|
-
options: {
|
1311
|
-
sort: {
|
1312
|
-
enabled: true,
|
1313
|
-
},
|
1314
|
-
},
|
1801
|
+
name: 'lastname',
|
1802
|
+
title: `t("lastname", { scope: "${i18n}" })`,
|
1803
|
+
groupId: 'info',
|
1315
1804
|
schema: {
|
1316
1805
|
dataType: 'string',
|
1317
1806
|
interface: {
|
1318
|
-
type: AXPWidgetsCatalog.
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1807
|
+
type: AXPWidgetsCatalog.text,
|
1808
|
+
},
|
1809
|
+
},
|
1810
|
+
options: {
|
1811
|
+
filter: {
|
1812
|
+
advance: {
|
1813
|
+
enabled: true,
|
1322
1814
|
},
|
1323
1815
|
},
|
1816
|
+
sort: {
|
1817
|
+
enabled: true,
|
1818
|
+
},
|
1324
1819
|
},
|
1325
1820
|
validations: [
|
1326
1821
|
{
|
1327
1822
|
rule: 'required',
|
1328
1823
|
},
|
1329
|
-
{
|
1330
|
-
rule: 'email',
|
1331
|
-
},
|
1332
1824
|
],
|
1333
1825
|
},
|
1334
1826
|
{
|
1335
|
-
name: '
|
1336
|
-
title: `t("
|
1337
|
-
groupId: '
|
1338
|
-
options: {
|
1339
|
-
sort: {
|
1340
|
-
enabled: true,
|
1341
|
-
},
|
1342
|
-
},
|
1827
|
+
name: 'nationalCode',
|
1828
|
+
title: `t("nationalCode", { scope: "${i18n}" })`,
|
1829
|
+
groupId: 'info',
|
1343
1830
|
schema: {
|
1344
1831
|
dataType: 'string',
|
1345
1832
|
interface: {
|
1346
|
-
type: AXPWidgetsCatalog.
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1833
|
+
type: AXPWidgetsCatalog.text,
|
1834
|
+
},
|
1835
|
+
},
|
1836
|
+
options: {
|
1837
|
+
filter: {
|
1838
|
+
advance: {
|
1839
|
+
enabled: true,
|
1350
1840
|
},
|
1351
1841
|
},
|
1842
|
+
sort: {
|
1843
|
+
enabled: true,
|
1844
|
+
},
|
1352
1845
|
},
|
1353
1846
|
validations: [
|
1354
1847
|
{
|
@@ -1357,77 +1850,126 @@ async function factory(injector) {
|
|
1357
1850
|
],
|
1358
1851
|
},
|
1359
1852
|
{
|
1360
|
-
name: '
|
1361
|
-
title: `t("
|
1362
|
-
groupId: '
|
1363
|
-
options: {
|
1364
|
-
sort: {
|
1365
|
-
enabled: true,
|
1366
|
-
},
|
1367
|
-
},
|
1853
|
+
name: 'mobile',
|
1854
|
+
title: `t("mobile", { scope: "${i18n}" })`,
|
1855
|
+
groupId: 'info',
|
1368
1856
|
schema: {
|
1369
1857
|
dataType: 'string',
|
1370
1858
|
interface: {
|
1371
|
-
type: AXPWidgetsCatalog.
|
1859
|
+
type: AXPWidgetsCatalog.text,
|
1860
|
+
options: {
|
1861
|
+
hasLabel: false,
|
1862
|
+
placeholder: ``,
|
1863
|
+
},
|
1372
1864
|
},
|
1373
1865
|
},
|
1374
|
-
},
|
1375
|
-
{
|
1376
|
-
name: 'city',
|
1377
|
-
title: `t("city", { scope: "${i18n}" })`,
|
1378
|
-
groupId: 'address',
|
1379
1866
|
options: {
|
1867
|
+
filter: {
|
1868
|
+
advance: {
|
1869
|
+
enabled: true,
|
1870
|
+
},
|
1871
|
+
},
|
1380
1872
|
sort: {
|
1381
1873
|
enabled: true,
|
1382
1874
|
},
|
1383
1875
|
},
|
1876
|
+
validations: [],
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
name: 'password',
|
1880
|
+
title: `t("password", { scope: "${i18n}" })`,
|
1881
|
+
groupId: 'authorizations',
|
1384
1882
|
schema: {
|
1385
1883
|
dataType: 'string',
|
1386
1884
|
interface: {
|
1387
1885
|
type: AXPWidgetsCatalog.text,
|
1388
1886
|
},
|
1389
1887
|
},
|
1390
|
-
},
|
1391
|
-
{
|
1392
|
-
name: 'suburb',
|
1393
|
-
title: `t("suburb", { scope: "${i18n}" })`,
|
1394
|
-
groupId: 'address',
|
1395
1888
|
options: {
|
1889
|
+
filter: {
|
1890
|
+
advance: {
|
1891
|
+
enabled: true,
|
1892
|
+
},
|
1893
|
+
},
|
1396
1894
|
sort: {
|
1397
1895
|
enabled: true,
|
1398
1896
|
},
|
1399
1897
|
},
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1898
|
+
},
|
1899
|
+
{
|
1900
|
+
name: 'roles',
|
1901
|
+
title: `t("roles", { scope: "${i18n}" })`,
|
1902
|
+
groupId: 'authorizations',
|
1903
|
+
schema: {
|
1904
|
+
dataType: 'string',
|
1905
|
+
interface: {
|
1906
|
+
type: AXPWidgetsCatalog.select,
|
1907
|
+
options: {
|
1908
|
+
triggers: [
|
1909
|
+
{
|
1910
|
+
event: "{{ events.context('lastname') }}",
|
1911
|
+
action: `{{console.log(context.eval('lastname'))}}`,
|
1912
|
+
},
|
1913
|
+
],
|
1914
|
+
dataSource: new AXDataSource({
|
1915
|
+
load: async () => {
|
1916
|
+
const rolesEntity = await entityResolver.get(RootConfig.module.name, 'roles');
|
1917
|
+
const roles = await (rolesEntity?.queries.list?.execute)({ skip: 0, take: 100 });
|
1918
|
+
return roles;
|
1919
|
+
},
|
1920
|
+
pageSize: 100,
|
1921
|
+
key: 'id',
|
1922
|
+
}),
|
1923
|
+
valueField: 'id',
|
1924
|
+
textField: 'title',
|
1925
|
+
multiple: true,
|
1926
|
+
},
|
1927
|
+
},
|
1928
|
+
},
|
1929
|
+
validations: [
|
1930
|
+
{
|
1931
|
+
rule: 'required',
|
1404
1932
|
},
|
1405
|
-
|
1933
|
+
],
|
1406
1934
|
},
|
1407
1935
|
],
|
1408
|
-
columns: [
|
1936
|
+
columns: [
|
1937
|
+
{ name: 'username' },
|
1938
|
+
{ name: 'firstname' },
|
1939
|
+
{ name: 'lastname' },
|
1940
|
+
{ name: 'nationalCode' },
|
1941
|
+
{ name: 'mobile' },
|
1942
|
+
],
|
1409
1943
|
commands: {
|
1410
1944
|
create: {
|
1411
|
-
execute: async (data) => {
|
1945
|
+
execute: async (data) => {
|
1946
|
+
console.log({ data });
|
1947
|
+
const res = await dataService.insertOne(data);
|
1948
|
+
return { id: res };
|
1949
|
+
},
|
1412
1950
|
},
|
1413
1951
|
delete: {
|
1414
|
-
execute: async (id) => {
|
1952
|
+
execute: async (id) => {
|
1953
|
+
return await dataService.deleteOne(id);
|
1954
|
+
},
|
1415
1955
|
},
|
1416
1956
|
update: {
|
1417
1957
|
execute: async (data) => {
|
1418
|
-
return await dataService.
|
1958
|
+
return await dataService.updateOne(data.id, data);
|
1419
1959
|
},
|
1420
1960
|
},
|
1421
1961
|
},
|
1422
1962
|
queries: {
|
1423
1963
|
byKey: {
|
1424
1964
|
execute: async (id) => {
|
1425
|
-
return await dataService.
|
1965
|
+
return await dataService.getOne(id);
|
1426
1966
|
},
|
1427
1967
|
type: AXPEntityQueryType.Single,
|
1428
1968
|
},
|
1429
1969
|
list: {
|
1430
|
-
execute: async (e) => {
|
1970
|
+
execute: async (e) => {
|
1971
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
1972
|
+
},
|
1431
1973
|
type: AXPEntityQueryType.List,
|
1432
1974
|
},
|
1433
1975
|
},
|
@@ -1439,15 +1981,12 @@ async function factory(injector) {
|
|
1439
1981
|
id: 'info',
|
1440
1982
|
},
|
1441
1983
|
{
|
1442
|
-
id: '
|
1443
|
-
},
|
1444
|
-
{
|
1445
|
-
id: 'address',
|
1984
|
+
id: 'authorizations',
|
1446
1985
|
},
|
1447
1986
|
],
|
1448
1987
|
properties: [
|
1449
1988
|
{
|
1450
|
-
name: '
|
1989
|
+
name: 'username',
|
1451
1990
|
layout: {
|
1452
1991
|
positions: {
|
1453
1992
|
lg: {
|
@@ -1457,7 +1996,7 @@ async function factory(injector) {
|
|
1457
1996
|
},
|
1458
1997
|
},
|
1459
1998
|
{
|
1460
|
-
name: '
|
1999
|
+
name: 'firstname',
|
1461
2000
|
layout: {
|
1462
2001
|
positions: {
|
1463
2002
|
lg: {
|
@@ -1467,7 +2006,7 @@ async function factory(injector) {
|
|
1467
2006
|
},
|
1468
2007
|
},
|
1469
2008
|
{
|
1470
|
-
name: '
|
2009
|
+
name: 'lastname',
|
1471
2010
|
layout: {
|
1472
2011
|
positions: {
|
1473
2012
|
lg: {
|
@@ -1477,7 +2016,7 @@ async function factory(injector) {
|
|
1477
2016
|
},
|
1478
2017
|
},
|
1479
2018
|
{
|
1480
|
-
name: '
|
2019
|
+
name: 'nationalCode',
|
1481
2020
|
layout: {
|
1482
2021
|
positions: {
|
1483
2022
|
lg: {
|
@@ -1487,31 +2026,31 @@ async function factory(injector) {
|
|
1487
2026
|
},
|
1488
2027
|
},
|
1489
2028
|
{
|
1490
|
-
name: '
|
2029
|
+
name: 'mobile',
|
1491
2030
|
layout: {
|
1492
2031
|
positions: {
|
1493
2032
|
lg: {
|
1494
|
-
colSpan:
|
2033
|
+
colSpan: 6,
|
1495
2034
|
},
|
1496
2035
|
},
|
1497
2036
|
},
|
1498
2037
|
},
|
1499
2038
|
{
|
1500
|
-
name: '
|
2039
|
+
name: 'roles',
|
1501
2040
|
layout: {
|
1502
2041
|
positions: {
|
1503
2042
|
lg: {
|
1504
|
-
colSpan:
|
2043
|
+
colSpan: 12,
|
1505
2044
|
},
|
1506
2045
|
},
|
1507
2046
|
},
|
1508
2047
|
},
|
1509
2048
|
{
|
1510
|
-
name: '
|
2049
|
+
name: 'password',
|
1511
2050
|
layout: {
|
1512
2051
|
positions: {
|
1513
2052
|
lg: {
|
1514
|
-
colSpan:
|
2053
|
+
colSpan: 12,
|
1515
2054
|
},
|
1516
2055
|
},
|
1517
2056
|
},
|
@@ -1524,15 +2063,12 @@ async function factory(injector) {
|
|
1524
2063
|
id: 'info',
|
1525
2064
|
},
|
1526
2065
|
{
|
1527
|
-
id: '
|
1528
|
-
},
|
1529
|
-
{
|
1530
|
-
id: 'address',
|
2066
|
+
id: 'authorizations',
|
1531
2067
|
},
|
1532
2068
|
],
|
1533
2069
|
properties: [
|
1534
2070
|
{
|
1535
|
-
name: '
|
2071
|
+
name: 'username',
|
1536
2072
|
layout: {
|
1537
2073
|
positions: {
|
1538
2074
|
lg: {
|
@@ -1542,7 +2078,7 @@ async function factory(injector) {
|
|
1542
2078
|
},
|
1543
2079
|
},
|
1544
2080
|
{
|
1545
|
-
name: '
|
2081
|
+
name: 'firstname',
|
1546
2082
|
layout: {
|
1547
2083
|
positions: {
|
1548
2084
|
lg: {
|
@@ -1552,7 +2088,7 @@ async function factory(injector) {
|
|
1552
2088
|
},
|
1553
2089
|
},
|
1554
2090
|
{
|
1555
|
-
name: '
|
2091
|
+
name: 'lastname',
|
1556
2092
|
layout: {
|
1557
2093
|
positions: {
|
1558
2094
|
lg: {
|
@@ -1562,7 +2098,7 @@ async function factory(injector) {
|
|
1562
2098
|
},
|
1563
2099
|
},
|
1564
2100
|
{
|
1565
|
-
name: '
|
2101
|
+
name: 'nationalCode',
|
1566
2102
|
layout: {
|
1567
2103
|
positions: {
|
1568
2104
|
lg: {
|
@@ -1572,31 +2108,31 @@ async function factory(injector) {
|
|
1572
2108
|
},
|
1573
2109
|
},
|
1574
2110
|
{
|
1575
|
-
name: '
|
2111
|
+
name: 'mobile',
|
1576
2112
|
layout: {
|
1577
2113
|
positions: {
|
1578
2114
|
lg: {
|
1579
|
-
colSpan:
|
2115
|
+
colSpan: 6,
|
1580
2116
|
},
|
1581
2117
|
},
|
1582
2118
|
},
|
1583
2119
|
},
|
1584
2120
|
{
|
1585
|
-
name: '
|
2121
|
+
name: 'roles',
|
1586
2122
|
layout: {
|
1587
2123
|
positions: {
|
1588
2124
|
lg: {
|
1589
|
-
colSpan:
|
2125
|
+
colSpan: 12,
|
1590
2126
|
},
|
1591
2127
|
},
|
1592
2128
|
},
|
1593
2129
|
},
|
1594
2130
|
{
|
1595
|
-
name: '
|
2131
|
+
name: 'password',
|
1596
2132
|
layout: {
|
1597
2133
|
positions: {
|
1598
2134
|
lg: {
|
1599
|
-
colSpan:
|
2135
|
+
colSpan: 12,
|
1600
2136
|
},
|
1601
2137
|
},
|
1602
2138
|
},
|
@@ -1604,7 +2140,7 @@ async function factory(injector) {
|
|
1604
2140
|
],
|
1605
2141
|
},
|
1606
2142
|
single: {
|
1607
|
-
title: '{{
|
2143
|
+
title: '{{firstname}} {{lastname}}',
|
1608
2144
|
sections: [
|
1609
2145
|
{
|
1610
2146
|
id: 'info',
|
@@ -1617,17 +2153,7 @@ async function factory(injector) {
|
|
1617
2153
|
},
|
1618
2154
|
},
|
1619
2155
|
{
|
1620
|
-
id: '
|
1621
|
-
layout: {
|
1622
|
-
positions: {
|
1623
|
-
lg: {
|
1624
|
-
colSpan: 12,
|
1625
|
-
},
|
1626
|
-
},
|
1627
|
-
},
|
1628
|
-
},
|
1629
|
-
{
|
1630
|
-
id: 'address',
|
2156
|
+
id: 'authorizations',
|
1631
2157
|
layout: {
|
1632
2158
|
positions: {
|
1633
2159
|
lg: {
|
@@ -1639,7 +2165,7 @@ async function factory(injector) {
|
|
1639
2165
|
],
|
1640
2166
|
properties: [
|
1641
2167
|
{
|
1642
|
-
name: '
|
2168
|
+
name: 'username',
|
1643
2169
|
layout: {
|
1644
2170
|
positions: {
|
1645
2171
|
lg: {
|
@@ -1649,7 +2175,7 @@ async function factory(injector) {
|
|
1649
2175
|
},
|
1650
2176
|
},
|
1651
2177
|
{
|
1652
|
-
name: '
|
2178
|
+
name: 'firstname',
|
1653
2179
|
layout: {
|
1654
2180
|
positions: {
|
1655
2181
|
lg: {
|
@@ -1659,7 +2185,7 @@ async function factory(injector) {
|
|
1659
2185
|
},
|
1660
2186
|
},
|
1661
2187
|
{
|
1662
|
-
name: '
|
2188
|
+
name: 'lastname',
|
1663
2189
|
layout: {
|
1664
2190
|
positions: {
|
1665
2191
|
lg: {
|
@@ -1669,7 +2195,7 @@ async function factory(injector) {
|
|
1669
2195
|
},
|
1670
2196
|
},
|
1671
2197
|
{
|
1672
|
-
name: '
|
2198
|
+
name: 'nationalCode',
|
1673
2199
|
layout: {
|
1674
2200
|
positions: {
|
1675
2201
|
lg: {
|
@@ -1679,31 +2205,31 @@ async function factory(injector) {
|
|
1679
2205
|
},
|
1680
2206
|
},
|
1681
2207
|
{
|
1682
|
-
name: '
|
2208
|
+
name: 'mobile',
|
1683
2209
|
layout: {
|
1684
2210
|
positions: {
|
1685
2211
|
lg: {
|
1686
|
-
colSpan:
|
2212
|
+
colSpan: 6,
|
1687
2213
|
},
|
1688
2214
|
},
|
1689
2215
|
},
|
1690
2216
|
},
|
1691
2217
|
{
|
1692
|
-
name: '
|
2218
|
+
name: 'password',
|
1693
2219
|
layout: {
|
1694
2220
|
positions: {
|
1695
2221
|
lg: {
|
1696
|
-
colSpan:
|
2222
|
+
colSpan: 12,
|
1697
2223
|
},
|
1698
2224
|
},
|
1699
2225
|
},
|
1700
2226
|
},
|
1701
2227
|
{
|
1702
|
-
name: '
|
2228
|
+
name: 'roles',
|
1703
2229
|
layout: {
|
1704
2230
|
positions: {
|
1705
2231
|
lg: {
|
1706
|
-
colSpan:
|
2232
|
+
colSpan: 12,
|
1707
2233
|
},
|
1708
2234
|
},
|
1709
2235
|
},
|
@@ -1720,32 +2246,32 @@ async function factory(injector) {
|
|
1720
2246
|
type: 'create',
|
1721
2247
|
scope: AXPEntityCommandScope.TypeLevel,
|
1722
2248
|
},
|
2249
|
+
// {
|
2250
|
+
// title: `t("deleteItems", {scope: "common"})`,
|
2251
|
+
// command: 'delete-entity',
|
2252
|
+
// priority: 'primary',
|
2253
|
+
// type: 'delete',
|
2254
|
+
// scope: AXPEntityCommandScope.Selected,
|
2255
|
+
// },
|
1723
2256
|
{
|
1724
|
-
title:
|
1725
|
-
command: 'delete-entity',
|
1726
|
-
priority: 'primary',
|
1727
|
-
type: 'delete',
|
1728
|
-
scope: AXPEntityCommandScope.Selected,
|
1729
|
-
},
|
1730
|
-
{
|
1731
|
-
title: 't("detail", { scope: "common" })',
|
2257
|
+
title: `t("detail", {scope: "common"})`,
|
1732
2258
|
command: 'open-entity',
|
1733
2259
|
priority: 'secondary',
|
1734
2260
|
type: 'view',
|
1735
2261
|
scope: AXPEntityCommandScope.Individual,
|
1736
2262
|
},
|
1737
|
-
{
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
},
|
2263
|
+
// {
|
2264
|
+
// title: `t("delete", {scope: "common"})`,
|
2265
|
+
// command: 'delete-entity',
|
2266
|
+
// priority: 'secondary',
|
2267
|
+
// type: 'delete',
|
2268
|
+
// scope: AXPEntityCommandScope.Individual,
|
2269
|
+
// },
|
1744
2270
|
],
|
1745
2271
|
views: [
|
1746
2272
|
{
|
1747
2273
|
name: 'all',
|
1748
|
-
title:
|
2274
|
+
title: `t("allItem", {scope: "common"})`,
|
1749
2275
|
fixed: true,
|
1750
2276
|
columns: [],
|
1751
2277
|
conditions: [],
|
@@ -1756,25 +2282,26 @@ async function factory(injector) {
|
|
1756
2282
|
},
|
1757
2283
|
},
|
1758
2284
|
};
|
2285
|
+
const x = entityDef.properties.find((x) => x.name === 'roles')?.schema.interface?.options;
|
1759
2286
|
return entityDef;
|
1760
2287
|
}
|
1761
2288
|
|
1762
|
-
var
|
2289
|
+
var users_entity = /*#__PURE__*/Object.freeze({
|
1763
2290
|
__proto__: null,
|
1764
2291
|
factory: factory
|
1765
2292
|
});
|
1766
2293
|
|
1767
|
-
class
|
1768
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
1769
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type:
|
1770
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
2294
|
+
class AXMSecurityManagementUsersEntityModule {
|
2295
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2296
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule }); }
|
2297
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, providers: [
|
1771
2298
|
{
|
1772
|
-
provide:
|
1773
|
-
useClass:
|
2299
|
+
provide: AXMtUsersEntityService,
|
2300
|
+
useClass: AXMUsersEntityServiceImpl,
|
1774
2301
|
},
|
1775
2302
|
] }); }
|
1776
2303
|
}
|
1777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
2304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, decorators: [{
|
1778
2305
|
type: NgModule,
|
1779
2306
|
args: [{
|
1780
2307
|
imports: [],
|
@@ -1782,16 +2309,149 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1782
2309
|
declarations: [],
|
1783
2310
|
providers: [
|
1784
2311
|
{
|
1785
|
-
provide:
|
1786
|
-
useClass:
|
2312
|
+
provide: AXMtUsersEntityService,
|
2313
|
+
useClass: AXMUsersEntityServiceImpl,
|
1787
2314
|
},
|
1788
2315
|
],
|
1789
2316
|
}]
|
1790
2317
|
}] });
|
1791
2318
|
|
2319
|
+
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
2320
|
+
constructor() {
|
2321
|
+
super(...arguments);
|
2322
|
+
this.commands = [
|
2323
|
+
{
|
2324
|
+
id: 'create-security-user',
|
2325
|
+
group: 'command',
|
2326
|
+
title: 'New User',
|
2327
|
+
icon: RootConfig.entities.users.icon,
|
2328
|
+
description: 'Create a new user entity in the system.', // Added meaningful description
|
2329
|
+
command: {
|
2330
|
+
// 'create-entity': {
|
2331
|
+
// entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`,
|
2332
|
+
// },
|
2333
|
+
name: 'create-entity',
|
2334
|
+
options: {
|
2335
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`
|
2336
|
+
}
|
2337
|
+
},
|
2338
|
+
},
|
2339
|
+
{
|
2340
|
+
id: 'create-security-role',
|
2341
|
+
group: 'command',
|
2342
|
+
title: 'New Security Role',
|
2343
|
+
icon: RootConfig.entities.roles.icon,
|
2344
|
+
description: 'Define a new security role to manage permissions.', // Added meaningful description
|
2345
|
+
command: {
|
2346
|
+
// 'create-entity': {
|
2347
|
+
// entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
|
2348
|
+
// },
|
2349
|
+
name: 'create-entity',
|
2350
|
+
options: {
|
2351
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
|
2352
|
+
}
|
2353
|
+
},
|
2354
|
+
},
|
2355
|
+
];
|
2356
|
+
}
|
2357
|
+
}
|
2358
|
+
|
2359
|
+
const AXPSessionTerminateEvent = createWorkFlowEvent('[Entity] Terminated!');
|
2360
|
+
class AXPSessionTerminatePopupAction extends AXPWorkflowAction {
|
2361
|
+
constructor() {
|
2362
|
+
super(...arguments);
|
2363
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
2364
|
+
this.dialogService = inject(AXDialogService);
|
2365
|
+
this.loadingDialog = inject(AXLoadingDialogService);
|
2366
|
+
this.translationService = inject(AXTranslationService);
|
2367
|
+
}
|
2368
|
+
async execute(context) {
|
2369
|
+
const moduleEntity = context.getVariable('entity');
|
2370
|
+
const [moduleName, entityName] = moduleEntity.split('.');
|
2371
|
+
const data = context.getVariable('data');
|
2372
|
+
const meta = context.getVariable('meta');
|
2373
|
+
const ids = Array.isArray(data) ? data.map((c) => c.id) : [data.id];
|
2374
|
+
const entity = await this.entityRegistery.resolve(moduleName, entityName);
|
2375
|
+
if (entity.parentKey && data[entity.parentKey]) {
|
2376
|
+
context.setVariable('meta', { ...meta, refreshTargetId: data[entity.parentKey] });
|
2377
|
+
}
|
2378
|
+
context.setVariable('terminateSuccessful', false);
|
2379
|
+
const dialog = this.loadingDialog.show({
|
2380
|
+
title: await this.translationService.translateAsync('workflow.terminating'),
|
2381
|
+
mode: 'determinate',
|
2382
|
+
status: 'Terminating...',
|
2383
|
+
progressValue: 0,
|
2384
|
+
text: `0/${ids.length}`,
|
2385
|
+
buttons: [
|
2386
|
+
{
|
2387
|
+
text: await this.translationService.translateAsync('cancel'),
|
2388
|
+
color: 'danger',
|
2389
|
+
onClick: () => {
|
2390
|
+
dialog.close();
|
2391
|
+
},
|
2392
|
+
},
|
2393
|
+
],
|
2394
|
+
});
|
2395
|
+
if (entity.commands.terminate != null) {
|
2396
|
+
const terminateExec = entity.commands.terminate?.execute;
|
2397
|
+
let faildCounter = 0;
|
2398
|
+
for (const element of ids) {
|
2399
|
+
const res = await terminateExec(element);
|
2400
|
+
if (!res) {
|
2401
|
+
faildCounter++;
|
2402
|
+
await this.dialogService.alert(await this.translationService.translateAsync('workflow.fail-delete-title'), await this.translationService.translateAsync('workflow.fail-delete-body', {
|
2403
|
+
params: { item: 1 },
|
2404
|
+
}), 'danger');
|
2405
|
+
}
|
2406
|
+
}
|
2407
|
+
context.setOutput('result', faildCounter == 0 ? true : false);
|
2408
|
+
setTimeout(() => {
|
2409
|
+
dialog.close();
|
2410
|
+
this.dispatch(AXPRefreshEvent({ entity: moduleEntity, meta: context.getVariable('meta') }));
|
2411
|
+
}, 300);
|
2412
|
+
}
|
2413
|
+
}
|
2414
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSessionTerminatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
2415
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSessionTerminatePopupAction }); }
|
2416
|
+
}
|
2417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSessionTerminatePopupAction, decorators: [{
|
2418
|
+
type: Injectable
|
2419
|
+
}] });
|
2420
|
+
const AXPSessionTerminateWorkflow = {
|
2421
|
+
startStepId: 'show-popup',
|
2422
|
+
steps: {
|
2423
|
+
'show-popup': {
|
2424
|
+
action: 'AXPSessionTerminatePopupAction',
|
2425
|
+
nextSteps: [
|
2426
|
+
{
|
2427
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
2428
|
+
nextStepId: 'show-toast',
|
2429
|
+
},
|
2430
|
+
],
|
2431
|
+
},
|
2432
|
+
'show-toast': {
|
2433
|
+
action: 'AXPToastAction',
|
2434
|
+
input: {
|
2435
|
+
color: 'success',
|
2436
|
+
title: 'workflow.session-terminated',
|
2437
|
+
content: 'workflow.session-terminated-body',
|
2438
|
+
},
|
2439
|
+
nextSteps: [
|
2440
|
+
{
|
2441
|
+
conditions: [],
|
2442
|
+
nextStepId: 'dispatch-event',
|
2443
|
+
},
|
2444
|
+
],
|
2445
|
+
},
|
2446
|
+
},
|
2447
|
+
};
|
2448
|
+
|
1792
2449
|
class AXMSecurityManagementModule {
|
1793
2450
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1794
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [
|
2451
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [AXMSecurityManagementDeviceSessionsEntityModule,
|
2452
|
+
AXMSecurityManagementProfileEntityModule,
|
2453
|
+
AXMSecurityManagementRolesEntityModule,
|
2454
|
+
AXMSecurityManagementUsersEntityModule, i1.AXPWorkflowModule] }); }
|
1795
2455
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, providers: [
|
1796
2456
|
{
|
1797
2457
|
provide: AXP_MENU_PROVIDER,
|
@@ -1808,12 +2468,38 @@ class AXMSecurityManagementModule {
|
|
1808
2468
|
useClass: AXMSearchCommandProvider,
|
1809
2469
|
multi: true,
|
1810
2470
|
},
|
1811
|
-
], imports: [
|
2471
|
+
], imports: [AXMSecurityManagementDeviceSessionsEntityModule,
|
2472
|
+
AXMSecurityManagementProfileEntityModule,
|
2473
|
+
AXMSecurityManagementRolesEntityModule,
|
2474
|
+
AXMSecurityManagementUsersEntityModule,
|
2475
|
+
AXPWorkflowModule.forChild({
|
2476
|
+
actions: {
|
2477
|
+
AXPSessionTerminatePopupAction
|
2478
|
+
},
|
2479
|
+
workflows: {
|
2480
|
+
'terminate-entity': AXPSessionTerminateWorkflow,
|
2481
|
+
},
|
2482
|
+
functions: {},
|
2483
|
+
})] }); }
|
1812
2484
|
}
|
1813
2485
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, decorators: [{
|
1814
2486
|
type: NgModule,
|
1815
2487
|
args: [{
|
1816
|
-
imports: [
|
2488
|
+
imports: [
|
2489
|
+
AXMSecurityManagementDeviceSessionsEntityModule,
|
2490
|
+
AXMSecurityManagementProfileEntityModule,
|
2491
|
+
AXMSecurityManagementRolesEntityModule,
|
2492
|
+
AXMSecurityManagementUsersEntityModule,
|
2493
|
+
AXPWorkflowModule.forChild({
|
2494
|
+
actions: {
|
2495
|
+
AXPSessionTerminatePopupAction
|
2496
|
+
},
|
2497
|
+
workflows: {
|
2498
|
+
'terminate-entity': AXPSessionTerminateWorkflow,
|
2499
|
+
},
|
2500
|
+
functions: {},
|
2501
|
+
}),
|
2502
|
+
],
|
1817
2503
|
exports: [],
|
1818
2504
|
declarations: [],
|
1819
2505
|
providers: [
|
@@ -1832,7 +2518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1832
2518
|
useClass: AXMSearchCommandProvider,
|
1833
2519
|
multi: true,
|
1834
2520
|
},
|
1835
|
-
]
|
2521
|
+
],
|
1836
2522
|
}]
|
1837
2523
|
}] });
|
1838
2524
|
|
@@ -1840,5 +2526,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1840
2526
|
* Generated bundle index. Do not edit.
|
1841
2527
|
*/
|
1842
2528
|
|
1843
|
-
export { AXMSecurityManagementModule, AXMSecurityManagementProfileEntityService, AXMSecurityManagementProfileEntityServiceImpl, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMUsersEntityServiceImpl, AXMtUsersEntityService, AXPSecurityManagementMenuKeys, RootConfig };
|
2529
|
+
export { AXMDeviceSessionsService, AXMDeviceSessionsServiceImpl, AXMSecurityManagementDeviceSessionsEntityModule, AXMSecurityManagementModule, AXMSecurityManagementProfileEntityService, AXMSecurityManagementProfileEntityServiceImpl, AXMSecurityManagementRolesEntityService, AXMSecurityManagementRolesEntityServiceImpl, AXMSessionStatusTypes, AXMUsersEntityServiceImpl, AXMtUsersEntityService, AXPSecurityManagementMenuKeys, RootConfig, factory$3 as factory };
|
1844
2530
|
//# sourceMappingURL=acorex-modules-security-management.mjs.map
|