@vc-shell/framework 1.1.0-alpha.8 → 1.1.0
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 +22 -0
- package/core/README.md +365 -0
- package/core/composables/index.ts +3 -0
- package/core/composables/useAppBarMobileButtons/index.ts +17 -0
- package/core/composables/useAppBarWidget/index.ts +19 -0
- package/core/composables/useGlobalSearch/index.ts +4 -27
- package/core/composables/useKeyboardNavigation/index.ts +211 -0
- package/core/composables/useSettingsMenu/index.ts +23 -0
- package/core/composables/useTheme/index.ts +64 -62
- package/core/composables/useToolbar.ts +88 -0
- package/core/services/app-bar-menu-service.ts +87 -0
- package/core/services/app-bar-mobile-buttons-service.ts +57 -0
- package/core/services/global-search-service.ts +36 -0
- package/core/services/index.ts +8 -0
- package/core/services/settings-menu-service.ts +75 -0
- package/core/services/toolbar-service.ts +141 -0
- package/core/services/widget-service.ts +15 -3
- package/core/types/index.ts +5 -8
- package/dist/core/composables/index.d.ts +3 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts +3 -0
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts.map +1 -0
- package/dist/core/composables/useAppBarWidget/index.d.ts +5 -0
- package/dist/core/composables/useAppBarWidget/index.d.ts.map +1 -0
- package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
- package/dist/core/composables/useBeforeUnload/index.d.ts.map +1 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts +2 -8
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -1
- package/dist/core/composables/useKeyboardNavigation/index.d.ts +24 -0
- package/dist/core/composables/useKeyboardNavigation/index.d.ts.map +1 -0
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts +5 -0
- package/dist/core/composables/useSettingsMenu/index.d.ts.map +1 -0
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/composables/useToolbar.d.ts +15 -0
- package/dist/core/composables/useToolbar.d.ts.map +1 -0
- package/dist/core/directives/autofocus/index.d.ts.map +1 -1
- package/dist/core/directives/loading/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/extensions-helper.d.ts.map +1 -1
- package/dist/core/plugins/validation/rules.d.ts.map +1 -1
- package/dist/core/services/app-bar-menu-service.d.ts +29 -0
- package/dist/core/services/app-bar-menu-service.d.ts.map +1 -0
- package/dist/core/services/app-bar-mobile-buttons-service.d.ts +24 -0
- package/dist/core/services/app-bar-mobile-buttons-service.d.ts.map +1 -0
- package/dist/core/services/global-search-service.d.ts +10 -0
- package/dist/core/services/global-search-service.d.ts.map +1 -0
- package/dist/core/services/index.d.ts +9 -0
- package/dist/core/services/index.d.ts.map +1 -0
- package/dist/core/services/settings-menu-service.d.ts +25 -0
- package/dist/core/services/settings-menu-service.d.ts.map +1 -0
- package/dist/core/services/toolbar-service.d.ts +29 -0
- package/dist/core/services/toolbar-service.d.ts.map +1 -0
- package/dist/core/services/widget-service.d.ts +7 -1
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +3 -6
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/kebabToCamel.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +6 -28
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.json +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +4 -25
- 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/index.d.ts +2 -2
- package/dist/shared/components/app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts +3 -14
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
- 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/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts +4 -13
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password/index.d.ts +2 -19
- package/dist/shared/components/change-password/index.d.ts.map +1 -1
- package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +9 -19
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts +9 -19
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +11 -21
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +9 -15
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts +4 -13
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useCollisionDetection.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +36 -38
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts +2 -2
- package/dist/shared/components/draggable-dashboard/composables/useEventCoordinates.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useGridPosition.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useGridSystem.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useWidgetLayout.d.ts.map +1 -1
- package/dist/shared/components/error-interceptor/index.d.ts +9 -60
- package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts +27 -101
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +2 -1
- package/dist/shared/components/language-selector/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +4 -13
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/index.d.ts +2 -13
- package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +1 -27
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/index.d.ts +2 -62
- package/dist/shared/components/notification-template/index.d.ts.map +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +7 -13
- package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +18 -18
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts +8 -3
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts +4 -2
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/core/notification.d.ts +9 -2
- package/dist/shared/components/notifications/core/notification.d.ts.map +1 -1
- package/dist/shared/components/notifications/types/index.d.ts +3 -3
- package/dist/shared/components/notifications/types/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +2 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/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/settings-menu/settings-menu.vue.d.ts.map +1 -1
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts +20 -36
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shared/components/sidebar/sidebar.vue.d.ts +19 -38
- package/dist/shared/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-provider.vue.d.ts +4 -13
- package/dist/shared/components/sign-in/external-provider.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts +1 -10
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts +1 -10
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts +7 -17
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +2 -27
- package/dist/shared/components/user-dropdown-button/index.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +1 -10
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/index.d.ts +2 -0
- package/dist/shared/composables/index.d.ts.map +1 -0
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +6 -29
- 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 +2 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/shared/modules/assets/index.d.ts +3 -3
- 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 +9 -34
- 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 +2 -56
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +18 -18
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +7 -76
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +4 -73
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +6 -76
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +4 -73
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +6 -75
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +5 -74
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +12 -142
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +2 -2
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/methodHandler.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/unrefNested.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +27 -50
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +23 -47
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +10 -9
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts +2 -23
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts +2 -15
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/plugin.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +4 -32
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +2 -50
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -10
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +2 -41
- package/dist/shared/pages/LoginPage/components/login/index.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +4 -32
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +2 -50
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +1 -1
- package/dist/shared/utilities/assets.d.ts.map +1 -1
- package/dist/shared/utilities/index.d.ts +3 -0
- package/dist/shared/utilities/index.d.ts.map +1 -0
- package/dist/tailwind.config.d.ts +3 -1
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +1 -0
- package/dist/ui/components/atoms/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +21 -35
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +11 -36
- 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 +2 -104
- 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 +13 -36
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +7 -28
- 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 +6 -73
- 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 +12 -18
- 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 +7 -20
- 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 +7 -4
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts +7 -0
- package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts +5 -16
- package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts +10 -0
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts +11 -0
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts +3 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +37 -28
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +12 -0
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +6 -33
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +24 -30
- 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 +6 -59
- 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 +10 -16
- 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 +2 -9
- 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 -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 +6 -51
- 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 +2 -25
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +5 -5
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-skeleton/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +6 -31
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +8 -33
- 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 +1 -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 +4 -27
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +10 -42
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +4 -13
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +2 -43
- 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 +4 -13
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -1
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +4 -13
- 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 +11 -43
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts +2 -163
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +13 -38
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +42 -51
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +13 -17
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +3 -28
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +10 -37
- 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 +7 -20
- 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 +7 -4
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +19 -106
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +19 -68
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +10 -139
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +2 -41
- 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 +5 -30
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +10 -28
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +8 -35
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +76 -495
- 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 +12 -98
- 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 +16 -36
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +11 -33
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/index.d.ts +2 -0
- package/dist/ui/components/molecules/vc-toast/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts +18 -0
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts +8 -14
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts +13 -18
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts +16 -27
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue.d.ts +8 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts +14 -21
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts +34 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetsMenu.vue.d.ts +3 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetsMenu.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts +15 -29
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarMobileActions.d.ts +9 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarMobileActions.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarWidgets.d.ts +8 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarWidgets.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useToggleableContent.d.ts +23 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useToggleableContent.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +8 -17
- 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 +4 -25
- 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 +5 -30
- 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 +5 -30
- 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 +0 -1
- 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 +9 -20
- 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 +11 -16
- 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-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +4 -31
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +5 -40
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_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/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +2 -29
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue.d.ts +3 -14
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue.d.ts +3 -13
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue.d.ts +3 -14
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +9 -27
- 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/_internal/vc-blade-widget-container/_internal/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts +2 -11
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts +2 -11
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts +1 -10
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +18 -77
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +32 -109
- 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 +3 -40
- 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 +5 -28
- 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/vc-gallery.vue.d.ts +8 -45
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +7 -28
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +13 -42
- 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-add-new/vc-table-add-new.vue.d.ts +4 -13
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts +12 -18
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +10 -18
- 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 -23
- 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 +2 -25
- 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-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +27 -186
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts +26 -90
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +28 -202
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-select-all-header/vc-table-select-all-header.vue.d.ts +9 -21
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-select-all-header/vc-table-select-all-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +37 -266
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +5 -15
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +10 -32
- 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-footer/vc-table-footer.vue.d.ts +7 -34
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts +19 -53
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.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 +15 -45
- 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/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +58 -192
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts +11 -27
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts +21 -39
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts +2 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +41 -252
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/composables/useAdaptiveItems.d.ts +16 -0
- package/dist/ui/composables/useAdaptiveItems.d.ts.map +1 -0
- package/package.json +18 -13
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/components/app-switcher/index.ts +1 -1
- package/shared/components/change-password/change-password.vue +3 -3
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +37 -3
- package/shared/components/draggable-dashboard/composables/useGridSystem.ts +1 -1
- package/shared/components/draggable-dashboard/composables/useWidgetLayout.ts +1 -1
- package/shared/components/generic-dropdown/generic-dropdown.vue +69 -49
- package/shared/components/language-selector/language-selector.vue +2 -2
- package/shared/components/notification-dropdown/_internal/notification/notification.vue +2 -2
- package/shared/components/notification-dropdown/notification-dropdown.vue +14 -53
- package/shared/components/notification-template/notification-template.vue +0 -1
- package/shared/components/notifications/components/notification-container/index.ts +26 -14
- package/shared/components/notifications/composables/useContainer/index.ts +267 -55
- package/shared/components/notifications/composables/useInstance/index.ts +47 -17
- package/shared/components/notifications/core/notification.ts +175 -20
- package/shared/components/notifications/styles/index.scss +171 -10
- package/shared/components/notifications/types/index.ts +12 -3
- package/shared/components/settings-menu/settings-menu.vue +3 -2
- package/shared/components/settings-menu-item/settings-menu-item.vue +1 -1
- package/shared/components/sidebar/sidebar.vue +5 -2
- package/shared/components/theme-selector/theme-selector.vue +2 -2
- package/shared/components/user-dropdown-button/_internal/user-info.vue +4 -4
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +2 -2
- package/shared/composables/index.ts +1 -0
- package/shared/modules/assets/components/assets-details/assets-details.vue +4 -4
- package/shared/modules/assets/components/assets-details/index.ts +3 -1
- package/shared/modules/assets/index.ts +1 -1
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +5 -4
- package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +2 -2
- package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +361 -361
- package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +666 -666
- package/shared/modules/dynamic/components/fields/storybook/StatusField.stories.ts +202 -202
- package/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.ts +1 -1
- package/shared/modules/dynamic/composables/index.ts +4 -4
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +1 -1
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +242 -242
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +60 -63
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +1 -1
- package/shared/modules/dynamic/types/index.ts +5 -9
- package/shared/pages/LoginPage/components/login/Login.vue +1 -1
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +218 -218
- package/shared/utilities/assets.ts +43 -42
- package/shared/utilities/index.ts +2 -0
- package/ui/components/atoms/index.ts +1 -0
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +522 -53
- package/ui/components/atoms/vc-badge/vc-badge.vue +120 -27
- package/ui/components/atoms/vc-button/vc-button.stories.ts +278 -74
- package/ui/components/atoms/vc-button/vc-button.vue +12 -9
- package/ui/components/atoms/vc-card/vc-card.stories.ts +297 -59
- package/ui/components/atoms/vc-card/vc-card.vue +9 -5
- package/ui/components/atoms/vc-col/vc-col.stories.ts +164 -22
- package/ui/components/atoms/vc-container/vc-container.stories.ts +277 -29
- package/ui/components/atoms/vc-container/vc-container.vue +1 -1
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +144 -23
- package/ui/components/atoms/vc-hint/vc-hint.vue +17 -17
- package/ui/components/atoms/vc-icon/README.md +295 -0
- package/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue +26 -0
- package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +28 -0
- package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +41 -0
- package/ui/components/atoms/vc-icon/vc-icon-examples.vue +183 -0
- package/ui/components/atoms/vc-icon/vc-icon-test.vue +226 -0
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +376 -48
- package/ui/components/atoms/vc-icon/vc-icon.vue +457 -31
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +66 -0
- package/ui/components/atoms/vc-icon/vc-material-icon.vue +61 -0
- package/ui/components/atoms/vc-image/vc-image.stories.ts +309 -85
- package/ui/components/atoms/vc-image/vc-image.vue +2 -2
- package/ui/components/atoms/vc-label/vc-label.stories.ts +137 -31
- package/ui/components/atoms/vc-label/vc-label.vue +118 -92
- package/ui/components/atoms/vc-link/vc-link.stories.ts +154 -37
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +182 -30
- package/ui/components/atoms/vc-progress/vc-progress.vue +68 -68
- package/ui/components/atoms/vc-row/vc-row.stories.ts +143 -20
- package/ui/components/atoms/vc-skeleton/index.ts +1 -0
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +165 -0
- package/ui/components/atoms/vc-status/vc-status.stories.ts +235 -85
- package/ui/components/atoms/vc-status/vc-status.vue +2 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +108 -2
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +2 -2
- package/ui/components/atoms/vc-switch/vc-switch.stories.ts +314 -14
- package/ui/components/atoms/vc-switch/vc-switch.vue +5 -7
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +287 -0
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +3 -3
- package/ui/components/atoms/vc-video/vc-video.stories.ts +150 -19
- package/ui/components/atoms/vc-video/vc-video.vue +1 -1
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +272 -20
- package/ui/components/atoms/vc-widget/vc-widget.vue +51 -66
- package/ui/components/molecules/index.ts +16 -16
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +89 -89
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +509 -43
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +32 -80
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +356 -84
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +185 -119
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +251 -29
- package/ui/components/molecules/vc-editor/vc-editor.vue +48 -10
- package/ui/components/molecules/vc-field/vc-field.stories.ts +179 -114
- package/ui/components/molecules/vc-field/vc-field.vue +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +424 -39
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +4 -4
- package/ui/components/molecules/vc-form/vc-form.stories.ts +168 -25
- package/ui/components/molecules/vc-input/vc-input.stories.ts +909 -165
- package/ui/components/molecules/vc-input/vc-input.vue +71 -19
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +532 -83
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +20 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +508 -120
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +80 -24
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +259 -24
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +283 -97
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +197 -192
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +363 -59
- package/ui/components/molecules/vc-rating/vc-rating.vue +54 -26
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1582 -685
- package/ui/components/molecules/vc-select/vc-select.vue +122 -59
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +223 -61
- package/ui/components/molecules/vc-slider/vc-slider.vue +118 -118
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +326 -53
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +180 -151
- package/ui/components/molecules/vc-toast/index.ts +1 -0
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +559 -0
- package/ui/components/molecules/vc-toast/vc-toast.vue +350 -0
- package/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.ts +61 -24
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue +3 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue +43 -77
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue +102 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue +5 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/{components/app-bar-button/app-bar-button.vue → _internal/AppBarWidgetItem.vue} +32 -89
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetsMenu.vue +110 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +9 -8
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarMobileActions.ts +51 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarWidgets.ts +27 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useToggleableContent.ts +66 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +34 -50
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +2 -2
- package/ui/components/organisms/vc-app/index.ts +0 -1
- package/ui/components/organisms/vc-app/vc-app.vue +33 -35
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +7 -7
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue +30 -37
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +2 -2
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue +20 -68
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue +1 -1
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +84 -7
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/index.ts +2 -2
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue +8 -3
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +27 -79
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue +24 -13
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +83 -83
- package/ui/components/organisms/vc-blade/vc-blade.vue +4 -4
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +163 -163
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +166 -166
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +91 -91
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +348 -348
- package/ui/components/organisms/vc-popup/vc-popup.vue +7 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue +63 -63
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +3 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +7 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +45 -91
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue +1 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue +10 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +3 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue +4 -5
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +1 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +2 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue +3 -11
- package/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue +49 -6
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +293 -129
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue +94 -46
- package/ui/components/organisms/vc-table/composables/useTableActions.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableColumnReorder.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableColumnResize.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableSelection.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableState.ts +2 -1
- package/ui/components/organisms/vc-table/vc-table.vue +28 -62
- package/ui/composables/README.md +160 -0
- package/ui/composables/useAdaptiveItems.ts +210 -0
- package/core/types/widget.ts +0 -15
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BUuHEmgZ.js +0 -620
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/core/types/widget.d.ts +0 -12
- package/dist/core/types/widget.d.ts.map +0 -1
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/css-bIlmDBTK.js +0 -1560
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-Bo-KZxHS.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-Xa2PN7SI.js +0 -77
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-Bny6SIz6.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/framework.js +0 -279
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-0a5sSUk-.js +0 -299
- package/dist/index-2uMWKqeX.js +0 -607
- package/dist/index-BYSRrP1t.js +0 -98
- package/dist/index-BjuXtCZD.js +0 -308
- package/dist/index-CE39_ef_.js +0 -93
- package/dist/index-CH6q9SbZ.js +0 -134
- package/dist/index-CHqWKNbd.js +0 -114759
- package/dist/index-C_UCSxbP.js +0 -135
- package/dist/index-Cb_-2iIT.js +0 -75
- package/dist/index-CqQMjKrC.js +0 -71
- package/dist/index-D-7-uSkR.js +0 -58
- package/dist/index-DT87PGr4.js +0 -341
- package/dist/index-DUpaX9qF.js +0 -288
- package/dist/index-Do08qm6v.js +0 -156
- package/dist/index-DrXDpBca.js +0 -265
- package/dist/index-GWfUyLcy.js +0 -243
- package/dist/index-mukpig4Q.js +0 -538
- package/dist/index.css +0 -1
- package/dist/javascript-WMWNx-Vj.js +0 -690
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-BEzMtmb7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pug-BqUR2bBq.js +0 -248
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-B5QdSKoL.js +0 -313
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-Bz1d3XP0.js +0 -104
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shared/composables/useSettingsMenu.d.ts +0 -180
- package/dist/shared/composables/useSettingsMenu.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +0 -376
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +0 -367
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +0 -398
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +0 -392
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +0 -407
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +0 -360
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +0 -391
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +0 -372
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +0 -448
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +0 -469
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +0 -468
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +0 -359
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +0 -359
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +0 -516
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +0 -392
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.d.ts +0 -14
- package/dist/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +0 -407
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts.map +0 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +0 -322
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts.map +0 -1
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-BqqHn0g6.js +0 -88
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-mMre1Bo3.js +0 -282
- package/dist/stex-92raWT1r.js +0 -129
- package/dist/stylus-DRcbY16X.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-D9z-T0ea.js +0 -178
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts +0 -465
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +0 -1277
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +0 -994
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/vc-col.stories.d.ts +0 -48
- package/dist/ui/components/atoms/vc-col/vc-col.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts +0 -39
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +0 -64
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts +0 -114
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts +0 -89
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts +0 -93
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.stories.d.ts +0 -20
- package/dist/ui/components/atoms/vc-loading/vc-loading.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts +0 -78
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/vc-row.stories.d.ts +0 -27
- package/dist/ui/components/atoms/vc-row/vc-row.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +0 -121
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +0 -74
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts +0 -37
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts +0 -56
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +0 -109
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts +0 -1680
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +0 -7275
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts +0 -105
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts +0 -170
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts +0 -31
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +0 -362
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +0 -325
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +0 -1120
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +0 -23
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +0 -94
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts +0 -555
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts +0 -412
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +0 -2843
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts +0 -139
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +0 -1075
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/components/app-bar-button/app-bar-button.vue.d.ts +0 -61
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/components/app-bar-button/app-bar-button.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarOverlay.d.ts +0 -19
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarOverlay.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +0 -132
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +0 -181
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +0 -168
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/types.d.ts +0 -19
- package/dist/ui/components/organisms/vc-table/types.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +0 -1460
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +0 -1
- package/dist/ui/composables/useVisibleElements.d.ts +0 -19
- package/dist/ui/composables/useVisibleElements.d.ts.map +0 -1
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
- package/shared/composables/useSettingsMenu.ts +0 -44
- package/ui/components/atoms/vc-loading/vc-loading.stories.ts +0 -18
- package/ui/components/molecules/vc-notification/index.ts +0 -1
- package/ui/components/molecules/vc-notification/vc-notification.vue +0 -170
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarOverlay.ts +0 -78
- package/ui/components/organisms/vc-table/types.ts +0 -25
- package/ui/components/organisms/vc-table/vc-table.stories.ts +0 -214
- package/ui/composables/useVisibleElements.ts +0 -148
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="$isMobile.value"
|
|
4
|
+
class="app-bar-mobile-actions"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
v-for="button in getButtons"
|
|
8
|
+
:key="button.id"
|
|
9
|
+
>
|
|
10
|
+
<VcButton
|
|
11
|
+
v-if="button.isVisible !== undefined ? button.isVisible : true"
|
|
12
|
+
text
|
|
13
|
+
class="app-bar-mobile-actions__button"
|
|
14
|
+
:class="{ 'app-bar-mobile-actions__button--active': button.id === currentAction?.id }"
|
|
15
|
+
:icon="button.icon"
|
|
16
|
+
icon-size="l"
|
|
17
|
+
@click="handleButtonClick(button)"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<Transition name="overlay">
|
|
22
|
+
<AppBarOverlay
|
|
23
|
+
v-if="isAnyActionVisible && currentAction?.component"
|
|
24
|
+
:is-sidebar-mode="isSidebarMode"
|
|
25
|
+
:expanded="expanded"
|
|
26
|
+
>
|
|
27
|
+
<component
|
|
28
|
+
:is="currentAction?.component"
|
|
29
|
+
v-bind="currentAction?.props || {}"
|
|
30
|
+
v-on-click-outside="[handleClose, { ignore: ['.app-bar-mobile-actions__button'] }]"
|
|
31
|
+
@close="handleClose"
|
|
32
|
+
/>
|
|
33
|
+
</AppBarOverlay>
|
|
34
|
+
</Transition>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script lang="ts" setup>
|
|
39
|
+
import { VcButton } from "../../../../../../..";
|
|
40
|
+
import { useAppBarMobileButtons } from "../../../../../../../core/composables/useAppBarMobileButtons";
|
|
41
|
+
import AppBarOverlay from "./AppBarOverlay.vue";
|
|
42
|
+
import { useAppBarMobileActions } from "./../composables/useAppBarMobileActions";
|
|
43
|
+
import { MaybeRef, ref, watch } from "vue";
|
|
44
|
+
import { vOnClickOutside } from "@vueuse/components";
|
|
45
|
+
import { AppBarButtonContent } from "../../../../../../../core/services";
|
|
46
|
+
import { useRoute } from "vue-router";
|
|
47
|
+
export interface Props {
|
|
48
|
+
isSidebarMode: boolean;
|
|
49
|
+
expanded: MaybeRef<boolean>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
defineProps<Props>();
|
|
53
|
+
|
|
54
|
+
const { getButtons } = useAppBarMobileButtons();
|
|
55
|
+
const { currentAction, toggleAction, hideAllActions, isAnyActionVisible } = useAppBarMobileActions();
|
|
56
|
+
const route = useRoute();
|
|
57
|
+
|
|
58
|
+
const handleButtonClick = (button: AppBarButtonContent) => {
|
|
59
|
+
// If the current button is already active - hide it
|
|
60
|
+
if (currentAction.value?.id === button.id) {
|
|
61
|
+
button.onClose?.();
|
|
62
|
+
hideAllActions();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// If the previous active button exists - close it
|
|
67
|
+
if (currentAction.value) {
|
|
68
|
+
currentAction.value.onClose?.();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Enable the new button
|
|
72
|
+
toggleAction(button.id);
|
|
73
|
+
|
|
74
|
+
// Call onClick for a button without a component
|
|
75
|
+
if (!button.component && button.onClick) {
|
|
76
|
+
button.onClick();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const handleClose = (button: AppBarButtonContent) => {
|
|
81
|
+
button.onClose?.();
|
|
82
|
+
hideAllActions();
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
watch(route, () => {
|
|
86
|
+
hideAllActions();
|
|
87
|
+
});
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<style lang="scss">
|
|
91
|
+
.app-bar-mobile-actions {
|
|
92
|
+
@apply tw-relative tw-flex tw-flex-row tw-gap-[30px];
|
|
93
|
+
|
|
94
|
+
&__button {
|
|
95
|
+
@apply tw-cursor-pointer tw-text-[var(--app-bar-header-actions-button-color)] #{!important};
|
|
96
|
+
|
|
97
|
+
&--active {
|
|
98
|
+
@apply tw-text-[var(--app-bar-header-actions-button-active-color)] #{!important};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
</style>
|
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script lang="ts" setup>
|
|
21
|
+
import { MaybeRef } from "vue";
|
|
22
|
+
|
|
21
23
|
defineProps<{
|
|
22
24
|
isSidebarMode: boolean;
|
|
23
|
-
expanded: boolean
|
|
25
|
+
expanded: MaybeRef<boolean>;
|
|
24
26
|
}>();
|
|
25
27
|
|
|
26
28
|
defineEmits<{
|
|
@@ -34,7 +36,7 @@ defineEmits<{
|
|
|
34
36
|
tw-bg-[color:var(--app-bar-background)];
|
|
35
37
|
|
|
36
38
|
&--standalone-mobile {
|
|
37
|
-
@apply tw-w-full !important;
|
|
39
|
+
@apply tw-w-full #{!important};
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
&--sidebar {
|
|
@@ -42,7 +44,7 @@ defineEmits<{
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
&--mobile {
|
|
45
|
-
@apply tw-fixed tw-top-[var(--app-bar-mobile-height)] tw-left-0 tw-bottom-0 tw-flex-1 tw-w-[var(--app-bar-mobile-width)] tw-z-[
|
|
47
|
+
@apply tw-fixed tw-top-[var(--app-bar-mobile-height)] tw-left-0 tw-bottom-0 tw-flex-1 tw-w-[var(--app-bar-mobile-width)] tw-z-[9999];
|
|
46
48
|
|
|
47
49
|
.app-bar-overlay__content {
|
|
48
50
|
@apply tw-flex tw-flex-col tw-h-[calc(100%-var(--app-bar-mobile-height))];
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
:class="{ 'app-bar-button--mobile': $isMobile.value }"
|
|
5
5
|
>
|
|
6
6
|
<VcTooltip
|
|
7
|
-
|
|
7
|
+
placement="bottom"
|
|
8
8
|
:offset="{ crossAxis: 0, mainAxis: -10 }"
|
|
9
9
|
:delay="1000"
|
|
10
10
|
class="tw-w-full"
|
|
11
11
|
>
|
|
12
12
|
<template
|
|
13
|
-
v-if="!
|
|
13
|
+
v-if="!isActive && !!title"
|
|
14
14
|
#tooltip
|
|
15
15
|
>{{ title }}</template
|
|
16
16
|
>
|
|
@@ -19,21 +19,17 @@
|
|
|
19
19
|
class="app-bar-button__button"
|
|
20
20
|
@click.stop="toggleContent"
|
|
21
21
|
>
|
|
22
|
-
<div
|
|
23
|
-
:class="[
|
|
24
|
-
'app-bar-button__button-container',
|
|
25
|
-
{ 'app-bar-button__button-container--active': isContentVisible && $slots['content'] },
|
|
26
|
-
]"
|
|
27
|
-
>
|
|
22
|
+
<div :class="['app-bar-button__button-container']">
|
|
28
23
|
<slot
|
|
29
24
|
name="trigger"
|
|
30
|
-
:
|
|
25
|
+
:is-active="isActive"
|
|
31
26
|
:toggle="toggleContent"
|
|
32
27
|
>
|
|
33
28
|
<div class="app-bar-button__button-wrap">
|
|
34
29
|
<VcIcon
|
|
35
30
|
:icon="icon"
|
|
36
31
|
size="xl"
|
|
32
|
+
:class="['app-bar-button__icon', { 'app-bar-button__icon--active': isActive }]"
|
|
37
33
|
></VcIcon>
|
|
38
34
|
</div>
|
|
39
35
|
</slot>
|
|
@@ -44,102 +40,49 @@
|
|
|
44
40
|
</template>
|
|
45
41
|
|
|
46
42
|
<script lang="ts" setup>
|
|
47
|
-
import { ref,
|
|
48
|
-
import {
|
|
49
|
-
import { vOnClickOutside } from "@vueuse/components";
|
|
43
|
+
import { ref, computed, onMounted, type Component } from "vue";
|
|
44
|
+
import { useAppBarWidgets } from "./../composables/useAppBarWidgets";
|
|
50
45
|
|
|
51
46
|
export interface Props {
|
|
52
47
|
title?: string;
|
|
53
|
-
icon?: string;
|
|
54
|
-
position: "bottom" | "bottom-end" | "bottom-start";
|
|
48
|
+
icon?: string | Component;
|
|
55
49
|
beforeOpen?: () => boolean;
|
|
56
|
-
overlayed?: boolean;
|
|
57
50
|
isOpened?: boolean;
|
|
51
|
+
widgetId?: string;
|
|
58
52
|
}
|
|
59
53
|
|
|
60
54
|
export interface Emits {
|
|
61
55
|
(event: "toggle", state: boolean): void;
|
|
62
56
|
}
|
|
63
57
|
|
|
64
|
-
const props =
|
|
65
|
-
position: "bottom",
|
|
66
|
-
overlayed: false,
|
|
67
|
-
});
|
|
68
|
-
|
|
58
|
+
const props = defineProps<Props>();
|
|
69
59
|
const emit = defineEmits<Emits>();
|
|
70
60
|
|
|
71
61
|
defineSlots<{
|
|
72
62
|
content: (props: { opened: boolean; toggle: () => void }) => void;
|
|
73
|
-
trigger: void;
|
|
63
|
+
trigger: (props: { isActive: boolean; toggle: () => void }) => void;
|
|
74
64
|
}>();
|
|
75
65
|
|
|
76
|
-
const
|
|
66
|
+
const { toggleWidget, currentWidget } = useAppBarWidgets();
|
|
77
67
|
const referenceButton = ref<HTMLDivElement | null>(null);
|
|
78
|
-
const contentRef = ref<HTMLDivElement | null>(null);
|
|
79
68
|
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
const { showContent, hideContent } = useAppBarOverlay();
|
|
69
|
+
// Check if the current widget is active
|
|
70
|
+
const isActive = computed(() => (props.widgetId ? currentWidget.value?.id === props.widgetId : false));
|
|
83
71
|
|
|
84
72
|
function toggleContent() {
|
|
85
73
|
if (props.beforeOpen && typeof props.beforeOpen === "function" && props.beforeOpen() === false) {
|
|
86
74
|
return;
|
|
87
75
|
}
|
|
88
76
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const content = () => {
|
|
93
|
-
return withDirectives(
|
|
94
|
-
h(
|
|
95
|
-
"div",
|
|
96
|
-
{
|
|
97
|
-
style: {
|
|
98
|
-
height: "-webkit-fill-available",
|
|
99
|
-
},
|
|
100
|
-
ref: contentRef,
|
|
101
|
-
},
|
|
102
|
-
[
|
|
103
|
-
h(slots["content"]!, {
|
|
104
|
-
opened: isContentVisible.value,
|
|
105
|
-
toggle: toggleContent,
|
|
106
|
-
}),
|
|
107
|
-
],
|
|
108
|
-
),
|
|
109
|
-
[[vOnClickOutside, [onClose, { ignore: [referenceButton, contentRef] }]]],
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
showContent({
|
|
114
|
-
id: instance?.uid?.toString() ?? "",
|
|
115
|
-
content,
|
|
116
|
-
overlayed: props.overlayed,
|
|
117
|
-
props: {
|
|
118
|
-
opened: isContentVisible.value,
|
|
119
|
-
toggle: toggleContent,
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
} else {
|
|
123
|
-
hideContent();
|
|
77
|
+
if (props.widgetId) {
|
|
78
|
+
toggleWidget(props.widgetId);
|
|
79
|
+
emit("toggle", isActive.value);
|
|
124
80
|
}
|
|
125
|
-
|
|
126
|
-
emit("toggle", isContentVisible.value);
|
|
127
81
|
}
|
|
128
82
|
|
|
129
|
-
const onClose = () => {
|
|
130
|
-
isContentVisible.value = false;
|
|
131
|
-
hideContent();
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
onUnmounted(() => {
|
|
135
|
-
if (isContentVisible.value) {
|
|
136
|
-
hideContent();
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
|
|
140
83
|
onMounted(() => {
|
|
141
|
-
if (props.isOpened) {
|
|
142
|
-
|
|
84
|
+
if (props.isOpened && props.widgetId) {
|
|
85
|
+
toggleWidget(props.widgetId);
|
|
143
86
|
}
|
|
144
87
|
});
|
|
145
88
|
</script>
|
|
@@ -156,14 +99,14 @@ onMounted(() => {
|
|
|
156
99
|
--app-bar-button-dropdown-button-width: var(--app-bar-button-width);
|
|
157
100
|
--app-bar-button-border-color: var(--accent-500);
|
|
158
101
|
--app-bar-button-dropdown-button-border: var(--app-bar-button-border-color);
|
|
159
|
-
|
|
102
|
+
|
|
160
103
|
--app-bar-button-dropdown-button-background-color: var(--app-bar-button-background-color);
|
|
161
|
-
|
|
104
|
+
|
|
162
105
|
--app-bar-button-dropdown-button-background-color-hover: var(--app-bar-button-background-color-hover);
|
|
163
106
|
--app-bar-button-mobile-bg-color: var(--neutral-500);
|
|
164
107
|
|
|
165
|
-
--app-bar-button-dropdown-button-color
|
|
166
|
-
--app-bar-button-dropdown-button-active-
|
|
108
|
+
--app-bar-button-dropdown-button-text-color: var(--neutrals-500);
|
|
109
|
+
--app-bar-button-dropdown-button-active-text-color: var(--primary-500);
|
|
167
110
|
--app-bar-button-border-width: 2px;
|
|
168
111
|
}
|
|
169
112
|
|
|
@@ -193,22 +136,22 @@ onMounted(() => {
|
|
|
193
136
|
&__button-container {
|
|
194
137
|
@apply tw-w-full tw-relative tw-h-full tw-flex tw-items-center tw-justify-center
|
|
195
138
|
tw-cursor-pointer
|
|
196
|
-
tw-text-[color:var(--app-bar-button-dropdown-button-color)] tw-bg-[color:var(--app-bar-button-dropdown-button-background-color)]
|
|
139
|
+
tw-text-[color:var(--app-bar-button-dropdown-button-text-color)] tw-bg-[color:var(--app-bar-button-dropdown-button-background-color)]
|
|
197
140
|
tw-transition-colors tw-duration-200 tw-box-border;
|
|
198
|
-
|
|
199
|
-
&:hover:not(&--active) {
|
|
200
|
-
@apply tw-bg-[color:var(--app-bar-button-dropdown-button-color-hover)];
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&--active {
|
|
204
|
-
@apply tw-bg-[color:var(--app-bar-button-dropdown-button-active-bg)];
|
|
205
|
-
}
|
|
206
141
|
}
|
|
207
142
|
|
|
208
143
|
&__button-wrap {
|
|
209
144
|
@apply tw-w-[var(--app-bar-button-dropdown-button-width)] tw-flex tw-justify-center;
|
|
210
145
|
}
|
|
211
146
|
|
|
147
|
+
&__icon {
|
|
148
|
+
@apply tw-text-[color:var(--app-bar-button-dropdown-button-text-color)] tw-transition-colors tw-duration-300 tw-ease-in-out;
|
|
149
|
+
|
|
150
|
+
&--active {
|
|
151
|
+
@apply tw-text-[color:var(--app-bar-button-dropdown-button-active-text-color)];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
212
155
|
&__dropdown {
|
|
213
156
|
@apply tw-min-w-[100%];
|
|
214
157
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vc-app-toolbar-menu">
|
|
3
|
+
<div
|
|
4
|
+
v-for="item in items"
|
|
5
|
+
:key="item.id"
|
|
6
|
+
class="vc-app-toolbar-menu__item"
|
|
7
|
+
>
|
|
8
|
+
<AppBarWidgetItem
|
|
9
|
+
v-if="item.component"
|
|
10
|
+
:is-opened="isBadgeActive(item)"
|
|
11
|
+
:widget-id="item.id"
|
|
12
|
+
@toggle="item.onClick && item.onClick()"
|
|
13
|
+
>
|
|
14
|
+
<template #trigger="{ isActive }">
|
|
15
|
+
<div class="vc-app-toolbar-menu__button">
|
|
16
|
+
<div
|
|
17
|
+
class="vc-app-toolbar-menu__button-icon"
|
|
18
|
+
:class="{
|
|
19
|
+
'vc-app-toolbar-menu__button-icon--active': isActive,
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
<VcIcon
|
|
23
|
+
v-if="item.icon"
|
|
24
|
+
:icon="item.icon"
|
|
25
|
+
size="l"
|
|
26
|
+
/>
|
|
27
|
+
<div
|
|
28
|
+
v-if="isBadgeActive(item)"
|
|
29
|
+
class="vc-app-toolbar-menu__accent"
|
|
30
|
+
></div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
</AppBarWidgetItem>
|
|
35
|
+
|
|
36
|
+
<AppBarWidgetItem
|
|
37
|
+
v-else-if="item.onClick"
|
|
38
|
+
@toggle="item.onClick"
|
|
39
|
+
>
|
|
40
|
+
<template #trigger="{ isActive }">
|
|
41
|
+
<div
|
|
42
|
+
class="vc-app-toolbar-menu__button-icon"
|
|
43
|
+
:class="{
|
|
44
|
+
'vc-app-toolbar-menu__button-icon--active': isActive,
|
|
45
|
+
}"
|
|
46
|
+
>
|
|
47
|
+
<VcIcon
|
|
48
|
+
v-if="item.icon"
|
|
49
|
+
:icon="item.icon"
|
|
50
|
+
size="l"
|
|
51
|
+
/>
|
|
52
|
+
<div
|
|
53
|
+
v-if="isBadgeActive(item)"
|
|
54
|
+
class="vc-app-toolbar-menu__accent"
|
|
55
|
+
></div>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
</AppBarWidgetItem>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script lang="ts" setup>
|
|
64
|
+
import AppBarWidgetItem from "./AppBarWidgetItem.vue";
|
|
65
|
+
import { VcIcon } from "../../../../..";
|
|
66
|
+
import { useAppBarWidget } from "../../../../../../../core/composables";
|
|
67
|
+
import type { AppBarWidget } from "../../../../../../../core/services";
|
|
68
|
+
|
|
69
|
+
const { items } = useAppBarWidget();
|
|
70
|
+
|
|
71
|
+
function isBadgeActive(item: AppBarWidget): boolean {
|
|
72
|
+
if (item.badge === undefined) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (typeof item.badge === "function") {
|
|
77
|
+
return item.badge();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return !!item.badge;
|
|
81
|
+
}
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<style lang="scss">
|
|
85
|
+
:root {
|
|
86
|
+
--app-toolbar-menu-accent-color: var(--danger-500);
|
|
87
|
+
--app-toolbar-menu-icon-color: var(--neutrals-500);
|
|
88
|
+
--app-toolbar-menu-icon-color-active: var(--primary-500);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.vc-app-toolbar-menu {
|
|
92
|
+
@apply tw-flex tw-items-center;
|
|
93
|
+
|
|
94
|
+
&__accent {
|
|
95
|
+
@apply tw-block tw-absolute -tw-right-[4px] tw-top-[0px] tw-w-[5px] tw-h-[5px] tw-bg-[--app-toolbar-menu-accent-color] tw-rounded-full tw-z-[1];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__button {
|
|
99
|
+
@apply tw-flex tw-items-center tw-justify-center tw-relative tw-cursor-pointer;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__button-icon {
|
|
103
|
+
@apply tw-relative tw-text-[color:var(--app-toolbar-menu-icon-color)];
|
|
104
|
+
|
|
105
|
+
&--active {
|
|
106
|
+
@apply tw-text-[color:var(--app-toolbar-menu-icon-color-active)];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
'menu-sidebar__header--mobile': $isMobile.value,
|
|
22
22
|
}"
|
|
23
23
|
>
|
|
24
|
-
<div class="menu-
|
|
25
|
-
<slot name="
|
|
24
|
+
<div class="menu-sidebar__widgets">
|
|
25
|
+
<slot name="widgets" />
|
|
26
26
|
</div>
|
|
27
27
|
<div class="menu-sidebar__spacer" />
|
|
28
28
|
<div
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
<div class="menu-sidebar__content">
|
|
42
42
|
<div
|
|
43
|
-
v-if="$slots['active-content']"
|
|
43
|
+
v-if="$slots['widgets-active-content']"
|
|
44
44
|
class="menu-sidebar__content-main"
|
|
45
45
|
>
|
|
46
|
-
<slot name="active-content" />
|
|
46
|
+
<slot name="widgets-active-content" />
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<template v-if="$isMobile.value">
|
|
@@ -66,10 +66,11 @@
|
|
|
66
66
|
<script lang="ts" setup>
|
|
67
67
|
import { Sidebar } from "../../../../../../../shared/components/sidebar";
|
|
68
68
|
import { CrossSignIcon } from "../../../../../atoms/vc-icon/icons";
|
|
69
|
+
import { MaybeRef } from "vue";
|
|
69
70
|
|
|
70
71
|
defineProps<{
|
|
71
72
|
isOpened: boolean;
|
|
72
|
-
expanded: boolean
|
|
73
|
+
expanded: MaybeRef<boolean>;
|
|
73
74
|
}>();
|
|
74
75
|
|
|
75
76
|
defineEmits<{
|
|
@@ -77,11 +78,11 @@ defineEmits<{
|
|
|
77
78
|
}>();
|
|
78
79
|
|
|
79
80
|
defineSlots<{
|
|
80
|
-
toolbar: () => void;
|
|
81
81
|
navmenu: () => void;
|
|
82
82
|
"user-dropdown": () => void;
|
|
83
83
|
"app-switcher": () => void;
|
|
84
|
-
"active-content": () => void;
|
|
84
|
+
"widgets-active-content": () => void;
|
|
85
|
+
widgets: () => void;
|
|
85
86
|
}>();
|
|
86
87
|
</script>
|
|
87
88
|
|
|
@@ -164,7 +165,7 @@ defineSlots<{
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
&
|
|
168
|
+
&__widgets {
|
|
168
169
|
@apply tw-flex tw-flex-row tw-items-center tw-justify-between tw-overflow-auto;
|
|
169
170
|
}
|
|
170
171
|
}
|
package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useAppBarMobileActions.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
import { useAppBarMobileButtons } from "../../../../../../../core/composables/useAppBarMobileButtons";
|
|
3
|
+
import { useToggleableContent } from "./useToggleableContent";
|
|
4
|
+
|
|
5
|
+
// Store only ID of the active action
|
|
6
|
+
const activeActionId = ref<string | null>(null);
|
|
7
|
+
|
|
8
|
+
export function useAppBarMobileActions() {
|
|
9
|
+
const { getButtons } = useAppBarMobileButtons();
|
|
10
|
+
|
|
11
|
+
// Use the common composable to manage content
|
|
12
|
+
const {
|
|
13
|
+
showItem: showAction,
|
|
14
|
+
hideAllItems: hideAllActions,
|
|
15
|
+
toggleItem: toggleAction,
|
|
16
|
+
currentItem: currentAction,
|
|
17
|
+
isAnyItemVisible: isAnyActionVisible,
|
|
18
|
+
closeItem: closeAction,
|
|
19
|
+
} = useToggleableContent(getButtons, activeActionId);
|
|
20
|
+
|
|
21
|
+
// Watch for changes in the list of buttons
|
|
22
|
+
watch(
|
|
23
|
+
() => getButtons.value,
|
|
24
|
+
(newButtons) => {
|
|
25
|
+
// If the active button exists
|
|
26
|
+
if (activeActionId.value) {
|
|
27
|
+
// Check if this button still exists in the list
|
|
28
|
+
const buttonStillExists = newButtons.some((button) => button.id === activeActionId.value);
|
|
29
|
+
|
|
30
|
+
// If the button was removed - close it
|
|
31
|
+
if (!buttonStillExists) {
|
|
32
|
+
const activeButton = currentAction.value;
|
|
33
|
+
if (activeButton?.onClose) {
|
|
34
|
+
activeButton.onClose();
|
|
35
|
+
}
|
|
36
|
+
hideAllActions();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ deep: true },
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
showAction,
|
|
45
|
+
hideAllActions,
|
|
46
|
+
toggleAction,
|
|
47
|
+
currentAction,
|
|
48
|
+
isAnyActionVisible,
|
|
49
|
+
closeAction,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { useAppBarWidget } from "../../../../../../../core/composables";
|
|
3
|
+
import { useToggleableContent } from "./useToggleableContent";
|
|
4
|
+
|
|
5
|
+
// Store only the ID of the active widget outside the function
|
|
6
|
+
const activeWidgetId = ref<string | null>(null);
|
|
7
|
+
|
|
8
|
+
export function useAppBarWidgets() {
|
|
9
|
+
const { items } = useAppBarWidget();
|
|
10
|
+
|
|
11
|
+
// Use the common composable to manage content
|
|
12
|
+
const {
|
|
13
|
+
showItem: showWidget,
|
|
14
|
+
hideAllItems: hideAllWidgets,
|
|
15
|
+
toggleItem: toggleWidget,
|
|
16
|
+
currentItem: currentWidget,
|
|
17
|
+
isAnyItemVisible: isAnyWidgetVisible,
|
|
18
|
+
} = useToggleableContent(items, activeWidgetId);
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
showWidget,
|
|
22
|
+
hideAllWidgets,
|
|
23
|
+
toggleWidget,
|
|
24
|
+
currentWidget,
|
|
25
|
+
isAnyWidgetVisible,
|
|
26
|
+
};
|
|
27
|
+
}
|
package/ui/components/organisms/vc-app/_internal/vc-app-bar/composables/useToggleableContent.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ref, computed, ComputedRef, Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Base interface for items that can be controlled through toggling
|
|
5
|
+
*/
|
|
6
|
+
export interface ToggleableItem {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Creates a content manager with basic operations
|
|
12
|
+
*
|
|
13
|
+
* @param itemsGetter - function to get the array of items
|
|
14
|
+
* @param activeIdRef - reference for storing the active item ID
|
|
15
|
+
* @returns object with methods and computed properties for managing content
|
|
16
|
+
*/
|
|
17
|
+
export function useToggleableContent<T extends ToggleableItem>(
|
|
18
|
+
itemsGetter: ComputedRef<T[] | null | undefined>,
|
|
19
|
+
activeIdRef: Ref<string | null>,
|
|
20
|
+
) {
|
|
21
|
+
// Get the current active item directly from the array of items
|
|
22
|
+
const currentItem = computed(() => {
|
|
23
|
+
if (!activeIdRef.value || !Array.isArray(itemsGetter.value)) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return itemsGetter.value.find((item) => item.id === activeIdRef.value) || null;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// Check if any item is visible
|
|
31
|
+
const isAnyItemVisible = computed(() => activeIdRef.value !== null);
|
|
32
|
+
|
|
33
|
+
// Activate/deactivate item
|
|
34
|
+
const toggleItem = (id: string) => {
|
|
35
|
+
// If already active, hide
|
|
36
|
+
if (activeIdRef.value === id) {
|
|
37
|
+
activeIdRef.value = null;
|
|
38
|
+
} else {
|
|
39
|
+
// Otherwise, show
|
|
40
|
+
activeIdRef.value = id;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const closeItem = () => {
|
|
45
|
+
activeIdRef.value = null;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// Show specific item
|
|
49
|
+
const showItem = (id: string) => {
|
|
50
|
+
activeIdRef.value = id;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// Hide all items
|
|
54
|
+
const hideAllItems = () => {
|
|
55
|
+
activeIdRef.value = null;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
showItem,
|
|
60
|
+
hideAllItems,
|
|
61
|
+
toggleItem,
|
|
62
|
+
currentItem,
|
|
63
|
+
isAnyItemVisible,
|
|
64
|
+
closeItem,
|
|
65
|
+
};
|
|
66
|
+
}
|