@vc-shell/framework 1.0.110 → 1.0.111
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 +19 -0
- package/core/composables/useApiClient/index.ts +1 -1
- package/core/composables/useAsync/index.ts +2 -2
- package/core/composables/usePermissions/index.ts +7 -18
- package/core/composables/useUser/index.ts +13 -11
- package/core/directives/loading/index.ts +5 -27
- package/core/directives/loading/styles.css +38 -0
- package/core/plugins/modularity/index.ts +41 -14
- package/core/plugins/permissions/index.ts +3 -3
- package/core/types/index.ts +36 -3
- package/dist/core/composables/useApiClient/index.d.ts +1 -1
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/usePermissions/index.d.ts +1 -2
- package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/directives/loading/index.d.ts +3 -2
- package/dist/core/directives/loading/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +13 -4
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +41 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.mjs +25286 -23535
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +14 -23
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +28 -25
- 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.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +5 -2
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/error-interceptor/index.d.ts +3 -3
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +41 -26
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +12 -12
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +11 -11
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +35 -22
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +39 -28
- 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 +13 -13
- package/dist/shared/modules/assets/index.d.ts +3 -1
- package/dist/shared/modules/assets/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +42 -29
- 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 +9 -9
- package/dist/shared/modules/assets-manager/index.d.ts +3 -1
- package/dist/shared/modules/assets-manager/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +2204 -0
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +220 -0
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/factories.d.ts +15 -0
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +130 -0
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +128 -0
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +132 -0
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +131 -0
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +13 -0
- package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +124 -0
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/index.d.ts +4 -0
- package/dist/shared/modules/dynamic/components/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/composables/index.d.ts +2 -0
- package/dist/shared/modules/dynamic/composables/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +35 -0
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +8 -0
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +22 -0
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/factories/index.d.ts +4 -0
- package/dist/shared/modules/dynamic/factories/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +101 -0
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/getters.d.ts +2 -0
- package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +13 -0
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/override.d.ts +7 -0
- package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/setters.d.ts +8 -0
- package/dist/shared/modules/dynamic/helpers/setters.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts +11 -0
- package/dist/shared/modules/dynamic/helpers/toolbarReducer.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts +2 -0
- package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts +3 -0
- package/dist/shared/modules/dynamic/helpers/unwrapInterpolation.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/index.d.ts +32 -0
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +68 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +79 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/pages/index.d.ts +4 -0
- package/dist/shared/modules/dynamic/pages/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/types/index.d.ts +250 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/types/models.d.ts +93 -0
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -0
- package/dist/shared/modules/index.d.ts +1 -0
- package/dist/shared/modules/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/index.d.ts +0 -3
- package/dist/shared/pages/InvitePage/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts +4 -0
- package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -0
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +45 -9
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +14 -0
- package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/index.d.ts +0 -1
- package/dist/shared/pages/LoginPage/index.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts +1 -3
- package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/index.d.ts +0 -3
- package/dist/shared/pages/ResetPasswordPage/index.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +4 -0
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -0
- package/dist/shared/pages/index.d.ts +0 -6
- package/dist/shared/pages/index.d.ts.map +1 -1
- package/dist/shared/pages/plugin.d.ts +4 -0
- package/dist/shared/pages/plugin.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +4 -4
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +22 -11
- 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 +1 -208
- 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 +75 -27
- 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 +32 -38
- 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 +46 -27
- 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 +72 -38
- 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 +69 -28
- 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 +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +11 -22
- 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 +5 -5
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +22 -11
- 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 +1 -1
- 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 +13 -7
- 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 +27 -25
- 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 +16 -16
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +54 -29
- 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 +9 -9
- package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +30 -23
- 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 +33 -39
- 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 +33 -26
- 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 +4 -4
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +22 -11
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +9 -10
- 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 +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +19 -24
- 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 +1 -1
- 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 +1 -142
- 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 +29 -28
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +9 -10
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +36 -11
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/index.d.ts +13 -13
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +49 -24
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +28 -11
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +5 -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/vc-breadcrumbs.vue.d.ts +23 -22
- 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 +28 -28
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +48 -23
- 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 +1 -226
- 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 +74 -28
- 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 +23 -23
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +46 -27
- 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 +1 -1
- 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 +1 -390
- 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 +181 -41
- 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 +90 -90
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +143 -30
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/index.d.ts +74 -10
- package/dist/ui/components/molecules/vc-multivalue/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +74 -10
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +51 -10
- 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 +6 -6
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +26 -25
- 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 +19 -19
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +46 -25
- 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 +65 -103
- 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 +65 -479
- 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 +21 -21
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +39 -26
- 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 +40 -40
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +74 -25
- 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 +35 -12
- 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 +40 -23
- 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 +47 -28
- 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 +31 -28
- 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 +67 -67
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +86 -37
- 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 +44 -11
- 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 +61 -34
- 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 +13 -22
- 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 +39 -39
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +62 -31
- 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 +1 -140
- 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 +64 -75
- 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 +58 -35
- 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 +22 -25
- 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 -31
- 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 +130 -46
- 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 +9 -9
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +23 -22
- 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 +28 -22
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts +0 -6
- package/dist/ui/components/organisms/vc-notification-dropdown/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +36 -10
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-template/index.d.ts +4 -4
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts +27 -10
- package/dist/ui/components/organisms/vc-notification-template/vc-notification-template.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +38 -31
- 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 +18 -9
- 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 +12 -19
- 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 +23 -24
- 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 +29 -26
- 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 +14 -14
- 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 +1 -214
- 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 +90 -105
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +8 -8
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +16 -14
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +37 -30
- package/shared/components/blade-navigation/types/index.ts +7 -3
- package/shared/components/notifications/composables/useContainer/index.ts +2 -5
- package/shared/components/popup-handler/composables/usePopup/index.ts +0 -2
- package/shared/modules/assets/components/assets-details/assets-details.vue +6 -6
- package/shared/modules/assets/index.ts +2 -2
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +3 -3
- package/shared/modules/assets-manager/index.ts +2 -2
- package/shared/modules/dynamic/components/FIELD_MAP.ts +27 -0
- package/shared/modules/dynamic/components/SchemaRender.ts +81 -0
- package/shared/modules/dynamic/components/factories.ts +159 -0
- package/shared/modules/dynamic/components/fields/Button.ts +31 -0
- package/shared/modules/dynamic/components/fields/Card.ts +86 -0
- package/shared/modules/dynamic/components/fields/Checkbox.ts +44 -0
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +99 -0
- package/shared/modules/dynamic/components/fields/EditorField.ts +43 -0
- package/shared/modules/dynamic/components/fields/Fieldset.ts +77 -0
- package/shared/modules/dynamic/components/fields/GalleryField.ts +121 -0
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +49 -0
- package/shared/modules/dynamic/components/fields/InputField.ts +42 -0
- package/shared/modules/dynamic/components/fields/SelectField.ts +55 -0
- package/shared/modules/dynamic/components/fields/StatusField.ts +55 -0
- package/shared/modules/dynamic/components/fields/ValidationField.ts +53 -0
- package/shared/modules/dynamic/components/fields/props.ts +52 -0
- package/shared/modules/dynamic/components/index.ts +4 -0
- package/shared/modules/dynamic/composables/index.ts +1 -0
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +235 -0
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +83 -0
- package/shared/modules/dynamic/factories/base/useListFactory.ts +68 -0
- package/shared/modules/dynamic/factories/index.ts +4 -0
- package/shared/modules/dynamic/factories/types/index.ts +103 -0
- package/shared/modules/dynamic/helpers/getters.ts +10 -0
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +112 -0
- package/shared/modules/dynamic/helpers/override.ts +70 -0
- package/shared/modules/dynamic/helpers/setters.ts +15 -0
- package/shared/modules/dynamic/helpers/toolbarReducer.ts +41 -0
- package/shared/modules/dynamic/helpers/unrefNested.ts +14 -0
- package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +15 -0
- package/shared/modules/dynamic/index.ts +163 -0
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +292 -0
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +437 -0
- package/shared/modules/dynamic/pages/index.ts +4 -0
- package/shared/modules/dynamic/types/index.ts +287 -0
- package/shared/modules/dynamic/types/models.ts +140 -0
- package/shared/modules/index.ts +1 -0
- package/shared/pages/InvitePage/index.ts +0 -6
- package/shared/pages/InvitePage/plugin.ts +5 -0
- package/shared/pages/LoginPage/components/login/Login.vue +5 -6
- package/shared/pages/LoginPage/index.ts +0 -1
- package/shared/pages/LoginPage/plugin.ts +1 -13
- package/shared/pages/ResetPasswordPage/index.ts +0 -6
- package/shared/pages/ResetPasswordPage/plugin.ts +5 -0
- package/shared/pages/index.ts +0 -9
- package/shared/pages/plugin.ts +3 -0
- package/ui/components/atoms/vc-button/index.ts +1 -10
- package/ui/components/atoms/vc-button/vc-button.vue +8 -2
- package/ui/components/atoms/vc-card/index.ts +1 -9
- package/ui/components/atoms/vc-card/vc-card.vue +6 -1
- package/ui/components/atoms/vc-checkbox/index.ts +1 -9
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +32 -10
- package/ui/components/atoms/vc-icon/vc-icon.vue +13 -1
- package/ui/components/atoms/vc-label/index.ts +1 -9
- package/ui/components/atoms/vc-label/vc-label.vue +5 -0
- package/ui/components/atoms/vc-status/index.ts +1 -10
- package/ui/components/atoms/vc-status/vc-status.vue +5 -1
- package/ui/components/atoms/vc-video/vc-video.vue +2 -2
- package/ui/components/atoms/vc-widget/vc-widget.vue +1 -1
- package/ui/components/molecules/vc-editor/index.ts +1 -10
- package/ui/components/molecules/vc-editor/vc-editor.vue +16 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +4 -4
- package/ui/components/molecules/vc-input/index.ts +1 -60
- package/ui/components/molecules/vc-input/vc-input.vue +112 -37
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +21 -17
- package/ui/components/molecules/vc-select/index.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.vue +11 -37
- package/ui/components/organisms/vc-dynamic-property/index.ts +1 -3
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +199 -257
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +9 -7
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +10 -1
- package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +1 -10
- package/ui/components/organisms/vc-table/index.ts +1 -3
- package/ui/components/organisms/vc-table/vc-table.stories.ts +3 -3
- package/ui/components/organisms/vc-table/vc-table.vue +29 -16
- package/core/api/catalog.ts +0 -8527
- package/dist/core/api/catalog.d.ts +0 -2522
- package/dist/core/api/catalog.d.ts.map +0 -1
- package/dist/typings/index.d.ts +0 -8
- package/dist/typings/index.d.ts.map +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ComputedRef, Raw } from "vue";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
+
import {
|
|
4
|
+
VcButton,
|
|
5
|
+
VcCard,
|
|
6
|
+
VcCheckbox,
|
|
7
|
+
VcDynamicProperty,
|
|
8
|
+
VcEditor,
|
|
9
|
+
VcGallery,
|
|
10
|
+
VcInput,
|
|
11
|
+
VcInputCurrency,
|
|
12
|
+
VcSelect,
|
|
13
|
+
VcStatus,
|
|
14
|
+
} from "../../../../ui/components";
|
|
15
|
+
import type { ComponentProps, ComponentEmit, ComponentSlots } from "vue-component-type-helpers";
|
|
16
|
+
|
|
17
|
+
type FromGenericEventsToProps<T extends Record<string, any>> = T extends Record<string, any>
|
|
18
|
+
? {
|
|
19
|
+
[K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}`
|
|
20
|
+
? (...args: T[Uncapitalize<C>]) => any
|
|
21
|
+
: never;
|
|
22
|
+
}
|
|
23
|
+
: never;
|
|
24
|
+
|
|
25
|
+
interface FieldOpts<T> {
|
|
26
|
+
component?: ComponentType<T>;
|
|
27
|
+
id?: string | number;
|
|
28
|
+
props?: Record<string, any>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ComponentType<T> = Raw<T>;
|
|
32
|
+
|
|
33
|
+
export type FormFields = {
|
|
34
|
+
[key: string]: ControlType & IFieldset;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type ControlType =
|
|
38
|
+
| ISelectField
|
|
39
|
+
| IInputField
|
|
40
|
+
| ICardCollection
|
|
41
|
+
| IEditorField
|
|
42
|
+
| IGallery
|
|
43
|
+
| IDynamicProperties
|
|
44
|
+
| ICheckbox
|
|
45
|
+
| IButton
|
|
46
|
+
| IInputCurrency
|
|
47
|
+
| IStatusField;
|
|
48
|
+
|
|
49
|
+
export type ControlTypeWithSlots = Extract<
|
|
50
|
+
ControlType,
|
|
51
|
+
ISelectField | ICardCollection | ICheckbox | IButton | IStatusField
|
|
52
|
+
>;
|
|
53
|
+
export type ControlTypeCtr = Extract<ControlType, ISelectField | IInputField | IInputCurrency | IEditorField>;
|
|
54
|
+
|
|
55
|
+
export interface IControlBaseProps {
|
|
56
|
+
key?: string | number | symbol;
|
|
57
|
+
rules?: string | Record<string, unknown>;
|
|
58
|
+
label?: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
required?: boolean;
|
|
62
|
+
name?: string;
|
|
63
|
+
classNames?: string;
|
|
64
|
+
modelValue?: any;
|
|
65
|
+
tooltip?: string;
|
|
66
|
+
"onUpdate:modelValue"?: (event: any) => void;
|
|
67
|
+
multilanguage?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
|
|
71
|
+
[Property in Key]-?: Type[Property];
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export interface IControlBaseOptions {
|
|
75
|
+
visibility?: ComputedRef<boolean>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type ISelectField = {
|
|
79
|
+
props: ComponentProps<typeof VcSelect> | IControlBaseProps;
|
|
80
|
+
slots?: Partial<ComponentSlots<typeof VcSelect>>;
|
|
81
|
+
options: IControlBaseOptions;
|
|
82
|
+
} & FieldOpts<typeof VcSelect>;
|
|
83
|
+
|
|
84
|
+
export type IStatusField = {
|
|
85
|
+
props: ComponentProps<typeof VcStatus> & IControlBaseOptions;
|
|
86
|
+
slots?: Partial<Pick<ComponentSlots<typeof VcButton>, "default">>;
|
|
87
|
+
options: IControlBaseOptions;
|
|
88
|
+
} & FieldOpts<typeof VcStatus>;
|
|
89
|
+
|
|
90
|
+
export type IInputField = {
|
|
91
|
+
props: ComponentProps<typeof VcInput> | IControlBaseProps;
|
|
92
|
+
options: IControlBaseOptions;
|
|
93
|
+
} & FieldOpts<typeof VcInput>;
|
|
94
|
+
|
|
95
|
+
export type IInputCurrency = {
|
|
96
|
+
props: Partial<ComponentProps<typeof VcInputCurrency>> | IControlBaseProps;
|
|
97
|
+
options: IControlBaseOptions;
|
|
98
|
+
} & FieldOpts<typeof VcInputCurrency>;
|
|
99
|
+
|
|
100
|
+
export type ICardCollection = {
|
|
101
|
+
props: ComponentProps<typeof VcCard> | IControlBaseProps;
|
|
102
|
+
options: IControlBaseOptions;
|
|
103
|
+
slots?: Partial<Pick<ComponentSlots<typeof VcCard>, "default" | "actions">>;
|
|
104
|
+
} & FieldOpts<typeof VcCard>;
|
|
105
|
+
|
|
106
|
+
export type ICheckbox = {
|
|
107
|
+
props: ComponentProps<typeof VcCheckbox> | IControlBaseProps;
|
|
108
|
+
options: IControlBaseOptions;
|
|
109
|
+
slots?: Partial<Pick<ComponentSlots<typeof VcCheckbox>, "default" | "error">>;
|
|
110
|
+
} & FieldOpts<typeof VcCheckbox>;
|
|
111
|
+
|
|
112
|
+
export type IDynamicProperties = {
|
|
113
|
+
props:
|
|
114
|
+
| (ComponentProps<typeof VcDynamicProperty> & FromGenericEventsToProps<ComponentEmit<typeof VcDynamicProperty>>)
|
|
115
|
+
| IControlBaseProps;
|
|
116
|
+
options: IControlBaseOptions;
|
|
117
|
+
} & FieldOpts<typeof VcDynamicProperty>;
|
|
118
|
+
|
|
119
|
+
export type IEditorField = {
|
|
120
|
+
props: ComponentProps<typeof VcEditor> | IControlBaseProps;
|
|
121
|
+
options: IControlBaseOptions;
|
|
122
|
+
} & FieldOpts<typeof VcEditor>;
|
|
123
|
+
|
|
124
|
+
export type IGallery = {
|
|
125
|
+
props: ComponentProps<typeof VcGallery> | IControlBaseProps;
|
|
126
|
+
options: IControlBaseOptions;
|
|
127
|
+
} & FieldOpts<typeof VcGallery>;
|
|
128
|
+
|
|
129
|
+
export type IButton = {
|
|
130
|
+
props: ComponentProps<typeof VcButton>;
|
|
131
|
+
options: IControlBaseOptions;
|
|
132
|
+
slots?: Partial<Pick<ComponentSlots<typeof VcButton>, "default">>;
|
|
133
|
+
} & FieldOpts<typeof VcButton>;
|
|
134
|
+
|
|
135
|
+
export type IFieldset = {
|
|
136
|
+
columns?: number;
|
|
137
|
+
property?: string;
|
|
138
|
+
remove?: { method?: string };
|
|
139
|
+
fields?: ControlType[];
|
|
140
|
+
};
|
package/shared/modules/index.ts
CHANGED
|
@@ -176,12 +176,11 @@
|
|
|
176
176
|
</template>
|
|
177
177
|
|
|
178
178
|
<script lang="ts" setup>
|
|
179
|
-
import { ref, reactive, computed, onMounted
|
|
179
|
+
import { ref, reactive, computed, onMounted } from "vue";
|
|
180
180
|
import { useRouter } from "vue-router";
|
|
181
181
|
import { useIsFormValid, Field, useIsFormDirty, useForm } from "vee-validate";
|
|
182
182
|
import { useSettings, useUser } from "./../../../../../core/composables";
|
|
183
183
|
import { RequestPasswordResult, SignInResults } from "./../../../../../core/types";
|
|
184
|
-
import { CommonPageComposables } from "./../../../../../typings";
|
|
185
184
|
import AzureAdIcon from "./../../../../../assets/img/AzureAd.svg";
|
|
186
185
|
import { ExternalSignInProviderInfo } from "./../../../../../core/api/platform";
|
|
187
186
|
import { useI18n } from "vue-i18n";
|
|
@@ -190,6 +189,7 @@ export interface Props {
|
|
|
190
189
|
logo: string;
|
|
191
190
|
background: string;
|
|
192
191
|
title: string;
|
|
192
|
+
composable?: () => { forgotPassword: (args: { loginOrEmail: string }) => Promise<void> };
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
const props = defineProps<Props>();
|
|
@@ -200,11 +200,10 @@ useForm({ validateOnMount: false });
|
|
|
200
200
|
const { getUiCustomizationSettings, uiSettings } = useSettings();
|
|
201
201
|
const { t } = useI18n({ useScope: "global" });
|
|
202
202
|
let useLogin;
|
|
203
|
-
const injected = inject<CommonPageComposables>("commonPageComposables");
|
|
204
203
|
const signInResult = ref<SignInResults>({ succeeded: true });
|
|
205
204
|
const requestPassResult = ref<RequestPasswordResult>({ succeeded: true });
|
|
206
205
|
const forgotPasswordRequestSent = ref(false);
|
|
207
|
-
const { signIn, loading, externalSignIn, getExternalLoginProviders } = useUser();
|
|
206
|
+
const { signIn, loading, externalSignIn, getExternalLoginProviders, isAuthenticated } = useUser();
|
|
208
207
|
const isLogin = ref(true);
|
|
209
208
|
const isValid = useIsFormValid();
|
|
210
209
|
const isDirty = useIsFormDirty();
|
|
@@ -213,8 +212,8 @@ const loadingForgotPassword = ref(false);
|
|
|
213
212
|
const loginProviders = ref<ExternalSignInProviderInfo[]>();
|
|
214
213
|
let forgotPassword;
|
|
215
214
|
|
|
216
|
-
if (
|
|
217
|
-
useLogin =
|
|
215
|
+
if (props.composable && typeof props.composable === "function") {
|
|
216
|
+
useLogin = props.composable;
|
|
218
217
|
|
|
219
218
|
if (useLogin) {
|
|
220
219
|
const { forgotPassword: forgot } = useLogin();
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
2
1
|
import { createModule } from "./../../../core/plugins";
|
|
3
2
|
import * as components from "./components";
|
|
4
3
|
import * as locales from "./locales";
|
|
5
|
-
import { CommonPageComposables } from "./../../../typings";
|
|
6
4
|
|
|
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
|
-
};
|
|
5
|
+
export const LoginPage = createModule(components, locales);
|
package/shared/pages/index.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
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
1
|
export * from "./InvitePage";
|
|
11
2
|
export * from "./LoginPage";
|
|
12
3
|
export * from "./ResetPasswordPage";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
v-if="icon"
|
|
9
9
|
:class="['vc-button__icon', iconClass]"
|
|
10
10
|
:icon="icon"
|
|
11
|
-
:size="small ? 'xs' :
|
|
11
|
+
:size="small ? 'xs' : iconSize"
|
|
12
12
|
></VcIcon>
|
|
13
13
|
<span
|
|
14
14
|
v-if="$slots['default']"
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
</span>
|
|
19
19
|
</button>
|
|
20
20
|
</template>
|
|
21
|
-
|
|
21
|
+
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
22
22
|
<script lang="ts" setup>
|
|
23
23
|
import { computed } from "vue";
|
|
24
24
|
import { VcIcon } from "./../vc-icon";
|
|
25
25
|
export interface Props {
|
|
26
26
|
icon?: string;
|
|
27
27
|
iconClass?: string;
|
|
28
|
+
iconSize?: InstanceType<typeof VcIcon>["$props"]["size"];
|
|
28
29
|
variant?: "primary" | "warning" | "danger";
|
|
29
30
|
disabled?: boolean;
|
|
30
31
|
small?: boolean;
|
|
@@ -43,10 +44,15 @@ export interface Emits {
|
|
|
43
44
|
|
|
44
45
|
const props = withDefaults(defineProps<Props>(), {
|
|
45
46
|
variant: "primary",
|
|
47
|
+
iconSize: "s",
|
|
46
48
|
});
|
|
47
49
|
|
|
48
50
|
const emit = defineEmits<Emits>();
|
|
49
51
|
|
|
52
|
+
defineSlots<{
|
|
53
|
+
default: (props?: any) => any;
|
|
54
|
+
}>();
|
|
55
|
+
|
|
50
56
|
const buttonClass = computed(() => {
|
|
51
57
|
return [
|
|
52
58
|
"vc-button",
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
1
|
import _Card from "./vc-card.vue";
|
|
3
2
|
|
|
4
|
-
export const VcCard = _Card as typeof _Card
|
|
5
|
-
new (): {
|
|
6
|
-
$slots: {
|
|
7
|
-
default: () => VNode[];
|
|
8
|
-
actions: () => VNode[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
3
|
+
export const VcCard = _Card as typeof _Card;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</transition>
|
|
39
39
|
</div>
|
|
40
40
|
</template>
|
|
41
|
-
|
|
41
|
+
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
42
42
|
<script lang="ts" setup>
|
|
43
43
|
import { VcIcon } from "./../vc-icon";
|
|
44
44
|
import { ref } from "vue";
|
|
@@ -63,6 +63,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
63
63
|
|
|
64
64
|
const emit = defineEmits<Emits>();
|
|
65
65
|
|
|
66
|
+
defineSlots<{
|
|
67
|
+
default: (props?: any) => any;
|
|
68
|
+
actions: (props?: any) => any;
|
|
69
|
+
}>();
|
|
70
|
+
|
|
66
71
|
const isCollapsedInternal = ref(props.isCollapsed);
|
|
67
72
|
|
|
68
73
|
function onHeaderClick() {
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
1
|
import _Checkbox from "./vc-checkbox.vue";
|
|
3
2
|
|
|
4
|
-
export const VcCheckbox = _Checkbox as typeof _Checkbox
|
|
5
|
-
new (): {
|
|
6
|
-
$slots: {
|
|
7
|
-
default: () => VNode[];
|
|
8
|
-
error: () => VNode[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
3
|
+
export const VcCheckbox = _Checkbox as typeof _Checkbox;
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
class="vc-checkbox"
|
|
4
4
|
:class="{ 'vc-checkbox_disabled': disabled }"
|
|
5
5
|
>
|
|
6
|
+
<!-- Input label -->
|
|
7
|
+
<VcLabel
|
|
8
|
+
v-if="label"
|
|
9
|
+
class="tw-mb-2"
|
|
10
|
+
:required="required"
|
|
11
|
+
>
|
|
12
|
+
<span>{{ label }}</span>
|
|
13
|
+
</VcLabel>
|
|
6
14
|
<label class="vc-checkbox__label">
|
|
7
15
|
<input
|
|
16
|
+
v-model="value"
|
|
8
17
|
type="checkbox"
|
|
9
18
|
class="vc-checkbox__input"
|
|
10
|
-
:checked="modelValue"
|
|
11
19
|
:disabled="disabled"
|
|
12
|
-
|
|
20
|
+
:true-value="trueValue"
|
|
21
|
+
:false-value="falseValue"
|
|
13
22
|
/>
|
|
14
23
|
<span class="vc-checkbox__checkmark"></span>
|
|
15
24
|
<span
|
|
@@ -19,7 +28,7 @@
|
|
|
19
28
|
<slot></slot>
|
|
20
29
|
</span>
|
|
21
30
|
<span
|
|
22
|
-
v-if="required"
|
|
31
|
+
v-if="!label && required"
|
|
23
32
|
class="tw-text-[color:var(--checkbox-required-color)] tw-ml-1"
|
|
24
33
|
>*</span
|
|
25
34
|
>
|
|
@@ -35,28 +44,41 @@
|
|
|
35
44
|
</slot>
|
|
36
45
|
</div>
|
|
37
46
|
</template>
|
|
38
|
-
|
|
47
|
+
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
39
48
|
<script lang="ts" setup>
|
|
49
|
+
import { MaybeRef, computed, unref } from "vue";
|
|
40
50
|
import { VcHint } from "./../vc-hint";
|
|
41
51
|
export interface Props {
|
|
42
|
-
modelValue?: boolean
|
|
52
|
+
modelValue?: MaybeRef<boolean>;
|
|
43
53
|
disabled?: boolean;
|
|
44
54
|
required?: boolean;
|
|
45
55
|
name?: string;
|
|
46
56
|
errorMessage?: string;
|
|
57
|
+
trueValue?: boolean;
|
|
58
|
+
falseValue?: boolean;
|
|
59
|
+
label?: string;
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
export interface Emits {
|
|
50
63
|
(event: "update:modelValue", value: boolean): void;
|
|
51
64
|
}
|
|
52
65
|
|
|
53
|
-
withDefaults(defineProps<Props>(), { name: "Field" });
|
|
66
|
+
const props = withDefaults(defineProps<Props>(), { name: "Field", trueValue: true, falseValue: false });
|
|
54
67
|
const emit = defineEmits<Emits>();
|
|
55
68
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
69
|
+
defineSlots<{
|
|
70
|
+
default: (props: any) => any;
|
|
71
|
+
error: (props: any) => any;
|
|
72
|
+
}>();
|
|
73
|
+
|
|
74
|
+
const value = computed({
|
|
75
|
+
get() {
|
|
76
|
+
return unref(props.modelValue);
|
|
77
|
+
},
|
|
78
|
+
set(newValue: boolean) {
|
|
79
|
+
emit("update:modelValue", newValue);
|
|
80
|
+
},
|
|
81
|
+
});
|
|
60
82
|
</script>
|
|
61
83
|
|
|
62
84
|
<style lang="scss">
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<i :class="`vc-icon vc-icon_${size} ${(icon as string).toLowerCase()}`" />
|
|
2
|
+
<i :class="`vc-icon vc-icon_${size} vc-icon_${variant} ${(icon as string).toLowerCase()}`" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
6
|
export interface Props {
|
|
7
7
|
icon?: string;
|
|
8
8
|
size?: "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
9
|
+
variant?: "warning" | "danger" | "success";
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
withDefaults(defineProps<Props>(), {
|
|
@@ -23,9 +24,14 @@ withDefaults(defineProps<Props>(), {
|
|
|
23
24
|
--icon-size-xl: 22px;
|
|
24
25
|
--icon-size-xxl: 30px;
|
|
25
26
|
--icon-size-xxxl: 64px;
|
|
27
|
+
|
|
28
|
+
--icon-color-success: #99c17a;
|
|
29
|
+
--icon-color-danger: #f34747;
|
|
30
|
+
--icon-color-warning: #f89406;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
$sizes: xs, s, m, l, xl, xxl, xxxl;
|
|
34
|
+
$variants: warning, danger, success;
|
|
29
35
|
|
|
30
36
|
.vc-icon {
|
|
31
37
|
@each $size in $sizes {
|
|
@@ -33,5 +39,11 @@ $sizes: xs, s, m, l, xl, xxl, xxxl;
|
|
|
33
39
|
@apply tw-text-[length:var(--icon-size-#{$size})];
|
|
34
40
|
}
|
|
35
41
|
}
|
|
42
|
+
|
|
43
|
+
@each $variant in $variants {
|
|
44
|
+
&_#{$variant} {
|
|
45
|
+
@apply tw-text-[color:var(--icon-color-#{$variant})];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
</style>
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import _Label from "./vc-label.vue";
|
|
2
|
-
import { VNode } from "vue";
|
|
3
2
|
|
|
4
|
-
export const VcLabel = _Label as typeof _Label
|
|
5
|
-
new (): {
|
|
6
|
-
$slots: {
|
|
7
|
-
default: () => VNode[];
|
|
8
|
-
tooltip: () => VNode[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
3
|
+
export const VcLabel = _Label as typeof _Label;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<slot></slot>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
9
|
-
|
|
9
|
+
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
export interface Props {
|
|
12
12
|
variant?: "info" | "warning" | "danger" | "success" | "light-danger";
|
|
@@ -18,6 +18,10 @@ withDefaults(defineProps<Props>(), {
|
|
|
18
18
|
variant: "info",
|
|
19
19
|
outline: true,
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
defineSlots<{
|
|
23
|
+
default: (props?: any) => any;
|
|
24
|
+
}>();
|
|
21
25
|
</script>
|
|
22
26
|
|
|
23
27
|
<style lang="scss">
|
|
@@ -67,11 +67,11 @@ export interface Emits {
|
|
|
67
67
|
(event: "click"): void;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
withDefaults(defineProps<Props>(), {
|
|
71
71
|
size: "auto",
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
defineEmits<Emits>();
|
|
75
75
|
</script>
|
|
76
76
|
|
|
77
77
|
<style lang="scss">
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
:modules="modules"
|
|
36
36
|
content-type="html"
|
|
37
37
|
:read-only="disabled"
|
|
38
|
+
:placeholder="placeholder"
|
|
38
39
|
@update:content="onInput"
|
|
39
40
|
/>
|
|
40
41
|
<slot
|
|
@@ -82,6 +83,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
82
83
|
|
|
83
84
|
const emit = defineEmits<Emits>();
|
|
84
85
|
|
|
86
|
+
defineSlots<{
|
|
87
|
+
default: (props: any) => any;
|
|
88
|
+
error?: (props: any) => any;
|
|
89
|
+
}>();
|
|
90
|
+
|
|
85
91
|
const content = ref();
|
|
86
92
|
const toolbar = {
|
|
87
93
|
container: [
|
|
@@ -181,6 +187,16 @@ function isQuillEmpty(value: string) {
|
|
|
181
187
|
tw-overflow-x-hidden
|
|
182
188
|
hover:tw-bg-[color:var(--editor-scroll-color-hover)];
|
|
183
189
|
}
|
|
190
|
+
|
|
191
|
+
&.ql-blank:before {
|
|
192
|
+
color: var(--textarea-placeholder-color);
|
|
193
|
+
content: attr(data-placeholder);
|
|
194
|
+
font-style: inherit;
|
|
195
|
+
left: 15px;
|
|
196
|
+
pointer-events: none;
|
|
197
|
+
position: absolute;
|
|
198
|
+
right: 15px;
|
|
199
|
+
}
|
|
184
200
|
}
|
|
185
201
|
}
|
|
186
202
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-flex tw-flex-col tw-flex-1">
|
|
3
3
|
<div
|
|
4
|
+
v-loading="loading"
|
|
4
5
|
class="vc-file-upload tw-relative tw-h-[155px] tw-box-border tw-border tw-border-dashed tw-border-[#c8dbea] tw-rounded-[6px] tw-p-4 tw-flex tw-flex-col tw-items-center tw-justify-center"
|
|
5
6
|
:class="[
|
|
6
7
|
`vc-file-upload_${variant}`,
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
@dragenter.stop.prevent
|
|
17
18
|
@dragleave.stop.prevent="dragLeave"
|
|
18
19
|
>
|
|
19
|
-
<VcLoading :active="loading"></VcLoading>
|
|
20
20
|
<VcIcon
|
|
21
21
|
class="tw-text-[#c8dbea]"
|
|
22
22
|
icon="fas fa-cloud-upload-alt"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<script lang="ts" setup>
|
|
55
55
|
import { getCurrentInstance, ref, unref } from "vue";
|
|
56
56
|
import { useField } from "vee-validate";
|
|
57
|
-
import {
|
|
57
|
+
import { VcIcon, VcLink, VcHint } from "./../../";
|
|
58
58
|
import { useI18n } from "vue-i18n";
|
|
59
59
|
|
|
60
60
|
export interface Props {
|
|
@@ -80,6 +80,8 @@ const emit = defineEmits<Emits>();
|
|
|
80
80
|
|
|
81
81
|
const { t } = useI18n({ useScope: "global" });
|
|
82
82
|
|
|
83
|
+
// TODO refactor component and remove field-level validation
|
|
84
|
+
|
|
83
85
|
const instance = getCurrentInstance();
|
|
84
86
|
// Prepare validation rules using required and rules props combination
|
|
85
87
|
const internalRules = unref(props.rules) || "";
|
|
@@ -102,8 +104,6 @@ const upload = async (event: Event) => {
|
|
|
102
104
|
const target = event.target as HTMLInputElement;
|
|
103
105
|
const fileList = target.files;
|
|
104
106
|
|
|
105
|
-
console.log(fileList);
|
|
106
|
-
|
|
107
107
|
if (fileList && fileList.length) {
|
|
108
108
|
emit("upload", fileList);
|
|
109
109
|
}
|