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,208 +0,0 @@
|
|
|
1
|
-
<div class="space-y-8">
|
|
2
|
-
<verben-data-view
|
|
3
|
-
#vdv
|
|
4
|
-
[viewState]="{
|
|
5
|
-
isSearch: true,
|
|
6
|
-
isColumn: true,
|
|
7
|
-
isFilter: true,
|
|
8
|
-
isSort: true,
|
|
9
|
-
isExport: true,
|
|
10
|
-
isSelect: true,
|
|
11
|
-
isToggle:true
|
|
12
|
-
}"
|
|
13
|
-
[buttonClass]="'my-custom-button-class'"
|
|
14
|
-
[iconClass]="'my-icon-class'"
|
|
15
|
-
[activeIconClass]="'my-active-icon-class'"
|
|
16
|
-
[selectedSortCount]="selectedSortCount"
|
|
17
|
-
[selectedColumnCount]="selectedColumnCount"
|
|
18
|
-
[selectedFilterTableCount]="selectedFilterTableCount"
|
|
19
|
-
[showColumnChild]="showColumn"
|
|
20
|
-
[showSortChild]="showSort"
|
|
21
|
-
[showFilterChild]="showFilter"
|
|
22
|
-
[isTableView]="false"
|
|
23
|
-
[selectedFilterTableCount]="0"
|
|
24
|
-
[cardIcon]="'list-view'"
|
|
25
|
-
[tableIcon]="'table-view'"
|
|
26
|
-
(viewChange)="onViewChange($event)"
|
|
27
|
-
(stateChange)="onStateChange($event)"
|
|
28
|
-
>
|
|
29
|
-
<div table-content>
|
|
30
|
-
<lib-data-table
|
|
31
|
-
[data]="data"
|
|
32
|
-
[columns]="filteredColumns"
|
|
33
|
-
[styleConfig]="styles"
|
|
34
|
-
(selectionChange)="onSelectionChange($event)"
|
|
35
|
-
>
|
|
36
|
-
<ng-container libColumn="createdAt">
|
|
37
|
-
<ng-template #cell let-value>
|
|
38
|
-
{{ value | date }}
|
|
39
|
-
</ng-template>
|
|
40
|
-
</ng-container>
|
|
41
|
-
<ng-container libColumn="logo">
|
|
42
|
-
<ng-template #cell let-value>
|
|
43
|
-
<img class="logo-width" [src]="value"/>
|
|
44
|
-
</ng-template>
|
|
45
|
-
</ng-container>
|
|
46
|
-
<ng-container libColumn="actions">
|
|
47
|
-
<ng-template #cell let-value let-deleteRow let-rowIndex>
|
|
48
|
-
<div class="flex space-x-8" style="display: flex; gap: 24px">
|
|
49
|
-
<verben-svg
|
|
50
|
-
(click)="openDetailView(value)"
|
|
51
|
-
icon="edit"
|
|
52
|
-
[width]="15"
|
|
53
|
-
[height]="15"
|
|
54
|
-
stroke="#3479E9"
|
|
55
|
-
fill="white"
|
|
56
|
-
class="cursor-pointer"
|
|
57
|
-
></verben-svg>
|
|
58
|
-
<verben-svg
|
|
59
|
-
icon="delete"
|
|
60
|
-
[width]="15"
|
|
61
|
-
[height]="15"
|
|
62
|
-
stroke="#E20000"
|
|
63
|
-
(click)="deleteRow()"
|
|
64
|
-
class="cursor-pointer"
|
|
65
|
-
></verben-svg>
|
|
66
|
-
</div>
|
|
67
|
-
</ng-template>
|
|
68
|
-
<ng-template #header>
|
|
69
|
-
<strong>Actions</strong>
|
|
70
|
-
</ng-template>
|
|
71
|
-
</ng-container>
|
|
72
|
-
</lib-data-table>
|
|
73
|
-
</div>
|
|
74
|
-
<div card-content>
|
|
75
|
-
<verben-card-data-view
|
|
76
|
-
borderRadius="12px"
|
|
77
|
-
(loadMoreClick)="loadMore()"
|
|
78
|
-
#vdcv
|
|
79
|
-
dataId="Link"
|
|
80
|
-
border="5px"
|
|
81
|
-
[cardDataList]="cardData"
|
|
82
|
-
rbgColor="#f5f6f9"
|
|
83
|
-
>
|
|
84
|
-
<verben-left-card-data-view class="">
|
|
85
|
-
<verben-left-card-data
|
|
86
|
-
#vlcd
|
|
87
|
-
[parent]="vdcv"
|
|
88
|
-
dataId="Link"
|
|
89
|
-
class="bg-secondary-100 rounded-xl border-primary border-[1px]"
|
|
90
|
-
[cardDataList]="cardData"
|
|
91
|
-
>
|
|
92
|
-
<ng-template #card let-item>
|
|
93
|
-
<div (click)="currentData = vdcv.onItemClick(item)" class="flex">
|
|
94
|
-
<verben-svg
|
|
95
|
-
[width]="15"
|
|
96
|
-
[height]="15"
|
|
97
|
-
(click)="vlcd.showChildren(item)"
|
|
98
|
-
[ngClass]="vlcd.showToggle(item) ? 'visible' : 'invisible'"
|
|
99
|
-
class="items-center flex pr-1 cursor-pointer"
|
|
100
|
-
[icon]="item.isChildrenExpanded ? 'minus' : 'plus'"
|
|
101
|
-
/>
|
|
102
|
-
<div
|
|
103
|
-
(click)="currentData = vdcv.onItemClick(item)"
|
|
104
|
-
class="flex cursor-pointer w-full bg-secondary rounded-xl"
|
|
105
|
-
>
|
|
106
|
-
<div
|
|
107
|
-
class="w-3 rounded-xl rounded-tr-none rounded-br-none"
|
|
108
|
-
[ngClass]="
|
|
109
|
-
item.selected ? 'bg-primary' : 'bg-secondary-200'
|
|
110
|
-
"
|
|
111
|
-
></div>
|
|
112
|
-
<div class="flex flex-col py-2 px-4 w-full">
|
|
113
|
-
<div class="flex">
|
|
114
|
-
<span class="font-bold text-sm">{{ item.data.Name }}</span>
|
|
115
|
-
</div>
|
|
116
|
-
@for (ciItem of item.body; track ciItem.value) {
|
|
117
|
-
<div class="flex items-center justify-between gap-2">
|
|
118
|
-
<div>
|
|
119
|
-
<span class="text-muted font-light text-xs"
|
|
120
|
-
>{{ ciItem.title }}:</span
|
|
121
|
-
>
|
|
122
|
-
<span class="text-black text-xs font-semibold">{{ item.data.Description }}</span>
|
|
123
|
-
</div>
|
|
124
|
-
<img class="logo-width" [alt]="ciItem.title" [src]="item.data.Logo"/>
|
|
125
|
-
</div>
|
|
126
|
-
}
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</ng-template>
|
|
131
|
-
</verben-left-card-data>
|
|
132
|
-
</verben-left-card-data-view>
|
|
133
|
-
|
|
134
|
-
<verben-right-card-data-view>
|
|
135
|
-
<ng-template #parent>
|
|
136
|
-
<lib-sso-form
|
|
137
|
-
[currentData]="currentData"
|
|
138
|
-
(switchView)="vdv.toggleView()"
|
|
139
|
-
></lib-sso-form>
|
|
140
|
-
</ng-template>
|
|
141
|
-
</verben-right-card-data-view>
|
|
142
|
-
|
|
143
|
-
<verben-card-data-view-footer class="float-right">
|
|
144
|
-
<div class="flex gap-2 mt-1">
|
|
145
|
-
<span class="paginator-text"
|
|
146
|
-
>{{ cardData.length }} records loaded</span
|
|
147
|
-
>
|
|
148
|
-
<button (click)="loadMore()" class="load-more">Load more</button>
|
|
149
|
-
</div>
|
|
150
|
-
</verben-card-data-view-footer>
|
|
151
|
-
</verben-card-data-view>
|
|
152
|
-
</div>
|
|
153
|
-
<div column-content>
|
|
154
|
-
<verben-visible-column
|
|
155
|
-
(columnsUpdated)="onColumnsUpdated($event)"
|
|
156
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
157
|
-
borderRadius="10px"
|
|
158
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
159
|
-
bgColor="white"
|
|
160
|
-
width="400px"
|
|
161
|
-
textColor="black"
|
|
162
|
-
pd="1rem"
|
|
163
|
-
primaryColor="#FFE681"
|
|
164
|
-
secondaryColor="#3479E9"
|
|
165
|
-
[columns]="visibleColumns"
|
|
166
|
-
[displayedColumns]="5"
|
|
167
|
-
></verben-visible-column>
|
|
168
|
-
</div>
|
|
169
|
-
<div filter-content>
|
|
170
|
-
<verben-table-filter
|
|
171
|
-
(filtersApplied)="onFilterApplied($event)"
|
|
172
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
173
|
-
borderRadius="10px"
|
|
174
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
175
|
-
bgColor="white"
|
|
176
|
-
width="420px"
|
|
177
|
-
textColor="black"
|
|
178
|
-
pd="1rem"
|
|
179
|
-
primaryColor="#FFE681"
|
|
180
|
-
secondaryColor="#3479E9"
|
|
181
|
-
tertiaryColor="#404040"
|
|
182
|
-
[filterOptions]="filterArray"
|
|
183
|
-
[maxFilterLength]="3"
|
|
184
|
-
></verben-table-filter>
|
|
185
|
-
</div>
|
|
186
|
-
<div sort-content>
|
|
187
|
-
<verben-sort-table
|
|
188
|
-
(selectedOptions)="onSortUpdated($event)"
|
|
189
|
-
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
190
|
-
borderRadius="10px"
|
|
191
|
-
boxShadow="2px 2px 2px 0px silver"
|
|
192
|
-
bgColor="white"
|
|
193
|
-
width="400px"
|
|
194
|
-
textColor="black"
|
|
195
|
-
pd="1rem"
|
|
196
|
-
primaryColor="#FFE681"
|
|
197
|
-
secondaryColor="#3479E9"
|
|
198
|
-
tertiaryColor="#404040"
|
|
199
|
-
[enableDragAndDrop]="true"
|
|
200
|
-
[sortOptions]="sortOptions"
|
|
201
|
-
></verben-sort-table>
|
|
202
|
-
</div>
|
|
203
|
-
<div export-content>
|
|
204
|
-
<lib-data-export [data]="data" (exportDataEvent)="handleExport($event)">
|
|
205
|
-
</lib-data-export>
|
|
206
|
-
</div>
|
|
207
|
-
</verben-data-view>
|
|
208
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SsoComponent } from './sso.component';
|
|
4
|
-
|
|
5
|
-
describe('SsoComponent', () => {
|
|
6
|
-
let component: SsoComponent;
|
|
7
|
-
let fixture: ComponentFixture<SsoComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [SsoComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(SsoComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild } from '@angular/core';
|
|
2
|
-
import { columns } from './sso.columns';
|
|
3
|
-
import { mockData } from './helper';
|
|
4
|
-
import { baseStyle } from './base-table-style';
|
|
5
|
-
import {
|
|
6
|
-
CardData,
|
|
7
|
-
CardDataViewComponent,
|
|
8
|
-
ColumnDefinition,
|
|
9
|
-
DataFilterType,
|
|
10
|
-
DataViewComponent,
|
|
11
|
-
IDataFilter,
|
|
12
|
-
} from 'verben-ng-ui';
|
|
13
|
-
import { SingleSignOn } from '../../models/single-sign-on';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'lib-sso',
|
|
19
|
-
templateUrl: './sso.component.html',
|
|
20
|
-
styleUrl: './sso.component.css',
|
|
21
|
-
})
|
|
22
|
-
export class SsoComponent {
|
|
23
|
-
@ViewChild('vdcv') cardDataView!: CardDataViewComponent;
|
|
24
|
-
@ViewChild('vdv') dataView!: DataViewComponent;
|
|
25
|
-
|
|
26
|
-
columns = columns;
|
|
27
|
-
data = mockData;
|
|
28
|
-
filteredColumns: ColumnDefinition<SingleSignOn>[] =columns
|
|
29
|
-
styles = baseStyle;
|
|
30
|
-
currentData: CardData | null = null;
|
|
31
|
-
isGridView = true;
|
|
32
|
-
selected: CardData | null = null;
|
|
33
|
-
|
|
34
|
-
cardData: CardData[] = mockData.map(({ Name, Description, Link,Logo }) => ({
|
|
35
|
-
selected: false,
|
|
36
|
-
title: Name,
|
|
37
|
-
data: { Name, Description,Link,Logo } as Partial<SingleSignOn>,
|
|
38
|
-
body: [
|
|
39
|
-
{ title: 'Description', value:Description??'' },
|
|
40
|
-
],
|
|
41
|
-
children: [],
|
|
42
|
-
}));
|
|
43
|
-
|
|
44
|
-
openDetailView(name: string) {
|
|
45
|
-
const cardItem = this.getCardDataByMailAddress(name);
|
|
46
|
-
if (cardItem && this.cardDataView) {
|
|
47
|
-
this.dataView.toggleView();
|
|
48
|
-
this.cardData.forEach((item) => {
|
|
49
|
-
item.selected = false;
|
|
50
|
-
if (item.children) {
|
|
51
|
-
item.children.forEach((child) => (child.selected = false));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
cardItem.selected = true;
|
|
56
|
-
this.currentData = this.cardDataView.onItemClick(cardItem);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
getCardDataByMailAddress(name: string): CardData | undefined {
|
|
61
|
-
return this.cardData.find(({ data }) => data.Name === name);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
onViewChange(isGridView: boolean): void {
|
|
65
|
-
isGridView=isGridView
|
|
66
|
-
|
|
67
|
-
if (this.currentData) {
|
|
68
|
-
this.cardDataView?.clearData();
|
|
69
|
-
this.currentData = null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (this.selected) {
|
|
73
|
-
this.cardDataView.onItemClick(this.selected);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
openFormView(index: number) {
|
|
78
|
-
const item = this.cardData[index];
|
|
79
|
-
console.log('ITEM = ', item);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
handleExport(exportedData: Partial<any>[]) {
|
|
83
|
-
console.log('Exported data:', exportedData);
|
|
84
|
-
this.downloadCSV(exportedData);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @param data Simple csv export for testing
|
|
90
|
-
*/
|
|
91
|
-
private downloadCSV(data: Partial<any>[]) {
|
|
92
|
-
const headers = Object.keys(data[0]);
|
|
93
|
-
const csvContent = [
|
|
94
|
-
headers.join(','),
|
|
95
|
-
...data.map((row) => headers.map((header) => row[header]).join(',')),
|
|
96
|
-
].join('\n');
|
|
97
|
-
|
|
98
|
-
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
|
99
|
-
const link = document.createElement('a');
|
|
100
|
-
if (link.download !== undefined) {
|
|
101
|
-
const url = URL.createObjectURL(blob);
|
|
102
|
-
link.setAttribute('href', url);
|
|
103
|
-
link.setAttribute('download', 'export.csv');
|
|
104
|
-
link.style.visibility = 'hidden';
|
|
105
|
-
document.body.appendChild(link);
|
|
106
|
-
link.click();
|
|
107
|
-
document.body.removeChild(link);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
onSelectionChange(selectedRows:SingleSignOn[]) {
|
|
112
|
-
console.log('Selection changed:', selectedRows);
|
|
113
|
-
// Handle the selection change
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Copied over from card view doc until I understand usage
|
|
118
|
-
*/
|
|
119
|
-
selectedColumnCount: number = 0;
|
|
120
|
-
selectedFilterTableCount: number = 0;
|
|
121
|
-
isOPen: boolean = true;
|
|
122
|
-
selectedSortCount: number = 0;
|
|
123
|
-
showColumn: boolean = false;
|
|
124
|
-
showSort: boolean = false;
|
|
125
|
-
showExport: boolean = false;
|
|
126
|
-
selectedAll: boolean = false;
|
|
127
|
-
showFilter: boolean = false;
|
|
128
|
-
visibleColumns: IDataFilter[] = columns.map((col) => ({
|
|
129
|
-
checked: false,
|
|
130
|
-
name: typeof col.header === 'string' ? col.header : col.id,
|
|
131
|
-
type: DataFilterType.Bool,
|
|
132
|
-
}));
|
|
133
|
-
filterArray: IDataFilter[] = [
|
|
134
|
-
{
|
|
135
|
-
name: 'Name',
|
|
136
|
-
type: DataFilterType.String,
|
|
137
|
-
checked: false,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'Description',
|
|
141
|
-
type: DataFilterType.String,
|
|
142
|
-
checked: false,
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: 'Logo',
|
|
146
|
-
type: DataFilterType.String,
|
|
147
|
-
checked: false,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'Link',
|
|
151
|
-
type: DataFilterType.String,
|
|
152
|
-
checked: false,
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: 'CreatedAt',
|
|
156
|
-
type: DataFilterType.Date,
|
|
157
|
-
checked: false,
|
|
158
|
-
},
|
|
159
|
-
];
|
|
160
|
-
sortOptions: IDataFilter[] = [
|
|
161
|
-
{
|
|
162
|
-
name: 'Name',
|
|
163
|
-
type: DataFilterType.String,
|
|
164
|
-
checked: false,
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: 'Description',
|
|
168
|
-
type: DataFilterType.String,
|
|
169
|
-
checked: false,
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'Link',
|
|
173
|
-
type: DataFilterType.String,
|
|
174
|
-
checked: false,
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: 'Logo',
|
|
178
|
-
type: DataFilterType.String,
|
|
179
|
-
checked: false,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'CreatedAt',
|
|
183
|
-
type: DataFilterType.Date,
|
|
184
|
-
checked: false,
|
|
185
|
-
},
|
|
186
|
-
];
|
|
187
|
-
clearData() {
|
|
188
|
-
this.currentData = {} as CardData;
|
|
189
|
-
}
|
|
190
|
-
loadMore() {
|
|
191
|
-
this.cardData = this.cardData.concat(this.cardData);
|
|
192
|
-
}
|
|
193
|
-
onColumnChange(event: boolean) {
|
|
194
|
-
this.showColumn = event;
|
|
195
|
-
}
|
|
196
|
-
onSortChange(event: boolean) {
|
|
197
|
-
this.showSort = false
|
|
198
|
-
console.log(event);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
onColumnsUpdated(updatedColumns: IDataFilter[]) {
|
|
203
|
-
this.showColumn = false;
|
|
204
|
-
this.selectedColumnCount = updatedColumns.length;
|
|
205
|
-
|
|
206
|
-
if (updatedColumns) {
|
|
207
|
-
// Filter columns to include only visible ones
|
|
208
|
-
this.filteredColumns = this.columns.filter((col) =>
|
|
209
|
-
this.visibleColumns.find(
|
|
210
|
-
(filter) => filter.name === col.header && filter.checked
|
|
211
|
-
)
|
|
212
|
-
);
|
|
213
|
-
|
|
214
|
-
// Reorder columns based on the order in visibleColumns
|
|
215
|
-
const visibleColumnOrder = this.visibleColumns
|
|
216
|
-
.filter((filter) => filter.checked)
|
|
217
|
-
.map((filter) => filter.name);
|
|
218
|
-
|
|
219
|
-
this.columns.sort((a, b) => {
|
|
220
|
-
const indexA = visibleColumnOrder.indexOf(a.header as string);
|
|
221
|
-
const indexB = visibleColumnOrder.indexOf(b.header as string);
|
|
222
|
-
return indexA - indexB;
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
onFilterApplied(appliedFilter: IDataFilter[]) {
|
|
228
|
-
this.showFilter=false
|
|
229
|
-
if (Array.isArray(appliedFilter)) {
|
|
230
|
-
this.selectedFilterTableCount = appliedFilter.length;
|
|
231
|
-
} else {
|
|
232
|
-
console.log('appliedFilter is not an array');
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
onSortUpdated(updatedSorts: IDataFilter[]) {
|
|
237
|
-
this.onSortChange(false);
|
|
238
|
-
this.selectedSortCount = updatedSorts.length;
|
|
239
|
-
console.log(updatedSorts);
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
onStateChange(event: { key: string; value: boolean }): void {
|
|
244
|
-
switch (event.key) {
|
|
245
|
-
case 'column':
|
|
246
|
-
this.showColumn=event.value
|
|
247
|
-
break;
|
|
248
|
-
case 'sort':
|
|
249
|
-
this.showSort=event.value
|
|
250
|
-
break;
|
|
251
|
-
case 'export':
|
|
252
|
-
this.showExport=event.value
|
|
253
|
-
break;
|
|
254
|
-
case 'filter':
|
|
255
|
-
this.showFilter=event.value
|
|
256
|
-
break;
|
|
257
|
-
default:
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import {
|
|
6
|
-
DataViewModule,
|
|
7
|
-
TableFilterModule,
|
|
8
|
-
SortTableModule,
|
|
9
|
-
DataExportModule,
|
|
10
|
-
VisibleColumnModule,
|
|
11
|
-
VerbenaButtonModule,
|
|
12
|
-
CardDataViewModule,
|
|
13
|
-
SvgModule,
|
|
14
|
-
VerbenaInputModule,
|
|
15
|
-
DataTableModule,
|
|
16
|
-
VerbenaTextareaModule,
|
|
17
|
-
} from 'verben-ng-ui';
|
|
18
|
-
import { SsoComponent } from './sso.component';
|
|
19
|
-
import { SsoFormComponent } from './sso-form/sso-form.component';
|
|
20
|
-
@NgModule({
|
|
21
|
-
declarations: [SsoComponent,SsoFormComponent],
|
|
22
|
-
imports: [
|
|
23
|
-
CommonModule,
|
|
24
|
-
FormsModule,
|
|
25
|
-
ReactiveFormsModule,
|
|
26
|
-
DataViewModule,
|
|
27
|
-
TableFilterModule,
|
|
28
|
-
SortTableModule,
|
|
29
|
-
DataExportModule,
|
|
30
|
-
VisibleColumnModule,
|
|
31
|
-
VerbenaButtonModule,
|
|
32
|
-
CardDataViewModule,
|
|
33
|
-
VerbenaInputModule,
|
|
34
|
-
SvgModule,
|
|
35
|
-
VerbenaTextareaModule,
|
|
36
|
-
DataTableModule,
|
|
37
|
-
],
|
|
38
|
-
exports: [SsoComponent],
|
|
39
|
-
})
|
|
40
|
-
export class SsoModule {}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<section
|
|
2
|
-
[ngStyle]="styles"
|
|
3
|
-
class="{{ customClass }}"
|
|
4
|
-
>
|
|
5
|
-
<h3 class="{{headlingClass}}">{{headlingText}}</h3>
|
|
6
|
-
<div class="otpWrapper">
|
|
7
|
-
<p class="{{paragraphClass}}">Enter the {{length}} digit code sent to you</p>
|
|
8
|
-
<verben-otp-input
|
|
9
|
-
[length]="length"
|
|
10
|
-
(otpChange)="onOtpChange($event)"
|
|
11
|
-
[otpClass]="otpClass"
|
|
12
|
-
></verben-otp-input>
|
|
13
|
-
</div>
|
|
14
|
-
<lib-button
|
|
15
|
-
[buttonClass]="btnClass"
|
|
16
|
-
[color]="btnColor"
|
|
17
|
-
[border]="btnBorder"
|
|
18
|
-
[borderRadius]="btnBorderRadius"
|
|
19
|
-
[bgColor]="btnBgColor"
|
|
20
|
-
[pd]="btnPd"
|
|
21
|
-
[text]="btnText"
|
|
22
|
-
(buttonClick)="submitData()"
|
|
23
|
-
[disabled]="!otpForm.valid"
|
|
24
|
-
></lib-button>
|
|
25
|
-
<p class="resendWrapper">
|
|
26
|
-
Didn’t get a code?
|
|
27
|
-
<a class="{{resendClass}}" (click)="resendOtp()">Resend</a>
|
|
28
|
-
</p>
|
|
29
|
-
|
|
30
|
-
</section>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { TwoFactorAuthOtpComponent } from './two-factor-auth-otp.component';
|
|
4
|
-
|
|
5
|
-
describe('TwoFactorAuthOtpComponent', () => {
|
|
6
|
-
let component: TwoFactorAuthOtpComponent;
|
|
7
|
-
let fixture: ComponentFixture<TwoFactorAuthOtpComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [TwoFactorAuthOtpComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(TwoFactorAuthOtpComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|