verben-authentication-ui 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ng-package.json +8 -0
- package/package.json +10 -15
- package/src/lib/base/base-data.component.ts +86 -0
- package/src/lib/base/base-data.facade.ts +157 -0
- package/src/lib/base/base-data.service.ts +49 -0
- package/src/lib/base/base-data.state.ts +94 -0
- package/src/lib/base/models.ts +14 -0
- package/src/lib/components/auth-callback/auth-callback.component.css +30 -0
- package/src/lib/components/auth-callback/auth-callback.component.html +6 -0
- package/src/lib/components/auth-callback/auth-callback.component.spec.ts +23 -0
- package/src/lib/components/auth-callback/auth-callback.component.ts +56 -0
- package/src/lib/components/auth-callback/auth-callback.module.ts +10 -0
- package/src/lib/components/button/button.component.css +3 -0
- package/src/lib/components/button/button.component.html +13 -0
- package/src/lib/components/button/button.component.spec.ts +23 -0
- package/src/lib/components/button/button.component.ts +24 -0
- package/src/lib/components/button/button.module.ts +11 -0
- package/{lib/components/forgot-password/ForgotPasswordData.d.ts → src/lib/components/forgot-password/ForgotPasswordData.ts} +1 -1
- package/src/lib/components/forgot-password/forgot-password.component.css +46 -0
- package/src/lib/components/forgot-password/forgot-password.component.html +19 -0
- package/src/lib/components/forgot-password/forgot-password.component.spec.ts +23 -0
- package/src/lib/components/forgot-password/forgot-password.component.ts +88 -0
- package/src/lib/components/forgot-password/forgot-password.module.ts +18 -0
- package/src/lib/components/mail/mail.component.css +0 -0
- package/src/lib/components/mail/mail.component.html +11 -0
- package/src/lib/components/mail/mail.component.spec.ts +23 -0
- package/src/lib/components/mail/mail.component.ts +47 -0
- package/src/lib/components/mail/mail.module.ts +13 -0
- package/src/lib/components/mail-validation/mail-validation.component.css +59 -0
- package/src/lib/components/mail-validation/mail-validation.component.html +37 -0
- package/src/lib/components/mail-validation/mail-validation.component.spec.ts +23 -0
- package/src/lib/components/mail-validation/mail-validation.component.ts +66 -0
- package/src/lib/components/mail-validation/mail-validation.module.ts +18 -0
- package/src/lib/components/o-auth/o-auth.component.css +26 -0
- package/src/lib/components/o-auth/o-auth.component.html +26 -0
- package/src/lib/components/o-auth/o-auth.component.spec.ts +23 -0
- package/src/lib/components/o-auth/o-auth.component.ts +115 -0
- package/src/lib/components/o-auth/o-auth.module.ts +11 -0
- package/src/lib/components/otp-input/otp-input.component.css +19 -0
- package/src/lib/components/otp-input/otp-input.component.html +15 -0
- package/src/lib/components/otp-input/otp-input.component.spec.ts +23 -0
- package/src/lib/components/otp-input/otp-input.component.ts +88 -0
- package/src/lib/components/otp-input/otp-input.module.ts +15 -0
- package/src/lib/components/reset-password/ResetPasswordData.ts +5 -0
- package/src/lib/components/reset-password/reset-password.component.css +29 -0
- package/src/lib/components/reset-password/reset-password.component.html +24 -0
- package/src/lib/components/reset-password/reset-password.component.spec.ts +23 -0
- package/src/lib/components/reset-password/reset-password.component.ts +108 -0
- package/src/lib/components/reset-password/reset-password.module.ts +18 -0
- package/src/lib/components/role-control/ChildrenType.ts +4 -0
- package/{lib/components/role-control/MappedRole.d.ts → src/lib/components/role-control/MappedRole.ts} +3 -2
- package/{lib/components/role-control/MappedRoleAction.d.ts → src/lib/components/role-control/MappedRoleAction.ts} +2 -1
- package/{lib/components/role-control/MappedRoleContext.d.ts → src/lib/components/role-control/MappedRoleContext.ts} +4 -3
- package/src/lib/components/role-control/UIActions.ts +5 -0
- package/src/lib/components/role-control/UIs.ts +38 -0
- package/src/lib/components/role-control/base-table-style.ts +52 -0
- package/src/lib/components/role-control/role-control.component.css +55 -0
- package/src/lib/components/role-control/role-control.component.html +571 -0
- package/src/lib/components/role-control/role-control.component.spec.ts +23 -0
- package/src/lib/components/role-control/role-control.component.ts +1817 -0
- package/src/lib/components/role-control/role-control.module.ts +10 -0
- package/src/lib/components/role-control/role-control.service.spec.ts +16 -0
- package/src/lib/components/role-control/role-control.service.ts +53 -0
- package/src/lib/components/sign-in/sign-in.component.css +21 -0
- package/src/lib/components/sign-in/sign-in.component.html +83 -0
- package/src/lib/components/sign-in/sign-in.component.spec.ts +23 -0
- package/src/lib/components/sign-in/sign-in.component.ts +267 -0
- package/src/lib/components/sign-in/sign-in.module.ts +17 -0
- package/src/lib/components/sign-up/sign-up.component.css +36 -0
- package/src/lib/components/sign-up/sign-up.component.html +132 -0
- package/src/lib/components/sign-up/sign-up.component.spec.ts +23 -0
- package/src/lib/components/sign-up/sign-up.component.ts +180 -0
- package/src/lib/components/sign-up/sign-up.module.ts +15 -0
- package/src/lib/components/sso/base-table-style.ts +52 -0
- package/src/lib/components/sso/helper.ts +17 -0
- package/src/lib/components/sso/sso-form/sso-form.component.css +13 -0
- package/src/lib/components/sso/sso-form/sso-form.component.html +109 -0
- package/src/lib/components/sso/sso-form/sso-form.component.spec.ts +23 -0
- package/src/lib/components/sso/sso-form/sso-form.component.ts +70 -0
- package/src/lib/components/sso/sso.columns.ts +32 -0
- package/src/lib/components/sso/sso.component.css +47 -0
- package/src/lib/components/sso/sso.component.html +208 -0
- package/src/lib/components/sso/sso.component.spec.ts +23 -0
- package/src/lib/components/sso/sso.component.ts +261 -0
- package/src/lib/components/sso/sso.module.ts +40 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.css +8 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.html +30 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.spec.ts +23 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.ts +155 -0
- package/src/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.ts +15 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.css +17 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.html +45 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.spec.ts +23 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.ts +57 -0
- package/src/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.ts +11 -0
- package/src/lib/components/user-management/base-table-style.ts +52 -0
- package/src/lib/components/user-management/facades/user-management.facades.ts +133 -0
- package/src/lib/components/user-management/helper.ts +38 -0
- package/src/lib/components/user-management/index.ts +4 -0
- package/src/lib/components/user-management/services/user-management.service.spec.ts +16 -0
- package/src/lib/components/user-management/services/user-management.service.ts +111 -0
- package/src/lib/components/user-management/states/user-management.state.ts +65 -0
- package/src/lib/components/user-management/user-management-form/use-management-form.component.ts +73 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.css +0 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.html +80 -0
- package/src/lib/components/user-management/user-management-form/user-management-form.component.spec.ts +23 -0
- package/src/lib/components/user-management/user-management.columns.ts +51 -0
- package/src/lib/components/user-management/user-management.component.css +31 -0
- package/src/lib/components/user-management/user-management.component.html +319 -0
- package/src/lib/components/user-management/user-management.component.spec.ts +23 -0
- package/src/lib/components/user-management/user-management.component.ts +604 -0
- package/src/lib/components/user-management/user-management.module.ts +56 -0
- 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 +8 -0
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.spec.ts +22 -0
- package/src/lib/components/user-management/user-status-badge/user-status-badge.component.ts +22 -0
- package/src/lib/components/user-request/user-request.component.css +91 -0
- package/src/lib/components/user-request/user-request.component.html +137 -0
- package/src/lib/components/user-request/user-request.component.spec.ts +23 -0
- package/src/lib/components/user-request/user-request.component.ts +306 -0
- package/src/lib/components/user-request/user-request.module.ts +20 -0
- package/src/lib/components/user-request-approval/access-request.columns.ts +31 -0
- package/src/lib/components/user-request-approval/base-table-style.ts +52 -0
- package/src/lib/components/user-request-approval/facades/user-access-request.facade.ts +324 -0
- package/src/lib/components/user-request-approval/helper.ts +61 -0
- package/src/lib/components/user-request-approval/services/user-access-request.service.spec.ts +16 -0
- package/src/lib/components/user-request-approval/services/user-access-request.service.ts +122 -0
- package/src/lib/components/user-request-approval/states/user-access-request.state.ts +109 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.css +0 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.html +8 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.spec.ts +23 -0
- package/src/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.ts +22 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.css +6 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.html +269 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.spec.ts +23 -0
- package/src/lib/components/user-request-approval/user-request-approval.component.ts +326 -0
- package/src/lib/components/user-request-approval/user-request-approval.module.ts +54 -0
- package/src/lib/components/user-request-approval/user-request-form/use-request-form.component.ts +98 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.css +0 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.html +94 -0
- package/src/lib/components/user-request-approval/user-request-form/user-request-form.component.spec.ts +23 -0
- 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 +1 -0
- package/src/lib/components/user-request-process/user-request-process.component.spec.ts +23 -0
- package/src/lib/components/user-request-process/user-request-process.component.ts +12 -0
- package/src/lib/components/user-request-process/user-request-process.module.ts +12 -0
- package/src/lib/models/ApplicationRoleAction.ts +10 -0
- package/{lib/models/ApplicationRoleContext.d.ts → src/lib/models/ApplicationRoleContext copy.ts } +6 -5
- package/src/lib/models/ApplicationRoleContext.ts +10 -0
- package/src/lib/models/ErrorResponse.ts +7 -0
- package/src/lib/models/FilterTypes.ts +8 -0
- package/src/lib/models/MailConfig.ts +13 -0
- package/src/lib/models/MessageConfig.ts +5 -0
- package/src/lib/models/MessageMedium.ts +4 -0
- package/src/lib/models/OAuthParam.ts +10 -0
- package/src/lib/models/OAuthType.ts +7 -0
- package/src/lib/models/PagedResult.ts +9 -0
- package/src/lib/models/PasswordRequestParam.ts +5 -0
- package/src/lib/models/PeriodMode.ts +10 -0
- package/{lib/models/PermissionConfig.d.ts → src/lib/models/PermissionConfig.ts} +4 -3
- package/src/lib/models/ReportSchedule.ts +23 -0
- package/src/lib/models/ReportType.ts +5 -0
- package/src/lib/models/ResponseKeyValue.ts +5 -0
- package/{lib/models/Role.d.ts → src/lib/models/Role.ts} +6 -5
- package/src/lib/models/RoleAction.ts +11 -0
- package/src/lib/models/RoleContext.ts +11 -0
- package/src/lib/models/SMSConfig.ts +11 -0
- package/{lib/models/SearchDynamicWrapper.d.ts → src/lib/models/SearchDynamicWrapper.ts} +3 -2
- package/src/lib/models/SearchOperator.ts +4 -0
- package/src/lib/models/SearchPropertySign.ts +9 -0
- package/{lib/models/SearchPropertyValue.d.ts → src/lib/models/SearchPropertyValue.ts} +7 -6
- package/src/lib/models/SearchPropertyValueType.ts +9 -0
- package/src/lib/models/SortDirection.ts +5 -0
- package/{lib/models/Tag.d.ts → src/lib/models/Tag.ts} +4 -3
- package/src/lib/models/TaskNotification.ts +14 -0
- package/src/lib/models/TaskNotificationMessageType.ts +4 -0
- package/src/lib/models/TaskNotificationType.ts +4 -0
- package/src/lib/models/Tenant.ts +22 -0
- package/src/lib/models/TenantConfig.ts +19 -0
- package/src/lib/models/UserRequest.ts +38 -0
- package/src/lib/models/auth-mechanism.ts +15 -0
- package/src/lib/models/base.ts +13 -0
- package/src/lib/models/conditions.ts +11 -0
- package/src/lib/models/log-in.ts +8 -0
- package/{lib/models/mainUser.d.ts → src/lib/models/mainUser.ts} +3 -2
- package/src/lib/models/oauth-resp.ts +6 -0
- package/{lib/models/oauth-response.d.ts → src/lib/models/oauth-response.ts} +1 -1
- package/src/lib/models/object-state.ts +6 -0
- package/{lib/models/otpValue.d.ts → src/lib/models/otpValue.ts} +4 -2
- package/src/lib/models/paged.ts +9 -0
- package/src/lib/models/query-params.ts +9 -0
- package/src/lib/models/request-status.ts +4 -0
- package/src/lib/models/resend-otp-data.ts +8 -0
- package/src/lib/models/resource.ts +27 -0
- package/src/lib/models/sign-up.ts +11 -0
- package/src/lib/models/single-sign-on.ts +9 -0
- package/src/lib/models/status.ts +5 -0
- package/src/lib/models/user-access-request-status.ts +5 -0
- package/{lib/models/user-access-request.d.ts → src/lib/models/user-access-request.ts} +5 -4
- package/src/lib/models/user-object-state.ts +6 -0
- package/src/lib/models/user.ts +19 -0
- package/src/lib/pipes/async-label.pipe.spec.ts +8 -0
- package/src/lib/pipes/async-label.pipe.ts +20 -0
- package/src/lib/services/authorization.service.spec.ts +16 -0
- package/src/lib/services/authorization.service.ts +24 -0
- package/src/lib/services/encryption.service.ts +57 -0
- package/src/lib/services/environment.service.spec.ts +16 -0
- package/src/lib/services/environment.service.ts +30 -0
- package/src/lib/services/http-web-request.service.spec.ts +16 -0
- package/src/lib/services/http-web-request.service.ts +114 -0
- package/src/lib/services/label.service.spec.ts +16 -0
- package/src/lib/services/label.service.ts +177 -0
- package/src/lib/services/util.service.spec.ts +16 -0
- package/src/lib/services/util.service.ts +49 -0
- package/src/lib/shared/shared.module.ts +55 -0
- package/{public-api.d.ts → src/public-api.ts} +24 -0
- package/src/styles.css +96 -0
- package/src/theme/tailwind-setup.css +3 -0
- package/src/theme/tailwind.css +1030 -0
- package/src/utils/components/base-data-view.component.ts +131 -0
- package/src/utils/models/DataViewConfig.ts +19 -0
- package/tailwind.config.js +20 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/lib/components/auth-callback/auth-callback.component.mjs +0 -57
- package/esm2022/lib/components/auth-callback/auth-callback.module.mjs +0 -18
- package/esm2022/lib/components/button/button.component.mjs +0 -46
- package/esm2022/lib/components/button/button.module.mjs +0 -20
- package/esm2022/lib/components/forgot-password/ForgotPasswordData.mjs +0 -2
- package/esm2022/lib/components/forgot-password/forgot-password.component.mjs +0 -89
- package/esm2022/lib/components/forgot-password/forgot-password.module.mjs +0 -34
- package/esm2022/lib/components/mail/mail.component.mjs +0 -69
- package/esm2022/lib/components/mail/mail.module.mjs +0 -21
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +0 -108
- package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +0 -34
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +0 -107
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +0 -19
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +0 -86
- package/esm2022/lib/components/otp-input/otp-input.module.mjs +0 -23
- package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +0 -2
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +0 -108
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +0 -34
- package/esm2022/lib/components/role-control/ChildrenType.mjs +0 -6
- package/esm2022/lib/components/role-control/MappedRole.mjs +0 -2
- package/esm2022/lib/components/role-control/MappedRoleAction.mjs +0 -2
- package/esm2022/lib/components/role-control/MappedRoleContext.mjs +0 -2
- package/esm2022/lib/components/role-control/UIActions.mjs +0 -7
- package/esm2022/lib/components/role-control/UIs.mjs +0 -40
- package/esm2022/lib/components/role-control/base-table-style.mjs +0 -53
- package/esm2022/lib/components/role-control/role-control.component.mjs +0 -1364
- package/esm2022/lib/components/role-control/role-control.module.mjs +0 -18
- package/esm2022/lib/components/role-control/role-control.service.mjs +0 -54
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +0 -318
- package/esm2022/lib/components/sign-in/sign-in.module.mjs +0 -24
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +0 -229
- package/esm2022/lib/components/sign-up/sign-up.module.mjs +0 -24
- package/esm2022/lib/components/sso/base-table-style.mjs +0 -53
- package/esm2022/lib/components/sso/helper.mjs +0 -16
- package/esm2022/lib/components/sso/sso-form/sso-form.component.mjs +0 -74
- package/esm2022/lib/components/sso/sso.columns.mjs +0 -29
- package/esm2022/lib/components/sso/sso.component.mjs +0 -236
- package/esm2022/lib/components/sso/sso.module.mjs +0 -63
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +0 -209
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.mjs +0 -22
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.mjs +0 -90
- package/esm2022/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.mjs +0 -19
- package/esm2022/lib/components/user-management/base-table-style.mjs +0 -53
- package/esm2022/lib/components/user-management/services/user-management.service.mjs +0 -88
- package/esm2022/lib/components/user-management/user-management-form/use-management-form.component.mjs +0 -71
- package/esm2022/lib/components/user-management/user-management.columns.mjs +0 -47
- package/esm2022/lib/components/user-management/user-management.component.mjs +0 -475
- package/esm2022/lib/components/user-management/user-management.module.mjs +0 -79
- package/esm2022/lib/components/user-management/user-status-badge/user-status-badge.component.mjs +0 -26
- package/esm2022/lib/components/user-request/user-request.component.mjs +0 -320
- package/esm2022/lib/components/user-request/user-request.module.mjs +0 -38
- package/esm2022/lib/components/user-request-approval/access-request.columns.mjs +0 -29
- package/esm2022/lib/components/user-request-approval/base-table-style.mjs +0 -53
- package/esm2022/lib/components/user-request-approval/facades/user-access-request.facade.mjs +0 -260
- package/esm2022/lib/components/user-request-approval/helper.mjs +0 -56
- package/esm2022/lib/components/user-request-approval/services/user-access-request.service.mjs +0 -93
- package/esm2022/lib/components/user-request-approval/states/user-access-request.state.mjs +0 -92
- package/esm2022/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.mjs +0 -26
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +0 -270
- package/esm2022/lib/components/user-request-approval/user-request-approval.module.mjs +0 -80
- package/esm2022/lib/components/user-request-approval/user-request-form/use-request-form.component.mjs +0 -86
- package/esm2022/lib/models/ApplicationRoleAction.mjs +0 -2
- package/esm2022/lib/models/ApplicationRoleContext.mjs +0 -2
- package/esm2022/lib/models/ErrorResponse.mjs +0 -11
- package/esm2022/lib/models/OAuthParam.mjs +0 -2
- package/esm2022/lib/models/OAuthType.mjs +0 -9
- package/esm2022/lib/models/PagedResult.mjs +0 -2
- package/esm2022/lib/models/PasswordRequestParam.mjs +0 -2
- package/esm2022/lib/models/PermissionConfig.mjs +0 -2
- package/esm2022/lib/models/ResponseKeyValue.mjs +0 -2
- package/esm2022/lib/models/Role.mjs +0 -2
- package/esm2022/lib/models/RoleAction.mjs +0 -2
- package/esm2022/lib/models/RoleContext.mjs +0 -2
- package/esm2022/lib/models/SearchDynamicWrapper.mjs +0 -2
- package/esm2022/lib/models/SearchOperator.mjs +0 -6
- package/esm2022/lib/models/SearchPropertySign.mjs +0 -11
- package/esm2022/lib/models/SearchPropertyValue.mjs +0 -2
- package/esm2022/lib/models/SearchPropertyValueType.mjs +0 -11
- package/esm2022/lib/models/SortDirection.mjs +0 -7
- package/esm2022/lib/models/Tag.mjs +0 -2
- package/esm2022/lib/models/TenantConfig.mjs +0 -2
- package/esm2022/lib/models/UserRequest.mjs +0 -2
- package/esm2022/lib/models/auth-mechanism.mjs +0 -8
- package/esm2022/lib/models/base.mjs +0 -2
- package/esm2022/lib/models/conditions.mjs +0 -13
- package/esm2022/lib/models/log-in.mjs +0 -2
- package/esm2022/lib/models/mainUser.mjs +0 -2
- package/esm2022/lib/models/oauth-resp.mjs +0 -2
- package/esm2022/lib/models/oauth-response.mjs +0 -2
- package/esm2022/lib/models/object-state.mjs +0 -8
- package/esm2022/lib/models/otpValue.mjs +0 -2
- package/esm2022/lib/models/paged.mjs +0 -2
- package/esm2022/lib/models/query-params.mjs +0 -2
- package/esm2022/lib/models/request-status.mjs +0 -5
- package/esm2022/lib/models/resend-otp-data.mjs +0 -2
- package/esm2022/lib/models/sign-up.mjs +0 -2
- package/esm2022/lib/models/single-sign-on.mjs +0 -2
- package/esm2022/lib/models/status.mjs +0 -6
- package/esm2022/lib/models/user-access-request-status.mjs +0 -7
- package/esm2022/lib/models/user-access-request.mjs +0 -2
- package/esm2022/lib/models/user.mjs +0 -2
- package/esm2022/lib/pipes/async-label.pipe.mjs +0 -25
- package/esm2022/lib/services/authorization.service.mjs +0 -26
- package/esm2022/lib/services/encryption.service.mjs +0 -52
- package/esm2022/lib/services/environment.service.mjs +0 -26
- package/esm2022/lib/services/http-web-request.service.mjs +0 -85
- package/esm2022/lib/services/label.service.mjs +0 -134
- package/esm2022/lib/services/util.service.mjs +0 -55
- package/esm2022/lib/shared/shared.module.mjs +0 -84
- package/esm2022/public-api.mjs +0 -48
- package/esm2022/verben-authentication-ui.mjs +0 -5
- package/fesm2022/verben-authentication-ui.mjs +0 -6299
- package/fesm2022/verben-authentication-ui.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/auth-callback/auth-callback.component.d.ts +0 -17
- package/lib/components/auth-callback/auth-callback.module.d.ts +0 -8
- package/lib/components/button/button.component.d.ts +0 -17
- package/lib/components/button/button.module.d.ts +0 -10
- package/lib/components/forgot-password/forgot-password.component.d.ts +0 -29
- package/lib/components/forgot-password/forgot-password.module.d.ts +0 -10
- package/lib/components/mail/mail.component.d.ts +0 -32
- package/lib/components/mail/mail.module.d.ts +0 -11
- package/lib/components/mail-validation/mail-validation.component.d.ts +0 -42
- package/lib/components/mail-validation/mail-validation.module.d.ts +0 -10
- package/lib/components/o-auth/o-auth.component.d.ts +0 -30
- package/lib/components/o-auth/o-auth.module.d.ts +0 -9
- package/lib/components/otp-input/otp-input.component.d.ts +0 -21
- package/lib/components/otp-input/otp-input.module.d.ts +0 -13
- package/lib/components/reset-password/ResetPasswordData.d.ts +0 -5
- package/lib/components/reset-password/reset-password.component.d.ts +0 -30
- package/lib/components/reset-password/reset-password.module.d.ts +0 -10
- package/lib/components/role-control/ChildrenType.d.ts +0 -4
- package/lib/components/role-control/UIActions.d.ts +0 -5
- package/lib/components/role-control/UIs.d.ts +0 -38
- package/lib/components/role-control/base-table-style.d.ts +0 -1
- package/lib/components/role-control/role-control.component.d.ts +0 -121
- package/lib/components/role-control/role-control.module.d.ts +0 -8
- package/lib/components/role-control/role-control.service.d.ts +0 -9
- package/lib/components/sign-in/sign-in.component.d.ts +0 -95
- package/lib/components/sign-in/sign-in.module.d.ts +0 -13
- package/lib/components/sign-up/sign-up.component.d.ts +0 -68
- package/lib/components/sign-up/sign-up.module.d.ts +0 -13
- package/lib/components/sso/base-table-style.d.ts +0 -1
- package/lib/components/sso/helper.d.ts +0 -2
- package/lib/components/sso/sso-form/sso-form.component.d.ts +0 -21
- package/lib/components/sso/sso.columns.d.ts +0 -3
- package/lib/components/sso/sso.component.d.ts +0 -54
- package/lib/components/sso/sso.module.d.ts +0 -11
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.d.ts +0 -67
- package/lib/components/two-factor-auth-otp/two-factor-auth-otp.module.d.ts +0 -12
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.component.d.ts +0 -39
- package/lib/components/two-factor-auth-setup/two-factor-auth-setup.module.d.ts +0 -9
- package/lib/components/user-management/base-table-style.d.ts +0 -1
- package/lib/components/user-management/services/user-management.service.d.ts +0 -44
- package/lib/components/user-management/user-management-form/use-management-form.component.d.ts +0 -22
- package/lib/components/user-management/user-management.columns.d.ts +0 -3
- package/lib/components/user-management/user-management.component.d.ts +0 -123
- package/lib/components/user-management/user-management.module.d.ts +0 -14
- package/lib/components/user-management/user-status-badge/user-status-badge.component.d.ts +0 -12
- package/lib/components/user-request/user-request.component.d.ts +0 -80
- package/lib/components/user-request/user-request.module.d.ts +0 -11
- package/lib/components/user-request-approval/access-request.columns.d.ts +0 -3
- package/lib/components/user-request-approval/base-table-style.d.ts +0 -1
- package/lib/components/user-request-approval/facades/user-access-request.facade.d.ts +0 -39
- package/lib/components/user-request-approval/helper.d.ts +0 -7
- package/lib/components/user-request-approval/services/user-access-request.service.d.ts +0 -65
- package/lib/components/user-request-approval/states/user-access-request.state.d.ts +0 -35
- package/lib/components/user-request-approval/user-access-request-status-badge/user-access-request-status-badge.component.d.ts +0 -12
- package/lib/components/user-request-approval/user-request-approval.component.d.ts +0 -69
- package/lib/components/user-request-approval/user-request-approval.module.d.ts +0 -12
- package/lib/components/user-request-approval/user-request-form/use-request-form.component.d.ts +0 -25
- package/lib/models/ApplicationRoleAction.d.ts +0 -9
- package/lib/models/ErrorResponse.d.ts +0 -6
- package/lib/models/OAuthParam.d.ts +0 -9
- package/lib/models/OAuthType.d.ts +0 -7
- package/lib/models/PagedResult.d.ts +0 -9
- package/lib/models/PasswordRequestParam.d.ts +0 -5
- package/lib/models/ResponseKeyValue.d.ts +0 -5
- package/lib/models/RoleAction.d.ts +0 -10
- package/lib/models/RoleContext.d.ts +0 -10
- package/lib/models/SearchOperator.d.ts +0 -4
- package/lib/models/SearchPropertySign.d.ts +0 -9
- package/lib/models/SearchPropertyValueType.d.ts +0 -9
- package/lib/models/SortDirection.d.ts +0 -5
- package/lib/models/TenantConfig.d.ts +0 -18
- package/lib/models/UserRequest.d.ts +0 -32
- package/lib/models/auth-mechanism.d.ts +0 -14
- package/lib/models/base.d.ts +0 -12
- package/lib/models/conditions.d.ts +0 -11
- package/lib/models/log-in.d.ts +0 -8
- package/lib/models/oauth-resp.d.ts +0 -6
- package/lib/models/object-state.d.ts +0 -6
- package/lib/models/paged.d.ts +0 -9
- package/lib/models/query-params.d.ts +0 -8
- package/lib/models/request-status.d.ts +0 -3
- package/lib/models/resend-otp-data.d.ts +0 -8
- package/lib/models/sign-up.d.ts +0 -9
- package/lib/models/single-sign-on.d.ts +0 -7
- package/lib/models/status.d.ts +0 -4
- package/lib/models/user-access-request-status.d.ts +0 -5
- package/lib/models/user.d.ts +0 -18
- package/lib/pipes/async-label.pipe.d.ts +0 -11
- package/lib/services/authorization.service.d.ts +0 -14
- package/lib/services/encryption.service.d.ts +0 -13
- package/lib/services/environment.service.d.ts +0 -22
- package/lib/services/http-web-request.service.d.ts +0 -23
- package/lib/services/label.service.d.ts +0 -15
- package/lib/services/util.service.d.ts +0 -11
- package/lib/shared/shared.module.d.ts +0 -10
|
@@ -0,0 +1,208 @@
|
|
|
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>
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,261 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 {}
|
|
@@ -0,0 +1,30 @@
|
|
|
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>
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|