verben-authentication-ui 1.0.12 → 1.0.13
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/esm2022/lib/components/auth-callback/auth-callback.component.mjs +57 -0
- package/esm2022/lib/components/auth-callback/auth-callback.module.mjs +18 -0
- package/esm2022/lib/components/button/button.component.mjs +46 -0
- package/esm2022/lib/components/button/button.module.mjs +20 -0
- package/esm2022/lib/components/forgot-password/ForgotPasswordData.mjs +2 -0
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +92 -0
- package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +34 -0
- package/esm2022/lib/components/mail/mail.component.mjs +69 -0
- package/esm2022/lib/components/mail/mail.module.mjs +21 -0
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +108 -0
- package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +34 -0
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +107 -0
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +19 -0
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +86 -0
- package/esm2022/lib/components/otp-input/otp-input.module.mjs +23 -0
- package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +2 -0
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +108 -0
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +34 -0
- package/esm2022/lib/components/role-control/ChildrenType.mjs +6 -0
- package/esm2022/lib/components/role-control/MappedRole.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleAction.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleContext.mjs +2 -0
- package/esm2022/lib/components/role-control/UIActions.mjs +7 -0
- package/esm2022/lib/components/role-control/UIs.mjs +40 -0
- package/esm2022/lib/components/role-control/base-table-style.mjs +53 -0
- package/esm2022/lib/components/role-control/role-control.component.mjs +1608 -0
- package/esm2022/lib/components/role-control/role-control.module.mjs +18 -0
- package/esm2022/lib/components/role-control/role-control.service.mjs +54 -0
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +318 -0
- package/esm2022/lib/components/sign-in/sign-in.module.mjs +24 -0
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +229 -0
- package/esm2022/lib/components/sign-up/sign-up.module.mjs +24 -0
- package/esm2022/lib/components/sso/base-table-style.mjs +53 -0
- package/esm2022/lib/components/sso/helper.mjs +16 -0
- package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +74 -0
- package/esm2022/lib/components/sso/sso.columns.mjs +29 -0
- package/esm2022/lib/components/sso/sso.component.mjs +236 -0
- package/esm2022/lib/components/sso/sso.module.mjs +63 -0
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +209 -0
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +22 -0
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +90 -0
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +19 -0
- package/esm2022/lib/components/user-management/base-table-style.mjs +53 -0
- package/esm2022/lib/components/user-management/services/user-management.service.mjs +88 -0
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +73 -0
- package/esm2022/lib/components/user-management/user-management.columns.mjs +53 -0
- package/esm2022/lib/components/user-management/user-management.component.mjs +536 -0
- package/esm2022/lib/components/user-management/user-management.module.mjs +85 -0
- package/esm2022/lib/components/user-management/user-status-badge/user-status-badge.component.mjs +26 -0
- package/esm2022/lib/components/user-request/user-request.component.mjs +320 -0
- package/esm2022/lib/components/user-request/user-request.module.mjs +38 -0
- package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +29 -0
- package/esm2022/lib/components/user-request-approval/base-table-style.mjs +53 -0
- package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +260 -0
- package/esm2022/lib/components/user-request-approval/helper.mjs +56 -0
- package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +93 -0
- package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +92 -0
- package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +26 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +271 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +83 -0
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +86 -0
- package/esm2022/lib/models/ApplicationRoleAction.mjs +2 -0
- package/esm2022/lib/models/ApplicationRoleContext.mjs +2 -0
- package/esm2022/lib/models/ErrorResponse.mjs +11 -0
- package/esm2022/lib/models/OAuthParam.mjs +2 -0
- package/esm2022/lib/models/OAuthType.mjs +9 -0
- package/esm2022/lib/models/PagedResult.mjs +2 -0
- package/esm2022/lib/models/PasswordRequestParam.mjs +2 -0
- package/esm2022/lib/models/PermissionConfig.mjs +2 -0
- package/esm2022/lib/models/ResponseKeyValue.mjs +2 -0
- package/esm2022/lib/models/Role.mjs +2 -0
- package/esm2022/lib/models/RoleAction.mjs +2 -0
- package/esm2022/lib/models/RoleContext.mjs +2 -0
- package/esm2022/lib/models/SearchDynamicWrapper.mjs +2 -0
- package/esm2022/lib/models/SearchOperator.mjs +6 -0
- package/esm2022/lib/models/SearchPropertySign.mjs +11 -0
- package/esm2022/lib/models/SearchPropertyValue.mjs +2 -0
- package/esm2022/lib/models/SearchPropertyValueType.mjs +11 -0
- package/esm2022/lib/models/SortDirection.mjs +7 -0
- package/esm2022/lib/models/Tag.mjs +2 -0
- package/esm2022/lib/models/TenantConfig.mjs +2 -0
- package/esm2022/lib/models/UserRequest.mjs +2 -0
- package/esm2022/lib/models/auth-mechanism.mjs +8 -0
- package/esm2022/lib/models/base.mjs +2 -0
- package/esm2022/lib/models/conditions.mjs +13 -0
- package/esm2022/lib/models/log-in.mjs +2 -0
- package/esm2022/lib/models/mainUser.mjs +2 -0
- package/esm2022/lib/models/oauth-resp.mjs +2 -0
- package/esm2022/lib/models/oauth-response.mjs +2 -0
- package/esm2022/lib/models/object-state.mjs +8 -0
- package/esm2022/lib/models/otpValue.mjs +2 -0
- package/esm2022/lib/models/paged.mjs +2 -0
- package/esm2022/lib/models/query-params.mjs +2 -0
- package/esm2022/lib/models/request-status.mjs +5 -0
- package/esm2022/lib/models/resend-otp-data.mjs +2 -0
- package/esm2022/lib/models/sign-up.mjs +2 -0
- package/esm2022/lib/models/single-sign-on.mjs +2 -0
- package/esm2022/lib/models/status.mjs +6 -0
- package/esm2022/lib/models/user-access-request-status.mjs +7 -0
- package/esm2022/lib/models/user-access-request.mjs +2 -0
- package/esm2022/lib/models/user.mjs +2 -0
- package/esm2022/lib/pipes/async-label.pipe.mjs +25 -0
- package/esm2022/lib/services/authorization.service.mjs +26 -0
- package/esm2022/lib/services/encryption.service.mjs +52 -0
- package/esm2022/lib/services/environment.service.mjs +26 -0
- package/esm2022/lib/services/http-web-request.service.mjs +85 -0
- package/esm2022/lib/services/label.service.mjs +134 -0
- package/esm2022/lib/services/util.service.mjs +55 -0
- package/esm2022/lib/shared/shared.module.mjs +84 -0
- package/esm2022/public-api.mjs +48 -0
- package/esm2022/verben-authentication-ui.mjs +5 -0
- package/fesm2022/verben-authentication-ui.mjs +6622 -0
- package/fesm2022/verben-authentication-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/auth-callback/auth-callback.component.d.ts +17 -0
- package/lib/components/auth-callback/auth-callback.module.d.ts +8 -0
- package/lib/components/button/button.component.d.ts +17 -0
- package/lib/components/button/button.module.d.ts +10 -0
- package/{src/lib/components/forgot-password/ForgotPasswordData.ts → lib/components/forgot-password/ForgotPasswordData.d.ts} +1 -1
- package/lib/components/forgot-password/forgot-password.component.d.ts +30 -0
- package/lib/components/forgot-password/forgot-password.module.d.ts +10 -0
- package/lib/components/mail/mail.component.d.ts +32 -0
- package/lib/components/mail/mail.module.d.ts +11 -0
- package/lib/components/mail-validation/mail-validation.component.d.ts +42 -0
- package/lib/components/mail-validation/mail-validation.module.d.ts +10 -0
- package/lib/components/o-auth/o-auth.component.d.ts +30 -0
- package/lib/components/o-auth/o-auth.module.d.ts +9 -0
- package/lib/components/otp-input/otp-input.component.d.ts +21 -0
- package/lib/components/otp-input/otp-input.module.d.ts +13 -0
- package/lib/components/reset-password/ResetPasswordData.d.ts +5 -0
- package/lib/components/reset-password/reset-password.component.d.ts +30 -0
- package/lib/components/reset-password/reset-password.module.d.ts +10 -0
- package/lib/components/role-control/ChildrenType.d.ts +4 -0
- package/{src/lib/components/role-control/MappedRole.ts → lib/components/role-control/MappedRole.d.ts} +2 -3
- package/{src/lib/components/role-control/MappedRoleAction.ts → lib/components/role-control/MappedRoleAction.d.ts} +1 -2
- package/{src/lib/components/role-control/MappedRoleContext.ts → lib/components/role-control/MappedRoleContext.d.ts} +3 -4
- package/lib/components/role-control/UIActions.d.ts +5 -0
- package/lib/components/role-control/UIs.d.ts +38 -0
- package/lib/components/role-control/base-table-style.d.ts +1 -0
- package/lib/components/role-control/role-control.component.d.ts +131 -0
- package/lib/components/role-control/role-control.module.d.ts +8 -0
- package/lib/components/role-control/role-control.service.d.ts +9 -0
- package/lib/components/sign-in/sign-in.component.d.ts +95 -0
- package/lib/components/sign-in/sign-in.module.d.ts +13 -0
- package/lib/components/sign-up/sign-up.component.d.ts +68 -0
- package/lib/components/sign-up/sign-up.module.d.ts +13 -0
- package/lib/components/sso/base-table-style.d.ts +1 -0
- package/lib/components/sso/helper.d.ts +2 -0
- package/lib/components/sso/sso-form/sso-form.component.d.ts +21 -0
- package/lib/components/sso/sso.columns.d.ts +3 -0
- package/lib/components/sso/sso.component.d.ts +54 -0
- package/lib/components/sso/sso.module.d.ts +11 -0
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +67 -0
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.d.ts +12 -0
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.d.ts +39 -0
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.d.ts +9 -0
- package/lib/components/user-management/base-table-style.d.ts +1 -0
- package/lib/components/user-management/services/user-management.service.d.ts +44 -0
- package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +24 -0
- package/lib/components/user-management/user-management.columns.d.ts +3 -0
- package/lib/components/user-management/user-management.component.d.ts +134 -0
- package/lib/components/user-management/user-management.module.d.ts +14 -0
- package/lib/components/user-management/user-status-badge/user-status-badge.component.d.ts +12 -0
- package/lib/components/user-request/user-request.component.d.ts +80 -0
- package/lib/components/user-request/user-request.module.d.ts +11 -0
- package/lib/components/user-request-approval/access-request.columns.d.ts +3 -0
- package/lib/components/user-request-approval/base-table-style.d.ts +1 -0
- package/lib/components/user-request-approval/facades/user-access-request.facade.d.ts +39 -0
- package/lib/components/user-request-approval/helper.d.ts +7 -0
- package/lib/components/user-request-approval/services/user-access-request.service.d.ts +65 -0
- package/lib/components/user-request-approval/states/user-access-request.state.d.ts +35 -0
- package/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.d.ts +12 -0
- package/lib/components/user-request-approval/user-request-approval.component.d.ts +69 -0
- package/lib/components/user-request-approval/user-request-approval.module.d.ts +12 -0
- package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +25 -0
- package/lib/models/ApplicationRoleAction.d.ts +9 -0
- package/{src/lib/models/ApplicationRoleContext copy.ts → lib/models/ApplicationRoleContext.d.ts} +5 -6
- package/lib/models/ErrorResponse.d.ts +6 -0
- package/lib/models/OAuthParam.d.ts +9 -0
- package/lib/models/OAuthType.d.ts +7 -0
- package/lib/models/PagedResult.d.ts +9 -0
- package/lib/models/PasswordRequestParam.d.ts +5 -0
- package/{src/lib/models/PermissionConfig.ts → lib/models/PermissionConfig.d.ts} +3 -4
- package/lib/models/ResponseKeyValue.d.ts +5 -0
- package/{src/lib/models/Role.ts → lib/models/Role.d.ts} +5 -6
- package/lib/models/RoleAction.d.ts +10 -0
- package/lib/models/RoleContext.d.ts +10 -0
- package/{src/lib/models/SearchDynamicWrapper.ts → lib/models/SearchDynamicWrapper.d.ts} +2 -3
- package/lib/models/SearchOperator.d.ts +4 -0
- package/lib/models/SearchPropertySign.d.ts +9 -0
- package/{src/lib/models/SearchPropertyValue.ts → lib/models/SearchPropertyValue.d.ts} +6 -7
- package/lib/models/SearchPropertyValueType.d.ts +9 -0
- package/lib/models/SortDirection.d.ts +5 -0
- package/{src/lib/models/Tag.ts → lib/models/Tag.d.ts} +3 -4
- package/lib/models/TenantConfig.d.ts +18 -0
- package/lib/models/UserRequest.d.ts +32 -0
- package/lib/models/auth-mechanism.d.ts +14 -0
- package/lib/models/base.d.ts +12 -0
- package/lib/models/conditions.d.ts +11 -0
- package/lib/models/log-in.d.ts +8 -0
- package/{src/lib/models/mainUser.ts → lib/models/mainUser.d.ts} +2 -3
- package/lib/models/oauth-resp.d.ts +6 -0
- package/{src/lib/models/oauth-response.ts → lib/models/oauth-response.d.ts} +1 -1
- package/lib/models/object-state.d.ts +6 -0
- package/{src/lib/models/otpValue.ts → lib/models/otpValue.d.ts} +2 -4
- package/lib/models/paged.d.ts +9 -0
- package/lib/models/query-params.d.ts +8 -0
- package/lib/models/request-status.d.ts +3 -0
- package/lib/models/resend-otp-data.d.ts +8 -0
- package/lib/models/sign-up.d.ts +9 -0
- package/lib/models/single-sign-on.d.ts +7 -0
- package/lib/models/status.d.ts +4 -0
- package/lib/models/user-access-request-status.d.ts +5 -0
- package/{src/lib/models/user-access-request.ts → lib/models/user-access-request.d.ts} +4 -5
- package/lib/models/user.d.ts +18 -0
- package/lib/pipes/async-label.pipe.d.ts +11 -0
- package/lib/services/authorization.service.d.ts +14 -0
- package/lib/services/encryption.service.d.ts +13 -0
- package/lib/services/environment.service.d.ts +22 -0
- package/lib/services/http-web-request.service.d.ts +23 -0
- package/lib/services/label.service.d.ts +15 -0
- package/lib/services/util.service.d.ts +11 -0
- package/lib/shared/shared.module.d.ts +10 -0
- package/package.json +14 -10
- package/{src/public-api.ts → public-api.d.ts} +0 -24
- package/ng-package.json +0 -8
- package/src/lib/base/base-data.component.ts +0 -86
- package/src/lib/base/base-data.facade.ts +0 -157
- package/src/lib/base/base-data.service.ts +0 -49
- package/src/lib/base/base-data.state.ts +0 -94
- package/src/lib/base/models.ts +0 -14
- package/src/lib/components/auth-callback/auth-callback.component.css +0 -30
- package/src/lib/components/auth-callback/auth-callback.component.html +0 -6
- package/src/lib/components/auth-callback/auth-callback.component.spec.ts +0 -23
- package/src/lib/components/auth-callback/auth-callback.component.ts +0 -56
- package/src/lib/components/auth-callback/auth-callback.module.ts +0 -10
- package/src/lib/components/button/button.component.css +0 -3
- package/src/lib/components/button/button.component.html +0 -13
- package/src/lib/components/button/button.component.spec.ts +0 -23
- package/src/lib/components/button/button.component.ts +0 -24
- package/src/lib/components/button/button.module.ts +0 -11
- package/src/lib/components/forgot-password/forgot-password.component.css +0 -50
- package/src/lib/components/forgot-password/forgot-password.component.html +0 -38
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +0 -23
- package/src/lib/components/forgot-password/forgot-password.component.ts +0 -90
- package/src/lib/components/forgot-password/forgot-password.module.ts +0 -18
- package/src/lib/components/mail/mail.component.css +0 -0
- package/src/lib/components/mail/mail.component.html +0 -11
- package/src/lib/components/mail/mail.component.spec.ts +0 -23
- package/src/lib/components/mail/mail.component.ts +0 -47
- package/src/lib/components/mail/mail.module.ts +0 -13
- package/src/lib/components/mail-validation/mail-validation.component.css +0 -59
- package/src/lib/components/mail-validation/mail-validation.component.html +0 -37
- package/src/lib/components/mail-validation/mail-validation.component.spec.ts +0 -23
- package/src/lib/components/mail-validation/mail-validation.component.ts +0 -66
- package/src/lib/components/mail-validation/mail-validation.module.ts +0 -18
- package/src/lib/components/o-auth/o-auth.component.css +0 -26
- package/src/lib/components/o-auth/o-auth.component.html +0 -26
- package/src/lib/components/o-auth/o-auth.component.spec.ts +0 -23
- package/src/lib/components/o-auth/o-auth.component.ts +0 -115
- package/src/lib/components/o-auth/o-auth.module.ts +0 -11
- package/src/lib/components/otp-input/otp-input.component.css +0 -19
- package/src/lib/components/otp-input/otp-input.component.html +0 -15
- package/src/lib/components/otp-input/otp-input.component.spec.ts +0 -23
- package/src/lib/components/otp-input/otp-input.component.ts +0 -88
- package/src/lib/components/otp-input/otp-input.module.ts +0 -15
- package/src/lib/components/reset-password/ResetPasswordData.ts +0 -5
- package/src/lib/components/reset-password/reset-password.component.css +0 -29
- package/src/lib/components/reset-password/reset-password.component.html +0 -24
- package/src/lib/components/reset-password/reset-password.component.spec.ts +0 -23
- package/src/lib/components/reset-password/reset-password.component.ts +0 -108
- package/src/lib/components/reset-password/reset-password.module.ts +0 -18
- package/src/lib/components/role-control/ChildrenType.ts +0 -4
- package/src/lib/components/role-control/UIActions.ts +0 -5
- package/src/lib/components/role-control/UIs.ts +0 -38
- package/src/lib/components/role-control/base-table-style.ts +0 -52
- package/src/lib/components/role-control/role-control.component.css +0 -87
- package/src/lib/components/role-control/role-control.component.html +0 -603
- package/src/lib/components/role-control/role-control.component.spec.ts +0 -23
- package/src/lib/components/role-control/role-control.component.ts +0 -1884
- package/src/lib/components/role-control/role-control.module.ts +0 -10
- package/src/lib/components/role-control/role-control.service.spec.ts +0 -16
- package/src/lib/components/role-control/role-control.service.ts +0 -53
- package/src/lib/components/sign-in/sign-in.component.css +0 -21
- package/src/lib/components/sign-in/sign-in.component.html +0 -83
- package/src/lib/components/sign-in/sign-in.component.spec.ts +0 -23
- package/src/lib/components/sign-in/sign-in.component.ts +0 -267
- package/src/lib/components/sign-in/sign-in.module.ts +0 -17
- package/src/lib/components/sign-up/sign-up.component.css +0 -36
- package/src/lib/components/sign-up/sign-up.component.html +0 -132
- package/src/lib/components/sign-up/sign-up.component.spec.ts +0 -23
- package/src/lib/components/sign-up/sign-up.component.ts +0 -180
- package/src/lib/components/sign-up/sign-up.module.ts +0 -15
- package/src/lib/components/sso/base-table-style.ts +0 -52
- package/src/lib/components/sso/helper.ts +0 -17
- package/src/lib/components/sso/sso-form/sso-form.component.css +0 -13
- package/src/lib/components/sso/sso-form/sso-form.component.html +0 -109
- package/src/lib/components/sso/sso-form/sso-form.component.spec.ts +0 -23
- package/src/lib/components/sso/sso-form/sso-form.component.ts +0 -70
- package/src/lib/components/sso/sso.columns.ts +0 -32
- package/src/lib/components/sso/sso.component.css +0 -47
- package/src/lib/components/sso/sso.component.html +0 -208
- package/src/lib/components/sso/sso.component.spec.ts +0 -23
- package/src/lib/components/sso/sso.component.ts +0 -261
- package/src/lib/components/sso/sso.module.ts +0 -40
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.css +0 -8
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.html +0 -30
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.spec.ts +0 -23
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.ts +0 -155
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.ts +0 -15
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.css +0 -17
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.html +0 -45
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.spec.ts +0 -23
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.ts +0 -57
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.ts +0 -11
- package/src/lib/components/user-management/base-table-style.ts +0 -52
- package/src/lib/components/user-management/facades/user-management.facades.ts +0 -133
- package/src/lib/components/user-management/helper.ts +0 -38
- package/src/lib/components/user-management/index.ts +0 -4
- package/src/lib/components/user-management/services/user-management.service.spec.ts +0 -16
- package/src/lib/components/user-management/services/user-management.service.ts +0 -111
- package/src/lib/components/user-management/states/user-management.state.ts +0 -65
- package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +0 -74
- package/src/lib/components/user-management/user-management-form/user-management-form.component.css +0 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.html +0 -89
- package/src/lib/components/user-management/user-management-form/user-management-form.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.columns.ts +0 -57
- package/src/lib/components/user-management/user-management.component.css +0 -31
- package/src/lib/components/user-management/user-management.component.html +0 -455
- package/src/lib/components/user-management/user-management.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.component.ts +0 -626
- package/src/lib/components/user-management/user-management.module.ts +0 -60
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.css +0 -0
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.html +0 -8
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.spec.ts +0 -22
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.ts +0 -22
- package/src/lib/components/user-request/user-request.component.css +0 -91
- package/src/lib/components/user-request/user-request.component.html +0 -137
- package/src/lib/components/user-request/user-request.component.spec.ts +0 -23
- package/src/lib/components/user-request/user-request.component.ts +0 -306
- package/src/lib/components/user-request/user-request.module.ts +0 -20
- package/src/lib/components/user-request-approval/access-request.columns.ts +0 -31
- package/src/lib/components/user-request-approval/base-table-style.ts +0 -52
- package/src/lib/components/user-request-approval/facades/user-access-request.facade.ts +0 -324
- package/src/lib/components/user-request-approval/helper.ts +0 -61
- package/src/lib/components/user-request-approval/services/user-access-request.service.spec.ts +0 -16
- package/src/lib/components/user-request-approval/services/user-access-request.service.ts +0 -122
- package/src/lib/components/user-request-approval/states/user-access-request.state.ts +0 -109
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.css +0 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.html +0 -8
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.spec.ts +0 -23
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.ts +0 -22
- package/src/lib/components/user-request-approval/user-request-approval.component.css +0 -6
- package/src/lib/components/user-request-approval/user-request-approval.component.html +0 -273
- package/src/lib/components/user-request-approval/user-request-approval.component.spec.ts +0 -23
- package/src/lib/components/user-request-approval/user-request-approval.component.ts +0 -328
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +0 -56
- package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +0 -98
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.css +0 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.html +0 -94
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +0 -23
- package/src/lib/components/user-request-process/user-request-process.component.css +0 -0
- package/src/lib/components/user-request-process/user-request-process.component.html +0 -1
- package/src/lib/components/user-request-process/user-request-process.component.spec.ts +0 -23
- package/src/lib/components/user-request-process/user-request-process.component.ts +0 -12
- package/src/lib/components/user-request-process/user-request-process.module.ts +0 -12
- package/src/lib/models/ApplicationRoleAction.ts +0 -10
- package/src/lib/models/ApplicationRoleContext.ts +0 -10
- package/src/lib/models/ErrorResponse.ts +0 -7
- package/src/lib/models/FilterTypes.ts +0 -8
- package/src/lib/models/MailConfig.ts +0 -13
- package/src/lib/models/MessageConfig.ts +0 -5
- package/src/lib/models/MessageMedium.ts +0 -4
- package/src/lib/models/OAuthParam.ts +0 -10
- package/src/lib/models/OAuthType.ts +0 -7
- package/src/lib/models/PagedResult.ts +0 -9
- package/src/lib/models/PasswordRequestParam.ts +0 -5
- package/src/lib/models/PeriodMode.ts +0 -10
- package/src/lib/models/ReportSchedule.ts +0 -23
- package/src/lib/models/ReportType.ts +0 -5
- package/src/lib/models/ResponseKeyValue.ts +0 -5
- package/src/lib/models/RoleAction.ts +0 -11
- package/src/lib/models/RoleContext.ts +0 -11
- package/src/lib/models/SMSConfig.ts +0 -11
- package/src/lib/models/SearchOperator.ts +0 -4
- package/src/lib/models/SearchPropertySign.ts +0 -9
- package/src/lib/models/SearchPropertyValueType.ts +0 -9
- package/src/lib/models/SortDirection.ts +0 -5
- package/src/lib/models/TaskNotification.ts +0 -14
- package/src/lib/models/TaskNotificationMessageType.ts +0 -4
- package/src/lib/models/TaskNotificationType.ts +0 -4
- package/src/lib/models/Tenant.ts +0 -22
- package/src/lib/models/TenantConfig.ts +0 -19
- package/src/lib/models/UserRequest.ts +0 -38
- package/src/lib/models/auth-mechanism.ts +0 -15
- package/src/lib/models/base.ts +0 -13
- package/src/lib/models/conditions.ts +0 -11
- package/src/lib/models/log-in.ts +0 -8
- package/src/lib/models/oauth-resp.ts +0 -6
- package/src/lib/models/object-state.ts +0 -6
- package/src/lib/models/paged.ts +0 -9
- package/src/lib/models/query-params.ts +0 -9
- package/src/lib/models/request-status.ts +0 -4
- package/src/lib/models/resend-otp-data.ts +0 -8
- package/src/lib/models/resource.ts +0 -27
- package/src/lib/models/sign-up.ts +0 -11
- package/src/lib/models/single-sign-on.ts +0 -9
- package/src/lib/models/status.ts +0 -5
- package/src/lib/models/user-access-request-status.ts +0 -5
- package/src/lib/models/user-object-state.ts +0 -6
- package/src/lib/models/user.ts +0 -19
- package/src/lib/pipes/async-label.pipe.spec.ts +0 -8
- package/src/lib/pipes/async-label.pipe.ts +0 -20
- package/src/lib/services/authorization.service.spec.ts +0 -16
- package/src/lib/services/authorization.service.ts +0 -24
- package/src/lib/services/encryption.service.ts +0 -57
- package/src/lib/services/environment.service.spec.ts +0 -16
- package/src/lib/services/environment.service.ts +0 -30
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -114
- package/src/lib/services/label.service.spec.ts +0 -16
- package/src/lib/services/label.service.ts +0 -177
- package/src/lib/services/util.service.spec.ts +0 -16
- package/src/lib/services/util.service.ts +0 -49
- package/src/lib/shared/shared.module.ts +0 -55
- package/src/styles.css +0 -96
- package/src/theme/tailwind-setup.css +0 -3
- package/src/theme/tailwind.css +0 -1035
- package/src/utils/components/base-data-view.component.ts +0 -131
- package/src/utils/models/DataViewConfig.ts +0 -19
- package/tailwind.config.js +0 -20
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { UserAccessRequestStatusBadgeComponent } from './user-access-request-status-badge.component';
|
|
4
|
-
|
|
5
|
-
describe('UserAccessRequestStatusBadgeComponent', () => {
|
|
6
|
-
let component: UserAccessRequestStatusBadgeComponent;
|
|
7
|
-
let fixture: ComponentFixture<UserAccessRequestStatusBadgeComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [UserAccessRequestStatusBadgeComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(UserAccessRequestStatusBadgeComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { UserAccessRequestStatus } from '../../../models/user-access-request-status';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'lib-user-access-request-status-badge',
|
|
6
|
-
templateUrl: './user-access-request-status-badge.component.html',
|
|
7
|
-
styleUrl: './user-access-request-status-badge.component.css',
|
|
8
|
-
})
|
|
9
|
-
export class UserAccessRequestStatusBadgeComponent {
|
|
10
|
-
@Input() status: UserAccessRequestStatus = UserAccessRequestStatus.Pending;
|
|
11
|
-
|
|
12
|
-
badgeConfig() {
|
|
13
|
-
switch (this.status) {
|
|
14
|
-
case UserAccessRequestStatus.Approved:
|
|
15
|
-
return { bgColor: '#CAE1CC', textColor: '#4ABB54', label: 'Approved' };
|
|
16
|
-
case UserAccessRequestStatus.Declined:
|
|
17
|
-
return { bgColor: '#FFDFDF', textColor: '#EB5757', label: 'Rejected' };
|
|
18
|
-
default:
|
|
19
|
-
return { bgColor: '#827C7C', textColor: '#C3C3C3', label: 'Pending' };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
<div class="space-y-8">
|
|
2
|
-
<verben-data-view
|
|
3
|
-
#vdv
|
|
4
|
-
[viewState]="{
|
|
5
|
-
isSearch: true,
|
|
6
|
-
isColumn: true,
|
|
7
|
-
isFilter: true,
|
|
8
|
-
isSort: true,
|
|
9
|
-
isExport: true,
|
|
10
|
-
isSelect: true,
|
|
11
|
-
isCreate: false,
|
|
12
|
-
isToggle: true,
|
|
13
|
-
}"
|
|
14
|
-
[buttonClass]="'my-custom-button-class'"
|
|
15
|
-
[iconClass]="'my-icon-class'"
|
|
16
|
-
[activeIconClass]="'my-active-icon-class'"
|
|
17
|
-
[selectedColumnCount]="0"
|
|
18
|
-
[selectedSortCount]="0"
|
|
19
|
-
[selectedFilterTableCount]="0"
|
|
20
|
-
(viewChange)="onViewChange($event)"
|
|
21
|
-
(stateChange)="onStateChange($event)"
|
|
22
|
-
(onSearchChange)="handleSearch($event)"
|
|
23
|
-
>
|
|
24
|
-
<div table-content>
|
|
25
|
-
<lib-data-table
|
|
26
|
-
[data]="data()"
|
|
27
|
-
[columns]="visibleColumnDef"
|
|
28
|
-
[styleConfig]="styles"
|
|
29
|
-
(selectionChange)="onSelectionChange($event)"
|
|
30
|
-
>
|
|
31
|
-
<ng-container libColumn="createdAt">
|
|
32
|
-
<ng-template #cell let-value>
|
|
33
|
-
{{ value | date }}
|
|
34
|
-
</ng-template>
|
|
35
|
-
</ng-container>
|
|
36
|
-
<ng-container libColumn="status">
|
|
37
|
-
<ng-template #cell let-value>
|
|
38
|
-
<lib-user-access-request-status-badge
|
|
39
|
-
[status]="value"
|
|
40
|
-
></lib-user-access-request-status-badge>
|
|
41
|
-
</ng-template>
|
|
42
|
-
</ng-container>
|
|
43
|
-
|
|
44
|
-
<ng-container libColumn="actions">
|
|
45
|
-
<ng-template #cell let-value let-deleteRow>
|
|
46
|
-
<div class="flex gap-6">
|
|
47
|
-
<verben-svg
|
|
48
|
-
(click)="openDetailView(value)"
|
|
49
|
-
icon="edit"
|
|
50
|
-
[width]="15"
|
|
51
|
-
[height]="15"
|
|
52
|
-
class="cursor-pointer"
|
|
53
|
-
></verben-svg>
|
|
54
|
-
<!-- <button (click)="openDetailView(value)">Open</button>
|
|
55
|
-
<button (click)="selected = cardData[rowIndex]; vdv.toggleView()">
|
|
56
|
-
Switch
|
|
57
|
-
</button> -->
|
|
58
|
-
<verben-svg
|
|
59
|
-
icon="delete"
|
|
60
|
-
[width]="15"
|
|
61
|
-
[height]="15"
|
|
62
|
-
(click)="deleteRow()"
|
|
63
|
-
class="cursor-pointer"
|
|
64
|
-
></verben-svg>
|
|
65
|
-
</div>
|
|
66
|
-
</ng-template>
|
|
67
|
-
<!-- <ng-template #header>
|
|
68
|
-
<strong>Actions</strong>
|
|
69
|
-
</ng-template> -->
|
|
70
|
-
</ng-container>
|
|
71
|
-
</lib-data-table>
|
|
72
|
-
</div>
|
|
73
|
-
<div card-content>
|
|
74
|
-
<verben-card-data-view
|
|
75
|
-
borderRadius="12px"
|
|
76
|
-
(loadMoreClick)="loadMore()"
|
|
77
|
-
#vdcv
|
|
78
|
-
dataId="MailAddress"
|
|
79
|
-
border="5px"
|
|
80
|
-
[cardDataList]="cardData()"
|
|
81
|
-
rbgColor="#f5f6f9"
|
|
82
|
-
mg="20px"
|
|
83
|
-
>
|
|
84
|
-
<verben-left-card-data-view class="space-y-7">
|
|
85
|
-
<verben-left-card-data
|
|
86
|
-
#vlcd
|
|
87
|
-
[parent]="vdcv"
|
|
88
|
-
dataId="MailAddress"
|
|
89
|
-
class="bg-secondary-100 rounded-xl border-primary border-[1px]"
|
|
90
|
-
[cardDataList]="cardData()"
|
|
91
|
-
>
|
|
92
|
-
<ng-template #card let-item>
|
|
93
|
-
<div (click)="currentData = vdcv.onItemClick(item)" class="flex">
|
|
94
|
-
<div
|
|
95
|
-
(click)="currentData = vdcv.onItemClick(item)"
|
|
96
|
-
class="flex cursor-pointer w-full bg-secondary rounded-xl"
|
|
97
|
-
>
|
|
98
|
-
<div
|
|
99
|
-
class="w-3 rounded-xl rounded-tr-none rounded-br-none"
|
|
100
|
-
[ngClass]="
|
|
101
|
-
item.selected ? 'bg-primary' : 'bg-secondary-200'
|
|
102
|
-
"
|
|
103
|
-
></div>
|
|
104
|
-
<div class="flex-1 flex items-end gap-y-2 gap-x-4 p-4">
|
|
105
|
-
<div class="flex-1 space-y-2">
|
|
106
|
-
<span
|
|
107
|
-
class="font-semibold text-[#404040] flex-1 truncate"
|
|
108
|
-
>{{ item.title }}</span
|
|
109
|
-
>
|
|
110
|
-
|
|
111
|
-
<p class="flex items-center my-1 gap-1">
|
|
112
|
-
<label for="phone" class="text-[10px] font-light"
|
|
113
|
-
>Medium:</label
|
|
114
|
-
>
|
|
115
|
-
<span id="phone" class="text-sm truncate">{{
|
|
116
|
-
item.data.SignupType
|
|
117
|
-
}}</span>
|
|
118
|
-
</p>
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
<div class="grid gap-y-1">
|
|
122
|
-
<!-- <p class="grid">
|
|
123
|
-
<label
|
|
124
|
-
for="role"
|
|
125
|
-
class="text-[10px] font-light text-[#404040]"
|
|
126
|
-
>Medium:</label
|
|
127
|
-
>
|
|
128
|
-
<span id="role" class="text-sm font-medium">{{
|
|
129
|
-
item.data?.SignupType
|
|
130
|
-
}}</span>
|
|
131
|
-
</p> -->
|
|
132
|
-
|
|
133
|
-
<lib-user-access-request-status-badge
|
|
134
|
-
[status]="item.data.RequestStatus"
|
|
135
|
-
></lib-user-access-request-status-badge>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</ng-template>
|
|
141
|
-
</verben-left-card-data>
|
|
142
|
-
</verben-left-card-data-view>
|
|
143
|
-
|
|
144
|
-
<verben-right-card-data-view>
|
|
145
|
-
<ng-template #parent>
|
|
146
|
-
<lib-user-request-form
|
|
147
|
-
[roles]="roles()"
|
|
148
|
-
[currentData]="currentData"
|
|
149
|
-
(switchView)="vdv.toggleView()"
|
|
150
|
-
(onApproval)="onApprove($event)"
|
|
151
|
-
></lib-user-request-form>
|
|
152
|
-
</ng-template>
|
|
153
|
-
</verben-right-card-data-view>
|
|
154
|
-
|
|
155
|
-
<verben-card-data-view-footer class="w-full">
|
|
156
|
-
<div
|
|
157
|
-
[ngClass]="{
|
|
158
|
-
'flex gap-2 items-center': true,
|
|
159
|
-
'justify-end': true,
|
|
160
|
-
}"
|
|
161
|
-
>
|
|
162
|
-
<!-- <verbena-button
|
|
163
|
-
*ngIf="!vdcv.hasCurrentItem()"
|
|
164
|
-
[fontWeight]="'bold'"
|
|
165
|
-
[bgColor]="'#8E8D87'"
|
|
166
|
-
[borderRadius]="'4px'"
|
|
167
|
-
[textColor]="'#fff'"
|
|
168
|
-
[pd]="'9.79px 37.28px'"
|
|
169
|
-
[text]="'Delete'"
|
|
170
|
-
>
|
|
171
|
-
</verbena-button> -->
|
|
172
|
-
<div
|
|
173
|
-
class="flex {{
|
|
174
|
-
vdcv.hasCurrentItem() ? 'flex-1' : ''
|
|
175
|
-
}} justify-end items-center gap-5"
|
|
176
|
-
>
|
|
177
|
-
<span class="paginator-text"
|
|
178
|
-
>{{ cardData().length }} records loaded</span
|
|
179
|
-
>
|
|
180
|
-
<button
|
|
181
|
-
(click)="loadMore()"
|
|
182
|
-
class="load-more view-links text-[#3479E9] underline"
|
|
183
|
-
>
|
|
184
|
-
Load more
|
|
185
|
-
</button>
|
|
186
|
-
</div>
|
|
187
|
-
</div>
|
|
188
|
-
</verben-card-data-view-footer>
|
|
189
|
-
</verben-card-data-view>
|
|
190
|
-
</div>
|
|
191
|
-
<div column-content>
|
|
192
|
-
<verben-visible-column
|
|
193
|
-
(columnsUpdated)="onColumnsUpdated($event)"
|
|
194
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
195
|
-
borderRadius="10px"
|
|
196
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
197
|
-
bgColor="white"
|
|
198
|
-
width="400px"
|
|
199
|
-
textColor="black"
|
|
200
|
-
pd="1rem"
|
|
201
|
-
primaryColor="#FFE681"
|
|
202
|
-
secondaryColor="#3479E9"
|
|
203
|
-
[columns]="visibleColumns"
|
|
204
|
-
[displayedColumns]="5"
|
|
205
|
-
></verben-visible-column>
|
|
206
|
-
</div>
|
|
207
|
-
<div filter-content>
|
|
208
|
-
<verben-table-filter
|
|
209
|
-
(filtersApplied)="onFilterSet($event)"
|
|
210
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
211
|
-
borderRadius="10px"
|
|
212
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
213
|
-
bgColor="white"
|
|
214
|
-
width="420px"
|
|
215
|
-
textColor="black"
|
|
216
|
-
pd="1rem"
|
|
217
|
-
primaryColor="#FFE681"
|
|
218
|
-
secondaryColor="#3479E9"
|
|
219
|
-
tertiaryColor="#404040"
|
|
220
|
-
[filterOptions]="filterArray"
|
|
221
|
-
[maxFilterLength]="3"
|
|
222
|
-
></verben-table-filter>
|
|
223
|
-
</div>
|
|
224
|
-
<div sort-content>
|
|
225
|
-
<verben-sort-table
|
|
226
|
-
(selectedOptions)="onSortUpdated($event)"
|
|
227
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
228
|
-
borderRadius="10px"
|
|
229
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
230
|
-
bgColor="white"
|
|
231
|
-
width="400px"
|
|
232
|
-
textColor="black"
|
|
233
|
-
pd="1rem"
|
|
234
|
-
primaryColor="#FFE681"
|
|
235
|
-
secondaryColor="#3479E9"
|
|
236
|
-
tertiaryColor="#404040"
|
|
237
|
-
[enableDragAndDrop]="true"
|
|
238
|
-
[sortOptions]="sortOptions"
|
|
239
|
-
></verben-sort-table>
|
|
240
|
-
</div>
|
|
241
|
-
<div export-content>
|
|
242
|
-
<lib-data-xport
|
|
243
|
-
[columns]="visibleColumnDef"
|
|
244
|
-
[data]="data()"
|
|
245
|
-
(exportDataEvent)="handleExport($event)"
|
|
246
|
-
>
|
|
247
|
-
</lib-data-xport>
|
|
248
|
-
</div>
|
|
249
|
-
</verben-data-view>
|
|
250
|
-
|
|
251
|
-
<div *ngIf="vdv.isTableView" class="flex gap-2 justify-end">
|
|
252
|
-
<!-- <div class="message-log-button-container flex justify-between">
|
|
253
|
-
<verbena-button
|
|
254
|
-
[fontWeight]="'bold'"
|
|
255
|
-
[bgColor]="'#8E8D87'"
|
|
256
|
-
[borderRadius]="'4px'"
|
|
257
|
-
[textColor]="'#fff'"
|
|
258
|
-
[pd]="'9.79px 37.28px'"
|
|
259
|
-
[text]="'Delete'"
|
|
260
|
-
>
|
|
261
|
-
</verbena-button>
|
|
262
|
-
</div> -->
|
|
263
|
-
<div class="flex justify-end items-center gap-5">
|
|
264
|
-
<span class="paginator-text">{{ cardData().length }} records loaded</span>
|
|
265
|
-
<button
|
|
266
|
-
(click)="loadMore()"
|
|
267
|
-
class="load-more view-links text-[#3479E9] underline"
|
|
268
|
-
>
|
|
269
|
-
Load more
|
|
270
|
-
</button>
|
|
271
|
-
</div>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { UserRequestApprovalComponent } from './user-request-approval.component';
|
|
4
|
-
|
|
5
|
-
describe('UserRequestApprovalComponent', () => {
|
|
6
|
-
let component: UserRequestApprovalComponent;
|
|
7
|
-
let fixture: ComponentFixture<UserRequestApprovalComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [UserRequestApprovalComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(UserRequestApprovalComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
|
-
Component,
|
|
5
|
-
computed,
|
|
6
|
-
OnInit,
|
|
7
|
-
Signal,
|
|
8
|
-
signal,
|
|
9
|
-
ViewChild,
|
|
10
|
-
WritableSignal,
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import { columns } from './access-request.columns';
|
|
13
|
-
import { baseStyle } from './base-table-style';
|
|
14
|
-
import { UserAccessRequest } from '../../models/user-access-request';
|
|
15
|
-
import { Role } from '../../models/Role';
|
|
16
|
-
import {
|
|
17
|
-
CardData,
|
|
18
|
-
CardDataViewComponent,
|
|
19
|
-
ColumnDefinition,
|
|
20
|
-
DataFilterType,
|
|
21
|
-
DataViewComponent,
|
|
22
|
-
IDataFilter,
|
|
23
|
-
} from 'verben-ng-ui';
|
|
24
|
-
import { UserAccessRequestFacade } from './facades/user-access-request.facade';
|
|
25
|
-
|
|
26
|
-
interface UserFormData {
|
|
27
|
-
MailAddress: string;
|
|
28
|
-
Name: string;
|
|
29
|
-
PhoneNumber: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@Component({
|
|
33
|
-
selector: 'lib-user-request-approval',
|
|
34
|
-
templateUrl: './user-request-approval.component.html',
|
|
35
|
-
styleUrl: './user-request-approval.component.css',
|
|
36
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
|
-
})
|
|
38
|
-
export class UserRequestApprovalComponent implements OnInit {
|
|
39
|
-
@ViewChild('vdcv') cardDataView!: CardDataViewComponent;
|
|
40
|
-
@ViewChild('vdv') dataView!: DataViewComponent;
|
|
41
|
-
|
|
42
|
-
columns: ColumnDefinition<UserAccessRequest>[] = columns;
|
|
43
|
-
// visibleColumnDef: WritableSignal<ColumnDefinition<UserAccessRequest>[]> =
|
|
44
|
-
// signal(columns);
|
|
45
|
-
visibleColumnDef = this.columns;
|
|
46
|
-
data: WritableSignal<UserAccessRequest[]> = signal([]);
|
|
47
|
-
styles = baseStyle;
|
|
48
|
-
currentData: CardData | null = null;
|
|
49
|
-
isGridView = true;
|
|
50
|
-
selected: CardData | null = null;
|
|
51
|
-
|
|
52
|
-
cardData: Signal<CardData[]> = computed(() =>
|
|
53
|
-
this.data()?.map(
|
|
54
|
-
({
|
|
55
|
-
FirstName,
|
|
56
|
-
LastName,
|
|
57
|
-
MailAddress,
|
|
58
|
-
PhoneNumber,
|
|
59
|
-
RoleID,
|
|
60
|
-
RequestStatus,
|
|
61
|
-
Role,
|
|
62
|
-
SignupType,
|
|
63
|
-
}) => ({
|
|
64
|
-
selected: false,
|
|
65
|
-
title: `${FirstName} ${LastName}`,
|
|
66
|
-
data: {
|
|
67
|
-
FirstName,
|
|
68
|
-
LastName,
|
|
69
|
-
MailAddress,
|
|
70
|
-
PhoneNumber,
|
|
71
|
-
RoleID,
|
|
72
|
-
RequestStatus,
|
|
73
|
-
Role,
|
|
74
|
-
SignupType,
|
|
75
|
-
} as Partial<UserAccessRequest>,
|
|
76
|
-
body: [{ title: 'Role', value: Role?.Name ?? '' }],
|
|
77
|
-
children: [],
|
|
78
|
-
})
|
|
79
|
-
)
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
roles: WritableSignal<Role[]> = signal([]);
|
|
83
|
-
|
|
84
|
-
constructor(
|
|
85
|
-
private cdr: ChangeDetectorRef,
|
|
86
|
-
// private service: UserRequestApprovalService,
|
|
87
|
-
private userAccessRequestFacade: UserAccessRequestFacade
|
|
88
|
-
) {}
|
|
89
|
-
|
|
90
|
-
async ngOnInit() {
|
|
91
|
-
// this.data = this.service.getMockUserRequests();
|
|
92
|
-
this.userAccessRequestFacade.getRequests$().subscribe((data) => {
|
|
93
|
-
this.data.set(data);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
this.userAccessRequestFacade.getRoles$().subscribe((data) => {
|
|
97
|
-
this.roles.set(data);
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
this.userAccessRequestFacade.loadRequests();
|
|
102
|
-
this.userAccessRequestFacade.loadRoles();
|
|
103
|
-
} catch (error) {
|
|
104
|
-
// Handle error
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
ngOnDestroy() {
|
|
109
|
-
this.userAccessRequestFacade.destroy();
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
handleSearch(event: { key: string; value: string }) {
|
|
113
|
-
this.userAccessRequestFacade.search(event.value);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
async loadMore() {
|
|
117
|
-
try {
|
|
118
|
-
await this.userAccessRequestFacade.loadMore();
|
|
119
|
-
} catch (error) {
|
|
120
|
-
// Handle error
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// To search with parameter:
|
|
125
|
-
async searchRequests(param: string) {
|
|
126
|
-
try {
|
|
127
|
-
await this.userAccessRequestFacade.loadRequestsWithParam(param);
|
|
128
|
-
} catch (error) {
|
|
129
|
-
// Handle error
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
async onApprove(approvalData: { email: string; role: string }) {
|
|
134
|
-
const data = this.data().find(
|
|
135
|
-
({ MailAddress }) => MailAddress === approvalData.email
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
if (data) {
|
|
139
|
-
await this.userAccessRequestFacade.approveRequest({
|
|
140
|
-
...data,
|
|
141
|
-
RoleID: approvalData.role,
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
openDetailView(mailAddress: string) {
|
|
147
|
-
const cardItem = this.getCardDataByMailAddress(mailAddress);
|
|
148
|
-
if (cardItem && this.cardDataView) {
|
|
149
|
-
this.dataView.toggleView();
|
|
150
|
-
// First reset all selections
|
|
151
|
-
this.cardData().forEach((item) => {
|
|
152
|
-
item.selected = false;
|
|
153
|
-
if (item.children) {
|
|
154
|
-
item.children.forEach((child) => (child.selected = false));
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
// Set the selected item
|
|
159
|
-
cardItem.selected = true;
|
|
160
|
-
this.currentData = this.cardDataView.onItemClick(cardItem);
|
|
161
|
-
|
|
162
|
-
// Force change detection if needed
|
|
163
|
-
// this.changeDetectorRef.detectChanges();
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
getCardDataByMailAddress(mailAddress: string): CardData | undefined {
|
|
168
|
-
return this.cardData().find(({ data }) => data.MailAddress === mailAddress);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
onViewChange(isGridView: boolean): void {
|
|
172
|
-
this.isGridView = isGridView;
|
|
173
|
-
// Reset selection when switching views
|
|
174
|
-
if (this.currentData) {
|
|
175
|
-
this.cardDataView?.clearData();
|
|
176
|
-
this.currentData = null;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
console.log('SELECTED', this.selected);
|
|
180
|
-
|
|
181
|
-
if (this.selected) {
|
|
182
|
-
this.cardDataView.onItemClick(this.selected);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
openFormView(index: number) {
|
|
187
|
-
const item = this.cardData()[index];
|
|
188
|
-
console.log('ITEM = ', item);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
handleExport(exportedData: Partial<any>[]) {
|
|
192
|
-
console.log('Exported data:', exportedData);
|
|
193
|
-
this.downloadCSV(exportedData);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @param data Simple csv export for testing
|
|
198
|
-
*/
|
|
199
|
-
private downloadCSV(data: Partial<any>[]) {
|
|
200
|
-
const headers = Object.keys(data[0]);
|
|
201
|
-
const csvContent = [
|
|
202
|
-
headers.join(','),
|
|
203
|
-
...data.map((row) => headers.map((header) => row[header]).join(',')),
|
|
204
|
-
].join('\n');
|
|
205
|
-
|
|
206
|
-
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
|
207
|
-
const link = document.createElement('a');
|
|
208
|
-
if (link.download !== undefined) {
|
|
209
|
-
const url = URL.createObjectURL(blob);
|
|
210
|
-
link.setAttribute('href', url);
|
|
211
|
-
link.setAttribute('download', 'export.csv');
|
|
212
|
-
link.style.visibility = 'hidden';
|
|
213
|
-
document.body.appendChild(link);
|
|
214
|
-
link.click();
|
|
215
|
-
document.body.removeChild(link);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
onSelectionChange(selectedRows: UserAccessRequest[]) {
|
|
220
|
-
console.log('Selection changed:', selectedRows);
|
|
221
|
-
// Handle the selection change
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Copied over from card view doc until I understand usage
|
|
226
|
-
*/
|
|
227
|
-
selectedColumnCount: number = 0;
|
|
228
|
-
selectedFilterTableCount: number = 0;
|
|
229
|
-
isOPen: boolean = true;
|
|
230
|
-
selectedSortCount: number = 0;
|
|
231
|
-
showColumn: boolean = false;
|
|
232
|
-
showSort: boolean = false;
|
|
233
|
-
selectedAll: boolean = false;
|
|
234
|
-
visibleColumns: IDataFilter[] = columns.map((col) => ({
|
|
235
|
-
checked: true,
|
|
236
|
-
name: typeof col.header === 'string' ? col.header : col.id,
|
|
237
|
-
type: DataFilterType.Bool,
|
|
238
|
-
}));
|
|
239
|
-
filterArray: IDataFilter[] = [
|
|
240
|
-
{
|
|
241
|
-
name: 'Name',
|
|
242
|
-
type: DataFilterType.String,
|
|
243
|
-
checked: false,
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: 'MailAddress',
|
|
247
|
-
type: DataFilterType.String,
|
|
248
|
-
checked: false,
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: 'PhoneNumber',
|
|
252
|
-
type: DataFilterType.String,
|
|
253
|
-
checked: false,
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'CreatedAt',
|
|
257
|
-
type: DataFilterType.Date,
|
|
258
|
-
checked: false,
|
|
259
|
-
},
|
|
260
|
-
];
|
|
261
|
-
|
|
262
|
-
sortOptions: IDataFilter[] = [
|
|
263
|
-
{
|
|
264
|
-
name: 'Name',
|
|
265
|
-
type: DataFilterType.String,
|
|
266
|
-
checked: false,
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
name: 'MailAddress',
|
|
270
|
-
type: DataFilterType.String,
|
|
271
|
-
checked: false,
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
name: 'PhoneNumber',
|
|
275
|
-
type: DataFilterType.String,
|
|
276
|
-
checked: false,
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
name: 'CreatedAt',
|
|
280
|
-
type: DataFilterType.Date,
|
|
281
|
-
checked: true,
|
|
282
|
-
},
|
|
283
|
-
];
|
|
284
|
-
clearData() {
|
|
285
|
-
this.currentData = {} as CardData;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
onColumnChange(event: boolean) {
|
|
289
|
-
this.showColumn = event;
|
|
290
|
-
}
|
|
291
|
-
onSortChange(event: boolean) {
|
|
292
|
-
this.showSort = event;
|
|
293
|
-
console.log(event);
|
|
294
|
-
}
|
|
295
|
-
onColumnsUpdated(updatedColumns: IDataFilter[]) {
|
|
296
|
-
console.log(updatedColumns);
|
|
297
|
-
const updatedColumnDef: ColumnDefinition<UserAccessRequest>[] = [];
|
|
298
|
-
updatedColumns.forEach((col) => {
|
|
299
|
-
const matchingCol = this.columns.find(
|
|
300
|
-
(column) => column.header === col.name || column.id === col.name
|
|
301
|
-
);
|
|
302
|
-
if (matchingCol) {
|
|
303
|
-
updatedColumnDef.push(matchingCol);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
console.log(updatedColumnDef);
|
|
308
|
-
this.visibleColumnDef = [...updatedColumnDef];
|
|
309
|
-
this.cdr.markForCheck();
|
|
310
|
-
|
|
311
|
-
this.onColumnChange(false);
|
|
312
|
-
this.selectedColumnCount = updatedColumns.length;
|
|
313
|
-
}
|
|
314
|
-
onSortUpdated(updatedSorts: IDataFilter[]) {
|
|
315
|
-
this.onSortChange(false);
|
|
316
|
-
this.selectedSortCount = updatedSorts.length;
|
|
317
|
-
console.log(updatedSorts);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
onStateChange(event: { key: string; value: boolean }): void {
|
|
321
|
-
console.log(`State changed for ${event.key}:`, event.value);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
onFilterSet(event: IDataFilter[]): void {
|
|
325
|
-
console.log(event);
|
|
326
|
-
this.userAccessRequestFacade.filter(event);
|
|
327
|
-
}
|
|
328
|
-
}
|