verben-authentication-ui 0.3.3 → 0.3.5
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/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 +123 -0
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +19 -0
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +75 -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 +107 -0
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +34 -0
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +240 -0
- package/esm2022/lib/components/sign-in/sign-in.module.mjs +24 -0
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +223 -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 +14 -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 +228 -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/helper.mjs +26 -0
- package/esm2022/lib/components/user-management/useer-management.module.mjs +68 -0
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +57 -0
- package/esm2022/lib/components/user-management/user-management.columns.mjs +43 -0
- package/esm2022/lib/components/user-management/user-management.component.mjs +323 -0
- package/esm2022/lib/components/user-request/user-request.component.mjs +206 -0
- package/esm2022/lib/components/user-request/user-request.module.mjs +34 -0
- package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +24 -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 +128 -0
- package/esm2022/lib/components/user-request-approval/helper.mjs +35 -0
- package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +72 -0
- package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +59 -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 +251 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +77 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.service.mjs +32 -0
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +64 -0
- package/esm2022/lib/models/ErrorResponse.mjs +11 -0
- package/esm2022/lib/models/PasswordRequestParam.mjs +2 -0
- package/esm2022/lib/models/ResponseKeyValue.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/log-in.mjs +2 -0
- package/esm2022/lib/models/mainUser.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/services/environment.service.mjs +26 -0
- package/esm2022/lib/services/http-web-request.service.mjs +82 -0
- package/esm2022/lib/services/util.service.mjs +32 -0
- package/esm2022/public-api.mjs +43 -0
- package/esm2022/verben-authentication-ui.mjs +5 -0
- package/fesm2022/verben-authentication-ui.mjs +3702 -0
- package/fesm2022/verben-authentication-ui.mjs.map +1 -0
- package/index.d.ts +5 -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 +27 -0
- package/lib/components/o-auth/o-auth.module.d.ts +9 -0
- package/lib/components/otp-input/otp-input.component.d.ts +20 -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/sign-in/sign-in.component.d.ts +81 -0
- package/lib/components/sign-in/sign-in.module.d.ts +13 -0
- package/lib/components/sign-up/sign-up.component.d.ts +66 -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/helper.d.ts +2 -0
- package/lib/components/user-management/useer-management.module.d.ts +11 -0
- package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +20 -0
- package/lib/components/user-management/user-management.columns.d.ts +3 -0
- package/lib/components/user-management/user-management.component.d.ts +60 -0
- package/lib/components/user-request/user-request.component.d.ts +60 -0
- package/lib/components/user-request/user-request.module.d.ts +10 -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 +23 -0
- package/lib/components/user-request-approval/helper.d.ts +6 -0
- package/lib/components/user-request-approval/services/user-access-request.service.d.ts +50 -0
- package/lib/components/user-request-approval/states/user-access-request.state.d.ts +21 -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 +59 -0
- package/lib/components/user-request-approval/user-request-approval.module.d.ts +12 -0
- package/lib/components/user-request-approval/user-request-approval.service.d.ts +18 -0
- package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +21 -0
- package/lib/models/ErrorResponse.d.ts +6 -0
- package/lib/models/PasswordRequestParam.d.ts +5 -0
- package/lib/models/ResponseKeyValue.d.ts +5 -0
- package/lib/models/UserRequest.d.ts +24 -0
- package/lib/models/auth-mechanism.d.ts +13 -0
- package/lib/models/base.d.ts +10 -0
- package/lib/models/log-in.d.ts +7 -0
- package/{src/lib/models/mainUser.ts → lib/models/mainUser.d.ts} +2 -3
- package/lib/models/object-state.d.ts +6 -0
- package/{src/lib/models/otpValue.ts → lib/models/otpValue.d.ts} +1 -3
- package/lib/models/paged.d.ts +9 -0
- package/lib/models/query-params.d.ts +7 -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} +3 -4
- package/lib/models/user.d.ts +23 -0
- package/lib/services/environment.service.d.ts +16 -0
- package/lib/services/http-web-request.service.d.ts +23 -0
- package/lib/services/util.service.d.ts +8 -0
- package/package.json +14 -8
- package/{src/public-api.ts → public-api.d.ts} +0 -21
- package/ng-package.json +0 -8
- 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 -29
- package/src/lib/components/forgot-password/forgot-password.component.html +0 -13
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +0 -23
- package/src/lib/components/forgot-password/forgot-password.component.ts +0 -86
- 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 -21
- package/src/lib/components/o-auth/o-auth.component.html +0 -60
- package/src/lib/components/o-auth/o-auth.component.spec.ts +0 -23
- package/src/lib/components/o-auth/o-auth.component.ts +0 -43
- 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 -14
- package/src/lib/components/otp-input/otp-input.component.spec.ts +0 -23
- package/src/lib/components/otp-input/otp-input.component.ts +0 -73
- 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 -22
- 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/sign-in/sign-in.component.css +0 -21
- package/src/lib/components/sign-in/sign-in.component.html +0 -84
- package/src/lib/components/sign-in/sign-in.component.spec.ts +0 -23
- package/src/lib/components/sign-in/sign-in.component.ts +0 -184
- 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 -176
- 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 -15
- 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 -183
- 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/helper.ts +0 -29
- package/src/lib/components/user-management/index.ts +0 -4
- package/src/lib/components/user-management/useer-management.module.ts +0 -48
- package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +0 -61
- 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 -91
- 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 -45
- package/src/lib/components/user-management/user-management.component.css +0 -26
- package/src/lib/components/user-management/user-management.component.html +0 -275
- package/src/lib/components/user-management/user-management.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.component.ts +0 -380
- package/src/lib/components/user-management/user-management.service.ts +0 -42
- package/src/lib/components/user-request/user-request.component.css +0 -91
- package/src/lib/components/user-request/user-request.component.html +0 -165
- package/src/lib/components/user-request/user-request.component.spec.ts +0 -23
- package/src/lib/components/user-request/user-request.component.ts +0 -167
- package/src/lib/components/user-request/user-request.module.ts +0 -18
- package/src/lib/components/user-request-approval/access-request.columns.ts +0 -26
- 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 -152
- package/src/lib/components/user-request-approval/helper.ts +0 -39
- 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 -87
- package/src/lib/components/user-request-approval/states/user-access-request.state.ts +0 -65
- 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 -7
- 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 -1
- package/src/lib/components/user-request-approval/user-request-approval.component.html +0 -218
- 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 -301
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +0 -52
- package/src/lib/components/user-request-approval/user-request-approval.service.spec.ts +0 -16
- package/src/lib/components/user-request-approval/user-request-approval.service.ts +0 -58
- package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +0 -66
- 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 -97
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +0 -23
- package/src/lib/models/ErrorResponse.ts +0 -7
- package/src/lib/models/PasswordRequestParam.ts +0 -5
- package/src/lib/models/ResponseKeyValue.ts +0 -5
- package/src/lib/models/UserRequest.ts +0 -28
- package/src/lib/models/auth-mechanism.ts +0 -14
- package/src/lib/models/base.ts +0 -11
- package/src/lib/models/log-in.ts +0 -7
- 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 -7
- 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.ts +0 -24
- package/src/lib/services/environment.service.spec.ts +0 -16
- package/src/lib/services/environment.service.ts +0 -23
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -101
- package/src/lib/services/util.service.spec.ts +0 -16
- package/src/lib/services/util.service.ts +0 -28
- package/src/styles.css +0 -96
- package/src/theme/tailwind-setup.css +0 -3
- package/src/theme/tailwind.css +0 -980
- 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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
4
|
+
import { UtilService } from '../../services/util.service';
|
|
5
|
+
import { ErrorResponse } from '../../models/ErrorResponse';
|
|
6
|
+
import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
7
|
+
import { OtpData } from '../../models/otpValue';
|
|
8
|
+
import { MainUser } from '../../models/mainUser';
|
|
9
|
+
import { ResendOtpData } from '../../models/resend-otp-data';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class TwoFactorAuthOtpComponent {
|
|
12
|
+
private fb;
|
|
13
|
+
private server;
|
|
14
|
+
private utilService;
|
|
15
|
+
customClass: string;
|
|
16
|
+
headlingClass: string;
|
|
17
|
+
headlingText: string;
|
|
18
|
+
paragraphClass: string;
|
|
19
|
+
resendClass: string;
|
|
20
|
+
width: string;
|
|
21
|
+
maxWidth: string;
|
|
22
|
+
margin: string;
|
|
23
|
+
pd: string;
|
|
24
|
+
bgColor: string;
|
|
25
|
+
boxShadow: string;
|
|
26
|
+
border: string;
|
|
27
|
+
borderRadius: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
height: string;
|
|
30
|
+
length: number;
|
|
31
|
+
otpClass: string;
|
|
32
|
+
resendOtpData: ResendOtpData;
|
|
33
|
+
User: MainUser;
|
|
34
|
+
OtpData: OtpData;
|
|
35
|
+
btnClass: string;
|
|
36
|
+
btnBgColor: string;
|
|
37
|
+
btnColor: string;
|
|
38
|
+
btnBorder: string;
|
|
39
|
+
btnBorderRadius: string;
|
|
40
|
+
btnPd: string;
|
|
41
|
+
btnText: string;
|
|
42
|
+
otpValue: string;
|
|
43
|
+
otpForm: FormGroup;
|
|
44
|
+
buttonClick: EventEmitter<string>;
|
|
45
|
+
otpChange: EventEmitter<string>;
|
|
46
|
+
onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse>;
|
|
47
|
+
resend: EventEmitter<ResponseKeyValue | ErrorResponse>;
|
|
48
|
+
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService);
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
onOtpChange(value: string): void;
|
|
51
|
+
submitData(): Promise<void>;
|
|
52
|
+
resendOtp(): Promise<void>;
|
|
53
|
+
get styles(): {
|
|
54
|
+
'background-color': string;
|
|
55
|
+
'box-shadow': string;
|
|
56
|
+
border: string;
|
|
57
|
+
'border-radius': string;
|
|
58
|
+
color: string;
|
|
59
|
+
width: string;
|
|
60
|
+
'max-width': string;
|
|
61
|
+
margin: string;
|
|
62
|
+
height: string;
|
|
63
|
+
padding: string;
|
|
64
|
+
};
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorAuthOtpComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TwoFactorAuthOtpComponent, "verben-auth-otp", never, { "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "headlingText": { "alias": "headlingText"; "required": false; }; "paragraphClass": { "alias": "paragraphClass"; "required": false; }; "resendClass": { "alias": "resendClass"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "length": { "alias": "length"; "required": false; }; "otpClass": { "alias": "otpClass"; "required": false; }; "resendOtpData": { "alias": "resendOtpData"; "required": false; }; "User": { "alias": "User"; "required": false; }; "OtpData": { "alias": "OtpData"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; }, { "buttonClick": "buttonClick"; "otpChange": "otpChange"; "onSubmitEnd": "onSubmitEnd"; "resend": "resend"; }, never, never, false, never>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./two-factor-auth-otp.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../button/button.module";
|
|
5
|
+
import * as i4 from "../otp-input/otp-input.module";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
export declare class TwoFactorAuthOtpModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorAuthOtpModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TwoFactorAuthOtpModule, [typeof i1.TwoFactorAuthOtpComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.OtpInputModule, typeof i5.RouterLink, typeof i6.ReactiveFormsModule], [typeof i1.TwoFactorAuthOtpComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TwoFactorAuthOtpModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TwoFactorAuthSetupComponent {
|
|
4
|
+
customClass: string;
|
|
5
|
+
headlingClass: string;
|
|
6
|
+
headlingText: string;
|
|
7
|
+
paragraphClass: string;
|
|
8
|
+
buttonClass: string;
|
|
9
|
+
width: string;
|
|
10
|
+
maxWidth: string;
|
|
11
|
+
margin: string;
|
|
12
|
+
pd: string;
|
|
13
|
+
bgColor: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
border: string;
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
height: string;
|
|
19
|
+
smsClick: EventEmitter<any>;
|
|
20
|
+
mailClick: EventEmitter<any>;
|
|
21
|
+
skipClick: EventEmitter<any>;
|
|
22
|
+
continueWithSMS(): void;
|
|
23
|
+
continueWithMail(): void;
|
|
24
|
+
handleSkip(): void;
|
|
25
|
+
get styles(): {
|
|
26
|
+
'background-color': string;
|
|
27
|
+
'box-shadow': string;
|
|
28
|
+
border: string;
|
|
29
|
+
'border-radius': string;
|
|
30
|
+
color: string;
|
|
31
|
+
width: string;
|
|
32
|
+
'max-width': string;
|
|
33
|
+
margin: string;
|
|
34
|
+
height: string;
|
|
35
|
+
padding: string;
|
|
36
|
+
};
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorAuthSetupComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TwoFactorAuthSetupComponent, "verben-two-factor-auth-setup", never, { "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "headlingText": { "alias": "headlingText"; "required": false; }; "paragraphClass": { "alias": "paragraphClass"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "smsClick": "smsClick"; "mailClick": "mailClick"; "skipClick": "skipClick"; }, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./two-factor-auth-setup.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "verben-ng-ui";
|
|
5
|
+
export declare class TwoFactorAuthSetupModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorAuthSetupModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TwoFactorAuthSetupModule, [typeof i1.TwoFactorAuthSetupComponent], [typeof i2.CommonModule, typeof i3.VerbenaButtonModule, typeof i3.SvgModule], [typeof i1.TwoFactorAuthSetupComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TwoFactorAuthSetupModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseStyle: any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./user-management.component";
|
|
3
|
+
import * as i2 from "./user-management-form/use-management-form.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "verben-ng-ui";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class LibUserManagementModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibUserManagementModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibUserManagementModule, [typeof i1.UserManagementComponent, typeof i2.UserManagementFormComponent], [typeof i3.CommonModule, typeof i4.DataTableModule, typeof i4.CardModule, typeof i4.SvgModule, typeof i4.DataViewModule, typeof i4.CardDataViewModule, typeof i4.SortTableModule, typeof i4.VisibleColumnModule, typeof i4.TableFilterModule, typeof i4.DataExportModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i4.VerbenaInputModule, typeof i4.VerbenaButtonModule, typeof i4.VerbenaBadgeModule, typeof i4.DropDownModule], [typeof i1.UserManagementComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LibUserManagementModule>;
|
|
11
|
+
}
|
package/lib/components/user-management/user-management-form/use-management-form.component.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CardData } from 'verben-ng-ui';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserManagementFormComponent {
|
|
6
|
+
private fb;
|
|
7
|
+
set currentData(value: CardData | null);
|
|
8
|
+
switchView: EventEmitter<undefined>;
|
|
9
|
+
form: FormGroup;
|
|
10
|
+
roles: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
constructor(fb: FormBuilder);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onSave(): void;
|
|
17
|
+
onDelete(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserManagementFormComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserManagementFormComponent, "lib-user-request-form", never, { "currentData": { "alias": "currentData"; "required": false; }; }, { "switchView": "switchView"; }, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { UserAccessRequest } from '../../models/user-access-request';
|
|
2
|
+
import { CardData, IDataFilter, DropdownLoadEvent, DropdownChangeEvent, CardDataViewComponent, DataViewComponent } from 'verben-ng-ui';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface TestParentObject {
|
|
5
|
+
Id: string;
|
|
6
|
+
Name: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class UserManagementComponent {
|
|
9
|
+
cardDataView: CardDataViewComponent;
|
|
10
|
+
dataView: DataViewComponent;
|
|
11
|
+
columns: import("verben-ng-ui").ColumnDefinition<UserAccessRequest>[];
|
|
12
|
+
data: UserAccessRequest[];
|
|
13
|
+
styles: any;
|
|
14
|
+
selectedParent?: string;
|
|
15
|
+
basicOption?: string;
|
|
16
|
+
selectedOption: string[];
|
|
17
|
+
selectedOptionTwo: string[];
|
|
18
|
+
selectedOptionThree?: string;
|
|
19
|
+
missingObject: any;
|
|
20
|
+
private generateNewUserAccessRequest;
|
|
21
|
+
addNewUserToMockData(): UserAccessRequest;
|
|
22
|
+
isGridView: boolean;
|
|
23
|
+
currentData: CardData;
|
|
24
|
+
selectedColumnCount: number;
|
|
25
|
+
selectedFilterTableCount: number;
|
|
26
|
+
isOPen: boolean;
|
|
27
|
+
selectedSortCount: number;
|
|
28
|
+
showColumn: boolean;
|
|
29
|
+
showSort: boolean;
|
|
30
|
+
selectedAll: boolean;
|
|
31
|
+
visibleColumns: IDataFilter[];
|
|
32
|
+
filterArray: IDataFilter[];
|
|
33
|
+
sortOptions: IDataFilter[];
|
|
34
|
+
testParents: TestParentObject[];
|
|
35
|
+
cardData: CardData[];
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
getParentLabel(context: any): string;
|
|
38
|
+
loadMoreParents(event: DropdownLoadEvent): Promise<TestParentObject[]>;
|
|
39
|
+
onDropdownChange(event: DropdownChangeEvent): void;
|
|
40
|
+
onSelectionChange(selectedRows: UserAccessRequest[]): void;
|
|
41
|
+
handleExport(exportedData: Partial<any>[]): void;
|
|
42
|
+
private downloadCSV;
|
|
43
|
+
getCardDataByMailAddress(mailAddress: string): CardData | undefined;
|
|
44
|
+
openDetailView(mailAddress: string): void;
|
|
45
|
+
newItem(): void;
|
|
46
|
+
clearData(): void;
|
|
47
|
+
loadMore(): void;
|
|
48
|
+
onColumnChange(event: boolean): void;
|
|
49
|
+
onSortChange(event: boolean): void;
|
|
50
|
+
onColumnsUpdated(updatedColumns: IDataFilter[]): void;
|
|
51
|
+
onSortUpdated(updatedSorts: IDataFilter[]): void;
|
|
52
|
+
onViewChange(isGridView: boolean): void;
|
|
53
|
+
onStateChange(event: {
|
|
54
|
+
key: string;
|
|
55
|
+
value: boolean;
|
|
56
|
+
}): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserManagementComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserManagementComponent, "lib-user-management", never, {}, {}, never, never, false, never>;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormBuilder, FormGroup, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
4
|
+
import { UserRequestPayload } from '../../models/UserRequest';
|
|
5
|
+
import { UtilService } from '../../services/util.service';
|
|
6
|
+
import { EnvironmentService } from '../../services/environment.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class UserRequestComponent {
|
|
9
|
+
private fb;
|
|
10
|
+
private server;
|
|
11
|
+
private utilService;
|
|
12
|
+
private envSvc;
|
|
13
|
+
width: string;
|
|
14
|
+
headingTitle: string;
|
|
15
|
+
headingClass: string;
|
|
16
|
+
customClass: string;
|
|
17
|
+
bgColor: string;
|
|
18
|
+
boxShadow: string;
|
|
19
|
+
border: string;
|
|
20
|
+
borderRadius: string;
|
|
21
|
+
textColor: string;
|
|
22
|
+
height: string;
|
|
23
|
+
pd: string;
|
|
24
|
+
apiKey: string;
|
|
25
|
+
text: string;
|
|
26
|
+
color: string;
|
|
27
|
+
btnBorder: string;
|
|
28
|
+
btnBorderRadius: string;
|
|
29
|
+
btnBgColor: string;
|
|
30
|
+
btnWidth: string;
|
|
31
|
+
btnPd: string;
|
|
32
|
+
termsLink: string;
|
|
33
|
+
privacyLink: string;
|
|
34
|
+
routerLink: string;
|
|
35
|
+
formSubmit: EventEmitter<UserRequestPayload[]>;
|
|
36
|
+
googleClick: EventEmitter<any>;
|
|
37
|
+
onSubmitSuccess: EventEmitter<any>;
|
|
38
|
+
appleClick: EventEmitter<any>;
|
|
39
|
+
onSubmitResponseEnd: EventEmitter<any>;
|
|
40
|
+
userRequestForm: FormGroup;
|
|
41
|
+
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService, envSvc: EnvironmentService);
|
|
42
|
+
passwordMatchValidator(control: AbstractControl): ValidationErrors | null;
|
|
43
|
+
get passwordMismatchError(): boolean;
|
|
44
|
+
get styles(): {
|
|
45
|
+
'background-color': string;
|
|
46
|
+
'box-shadow': string;
|
|
47
|
+
border: string;
|
|
48
|
+
'border-radius': string;
|
|
49
|
+
color: string;
|
|
50
|
+
'max-width': string;
|
|
51
|
+
height: string;
|
|
52
|
+
padding: string;
|
|
53
|
+
};
|
|
54
|
+
checkForm(): boolean;
|
|
55
|
+
handleGoogleAuth(): void;
|
|
56
|
+
handleAppleAuth(): void;
|
|
57
|
+
submitForm(): Promise<void>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRequestComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserRequestComponent, "lib-user-request", never, { "width": { "alias": "width"; "required": false; }; "headingTitle": { "alias": "headingTitle"; "required": false; }; "headingClass": { "alias": "headingClass"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnWidth": { "alias": "btnWidth"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "termsLink": { "alias": "termsLink"; "required": false; }; "privacyLink": { "alias": "privacyLink"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; }, { "formSubmit": "formSubmit"; "googleClick": "googleClick"; "onSubmitSuccess": "onSubmitSuccess"; "appleClick": "appleClick"; "onSubmitResponseEnd": "onSubmitResponseEnd"; }, never, never, false, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./user-request.component";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import * as i3 from "verben-ng-ui";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
export declare class UserRequestModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRequestModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserRequestModule, [typeof i1.UserRequestComponent], [typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.VerbenaInputModule, typeof i3.VerbenaButtonModule, typeof i4.CommonModule], [typeof i1.UserRequestComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserRequestModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseStyle: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { UserAccessRequestState } from '../states/user-access-request.state';
|
|
3
|
+
import { UserAccessRequest } from '../../../models/user-access-request';
|
|
4
|
+
import { QueryParams } from '../../../models/query-params';
|
|
5
|
+
import { UserAccessRequestService } from '../services/user-access-request.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UserAccessRequestFacade {
|
|
8
|
+
private userAccessRequestService;
|
|
9
|
+
private userAccessRequestState;
|
|
10
|
+
constructor(userAccessRequestService: UserAccessRequestService, userAccessRequestState: UserAccessRequestState);
|
|
11
|
+
isUpdating$(): Observable<boolean>;
|
|
12
|
+
getRequests$(): Observable<UserAccessRequest[]>;
|
|
13
|
+
getQueryParams$(): Observable<QueryParams<UserAccessRequest>>;
|
|
14
|
+
loadRequests(): Promise<void>;
|
|
15
|
+
loadRequestsWithParam(param: string): Promise<void>;
|
|
16
|
+
updateQueryParams(params: Partial<QueryParams<UserAccessRequest>>): void;
|
|
17
|
+
addRequest(request: Partial<UserAccessRequest>): Promise<void>;
|
|
18
|
+
updateRequest(request: UserAccessRequest): Promise<void>;
|
|
19
|
+
deleteRequest(requestId: string): Promise<void>;
|
|
20
|
+
approveRequest(request: UserAccessRequest): Promise<void>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserAccessRequestFacade, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserAccessRequestFacade>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpWebRequestService } from '../../../services/http-web-request.service';
|
|
3
|
+
import { UserAccessRequest } from '../../../models/user-access-request';
|
|
4
|
+
import { Paged } from '../../../models/paged';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UserAccessRequestService {
|
|
7
|
+
private httpService;
|
|
8
|
+
private readonly BASE_URL;
|
|
9
|
+
constructor(httpService: HttpWebRequestService);
|
|
10
|
+
/**
|
|
11
|
+
* Get user access requests with pagination and sorting
|
|
12
|
+
* @param skip Number of records to skip
|
|
13
|
+
* @param limit Number of records to take
|
|
14
|
+
* @param sortParam Sort parameter
|
|
15
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
16
|
+
* @returns Promise containing the user access requests
|
|
17
|
+
*/
|
|
18
|
+
getUserAccessRequests(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<UserAccessRequest>>;
|
|
19
|
+
/**
|
|
20
|
+
* Get user access requests with additional parameter, pagination and sorting
|
|
21
|
+
* @param param Search parameter
|
|
22
|
+
* @param skip Number of records to skip
|
|
23
|
+
* @param limit Number of records to take
|
|
24
|
+
* @param sortParam Sort parameter
|
|
25
|
+
* @param sortOrder Sort order ('asc' or 'desc')
|
|
26
|
+
* @returns Promise containing the filtered user access requests
|
|
27
|
+
*/
|
|
28
|
+
getUserAccessRequestWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<UserAccessRequest>>;
|
|
29
|
+
/**
|
|
30
|
+
* Save multiple user access requests
|
|
31
|
+
* @param requests Array of user access requests to save
|
|
32
|
+
* @returns Promise containing the save operation result
|
|
33
|
+
*/
|
|
34
|
+
saveUserAccessRequests(requests: UserAccessRequest[]): Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* Approve or reject multiple user access requests
|
|
37
|
+
* @param requests Array of user access requests to save
|
|
38
|
+
* @param isApproval True for approval, false for decline
|
|
39
|
+
* @returns Promise containing the save operation result
|
|
40
|
+
*/
|
|
41
|
+
processUserAccessRequests(requests: UserAccessRequest[], isApproval: boolean): Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete multiple user access requests
|
|
44
|
+
* @param requestIds Array of request IDs to delete
|
|
45
|
+
* @returns Observable containing the delete operation result
|
|
46
|
+
*/
|
|
47
|
+
deleteUserAccessRequests(requestIds: string[]): Observable<any>;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserAccessRequestService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserAccessRequestService>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { QueryParams } from '../../../models/query-params';
|
|
3
|
+
import { UserAccessRequest } from '../../../models/user-access-request';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserAccessRequestState {
|
|
6
|
+
private updating$;
|
|
7
|
+
private requests$;
|
|
8
|
+
private queryParams$;
|
|
9
|
+
isUpdating$(): Observable<boolean>;
|
|
10
|
+
setUpdating(isUpdating: boolean): void;
|
|
11
|
+
getRequests$(): Observable<UserAccessRequest[]>;
|
|
12
|
+
setRequests(requests: UserAccessRequest[]): void;
|
|
13
|
+
getQueryParams$(): Observable<QueryParams<UserAccessRequest>>;
|
|
14
|
+
getQueryParamsValue(): QueryParams<UserAccessRequest>;
|
|
15
|
+
updateQueryParams(params: Partial<QueryParams<UserAccessRequest>>): void;
|
|
16
|
+
addRequest(request: UserAccessRequest): void;
|
|
17
|
+
updateRequest(updatedRequest: UserAccessRequest): void;
|
|
18
|
+
removeRequest(requestId: string): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserAccessRequestState, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserAccessRequestState>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserAccessRequestStatus } from '../../../models/user-access-request-status';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserAccessRequestStatusBadgeComponent {
|
|
4
|
+
status: UserAccessRequestStatus;
|
|
5
|
+
badgeConfig(): {
|
|
6
|
+
bgColor: string;
|
|
7
|
+
textColor: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserAccessRequestStatusBadgeComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserAccessRequestStatusBadgeComponent, "lib-user-access-request-status-badge", never, { "status": { "alias": "status"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit, Signal, WritableSignal } from '@angular/core';
|
|
2
|
+
import { UserAccessRequest } from '../../models/user-access-request';
|
|
3
|
+
import { CardData, CardDataViewComponent, ColumnDefinition, DataViewComponent, IDataFilter } from 'verben-ng-ui';
|
|
4
|
+
import { UserAccessRequestFacade } from './facades/user-access-request.facade';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UserRequestApprovalComponent implements OnInit {
|
|
7
|
+
private cdr;
|
|
8
|
+
private userAccessRequestFacade;
|
|
9
|
+
cardDataView: CardDataViewComponent;
|
|
10
|
+
dataView: DataViewComponent;
|
|
11
|
+
columns: ColumnDefinition<UserAccessRequest>[];
|
|
12
|
+
visibleColumnDef: ColumnDefinition<UserAccessRequest>[];
|
|
13
|
+
data: WritableSignal<UserAccessRequest[]>;
|
|
14
|
+
styles: any;
|
|
15
|
+
currentData: CardData | null;
|
|
16
|
+
isGridView: boolean;
|
|
17
|
+
selected: CardData | null;
|
|
18
|
+
cardData: Signal<CardData[]>;
|
|
19
|
+
constructor(cdr: ChangeDetectorRef, userAccessRequestFacade: UserAccessRequestFacade);
|
|
20
|
+
ngOnInit(): Promise<void>;
|
|
21
|
+
searchRequests(param: string): Promise<void>;
|
|
22
|
+
onApprove(mailAddress: string): Promise<void>;
|
|
23
|
+
openDetailView(mailAddress: string): void;
|
|
24
|
+
getCardDataByMailAddress(mailAddress: string): CardData | undefined;
|
|
25
|
+
onViewChange(isGridView: boolean): void;
|
|
26
|
+
openFormView(index: number): void;
|
|
27
|
+
handleExport(exportedData: Partial<any>[]): void;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param data Simple csv export for testing
|
|
31
|
+
*/
|
|
32
|
+
private downloadCSV;
|
|
33
|
+
onSelectionChange(selectedRows: UserAccessRequest[]): void;
|
|
34
|
+
/**
|
|
35
|
+
* Copied over from card view doc until I understand usage
|
|
36
|
+
*/
|
|
37
|
+
selectedColumnCount: number;
|
|
38
|
+
selectedFilterTableCount: number;
|
|
39
|
+
isOPen: boolean;
|
|
40
|
+
selectedSortCount: number;
|
|
41
|
+
showColumn: boolean;
|
|
42
|
+
showSort: boolean;
|
|
43
|
+
selectedAll: boolean;
|
|
44
|
+
visibleColumns: IDataFilter[];
|
|
45
|
+
filterArray: IDataFilter[];
|
|
46
|
+
sortOptions: IDataFilter[];
|
|
47
|
+
clearData(): void;
|
|
48
|
+
loadMore(): void;
|
|
49
|
+
onColumnChange(event: boolean): void;
|
|
50
|
+
onSortChange(event: boolean): void;
|
|
51
|
+
onColumnsUpdated(updatedColumns: IDataFilter[]): void;
|
|
52
|
+
onSortUpdated(updatedSorts: IDataFilter[]): void;
|
|
53
|
+
onStateChange(event: {
|
|
54
|
+
key: string;
|
|
55
|
+
value: boolean;
|
|
56
|
+
}): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRequestApprovalComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserRequestApprovalComponent, "lib-user-request-approval", never, {}, {}, never, never, false, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./user-request-approval.component";
|
|
3
|
+
import * as i2 from "./user-request-form/use-request-form.component";
|
|
4
|
+
import * as i3 from "./user-access-request-status-badge/user-access-request-status-badge.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "verben-ng-ui";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
export declare class LibUserRequestApprovalModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibUserRequestApprovalModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibUserRequestApprovalModule, [typeof i1.UserRequestApprovalComponent, typeof i2.UserRequestFormComponent, typeof i3.UserAccessRequestStatusBadgeComponent], [typeof i4.CommonModule, typeof i5.DataTableModule, typeof i5.CardModule, typeof i5.SvgModule, typeof i5.DataViewModule, typeof i5.CardDataViewModule, typeof i5.SortTableModule, typeof i5.VisibleColumnModule, typeof i5.TableFilterModule, typeof i5.DataExportModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i5.VerbenaInputModule, typeof i5.VerbenaButtonModule, typeof i5.VerbenaBadgeModule, typeof i5.DropDownModule], [typeof i1.UserRequestApprovalComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LibUserRequestApprovalModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { UserAccessRequest } from '../../models/user-access-request';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ServiceConfig {
|
|
5
|
+
resourceEndpoint: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SERVICE_CONFIG: InjectionToken<ServiceConfig>;
|
|
8
|
+
export declare class UserRequestApprovalService {
|
|
9
|
+
protected readonly resourceEndpoint: string;
|
|
10
|
+
roles: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
constructor();
|
|
15
|
+
getMockUserRequests(): UserAccessRequest[];
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRequestApprovalService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserRequestApprovalService>;
|
|
18
|
+
}
|
package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CardData } from 'verben-ng-ui';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserRequestFormComponent {
|
|
6
|
+
private fb;
|
|
7
|
+
set currentData(value: CardData | null);
|
|
8
|
+
switchView: EventEmitter<undefined>;
|
|
9
|
+
onApproval: EventEmitter<string>;
|
|
10
|
+
form: FormGroup;
|
|
11
|
+
roles: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
constructor(fb: FormBuilder);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onSave(): void;
|
|
18
|
+
onDelete(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRequestFormComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserRequestFormComponent, "lib-user-request-form", never, { "currentData": { "alias": "currentData"; "required": false; }; }, { "switchView": "switchView"; "onApproval": "onApproval"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ObjectState } from "./object-state";
|
|
2
|
+
import { RequestStatus } from "./request-status";
|
|
3
|
+
import { Status } from "./status";
|
|
4
|
+
export interface UserRequestPayload {
|
|
5
|
+
Code: string;
|
|
6
|
+
FirstName: string;
|
|
7
|
+
LastName: string;
|
|
8
|
+
MailAddress: string;
|
|
9
|
+
Password: string;
|
|
10
|
+
PhoneNumber: string;
|
|
11
|
+
OtherName: string;
|
|
12
|
+
Role: string[];
|
|
13
|
+
Tags: [];
|
|
14
|
+
Status: Status;
|
|
15
|
+
UpdatedAt: Date;
|
|
16
|
+
CreatedAt: Date;
|
|
17
|
+
Id: string;
|
|
18
|
+
DataState: ObjectState;
|
|
19
|
+
TenantId: string;
|
|
20
|
+
ServiceName: string;
|
|
21
|
+
ActionBy: string;
|
|
22
|
+
RequestStatus: RequestStatus;
|
|
23
|
+
Comment: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum MechanismType {
|
|
2
|
+
InApp = "InApp",
|
|
3
|
+
Google = "Google",
|
|
4
|
+
Apple = "Apple",
|
|
5
|
+
MicrosoftAD = "MicrosoftAD"
|
|
6
|
+
}
|
|
7
|
+
export interface AuthMechanism {
|
|
8
|
+
AuthMechanism: string;
|
|
9
|
+
ClientId: string;
|
|
10
|
+
ClientSecret: string;
|
|
11
|
+
RedirectUri: string;
|
|
12
|
+
Scope: string;
|
|
13
|
+
}
|