verben-authentication-ui 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/auth-callback/auth-callback.component.mjs +57 -0
- package/esm2022/lib/components/auth-callback/auth-callback.module.mjs +18 -0
- package/esm2022/lib/components/button/button.component.mjs +46 -0
- package/esm2022/lib/components/button/button.module.mjs +20 -0
- package/esm2022/lib/components/forgot-password/ForgotPasswordData.mjs +2 -0
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +89 -0
- package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +34 -0
- package/esm2022/lib/components/mail/mail.component.mjs +69 -0
- package/esm2022/lib/components/mail/mail.module.mjs +21 -0
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +108 -0
- package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +34 -0
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +107 -0
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +19 -0
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +86 -0
- package/esm2022/lib/components/otp-input/otp-input.module.mjs +23 -0
- package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +2 -0
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +108 -0
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +34 -0
- package/esm2022/lib/components/role-control/ChildrenType.mjs +6 -0
- package/esm2022/lib/components/role-control/MappedRole.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleAction.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleContext.mjs +2 -0
- package/esm2022/lib/components/role-control/UIActions.mjs +7 -0
- package/esm2022/lib/components/role-control/UIs.mjs +40 -0
- package/esm2022/lib/components/role-control/base-table-style.mjs +53 -0
- package/esm2022/lib/components/role-control/role-control.component.mjs +1556 -0
- package/esm2022/lib/components/role-control/role-control.module.mjs +18 -0
- package/esm2022/lib/components/role-control/role-control.service.mjs +54 -0
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +318 -0
- package/esm2022/lib/components/sign-in/sign-in.module.mjs +24 -0
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +229 -0
- package/esm2022/lib/components/sign-up/sign-up.module.mjs +24 -0
- package/esm2022/lib/components/sso/base-table-style.mjs +53 -0
- package/esm2022/lib/components/sso/helper.mjs +16 -0
- package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +74 -0
- package/esm2022/lib/components/sso/sso.columns.mjs +29 -0
- package/esm2022/lib/components/sso/sso.component.mjs +236 -0
- package/esm2022/lib/components/sso/sso.module.mjs +63 -0
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +209 -0
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +22 -0
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +90 -0
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +19 -0
- package/esm2022/lib/components/user-management/base-table-style.mjs +53 -0
- package/esm2022/lib/components/user-management/services/user-management.service.mjs +88 -0
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +71 -0
- package/esm2022/lib/components/user-management/user-management.columns.mjs +47 -0
- package/esm2022/lib/components/user-management/user-management.component.mjs +475 -0
- package/esm2022/lib/components/user-management/user-management.module.mjs +79 -0
- package/esm2022/lib/components/user-management/user-status-badge/user-status-badge.component.mjs +26 -0
- package/esm2022/lib/components/user-request/user-request.component.mjs +320 -0
- package/esm2022/lib/components/user-request/user-request.module.mjs +38 -0
- package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +29 -0
- package/esm2022/lib/components/user-request-approval/base-table-style.mjs +53 -0
- package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +260 -0
- package/esm2022/lib/components/user-request-approval/helper.mjs +56 -0
- package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +93 -0
- package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +92 -0
- package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +26 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +270 -0
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +80 -0
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +86 -0
- package/esm2022/lib/models/ApplicationRoleAction.mjs +2 -0
- package/esm2022/lib/models/ApplicationRoleContext.mjs +2 -0
- package/esm2022/lib/models/ErrorResponse.mjs +11 -0
- package/esm2022/lib/models/OAuthParam.mjs +2 -0
- package/esm2022/lib/models/OAuthType.mjs +9 -0
- package/esm2022/lib/models/PagedResult.mjs +2 -0
- package/esm2022/lib/models/PasswordRequestParam.mjs +2 -0
- package/esm2022/lib/models/PermissionConfig.mjs +2 -0
- package/esm2022/lib/models/ResponseKeyValue.mjs +2 -0
- package/esm2022/lib/models/Role.mjs +2 -0
- package/esm2022/lib/models/RoleAction.mjs +2 -0
- package/esm2022/lib/models/RoleContext.mjs +2 -0
- package/esm2022/lib/models/SearchDynamicWrapper.mjs +2 -0
- package/esm2022/lib/models/SearchOperator.mjs +6 -0
- package/esm2022/lib/models/SearchPropertySign.mjs +11 -0
- package/esm2022/lib/models/SearchPropertyValue.mjs +2 -0
- package/esm2022/lib/models/SearchPropertyValueType.mjs +11 -0
- package/esm2022/lib/models/SortDirection.mjs +7 -0
- package/esm2022/lib/models/Tag.mjs +2 -0
- package/esm2022/lib/models/TenantConfig.mjs +2 -0
- package/esm2022/lib/models/UserRequest.mjs +2 -0
- package/esm2022/lib/models/auth-mechanism.mjs +8 -0
- package/esm2022/lib/models/base.mjs +2 -0
- package/esm2022/lib/models/conditions.mjs +13 -0
- package/esm2022/lib/models/log-in.mjs +2 -0
- package/esm2022/lib/models/mainUser.mjs +2 -0
- package/esm2022/lib/models/oauth-resp.mjs +2 -0
- package/esm2022/lib/models/oauth-response.mjs +2 -0
- package/esm2022/lib/models/object-state.mjs +8 -0
- package/esm2022/lib/models/otpValue.mjs +2 -0
- package/esm2022/lib/models/paged.mjs +2 -0
- package/esm2022/lib/models/query-params.mjs +2 -0
- package/esm2022/lib/models/request-status.mjs +5 -0
- package/esm2022/lib/models/resend-otp-data.mjs +2 -0
- package/esm2022/lib/models/sign-up.mjs +2 -0
- package/esm2022/lib/models/single-sign-on.mjs +2 -0
- package/esm2022/lib/models/status.mjs +6 -0
- package/esm2022/lib/models/user-access-request-status.mjs +7 -0
- package/esm2022/lib/models/user-access-request.mjs +2 -0
- package/esm2022/lib/models/user.mjs +2 -0
- package/esm2022/lib/pipes/async-label.pipe.mjs +25 -0
- package/esm2022/lib/services/authorization.service.mjs +26 -0
- package/esm2022/lib/services/encryption.service.mjs +52 -0
- package/esm2022/lib/services/environment.service.mjs +26 -0
- package/esm2022/lib/services/http-web-request.service.mjs +85 -0
- package/esm2022/lib/services/label.service.mjs +134 -0
- package/esm2022/lib/services/util.service.mjs +55 -0
- package/esm2022/lib/shared/shared.module.mjs +84 -0
- package/esm2022/public-api.mjs +48 -0
- package/esm2022/verben-authentication-ui.mjs +5 -0
- package/fesm2022/verben-authentication-ui.mjs +6491 -0
- package/fesm2022/verben-authentication-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/auth-callback/auth-callback.component.d.ts +17 -0
- package/lib/components/auth-callback/auth-callback.module.d.ts +8 -0
- package/lib/components/button/button.component.d.ts +17 -0
- package/lib/components/button/button.module.d.ts +10 -0
- package/{src/lib/components/forgot-password/ForgotPasswordData.ts → lib/components/forgot-password/ForgotPasswordData.d.ts} +1 -1
- package/lib/components/forgot-password/forgot-password.component.d.ts +29 -0
- package/lib/components/forgot-password/forgot-password.module.d.ts +10 -0
- package/lib/components/mail/mail.component.d.ts +32 -0
- package/lib/components/mail/mail.module.d.ts +11 -0
- package/lib/components/mail-validation/mail-validation.component.d.ts +42 -0
- package/lib/components/mail-validation/mail-validation.module.d.ts +10 -0
- package/lib/components/o-auth/o-auth.component.d.ts +30 -0
- package/lib/components/o-auth/o-auth.module.d.ts +9 -0
- package/lib/components/otp-input/otp-input.component.d.ts +21 -0
- package/lib/components/otp-input/otp-input.module.d.ts +13 -0
- package/lib/components/reset-password/ResetPasswordData.d.ts +5 -0
- package/lib/components/reset-password/reset-password.component.d.ts +30 -0
- package/lib/components/reset-password/reset-password.module.d.ts +10 -0
- package/lib/components/role-control/ChildrenType.d.ts +4 -0
- package/{src/lib/components/role-control/MappedRole.ts → lib/components/role-control/MappedRole.d.ts} +2 -3
- package/{src/lib/components/role-control/MappedRoleAction.ts → lib/components/role-control/MappedRoleAction.d.ts} +1 -2
- package/{src/lib/components/role-control/MappedRoleContext.ts → lib/components/role-control/MappedRoleContext.d.ts} +3 -4
- package/lib/components/role-control/UIActions.d.ts +5 -0
- package/lib/components/role-control/UIs.d.ts +38 -0
- package/lib/components/role-control/base-table-style.d.ts +1 -0
- package/lib/components/role-control/role-control.component.d.ts +123 -0
- package/lib/components/role-control/role-control.module.d.ts +8 -0
- package/lib/components/role-control/role-control.service.d.ts +9 -0
- package/lib/components/sign-in/sign-in.component.d.ts +95 -0
- package/lib/components/sign-in/sign-in.module.d.ts +13 -0
- package/lib/components/sign-up/sign-up.component.d.ts +68 -0
- package/lib/components/sign-up/sign-up.module.d.ts +13 -0
- package/lib/components/sso/base-table-style.d.ts +1 -0
- package/lib/components/sso/helper.d.ts +2 -0
- package/lib/components/sso/sso-form/sso-form.component.d.ts +21 -0
- package/lib/components/sso/sso.columns.d.ts +3 -0
- package/lib/components/sso/sso.component.d.ts +54 -0
- package/lib/components/sso/sso.module.d.ts +11 -0
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +67 -0
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.d.ts +12 -0
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.d.ts +39 -0
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.d.ts +9 -0
- package/lib/components/user-management/base-table-style.d.ts +1 -0
- package/lib/components/user-management/services/user-management.service.d.ts +44 -0
- package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +22 -0
- package/lib/components/user-management/user-management.columns.d.ts +3 -0
- package/lib/components/user-management/user-management.component.d.ts +123 -0
- package/lib/components/user-management/user-management.module.d.ts +14 -0
- package/lib/components/user-management/user-status-badge/user-status-badge.component.d.ts +12 -0
- package/lib/components/user-request/user-request.component.d.ts +80 -0
- package/lib/components/user-request/user-request.module.d.ts +11 -0
- package/lib/components/user-request-approval/access-request.columns.d.ts +3 -0
- package/lib/components/user-request-approval/base-table-style.d.ts +1 -0
- package/lib/components/user-request-approval/facades/user-access-request.facade.d.ts +39 -0
- package/lib/components/user-request-approval/helper.d.ts +7 -0
- package/lib/components/user-request-approval/services/user-access-request.service.d.ts +65 -0
- package/lib/components/user-request-approval/states/user-access-request.state.d.ts +35 -0
- package/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.d.ts +12 -0
- package/lib/components/user-request-approval/user-request-approval.component.d.ts +69 -0
- package/lib/components/user-request-approval/user-request-approval.module.d.ts +12 -0
- package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +25 -0
- package/lib/models/ApplicationRoleAction.d.ts +9 -0
- package/{src/lib/models/ApplicationRoleContext copy.ts → lib/models/ApplicationRoleContext.d.ts} +5 -6
- package/lib/models/ErrorResponse.d.ts +6 -0
- package/lib/models/OAuthParam.d.ts +9 -0
- package/lib/models/OAuthType.d.ts +7 -0
- package/lib/models/PagedResult.d.ts +9 -0
- package/lib/models/PasswordRequestParam.d.ts +5 -0
- package/{src/lib/models/PermissionConfig.ts → lib/models/PermissionConfig.d.ts} +3 -4
- package/lib/models/ResponseKeyValue.d.ts +5 -0
- package/{src/lib/models/Role.ts → lib/models/Role.d.ts} +5 -6
- package/lib/models/RoleAction.d.ts +10 -0
- package/lib/models/RoleContext.d.ts +10 -0
- package/{src/lib/models/SearchDynamicWrapper.ts → lib/models/SearchDynamicWrapper.d.ts} +2 -3
- package/lib/models/SearchOperator.d.ts +4 -0
- package/lib/models/SearchPropertySign.d.ts +9 -0
- package/{src/lib/models/SearchPropertyValue.ts → lib/models/SearchPropertyValue.d.ts} +6 -7
- package/lib/models/SearchPropertyValueType.d.ts +9 -0
- package/lib/models/SortDirection.d.ts +5 -0
- package/{src/lib/models/Tag.ts → lib/models/Tag.d.ts} +3 -4
- package/lib/models/TenantConfig.d.ts +18 -0
- package/lib/models/UserRequest.d.ts +32 -0
- package/lib/models/auth-mechanism.d.ts +14 -0
- package/lib/models/base.d.ts +12 -0
- package/lib/models/conditions.d.ts +11 -0
- package/lib/models/log-in.d.ts +8 -0
- package/{src/lib/models/mainUser.ts → lib/models/mainUser.d.ts} +2 -3
- package/lib/models/oauth-resp.d.ts +6 -0
- package/{src/lib/models/oauth-response.ts → lib/models/oauth-response.d.ts} +1 -1
- package/lib/models/object-state.d.ts +6 -0
- package/{src/lib/models/otpValue.ts → lib/models/otpValue.d.ts} +2 -4
- package/lib/models/paged.d.ts +9 -0
- package/lib/models/query-params.d.ts +8 -0
- package/lib/models/request-status.d.ts +3 -0
- package/lib/models/resend-otp-data.d.ts +8 -0
- package/lib/models/sign-up.d.ts +9 -0
- package/lib/models/single-sign-on.d.ts +7 -0
- package/lib/models/status.d.ts +4 -0
- package/lib/models/user-access-request-status.d.ts +5 -0
- package/{src/lib/models/user-access-request.ts → lib/models/user-access-request.d.ts} +4 -5
- package/lib/models/user.d.ts +18 -0
- package/lib/pipes/async-label.pipe.d.ts +11 -0
- package/lib/services/authorization.service.d.ts +14 -0
- package/lib/services/encryption.service.d.ts +13 -0
- package/lib/services/environment.service.d.ts +22 -0
- package/lib/services/http-web-request.service.d.ts +23 -0
- package/lib/services/label.service.d.ts +15 -0
- package/lib/services/util.service.d.ts +11 -0
- package/lib/shared/shared.module.d.ts +10 -0
- package/package.json +15 -10
- package/{src/public-api.ts → public-api.d.ts} +0 -24
- package/ng-package.json +0 -8
- package/src/lib/base/base-data.component.ts +0 -86
- package/src/lib/base/base-data.facade.ts +0 -157
- package/src/lib/base/base-data.service.ts +0 -49
- package/src/lib/base/base-data.state.ts +0 -94
- package/src/lib/base/models.ts +0 -14
- package/src/lib/components/auth-callback/auth-callback.component.css +0 -30
- package/src/lib/components/auth-callback/auth-callback.component.html +0 -6
- package/src/lib/components/auth-callback/auth-callback.component.spec.ts +0 -23
- package/src/lib/components/auth-callback/auth-callback.component.ts +0 -56
- package/src/lib/components/auth-callback/auth-callback.module.ts +0 -10
- package/src/lib/components/button/button.component.css +0 -3
- package/src/lib/components/button/button.component.html +0 -13
- package/src/lib/components/button/button.component.spec.ts +0 -23
- package/src/lib/components/button/button.component.ts +0 -24
- package/src/lib/components/button/button.module.ts +0 -11
- package/src/lib/components/forgot-password/forgot-password.component.css +0 -46
- package/src/lib/components/forgot-password/forgot-password.component.html +0 -19
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +0 -23
- package/src/lib/components/forgot-password/forgot-password.component.ts +0 -88
- package/src/lib/components/forgot-password/forgot-password.module.ts +0 -18
- package/src/lib/components/mail/mail.component.css +0 -0
- package/src/lib/components/mail/mail.component.html +0 -11
- package/src/lib/components/mail/mail.component.spec.ts +0 -23
- package/src/lib/components/mail/mail.component.ts +0 -47
- package/src/lib/components/mail/mail.module.ts +0 -13
- package/src/lib/components/mail-validation/mail-validation.component.css +0 -59
- package/src/lib/components/mail-validation/mail-validation.component.html +0 -37
- package/src/lib/components/mail-validation/mail-validation.component.spec.ts +0 -23
- package/src/lib/components/mail-validation/mail-validation.component.ts +0 -66
- package/src/lib/components/mail-validation/mail-validation.module.ts +0 -18
- package/src/lib/components/o-auth/o-auth.component.css +0 -26
- package/src/lib/components/o-auth/o-auth.component.html +0 -26
- package/src/lib/components/o-auth/o-auth.component.spec.ts +0 -23
- package/src/lib/components/o-auth/o-auth.component.ts +0 -115
- package/src/lib/components/o-auth/o-auth.module.ts +0 -11
- package/src/lib/components/otp-input/otp-input.component.css +0 -19
- package/src/lib/components/otp-input/otp-input.component.html +0 -15
- package/src/lib/components/otp-input/otp-input.component.spec.ts +0 -23
- package/src/lib/components/otp-input/otp-input.component.ts +0 -88
- package/src/lib/components/otp-input/otp-input.module.ts +0 -15
- package/src/lib/components/reset-password/ResetPasswordData.ts +0 -5
- package/src/lib/components/reset-password/reset-password.component.css +0 -29
- package/src/lib/components/reset-password/reset-password.component.html +0 -24
- package/src/lib/components/reset-password/reset-password.component.spec.ts +0 -23
- package/src/lib/components/reset-password/reset-password.component.ts +0 -108
- package/src/lib/components/reset-password/reset-password.module.ts +0 -18
- package/src/lib/components/role-control/ChildrenType.ts +0 -4
- package/src/lib/components/role-control/UIActions.ts +0 -5
- package/src/lib/components/role-control/UIs.ts +0 -38
- package/src/lib/components/role-control/base-table-style.ts +0 -52
- package/src/lib/components/role-control/role-control.component.css +0 -55
- package/src/lib/components/role-control/role-control.component.html +0 -571
- package/src/lib/components/role-control/role-control.component.spec.ts +0 -23
- package/src/lib/components/role-control/role-control.component.ts +0 -1817
- package/src/lib/components/role-control/role-control.module.ts +0 -10
- package/src/lib/components/role-control/role-control.service.spec.ts +0 -16
- package/src/lib/components/role-control/role-control.service.ts +0 -53
- package/src/lib/components/sign-in/sign-in.component.css +0 -21
- package/src/lib/components/sign-in/sign-in.component.html +0 -83
- package/src/lib/components/sign-in/sign-in.component.spec.ts +0 -23
- package/src/lib/components/sign-in/sign-in.component.ts +0 -267
- package/src/lib/components/sign-in/sign-in.module.ts +0 -17
- package/src/lib/components/sign-up/sign-up.component.css +0 -36
- package/src/lib/components/sign-up/sign-up.component.html +0 -132
- package/src/lib/components/sign-up/sign-up.component.spec.ts +0 -23
- package/src/lib/components/sign-up/sign-up.component.ts +0 -180
- package/src/lib/components/sign-up/sign-up.module.ts +0 -15
- package/src/lib/components/sso/base-table-style.ts +0 -52
- package/src/lib/components/sso/helper.ts +0 -17
- package/src/lib/components/sso/sso-form/sso-form.component.css +0 -13
- package/src/lib/components/sso/sso-form/sso-form.component.html +0 -109
- package/src/lib/components/sso/sso-form/sso-form.component.spec.ts +0 -23
- package/src/lib/components/sso/sso-form/sso-form.component.ts +0 -70
- package/src/lib/components/sso/sso.columns.ts +0 -32
- package/src/lib/components/sso/sso.component.css +0 -47
- package/src/lib/components/sso/sso.component.html +0 -208
- package/src/lib/components/sso/sso.component.spec.ts +0 -23
- package/src/lib/components/sso/sso.component.ts +0 -261
- package/src/lib/components/sso/sso.module.ts +0 -40
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.css +0 -8
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.html +0 -30
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.spec.ts +0 -23
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.ts +0 -155
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.ts +0 -15
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.css +0 -17
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.html +0 -45
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.spec.ts +0 -23
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.ts +0 -57
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.ts +0 -11
- package/src/lib/components/user-management/base-table-style.ts +0 -52
- package/src/lib/components/user-management/facades/user-management.facades.ts +0 -133
- package/src/lib/components/user-management/helper.ts +0 -38
- package/src/lib/components/user-management/index.ts +0 -4
- package/src/lib/components/user-management/services/user-management.service.spec.ts +0 -16
- package/src/lib/components/user-management/services/user-management.service.ts +0 -111
- package/src/lib/components/user-management/states/user-management.state.ts +0 -65
- package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +0 -73
- package/src/lib/components/user-management/user-management-form/user-management-form.component.css +0 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.html +0 -80
- package/src/lib/components/user-management/user-management-form/user-management-form.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.columns.ts +0 -51
- package/src/lib/components/user-management/user-management.component.css +0 -31
- package/src/lib/components/user-management/user-management.component.html +0 -319
- package/src/lib/components/user-management/user-management.component.spec.ts +0 -23
- package/src/lib/components/user-management/user-management.component.ts +0 -604
- package/src/lib/components/user-management/user-management.module.ts +0 -56
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.css +0 -0
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.html +0 -8
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.spec.ts +0 -22
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.ts +0 -22
- package/src/lib/components/user-request/user-request.component.css +0 -91
- package/src/lib/components/user-request/user-request.component.html +0 -137
- package/src/lib/components/user-request/user-request.component.spec.ts +0 -23
- package/src/lib/components/user-request/user-request.component.ts +0 -306
- package/src/lib/components/user-request/user-request.module.ts +0 -20
- package/src/lib/components/user-request-approval/access-request.columns.ts +0 -31
- package/src/lib/components/user-request-approval/base-table-style.ts +0 -52
- package/src/lib/components/user-request-approval/facades/user-access-request.facade.ts +0 -324
- package/src/lib/components/user-request-approval/helper.ts +0 -61
- package/src/lib/components/user-request-approval/services/user-access-request.service.spec.ts +0 -16
- package/src/lib/components/user-request-approval/services/user-access-request.service.ts +0 -122
- package/src/lib/components/user-request-approval/states/user-access-request.state.ts +0 -109
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.css +0 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.html +0 -8
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.spec.ts +0 -23
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.ts +0 -22
- package/src/lib/components/user-request-approval/user-request-approval.component.css +0 -6
- package/src/lib/components/user-request-approval/user-request-approval.component.html +0 -269
- package/src/lib/components/user-request-approval/user-request-approval.component.spec.ts +0 -23
- package/src/lib/components/user-request-approval/user-request-approval.component.ts +0 -326
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +0 -54
- package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +0 -98
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.css +0 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.html +0 -94
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +0 -23
- package/src/lib/components/user-request-process/user-request-process.component.css +0 -0
- package/src/lib/components/user-request-process/user-request-process.component.html +0 -1
- package/src/lib/components/user-request-process/user-request-process.component.spec.ts +0 -23
- package/src/lib/components/user-request-process/user-request-process.component.ts +0 -12
- package/src/lib/components/user-request-process/user-request-process.module.ts +0 -12
- package/src/lib/models/ApplicationRoleAction.ts +0 -10
- package/src/lib/models/ApplicationRoleContext.ts +0 -10
- package/src/lib/models/ErrorResponse.ts +0 -7
- package/src/lib/models/FilterTypes.ts +0 -8
- package/src/lib/models/MailConfig.ts +0 -13
- package/src/lib/models/MessageConfig.ts +0 -5
- package/src/lib/models/MessageMedium.ts +0 -4
- package/src/lib/models/OAuthParam.ts +0 -10
- package/src/lib/models/OAuthType.ts +0 -7
- package/src/lib/models/PagedResult.ts +0 -9
- package/src/lib/models/PasswordRequestParam.ts +0 -5
- package/src/lib/models/PeriodMode.ts +0 -10
- package/src/lib/models/ReportSchedule.ts +0 -23
- package/src/lib/models/ReportType.ts +0 -5
- package/src/lib/models/ResponseKeyValue.ts +0 -5
- package/src/lib/models/RoleAction.ts +0 -11
- package/src/lib/models/RoleContext.ts +0 -11
- package/src/lib/models/SMSConfig.ts +0 -11
- package/src/lib/models/SearchOperator.ts +0 -4
- package/src/lib/models/SearchPropertySign.ts +0 -9
- package/src/lib/models/SearchPropertyValueType.ts +0 -9
- package/src/lib/models/SortDirection.ts +0 -5
- package/src/lib/models/TaskNotification.ts +0 -14
- package/src/lib/models/TaskNotificationMessageType.ts +0 -4
- package/src/lib/models/TaskNotificationType.ts +0 -4
- package/src/lib/models/Tenant.ts +0 -22
- package/src/lib/models/TenantConfig.ts +0 -19
- package/src/lib/models/UserRequest.ts +0 -38
- package/src/lib/models/auth-mechanism.ts +0 -15
- package/src/lib/models/base.ts +0 -13
- package/src/lib/models/conditions.ts +0 -11
- package/src/lib/models/log-in.ts +0 -8
- package/src/lib/models/oauth-resp.ts +0 -6
- package/src/lib/models/object-state.ts +0 -6
- package/src/lib/models/paged.ts +0 -9
- package/src/lib/models/query-params.ts +0 -9
- package/src/lib/models/request-status.ts +0 -4
- package/src/lib/models/resend-otp-data.ts +0 -8
- package/src/lib/models/resource.ts +0 -27
- package/src/lib/models/sign-up.ts +0 -11
- package/src/lib/models/single-sign-on.ts +0 -9
- package/src/lib/models/status.ts +0 -5
- package/src/lib/models/user-access-request-status.ts +0 -5
- package/src/lib/models/user-object-state.ts +0 -6
- package/src/lib/models/user.ts +0 -19
- package/src/lib/pipes/async-label.pipe.spec.ts +0 -8
- package/src/lib/pipes/async-label.pipe.ts +0 -20
- package/src/lib/services/authorization.service.spec.ts +0 -16
- package/src/lib/services/authorization.service.ts +0 -24
- package/src/lib/services/encryption.service.ts +0 -57
- package/src/lib/services/environment.service.spec.ts +0 -16
- package/src/lib/services/environment.service.ts +0 -30
- package/src/lib/services/http-web-request.service.spec.ts +0 -16
- package/src/lib/services/http-web-request.service.ts +0 -114
- package/src/lib/services/label.service.spec.ts +0 -16
- package/src/lib/services/label.service.ts +0 -177
- package/src/lib/services/util.service.spec.ts +0 -16
- package/src/lib/services/util.service.ts +0 -49
- package/src/lib/shared/shared.module.ts +0 -55
- package/src/styles.css +0 -96
- package/src/theme/tailwind-setup.css +0 -3
- package/src/theme/tailwind.css +0 -1030
- package/src/utils/components/base-data-view.component.ts +0 -131
- package/src/utils/models/DataViewConfig.ts +0 -19
- package/tailwind.config.js +0 -20
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
AbstractControl,
|
|
4
|
-
FormBuilder,
|
|
5
|
-
FormControl,
|
|
6
|
-
FormGroup,
|
|
7
|
-
ValidationErrors,
|
|
8
|
-
ValidatorFn,
|
|
9
|
-
Validators,
|
|
10
|
-
} from '@angular/forms';
|
|
11
|
-
import { SignUpData } from '../../models/sign-up';
|
|
12
|
-
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
13
|
-
import { ErrorResponse } from '../../models/ErrorResponse';
|
|
14
|
-
import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
15
|
-
import { UtilService } from '../../services/util.service';
|
|
16
|
-
import { ObjectState } from '../../models/object-state';
|
|
17
|
-
import { EncryptionService } from '../../services/encryption.service';
|
|
18
|
-
import CryptoJS from 'crypto-js';
|
|
19
|
-
@Component({
|
|
20
|
-
selector: 'verben-sign-up',
|
|
21
|
-
templateUrl: './sign-up.component.html',
|
|
22
|
-
styleUrl: './sign-up.component.css',
|
|
23
|
-
})
|
|
24
|
-
export class SignUpComponent {
|
|
25
|
-
@Input() headlingText: string = 'Create an account';
|
|
26
|
-
@Input() width: string = '';
|
|
27
|
-
@Input() maxWidth: string = '';
|
|
28
|
-
@Input() margin: string = '';
|
|
29
|
-
@Input() pd: string = '';
|
|
30
|
-
@Input() customClass: string = '';
|
|
31
|
-
@Input() headlingClass: string = '';
|
|
32
|
-
@Input() bgColor: string = '#fff';
|
|
33
|
-
@Input() boxShadow: string = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
34
|
-
@Input() border: string = '1px solid #66666680';
|
|
35
|
-
@Input() borderRadius: string = '24px';
|
|
36
|
-
@Input() height: string = 'auto';
|
|
37
|
-
@Input() textColor: string = '#333';
|
|
38
|
-
@Input() disabled: boolean = false;
|
|
39
|
-
|
|
40
|
-
// button styles
|
|
41
|
-
@Input() btnClass: string = '';
|
|
42
|
-
@Input() btnBgColor: string = '#FFE681';
|
|
43
|
-
@Input() btnColor: string = '';
|
|
44
|
-
@Input() btnBorder: string = '';
|
|
45
|
-
@Input() btnBorderRadius: string = '24px';
|
|
46
|
-
@Input() btnPd: string = '';
|
|
47
|
-
@Input() btnText: string = 'Create account';
|
|
48
|
-
|
|
49
|
-
//inputStyles
|
|
50
|
-
@Input() inputLabelColor: string = '';
|
|
51
|
-
@Input() inputBgColor: string = 'transparent';
|
|
52
|
-
@Input() inputBorder: string = '1px solid #66666659';
|
|
53
|
-
@Input() inputBorderRadius: string = '12px';
|
|
54
|
-
|
|
55
|
-
// links
|
|
56
|
-
@Input() termsLink: string = '';
|
|
57
|
-
@Input() privacyLink: string = '';
|
|
58
|
-
@Input() routerLink: string = '';
|
|
59
|
-
|
|
60
|
-
@Output() formSubmit = new EventEmitter<SignUpData>();
|
|
61
|
-
@Output() onSubmitEnd: EventEmitter<ResponseKeyValue | ErrorResponse> =
|
|
62
|
-
new EventEmitter();
|
|
63
|
-
@Output() googleClick = new EventEmitter();
|
|
64
|
-
@Output() appleClick = new EventEmitter();
|
|
65
|
-
|
|
66
|
-
signUpForm: FormGroup;
|
|
67
|
-
|
|
68
|
-
constructor(
|
|
69
|
-
private fb: FormBuilder,
|
|
70
|
-
private server: HttpWebRequestService,
|
|
71
|
-
private utilService: UtilService,
|
|
72
|
-
private encryptionService: EncryptionService
|
|
73
|
-
) {
|
|
74
|
-
this.signUpForm = this.fb.group(
|
|
75
|
-
{
|
|
76
|
-
Firstname: new FormControl<string | null>(null, Validators.required),
|
|
77
|
-
Lastname: new FormControl<string | null>(null, Validators.required),
|
|
78
|
-
Email: new FormControl<string | null>(null, [
|
|
79
|
-
Validators.required,
|
|
80
|
-
Validators.email,
|
|
81
|
-
]),
|
|
82
|
-
Password: new FormControl<string | null>(null, [
|
|
83
|
-
Validators.required,
|
|
84
|
-
Validators.minLength(8),
|
|
85
|
-
]),
|
|
86
|
-
Confirmpassword: new FormControl<string | null>(null, [
|
|
87
|
-
Validators.required,
|
|
88
|
-
Validators.minLength(8),
|
|
89
|
-
]),
|
|
90
|
-
Terms: new FormControl<boolean>(false, [Validators.requiredTrue]),
|
|
91
|
-
},
|
|
92
|
-
{ validators: this.passwordMatchValidator }
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private passwordMatchValidator: ValidatorFn = (
|
|
97
|
-
group: AbstractControl
|
|
98
|
-
): ValidationErrors | null => {
|
|
99
|
-
const password = group.get('Password')?.value;
|
|
100
|
-
const confirmPassword = group.get('Confirmpassword')?.value;
|
|
101
|
-
return password === confirmPassword ? null : { passwordMismatch: true };
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
checkForm(): boolean {
|
|
105
|
-
return this.signUpForm.valid;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
async submit() {
|
|
109
|
-
if (!this.checkForm()) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
const data: SignUpData = {
|
|
113
|
-
Firstname: this.signUpForm.controls['Firstname'].value,
|
|
114
|
-
Lastname: this.signUpForm.controls['Lastname'].value,
|
|
115
|
-
Email: this.signUpForm.controls['Email'].value,
|
|
116
|
-
Password:String(CryptoJS.MD5(this.signUpForm.controls['Password'].value)),
|
|
117
|
-
Terms: this.signUpForm.controls['Terms'].value,
|
|
118
|
-
Id: '61f7e48f0c651345677b7775',
|
|
119
|
-
CreatedAt: new Date(),
|
|
120
|
-
UpdatedAt: new Date(),
|
|
121
|
-
DataState: ObjectState.New,
|
|
122
|
-
id: '61f7e48f0c651345677b7775',
|
|
123
|
-
TenantId: 'James',
|
|
124
|
-
Code: '',
|
|
125
|
-
ServiceName: '',
|
|
126
|
-
};
|
|
127
|
-
const payload = [
|
|
128
|
-
{
|
|
129
|
-
...data,
|
|
130
|
-
Code: '123 ',
|
|
131
|
-
ServiceName: 'Test 1',
|
|
132
|
-
MailAddress: data.Email,
|
|
133
|
-
OtherName: 'James',
|
|
134
|
-
Status: 'Inactive',
|
|
135
|
-
PhoneNumber: '07012345678',
|
|
136
|
-
TenantId: '61f7e48f0c651345677b7775',
|
|
137
|
-
Role: ['tester'],
|
|
138
|
-
Tags: [
|
|
139
|
-
{
|
|
140
|
-
Name: 'checker',
|
|
141
|
-
IsOptional: true,
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
},
|
|
145
|
-
];
|
|
146
|
-
|
|
147
|
-
this.formSubmit.emit(data);
|
|
148
|
-
this.utilService.sendBI(true);
|
|
149
|
-
const res = await this.server.post(`User/SaveUsers`, payload);
|
|
150
|
-
this.utilService.sendBI(false);
|
|
151
|
-
if (res instanceof ErrorResponse) {
|
|
152
|
-
this.onSubmitEnd.emit(res);
|
|
153
|
-
} else {
|
|
154
|
-
var result = res as ResponseKeyValue;
|
|
155
|
-
this.onSubmitEnd.emit(result);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
handleGoogleAuth() {
|
|
160
|
-
this.googleClick.emit();
|
|
161
|
-
}
|
|
162
|
-
handleAppleAuth() {
|
|
163
|
-
this.appleClick.emit();
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
get styles() {
|
|
167
|
-
return {
|
|
168
|
-
'background-color': this.bgColor,
|
|
169
|
-
'box-shadow': this.boxShadow,
|
|
170
|
-
border: this.border,
|
|
171
|
-
'border-radius': this.borderRadius,
|
|
172
|
-
color: this.textColor,
|
|
173
|
-
width: this.width,
|
|
174
|
-
'max-width': this.maxWidth,
|
|
175
|
-
margin: this.margin,
|
|
176
|
-
height: this.height,
|
|
177
|
-
padding: this.pd,
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 { SignUpComponent } from './sign-up.component';
|
|
6
|
-
import { VerbenaInputModule } from 'verben-ng-ui';
|
|
7
|
-
import { OAuthModule } from '../o-auth/o-auth.module';
|
|
8
|
-
import { ButtonModule } from '../button/button.module';
|
|
9
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
-
@NgModule({
|
|
11
|
-
declarations: [SignUpComponent],
|
|
12
|
-
imports: [CommonModule, FormsModule, VerbenaInputModule, RouterLink,ButtonModule,OAuthModule,ReactiveFormsModule],
|
|
13
|
-
exports: [SignUpComponent]
|
|
14
|
-
})
|
|
15
|
-
export class SignUpModule {}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export const baseStyle: any = {
|
|
2
|
-
width: '100%',
|
|
3
|
-
fontFamily: '"Fraunces", serif',
|
|
4
|
-
fontSize: '125%',
|
|
5
|
-
whiteSpace: 'nowrap',
|
|
6
|
-
margin: '0',
|
|
7
|
-
border: '1px solid #D4A007',
|
|
8
|
-
borderRadius: '16px',
|
|
9
|
-
borderCollapse: 'separate',
|
|
10
|
-
borderSpacing: '0',
|
|
11
|
-
tableLayout: 'fixed',
|
|
12
|
-
overflow: 'hidden',
|
|
13
|
-
rows: {
|
|
14
|
-
even: {
|
|
15
|
-
backgroundColor: '#FDFDFD',
|
|
16
|
-
},
|
|
17
|
-
odd: {
|
|
18
|
-
backgroundColor: '#F1F4FB',
|
|
19
|
-
},
|
|
20
|
-
height: '68px',
|
|
21
|
-
},
|
|
22
|
-
cells: {
|
|
23
|
-
padding: '0.5rem 1rem',
|
|
24
|
-
},
|
|
25
|
-
header: {
|
|
26
|
-
stickyTop: true,
|
|
27
|
-
zIndex: 2,
|
|
28
|
-
backgroundColor: '#EFF2FB',
|
|
29
|
-
fontWeight: 'bold',
|
|
30
|
-
textAlign: 'left',
|
|
31
|
-
padding: '12px 16px',
|
|
32
|
-
height: '40px',
|
|
33
|
-
},
|
|
34
|
-
footer: {
|
|
35
|
-
stickyBottom: true,
|
|
36
|
-
zIndex: 2,
|
|
37
|
-
padding: '3px',
|
|
38
|
-
},
|
|
39
|
-
// body: {
|
|
40
|
-
// background: '#fff',
|
|
41
|
-
// padding: '4px 5px',
|
|
42
|
-
// textAlign: 'center',
|
|
43
|
-
// },
|
|
44
|
-
// firstColumn: {
|
|
45
|
-
// stickyLeft: true,
|
|
46
|
-
// zIndex: 1,
|
|
47
|
-
// },
|
|
48
|
-
lastColumn: {
|
|
49
|
-
stickyRight: true,
|
|
50
|
-
zIndex: 1,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ObjectState } from '../../models/object-state';
|
|
2
|
-
import { SingleSignOn } from '../../models/single-sign-on';
|
|
3
|
-
|
|
4
|
-
export const mockData: SingleSignOn[] = new Array(10).fill(1).map((id, i) => ({
|
|
5
|
-
Name: `Name ${id + i}`,
|
|
6
|
-
Id: id,
|
|
7
|
-
id: id.toString(),
|
|
8
|
-
Description: `Sign in option ${id + i}`,
|
|
9
|
-
Logo: `./assets/images/test-logo.png`,
|
|
10
|
-
Link: `Link ${id + i}`,
|
|
11
|
-
CreatedAt: new Date(),
|
|
12
|
-
UpdatedAt: new Date(),
|
|
13
|
-
DataState: ObjectState.New,
|
|
14
|
-
TenantId: `Tenant ${id + i}`,
|
|
15
|
-
Code: '',
|
|
16
|
-
ServiceName: '',
|
|
17
|
-
}));
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
<form
|
|
2
|
-
[formGroup]="form"
|
|
3
|
-
class="flex flex-col px-3 pb-3 rounded-xl h-full w-full relative"
|
|
4
|
-
>
|
|
5
|
-
<verbena-input
|
|
6
|
-
name="Name"
|
|
7
|
-
label="Name:"
|
|
8
|
-
formControlName="Name"
|
|
9
|
-
[(ngModel)]="currentData?.data.Name"
|
|
10
|
-
/>
|
|
11
|
-
<verbena-input
|
|
12
|
-
label="Description:"
|
|
13
|
-
name="Description"
|
|
14
|
-
formControlName="Description"
|
|
15
|
-
[(ngModel)]="currentData?.data.Description"
|
|
16
|
-
/>
|
|
17
|
-
<verbena-input
|
|
18
|
-
label="Link:"
|
|
19
|
-
name="Link"
|
|
20
|
-
formControlName="Link"
|
|
21
|
-
[(ngModel)]="currentData?.data.Link"
|
|
22
|
-
/>
|
|
23
|
-
<span class="block my-2 ">Logo</span>
|
|
24
|
-
<label [style.background-color]="'#f9f9f9'" class="border cursor-pointer border-secondary-200 rounded-md w-full px-4 py-2 flex justify-between">
|
|
25
|
-
<span *ngIf="!uploadedFileName">{{isUploading?"uploading...":"Upload a photo"}}</span>
|
|
26
|
-
<span *ngIf="fileUploadError" class="error">{{ fileUploadError }}</span>
|
|
27
|
-
<div *ngIf="uploadedFileName" class="flex items-center text-sm gap-2 border border-primary rounded-lg px-3 ">
|
|
28
|
-
<span>{{ uploadedFileName }}</span>
|
|
29
|
-
<button
|
|
30
|
-
[style.color]="'black'"
|
|
31
|
-
type="button"
|
|
32
|
-
(click)="removeFile()"
|
|
33
|
-
>
|
|
34
|
-
✕
|
|
35
|
-
</button>
|
|
36
|
-
</div>
|
|
37
|
-
<input
|
|
38
|
-
id="logo"
|
|
39
|
-
[type]="'file'"
|
|
40
|
-
label="Logo:"
|
|
41
|
-
name="Logo"
|
|
42
|
-
accept="image/png"
|
|
43
|
-
formControlName="Logo"
|
|
44
|
-
(change)="onFileSelected($event)"
|
|
45
|
-
formControlName="Logo"
|
|
46
|
-
/>
|
|
47
|
-
<span class="flex gap-2">
|
|
48
|
-
<span class="bg-primary flex icon-container rounded-md justify-center items-center">
|
|
49
|
-
<img src="./assets/icons/cam.png" class="icon-width"/>
|
|
50
|
-
</span>
|
|
51
|
-
<span class="bg-primary flex icon-container rounded-md justify-center items-center">
|
|
52
|
-
<img src="./assets/icons/file.png" class="icon-width2"/>
|
|
53
|
-
</span>
|
|
54
|
-
</span>
|
|
55
|
-
</label>
|
|
56
|
-
|
|
57
|
-
<!-- buttons -->
|
|
58
|
-
<div
|
|
59
|
-
class="flex justify-between bottom-8 left-0 right-0 px-3 pb-2 absolute"
|
|
60
|
-
style="
|
|
61
|
-
display: flex;
|
|
62
|
-
justify-content: space-between;
|
|
63
|
-
position: absolute;
|
|
64
|
-
padding: 8px 12px;
|
|
65
|
-
right: 0;
|
|
66
|
-
left: 0;
|
|
67
|
-
bottom: 32;
|
|
68
|
-
"
|
|
69
|
-
>
|
|
70
|
-
<!-- <verbena-button
|
|
71
|
-
text="Delete"
|
|
72
|
-
class="bg-secondary-200 text-[black]"
|
|
73
|
-
(click)="onDelete()"
|
|
74
|
-
/>
|
|
75
|
-
<verbena-button
|
|
76
|
-
text="Save"
|
|
77
|
-
class="bg-primary text-[black]"
|
|
78
|
-
(click)="onSave()"
|
|
79
|
-
/>
|
|
80
|
-
|
|
81
|
-
<verbena-button
|
|
82
|
-
text="Secondary Button"
|
|
83
|
-
styleType="secondary"
|
|
84
|
-
></verbena-button> -->
|
|
85
|
-
<verbena-button
|
|
86
|
-
width="114px"
|
|
87
|
-
height="39px"
|
|
88
|
-
text="Delete"
|
|
89
|
-
[bgColor]="'#999999'"
|
|
90
|
-
[textColor]="'#404040'"
|
|
91
|
-
borderRadius="10px"
|
|
92
|
-
></verbena-button>
|
|
93
|
-
<verbena-button
|
|
94
|
-
(click)="switchView.emit()"
|
|
95
|
-
text="Switch To Table"
|
|
96
|
-
styleType="ylw-outline"
|
|
97
|
-
></verbena-button>
|
|
98
|
-
<verbena-button
|
|
99
|
-
text="Save"
|
|
100
|
-
bgColor="#28a745"
|
|
101
|
-
textColor="#404040"
|
|
102
|
-
borderRadius="10px"
|
|
103
|
-
pd="10px 20px"
|
|
104
|
-
[bgColor]="'#FFE681'"
|
|
105
|
-
width="114px"
|
|
106
|
-
height="39px"
|
|
107
|
-
></verbena-button>
|
|
108
|
-
</div>
|
|
109
|
-
</form>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SsoFormComponent } from './sso-form.component';
|
|
4
|
-
|
|
5
|
-
describe('SsoFormComponent', () => {
|
|
6
|
-
let component: SsoFormComponent;
|
|
7
|
-
let fixture: ComponentFixture<SsoFormComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [SsoFormComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(SsoFormComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CardData } from 'verben-ng-ui';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'lib-sso-form',
|
|
8
|
-
templateUrl: './sso-form.component.html',
|
|
9
|
-
styleUrl: './sso-form.component.css',
|
|
10
|
-
})
|
|
11
|
-
export class SsoFormComponent {
|
|
12
|
-
isUploading: boolean = false;
|
|
13
|
-
uploadedFileName: string | null = null;
|
|
14
|
-
fileUploadError: string | null = null;
|
|
15
|
-
@Input() currentData:CardData|null=null
|
|
16
|
-
@Output() switchView = new EventEmitter<undefined>();
|
|
17
|
-
|
|
18
|
-
form: FormGroup;
|
|
19
|
-
|
|
20
|
-
constructor(private fb: FormBuilder) {
|
|
21
|
-
this.form = this.fb.group({
|
|
22
|
-
Description: [''],
|
|
23
|
-
Name: [''],
|
|
24
|
-
Link: [''],
|
|
25
|
-
Logo: [''],
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
ngOnInit(): void {}
|
|
30
|
-
|
|
31
|
-
onSave(): void {
|
|
32
|
-
if (this.form.valid) {
|
|
33
|
-
// Emit save event with form value
|
|
34
|
-
console.log('Form saved:', this.form.value);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
onDelete(): void {
|
|
38
|
-
// Emit delete event
|
|
39
|
-
console.log('Delete requested');
|
|
40
|
-
}
|
|
41
|
-
onFileSelected(event: Event) {
|
|
42
|
-
const input = event.target as HTMLInputElement;
|
|
43
|
-
if (input.files && input.files.length > 0) {
|
|
44
|
-
const file = input.files[0];
|
|
45
|
-
this.fileUploadError = null;
|
|
46
|
-
if (!file) {
|
|
47
|
-
this.isUploading = true;
|
|
48
|
-
}
|
|
49
|
-
if (file.size > 5000000) {
|
|
50
|
-
this.fileUploadError = 'File size exceeds 5MB limit.';
|
|
51
|
-
this.uploadedFileName = null;
|
|
52
|
-
this.isUploading = false; // Reset isUploading state
|
|
53
|
-
} else {
|
|
54
|
-
this.uploadedFileName = file.name;
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
this.isUploading = false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
removeFile() {
|
|
62
|
-
this.uploadedFileName = null;
|
|
63
|
-
this.fileUploadError = null;
|
|
64
|
-
const fileInput = document.getElementById('attachment') as HTMLInputElement;
|
|
65
|
-
if (fileInput) {
|
|
66
|
-
fileInput.value = '';
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ColumnDefinition } from 'verben-ng-ui';
|
|
3
|
-
import { SingleSignOn } from '../../models/single-sign-on';
|
|
4
|
-
|
|
5
|
-
export const columns: ColumnDefinition<SingleSignOn>[] = [
|
|
6
|
-
{
|
|
7
|
-
id: 'createdAt',
|
|
8
|
-
header: 'Created',
|
|
9
|
-
accessorKey: 'CreatedAt',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: 'name',
|
|
13
|
-
header: 'Name',
|
|
14
|
-
accessorKey: 'Name',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'description',
|
|
18
|
-
header: 'Description',
|
|
19
|
-
accessorKey: 'Description',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: 'link',
|
|
23
|
-
header: 'Link',
|
|
24
|
-
accessorKey: 'Link',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: 'logo',
|
|
28
|
-
header: 'Logo',
|
|
29
|
-
accessorKey: 'Logo',
|
|
30
|
-
},
|
|
31
|
-
{ id: 'actions', header: 'Actions', accessorKey: 'Name' },
|
|
32
|
-
];
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.flex {
|
|
2
|
-
display: flex;
|
|
3
|
-
}
|
|
4
|
-
.w-full {
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
.bg-secondary-200 {
|
|
8
|
-
background-color: #e8eaf1;
|
|
9
|
-
}
|
|
10
|
-
.flex-col {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
.items-center{
|
|
14
|
-
align-items: center;
|
|
15
|
-
}
|
|
16
|
-
.bg-primary {
|
|
17
|
-
background-color: #d4a007;
|
|
18
|
-
}
|
|
19
|
-
.border-primary{
|
|
20
|
-
border:1px solid #d4a007;
|
|
21
|
-
}
|
|
22
|
-
.rounded-lg{
|
|
23
|
-
border-radius: 20px;
|
|
24
|
-
}
|
|
25
|
-
.w-3 {
|
|
26
|
-
width: 6px;
|
|
27
|
-
}
|
|
28
|
-
.rounded-tr-none {
|
|
29
|
-
border-top-right-radius: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.rounded-br-none {
|
|
33
|
-
border-bottom-right-radius: 0;
|
|
34
|
-
}
|
|
35
|
-
.bg-secondary-100 {
|
|
36
|
-
background-color: rgba(128, 128, 128, 0.055);
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
.bg-secondary{
|
|
40
|
-
background-color: #E8EAF1;
|
|
41
|
-
}
|
|
42
|
-
.p-2{
|
|
43
|
-
padding: 6px;
|
|
44
|
-
}
|
|
45
|
-
.logo-width{
|
|
46
|
-
width: 70px;
|
|
47
|
-
}
|