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,55 @@
|
|
|
1
|
+
.view-links {
|
|
2
|
+
font-size: 14px !important;
|
|
3
|
+
color: #0000FF;
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.view-links:hover {
|
|
9
|
+
text-decoration: underline;
|
|
10
|
+
text-underline-offset: 3px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.context-banner {
|
|
14
|
+
background-color: rgba(212, 160, 7, 0.45)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.card-min-height {
|
|
18
|
+
gap: 10px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::ng-deep .childrenPadding {
|
|
22
|
+
max-height: 300px;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ::ng-deep .toolbar {
|
|
27
|
+
margin-bottom: 15px;
|
|
28
|
+
} */
|
|
29
|
+
|
|
30
|
+
/* ::ng-deep .master-only-container {
|
|
31
|
+
margin: 0 !important;
|
|
32
|
+
padding: 0 !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::ng-deep .master-detail-container {
|
|
36
|
+
margin: 0 !important;
|
|
37
|
+
padding: 0 !important;
|
|
38
|
+
} */
|
|
39
|
+
.pop-up-content {
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
background-color: white;
|
|
42
|
+
border: 1px solid rgba(212, 161, 7, 0.5);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pop-up-value {
|
|
46
|
+
padding: 10px 20px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pop-up-content>div:nth-child(1) {
|
|
50
|
+
border-bottom: 4px solid #FFE681;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.width-max {
|
|
54
|
+
min-width: max-content;
|
|
55
|
+
}
|
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
<div #messageLog class="flex flex-col gap-4 message-log-container">
|
|
2
|
+
<div
|
|
3
|
+
*ngIf="this.cardContextHistory.length > 0"
|
|
4
|
+
class="context-banner py-3 px-4 rounded-xl flex item-center justify-space-between gap-3"
|
|
5
|
+
>
|
|
6
|
+
<div class="flex gap-2 flex-1 context-banner-content">
|
|
7
|
+
<div
|
|
8
|
+
class="context-content items-center flex gap-2"
|
|
9
|
+
*ngFor="let context of this.cardContextHistory; index as i"
|
|
10
|
+
>
|
|
11
|
+
<div class="context-main-content-container flex gap-4">
|
|
12
|
+
<span class="context-caption font-bold text-[#404040]">{{
|
|
13
|
+
context.data.ChildrenType &&
|
|
14
|
+
context.data.ChildrenType == childPermissionRef
|
|
15
|
+
? context.data.Name
|
|
16
|
+
: context.title
|
|
17
|
+
}}</span>
|
|
18
|
+
<span
|
|
19
|
+
*ngIf="i == this.cardContextHistory.length - 1"
|
|
20
|
+
class="context-subcaption"
|
|
21
|
+
>{{ this.getCardSubCaption(context) }}</span
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
<div *ngIf="i < this.cardContextHistory.length - 1">/</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="flex justify-end">
|
|
28
|
+
<verben-svg
|
|
29
|
+
(click)="closeDetails()"
|
|
30
|
+
class="cursor-pointer"
|
|
31
|
+
icon="close-circle-full"
|
|
32
|
+
[width]="20"
|
|
33
|
+
[height]="20"
|
|
34
|
+
></verben-svg>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div
|
|
38
|
+
*ngIf="this.cardContextHistory.length > 0 && this.cardData.length > 0"
|
|
39
|
+
class="flex items-center gap-2 px-2"
|
|
40
|
+
>
|
|
41
|
+
<input
|
|
42
|
+
[disabled]="this.isCheckboxDisabled(this.cardData[0])"
|
|
43
|
+
type="checkbox"
|
|
44
|
+
class="mt-1 cursor-pointer"
|
|
45
|
+
[ngModel]="isAllSelected(this.cardData[0])"
|
|
46
|
+
(click)="
|
|
47
|
+
$event.preventDefault(); this.saveAllRoleDynamic(this.cardData[0])
|
|
48
|
+
"
|
|
49
|
+
/>
|
|
50
|
+
|
|
51
|
+
<span class="font-semibold">Select All</span>
|
|
52
|
+
</div>
|
|
53
|
+
<verben-data-view
|
|
54
|
+
#vdv
|
|
55
|
+
[viewState]="{
|
|
56
|
+
isSearch: this.cardContextHistory.length == 0,
|
|
57
|
+
isColumn: this.cardContextHistory.length == 0,
|
|
58
|
+
isFilter: this.cardContextHistory.length == 0,
|
|
59
|
+
isSort: this.cardContextHistory.length == 0,
|
|
60
|
+
isExport: this.cardContextHistory.length == 0 && (!permissionConfig || permissionConfig.Actions['Export']),
|
|
61
|
+
isSelect: this.cardContextHistory.length == 0,
|
|
62
|
+
isCreate: this.cardContextHistory.length == 0 && (!permissionConfig || permissionConfig.Actions['Create']),
|
|
63
|
+
isToggle:this.cardContextHistory.length == 0,
|
|
64
|
+
}"
|
|
65
|
+
[buttonClass]="'my-custom-button-class'"
|
|
66
|
+
[iconClass]="'my-icon-class'"
|
|
67
|
+
[activeIconClass]="'my-active-icon-class'"
|
|
68
|
+
[isTableView]="false"
|
|
69
|
+
[selectedColumnCount]="0"
|
|
70
|
+
[selectedSortCount]="0"
|
|
71
|
+
[selectedFilterTableCount]="0"
|
|
72
|
+
(viewChange)="onViewChange($event)"
|
|
73
|
+
(stateChange)="onStateChange($event)"
|
|
74
|
+
(onSearchChange)="handleSearch($event)"
|
|
75
|
+
>
|
|
76
|
+
<div class="mt-2" table-content>
|
|
77
|
+
<lib-data-table
|
|
78
|
+
[dataKey]="'Id'"
|
|
79
|
+
#dt
|
|
80
|
+
[data]="data"
|
|
81
|
+
[columns]="visibleColumnDef"
|
|
82
|
+
[styleConfig]="styles"
|
|
83
|
+
(selectionChange)="onSelectionChange($event)"
|
|
84
|
+
>
|
|
85
|
+
<ng-container libColumn="select">
|
|
86
|
+
<ng-template
|
|
87
|
+
#cell
|
|
88
|
+
let-isSelected="isSelected"
|
|
89
|
+
let-toggleRowSelection="toggleRowSelection"
|
|
90
|
+
>
|
|
91
|
+
<input
|
|
92
|
+
type="checkbox"
|
|
93
|
+
[checked]="isSelected"
|
|
94
|
+
(change)="toggleRowSelection()"
|
|
95
|
+
/>
|
|
96
|
+
</ng-template>
|
|
97
|
+
<ng-template
|
|
98
|
+
#header
|
|
99
|
+
let-allRowsSelected="allRowsSelected"
|
|
100
|
+
let-someRowsSelected="someRowsSelected"
|
|
101
|
+
let-toggleAllRows="toggleAllRows"
|
|
102
|
+
>
|
|
103
|
+
<input
|
|
104
|
+
type="checkbox"
|
|
105
|
+
[checked]="allRowsSelected()"
|
|
106
|
+
[indeterminate]="someRowsSelected()"
|
|
107
|
+
(change)="toggleAllRows()"
|
|
108
|
+
/>
|
|
109
|
+
</ng-template>
|
|
110
|
+
</ng-container>
|
|
111
|
+
<ng-container libColumn="createdAt">
|
|
112
|
+
<ng-template #cell let-value>
|
|
113
|
+
{{ value | date }}
|
|
114
|
+
</ng-template>
|
|
115
|
+
</ng-container>
|
|
116
|
+
<ng-container libColumn="updatedAt">
|
|
117
|
+
<ng-template #cell let-value>
|
|
118
|
+
{{ value | date }}
|
|
119
|
+
</ng-template>
|
|
120
|
+
</ng-container>
|
|
121
|
+
<ng-container libColumn="name">
|
|
122
|
+
<ng-template #cell let-row="row" let-value>
|
|
123
|
+
{{ value.Name }}
|
|
124
|
+
</ng-template>
|
|
125
|
+
<ng-template
|
|
126
|
+
#cellEdit
|
|
127
|
+
let-row="row"
|
|
128
|
+
let-updateValue="updateValue"
|
|
129
|
+
let-updateData="updateData"
|
|
130
|
+
let-value
|
|
131
|
+
>
|
|
132
|
+
<div class="width-max">
|
|
133
|
+
<verbena-input [(ngModel)]="value.Name"></verbena-input>
|
|
134
|
+
</div>
|
|
135
|
+
</ng-template>
|
|
136
|
+
</ng-container>
|
|
137
|
+
|
|
138
|
+
<ng-container libColumn="actions">
|
|
139
|
+
<ng-template
|
|
140
|
+
#cell
|
|
141
|
+
let-isEditing="isEditing"
|
|
142
|
+
let-toggleRowEdit="toggleRowEdit"
|
|
143
|
+
let-row="row"
|
|
144
|
+
let-value
|
|
145
|
+
>
|
|
146
|
+
<verben-pop-Up
|
|
147
|
+
#popup
|
|
148
|
+
[customStyles]="{ 'z-index': '99' }"
|
|
149
|
+
[enableMouseLeave]="false"
|
|
150
|
+
>
|
|
151
|
+
<verben-svg
|
|
152
|
+
class="cursor-pointer actions-icon"
|
|
153
|
+
dropdown-trigger
|
|
154
|
+
icon="list"
|
|
155
|
+
></verben-svg>
|
|
156
|
+
<div class="pop-up-content flex flex-col" dropdown-content>
|
|
157
|
+
<div
|
|
158
|
+
*ngIf="
|
|
159
|
+
!permissionConfig || permissionConfig.Actions['Create']
|
|
160
|
+
"
|
|
161
|
+
(click)="toggleRowEdit(); cacheItem(value); closePopUp()"
|
|
162
|
+
class="pop-up-value cursor-pointer"
|
|
163
|
+
>
|
|
164
|
+
Edit
|
|
165
|
+
</div>
|
|
166
|
+
<div
|
|
167
|
+
(click)="viewDetailsFromTable(value)"
|
|
168
|
+
class="pop-up-value cursor-pointer"
|
|
169
|
+
>
|
|
170
|
+
View Details
|
|
171
|
+
</div>
|
|
172
|
+
<div class="pop-up-value cursor-pointer">View Users</div>
|
|
173
|
+
</div>
|
|
174
|
+
</verben-pop-Up>
|
|
175
|
+
<!-- <div class="flex gap-4 items-center">
|
|
176
|
+
<verben-svg (click)="editValue(value)" icon="edit" [width]="15" [height]="15"
|
|
177
|
+
class="cursor-pointer"></verben-svg>
|
|
178
|
+
<span (click)="viewDetailsFromTable(value)" class="view-links view-details">view details</span>
|
|
179
|
+
<span class="view-links view-users">view users</span>
|
|
180
|
+
</div> -->
|
|
181
|
+
</ng-template>
|
|
182
|
+
<ng-template
|
|
183
|
+
#cellEdit
|
|
184
|
+
let-isEditing="isEditing"
|
|
185
|
+
let-toggleRowEdit="toggleRowEdit"
|
|
186
|
+
let-row="row"
|
|
187
|
+
let-value
|
|
188
|
+
>
|
|
189
|
+
<div class="flex gap-2 items-center">
|
|
190
|
+
<verben-svg
|
|
191
|
+
icon="tick"
|
|
192
|
+
[width]="15"
|
|
193
|
+
[height]="15"
|
|
194
|
+
(click)="tableSaveRole(value, toggleRowEdit)"
|
|
195
|
+
></verben-svg>
|
|
196
|
+
<verben-svg
|
|
197
|
+
(click)="restoreCache(value); toggleRowEdit()"
|
|
198
|
+
icon="close-no-circle"
|
|
199
|
+
[width]="15"
|
|
200
|
+
[height]="15"
|
|
201
|
+
></verben-svg>
|
|
202
|
+
<!-- <verben-svg icon="delete" [width]="15" [height]="15"></verben-svg> -->
|
|
203
|
+
<verben-svg
|
|
204
|
+
icon="cardViewAlt"
|
|
205
|
+
[width]="15"
|
|
206
|
+
[height]="15"
|
|
207
|
+
(click)="editValue(value)"
|
|
208
|
+
></verben-svg>
|
|
209
|
+
</div>
|
|
210
|
+
</ng-template>
|
|
211
|
+
</ng-container>
|
|
212
|
+
</lib-data-table>
|
|
213
|
+
</div>
|
|
214
|
+
<div card-content>
|
|
215
|
+
<verben-card-data-view
|
|
216
|
+
borderRadius="12px"
|
|
217
|
+
#vdcv
|
|
218
|
+
dataId="Id"
|
|
219
|
+
border="5px"
|
|
220
|
+
[cardDataList]="cardData"
|
|
221
|
+
rbgColor="#f5f6f9"
|
|
222
|
+
mg="0px"
|
|
223
|
+
>
|
|
224
|
+
<verben-left-card-data-view class="space-y-7">
|
|
225
|
+
<verben-left-card-data
|
|
226
|
+
#vlcd
|
|
227
|
+
[parent]="vdcv"
|
|
228
|
+
dataId="MailAddress"
|
|
229
|
+
class="bg-secondary-100 rounded-xl border-primary border-[1px]"
|
|
230
|
+
[cardDataList]="cardData"
|
|
231
|
+
>
|
|
232
|
+
<ng-template #card let-item>
|
|
233
|
+
<div
|
|
234
|
+
(click)="roleCardClicked(item)"
|
|
235
|
+
*ngIf="
|
|
236
|
+
item.data.ChildrenType &&
|
|
237
|
+
item.data.ChildrenType == childPermissionRef
|
|
238
|
+
"
|
|
239
|
+
class="flex cursor-pointer h-[max-content]"
|
|
240
|
+
>
|
|
241
|
+
<verben-svg
|
|
242
|
+
[width]="15"
|
|
243
|
+
[height]="15"
|
|
244
|
+
(click)="toggleChildren(item); $event.stopPropagation()"
|
|
245
|
+
[ngClass]="
|
|
246
|
+
item.children && item.children.length
|
|
247
|
+
? 'visible'
|
|
248
|
+
: 'invisible'
|
|
249
|
+
"
|
|
250
|
+
class="items-center flex pr-1 cursor-pointer"
|
|
251
|
+
[icon]="item.isChildrenExpanded ? 'minus' : 'plus'"
|
|
252
|
+
/>
|
|
253
|
+
<div class="flex w-full bg-secondary rounded-xl">
|
|
254
|
+
<div
|
|
255
|
+
class="w-3 rounded-xl rounded-tr-none rounded-br-none"
|
|
256
|
+
[ngClass]="
|
|
257
|
+
item.selected ? 'bg-primary' : 'bg-secondary-200'
|
|
258
|
+
"
|
|
259
|
+
></div>
|
|
260
|
+
<div class="py-3 px-4 flex-1 h-[100%]">
|
|
261
|
+
<div
|
|
262
|
+
class="flex items-start flex-1 gap-1 justify-between h-[100%]"
|
|
263
|
+
>
|
|
264
|
+
<div
|
|
265
|
+
class="flex flex-col flex-1 card-min-height justify-between h-[100%]"
|
|
266
|
+
>
|
|
267
|
+
<h3
|
|
268
|
+
class="my-0 font-bold text-[#404040] leading-[19.5px]"
|
|
269
|
+
>
|
|
270
|
+
{{ item.data.Name }}
|
|
271
|
+
</h3>
|
|
272
|
+
<span
|
|
273
|
+
class="!text-[10px] font-light text-[#404040] leading-[12.1px]"
|
|
274
|
+
*ngIf="item.children && item.children.length > 0"
|
|
275
|
+
>
|
|
276
|
+
{{ getCardSubCaption(item) }}
|
|
277
|
+
</span>
|
|
278
|
+
</div>
|
|
279
|
+
|
|
280
|
+
<div
|
|
281
|
+
*ngIf="item.children && item.children.length > 0"
|
|
282
|
+
class="flex items-end h-[100%]"
|
|
283
|
+
>
|
|
284
|
+
<p
|
|
285
|
+
(click)="viewDetails(item); $event.stopPropagation()"
|
|
286
|
+
class="my-0 underline text-[#3479E9] text-[12px] leading-[16.6px] cursor-pointer font-medium"
|
|
287
|
+
>
|
|
288
|
+
view details
|
|
289
|
+
</p>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
<div
|
|
296
|
+
*ngIf="
|
|
297
|
+
!item.data.ChildrenType ||
|
|
298
|
+
item.data.ChildrenType !== childPermissionRef
|
|
299
|
+
"
|
|
300
|
+
class="flex h-[max-content]"
|
|
301
|
+
>
|
|
302
|
+
<verben-svg
|
|
303
|
+
[ngClass]="
|
|
304
|
+
item.children && item.children.length
|
|
305
|
+
? 'visible'
|
|
306
|
+
: 'invisible'
|
|
307
|
+
"
|
|
308
|
+
[width]="15"
|
|
309
|
+
[height]="15"
|
|
310
|
+
(click)="toggleChildren(item)"
|
|
311
|
+
class="items-center flex pr-1 cursor-pointer"
|
|
312
|
+
[icon]="item.isChildrenExpanded ? 'minus' : 'plus'"
|
|
313
|
+
/>
|
|
314
|
+
<div class="flex w-full bg-secondary rounded-xl">
|
|
315
|
+
<div
|
|
316
|
+
class="w-3 rounded-xl rounded-tr-none rounded-br-none"
|
|
317
|
+
[ngClass]="
|
|
318
|
+
item.selected ? 'bg-primary' : 'bg-secondary-200'
|
|
319
|
+
"
|
|
320
|
+
></div>
|
|
321
|
+
<div class="py-3 px-4 flex-1 flex gap-2 h-[100%] items-start">
|
|
322
|
+
<input
|
|
323
|
+
*ngIf="item.data?.Selected != undefined"
|
|
324
|
+
[disabled]="this.isCheckboxDisabled(item)"
|
|
325
|
+
type="checkbox"
|
|
326
|
+
class="mt-1 cursor-pointer"
|
|
327
|
+
[(ngModel)]="item.data.Selected"
|
|
328
|
+
(click)="
|
|
329
|
+
$event.preventDefault(); this.saveRoleDynamic(item)
|
|
330
|
+
"
|
|
331
|
+
/>
|
|
332
|
+
<div
|
|
333
|
+
class="flex items-start flex-1 gap-1 justify-between h-[100%]"
|
|
334
|
+
>
|
|
335
|
+
<div
|
|
336
|
+
class="flex flex-col flex-1 card-min-height justify-between h-[100%]"
|
|
337
|
+
>
|
|
338
|
+
<h3
|
|
339
|
+
class="my-0 font-bold text-[#404040] leading-[19.5px]"
|
|
340
|
+
>
|
|
341
|
+
{{ item.title }}
|
|
342
|
+
</h3>
|
|
343
|
+
<span
|
|
344
|
+
class="!text-[10px] font-light text-[#404040] leading-[12.1px]"
|
|
345
|
+
*ngIf="item.children && item.children.length > 0"
|
|
346
|
+
>
|
|
347
|
+
{{ getCardSubCaption(item) }}
|
|
348
|
+
</span>
|
|
349
|
+
</div>
|
|
350
|
+
|
|
351
|
+
<div
|
|
352
|
+
*ngIf="item.children && item.children.length > 0"
|
|
353
|
+
class="flex items-end h-[100%]"
|
|
354
|
+
>
|
|
355
|
+
<p
|
|
356
|
+
(click)="viewDetails(item)"
|
|
357
|
+
class="my-0 underline text-[#3479E9] text-[12px] leading-[16.6px] cursor-pointer font-medium"
|
|
358
|
+
>
|
|
359
|
+
view details
|
|
360
|
+
</p>
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
</ng-template>
|
|
367
|
+
<ng-template #cardChild let-index="index" let-item>
|
|
368
|
+
<div class="flex gap-2 items-start h-[max-content]">
|
|
369
|
+
<input
|
|
370
|
+
[ngClass]="index == 0 ? 'visible' : 'invisible'"
|
|
371
|
+
[disabled]="this.isCheckboxDisabled(item)"
|
|
372
|
+
type="checkbox"
|
|
373
|
+
class="mt-1 cursor-pointer"
|
|
374
|
+
[ngModel]="isAllSelected(item)"
|
|
375
|
+
(click)="
|
|
376
|
+
$event.preventDefault(); this.saveAllRoleDynamic(item)
|
|
377
|
+
"
|
|
378
|
+
/>
|
|
379
|
+
<div class="flex w-full bg-secondary rounded-xl">
|
|
380
|
+
<div
|
|
381
|
+
class="w-3 rounded-xl rounded-tr-none rounded-br-none"
|
|
382
|
+
[ngClass]="
|
|
383
|
+
item.selected ? 'bg-primary' : 'bg-secondary-200'
|
|
384
|
+
"
|
|
385
|
+
></div>
|
|
386
|
+
<div class="py-3 px-4 flex-1 flex gap-2 h-[100%] items-start">
|
|
387
|
+
<input
|
|
388
|
+
*ngIf="item.data?.Selected != undefined"
|
|
389
|
+
[disabled]="this.isCheckboxDisabled(item)"
|
|
390
|
+
type="checkbox"
|
|
391
|
+
class="mt-1 cursor-pointer"
|
|
392
|
+
[(ngModel)]="item.data.Selected"
|
|
393
|
+
(click)="
|
|
394
|
+
$event.preventDefault(); this.saveRoleDynamic(item)
|
|
395
|
+
"
|
|
396
|
+
/>
|
|
397
|
+
<div
|
|
398
|
+
class="flex items-start flex-1 gap-1 justify-between h-[100%]"
|
|
399
|
+
>
|
|
400
|
+
<div
|
|
401
|
+
class="flex flex-col flex-1 card-min-height justify-between h-[100%]"
|
|
402
|
+
>
|
|
403
|
+
<h3
|
|
404
|
+
class="my-0 font-bold text-[#404040] leading-[19.5px]"
|
|
405
|
+
>
|
|
406
|
+
{{ item.title }}
|
|
407
|
+
</h3>
|
|
408
|
+
<span
|
|
409
|
+
class="!text-[10px] font-light text-[#404040] leading-[12.1px]"
|
|
410
|
+
*ngIf="item.children && item.children.length > 0"
|
|
411
|
+
>
|
|
412
|
+
{{ getCardSubCaption(item) }}
|
|
413
|
+
</span>
|
|
414
|
+
</div>
|
|
415
|
+
|
|
416
|
+
<div
|
|
417
|
+
*ngIf="item.children && item.children.length > 0"
|
|
418
|
+
class="flex items-end h-[100%]"
|
|
419
|
+
>
|
|
420
|
+
<p
|
|
421
|
+
(click)="viewDetailsChild(item)"
|
|
422
|
+
class="my-0 underline text-[#3479E9] text-[12px] leading-[16.6px] cursor-pointer font-medium"
|
|
423
|
+
>
|
|
424
|
+
view details
|
|
425
|
+
</p>
|
|
426
|
+
</div>
|
|
427
|
+
</div>
|
|
428
|
+
</div>
|
|
429
|
+
</div>
|
|
430
|
+
</div>
|
|
431
|
+
</ng-template>
|
|
432
|
+
</verben-left-card-data>
|
|
433
|
+
</verben-left-card-data-view>
|
|
434
|
+
<verben-right-card-data-view
|
|
435
|
+
*ngIf="this.cardContextHistory.length == 0"
|
|
436
|
+
>
|
|
437
|
+
<ng-template #parent>
|
|
438
|
+
<div
|
|
439
|
+
*ngIf="this.currentData"
|
|
440
|
+
class="flex flex-col rounded-xl h-full w-full justify-between relative space-y-4"
|
|
441
|
+
>
|
|
442
|
+
<verbena-input
|
|
443
|
+
name="Name"
|
|
444
|
+
label="Name"
|
|
445
|
+
(ngModelChange)="updateTable()"
|
|
446
|
+
[(ngModel)]="this.currentData.data.Name"
|
|
447
|
+
/>
|
|
448
|
+
|
|
449
|
+
<!-- buttons -->
|
|
450
|
+
<div class="flex justify-between bottom-8 left-0 right-0">
|
|
451
|
+
<div></div>
|
|
452
|
+
<!-- <verbena-button class="verben-delete-button" text="Delete"></verbena-button> -->
|
|
453
|
+
<div class="flex gap-3">
|
|
454
|
+
<verbena-button
|
|
455
|
+
class="verben-switch-button"
|
|
456
|
+
(click)="goToTableView()"
|
|
457
|
+
text="Switch To Table"
|
|
458
|
+
></verbena-button>
|
|
459
|
+
<verbena-button
|
|
460
|
+
class="verben-primary-button"
|
|
461
|
+
(click)="this.saveRole()"
|
|
462
|
+
text="Save"
|
|
463
|
+
></verbena-button>
|
|
464
|
+
</div>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
</ng-template>
|
|
468
|
+
</verben-right-card-data-view>
|
|
469
|
+
<!-- <verben-right-card-data-view>
|
|
470
|
+
yeshhhhhh
|
|
471
|
+
</verben-right-card-data-view> -->
|
|
472
|
+
|
|
473
|
+
<verben-card-data-view-footer
|
|
474
|
+
*ngIf="this.cardContextHistory.length == 0"
|
|
475
|
+
>
|
|
476
|
+
<div class="flex gap-2 justify-between">
|
|
477
|
+
<div
|
|
478
|
+
*ngIf="
|
|
479
|
+
!vdcv.hasCurrentItem() && this.cardContextHistory.length == 0
|
|
480
|
+
"
|
|
481
|
+
class="message-log-button-container flex justify-between"
|
|
482
|
+
>
|
|
483
|
+
<!-- <verbena-button [fontWeight]="'bold'" [bgColor]="'#8E8D87'" [borderRadius]="'4px'" [textColor]="'#fff'"
|
|
484
|
+
[text]="'Delete'">
|
|
485
|
+
</verbena-button> -->
|
|
486
|
+
</div>
|
|
487
|
+
<div
|
|
488
|
+
class="flex {{
|
|
489
|
+
vdcv.hasCurrentItem() ? 'flex-1' : ''
|
|
490
|
+
}} justify-end items-center gap-5"
|
|
491
|
+
>
|
|
492
|
+
<span class="paginator-text"
|
|
493
|
+
>{{ cardData.length }} records loaded</span
|
|
494
|
+
>
|
|
495
|
+
<button (click)="loadMore()" class="load-more view-links">
|
|
496
|
+
Load more
|
|
497
|
+
</button>
|
|
498
|
+
</div>
|
|
499
|
+
</div>
|
|
500
|
+
</verben-card-data-view-footer>
|
|
501
|
+
</verben-card-data-view>
|
|
502
|
+
</div>
|
|
503
|
+
<div column-content>
|
|
504
|
+
<verben-visible-column
|
|
505
|
+
(columnsUpdated)="onColumnsUpdated($event)"
|
|
506
|
+
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
507
|
+
borderRadius="10px"
|
|
508
|
+
boxShadow="2px 2px 2px 0px silver"
|
|
509
|
+
bgColor="white"
|
|
510
|
+
width="400px"
|
|
511
|
+
textColor="black"
|
|
512
|
+
pd="1rem"
|
|
513
|
+
primaryColor="#FFE681"
|
|
514
|
+
secondaryColor="#3479E9"
|
|
515
|
+
[columns]="visibleColumns"
|
|
516
|
+
[displayedColumns]="5"
|
|
517
|
+
></verben-visible-column>
|
|
518
|
+
</div>
|
|
519
|
+
<div filter-content>
|
|
520
|
+
<verben-table-filter
|
|
521
|
+
(filtersApplied)="onFilterUpdated($event)"
|
|
522
|
+
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
523
|
+
borderRadius="10px"
|
|
524
|
+
boxShadow="2px 2px 2px 0px silver"
|
|
525
|
+
bgColor="white"
|
|
526
|
+
width="420px"
|
|
527
|
+
textColor="black"
|
|
528
|
+
pd="1rem"
|
|
529
|
+
primaryColor="#FFE681"
|
|
530
|
+
secondaryColor="#3479E9"
|
|
531
|
+
tertiaryColor="#404040"
|
|
532
|
+
[filterOptions]="filterArray"
|
|
533
|
+
[maxFilterLength]="3"
|
|
534
|
+
></verben-table-filter>
|
|
535
|
+
</div>
|
|
536
|
+
<div sort-content>
|
|
537
|
+
<verben-sort-table
|
|
538
|
+
(selectedOptions)="onSortUpdated($event)"
|
|
539
|
+
[border]="'1px solid rgba(212, 160, 7, 1)'"
|
|
540
|
+
borderRadius="10px"
|
|
541
|
+
boxShadow="2px 2px 2px 0px silver"
|
|
542
|
+
bgColor="white"
|
|
543
|
+
width="400px"
|
|
544
|
+
textColor="black"
|
|
545
|
+
pd="1rem"
|
|
546
|
+
primaryColor="#FFE681"
|
|
547
|
+
secondaryColor="#3479E9"
|
|
548
|
+
tertiaryColor="#404040"
|
|
549
|
+
[enableDragAndDrop]="true"
|
|
550
|
+
[sortOptions]="sortOptions"
|
|
551
|
+
></verben-sort-table>
|
|
552
|
+
</div>
|
|
553
|
+
<div export-content>
|
|
554
|
+
<lib-data-export [data]="data" (exportDataEvent)="handleExport($event)">
|
|
555
|
+
</lib-data-export>
|
|
556
|
+
</div>
|
|
557
|
+
</verben-data-view>
|
|
558
|
+
<div *ngIf="vdv.isTableView" class="flex gap-2 justify-between">
|
|
559
|
+
<div class="message-log-button-container flex justify-between">
|
|
560
|
+
<!-- <verbena-button [fontWeight]="'bold'" [bgColor]="'#8E8D87'" [borderRadius]="'4px'" [textColor]="'#fff'"
|
|
561
|
+
[text]="'Delete'">
|
|
562
|
+
</verbena-button> -->
|
|
563
|
+
</div>
|
|
564
|
+
<div class="flex justify-end items-center gap-5">
|
|
565
|
+
<span class="paginator-text">{{ cardData.length }} records loaded</span>
|
|
566
|
+
<button (click)="loadMore()" class="load-more view-links">
|
|
567
|
+
Load more
|
|
568
|
+
</button>
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
571
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { RoleControlComponent } from './role-control.component';
|
|
4
|
+
|
|
5
|
+
describe('RoleControlComponent', () => {
|
|
6
|
+
let component: RoleControlComponent;
|
|
7
|
+
let fixture: ComponentFixture<RoleControlComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [RoleControlComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(RoleControlComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|