verben-authentication-ui 1.0.3 → 1.0.4
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 +89 -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 +1556 -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 +71 -0
- package/esm2022/lib/components/user-management/user-management.columns.mjs +47 -0
- package/esm2022/lib/components/user-management/user-management.component.mjs +475 -0
- package/esm2022/lib/components/user-management/user-management.module.mjs +79 -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 +270 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +80 -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 +6491 -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 +29 -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 +123 -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 +22 -0
- package/lib/components/user-management/user-management.columns.d.ts +3 -0
- package/lib/components/user-management/user-management.component.d.ts +123 -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 +15 -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 -46
- package/src/lib/components/forgot-password/forgot-password.component.html +0 -19
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +0 -23
- package/src/lib/components/forgot-password/forgot-password.component.ts +0 -88
- 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 -55
- package/src/lib/components/role-control/role-control.component.html +0 -571
- package/src/lib/components/role-control/role-control.component.spec.ts +0 -23
- package/src/lib/components/role-control/role-control.component.ts +0 -1817
- 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 -73
- 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 -80
- 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 -51
- package/src/lib/components/user-management/user-management.component.css +0 -31
- package/src/lib/components/user-management/user-management.component.html +0 -319
- package/src/lib/components/user-management/user-management.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.component.ts +0 -604
- package/src/lib/components/user-management/user-management.module.ts +0 -56
- 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 -269
- 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 -326
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +0 -54
- 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 -1030
- 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,22 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { Status } from '../../../models/status';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'lib-user-status-badge',
|
|
6
|
-
templateUrl: './user-status-badge.component.html',
|
|
7
|
-
styleUrl: './user-status-badge.component.css',
|
|
8
|
-
})
|
|
9
|
-
export class UserStatusBadgeComponent {
|
|
10
|
-
@Input() status: Status = Status.Active;
|
|
11
|
-
|
|
12
|
-
badgeConfig() {
|
|
13
|
-
switch (this.status) {
|
|
14
|
-
case Status.Active:
|
|
15
|
-
return { bgColor: '#CAE1CC', textColor: '#4ABB54', label: 'Active' };
|
|
16
|
-
case Status.InActive:
|
|
17
|
-
return { bgColor: '#FFDFDF', textColor: '#EB5757', label: 'InActive' };
|
|
18
|
-
default:
|
|
19
|
-
return { bgColor: '#827C7C', textColor: '#C3C3C3', label: 'Unknown' };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/* Container Styles */
|
|
2
|
-
.flex {
|
|
3
|
-
display: flex;
|
|
4
|
-
}
|
|
5
|
-
.items-center{
|
|
6
|
-
align-items: center;
|
|
7
|
-
}
|
|
8
|
-
.overflow-hidden {
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
}
|
|
11
|
-
.justify-center{
|
|
12
|
-
justify-content: center;
|
|
13
|
-
}
|
|
14
|
-
.h-full {
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.text-center{
|
|
19
|
-
text-align: center;
|
|
20
|
-
}
|
|
21
|
-
.underline {
|
|
22
|
-
text-decoration: underline;
|
|
23
|
-
}
|
|
24
|
-
.gap-5{
|
|
25
|
-
gap: 20px;
|
|
26
|
-
}
|
|
27
|
-
/* Space and Gap Utilities */
|
|
28
|
-
.mt-4 {
|
|
29
|
-
margin-top: 1rem;
|
|
30
|
-
}
|
|
31
|
-
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
32
|
-
margin-top: 1rem;
|
|
33
|
-
}
|
|
34
|
-
.gap-1 > :not([hidden]) ~ :not([hidden]) {
|
|
35
|
-
gap: 0.25rem;
|
|
36
|
-
}
|
|
37
|
-
.pt-3 {
|
|
38
|
-
padding-top: 0.75rem;
|
|
39
|
-
}
|
|
40
|
-
.mt-5 {
|
|
41
|
-
margin-top: 1.25rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Form and Input Styles */
|
|
45
|
-
.border {
|
|
46
|
-
border-width: 1px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.rounded-xl {
|
|
50
|
-
border-radius: 0.75rem;
|
|
51
|
-
}
|
|
52
|
-
.px-3 {
|
|
53
|
-
padding-left: 0.75rem;
|
|
54
|
-
padding-right: 0.75rem;
|
|
55
|
-
}
|
|
56
|
-
.py-3 {
|
|
57
|
-
padding-top: 0.75rem;
|
|
58
|
-
padding-bottom: 0.75rem;
|
|
59
|
-
}
|
|
60
|
-
.flex-col {
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
}
|
|
63
|
-
.w-full {
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.object-cover {
|
|
68
|
-
object-fit: cover;
|
|
69
|
-
}
|
|
70
|
-
.w-full {
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.cursor-not-allowed{
|
|
75
|
-
cursor: not-allowed !important;
|
|
76
|
-
}
|
|
77
|
-
.accent {
|
|
78
|
-
accent-color: #000;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.OR{
|
|
82
|
-
|
|
83
|
-
color:#666666;
|
|
84
|
-
gap: 6px;
|
|
85
|
-
}
|
|
86
|
-
.OR span{
|
|
87
|
-
width: 150px;
|
|
88
|
-
border-top: 2px solid #6666663d;
|
|
89
|
-
display: block;
|
|
90
|
-
}
|
|
91
|
-
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
<section [ngStyle]="styles" class="{{ customClass }}">
|
|
2
|
-
<h2 class="{{ headingClass }}">
|
|
3
|
-
{{ headingTitle }}
|
|
4
|
-
</h2>
|
|
5
|
-
|
|
6
|
-
<form
|
|
7
|
-
[formGroup]="userRequestForm"
|
|
8
|
-
(ngSubmit)="submitForm()"
|
|
9
|
-
class="flex flex-col gap-5 mt-3"
|
|
10
|
-
>
|
|
11
|
-
<verbena-input
|
|
12
|
-
[label]="'First Name'"
|
|
13
|
-
[labelColor]="'#666'"
|
|
14
|
-
[placeHolder]="''"
|
|
15
|
-
[required]="true"
|
|
16
|
-
[type]="'text'"
|
|
17
|
-
formControlName="FirstName"
|
|
18
|
-
[showBorder]="true"
|
|
19
|
-
[bgColor]="'white'"
|
|
20
|
-
[border]="'1px solid #66666659'"
|
|
21
|
-
[borderRadius]="'12px'"
|
|
22
|
-
[showErrorMessage]="true"
|
|
23
|
-
[errorMessageColor]="'red'"
|
|
24
|
-
[errorBorderColor]="'red'"
|
|
25
|
-
[errorPosition]="'bottom'"
|
|
26
|
-
class="outline-none focus-none"
|
|
27
|
-
></verbena-input>
|
|
28
|
-
<verbena-input
|
|
29
|
-
[label]="'Last Name'"
|
|
30
|
-
[labelColor]="'#666'"
|
|
31
|
-
[placeHolder]="''"
|
|
32
|
-
[required]="true"
|
|
33
|
-
[type]="'text'"
|
|
34
|
-
formControlName="LastName"
|
|
35
|
-
[showBorder]="true"
|
|
36
|
-
[bgColor]="'white'"
|
|
37
|
-
[border]="'1px solid #66666659'"
|
|
38
|
-
[borderRadius]="'12px'"
|
|
39
|
-
[showErrorMessage]="true"
|
|
40
|
-
[errorMessageColor]="'red'"
|
|
41
|
-
[errorBorderColor]="'red'"
|
|
42
|
-
[errorPosition]="'bottom'"
|
|
43
|
-
class="outline-none focus-none"
|
|
44
|
-
></verbena-input>
|
|
45
|
-
<verbena-input
|
|
46
|
-
[label]="'E-mail Address'"
|
|
47
|
-
[labelColor]="'#666'"
|
|
48
|
-
[placeHolder]="''"
|
|
49
|
-
[required]="true"
|
|
50
|
-
[type]="'email'"
|
|
51
|
-
formControlName="MailAddress"
|
|
52
|
-
[showBorder]="true"
|
|
53
|
-
[bgColor]="'white'"
|
|
54
|
-
[border]="'1px solid #66666659'"
|
|
55
|
-
[borderRadius]="'12px'"
|
|
56
|
-
[showErrorMessage]="true"
|
|
57
|
-
[customErrorMessages]="{
|
|
58
|
-
required: 'Email address is required',
|
|
59
|
-
email: 'Email address must be valid'
|
|
60
|
-
}"
|
|
61
|
-
[errorMessageColor]="'red'"
|
|
62
|
-
[errorBorderColor]="'red'"
|
|
63
|
-
[errorPosition]="'bottom'"
|
|
64
|
-
class="outline-none focus-none"
|
|
65
|
-
></verbena-input>
|
|
66
|
-
|
|
67
|
-
<verbena-input
|
|
68
|
-
*ngIf="!hidePassword"
|
|
69
|
-
[label]="'Password'"
|
|
70
|
-
[labelColor]="'#666'"
|
|
71
|
-
[placeHolder]="''"
|
|
72
|
-
[passwordToggle]="true"
|
|
73
|
-
formControlName="Password"
|
|
74
|
-
[required]="true"
|
|
75
|
-
[type]="'password'"
|
|
76
|
-
[showBorder]="true"
|
|
77
|
-
[bgColor]="'white'"
|
|
78
|
-
[border]="'1px solid #66666659'"
|
|
79
|
-
[borderRadius]="'12px'"
|
|
80
|
-
[showErrorMessage]="true"
|
|
81
|
-
[errorMessageColor]="'red'"
|
|
82
|
-
[errorBorderColor]="'red'"
|
|
83
|
-
[errorPosition]="'bottom'"
|
|
84
|
-
class="outline-none focus-none"
|
|
85
|
-
></verbena-input>
|
|
86
|
-
|
|
87
|
-
<verbena-input
|
|
88
|
-
*ngIf="!hidePassword"
|
|
89
|
-
[label]="'Confirm Password'"
|
|
90
|
-
[labelColor]="'#666'"
|
|
91
|
-
[placeHolder]="''"
|
|
92
|
-
[required]="true"
|
|
93
|
-
[type]="'password'"
|
|
94
|
-
formControlName="ConfirmPassword"
|
|
95
|
-
[showBorder]="true"
|
|
96
|
-
[passwordToggle]="true"
|
|
97
|
-
[bgColor]="'white'"
|
|
98
|
-
[minLength]="userRequestForm.controls['Password'].value?.length"
|
|
99
|
-
[border]="'1px solid #66666659'"
|
|
100
|
-
[borderRadius]="'12px'"
|
|
101
|
-
[showErrorMessage]="true"
|
|
102
|
-
[errorMessageColor]="'red'"
|
|
103
|
-
[customErrorMessages]="{
|
|
104
|
-
minLength:'Confirm Password must match password',
|
|
105
|
-
required: 'Confirm Password is required and must match password',
|
|
106
|
-
password: 'Password does not match',
|
|
107
|
-
}"
|
|
108
|
-
[errorBorderColor]="'red'"
|
|
109
|
-
[errorPosition]="'bottom'"
|
|
110
|
-
class="outline-none focus-none"
|
|
111
|
-
></verbena-input>
|
|
112
|
-
|
|
113
|
-
<verbena-button
|
|
114
|
-
[class]="'mt-6'"
|
|
115
|
-
[disable]="!this.checkForm()"
|
|
116
|
-
[text]="text"
|
|
117
|
-
[bgColor]="btnBgColor"
|
|
118
|
-
[textColor]="color"
|
|
119
|
-
[buttonClass]="'cursor-not-allowed'"
|
|
120
|
-
[border]="btnBorder"
|
|
121
|
-
[borderRadius]="btnBorderRadius"
|
|
122
|
-
[pd]="btnPd"
|
|
123
|
-
[ngClass]="{
|
|
124
|
-
'cursor-not-allowed':!checkForm()
|
|
125
|
-
}"
|
|
126
|
-
[width]="btnWidth"
|
|
127
|
-
buttonClass="font-medium text-[22px] leading-[33px]"
|
|
128
|
-
></verbena-button>
|
|
129
|
-
</form>
|
|
130
|
-
|
|
131
|
-
<div class="mt-2" *ngIf="AuthMechanisms !== null">
|
|
132
|
-
<verben-o-auth
|
|
133
|
-
[authMechanisms]="AuthMechanisms"
|
|
134
|
-
></verben-o-auth>
|
|
135
|
-
</div>
|
|
136
|
-
</section>
|
|
137
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { UserRequestComponent } from './user-request.component';
|
|
4
|
-
|
|
5
|
-
describe('UserRequestComponent', () => {
|
|
6
|
-
let component: UserRequestComponent;
|
|
7
|
-
let fixture: ComponentFixture<UserRequestComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [UserRequestComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(UserRequestComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
AbstractControl,
|
|
4
|
-
FormBuilder,
|
|
5
|
-
FormControl,
|
|
6
|
-
FormGroup,
|
|
7
|
-
ValidationErrors,
|
|
8
|
-
Validators,
|
|
9
|
-
} from '@angular/forms';
|
|
10
|
-
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
11
|
-
import { UserRequestPayload } from '../../models/UserRequest';
|
|
12
|
-
import { ObjectState } from '../../models/object-state';
|
|
13
|
-
import { UtilService } from '../../services/util.service';
|
|
14
|
-
import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
15
|
-
import { ErrorResponse } from '../../models/ErrorResponse';
|
|
16
|
-
import { Status } from '../../models/status';
|
|
17
|
-
import { RequestStatus } from '../../models/request-status';
|
|
18
|
-
import { EnvironmentService } from '../../services/environment.service';
|
|
19
|
-
import { AuthMechanism, MechanismType } from '../../models/auth-mechanism';
|
|
20
|
-
import { ActivatedRoute } from '@angular/router';
|
|
21
|
-
import { OAuthResponse } from '../../models/oauth-response';
|
|
22
|
-
import { Role } from '../../models/Role';
|
|
23
|
-
import CryptoJS from 'crypto-js';
|
|
24
|
-
@Component({
|
|
25
|
-
selector: 'lib-user-request',
|
|
26
|
-
templateUrl: './user-request.component.html',
|
|
27
|
-
styleUrls: ['./user-request.component.css'],
|
|
28
|
-
})
|
|
29
|
-
export class UserRequestComponent {
|
|
30
|
-
@Input() width: string = '500px';
|
|
31
|
-
@Input() headingTitle: string = 'Request an account';
|
|
32
|
-
@Input() headingClass: string =
|
|
33
|
-
'font-medium text-[2rem] leading-[48px] text-[#333]';
|
|
34
|
-
@Input() customClass: string = '';
|
|
35
|
-
@Input() bgColor: string = '#fff';
|
|
36
|
-
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
37
|
-
@Input() border: string = '1px solid #66666680';
|
|
38
|
-
@Input() borderRadius: string = '24px';
|
|
39
|
-
@Input() textColor: string = '#333';
|
|
40
|
-
@Input() height: string = 'auto';
|
|
41
|
-
@Input() pd: string = '32px 48px';
|
|
42
|
-
isFormEditable: boolean = true;
|
|
43
|
-
tenant: string;
|
|
44
|
-
secret: string;
|
|
45
|
-
hidePassword: boolean = false;
|
|
46
|
-
isCode: boolean = false;
|
|
47
|
-
@Input() text: string = 'Send Request';
|
|
48
|
-
@Input() color: string = 'black';
|
|
49
|
-
@Input() btnBorder: string = '1px solid #FFE681';
|
|
50
|
-
@Input() btnBorderRadius: string = '40px';
|
|
51
|
-
@Input() btnBgColor: string = '#FFE681';
|
|
52
|
-
@Input() btnWidth: string = '100%';
|
|
53
|
-
@Input() btnPd: string = '10px 20px';
|
|
54
|
-
@Input() termsLink: string = '';
|
|
55
|
-
@Input() privacyLink: string = '';
|
|
56
|
-
@Input() routerLink: string = '';
|
|
57
|
-
@Output() formSubmit = new EventEmitter<UserRequestPayload[]>();
|
|
58
|
-
@Output() googleClick = new EventEmitter();
|
|
59
|
-
@Output() onSubmitSuccess = new EventEmitter<any>();
|
|
60
|
-
@Output() appleClick = new EventEmitter();
|
|
61
|
-
@Output() microsoftClick = new EventEmitter();
|
|
62
|
-
@Output() onSubmitGoogleAuth: EventEmitter<ResponseKeyValue | ErrorResponse> =
|
|
63
|
-
new EventEmitter();
|
|
64
|
-
@Output() onSubmitResponseEnd: EventEmitter<any> = new EventEmitter();
|
|
65
|
-
userRequestForm: FormGroup;
|
|
66
|
-
tenantDetails: any | null = null;
|
|
67
|
-
AuthMechanisms: AuthMechanism[] | null = null;
|
|
68
|
-
showform: boolean = false;
|
|
69
|
-
code: string = '';
|
|
70
|
-
type: string = '';
|
|
71
|
-
constructor(
|
|
72
|
-
private fb: FormBuilder,
|
|
73
|
-
private server: HttpWebRequestService,
|
|
74
|
-
private utilService: UtilService,
|
|
75
|
-
private envSvc: EnvironmentService,
|
|
76
|
-
private route: ActivatedRoute
|
|
77
|
-
) {
|
|
78
|
-
this.tenant = this.envSvc.environment.Tenant;
|
|
79
|
-
this.secret = this.envSvc.environment.Secret;
|
|
80
|
-
this.userRequestForm = this.fb.group<{
|
|
81
|
-
[K in keyof UserRequestPayload]: FormControl<UserRequestPayload[K]>;
|
|
82
|
-
}>(
|
|
83
|
-
{
|
|
84
|
-
Code: new FormControl('', { nonNullable: true }),
|
|
85
|
-
FirstName: new FormControl('', {
|
|
86
|
-
nonNullable: true,
|
|
87
|
-
validators: [Validators.required],
|
|
88
|
-
}),
|
|
89
|
-
LastName: new FormControl('', {
|
|
90
|
-
nonNullable: true,
|
|
91
|
-
validators: [Validators.required],
|
|
92
|
-
}),
|
|
93
|
-
MailAddress: new FormControl('', {
|
|
94
|
-
nonNullable: true,
|
|
95
|
-
validators: [Validators.required, Validators.email],
|
|
96
|
-
}),
|
|
97
|
-
Password: new FormControl('', {
|
|
98
|
-
nonNullable: true,
|
|
99
|
-
validators: [Validators.required, Validators.minLength(8)],
|
|
100
|
-
}),
|
|
101
|
-
PhoneNumber: new FormControl('', { nonNullable: true }),
|
|
102
|
-
OtherName: new FormControl('', { nonNullable: true }),
|
|
103
|
-
Role: new FormControl<Role>(
|
|
104
|
-
{
|
|
105
|
-
Name: '',
|
|
106
|
-
Description: '',
|
|
107
|
-
Application: '',
|
|
108
|
-
RoleContexts: [],
|
|
109
|
-
APIKey: '',
|
|
110
|
-
Id: '',
|
|
111
|
-
id: '',
|
|
112
|
-
ServiceName: '',
|
|
113
|
-
CreatedAt: new Date(),
|
|
114
|
-
UpdatedAt: new Date(),
|
|
115
|
-
DataState: ObjectState.New,
|
|
116
|
-
TenantId: '',
|
|
117
|
-
Code: '',
|
|
118
|
-
},
|
|
119
|
-
{ nonNullable: true }
|
|
120
|
-
),
|
|
121
|
-
Tags: new FormControl<[]>([], { nonNullable: true }),
|
|
122
|
-
Status: new FormControl<Status>(Status.Active, { nonNullable: true }),
|
|
123
|
-
RequestStatus: new FormControl<RequestStatus>(RequestStatus.Pending, {
|
|
124
|
-
nonNullable: true,
|
|
125
|
-
}),
|
|
126
|
-
UpdatedAt: new FormControl(new Date(), { nonNullable: true }),
|
|
127
|
-
CreatedAt: new FormControl(new Date(), { nonNullable: true }),
|
|
128
|
-
Id: new FormControl('', { nonNullable: true }),
|
|
129
|
-
DataState: new FormControl<ObjectState>(ObjectState.New, {
|
|
130
|
-
nonNullable: true,
|
|
131
|
-
}),
|
|
132
|
-
TenantId: new FormControl('', { nonNullable: true }),
|
|
133
|
-
Token: new FormControl('', { nonNullable: true }),
|
|
134
|
-
SignUpType: new FormControl(MechanismType.InApp, { nonNullable: true }),
|
|
135
|
-
ServiceName: new FormControl('', { nonNullable: true }),
|
|
136
|
-
ActionBy: new FormControl('', { nonNullable: true }),
|
|
137
|
-
Comment: new FormControl('', { nonNullable: true }),
|
|
138
|
-
},
|
|
139
|
-
{ validators: this.passwordMatchValidator }
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
passwordMatchValidator(control: AbstractControl): ValidationErrors | null {
|
|
143
|
-
const password = control.get('Password')?.value;
|
|
144
|
-
const confirmPassword = control.get('ConfirmPassword')?.value;
|
|
145
|
-
|
|
146
|
-
return password === confirmPassword ? null : { passwordMismatch: true };
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
get passwordMismatchError(): boolean {
|
|
150
|
-
return this.userRequestForm.hasError('passwordMismatch');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
get styles() {
|
|
154
|
-
return {
|
|
155
|
-
'background-color': this.bgColor,
|
|
156
|
-
'box-shadow': this.boxShadow,
|
|
157
|
-
border: this.border,
|
|
158
|
-
'border-radius': this.borderRadius,
|
|
159
|
-
color: this.textColor,
|
|
160
|
-
'max-width': this.width,
|
|
161
|
-
height: this.height,
|
|
162
|
-
padding: this.pd,
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
async ngOnInit() {
|
|
166
|
-
await this.getTenantConfig();
|
|
167
|
-
this.route.queryParams.subscribe((params) => {
|
|
168
|
-
this.code = params['code'];
|
|
169
|
-
this.type = params['type'];
|
|
170
|
-
if (this.code) {
|
|
171
|
-
this.verifyUserDetails();
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
async getTenantConfig() {
|
|
177
|
-
this.userRequestForm.addControl(
|
|
178
|
-
'ConfirmPassword',
|
|
179
|
-
new FormControl('', Validators.required)
|
|
180
|
-
);
|
|
181
|
-
const isLocalhost = window?.location?.hostname === 'localhost';
|
|
182
|
-
const payload = isLocalhost
|
|
183
|
-
? {
|
|
184
|
-
Key: "UrlKey",
|
|
185
|
-
Value:'https://bovas.white360.net'
|
|
186
|
-
}
|
|
187
|
-
: undefined;
|
|
188
|
-
const res = await this.server.post(
|
|
189
|
-
`Tenant/GetTenantConfigByUrlKey`,
|
|
190
|
-
payload
|
|
191
|
-
);
|
|
192
|
-
this.tenantDetails = res;
|
|
193
|
-
this.AuthMechanisms = this.tenantDetails?.AuthMechanisms;
|
|
194
|
-
if (
|
|
195
|
-
!this.tenantDetails?.AuthMechanism &&
|
|
196
|
-
this.tenantDetails?.AuthMechanism !== MechanismType.InApp
|
|
197
|
-
) {
|
|
198
|
-
this.showform = false;
|
|
199
|
-
} else if (this.tenantDetails?.AuthMechanism === MechanismType.InApp) {
|
|
200
|
-
this.showform = true;
|
|
201
|
-
} else if (this.AuthMechanisms !== null) {
|
|
202
|
-
this.showform = this.AuthMechanisms.some((item) =>
|
|
203
|
-
item.AuthMechanism.includes(MechanismType.InApp)
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
checkForm(): boolean {
|
|
208
|
-
return this.userRequestForm.valid;
|
|
209
|
-
}
|
|
210
|
-
handleGoogleAuth() {
|
|
211
|
-
if (this.AuthMechanisms !== null) {
|
|
212
|
-
const data = this.AuthMechanisms.filter(
|
|
213
|
-
(item) => item.AuthMechanism === MechanismType.Google
|
|
214
|
-
);
|
|
215
|
-
this.googleClick.emit();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
handleAppleAuth() {
|
|
219
|
-
this.appleClick.emit();
|
|
220
|
-
}
|
|
221
|
-
handleMicrosoft() {
|
|
222
|
-
if (this.AuthMechanisms !== null) {
|
|
223
|
-
const data = this.AuthMechanisms.filter(
|
|
224
|
-
(item) => item.AuthMechanism === MechanismType.MicrosoftAD
|
|
225
|
-
);
|
|
226
|
-
this.microsoftClick.emit();
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
async submitForm() {
|
|
231
|
-
if (!this.checkForm()) {
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
const formValue = this.userRequestForm.getRawValue();
|
|
236
|
-
const hashedPassword = CryptoJS.MD5(this.userRequestForm.controls['Password'].value).toString();
|
|
237
|
-
const { ConfirmPassword, TenantId, ...rest } = formValue;
|
|
238
|
-
const payload = {
|
|
239
|
-
...rest,
|
|
240
|
-
TenantId: this.tenantDetails.TenantId,
|
|
241
|
-
Password:hashedPassword
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const payloadToSubmit: UserRequestPayload[] = [payload];
|
|
246
|
-
|
|
247
|
-
this.formSubmit.emit(payloadToSubmit);
|
|
248
|
-
this.utilService.sendBI(true);
|
|
249
|
-
|
|
250
|
-
try {
|
|
251
|
-
const res = await this.server.post(
|
|
252
|
-
`User/SaveUserAccessRequests`,
|
|
253
|
-
payloadToSubmit
|
|
254
|
-
);
|
|
255
|
-
|
|
256
|
-
this.utilService.sendBI(false);
|
|
257
|
-
|
|
258
|
-
if (res instanceof ErrorResponse) {
|
|
259
|
-
this.onSubmitResponseEnd.emit(res);
|
|
260
|
-
} else {
|
|
261
|
-
const result = res as ResponseKeyValue;
|
|
262
|
-
this.onSubmitResponseEnd.emit(result);
|
|
263
|
-
this.onSubmitSuccess.emit(result);
|
|
264
|
-
}
|
|
265
|
-
} catch (error) {
|
|
266
|
-
this.utilService.sendBI(false);
|
|
267
|
-
console.error('Unexpected error:', error);
|
|
268
|
-
this.onSubmitResponseEnd.emit(error);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
async verifyUserDetails() {
|
|
272
|
-
if (this.AuthMechanisms !== null && this.tenant) {
|
|
273
|
-
const data: any = this.AuthMechanisms.find((item) =>
|
|
274
|
-
item.AuthMechanism.includes(this.type)
|
|
275
|
-
);
|
|
276
|
-
const payload = {
|
|
277
|
-
AuthCode: this.code,
|
|
278
|
-
Tenant: this.tenant,
|
|
279
|
-
AuthMechanism: data.AuthMechanism,
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
this.utilService.sendBI(true);
|
|
283
|
-
const res: OAuthResponse = await this.server.post(
|
|
284
|
-
`Authentication/GetUserDetails`,
|
|
285
|
-
payload
|
|
286
|
-
);
|
|
287
|
-
this.utilService.sendBI(false);
|
|
288
|
-
if (res instanceof ErrorResponse) {
|
|
289
|
-
this.onSubmitGoogleAuth.emit(res);
|
|
290
|
-
} else {
|
|
291
|
-
this.userRequestForm.controls['FirstName'].setValue(res.FirstName);
|
|
292
|
-
this.userRequestForm.controls['LastName'].setValue(res.LastName);
|
|
293
|
-
this.userRequestForm.controls['MailAddress'].setValue(res.Email);
|
|
294
|
-
this.userRequestForm.controls['Token'].setValue(res.AccessToken);
|
|
295
|
-
this.userRequestForm.controls['SignUpType'].setValue(this.type);
|
|
296
|
-
this.userRequestForm.controls['Password'].clearValidators();
|
|
297
|
-
this.userRequestForm.controls['Password'].updateValueAndValidity();
|
|
298
|
-
this.userRequestForm.controls['ConfirmPassword'].clearValidators();
|
|
299
|
-
this.userRequestForm.controls[
|
|
300
|
-
'ConfirmPassword'
|
|
301
|
-
].updateValueAndValidity();
|
|
302
|
-
this.hidePassword = true;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { VerbenaButtonModule, VerbenaInputModule } from 'verben-ng-ui';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { UserRequestComponent } from './user-request.component';
|
|
6
|
-
import { OAuthModule } from '../o-auth/o-auth.module';
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [UserRequestComponent],
|
|
10
|
-
imports: [
|
|
11
|
-
FormsModule,
|
|
12
|
-
ReactiveFormsModule,
|
|
13
|
-
VerbenaInputModule,
|
|
14
|
-
VerbenaButtonModule,
|
|
15
|
-
CommonModule,
|
|
16
|
-
OAuthModule
|
|
17
|
-
],
|
|
18
|
-
exports: [UserRequestComponent],
|
|
19
|
-
})
|
|
20
|
-
export class UserRequestModule {}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ColumnDefinition } from 'verben-ng-ui';
|
|
2
|
-
import { UserAccessRequest } from '../../models/user-access-request';
|
|
3
|
-
|
|
4
|
-
export const columns: ColumnDefinition<UserAccessRequest>[] = [
|
|
5
|
-
{
|
|
6
|
-
id: 'createdAt',
|
|
7
|
-
header: 'CREATED',
|
|
8
|
-
accessorKey: 'CreatedAt',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
id: 'user',
|
|
12
|
-
header: 'NAME',
|
|
13
|
-
accessorFn: (row) => `${row.FirstName} ${row.LastName}`,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'mail',
|
|
17
|
-
header: 'E-MAIL',
|
|
18
|
-
accessorKey: 'MailAddress',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 'role',
|
|
22
|
-
header: 'ROLE',
|
|
23
|
-
accessorFn: (row) => row.Role?.Name,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'status',
|
|
27
|
-
header: 'STATUS',
|
|
28
|
-
accessorKey: 'RequestStatus',
|
|
29
|
-
},
|
|
30
|
-
{ id: 'actions', header: 'Actions', accessorKey: 'MailAddress' },
|
|
31
|
-
];
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export const baseStyle: any = {
|
|
2
|
-
width: '100%',
|
|
3
|
-
fontFamily: '"Fraunces", serif',
|
|
4
|
-
fontSize: '125%',
|
|
5
|
-
whiteSpace: 'nowrap',
|
|
6
|
-
margin: '0',
|
|
7
|
-
border: '1px solid #D4A007',
|
|
8
|
-
borderRadius: '16px',
|
|
9
|
-
borderCollapse: 'separate',
|
|
10
|
-
borderSpacing: '0',
|
|
11
|
-
// tableLayout: 'fixed',
|
|
12
|
-
overflow: 'hidden',
|
|
13
|
-
rows: {
|
|
14
|
-
even: {
|
|
15
|
-
backgroundColor: '#FDFDFD',
|
|
16
|
-
},
|
|
17
|
-
odd: {
|
|
18
|
-
backgroundColor: '#F1F4FB',
|
|
19
|
-
},
|
|
20
|
-
height: '68px',
|
|
21
|
-
},
|
|
22
|
-
cells: {
|
|
23
|
-
padding: '0.5rem 1rem',
|
|
24
|
-
},
|
|
25
|
-
header: {
|
|
26
|
-
// stickyTop: true,
|
|
27
|
-
// zIndex: 2,
|
|
28
|
-
backgroundColor: '#EFF2FB',
|
|
29
|
-
fontWeight: 'bold',
|
|
30
|
-
textAlign: 'left',
|
|
31
|
-
padding: '12px 16px',
|
|
32
|
-
height: '40px',
|
|
33
|
-
},
|
|
34
|
-
footer: {
|
|
35
|
-
// stickyBottom: true,
|
|
36
|
-
// zIndex: 2,
|
|
37
|
-
padding: '3px',
|
|
38
|
-
},
|
|
39
|
-
// body: {
|
|
40
|
-
// background: '#fff',
|
|
41
|
-
// padding: '4px 5px',
|
|
42
|
-
// textAlign: 'center',
|
|
43
|
-
// },
|
|
44
|
-
// firstColumn: {
|
|
45
|
-
// stickyLeft: true,
|
|
46
|
-
// zIndex: 1,
|
|
47
|
-
// },
|
|
48
|
-
lastColumn: {
|
|
49
|
-
// stickyRight: true,
|
|
50
|
-
// zIndex: 1,
|
|
51
|
-
},
|
|
52
|
-
};
|