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
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormBuilder, Validators } 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 { User } from '../../models/user';
|
|
9
|
-
import { ObjectState } from '../../models/object-state';
|
|
10
|
-
import { MainUser } from '../../models/mainUser';
|
|
11
|
-
import { ResendOtpData } from '../../models/resend-otp-data';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'verben-auth-otp',
|
|
15
|
-
templateUrl: './two-factor-auth-otp.component.html',
|
|
16
|
-
styleUrl: './two-factor-auth-otp.component.css'
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
export class TwoFactorAuthOtpComponent {
|
|
20
|
-
@Input() customClass: string = ''
|
|
21
|
-
@Input() headlingClass: string = ''
|
|
22
|
-
@Input() headlingText: string = 'Two Factor Authentication'
|
|
23
|
-
@Input() paragraphClass: string = ''
|
|
24
|
-
@Input() resendClass: string = ''
|
|
25
|
-
@Input() width: string = '';
|
|
26
|
-
@Input() maxWidth: string = '';
|
|
27
|
-
@Input() margin: string = '';
|
|
28
|
-
@Input() pd: string = '';
|
|
29
|
-
@Input() bgColor: string = '#fff';
|
|
30
|
-
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
31
|
-
@Input() border: string = '1px solid #66666680';
|
|
32
|
-
@Input() borderRadius: string = '24px';
|
|
33
|
-
@Input() textColor: string = '#333';
|
|
34
|
-
@Input() height: string = 'auto';
|
|
35
|
-
@Input() length: number = 6;
|
|
36
|
-
@Input() otpClass: string = '';
|
|
37
|
-
@Input() resendOtpData: ResendOtpData = {
|
|
38
|
-
MailAddress: "verbena@gmail.com",
|
|
39
|
-
Password: "Default",
|
|
40
|
-
LoginType: "InApp",
|
|
41
|
-
APIKey: "PDLTC6",
|
|
42
|
-
Secrete: "$White360$",
|
|
43
|
-
RedirectUri: "/auth/otp"
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
@Input() User:MainUser = {
|
|
47
|
-
Code: '024',
|
|
48
|
-
TenantId: '53b1c579bdf3de74f76bdac9',
|
|
49
|
-
Id: '53b1c579bdf3de74f76bdac9',
|
|
50
|
-
ServiceName: 'chinedu',
|
|
51
|
-
MailAddress: 'nwaekwuchinedu@gmail.com',
|
|
52
|
-
PhoneNumber: '070',
|
|
53
|
-
FirstName: 'nwaekwu',
|
|
54
|
-
LastName: 'chinedu',
|
|
55
|
-
OtherName: 'chinedu',
|
|
56
|
-
Role: [],
|
|
57
|
-
Tags: [
|
|
58
|
-
{
|
|
59
|
-
Name: "tester",
|
|
60
|
-
IsOptional: true
|
|
61
|
-
}],
|
|
62
|
-
Password: 'Default',
|
|
63
|
-
Status: 'Active',
|
|
64
|
-
CreatedAt: new Date(),
|
|
65
|
-
UpdatedAt: new Date(),
|
|
66
|
-
DataState: ObjectState.New
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@Input() OtpData:OtpData = {
|
|
70
|
-
User: this.User,
|
|
71
|
-
Token: '',
|
|
72
|
-
ValidateUrl: '',
|
|
73
|
-
Secret: '',
|
|
74
|
-
OTP: '',
|
|
75
|
-
Info: ''
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@Input() btnClass: string = ''
|
|
79
|
-
@Input() btnBgColor: string = '#FFE681'
|
|
80
|
-
@Input() btnColor: string = ''
|
|
81
|
-
@Input() btnBorder: string = ''
|
|
82
|
-
@Input() btnBorderRadius: string = '24px'
|
|
83
|
-
@Input() btnPd: string = '';
|
|
84
|
-
@Input() btnText: string = 'Submit';
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
otpValue: string = '';
|
|
88
|
-
otpForm!: FormGroup;
|
|
89
|
-
|
|
90
|
-
@Output() buttonClick = new EventEmitter<string>();
|
|
91
|
-
@Output() otpChange = new EventEmitter<string>();
|
|
92
|
-
@Output() onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse> = new EventEmitter();
|
|
93
|
-
@Output() resend: EventEmitter<ResponseKeyValue | ErrorResponse> = new EventEmitter();
|
|
94
|
-
|
|
95
|
-
constructor(
|
|
96
|
-
private fb: FormBuilder,
|
|
97
|
-
private server: HttpWebRequestService,
|
|
98
|
-
private utilService: UtilService
|
|
99
|
-
) {}
|
|
100
|
-
|
|
101
|
-
ngOnInit() {
|
|
102
|
-
this.otpForm = this.fb.group({
|
|
103
|
-
otpValue: ['', [Validators.required, Validators.minLength(6)]]
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
onOtpChange(value: string) {
|
|
108
|
-
this.otpValue = value;
|
|
109
|
-
this.otpForm.get('otpValue')?.setValue(value);
|
|
110
|
-
this.otpChange.emit(this.otpValue);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
async submitData() {
|
|
114
|
-
const data:OtpData = {
|
|
115
|
-
User: {
|
|
116
|
-
...this.User
|
|
117
|
-
},
|
|
118
|
-
Token: this.OtpData.Token,
|
|
119
|
-
ValidateUrl: this.OtpData.ValidateUrl,
|
|
120
|
-
Secret: this.OtpData.Secret,
|
|
121
|
-
OTP: this.OtpData.OTP,
|
|
122
|
-
Info: this.OtpData.Info,
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (this.otpForm.valid) {
|
|
127
|
-
// this.buttonClick.emit(this.otpForm.get('otpValue')?.value);
|
|
128
|
-
this.utilService.sendBI(true);
|
|
129
|
-
const res = await this.server.post(
|
|
130
|
-
`Authentication/Validate`,data
|
|
131
|
-
);
|
|
132
|
-
this.utilService.sendBI(false);
|
|
133
|
-
if (res instanceof ErrorResponse) {
|
|
134
|
-
this.onSubmitEnd.emit(res);
|
|
135
|
-
} else {
|
|
136
|
-
var result = res as ResponseKeyValue;
|
|
137
|
-
this.onSubmitEnd.emit(result);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
async resendOtp() {
|
|
144
|
-
const data:ResendOtpData = {
|
|
145
|
-
MailAddress:this.resendOtpData?.MailAddress,
|
|
146
|
-
Password:this.resendOtpData?.Password,
|
|
147
|
-
LoginType:this.resendOtpData?.LoginType,
|
|
148
|
-
APIKey:this.resendOtpData?.APIKey,
|
|
149
|
-
Secrete:this.resendOtpData?.Secrete,
|
|
150
|
-
RedirectUri:this.resendOtpData?.RedirectUri
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
this.utilService.sendBI(true);
|
|
154
|
-
const res = await this.server.post(
|
|
155
|
-
`Authentication/ResendOTP`,data
|
|
156
|
-
);
|
|
157
|
-
this.utilService.sendBI(false);
|
|
158
|
-
if (res instanceof ErrorResponse) {
|
|
159
|
-
this.resend.emit(res);
|
|
160
|
-
} else {
|
|
161
|
-
var result = res as ResponseKeyValue;
|
|
162
|
-
this.resend.emit(result);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
get styles() {
|
|
168
|
-
return {
|
|
169
|
-
'background-color': this.bgColor,
|
|
170
|
-
'box-shadow': this.boxShadow,
|
|
171
|
-
'border': this.border,
|
|
172
|
-
'border-radius': this.borderRadius,
|
|
173
|
-
'color': this.textColor,
|
|
174
|
-
'width': this.width,
|
|
175
|
-
'max-width':this.maxWidth,
|
|
176
|
-
'margin':this.margin,
|
|
177
|
-
'height': this.height,
|
|
178
|
-
'padding':this.pd
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { TwoFactorAuthOtpComponent } from './two-factor-auth-otp.component';
|
|
4
|
-
import { ButtonModule } from '../button/button.module';
|
|
5
|
-
import { OtpInputModule } from '../otp-input/otp-input.module';
|
|
6
|
-
import { RouterLink } from '@angular/router';
|
|
7
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
declarations: [TwoFactorAuthOtpComponent],
|
|
12
|
-
imports: [CommonModule,ButtonModule,OtpInputModule,RouterLink,ReactiveFormsModule],
|
|
13
|
-
exports: [TwoFactorAuthOtpComponent]
|
|
14
|
-
})
|
|
15
|
-
export class TwoFactorAuthOtpModule {}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.setUpBtnWrapper{
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
margin-top: 40px;
|
|
6
|
-
}
|
|
7
|
-
.iconWrapper{
|
|
8
|
-
display: flex;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
align-items:center;
|
|
11
|
-
justify-content:end;
|
|
12
|
-
gap: 12px;
|
|
13
|
-
margin-bottom:50px;
|
|
14
|
-
}
|
|
15
|
-
.custom-button{
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<section
|
|
2
|
-
[ngStyle]="styles"
|
|
3
|
-
class="{{ customClass }}"
|
|
4
|
-
>
|
|
5
|
-
<h3 class="{{headlingClass}}">{{headlingText}}</h3>
|
|
6
|
-
<div class="setUpBtnWrapper">
|
|
7
|
-
<verbena-button
|
|
8
|
-
svg="2fa-mail"
|
|
9
|
-
[svgHeight]="16"
|
|
10
|
-
[svgWidth]="20"
|
|
11
|
-
text="Continue with Mail"
|
|
12
|
-
bgColor="white"
|
|
13
|
-
textColor="#333333"
|
|
14
|
-
border="1px solid #333"
|
|
15
|
-
borderRadius="40px"
|
|
16
|
-
pd="10px 20px"
|
|
17
|
-
width="100%"
|
|
18
|
-
svgPosition="left"
|
|
19
|
-
buttonClass="font-normal text-[24px] leading-[29.05px] text-[#333] mb-2"
|
|
20
|
-
(click)="continueWithMail()"
|
|
21
|
-
></verbena-button>
|
|
22
|
-
<verbena-button
|
|
23
|
-
svg="2fa-sms"
|
|
24
|
-
[svgHeight]="24"
|
|
25
|
-
[svgWidth]="24"
|
|
26
|
-
text="Continue with SMS"
|
|
27
|
-
bgColor="white"
|
|
28
|
-
textColor="#333333"
|
|
29
|
-
border="1px solid #333"
|
|
30
|
-
borderRadius="40px"
|
|
31
|
-
pd="10px 20px"
|
|
32
|
-
width="100%"
|
|
33
|
-
svgPosition="left"
|
|
34
|
-
(click)="continueWithSMS()"
|
|
35
|
-
></verbena-button>
|
|
36
|
-
<!-- <div class="iconWrapper" (click)="handleSkip()">
|
|
37
|
-
<p class="{{paragraphClass}}">Skip for now</p>
|
|
38
|
-
<verben-svg
|
|
39
|
-
icon="skip-forward"
|
|
40
|
-
[height]="24"
|
|
41
|
-
[width]="24"
|
|
42
|
-
/>
|
|
43
|
-
</div> -->
|
|
44
|
-
</div>
|
|
45
|
-
</section>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { TwoFactorAuthSetupComponent } from './two-factor-auth-setup.component';
|
|
4
|
-
|
|
5
|
-
describe('TwoFactorAuthSetupComponent', () => {
|
|
6
|
-
let component: TwoFactorAuthSetupComponent;
|
|
7
|
-
let fixture: ComponentFixture<TwoFactorAuthSetupComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [TwoFactorAuthSetupComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(TwoFactorAuthSetupComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'verben-two-factor-auth-setup',
|
|
5
|
-
templateUrl: './two-factor-auth-setup.component.html',
|
|
6
|
-
styleUrl: './two-factor-auth-setup.component.css'
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
export class TwoFactorAuthSetupComponent {
|
|
10
|
-
@Input() customClass: string = ''
|
|
11
|
-
@Input() headlingClass: string = ''
|
|
12
|
-
@Input() headlingText: string = 'Set Up Two Factor Authentication'
|
|
13
|
-
@Input() paragraphClass: string = ''
|
|
14
|
-
@Input() buttonClass: string = ''
|
|
15
|
-
@Input() width: string = '';
|
|
16
|
-
@Input() maxWidth: string = '';
|
|
17
|
-
@Input() margin: string = '';
|
|
18
|
-
@Input() pd: string = '';
|
|
19
|
-
@Input() bgColor: string = '#fff';
|
|
20
|
-
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
21
|
-
@Input() border: string = '1px solid #66666680';
|
|
22
|
-
@Input() borderRadius: string = '24px';
|
|
23
|
-
@Input() textColor: string = '#333';
|
|
24
|
-
@Input() height: string = '';
|
|
25
|
-
|
|
26
|
-
@Output() smsClick = new EventEmitter();
|
|
27
|
-
@Output() mailClick = new EventEmitter();
|
|
28
|
-
@Output() skipClick = new EventEmitter();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
continueWithSMS(){
|
|
32
|
-
this.smsClick.emit()
|
|
33
|
-
}
|
|
34
|
-
continueWithMail(){
|
|
35
|
-
this.mailClick.emit()
|
|
36
|
-
}
|
|
37
|
-
handleSkip(){
|
|
38
|
-
this.skipClick.emit()
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
get styles() {
|
|
43
|
-
return {
|
|
44
|
-
'background-color': this.bgColor,
|
|
45
|
-
'box-shadow': this.boxShadow,
|
|
46
|
-
'border': this.border,
|
|
47
|
-
'border-radius': this.borderRadius,
|
|
48
|
-
'color': this.textColor,
|
|
49
|
-
'width': this.width,
|
|
50
|
-
'max-width':this.maxWidth,
|
|
51
|
-
'margin':this.margin,
|
|
52
|
-
'height': this.height,
|
|
53
|
-
'padding':this.pd
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { TwoFactorAuthSetupComponent } from './two-factor-auth-setup.component';
|
|
4
|
-
import { SvgModule, VerbenaButtonModule } from 'verben-ng-ui';
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
declarations: [TwoFactorAuthSetupComponent],
|
|
8
|
-
imports: [CommonModule,VerbenaButtonModule,SvgModule],
|
|
9
|
-
exports: [TwoFactorAuthSetupComponent]
|
|
10
|
-
})
|
|
11
|
-
export class TwoFactorAuthSetupModule {}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export const baseStyle: any = {
|
|
2
|
-
width:"100%",
|
|
3
|
-
fontFamily: '"Fraunces", serif',
|
|
4
|
-
fontSize: '80%',
|
|
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
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ObjectState } from '../../models/object-state';
|
|
2
|
-
import { UserAccessRequest } from '../../models/user-access-request';
|
|
3
|
-
import { UserAccessRequestStatus } from '../../models/user-access-request-status';
|
|
4
|
-
|
|
5
|
-
export const mockData: UserAccessRequest[] = new Array(10)
|
|
6
|
-
.fill(1)
|
|
7
|
-
.map((id, i) => ({
|
|
8
|
-
FirstName: `First ${id + i}`,
|
|
9
|
-
LastName: `Last ${id + i}`,
|
|
10
|
-
OtherName: `Other ${id + i}`,
|
|
11
|
-
Id: id + i,
|
|
12
|
-
id: (id + i).toString(),
|
|
13
|
-
MailAddress: `user${id + i}@mail.com`,
|
|
14
|
-
PhoneNumber: `+23480000000${id + i}`,
|
|
15
|
-
RequestStatus: UserAccessRequestStatus.Pending,
|
|
16
|
-
Address: `AAA Block`,
|
|
17
|
-
|
|
18
|
-
Password: '1234567',
|
|
19
|
-
ExpireOn: new Date(),
|
|
20
|
-
IsSeeded: false,
|
|
21
|
-
OTPExpireOn: new Date(),
|
|
22
|
-
Tenants: [],
|
|
23
|
-
Role: ['Manager'],
|
|
24
|
-
|
|
25
|
-
CreatedAt: new Date(),
|
|
26
|
-
UpdatedAt: new Date(),
|
|
27
|
-
DataState: ObjectState.New,
|
|
28
|
-
Tenant: `Tenant${id + i}`,
|
|
29
|
-
}));
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { UserManagementComponent } from './user-management.component';
|
|
5
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
CardDataViewModule,
|
|
9
|
-
CardModule,
|
|
10
|
-
DataExportModule,
|
|
11
|
-
DataTableModule,
|
|
12
|
-
DataViewModule,
|
|
13
|
-
SortTableModule,
|
|
14
|
-
SvgModule,
|
|
15
|
-
TableFilterModule,
|
|
16
|
-
VerbenaButtonModule,
|
|
17
|
-
VerbenaInputModule,
|
|
18
|
-
VisibleColumnModule,
|
|
19
|
-
DropDownModule,
|
|
20
|
-
|
|
21
|
-
VerbenaBadgeModule
|
|
22
|
-
} from 'verben-ng-ui';
|
|
23
|
-
import { UserManagementFormComponent } from './user-management-form/use-management-form.component';
|
|
24
|
-
|
|
25
|
-
@NgModule({
|
|
26
|
-
declarations: [UserManagementComponent, UserManagementFormComponent],
|
|
27
|
-
imports: [
|
|
28
|
-
CommonModule,
|
|
29
|
-
|
|
30
|
-
DataTableModule,
|
|
31
|
-
CardModule,
|
|
32
|
-
SvgModule,
|
|
33
|
-
DataViewModule,
|
|
34
|
-
CardDataViewModule,
|
|
35
|
-
SortTableModule,
|
|
36
|
-
VisibleColumnModule,
|
|
37
|
-
TableFilterModule,
|
|
38
|
-
DataExportModule,
|
|
39
|
-
FormsModule,
|
|
40
|
-
ReactiveFormsModule,
|
|
41
|
-
VerbenaInputModule,
|
|
42
|
-
VerbenaButtonModule,
|
|
43
|
-
VerbenaBadgeModule,
|
|
44
|
-
DropDownModule
|
|
45
|
-
],
|
|
46
|
-
exports: [UserManagementComponent],
|
|
47
|
-
})
|
|
48
|
-
export class LibUserManagementModule {}
|
package/src/lib/components/user-management/user-management-form/use-management-form.component.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CardData } from 'verben-ng-ui';
|
|
4
|
-
// import { roles } from '../helper';
|
|
5
|
-
|
|
6
|
-
interface UserFormData {
|
|
7
|
-
MailAddress: string;
|
|
8
|
-
Name: string;
|
|
9
|
-
PhoneNumber: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: 'lib-user-request-form',
|
|
14
|
-
templateUrl: './user-management-form.component.html',
|
|
15
|
-
styleUrl: './user-management-form.component.css',
|
|
16
|
-
})
|
|
17
|
-
export class UserManagementFormComponent {
|
|
18
|
-
@Input() set currentData(value: CardData | null) {
|
|
19
|
-
if (value?.data) {
|
|
20
|
-
this.form.patchValue({
|
|
21
|
-
MailAddress: value.data.MailAddress || '',
|
|
22
|
-
Name: value.data.Name || '',
|
|
23
|
-
PhoneNumber: value.data.PhoneNumber || '',
|
|
24
|
-
});
|
|
25
|
-
} else {
|
|
26
|
-
this.form.reset();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
@Output() switchView = new EventEmitter<undefined>();
|
|
30
|
-
|
|
31
|
-
form: FormGroup;
|
|
32
|
-
|
|
33
|
-
roles: { id: string; name: string }[] = [
|
|
34
|
-
{ id: 'admin', name: 'Admin' },
|
|
35
|
-
{ id: 'manager', name: 'Manager' },
|
|
36
|
-
{ id: 'staff', name: 'Staff' },
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
constructor(private fb: FormBuilder) {
|
|
40
|
-
this.form = this.fb.group({
|
|
41
|
-
MailAddress: ['', { readonly: true }],
|
|
42
|
-
Name: ['', { readonly: true }],
|
|
43
|
-
PhoneNumber: ['', { readonly: true }],
|
|
44
|
-
RoleId: [''],
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ngOnInit(): void {}
|
|
49
|
-
|
|
50
|
-
onSave(): void {
|
|
51
|
-
if (this.form.valid) {
|
|
52
|
-
// Emit save event with form value
|
|
53
|
-
console.log('Form saved:', this.form.value);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
onDelete(): void {
|
|
58
|
-
// Emit delete event
|
|
59
|
-
console.log('Delete requested');
|
|
60
|
-
}
|
|
61
|
-
}
|
package/src/lib/components/user-management/user-management-form/user-management-form.component.css
DELETED
|
File without changes
|
package/src/lib/components/user-management/user-management-form/user-management-form.component.html
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
<form
|
|
2
|
-
[formGroup]="form"
|
|
3
|
-
class="flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4"
|
|
4
|
-
>
|
|
5
|
-
<verbena-input
|
|
6
|
-
name="MailAddress"
|
|
7
|
-
label="Mail Address:"
|
|
8
|
-
[type]="'email'"
|
|
9
|
-
formControlName="MailAddress"
|
|
10
|
-
/>
|
|
11
|
-
<verbena-input label="Name:" name="Name" type="text" formControlName="Name" />
|
|
12
|
-
<verbena-input
|
|
13
|
-
label="Phone Number:"
|
|
14
|
-
name="PhoneNumber"
|
|
15
|
-
type="tel"
|
|
16
|
-
formControlName="PhoneNumber"
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<div class="space-y-1">
|
|
20
|
-
<label for="role">Role</label>
|
|
21
|
-
|
|
22
|
-
<verben-drop-down
|
|
23
|
-
label="Role"
|
|
24
|
-
styleClass="w-full"
|
|
25
|
-
width="100%"
|
|
26
|
-
[multiselect]="false"
|
|
27
|
-
[filter]="true"
|
|
28
|
-
[showClear]="true"
|
|
29
|
-
placeholder=""
|
|
30
|
-
[(options)]="roles"
|
|
31
|
-
id="role"
|
|
32
|
-
optionLabel="name"
|
|
33
|
-
optionValue="id"
|
|
34
|
-
formControlName="RoleId"
|
|
35
|
-
class="form-control"
|
|
36
|
-
>
|
|
37
|
-
</verben-drop-down>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<!-- buttons -->
|
|
41
|
-
<div
|
|
42
|
-
class="flex justify-between bottom-8 left-0 right-0 px-3 pb-2 absolute"
|
|
43
|
-
style="
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
position: absolute;
|
|
47
|
-
padding: 8px 12px;
|
|
48
|
-
right: 0;
|
|
49
|
-
left: 0;
|
|
50
|
-
bottom: 32;
|
|
51
|
-
"
|
|
52
|
-
>
|
|
53
|
-
<!-- <verbena-button
|
|
54
|
-
text="Delete"
|
|
55
|
-
class="bg-secondary-200 text-[black]"
|
|
56
|
-
(click)="onDelete()"
|
|
57
|
-
/>
|
|
58
|
-
<verbena-button
|
|
59
|
-
text="Save"
|
|
60
|
-
class="bg-primary text-[black]"
|
|
61
|
-
(click)="onSave()"
|
|
62
|
-
/>
|
|
63
|
-
|
|
64
|
-
<verbena-button
|
|
65
|
-
text="Secondary Button"
|
|
66
|
-
styleType="secondary"
|
|
67
|
-
></verbena-button> -->
|
|
68
|
-
<verbena-button
|
|
69
|
-
width="114px"
|
|
70
|
-
height="39px"
|
|
71
|
-
text="Reject"
|
|
72
|
-
styleType="danger"
|
|
73
|
-
borderRadius="10px"
|
|
74
|
-
></verbena-button>
|
|
75
|
-
<verbena-button
|
|
76
|
-
(click)="switchView.emit()"
|
|
77
|
-
text="Switch To Table"
|
|
78
|
-
styleType="ylw-outline"
|
|
79
|
-
></verbena-button>
|
|
80
|
-
<verbena-button
|
|
81
|
-
text="Approve"
|
|
82
|
-
bgColor="#28a745"
|
|
83
|
-
textColor="white"
|
|
84
|
-
border="1px solid #28a745"
|
|
85
|
-
borderRadius="10px"
|
|
86
|
-
pd="10px 20px"
|
|
87
|
-
width="114px"
|
|
88
|
-
height="39px"
|
|
89
|
-
></verbena-button>
|
|
90
|
-
</div>
|
|
91
|
-
</form>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { UserManagementFormComponent } from './use-management-form.component';
|
|
4
|
-
|
|
5
|
-
describe('UserManagementFormComponent', () => {
|
|
6
|
-
let component: UserManagementFormComponent;
|
|
7
|
-
let fixture: ComponentFixture<UserManagementFormComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [UserManagementFormComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(UserManagementFormComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|