@vc-shell/framework 1.0.69 → 1.0.71
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/CHANGELOG.md +72 -0
- package/core/api/platform.ts +2762 -2225
- package/core/composables/index.ts +1 -0
- package/core/composables/useMenuComposer/index.ts +25 -0
- package/core/composables/useNotifications/index.ts +25 -31
- package/core/composables/useUser/index.ts +176 -10
- package/core/directives/index.ts +0 -1
- package/core/plugins/index.ts +1 -1
- package/core/plugins/modularity/index.ts +8 -1
- package/core/plugins/signalR/index.ts +32 -0
- package/core/types/index.ts +56 -17
- package/dist/core/api/platform.d.ts +1005 -931
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useMenuComposer/index.d.ts +12 -0
- package/dist/core/composables/useMenuComposer/index.d.ts.map +1 -0
- package/dist/core/composables/useNotifications/index.d.ts +4 -6
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +18 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/directives/autofocus/index.d.ts +1 -1
- package/dist/core/directives/autofocus/index.d.ts.map +1 -1
- package/dist/core/directives/index.d.ts +0 -1
- package/dist/core/directives/index.d.ts.map +1 -1
- package/dist/core/directives/loading/index.d.ts +1 -1
- package/dist/core/directives/loading/index.d.ts.map +1 -1
- package/dist/core/directives/permissions/index.d.ts +1 -1
- package/dist/core/directives/permissions/index.d.ts.map +1 -1
- package/dist/core/plugins/index.d.ts +1 -1
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +1 -1
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +4 -0
- package/dist/core/plugins/signalR/index.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +46 -20
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.mjs +31824 -29372
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/injectionSymbols.d.ts +6 -0
- package/dist/injectionSymbols.d.ts.map +1 -0
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -3
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +6 -3
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +13 -456
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +19 -454
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +3 -4
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/index.d.ts +1 -9
- package/dist/shared/components/blade-navigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/plugin.d.ts +13 -0
- package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts +53 -26
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts +7 -0
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -0
- package/dist/shared/components/change-password/index.d.ts +11 -0
- package/dist/shared/components/change-password/index.d.ts.map +1 -0
- package/dist/{core/plugins → shared/components}/error-interceptor/index.d.ts +53 -15
- package/dist/shared/components/error-interceptor/index.d.ts.map +1 -0
- package/dist/{core/plugins → shared/components}/error-interceptor/interceptor.d.ts +1 -1
- package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +9 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/components/language-selector/index.d.ts +55 -0
- package/dist/shared/components/language-selector/index.d.ts.map +1 -0
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +45 -0
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +13 -13
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/core/notification.d.ts.map +1 -1
- package/dist/shared/components/notifications/index.d.ts +0 -9
- package/dist/shared/components/notifications/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/types/index.d.ts +3 -1
- package/dist/shared/components/notifications/types/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/components/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +3 -0
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/composables/index.d.ts +2 -0
- package/dist/shared/components/popup-handler/composables/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +12 -0
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/index.d.ts +16 -0
- package/dist/shared/components/popup-handler/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/plugin.d.ts +6 -0
- package/dist/shared/components/popup-handler/plugin.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/types/index.d.ts +26 -0
- package/dist/shared/components/popup-handler/types/index.d.ts.map +1 -0
- package/dist/shared/components/popup-handler/utils/index.d.ts +3 -0
- package/dist/shared/components/popup-handler/utils/index.d.ts.map +1 -0
- package/dist/shared/components/user-dropdown-button/index.d.ts +43 -0
- package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -0
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +33 -0
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -0
- package/dist/shared/index.d.ts +3 -5
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/locales/index.d.ts +3 -0
- package/dist/shared/locales/index.d.ts.map +1 -0
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +13 -11
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +25 -123
- package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +15 -18
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +30 -150
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
- package/dist/shared/modules/index.d.ts +3 -0
- package/dist/shared/modules/index.d.ts.map +1 -0
- package/dist/shared/pages/InvitePage/components/index.d.ts +2 -0
- package/dist/shared/pages/InvitePage/components/index.d.ts.map +1 -0
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +33 -0
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -0
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +32 -0
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts.map +1 -0
- package/dist/shared/pages/InvitePage/index.d.ts +5 -0
- package/dist/shared/pages/InvitePage/index.d.ts.map +1 -0
- package/dist/shared/pages/InvitePage/locales/index.d.ts +3 -0
- package/dist/shared/pages/InvitePage/locales/index.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/components/index.d.ts +2 -0
- package/dist/shared/pages/LoginPage/components/index.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +17 -0
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +28 -0
- package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/index.d.ts +3 -0
- package/dist/shared/pages/LoginPage/index.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/locales/index.d.ts +3 -0
- package/dist/shared/pages/LoginPage/locales/index.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/plugin.d.ts +6 -0
- package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -0
- package/dist/shared/pages/ResetPasswordPage/components/index.d.ts +2 -0
- package/dist/shared/pages/ResetPasswordPage/components/index.d.ts.map +1 -0
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +33 -0
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -0
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +32 -0
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts.map +1 -0
- package/dist/shared/pages/ResetPasswordPage/index.d.ts +5 -0
- package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -0
- package/dist/shared/pages/ResetPasswordPage/locales/index.d.ts +3 -0
- package/dist/shared/pages/ResetPasswordPage/locales/index.d.ts.map +1 -0
- package/dist/shared/pages/index.d.ts +10 -0
- package/dist/shared/pages/index.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typings/index.d.ts +8 -0
- package/dist/typings/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-badge/index.d.ts +56 -19
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +103 -49
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +17 -11
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +66 -44
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +8 -6
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +74 -48
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +54 -19
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +56 -19
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +53 -8
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +4 -8
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +17 -23
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +10 -12
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +7 -4
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +56 -23
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +56 -20
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +54 -27
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +6 -3
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +53 -8
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +61 -36
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +8 -5
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +2 -0
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +6 -3
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts +79 -65
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +80 -69
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +77 -65
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +53 -8
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +116 -128
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +17 -13
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +125 -137
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +9 -8
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +7 -11
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +6 -3
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +73 -55
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +8 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +188 -584
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +643 -119
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +70 -55
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +10 -7
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +80 -68
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +7 -4
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +21 -7
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +8 -17
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +20 -37
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +20 -13
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +138 -160
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +23 -24
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +8 -5
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +90 -129
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +11 -15
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +3 -5
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +18 -7
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +37 -52
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +8 -8
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +62 -31
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +7 -4
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +32 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +44 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +22 -0
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts +135 -0
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +24 -0
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +17 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +20 -0
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +87 -42
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +16 -6
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +10 -6
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +48 -47
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +205 -661
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +186 -135
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +2 -0
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +25 -22
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +5 -3
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +26 -34
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +104 -69
- package/shared/components/blade-navigation/index.ts +1 -12
- package/shared/components/blade-navigation/plugin.ts +33 -0
- package/shared/components/blade-navigation/types/index.ts +59 -36
- package/shared/components/change-password/change-password.vue +167 -0
- package/shared/components/change-password/index.ts +10 -0
- package/{core/plugins → shared/components}/error-interceptor/interceptor.ts +1 -1
- package/shared/components/index.ts +8 -0
- package/shared/components/language-selector/index.ts +10 -0
- package/shared/components/language-selector/language-selector.vue +60 -0
- package/shared/components/notifications/composables/useContainer/index.ts +2 -2
- package/shared/components/notifications/core/notification.ts +3 -3
- package/shared/components/notifications/index.ts +0 -11
- package/shared/components/notifications/types/index.ts +4 -1
- package/shared/components/popup-handler/components/index.ts +1 -0
- package/shared/components/popup-handler/components/vc-popup-container/index.ts +3 -0
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +25 -0
- package/shared/components/popup-handler/composables/index.ts +1 -0
- package/shared/components/popup-handler/composables/usePopup/index.ts +129 -0
- package/shared/components/popup-handler/index.ts +19 -0
- package/shared/components/popup-handler/plugin.ts +24 -0
- package/shared/components/popup-handler/types/index.ts +28 -0
- package/shared/components/popup-handler/utils/index.ts +9 -0
- package/shared/components/user-dropdown-button/index.ts +10 -0
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +124 -0
- package/shared/index.ts +14 -8
- package/shared/locales/en.json +35 -0
- package/shared/locales/index.ts +2 -0
- package/shared/modules/assets/components/assets-details/assets-details.vue +12 -16
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +32 -35
- package/shared/modules/index.ts +2 -0
- package/shared/pages/InvitePage/components/index.ts +1 -0
- package/shared/pages/InvitePage/components/invite/Invite.vue +172 -0
- package/shared/pages/InvitePage/components/invite/index.ts +3 -0
- package/shared/pages/InvitePage/index.ts +7 -0
- package/shared/pages/InvitePage/locales/en.json +31 -0
- package/shared/pages/InvitePage/locales/index.ts +2 -0
- package/shared/pages/LoginPage/components/index.ts +1 -0
- package/shared/pages/LoginPage/components/login/Login.vue +283 -0
- package/shared/pages/LoginPage/components/login/index.ts +3 -0
- package/shared/pages/LoginPage/index.ts +2 -0
- package/shared/pages/LoginPage/locales/en.json +36 -0
- package/shared/pages/LoginPage/locales/index.ts +2 -0
- package/shared/pages/LoginPage/plugin.ts +17 -0
- package/shared/pages/ResetPasswordPage/components/index.ts +1 -0
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +166 -0
- package/shared/pages/ResetPasswordPage/components/reset-password/index.ts +3 -0
- package/shared/pages/ResetPasswordPage/index.ts +7 -0
- package/shared/pages/ResetPasswordPage/locales/en.json +28 -0
- package/shared/pages/ResetPasswordPage/locales/index.ts +2 -0
- package/shared/pages/index.ts +12 -0
- package/ui/components/atoms/vc-button/vc-button.vue +110 -144
- package/ui/components/atoms/vc-card/vc-card.vue +2 -2
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +2 -2
- package/ui/components/atoms/vc-label/vc-label.vue +1 -1
- package/ui/components/atoms/vc-loading/vc-loading.vue +1 -1
- package/ui/components/atoms/vc-switch/vc-switch.vue +1 -1
- package/ui/components/index.ts +2 -0
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +3 -3
- package/ui/components/molecules/vc-editor/vc-editor.vue +3 -3
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
- package/ui/components/molecules/vc-input/vc-input.vue +17 -17
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +8 -8
- package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
- package/ui/components/molecules/vc-select/index.ts +1 -86
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.vue +276 -198
- package/ui/components/molecules/vc-slider/vc-slider.vue +3 -3
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +21 -16
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +5 -9
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +21 -31
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -16
- package/ui/components/organisms/vc-app/vc-app.vue +24 -24
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +10 -13
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
- package/ui/components/organisms/vc-blade/vc-blade.vue +32 -47
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +84 -84
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +3 -3
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -3
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +27 -23
- package/ui/components/organisms/vc-login-form/vc-login-form.stories.ts +1 -1
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +63 -0
- package/ui/components/organisms/vc-notification-dropdown/index.ts +3 -0
- package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +125 -0
- package/ui/components/organisms/vc-notification-template/index.ts +3 -0
- package/ui/components/organisms/vc-notification-template/vc-notification-template.vue +33 -0
- package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +28 -0
- package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +33 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +62 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +10 -13
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +27 -24
- package/ui/components/organisms/vc-table/index.ts +1 -17
- package/ui/components/organisms/vc-table/vc-table.stories.ts +1 -1
- package/ui/components/organisms/vc-table/vc-table.vue +163 -148
- package/ui/locales/en.json +21 -10
- package/ui/types/index.ts +2 -0
- package/core/directives/click-outside/index.ts +0 -21
- package/dist/core/directives/click-outside/index.d.ts +0 -3
- package/dist/core/directives/click-outside/index.d.ts.map +0 -1
- package/dist/core/plugins/error-interceptor/index.d.ts.map +0 -1
- package/dist/core/plugins/error-interceptor/interceptor.d.ts.map +0 -1
- /package/{core/plugins → shared/components}/error-interceptor/index.ts +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"INVITATION": {
|
|
3
|
+
"TITLE": "New user activation",
|
|
4
|
+
"FIELDS": {
|
|
5
|
+
"EMAIL": {
|
|
6
|
+
"LABEL": "Email"
|
|
7
|
+
},
|
|
8
|
+
"PASSWORD": {
|
|
9
|
+
"LABEL": "New password",
|
|
10
|
+
"PLACEHOLDER": "Enter password"
|
|
11
|
+
},
|
|
12
|
+
"CONFIRM_PASSWORD": {
|
|
13
|
+
"LABEL": "Confirm password",
|
|
14
|
+
"PLACEHOLDER": "Confirm password"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"ACCEPT_INVITATION": "Activate",
|
|
18
|
+
"ERRORS": {
|
|
19
|
+
"Repeat-password": "Passwords are not same",
|
|
20
|
+
"Invalid-token": "Token is invalid or expired",
|
|
21
|
+
"Password-too-weak": "New password does not comply one or more password security policies:",
|
|
22
|
+
"PasswordTooShort": "Passwords too short",
|
|
23
|
+
"PasswordRequiresUniqueChars": "Passwords must use different characters",
|
|
24
|
+
"PasswordRequiresLower": "Passwords must have at least one lowercase ('a'-'z')",
|
|
25
|
+
"PasswordRequiresUpper": "Passwords must have at least one uppercase ('A'-'Z')",
|
|
26
|
+
"PasswordRequiresDigit": "Passwords must have at least one digit ('0'-'9')",
|
|
27
|
+
"PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character",
|
|
28
|
+
"recentPasswordUsed": "You have used this password in the past. Choose another one."
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./login";
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<VcLoginForm
|
|
3
|
+
:logo="customization.logo"
|
|
4
|
+
:background="background"
|
|
5
|
+
:title="title"
|
|
6
|
+
>
|
|
7
|
+
<template v-if="isLogin">
|
|
8
|
+
<VcForm @submit.prevent="login">
|
|
9
|
+
<Field
|
|
10
|
+
v-slot="{ field, errorMessage, handleChange, errors }"
|
|
11
|
+
:label="$t('LOGIN.FIELDS.LOGIN.LABEL')"
|
|
12
|
+
name="username"
|
|
13
|
+
:model-value="form.username"
|
|
14
|
+
rules="required"
|
|
15
|
+
>
|
|
16
|
+
<VcInput
|
|
17
|
+
v-bind="field"
|
|
18
|
+
ref="loginField"
|
|
19
|
+
v-model="form.username"
|
|
20
|
+
class="tw-mb-4 tw-mt-1"
|
|
21
|
+
:label="$t('LOGIN.FIELDS.LOGIN.LABEL')"
|
|
22
|
+
:placeholder="$t('LOGIN.FIELDS.LOGIN.PLACEHOLDER')"
|
|
23
|
+
required
|
|
24
|
+
:error="!!errors.length"
|
|
25
|
+
:error-message="errorMessage"
|
|
26
|
+
@update:model-value="handleChange"
|
|
27
|
+
/>
|
|
28
|
+
</Field>
|
|
29
|
+
<Field
|
|
30
|
+
v-slot="{ field, errorMessage, handleChange, errors }"
|
|
31
|
+
:label="$t('LOGIN.FIELDS.PASSWORD.LABEL')"
|
|
32
|
+
name="password"
|
|
33
|
+
:model-value="form.password"
|
|
34
|
+
rules="required"
|
|
35
|
+
>
|
|
36
|
+
<VcInput
|
|
37
|
+
v-bind="field"
|
|
38
|
+
ref="passwordField"
|
|
39
|
+
v-model="form.password"
|
|
40
|
+
class="tw-mb-4"
|
|
41
|
+
:label="$t('LOGIN.FIELDS.PASSWORD.LABEL')"
|
|
42
|
+
:placeholder="$t('LOGIN.FIELDS.PASSWORD.PLACEHOLDER')"
|
|
43
|
+
type="password"
|
|
44
|
+
required
|
|
45
|
+
:error="!!errors.length"
|
|
46
|
+
:error-message="errorMessage"
|
|
47
|
+
@keyup.enter="login"
|
|
48
|
+
@update:model-value="handleChange"
|
|
49
|
+
/>
|
|
50
|
+
</Field>
|
|
51
|
+
|
|
52
|
+
<div class="tw-flex tw-justify-end tw-items-center tw-pt-2">
|
|
53
|
+
<VcButton
|
|
54
|
+
text
|
|
55
|
+
type="button"
|
|
56
|
+
@click="togglePassRequest"
|
|
57
|
+
>
|
|
58
|
+
{{ $t("LOGIN.FORGOT_PASSWORD_BUTTON") }}
|
|
59
|
+
</VcButton>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
|
|
62
|
+
<vc-button
|
|
63
|
+
:disabled="loading || !isValid"
|
|
64
|
+
class="tw-w-28"
|
|
65
|
+
@click="login"
|
|
66
|
+
>
|
|
67
|
+
{{ $t("LOGIN.BUTTON") }}
|
|
68
|
+
</vc-button>
|
|
69
|
+
</div>
|
|
70
|
+
</VcForm>
|
|
71
|
+
<div
|
|
72
|
+
v-if="azureAdAuthAvailable && azureAdAuthCaption"
|
|
73
|
+
class="tw-mt-4"
|
|
74
|
+
>
|
|
75
|
+
<div
|
|
76
|
+
class="tw-flex tw-items-center tw-text-center tw-uppercase tw-text-[color:var(--separator-text)] before:tw-content-[''] before:tw-flex-1 before:tw-border-b before:tw-border-b-[color:var(--separator)] before:tw-mr-2 after:tw-content-[''] after:tw-flex-1 after:tw-border-b after:tw-border-b-[color:var(--separator)] after:tw-ml-2"
|
|
77
|
+
>
|
|
78
|
+
OR
|
|
79
|
+
</div>
|
|
80
|
+
<div class="tw-flex tw-justify-center tw-mt-4">
|
|
81
|
+
<VcButton
|
|
82
|
+
outline
|
|
83
|
+
@click="azureSignOn"
|
|
84
|
+
><div class="tw-flex tw-flex-row tw-items-center">
|
|
85
|
+
<img
|
|
86
|
+
:src="AzureAdIcon"
|
|
87
|
+
alt="AzureAd"
|
|
88
|
+
class="tw-h-5 tw-mr-2"
|
|
89
|
+
/>{{ azureAdAuthCaption }}
|
|
90
|
+
</div></VcButton
|
|
91
|
+
>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
<template v-else>
|
|
96
|
+
<template v-if="!forgotPasswordRequestSent">
|
|
97
|
+
<VcForm @submit.prevent="forgot">
|
|
98
|
+
<Field
|
|
99
|
+
v-slot="{ field, errorMessage, handleChange, errors }"
|
|
100
|
+
:label="$t('LOGIN.FIELDS.FORGOT_PASSWORD.LABEL')"
|
|
101
|
+
name="loginOrEmail"
|
|
102
|
+
:model-value="forgotPasswordForm.loginOrEmail"
|
|
103
|
+
rules="required|email"
|
|
104
|
+
>
|
|
105
|
+
<VcInput
|
|
106
|
+
v-bind="field"
|
|
107
|
+
ref="forgotPasswordField"
|
|
108
|
+
v-model="forgotPasswordForm.loginOrEmail"
|
|
109
|
+
class="tw-mb-4 tw-mt-1"
|
|
110
|
+
:label="$t('LOGIN.FIELDS.FORGOT_PASSWORD.LABEL')"
|
|
111
|
+
:placeholder="$t('LOGIN.FIELDS.FORGOT_PASSWORD.PLACEHOLDER')"
|
|
112
|
+
:hint="$t('LOGIN.RESET_EMAIL_TEXT')"
|
|
113
|
+
required
|
|
114
|
+
:error="!!errors.length"
|
|
115
|
+
:error-message="errorMessage"
|
|
116
|
+
@update:model-value="handleChange"
|
|
117
|
+
></VcInput>
|
|
118
|
+
</Field>
|
|
119
|
+
<div class="tw-flex tw-justify-between tw-items-center tw-pt-2">
|
|
120
|
+
<vc-button
|
|
121
|
+
text
|
|
122
|
+
type="button"
|
|
123
|
+
@click="togglePassRequest"
|
|
124
|
+
>
|
|
125
|
+
{{ $t("LOGIN.BACK_BUTTON") }}
|
|
126
|
+
</vc-button>
|
|
127
|
+
<vc-button
|
|
128
|
+
:disabled="loading || isDisabled"
|
|
129
|
+
@click="forgot"
|
|
130
|
+
>
|
|
131
|
+
{{ $t("LOGIN.FORGOT_BUTTON") }}
|
|
132
|
+
</vc-button>
|
|
133
|
+
</div>
|
|
134
|
+
</VcForm>
|
|
135
|
+
</template>
|
|
136
|
+
|
|
137
|
+
<template v-if="requestPassResult.succeeded && forgotPasswordRequestSent">
|
|
138
|
+
<div>{{ $t("LOGIN.RESET_EMAIL_SENT") }}</div>
|
|
139
|
+
<div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
|
|
140
|
+
<span
|
|
141
|
+
v-if="$isDesktop.value"
|
|
142
|
+
class="tw-grow tw-basis-0"
|
|
143
|
+
></span>
|
|
144
|
+
<vc-button
|
|
145
|
+
:disabled="loading"
|
|
146
|
+
@click="togglePassRequest"
|
|
147
|
+
>
|
|
148
|
+
{{ $t("LOGIN.BUTTON_OK") }}
|
|
149
|
+
</vc-button>
|
|
150
|
+
</div>
|
|
151
|
+
</template>
|
|
152
|
+
</template>
|
|
153
|
+
|
|
154
|
+
<VcHint
|
|
155
|
+
v-if="!signInResult.succeeded"
|
|
156
|
+
class="tw-mt-3"
|
|
157
|
+
style="color: #f14e4e"
|
|
158
|
+
>
|
|
159
|
+
<!-- TODO: stylizing-->
|
|
160
|
+
{{ signInResult.error }}
|
|
161
|
+
</VcHint>
|
|
162
|
+
<VcHint
|
|
163
|
+
v-if="!requestPassResult.succeeded"
|
|
164
|
+
class="tw-mt-3"
|
|
165
|
+
style="color: #f14e4e"
|
|
166
|
+
>
|
|
167
|
+
<!-- TODO: stylizing-->
|
|
168
|
+
{{ requestPassResult.error }}
|
|
169
|
+
</VcHint>
|
|
170
|
+
</VcLoginForm>
|
|
171
|
+
</template>
|
|
172
|
+
|
|
173
|
+
<script lang="ts" setup>
|
|
174
|
+
import { ref, reactive, computed, onMounted, inject } from "vue";
|
|
175
|
+
import { useRouter } from "vue-router";
|
|
176
|
+
import { useIsFormValid, Field, useIsFormDirty, useForm } from "vee-validate";
|
|
177
|
+
import { useSettings, useUser } from "./../../../../../core/composables";
|
|
178
|
+
import { RequestPasswordResult, SignInResults } from "./../../../../../core/types";
|
|
179
|
+
import { CommonPageComposables } from "typings";
|
|
180
|
+
import { asyncComputed } from "@vueuse/core";
|
|
181
|
+
import AzureAdIcon from "./../../../../../assets/img/AzureAd.svg";
|
|
182
|
+
|
|
183
|
+
export interface Props {
|
|
184
|
+
logo: string;
|
|
185
|
+
background: string;
|
|
186
|
+
title: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const props = defineProps<Props>();
|
|
190
|
+
|
|
191
|
+
const router = useRouter();
|
|
192
|
+
|
|
193
|
+
useForm({ validateOnMount: false });
|
|
194
|
+
const { getUiCustomizationSettings, uiSettings } = useSettings();
|
|
195
|
+
const { useLogin } = inject<CommonPageComposables>("commonPageComposables");
|
|
196
|
+
|
|
197
|
+
const signInResult = ref<SignInResults>({ succeeded: true });
|
|
198
|
+
const requestPassResult = ref<RequestPasswordResult>({ succeeded: true });
|
|
199
|
+
const forgotPasswordRequestSent = ref(false);
|
|
200
|
+
const { signIn, loading, loadUser, externalSignIn, isAzureAdAuthAvailable, getAzureAdAuthCaption } = useUser();
|
|
201
|
+
const { forgotPassword } = useLogin();
|
|
202
|
+
const isLogin = ref(true);
|
|
203
|
+
const isValid = useIsFormValid();
|
|
204
|
+
const isDirty = useIsFormDirty();
|
|
205
|
+
const customizationLoading = ref(false);
|
|
206
|
+
|
|
207
|
+
onMounted(async () => {
|
|
208
|
+
try {
|
|
209
|
+
customizationLoading.value = true;
|
|
210
|
+
await getUiCustomizationSettings(import.meta.env.APP_PLATFORM_URL);
|
|
211
|
+
} finally {
|
|
212
|
+
customizationLoading.value = false;
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
const customization = computed(() => {
|
|
217
|
+
return (
|
|
218
|
+
!customizationLoading.value && {
|
|
219
|
+
logo: uiSettings.value?.logo || props.logo,
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
const isDisabled = computed(() => {
|
|
225
|
+
return !isDirty.value || !isValid.value;
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
const azureAdAuthAvailable = asyncComputed(async () => {
|
|
229
|
+
return await isAzureAdAuthAvailable();
|
|
230
|
+
});
|
|
231
|
+
const azureAdAuthCaption = asyncComputed(async () => {
|
|
232
|
+
return await getAzureAdAuthCaption();
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
const form = reactive({
|
|
236
|
+
username: "",
|
|
237
|
+
password: "",
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
const forgotPasswordForm = reactive({
|
|
241
|
+
loginOrEmail: "",
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
const login = async () => {
|
|
245
|
+
if (isValid.value) {
|
|
246
|
+
signInResult.value = await signIn(form.username, form.password);
|
|
247
|
+
|
|
248
|
+
if (signInResult.value.succeeded) {
|
|
249
|
+
router.push("/");
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const forgot = async () => {
|
|
255
|
+
if (isValid.value) {
|
|
256
|
+
await forgotPassword({ loginOrEmail: forgotPasswordForm.loginOrEmail });
|
|
257
|
+
forgotPasswordRequestSent.value = true;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
const togglePassRequest = () => {
|
|
262
|
+
isLogin.value = !isLogin.value;
|
|
263
|
+
if (isLogin.value) {
|
|
264
|
+
forgotPasswordRequestSent.value = false;
|
|
265
|
+
forgotPasswordForm.loginOrEmail = "";
|
|
266
|
+
requestPassResult.value.error = "";
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
const azureSignOn = async () => {
|
|
271
|
+
await externalSignIn("AzureAD", import.meta.env.BASE_URL);
|
|
272
|
+
await loadUser();
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
console.debug("Init login-page");
|
|
276
|
+
</script>
|
|
277
|
+
|
|
278
|
+
<style lang="scss">
|
|
279
|
+
:root {
|
|
280
|
+
--separator: #d3dbe9;
|
|
281
|
+
--separator-text: #83a3be;
|
|
282
|
+
}
|
|
283
|
+
</style>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"LOGIN": {
|
|
3
|
+
"FIELDS": {
|
|
4
|
+
"LOGIN": {
|
|
5
|
+
"LABEL": "Username",
|
|
6
|
+
"PLACEHOLDER": "Enter your username"
|
|
7
|
+
},
|
|
8
|
+
"PASSWORD": {
|
|
9
|
+
"LABEL": "Password",
|
|
10
|
+
"PLACEHOLDER": "Enter your password"
|
|
11
|
+
},
|
|
12
|
+
"FORGOT_PASSWORD": {
|
|
13
|
+
"TITLE": "Forgot password",
|
|
14
|
+
"LABEL": "Email",
|
|
15
|
+
"PLACEHOLDER": "Please enter your email"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"FORGOT_PASSWORD_BUTTON": "Forgot your password?",
|
|
19
|
+
"BUTTON": "Log in",
|
|
20
|
+
"FORGOT_BUTTON": "Submit",
|
|
21
|
+
"BACK_BUTTON": "Back",
|
|
22
|
+
"BUTTON_OK": "Ok",
|
|
23
|
+
"RESET_EMAIL_TEXT": "We will send you an email with instructions on how to reset your password.",
|
|
24
|
+
"RESET_EMAIL_SENT": "Email with instructions has been sent to you."
|
|
25
|
+
},
|
|
26
|
+
"MENU": {
|
|
27
|
+
"DASHBOARD": "Home"
|
|
28
|
+
},
|
|
29
|
+
"TOOLBAR": {
|
|
30
|
+
"LOGIN": "Log In",
|
|
31
|
+
"SETTINGS": "Settings",
|
|
32
|
+
"HELP": "Help",
|
|
33
|
+
"NOTIFICATIONS": "Notifications",
|
|
34
|
+
"LANGUAGE": "Language selector"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { App } from "vue";
|
|
2
|
+
import { createModule } from "./../../../core/plugins";
|
|
3
|
+
import * as components from "./components";
|
|
4
|
+
import * as locales from "./locales";
|
|
5
|
+
import { CommonPageComposables } from "./../../../typings";
|
|
6
|
+
|
|
7
|
+
export const LoginPage = {
|
|
8
|
+
install(app: App, config: CommonPageComposables) {
|
|
9
|
+
// Register components
|
|
10
|
+
createModule(components, locales).install(app);
|
|
11
|
+
|
|
12
|
+
if (config) {
|
|
13
|
+
app.config.globalProperties.commonPageComposables = config;
|
|
14
|
+
app.provide("commonPageComposables", config);
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./reset-password";
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vc-app tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-m-0 vc-theme_light">
|
|
3
|
+
<VcLoading
|
|
4
|
+
v-if="loading"
|
|
5
|
+
active
|
|
6
|
+
></VcLoading>
|
|
7
|
+
|
|
8
|
+
<VcLoginForm
|
|
9
|
+
logo="/assets/logo-white.svg"
|
|
10
|
+
background="/assets/background.jpg"
|
|
11
|
+
:title="$t('PASSWORDRESET.TITLE')"
|
|
12
|
+
>
|
|
13
|
+
<VcForm>
|
|
14
|
+
<Field
|
|
15
|
+
v-slot="{ field, errorMessage, handleChange, errors }"
|
|
16
|
+
:label="$t('PASSWORDRESET.FIELDS.PASSWORD.LABEL')"
|
|
17
|
+
name="password"
|
|
18
|
+
:model-value="form.password"
|
|
19
|
+
rules="required"
|
|
20
|
+
>
|
|
21
|
+
<VcInput
|
|
22
|
+
v-bind="field"
|
|
23
|
+
ref="passwordField"
|
|
24
|
+
v-model="form.password"
|
|
25
|
+
class="tw-mb-4 tw-mt-1"
|
|
26
|
+
:label="$t('PASSWORDRESET.FIELDS.PASSWORD.LABEL')"
|
|
27
|
+
:placeholder="$t('PASSWORDRESET.FIELDS.PASSWORD.PLACEHOLDER')"
|
|
28
|
+
type="password"
|
|
29
|
+
:disabled="!form.tokenIsValid"
|
|
30
|
+
required
|
|
31
|
+
:error="!!errors.length"
|
|
32
|
+
:error-message="errorMessage"
|
|
33
|
+
@update:model-value="
|
|
34
|
+
(e) => {
|
|
35
|
+
handleChange(e);
|
|
36
|
+
validate();
|
|
37
|
+
}
|
|
38
|
+
"
|
|
39
|
+
/>
|
|
40
|
+
</Field>
|
|
41
|
+
<Field
|
|
42
|
+
v-slot="{ field, errorMessage, handleChange, errors }"
|
|
43
|
+
:label="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL')"
|
|
44
|
+
name="confirm_password"
|
|
45
|
+
:model-value="form.confirmPassword"
|
|
46
|
+
rules="required"
|
|
47
|
+
>
|
|
48
|
+
<VcInput
|
|
49
|
+
v-bind="field"
|
|
50
|
+
ref="confirmPasswordField"
|
|
51
|
+
v-model="form.confirmPassword"
|
|
52
|
+
class="tw-mb-4"
|
|
53
|
+
:label="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.LABEL')"
|
|
54
|
+
:placeholder="$t('PASSWORDRESET.FIELDS.CONFIRM_PASSWORD.PLACEHOLDER')"
|
|
55
|
+
:disabled="!form.tokenIsValid"
|
|
56
|
+
type="password"
|
|
57
|
+
required
|
|
58
|
+
:error="!!errors.length"
|
|
59
|
+
:error-message="errorMessage"
|
|
60
|
+
@update:model-value="
|
|
61
|
+
(e) => {
|
|
62
|
+
handleChange(e);
|
|
63
|
+
validate();
|
|
64
|
+
}
|
|
65
|
+
"
|
|
66
|
+
@keyup.enter="resetPassword"
|
|
67
|
+
>
|
|
68
|
+
</VcInput>
|
|
69
|
+
</Field>
|
|
70
|
+
<div class="tw-flex tw-justify-center tw-items-center tw-pt-2">
|
|
71
|
+
<span
|
|
72
|
+
v-if="$isDesktop.value"
|
|
73
|
+
class="tw-grow tw-basis-0"
|
|
74
|
+
></span>
|
|
75
|
+
<vc-button
|
|
76
|
+
:disabled="disableButton"
|
|
77
|
+
@click="resetPassword"
|
|
78
|
+
>
|
|
79
|
+
{{ $t("PASSWORDRESET.SAVE_PASSWORD") }}
|
|
80
|
+
</vc-button>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<VcHint
|
|
84
|
+
v-for="error in form.errors"
|
|
85
|
+
:key="error"
|
|
86
|
+
class="tw-mt-3 !tw-text-[#f14e4e]"
|
|
87
|
+
>
|
|
88
|
+
<!-- TODO: stylizing-->
|
|
89
|
+
{{ $t(`PASSWORDRESET.ERRORS.${error}`) }}
|
|
90
|
+
</VcHint>
|
|
91
|
+
</VcForm>
|
|
92
|
+
</VcLoginForm>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
|
|
96
|
+
<script lang="ts" setup>
|
|
97
|
+
import { reactive, onMounted, computed } from "vue";
|
|
98
|
+
import { useRouter } from "vue-router";
|
|
99
|
+
import { Field, useForm } from "vee-validate";
|
|
100
|
+
import { useUser } from "./../../../../../core/composables";
|
|
101
|
+
|
|
102
|
+
const props = defineProps({
|
|
103
|
+
userId: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: undefined,
|
|
106
|
+
},
|
|
107
|
+
userName: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: undefined,
|
|
110
|
+
},
|
|
111
|
+
token: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: undefined,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
const { validateToken, validatePassword, resetPasswordByToken, signIn, loading } = useUser();
|
|
117
|
+
const router = useRouter();
|
|
118
|
+
const { validate: veeValidate } = useForm({ validateOnMount: false });
|
|
119
|
+
|
|
120
|
+
const form = reactive({
|
|
121
|
+
isValid: false,
|
|
122
|
+
tokenIsValid: false,
|
|
123
|
+
errors: [],
|
|
124
|
+
password: "",
|
|
125
|
+
confirmPassword: "",
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
onMounted(async () => {
|
|
129
|
+
form.tokenIsValid = await validateToken(props.userId, props.token);
|
|
130
|
+
if (!form.tokenIsValid) {
|
|
131
|
+
form.errors.push("Invalid-token");
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const disableButton = computed(() => {
|
|
136
|
+
return loading.value || !form.password || !form.confirmPassword || (!form.isValid && form.tokenIsValid);
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
const validate = async () => {
|
|
140
|
+
if (form.tokenIsValid) {
|
|
141
|
+
const errors = (await validatePassword(form.password)).errors;
|
|
142
|
+
form.errors = errors.map((x) => x.code);
|
|
143
|
+
if (form.confirmPassword !== form.password) {
|
|
144
|
+
form.errors.push("Repeat-password");
|
|
145
|
+
}
|
|
146
|
+
form.isValid = form.errors.length == 0;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const resetPassword = async () => {
|
|
151
|
+
const { valid } = await veeValidate();
|
|
152
|
+
if (valid) {
|
|
153
|
+
const result = await resetPasswordByToken(props.userId, form.password, props.token);
|
|
154
|
+
if (result.succeeded) {
|
|
155
|
+
const result = await signIn(props.userName, form.password);
|
|
156
|
+
if (result.succeeded) {
|
|
157
|
+
router.push("/");
|
|
158
|
+
} else {
|
|
159
|
+
form.errors = [result.errorCode];
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
form.errors = result.errors;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PASSWORDRESET": {
|
|
3
|
+
"TITLE": "Password reset",
|
|
4
|
+
"FIELDS": {
|
|
5
|
+
"PASSWORD": {
|
|
6
|
+
"LABEL": "New password",
|
|
7
|
+
"PLACEHOLDER": "Enter password"
|
|
8
|
+
},
|
|
9
|
+
"CONFIRM_PASSWORD": {
|
|
10
|
+
"LABEL": "Confirm password",
|
|
11
|
+
"PLACEHOLDER": "Confirm password"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"SAVE_PASSWORD": "Save",
|
|
15
|
+
"ERRORS": {
|
|
16
|
+
"Repeat-password": "Passwords are not same",
|
|
17
|
+
"Invalid-token": "Token is invalid or expired",
|
|
18
|
+
"Password-too-weak": "New password does not comply one or more password security policies:",
|
|
19
|
+
"PasswordTooShort": "Passwords too short",
|
|
20
|
+
"PasswordRequiresUniqueChars": "Passwords must use different characters",
|
|
21
|
+
"PasswordRequiresLower": "Passwords must have at least one lowercase ('a'-'z')",
|
|
22
|
+
"PasswordRequiresUpper": "Passwords must have at least one uppercase ('A'-'Z')",
|
|
23
|
+
"PasswordRequiresDigit": "Passwords must have at least one digit ('0'-'9')",
|
|
24
|
+
"PasswordRequiresNonAlphanumeric": "Passwords must have at least one non alphanumeric character",
|
|
25
|
+
"recentPasswordUsed": "You have used this password in the past. Choose another one."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonPageComposables } from "./../../typings";
|
|
2
|
+
|
|
3
|
+
// Declare globally
|
|
4
|
+
declare module "@vue/runtime-core" {
|
|
5
|
+
export interface ComponentCustomProperties {
|
|
6
|
+
CommonPageComposables: CommonPageComposables;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export * from "./InvitePage";
|
|
11
|
+
export * from "./LoginPage";
|
|
12
|
+
export * from "./ResetPasswordPage";
|