verben-authentication-ui 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ng-package.json +8 -0
- package/package.json +8 -14
- package/src/lib/components/button/button.component.css +3 -0
- package/src/lib/components/button/button.component.html +13 -0
- package/src/lib/components/button/button.component.spec.ts +23 -0
- package/src/lib/components/button/button.component.ts +24 -0
- package/src/lib/components/button/button.module.ts +11 -0
- package/{lib/components/forgot-password/ForgotPasswordData.d.ts → src/lib/components/forgot-password/ForgotPasswordData.ts} +1 -1
- package/src/lib/components/forgot-password/forgot-password.component.css +29 -0
- package/src/lib/components/forgot-password/forgot-password.component.html +13 -0
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +23 -0
- package/src/lib/components/forgot-password/forgot-password.component.ts +86 -0
- package/src/lib/components/forgot-password/forgot-password.module.ts +18 -0
- package/src/lib/components/mail/mail.component.css +0 -0
- package/src/lib/components/mail/mail.component.html +11 -0
- package/src/lib/components/mail/mail.component.spec.ts +23 -0
- package/src/lib/components/mail/mail.component.ts +47 -0
- package/src/lib/components/mail/mail.module.ts +13 -0
- package/src/lib/components/mail-validation/mail-validation.component.css +59 -0
- package/src/lib/components/mail-validation/mail-validation.component.html +37 -0
- package/src/lib/components/mail-validation/mail-validation.component.spec.ts +23 -0
- package/src/lib/components/mail-validation/mail-validation.component.ts +66 -0
- package/src/lib/components/mail-validation/mail-validation.module.ts +18 -0
- package/src/lib/components/o-auth/o-auth.component.css +21 -0
- package/src/lib/components/o-auth/o-auth.component.html +60 -0
- package/src/lib/components/o-auth/o-auth.component.spec.ts +23 -0
- package/src/lib/components/o-auth/o-auth.component.ts +43 -0
- package/src/lib/components/o-auth/o-auth.module.ts +11 -0
- package/src/lib/components/otp-input/otp-input.component.css +19 -0
- package/src/lib/components/otp-input/otp-input.component.html +14 -0
- package/src/lib/components/otp-input/otp-input.component.spec.ts +23 -0
- package/src/lib/components/otp-input/otp-input.component.ts +73 -0
- package/src/lib/components/otp-input/otp-input.module.ts +15 -0
- package/src/lib/components/reset-password/ResetPasswordData.ts +5 -0
- package/src/lib/components/reset-password/reset-password.component.css +29 -0
- package/src/lib/components/reset-password/reset-password.component.html +22 -0
- package/src/lib/components/reset-password/reset-password.component.spec.ts +23 -0
- package/src/lib/components/reset-password/reset-password.component.ts +108 -0
- package/src/lib/components/reset-password/reset-password.module.ts +18 -0
- package/src/lib/components/sign-in/sign-in.component.css +21 -0
- package/src/lib/components/sign-in/sign-in.component.html +84 -0
- package/src/lib/components/sign-in/sign-in.component.spec.ts +23 -0
- package/src/lib/components/sign-in/sign-in.component.ts +184 -0
- package/src/lib/components/sign-in/sign-in.module.ts +17 -0
- package/src/lib/components/sign-up/sign-up.component.css +36 -0
- package/src/lib/components/sign-up/sign-up.component.html +132 -0
- package/src/lib/components/sign-up/sign-up.component.spec.ts +23 -0
- package/src/lib/components/sign-up/sign-up.component.ts +176 -0
- package/src/lib/components/sign-up/sign-up.module.ts +15 -0
- package/src/lib/components/sso/base-table-style.ts +52 -0
- package/src/lib/components/sso/helper.ts +15 -0
- package/src/lib/components/sso/sso-form/sso-form.component.css +13 -0
- package/src/lib/components/sso/sso-form/sso-form.component.html +109 -0
- package/src/lib/components/sso/sso-form/sso-form.component.spec.ts +23 -0
- package/src/lib/components/sso/sso-form/sso-form.component.ts +70 -0
- package/src/lib/components/sso/sso.columns.ts +32 -0
- package/src/lib/components/sso/sso.component.css +47 -0
- package/src/lib/components/sso/sso.component.html +208 -0
- package/src/lib/components/sso/sso.component.spec.ts +23 -0
- package/src/lib/components/sso/sso.component.ts +261 -0
- package/src/lib/components/sso/sso.module.ts +40 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.css +8 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.html +30 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.spec.ts +23 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.ts +183 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.ts +15 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.css +17 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.html +45 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.spec.ts +23 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.ts +57 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.ts +11 -0
- package/src/lib/components/user-management/base-table-style.ts +52 -0
- package/src/lib/components/user-management/helper.ts +29 -0
- package/src/lib/components/user-management/index.ts +4 -0
- package/src/lib/components/user-management/useer-management.module.ts +48 -0
- package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +61 -0
- 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 +91 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.spec.ts +23 -0
- package/src/lib/components/user-management/user-management.columns.ts +45 -0
- package/src/lib/components/user-management/user-management.component.css +26 -0
- package/src/lib/components/user-management/user-management.component.html +275 -0
- package/src/lib/components/user-management/user-management.component.spec.ts +23 -0
- package/src/lib/components/user-management/user-management.component.ts +380 -0
- package/src/lib/components/user-management/user-management.service.ts +42 -0
- package/src/lib/components/user-request/user-request.component.css +91 -0
- package/src/lib/components/user-request/user-request.component.html +165 -0
- package/src/lib/components/user-request/user-request.component.spec.ts +23 -0
- package/src/lib/components/user-request/user-request.component.ts +167 -0
- package/src/lib/components/user-request/user-request.module.ts +18 -0
- package/src/lib/components/user-request-approval/access-request.columns.ts +26 -0
- package/src/lib/components/user-request-approval/base-table-style.ts +52 -0
- package/src/lib/components/user-request-approval/facades/user-access-request.facade.ts +152 -0
- package/src/lib/components/user-request-approval/helper.ts +39 -0
- package/src/lib/components/user-request-approval/services/user-access-request.service.spec.ts +16 -0
- package/src/lib/components/user-request-approval/services/user-access-request.service.ts +87 -0
- package/src/lib/components/user-request-approval/states/user-access-request.state.ts +65 -0
- 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 +7 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.spec.ts +23 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.ts +22 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.css +1 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.html +218 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.spec.ts +23 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.ts +301 -0
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +52 -0
- package/src/lib/components/user-request-approval/user-request-approval.service.spec.ts +16 -0
- package/src/lib/components/user-request-approval/user-request-approval.service.ts +58 -0
- package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +66 -0
- 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 +97 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +23 -0
- package/src/lib/models/ErrorResponse.ts +7 -0
- package/src/lib/models/PasswordRequestParam.ts +5 -0
- package/src/lib/models/ResponseKeyValue.ts +5 -0
- package/src/lib/models/UserRequest.ts +28 -0
- package/src/lib/models/auth-mechanism.ts +14 -0
- package/src/lib/models/base.ts +11 -0
- package/src/lib/models/log-in.ts +7 -0
- package/{lib/models/mainUser.d.ts → src/lib/models/mainUser.ts} +3 -2
- package/src/lib/models/object-state.ts +6 -0
- package/{lib/models/otpValue.d.ts → src/lib/models/otpValue.ts} +3 -1
- package/src/lib/models/paged.ts +9 -0
- package/src/lib/models/query-params.ts +7 -0
- package/src/lib/models/request-status.ts +4 -0
- package/src/lib/models/resend-otp-data.ts +8 -0
- package/src/lib/models/resource.ts +27 -0
- package/src/lib/models/sign-up.ts +11 -0
- package/src/lib/models/single-sign-on.ts +9 -0
- package/src/lib/models/status.ts +5 -0
- package/src/lib/models/user-access-request-status.ts +5 -0
- package/{lib/models/user-access-request.d.ts → src/lib/models/user-access-request.ts} +4 -3
- package/src/lib/models/user.ts +24 -0
- package/src/lib/services/environment.service.spec.ts +16 -0
- package/src/lib/services/environment.service.ts +23 -0
- package/src/lib/services/http-web-request.service.spec.ts +16 -0
- package/src/lib/services/http-web-request.service.ts +101 -0
- package/src/lib/services/util.service.spec.ts +16 -0
- package/src/lib/services/util.service.ts +28 -0
- package/{public-api.d.ts → src/public-api.ts} +21 -0
- package/src/styles.css +96 -0
- package/src/theme/tailwind-setup.css +3 -0
- package/src/theme/tailwind.css +980 -0
- package/tailwind.config.js +20 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/lib/components/button/button.component.mjs +0 -46
- package/esm2022/lib/components/button/button.module.mjs +0 -20
- package/esm2022/lib/components/forgot-password/ForgotPasswordData.mjs +0 -2
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +0 -86
- package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +0 -34
- package/esm2022/lib/components/mail/mail.component.mjs +0 -69
- package/esm2022/lib/components/mail/mail.module.mjs +0 -21
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +0 -108
- package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +0 -34
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +0 -25
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +0 -19
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +0 -75
- package/esm2022/lib/components/otp-input/otp-input.module.mjs +0 -23
- package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +0 -2
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +0 -107
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +0 -34
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +0 -214
- package/esm2022/lib/components/sign-in/sign-in.module.mjs +0 -24
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +0 -223
- package/esm2022/lib/components/sign-up/sign-up.module.mjs +0 -24
- package/esm2022/lib/components/sso/base-table-style.mjs +0 -53
- package/esm2022/lib/components/sso/helper.mjs +0 -14
- package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +0 -74
- package/esm2022/lib/components/sso/sso.columns.mjs +0 -29
- package/esm2022/lib/components/sso/sso.component.mjs +0 -236
- package/esm2022/lib/components/sso/sso.module.mjs +0 -63
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +0 -201
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +0 -22
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +0 -90
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +0 -19
- package/esm2022/lib/components/user-management/base-table-style.mjs +0 -53
- package/esm2022/lib/components/user-management/helper.mjs +0 -26
- package/esm2022/lib/components/user-management/useer-management.module.mjs +0 -68
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +0 -57
- package/esm2022/lib/components/user-management/user-management.columns.mjs +0 -43
- package/esm2022/lib/components/user-management/user-management.component.mjs +0 -323
- package/esm2022/lib/components/user-request/user-request.component.mjs +0 -206
- package/esm2022/lib/components/user-request/user-request.module.mjs +0 -34
- package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +0 -24
- package/esm2022/lib/components/user-request-approval/base-table-style.mjs +0 -53
- package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +0 -128
- package/esm2022/lib/components/user-request-approval/helper.mjs +0 -35
- package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +0 -72
- package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +0 -59
- package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +0 -26
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +0 -251
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +0 -77
- package/esm2022/lib/components/user-request-approval/user-request-approval.service.mjs +0 -32
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +0 -64
- package/esm2022/lib/models/ErrorResponse.mjs +0 -11
- package/esm2022/lib/models/PasswordRequestParam.mjs +0 -2
- package/esm2022/lib/models/ResponseKeyValue.mjs +0 -2
- package/esm2022/lib/models/UserRequest.mjs +0 -2
- package/esm2022/lib/models/base.mjs +0 -2
- package/esm2022/lib/models/log-in.mjs +0 -2
- package/esm2022/lib/models/mainUser.mjs +0 -2
- package/esm2022/lib/models/object-state.mjs +0 -8
- package/esm2022/lib/models/otpValue.mjs +0 -2
- package/esm2022/lib/models/paged.mjs +0 -2
- package/esm2022/lib/models/query-params.mjs +0 -2
- package/esm2022/lib/models/request-status.mjs +0 -5
- package/esm2022/lib/models/sign-up.mjs +0 -2
- package/esm2022/lib/models/single-sign-on.mjs +0 -2
- package/esm2022/lib/models/status.mjs +0 -6
- package/esm2022/lib/models/user-access-request-status.mjs +0 -7
- package/esm2022/lib/models/user-access-request.mjs +0 -2
- package/esm2022/lib/models/user.mjs +0 -2
- package/esm2022/lib/services/environment.service.mjs +0 -26
- package/esm2022/lib/services/http-web-request.service.mjs +0 -83
- package/esm2022/lib/services/util.service.mjs +0 -32
- package/esm2022/public-api.mjs +0 -43
- package/esm2022/verben-authentication-ui.mjs +0 -5
- package/fesm2022/verben-authentication-ui.mjs +0 -3545
- package/fesm2022/verben-authentication-ui.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/button/button.component.d.ts +0 -17
- package/lib/components/button/button.module.d.ts +0 -10
- package/lib/components/forgot-password/forgot-password.component.d.ts +0 -28
- package/lib/components/forgot-password/forgot-password.module.d.ts +0 -10
- package/lib/components/mail/mail.component.d.ts +0 -32
- package/lib/components/mail/mail.module.d.ts +0 -11
- package/lib/components/mail-validation/mail-validation.component.d.ts +0 -42
- package/lib/components/mail-validation/mail-validation.module.d.ts +0 -10
- package/lib/components/o-auth/o-auth.component.d.ts +0 -10
- package/lib/components/o-auth/o-auth.module.d.ts +0 -9
- package/lib/components/otp-input/otp-input.component.d.ts +0 -20
- package/lib/components/otp-input/otp-input.module.d.ts +0 -13
- package/lib/components/reset-password/ResetPasswordData.d.ts +0 -5
- package/lib/components/reset-password/reset-password.component.d.ts +0 -30
- package/lib/components/reset-password/reset-password.module.d.ts +0 -10
- package/lib/components/sign-in/sign-in.component.d.ts +0 -77
- package/lib/components/sign-in/sign-in.module.d.ts +0 -13
- package/lib/components/sign-up/sign-up.component.d.ts +0 -66
- package/lib/components/sign-up/sign-up.module.d.ts +0 -13
- package/lib/components/sso/base-table-style.d.ts +0 -1
- package/lib/components/sso/helper.d.ts +0 -2
- package/lib/components/sso/sso-form/sso-form.component.d.ts +0 -21
- package/lib/components/sso/sso.columns.d.ts +0 -3
- package/lib/components/sso/sso.component.d.ts +0 -54
- package/lib/components/sso/sso.module.d.ts +0 -11
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +0 -65
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.d.ts +0 -12
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.d.ts +0 -39
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.d.ts +0 -9
- package/lib/components/user-management/base-table-style.d.ts +0 -1
- package/lib/components/user-management/helper.d.ts +0 -2
- package/lib/components/user-management/useer-management.module.d.ts +0 -11
- package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +0 -20
- package/lib/components/user-management/user-management.columns.d.ts +0 -3
- package/lib/components/user-management/user-management.component.d.ts +0 -60
- package/lib/components/user-request/user-request.component.d.ts +0 -60
- package/lib/components/user-request/user-request.module.d.ts +0 -10
- package/lib/components/user-request-approval/access-request.columns.d.ts +0 -3
- package/lib/components/user-request-approval/base-table-style.d.ts +0 -1
- package/lib/components/user-request-approval/facades/user-access-request.facade.d.ts +0 -23
- package/lib/components/user-request-approval/helper.d.ts +0 -6
- package/lib/components/user-request-approval/services/user-access-request.service.d.ts +0 -50
- package/lib/components/user-request-approval/states/user-access-request.state.d.ts +0 -21
- package/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.d.ts +0 -12
- package/lib/components/user-request-approval/user-request-approval.component.d.ts +0 -59
- package/lib/components/user-request-approval/user-request-approval.module.d.ts +0 -12
- package/lib/components/user-request-approval/user-request-approval.service.d.ts +0 -18
- package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +0 -21
- package/lib/models/ErrorResponse.d.ts +0 -6
- package/lib/models/PasswordRequestParam.d.ts +0 -5
- package/lib/models/ResponseKeyValue.d.ts +0 -5
- package/lib/models/UserRequest.d.ts +0 -24
- package/lib/models/base.d.ts +0 -10
- package/lib/models/log-in.d.ts +0 -7
- package/lib/models/object-state.d.ts +0 -6
- package/lib/models/paged.d.ts +0 -9
- package/lib/models/query-params.d.ts +0 -7
- package/lib/models/request-status.d.ts +0 -3
- package/lib/models/sign-up.d.ts +0 -9
- package/lib/models/single-sign-on.d.ts +0 -7
- package/lib/models/status.d.ts +0 -4
- package/lib/models/user-access-request-status.d.ts +0 -5
- package/lib/models/user.d.ts +0 -23
- package/lib/services/environment.service.d.ts +0 -16
- package/lib/services/http-web-request.service.d.ts +0 -23
- package/lib/services/util.service.d.ts +0 -8
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verben-authentication-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build-watch": "ng build --watch"
|
|
6
|
+
},
|
|
4
7
|
"peerDependencies": {
|
|
5
8
|
"@angular/common": "^14.0.0 || ^18.0.0",
|
|
6
9
|
"@angular/core": "^14.0.0 || ^18.0.0",
|
|
@@ -10,17 +13,8 @@
|
|
|
10
13
|
"tslib": "^2.3.0"
|
|
11
14
|
},
|
|
12
15
|
"sideEffects": false,
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"./package.json": {
|
|
17
|
-
"default": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
".": {
|
|
20
|
-
"types": "./index.d.ts",
|
|
21
|
-
"esm2022": "./esm2022/verben-authentication-ui.mjs",
|
|
22
|
-
"esm": "./esm2022/verben-authentication-ui.mjs",
|
|
23
|
-
"default": "./fesm2022/verben-authentication-ui.mjs"
|
|
24
|
-
}
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"autoprefixer": "^10.4.20",
|
|
18
|
+
"verben-ng-ui": "^0.2.1"
|
|
25
19
|
}
|
|
26
|
-
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<verbena-button
|
|
2
|
+
[text]="text"
|
|
3
|
+
[bgColor]="bgColor"
|
|
4
|
+
[textColor]="color"
|
|
5
|
+
[border]="border"
|
|
6
|
+
[borderRadius]="borderRadius"
|
|
7
|
+
[pd]="pd"
|
|
8
|
+
[width]="width"
|
|
9
|
+
[disable]="disabled"
|
|
10
|
+
[ngStyle]="{'cursor': disabled ? 'not-allowed' : 'pointer' }"
|
|
11
|
+
buttonClass="font-medium text-[22px] leading-[33px] {{buttonClass}}"
|
|
12
|
+
(click)="handleClick()"
|
|
13
|
+
></verbena-button>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ButtonComponent } from './button.component';
|
|
4
|
+
|
|
5
|
+
describe('ButtonComponent', () => {
|
|
6
|
+
let component: ButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<ButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ButtonComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ButtonComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-button',
|
|
5
|
+
templateUrl: './button.component.html',
|
|
6
|
+
styleUrl: './button.component.css'
|
|
7
|
+
})
|
|
8
|
+
export class ButtonComponent {
|
|
9
|
+
@Input() text: string = '';
|
|
10
|
+
@Input() color: string = 'black';
|
|
11
|
+
@Input() border: string = '1px solid #FFE681';
|
|
12
|
+
@Input() borderRadius:string = "40px"
|
|
13
|
+
@Input() bgColor: string = '#FFE681';
|
|
14
|
+
@Input() width: string = '100%';
|
|
15
|
+
@Input() pd: string = '10px 20px';
|
|
16
|
+
@Input() buttonClass: string = '';
|
|
17
|
+
@Input() disabled: boolean = false;
|
|
18
|
+
|
|
19
|
+
@Output() buttonClick = new EventEmitter<void>();
|
|
20
|
+
|
|
21
|
+
handleClick(){
|
|
22
|
+
this.buttonClick.emit();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { VerbenaButtonModule } from 'verben-ng-ui';
|
|
4
|
+
import { ButtonComponent } from './button.component';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [ButtonComponent],
|
|
8
|
+
imports: [CommonModule,VerbenaButtonModule,FormsModule],
|
|
9
|
+
exports: [ButtonComponent]
|
|
10
|
+
})
|
|
11
|
+
export class ButtonModule {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import '../../../styles.css';
|
|
2
|
+
|
|
3
|
+
.reset-password-container {
|
|
4
|
+
gap: 25px;
|
|
5
|
+
padding: 50px;
|
|
6
|
+
border: 1px solid rgba(102, 102, 102, 0.5);
|
|
7
|
+
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
|
8
|
+
border-radius: 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.reset-password-title {
|
|
12
|
+
font-size: 30px;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.reset-password-subtitle {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
color: rgba(102, 102, 102, 1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.form-field {
|
|
23
|
+
gap: 5px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.form-field-caption {
|
|
27
|
+
color: rgba(102, 102, 102, 1);
|
|
28
|
+
/* font-weight: 600; */
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div [formGroup]="this.forgotPasswordForm" class="reset-password-container flex flex-col">
|
|
2
|
+
<div class="reset-password-header flex flex-col">
|
|
3
|
+
<div class="reset-password-title">{{title}}</div>
|
|
4
|
+
<div class="reset-password-subtitle">{{subTitle}}</div>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="form-field flex flex-col">
|
|
7
|
+
<div class="form-field-caption">Email</div>
|
|
8
|
+
<verbena-input bgColor="white" borderRadius="12px" formControlName="Email" type="email"></verbena-input>
|
|
9
|
+
</div>
|
|
10
|
+
<verbena-button fontWeight="700" (click)="submit()" [text]="buttonCaption" width="100%" [textColor]="buttonTextColor"
|
|
11
|
+
[bgColor]="buttonBackgroundColor" borderRadius="25px" [disable]="!this.checkForm()"></verbena-button>
|
|
12
|
+
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ForgotPasswordComponent } from './forgot-password.component';
|
|
4
|
+
|
|
5
|
+
describe('ForgotPasswordComponent', () => {
|
|
6
|
+
let component: ForgotPasswordComponent;
|
|
7
|
+
let fixture: ComponentFixture<ForgotPasswordComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ForgotPasswordComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ForgotPasswordComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
AbstractControl,
|
|
4
|
+
FormBuilder,
|
|
5
|
+
FormControl,
|
|
6
|
+
FormGroup,
|
|
7
|
+
ValidationErrors,
|
|
8
|
+
Validators,
|
|
9
|
+
} from '@angular/forms';
|
|
10
|
+
import { ForgotPasswordData } from './ForgotPasswordData';
|
|
11
|
+
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
12
|
+
import { ErrorResponse } from '../../models/ErrorResponse';
|
|
13
|
+
import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
14
|
+
import { UtilService } from '../../services/util.service';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'verben-forgot-password',
|
|
18
|
+
templateUrl: './forgot-password.component.html',
|
|
19
|
+
styleUrl: './forgot-password.component.css',
|
|
20
|
+
})
|
|
21
|
+
export class ForgotPasswordComponent {
|
|
22
|
+
@Input() title: string = 'Forgot Password';
|
|
23
|
+
@Input() subTitle: string = 'Enter the e-mail you used during registration';
|
|
24
|
+
@Input() buttonCaption: string = 'Submit';
|
|
25
|
+
@Input() buttonTextColor?: string;
|
|
26
|
+
@Input() buttonBackgroundColor?: string;
|
|
27
|
+
|
|
28
|
+
@Output() onSubmit: EventEmitter<ForgotPasswordData> = new EventEmitter();
|
|
29
|
+
@Output() onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse> =
|
|
30
|
+
new EventEmitter();
|
|
31
|
+
|
|
32
|
+
forgotPasswordForm: FormGroup;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
private fb: FormBuilder,
|
|
36
|
+
private server: HttpWebRequestService,
|
|
37
|
+
private utilService: UtilService
|
|
38
|
+
) {
|
|
39
|
+
this.forgotPasswordForm = this.fb.group({
|
|
40
|
+
Email: new FormControl<string | null>(null, [
|
|
41
|
+
Validators.required,
|
|
42
|
+
this.emailValidator.bind(this),
|
|
43
|
+
]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
isValidEmail(mail: string): boolean {
|
|
48
|
+
const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
49
|
+
return emailPattern.test(mail);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
emailValidator(control: AbstractControl): ValidationErrors | null {
|
|
53
|
+
const value = control.value;
|
|
54
|
+
|
|
55
|
+
if (this.isValidEmail(value) == false) {
|
|
56
|
+
return { customValidation: true };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
checkForm(): boolean {
|
|
63
|
+
return this.forgotPasswordForm.valid;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async submit() {
|
|
67
|
+
if (!this.checkForm()) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
var data: ForgotPasswordData = {
|
|
71
|
+
Email: this.forgotPasswordForm.controls['Email'].value,
|
|
72
|
+
};
|
|
73
|
+
this.onSubmit.emit(data);
|
|
74
|
+
this.utilService.sendBI(true);
|
|
75
|
+
const res = await this.server.get(
|
|
76
|
+
`User/PasswordChangeRequest/${data.Email}`
|
|
77
|
+
);
|
|
78
|
+
this.utilService.sendBI(false);
|
|
79
|
+
if (res instanceof ErrorResponse) {
|
|
80
|
+
this.onSubmitEnd.emit(res);
|
|
81
|
+
} else {
|
|
82
|
+
var result = res as ResponseKeyValue;
|
|
83
|
+
this.onSubmitEnd.emit(result);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { ForgotPasswordComponent } from './forgot-password.component';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { VerbenaButtonModule, VerbenaInputModule } from 'verben-ng-ui';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [ForgotPasswordComponent],
|
|
9
|
+
imports: [
|
|
10
|
+
FormsModule,
|
|
11
|
+
ReactiveFormsModule,
|
|
12
|
+
VerbenaInputModule,
|
|
13
|
+
VerbenaButtonModule,
|
|
14
|
+
CommonModule,
|
|
15
|
+
],
|
|
16
|
+
exports: [ForgotPasswordComponent],
|
|
17
|
+
})
|
|
18
|
+
export class ForgotPasswordModule {}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { MailComponent } from './mail.component';
|
|
4
|
+
|
|
5
|
+
describe('MailComponent', () => {
|
|
6
|
+
let component: MailComponent;
|
|
7
|
+
let fixture: ComponentFixture<MailComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [MailComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(MailComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'verben-mail-message',
|
|
6
|
+
templateUrl: './mail.component.html',
|
|
7
|
+
styleUrl: './mail.component.css'
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export class MailComponent {
|
|
12
|
+
@Input() customClass: string = ''
|
|
13
|
+
@Input() headlingClass: string = ''
|
|
14
|
+
@Input() width: string = '';
|
|
15
|
+
@Input() maxWidth: string = '';
|
|
16
|
+
@Input() margin: string = '';
|
|
17
|
+
@Input() pd: string = '';
|
|
18
|
+
@Input() bgColor: string = '#fff';
|
|
19
|
+
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
20
|
+
@Input() border: string = '1px solid #66666680';
|
|
21
|
+
@Input() borderRadius: string = '24px';
|
|
22
|
+
@Input() textColor: string = '#333';
|
|
23
|
+
@Input() height: string = 'auto';
|
|
24
|
+
|
|
25
|
+
@Output() buttonClick = new EventEmitter();
|
|
26
|
+
|
|
27
|
+
goToLogin(){
|
|
28
|
+
this.buttonClick.emit()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get styles() {
|
|
32
|
+
return {
|
|
33
|
+
'background-color': this.bgColor,
|
|
34
|
+
'box-shadow': this.boxShadow,
|
|
35
|
+
'border': this.border,
|
|
36
|
+
'border-radius': this.borderRadius,
|
|
37
|
+
'color': this.textColor,
|
|
38
|
+
'width': this.width,
|
|
39
|
+
'max-width':this.maxWidth,
|
|
40
|
+
'margin':this.margin,
|
|
41
|
+
'height': this.height,
|
|
42
|
+
'padding':this.pd
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { RouterLink} from '@angular/router';
|
|
5
|
+
import { ButtonModule } from '../button/button.module';
|
|
6
|
+
import { MailComponent } from './mail.component';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [MailComponent],
|
|
10
|
+
imports: [CommonModule, FormsModule,RouterLink,ButtonModule],
|
|
11
|
+
exports: [MailComponent]
|
|
12
|
+
})
|
|
13
|
+
export class MailModule {}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* Container Styles */
|
|
2
|
+
.flex {
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
.overflow-hidden {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
.h-full {
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.underline {
|
|
13
|
+
text-decoration: underline;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mt-4 {
|
|
17
|
+
margin-top: 1rem;
|
|
18
|
+
}
|
|
19
|
+
.resend{
|
|
20
|
+
color: blue;
|
|
21
|
+
}
|
|
22
|
+
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
23
|
+
margin-top: 1rem;
|
|
24
|
+
}
|
|
25
|
+
.gap-1 > :not([hidden]) ~ :not([hidden]) {
|
|
26
|
+
gap: 0.25rem;
|
|
27
|
+
}
|
|
28
|
+
.pt-3 {
|
|
29
|
+
padding-top: 0.75rem;
|
|
30
|
+
}
|
|
31
|
+
.mt-5 {
|
|
32
|
+
margin-top: 1.25rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Form and Input Styles */
|
|
36
|
+
.border {
|
|
37
|
+
border-width: 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.rounded-xl {
|
|
41
|
+
border-radius: 0.75rem;
|
|
42
|
+
}
|
|
43
|
+
.px-3 {
|
|
44
|
+
padding-left: 0.75rem;
|
|
45
|
+
padding-right: 0.75rem;
|
|
46
|
+
}
|
|
47
|
+
.py-3 {
|
|
48
|
+
padding-top: 0.75rem;
|
|
49
|
+
padding-bottom: 0.75rem;
|
|
50
|
+
}
|
|
51
|
+
.flex-col {
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
.w-full {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<section [ngStyle]="styles" class="{{ customClass }}">
|
|
2
|
+
<div *ngIf="currentStep === 'linkSent'">
|
|
3
|
+
<p [style.color]="textColor" [style.font-size]="textSize">
|
|
4
|
+
Follow the link sent to your e-mail to verify your e-mail address
|
|
5
|
+
</p>
|
|
6
|
+
<p class="mt-4" (click)="handleResendOtp()">
|
|
7
|
+
Didn't get a link? <a href="#" class="underline resend">Resend</a>
|
|
8
|
+
</p>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div *ngIf="currentStep === 'verified'">
|
|
12
|
+
<p [style.color]="textColor" [style.font-size]="textSize">
|
|
13
|
+
Your e-mail has been verified! You will be notified when your access has
|
|
14
|
+
been authorized
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div *ngIf="currentStep === 'accessGranted'">
|
|
19
|
+
<p [style.color]="textColor" [style.font-size]="textSize">
|
|
20
|
+
Your e-mail has been verified!
|
|
21
|
+
</p>
|
|
22
|
+
<div class="mt-4">
|
|
23
|
+
<verbena-button
|
|
24
|
+
[text]="text"
|
|
25
|
+
[bgColor]="btnBgColor"
|
|
26
|
+
[textColor]="color"
|
|
27
|
+
[border]="btnBorder"
|
|
28
|
+
[borderRadius]="btnBorderRadius"
|
|
29
|
+
[pd]="btnPd"
|
|
30
|
+
(click)="handleLogin()"
|
|
31
|
+
[width]="btnWidth"
|
|
32
|
+
textSize="'22px'"
|
|
33
|
+
buttonClass="font-medium text-[22px] leading-[33px]"
|
|
34
|
+
></verbena-button>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { MailValidationComponent } from './mail-validation.component';
|
|
4
|
+
|
|
5
|
+
describe('MailValidationComponent', () => {
|
|
6
|
+
let component: MailValidationComponent;
|
|
7
|
+
let fixture: ComponentFixture<MailValidationComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [MailValidationComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(MailValidationComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-mail-validation',
|
|
5
|
+
templateUrl: './mail-validation.component.html',
|
|
6
|
+
styleUrls: ['./mail-validation.component.css']
|
|
7
|
+
})
|
|
8
|
+
export class MailValidationComponent {
|
|
9
|
+
@Input() customClass: string = '';
|
|
10
|
+
@Input() bgColor: string = '#fff';
|
|
11
|
+
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
12
|
+
@Input() border: string = '1px solid #66666680';
|
|
13
|
+
@Input() borderRadius: string = '24px';
|
|
14
|
+
@Input() textColor: string = '#666666';
|
|
15
|
+
@Input() height: string = 'auto';
|
|
16
|
+
@Input() pd: string = '32px 48px';
|
|
17
|
+
@Input() width: string = '600px';
|
|
18
|
+
@Input() text: string = 'Login';
|
|
19
|
+
@Input() textAlign: string = 'center';
|
|
20
|
+
@Input() color: string = 'black';
|
|
21
|
+
@Input() textSize: string = '32px';
|
|
22
|
+
@Input() btnBorder: string = '1px solid #FFE681';
|
|
23
|
+
@Input() btnBorderRadius: string = "40px";
|
|
24
|
+
@Input() btnBgColor: string = '#FFE681';
|
|
25
|
+
@Input() btnWidth: string = '100%';
|
|
26
|
+
@Input() btnPd: string = '7px 10px';
|
|
27
|
+
|
|
28
|
+
@Output() resendOtp = new EventEmitter<void>();
|
|
29
|
+
@Output() proceedToNextStep = new EventEmitter<'verified' | 'accessGranted'>();
|
|
30
|
+
@Output() login = new EventEmitter<void>();
|
|
31
|
+
|
|
32
|
+
currentStep: 'linkSent' | 'verified' | 'accessGranted' = 'linkSent';
|
|
33
|
+
|
|
34
|
+
handleResendOtp() {
|
|
35
|
+
this.resendOtp.emit();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
goToNextStep() {
|
|
39
|
+
switch (this.currentStep) {
|
|
40
|
+
case 'linkSent':
|
|
41
|
+
this.currentStep = 'verified';
|
|
42
|
+
this.proceedToNextStep.emit(this.currentStep);
|
|
43
|
+
break;
|
|
44
|
+
case 'verified':
|
|
45
|
+
this.currentStep = 'accessGranted';
|
|
46
|
+
this.proceedToNextStep.emit(this.currentStep);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
get styles() {
|
|
51
|
+
return {
|
|
52
|
+
'background-color': this.bgColor,
|
|
53
|
+
'box-shadow': this.boxShadow,
|
|
54
|
+
'border': this.border,
|
|
55
|
+
'border-radius': this.borderRadius,
|
|
56
|
+
'color': this.textColor,
|
|
57
|
+
'max-width': this.width,
|
|
58
|
+
'margin': '0 auto',
|
|
59
|
+
'height': this.height,
|
|
60
|
+
'padding': this.pd,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
handleLogin() {
|
|
64
|
+
this.login.emit();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { VerbenaButtonModule, VerbenaInputModule } from 'verben-ng-ui';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { MailValidationComponent } from './mail-validation.component';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [MailValidationComponent],
|
|
9
|
+
imports: [
|
|
10
|
+
FormsModule,
|
|
11
|
+
ReactiveFormsModule,
|
|
12
|
+
VerbenaInputModule,
|
|
13
|
+
VerbenaButtonModule,
|
|
14
|
+
CommonModule,
|
|
15
|
+
],
|
|
16
|
+
exports: [MailValidationComponent],
|
|
17
|
+
})
|
|
18
|
+
export class MailValidationModule {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
hr {
|
|
2
|
+
height: 1px;
|
|
3
|
+
margin: 0;
|
|
4
|
+
border:1px solid #66666640;
|
|
5
|
+
flex:1
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.OR{
|
|
9
|
+
margin: 0 2px;
|
|
10
|
+
color:#666666
|
|
11
|
+
}
|
|
12
|
+
.oauthWrapper{
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap:12px;
|
|
16
|
+
}
|
|
17
|
+
.OrFlexWrapper{
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap:8px;
|
|
21
|
+
}
|