@vc-shell/framework 1.0.341 → 1.1.0-alpha.10
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 +15 -2
- package/core/api/platform.ts +9883 -9883
- package/core/composables/index.ts +11 -7
- package/core/composables/useApiClient/index.ts +22 -22
- package/core/composables/useAppBarMobileButtons/index.ts +17 -0
- package/core/composables/useAppBarWidget/index.ts +19 -0
- package/core/composables/useBeforeUnload/index.ts +25 -25
- package/core/composables/useDashboard/index.ts +19 -0
- package/core/composables/useFunctions/debounce.ts +16 -16
- package/core/composables/useFunctions/delay.ts +4 -4
- package/core/composables/useFunctions/index.ts +21 -21
- package/core/composables/useFunctions/once.ts +12 -12
- package/core/composables/useFunctions/sleep.ts +4 -4
- package/core/composables/useFunctions/throttle.ts +14 -14
- package/core/composables/useGlobalSearch/index.ts +19 -0
- package/core/composables/useKeyboardNavigation/index.ts +211 -0
- package/core/composables/useLanguages/index.ts +78 -78
- package/core/composables/useLoading/index.ts +9 -9
- package/core/composables/useMenuService/index.ts +15 -105
- package/core/composables/useSettingsMenu/index.ts +23 -0
- package/core/composables/useTheme/index.ts +62 -61
- package/core/composables/useWidgets/index.ts +20 -0
- package/core/constants/index.ts +2 -0
- package/core/directives/autofocus/index.ts +9 -9
- package/core/directives/loading/index.ts +30 -1
- package/core/directives/loading/styles.css +36 -7
- package/core/plugins/i18n/index.ts +11 -11
- package/core/plugins/modularity/index.ts +32 -30
- package/core/plugins/modularity/loader.ts +2 -1
- package/core/plugins/moment/humanize.ts +74 -74
- package/core/plugins/moment/index.ts +1 -1
- package/core/plugins/permissions/index.ts +10 -10
- package/core/plugins/validation/index.ts +1 -1
- package/core/plugins/validation/rules.ts +145 -145
- package/core/services/app-bar-menu-service.ts +87 -0
- package/core/services/app-bar-mobile-buttons-service.ts +57 -0
- package/core/services/dashboard-service.ts +121 -0
- package/core/services/global-search-service.ts +36 -0
- package/core/services/menu-service.ts +235 -0
- package/core/services/settings-menu-service.ts +75 -0
- package/core/services/widget-service.ts +147 -0
- package/core/types/index.ts +33 -18
- package/core/types/widget.ts +15 -0
- package/core/utilities/camelToSnake.ts +7 -7
- package/core/utilities/camelize.ts +5 -5
- package/core/utilities/generateId.ts +3 -3
- package/core/utilities/kebabToCamel.ts +7 -7
- package/dist/{asn1-DF4fnRHj.js → asn1-jKiBa2Ya.js} +20 -18
- package/dist/{clike-l4mx49Q1.js → clike-BUuHEmgZ.js} +0 -1
- package/dist/{cobol-CJVkMW0i.js → cobol-BlTKFDRj.js} +0 -1
- package/dist/core/composables/index.d.ts +11 -7
- 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/useDashboard/index.d.ts +5 -0
- package/dist/core/composables/useDashboard/index.d.ts.map +1 -0
- package/dist/core/composables/useGlobalSearch/index.d.ts +4 -0
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -0
- 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/useMenuService/index.d.ts +4 -10
- package/dist/core/composables/useMenuService/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/useWidgets/index.d.ts +5 -0
- package/dist/core/composables/useWidgets/index.d.ts.map +1 -0
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/index.d.ts.map +1 -1
- package/dist/core/directives/loading/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +7 -7
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/loader.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/dashboard-service.d.ts +33 -0
- package/dist/core/services/dashboard-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/menu-service.d.ts +17 -0
- package/dist/core/services/menu-service.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/widget-service.d.ts +39 -0
- package/dist/core/services/widget-service.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +33 -17
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/widget.d.ts +12 -0
- package/dist/core/types/widget.d.ts.map +1 -0
- package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
- package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
- package/dist/framework.js +282 -224
- package/dist/{haxe-pdDS1aE8.js → haxe-70NVW1pR.js} +1 -1
- package/dist/index-Bi0kJi5Z.js +137 -0
- package/dist/{index-YvFwPxsI.js → index-C21NKea4.js} +9 -9
- package/dist/{index-CV4fOhK1.js → index-C9n6vRCl.js} +6 -6
- package/dist/{index-Dho4-wXM.js → index-CBdNNVCt.js} +8 -8
- package/dist/{index-n48DzlNW.js → index-CNEtPeAi.js} +9 -9
- package/dist/index-CPkPLIZF.js +243 -0
- package/dist/{index-CT72nbMk.js → index-CUwa-7vt.js} +10 -10
- package/dist/{index-bAD1-blW.js → index-ClEfeR5e.js} +7 -7
- package/dist/{index-BON_eF-3.js → index-CtUvgwL1.js} +9 -9
- package/dist/{index-wsG2MecP.js → index-D7TQzX3d.js} +7 -7
- package/dist/{index-Ce86fM2z.js → index-DSYfAsS3.js} +95775 -92179
- package/dist/{index-Dcdjgpoe.js → index-Dg1vmmpj.js} +5 -5
- package/dist/{index-DSefVRVC.js → index-Dzz7ZfO9.js} +19 -19
- package/dist/index-dZEaziXz.js +607 -0
- package/dist/{index-Ck9pr8TI.js → index-kg3-UkAr.js} +16 -16
- package/dist/{index-BXTIkfHT.js → index-vc0H8rq-.js} +42 -42
- package/dist/index-vegt24rG.js +308 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +46 -0
- package/dist/injection-keys.d.ts.map +1 -0
- package/dist/{javascript-CWGekh08.js → javascript-WMWNx-Vj.js} +1 -1
- package/dist/{livescript-CE_BxZmN.js → livescript-CanGTf8u.js} +25 -25
- package/dist/locales/de.json +8 -2
- package/dist/locales/en.json +6 -1
- package/dist/{mllike-1yy7Y7jE.js → mllike-BSnXJBGA.js} +0 -3
- package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
- package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
- package/dist/{pug-CW1q1xhQ.js → pug-BqUR2bBq.js} +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts +19 -0
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -0
- 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 +32 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +5 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +9 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/change-password-button/change-password-button.vue.d.ts +3 -0
- package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -0
- package/dist/shared/components/change-password-button/index.d.ts +2 -0
- package/dist/shared/components/change-password-button/index.d.ts.map +1 -0
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +25 -0
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts +2 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts +8 -0
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts +20 -0
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useCellSizeCalculator.d.ts +25 -0
- package/dist/shared/components/draggable-dashboard/composables/useCellSizeCalculator.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useCollisionDetection.d.ts +27 -0
- package/dist/shared/components/draggable-dashboard/composables/useCollisionDetection.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +376 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts +20 -0
- package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useDragClone.d.ts +15 -0
- package/dist/shared/components/draggable-dashboard/composables/useDragClone.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useEventCoordinates.d.ts +33 -0
- package/dist/shared/components/draggable-dashboard/composables/useEventCoordinates.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useGridPosition.d.ts +57 -0
- package/dist/shared/components/draggable-dashboard/composables/useGridPosition.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useGridSystem.d.ts +22 -0
- package/dist/shared/components/draggable-dashboard/composables/useGridSystem.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts +19 -0
- package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useResizeObserver.d.ts +18 -0
- package/dist/shared/components/draggable-dashboard/composables/useResizeObserver.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useWidgetLayout.d.ts +14 -0
- package/dist/shared/components/draggable-dashboard/composables/useWidgetLayout.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/composables/useWidgetStyles.d.ts +21 -0
- package/dist/shared/components/draggable-dashboard/composables/useWidgetStyles.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/index.d.ts +2 -0
- package/dist/shared/components/draggable-dashboard/index.d.ts.map +1 -0
- package/dist/shared/components/draggable-dashboard/types.d.ts +84 -0
- package/dist/shared/components/draggable-dashboard/types.d.ts.map +1 -0
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts +132 -0
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts.map +1 -0
- package/dist/shared/components/generic-dropdown/index.d.ts +2 -0
- package/dist/shared/components/generic-dropdown/index.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +4 -1
- package/dist/shared/components/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/index.d.ts +2 -0
- package/dist/shared/components/logout-button/index.d.ts.map +1 -0
- package/dist/shared/components/logout-button/logout-button.vue.d.ts +3 -0
- package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -0
- package/dist/shared/components/notification-dropdown/_internal/notification/index.d.ts +2 -0
- package/dist/shared/components/notification-dropdown/_internal/notification/index.d.ts.map +1 -0
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/index.d.ts +4 -31
- package/dist/shared/components/notification-template/index.d.ts.map +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +4 -14
- 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 +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/settings-menu/index.d.ts +2 -0
- package/dist/shared/components/settings-menu/index.d.ts.map +1 -0
- package/dist/shared/components/settings-menu/settings-menu.vue.d.ts +3 -0
- package/dist/shared/components/settings-menu/settings-menu.vue.d.ts.map +1 -0
- package/dist/shared/components/settings-menu-item/index.d.ts +2 -0
- package/dist/shared/components/settings-menu-item/index.d.ts.map +1 -0
- package/dist/shared/components/{app-bar-button/app-bar-button.vue.d.ts → settings-menu-item/settings-menu-item.vue.d.ts} +26 -25
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -0
- package/dist/shared/components/sidebar/sidebar.vue.d.ts +7 -2
- package/dist/shared/components/sidebar/sidebar.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 +18 -0
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -0
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts +23 -0
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts.map +1 -0
- package/dist/shared/components/user-dropdown-button/index.d.ts +9 -25
- 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 -18
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +7 -0
- package/dist/shared/composables/useMenuExpanded.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +16 -16
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +1 -7
- package/dist/shared/modules/dynamic/components/fields/props.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +3 -62
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +3 -21
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -14
- 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 +4 -41
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +5 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +10 -10
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +10 -10
- package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
- package/dist/{sql-uoWIYwDX.js → sql-mMre1Bo3.js} +0 -2
- package/dist/tailwind.config.d.ts +1 -81
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ttcn-DmjTzZb6.js → ttcn-Bsa4sfRm.js} +20 -22
- package/dist/{ttcn-cfg-B2U3U7dn.js → ttcn-cfg-Bac_acMi.js} +15 -17
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +266 -831
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +20 -3
- 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 -0
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +36 -24
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +2 -0
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/BellIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/LogoutIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/OffersIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/OrdersIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/PeopleIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ProductsIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ProfileIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/SearchIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue.d.ts +18 -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 +18 -0
- package/dist/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +28 -0
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -0
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +3 -3
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +3 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts +9 -0
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +1 -0
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +35 -0
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +15 -0
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +7 -0
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +4 -0
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +6 -0
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts +6 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -3
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/index.d.ts +1 -0
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +67 -33
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +25 -11
- 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 +21 -4
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts +210 -40
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +10 -4
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +996 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +332 -0
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts +3 -3
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts +12 -12
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +24 -24
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
- 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.stories.d.ts +18 -18
- 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.stories.d.ts +84 -84
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +12 -12
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +240 -240
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +24 -24
- 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 +9 -9
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts +9 -9
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +63 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts +19 -0
- package/dist/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts +25 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts +32 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue.d.ts +17 -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 +30 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts +50 -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 +40 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -0
- 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 +6 -16
- 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 +3 -2
- 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 +2 -1
- 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 +3 -12
- 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/vc-app.stories.d.ts +13 -199
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +5 -197
- 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 +1 -2
- 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 +48 -0
- 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 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/{vc-blade-toolbar-button → vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button}/vc-blade-toolbar-button.vue.d.ts +10 -4
- 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 -0
- 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 +40 -0
- 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 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue.d.ts +19 -0
- 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 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue.d.ts +17 -0
- 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 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue.d.ts +19 -0
- 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 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +9 -2
- 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 +3 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts +16 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts +16 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts +15 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +2 -16
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +56 -2
- 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 +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +13 -13
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
- 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 +3 -2
- 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 +2 -1
- 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-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +218 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts +118 -0
- 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 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +236 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -0
- 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 +24 -0
- 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 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +314 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +1 -1
- 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.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue.d.ts +32 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts +66 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +6 -13
- 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 +229 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts +38 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts +17 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts +407 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnReorder.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts +9 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +16 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts +23 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts +20 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableSwipe.d.ts +12 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableSwipe.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +105 -735
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +41 -135
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/ui/composables/useVisibleElements.d.ts +19 -0
- package/dist/ui/composables/useVisibleElements.d.ts.map +1 -0
- package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
- package/package.json +16 -6
- package/shared/components/app-switcher/components/vc-app-switcher/index.ts +1 -1
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +30 -135
- package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +77 -0
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +23 -10
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +30 -6
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +9 -1
- package/shared/components/blade-navigation/types/index.ts +10 -0
- package/shared/components/change-password/change-password.vue +3 -2
- package/shared/components/change-password-button/change-password-button.vue +20 -0
- package/shared/components/change-password-button/index.ts +1 -0
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +67 -0
- package/shared/components/dashboard-widget-card/index.ts +1 -0
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +332 -0
- package/shared/components/draggable-dashboard/_internal/DashboardWidget.vue +117 -0
- package/shared/components/draggable-dashboard/composables/useCellSizeCalculator.ts +121 -0
- package/shared/components/draggable-dashboard/composables/useCollisionDetection.ts +219 -0
- package/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.ts +342 -0
- package/shared/components/draggable-dashboard/composables/useDashboardGrid.ts +104 -0
- package/shared/components/draggable-dashboard/composables/useDragClone.ts +97 -0
- package/shared/components/draggable-dashboard/composables/useEventCoordinates.ts +91 -0
- package/shared/components/draggable-dashboard/composables/useGridPosition.ts +150 -0
- package/shared/components/draggable-dashboard/composables/useGridSystem.ts +169 -0
- package/shared/components/draggable-dashboard/composables/useLayoutPersistence.ts +89 -0
- package/shared/components/draggable-dashboard/composables/useResizeObserver.ts +105 -0
- package/shared/components/draggable-dashboard/composables/useWidgetLayout.ts +264 -0
- package/shared/components/draggable-dashboard/composables/useWidgetStyles.ts +120 -0
- package/shared/components/draggable-dashboard/index.ts +1 -0
- package/shared/components/draggable-dashboard/types.ts +96 -0
- package/shared/components/error-interceptor/interceptor.ts +44 -44
- package/shared/components/generic-dropdown/generic-dropdown.vue +219 -0
- package/shared/components/generic-dropdown/index.ts +1 -0
- package/shared/components/index.ts +4 -1
- package/shared/components/language-selector/language-selector.vue +56 -65
- package/shared/components/logout-button/index.ts +1 -0
- package/shared/components/logout-button/logout-button.vue +27 -0
- package/shared/components/notification-dropdown/_internal/notification/index.ts +1 -0
- package/shared/components/notification-dropdown/notification-dropdown.vue +27 -85
- package/shared/components/notification-template/notification-template.vue +26 -61
- package/shared/components/notifications/styles/index.scss +10 -10
- package/shared/components/settings-menu/index.ts +1 -0
- package/shared/components/settings-menu/settings-menu.vue +25 -0
- package/shared/components/settings-menu-item/index.ts +1 -0
- package/shared/components/settings-menu-item/settings-menu-item.vue +136 -0
- package/shared/components/sidebar/sidebar.vue +81 -42
- package/shared/components/theme-selector/theme-selector.vue +55 -66
- package/shared/components/user-dropdown-button/_internal/user-info.vue +95 -0
- package/shared/components/user-dropdown-button/_internal/user-sidebar.vue +48 -0
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +74 -290
- package/shared/composables/useMenuExpanded.ts +40 -0
- package/shared/modules/assets/components/assets-details/assets-details.vue +2 -2
- package/shared/modules/assets/index.ts +0 -1
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +0 -1
- package/shared/modules/dynamic/components/FIELD_MAP.ts +53 -53
- package/shared/modules/dynamic/components/SchemaRender.ts +102 -102
- package/shared/modules/dynamic/components/factories.ts +244 -244
- package/shared/modules/dynamic/components/fields/Button.ts +44 -44
- package/shared/modules/dynamic/components/fields/Card.ts +119 -119
- package/shared/modules/dynamic/components/fields/Checkbox.ts +53 -53
- package/shared/modules/dynamic/components/fields/ContentField.ts +33 -33
- package/shared/modules/dynamic/components/fields/CustomComponent.ts +29 -29
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +141 -141
- package/shared/modules/dynamic/components/fields/EditorField.ts +46 -46
- package/shared/modules/dynamic/components/fields/Fieldset.ts +65 -65
- package/shared/modules/dynamic/components/fields/GalleryField.ts +161 -161
- package/shared/modules/dynamic/components/fields/ImageField.ts +35 -35
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +79 -79
- package/shared/modules/dynamic/components/fields/InputField.ts +81 -81
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +68 -68
- package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +82 -82
- package/shared/modules/dynamic/components/fields/RatingField.ts +28 -28
- package/shared/modules/dynamic/components/fields/SelectField.ts +72 -72
- package/shared/modules/dynamic/components/fields/StatusField.ts +110 -110
- package/shared/modules/dynamic/components/fields/SwitchField.ts +29 -29
- package/shared/modules/dynamic/components/fields/Table.ts +1 -2
- package/shared/modules/dynamic/components/fields/TextareaField.ts +46 -46
- package/shared/modules/dynamic/components/fields/ValidationField.ts +54 -54
- package/shared/modules/dynamic/components/fields/VideoField.ts +30 -30
- package/shared/modules/dynamic/components/fields/props.ts +39 -39
- package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +2 -63
- package/shared/modules/dynamic/components/fields/storybook/Card.stories.ts +1 -2
- package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +185 -185
- package/shared/modules/dynamic/components/fields/storybook/ContentField.stories.ts +245 -245
- package/shared/modules/dynamic/components/fields/storybook/EditorField.stories.ts +192 -192
- package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +347 -347
- package/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.ts +239 -239
- package/shared/modules/dynamic/components/fields/storybook/ImageField.stories.ts +186 -186
- package/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.ts +281 -281
- package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +312 -312
- package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +361 -361
- package/shared/modules/dynamic/components/fields/storybook/RadioButtonGroup.stories.ts +224 -224
- package/shared/modules/dynamic/components/fields/storybook/RatingField.stories.ts +131 -131
- 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/SwitchField.stories.ts +178 -178
- package/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.ts +203 -203
- package/shared/modules/dynamic/components/fields/storybook/VideoField.stories.ts +92 -92
- package/shared/modules/dynamic/components/fields/storybook/common/args.ts +130 -130
- package/shared/modules/dynamic/components/fields/storybook/common/templates.ts +1 -1
- package/shared/modules/dynamic/components/index.ts +4 -4
- package/shared/modules/dynamic/composables/index.ts +4 -4
- package/shared/modules/dynamic/composables/useDynamicViewsUtils/index.ts +46 -46
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +31 -22
- package/shared/modules/dynamic/composables/useTableTemplates/index.ts +67 -67
- package/shared/modules/dynamic/composables/useToolbarReducer/index.ts +70 -70
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +144 -144
- package/shared/modules/dynamic/factories/base/useListFactory.ts +68 -68
- package/shared/modules/dynamic/factories/index.ts +4 -4
- package/shared/modules/dynamic/factories/types/index.ts +229 -229
- package/shared/modules/dynamic/helpers/getters.ts +12 -12
- package/shared/modules/dynamic/helpers/methodHandler.ts +22 -22
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -1
- package/shared/modules/dynamic/helpers/override.ts +153 -153
- package/shared/modules/dynamic/helpers/safeIn.ts +6 -6
- package/shared/modules/dynamic/helpers/setters.ts +24 -24
- package/shared/modules/dynamic/helpers/unrefNested.ts +14 -14
- package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +16 -16
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +69 -31
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +169 -202
- package/shared/modules/dynamic/types/index.ts +5 -0
- package/shared/pages/ChangePasswordPage/components/change-password/index.ts +3 -3
- package/shared/pages/ChangePasswordPage/components/index.ts +1 -1
- package/shared/pages/ChangePasswordPage/index.ts +1 -1
- package/shared/pages/ChangePasswordPage/plugin.ts +4 -4
- package/shared/pages/InvitePage/components/index.ts +1 -1
- package/shared/pages/InvitePage/components/invite/Invite.vue +216 -216
- package/shared/pages/InvitePage/components/invite/index.ts +3 -3
- package/shared/pages/InvitePage/index.ts +1 -1
- package/shared/pages/InvitePage/plugin.ts +4 -4
- package/shared/pages/LoginPage/components/index.ts +1 -1
- package/shared/pages/LoginPage/components/login/Login.vue +1 -3
- package/shared/pages/LoginPage/components/login/index.ts +3 -3
- package/shared/pages/LoginPage/index.ts +1 -1
- package/shared/pages/LoginPage/plugin.ts +4 -4
- package/shared/pages/ResetPasswordPage/components/index.ts +1 -1
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +1 -1
- package/shared/pages/ResetPasswordPage/components/reset-password/index.ts +3 -3
- package/shared/pages/ResetPasswordPage/index.ts +1 -1
- package/shared/pages/ResetPasswordPage/plugin.ts +4 -4
- package/shared/pages/index.ts +4 -4
- package/shared/pages/plugin.ts +4 -4
- package/shared/utilities/assets.ts +42 -42
- package/shared/utilities/vueUtils.ts +50 -50
- package/tailwind.config.ts +5 -4
- package/ui/components/atoms/vc-badge/index.ts +1 -1
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +53 -53
- package/ui/components/atoms/vc-badge/vc-badge.vue +32 -15
- package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -16
- package/ui/components/atoms/vc-button/vc-button.vue +80 -66
- package/ui/components/atoms/vc-card/index.ts +3 -3
- package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
- package/ui/components/atoms/vc-card/vc-card.vue +18 -16
- package/ui/components/atoms/vc-col/index.ts +1 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +22 -22
- package/ui/components/atoms/vc-col/vc-col.vue +29 -29
- package/ui/components/atoms/vc-container/index.ts +10 -10
- package/ui/components/atoms/vc-container/vc-container.stories.ts +29 -29
- package/ui/components/atoms/vc-hint/index.ts +10 -10
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +23 -23
- package/ui/components/atoms/vc-hint/vc-hint.vue +1 -1
- package/ui/components/atoms/vc-icon/icons/AppWindowIcon.vue +15 -0
- package/ui/components/atoms/vc-icon/icons/ArrowLeftIcon.vue +20 -0
- package/ui/components/atoms/vc-icon/icons/ArrowRightIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/BellIcon.vue +14 -0
- package/ui/components/atoms/vc-icon/icons/ChevronDownIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/ChevronLeftIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/ChevronRightIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/ChevronUpIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/CircleDotsIcon.vue +16 -0
- package/ui/components/atoms/vc-icon/icons/CrossSignIcon.vue +20 -0
- package/ui/components/atoms/vc-icon/icons/DoubleArrowLeftIcon.vue +14 -0
- package/ui/components/atoms/vc-icon/icons/DoubleArrowRightIcon.vue +14 -0
- package/ui/components/atoms/vc-icon/icons/FulfillmentCentersIcon.vue +27 -0
- package/ui/components/atoms/vc-icon/icons/GridDotsIcon.vue +22 -0
- package/ui/components/atoms/vc-icon/icons/LogoutIcon.vue +13 -0
- package/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue +20 -0
- package/ui/components/atoms/vc-icon/icons/MinusSignIcon.vue +14 -0
- package/ui/components/atoms/vc-icon/icons/OffersIcon.vue +23 -0
- package/ui/components/atoms/vc-icon/icons/OrdersIcon.vue +19 -0
- package/ui/components/atoms/vc-icon/icons/PeopleIcon.vue +21 -0
- package/ui/components/atoms/vc-icon/icons/PlusSignIcon.vue +20 -0
- package/ui/components/atoms/vc-icon/icons/ProductsIcon.vue +23 -0
- package/ui/components/atoms/vc-icon/icons/ProfileIcon.vue +18 -0
- package/ui/components/atoms/vc-icon/icons/SearchIcon.vue +14 -0
- package/ui/components/atoms/vc-icon/icons/SettingsBoltIcon.vue +21 -0
- package/ui/components/atoms/vc-icon/icons/ShoppingCardIcon.vue +16 -0
- package/ui/components/atoms/vc-icon/icons/VendorSwitchIcon.vue +26 -0
- package/ui/components/atoms/vc-icon/icons/VertDotsIcon.vue +19 -0
- package/ui/components/atoms/vc-icon/icons/index.ts +27 -0
- package/ui/components/atoms/vc-icon/index.ts +1 -0
- package/ui/components/atoms/vc-icon/vc-icon.vue +62 -10
- package/ui/components/atoms/vc-image/index.ts +1 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +85 -85
- package/ui/components/atoms/vc-image/vc-image.vue +1 -1
- package/ui/components/atoms/vc-label/index.ts +1 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +31 -31
- package/ui/components/atoms/vc-label/vc-label.vue +12 -1
- package/ui/components/atoms/vc-link/index.ts +10 -10
- package/ui/components/atoms/vc-link/vc-link.stories.ts +37 -37
- package/ui/components/atoms/vc-link/vc-link.vue +54 -54
- package/ui/components/atoms/vc-loading/index.ts +3 -3
- package/ui/components/atoms/vc-loading/vc-loading.stories.ts +18 -18
- package/ui/components/atoms/vc-loading/vc-loading.vue +58 -58
- package/ui/components/atoms/vc-progress/index.ts +10 -10
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +30 -30
- package/ui/components/atoms/vc-progress/vc-progress.vue +1 -1
- package/ui/components/atoms/vc-row/index.ts +1 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +20 -20
- package/ui/components/atoms/vc-row/vc-row.vue +22 -22
- package/ui/components/atoms/vc-skeleton/vc-skeleton.vue +51 -0
- package/ui/components/atoms/vc-status/index.ts +1 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +85 -85
- package/ui/components/atoms/vc-status/vc-status.vue +64 -17
- package/ui/components/atoms/vc-status-icon/index.ts +1 -1
- package/ui/components/atoms/vc-switch/index.ts +1 -1
- package/ui/components/atoms/vc-switch/vc-switch.vue +5 -7
- package/ui/components/atoms/vc-tooltip/index.ts +1 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +28 -13
- package/ui/components/atoms/vc-video/index.ts +1 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +19 -19
- package/ui/components/atoms/vc-widget/index.ts +3 -3
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +20 -20
- package/ui/components/atoms/vc-widget/vc-widget.vue +86 -59
- package/ui/components/index.ts +2 -0
- package/ui/components/molecules/index.ts +16 -16
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +89 -92
- package/ui/components/molecules/vc-breadcrumbs/index.ts +1 -1
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +43 -43
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +157 -121
- package/ui/components/molecules/vc-checkbox/index.ts +3 -3
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +84 -84
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +185 -119
- package/ui/components/molecules/vc-editor/index.ts +1 -1
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +29 -29
- package/ui/components/molecules/vc-editor/vc-editor.vue +33 -3
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +96 -96
- package/ui/components/molecules/vc-field/index.ts +1 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +114 -114
- package/ui/components/molecules/vc-field/vc-field.vue +1 -1
- package/ui/components/molecules/vc-file-upload/index.ts +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +39 -39
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
- package/ui/components/molecules/vc-form/index.ts +10 -10
- package/ui/components/molecules/vc-form/vc-form.stories.ts +25 -25
- package/ui/components/molecules/vc-form/vc-form.vue +5 -5
- package/ui/components/molecules/vc-input/index.ts +1 -1
- package/ui/components/molecules/vc-input/vc-input.stories.ts +165 -165
- package/ui/components/molecules/vc-input/vc-input.vue +57 -13
- package/ui/components/molecules/vc-input-currency/index.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +83 -83
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +20 -0
- package/ui/components/molecules/vc-multivalue/index.ts +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +120 -120
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +69 -16
- package/ui/components/molecules/vc-notification/index.ts +1 -1
- package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
- package/ui/components/molecules/vc-pagination/index.ts +3 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +24 -24
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +48 -110
- package/ui/components/molecules/vc-radio-button/index.ts +1 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +97 -97
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +13 -8
- package/ui/components/molecules/vc-rating/index.ts +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +59 -59
- package/ui/components/molecules/vc-select/index.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.stories.ts +685 -685
- package/ui/components/molecules/vc-select/vc-select.vue +81 -25
- package/ui/components/molecules/vc-slider/index.ts +13 -13
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +61 -61
- package/ui/components/molecules/vc-slider/vc-slider.vue +118 -118
- package/ui/components/molecules/vc-textarea/index.ts +1 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +53 -53
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +37 -8
- package/ui/components/organisms/index.ts +7 -7
- package/ui/components/organisms/vc-app/_internal/composables/useAppMenuState.ts +97 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue +48 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue +173 -0
- 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 +90 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue +163 -0
- 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 +172 -0
- 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 +373 -146
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +188 -120
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +86 -131
- package/ui/components/organisms/vc-app/vc-app.stories.ts +214 -214
- package/ui/components/organisms/vc-app/vc-app.vue +135 -97
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +139 -90
- 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 +136 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/{vc-blade-toolbar-button → vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button}/vc-blade-toolbar-button.vue +62 -86
- package/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 +101 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue +182 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue +146 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue +32 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +30 -48
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/index.ts +2 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue +96 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue +184 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue +113 -0
- package/ui/components/organisms/vc-blade/index.ts +1 -1
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +83 -83
- package/ui/components/organisms/vc-blade/vc-blade.vue +177 -117
- package/ui/components/organisms/vc-dynamic-property/index.ts +1 -1
- 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 +1 -1
- package/ui/components/organisms/vc-gallery/index.ts +1 -1
- 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-login-form/index.ts +1 -1
- package/ui/components/organisms/vc-popup/index.ts +3 -3
- package/ui/components/organisms/vc-popup/vc-popup.vue +3 -3
- 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 +21 -17
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +8 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +4 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +4 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue +133 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue +250 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +238 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-select-all-header/vc-table-select-all-header.vue +54 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue +214 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +2 -7
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +84 -45
- package/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue +62 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue +160 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +47 -69
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue +386 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue +118 -0
- package/ui/components/organisms/vc-table/composables/useTableActions.ts +56 -0
- package/ui/components/organisms/vc-table/composables/useTableColumnReorder.ts +255 -0
- package/ui/components/organisms/vc-table/composables/useTableColumnResize.ts +147 -0
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +175 -0
- package/ui/components/organisms/vc-table/composables/useTableSelection.ts +118 -0
- package/ui/components/organisms/vc-table/composables/useTableState.ts +230 -0
- package/ui/components/organisms/vc-table/composables/useTableSwipe.ts +32 -0
- package/ui/components/organisms/vc-table/index.ts +1 -1
- package/ui/components/organisms/vc-table/vc-table.stories.ts +214 -214
- package/ui/components/organisms/vc-table/vc-table.vue +288 -1311
- package/ui/composables/useVisibleElements.ts +148 -0
- package/dist/index-DK6ijkM9.js +0 -598
- package/dist/index-DiJJUsG2.js +0 -243
- package/dist/index-PaekRinB.js +0 -312
- package/dist/index-lnO7rLKk.js +0 -135
- package/dist/shared/components/app-bar-button/app-bar-button.vue.d.ts.map +0 -1
- package/dist/shared/components/app-bar-button/index.d.ts +0 -2
- package/dist/shared/components/app-bar-button/index.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/injectionKeys.d.ts +0 -4
- package/dist/shared/components/blade-navigation/injectionKeys.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +0 -1
- package/shared/components/app-bar-button/app-bar-button.vue +0 -169
- package/shared/components/app-bar-button/index.ts +0 -1
- package/shared/components/blade-navigation/injectionKeys.ts +0 -4
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import type { IDashboardWidget, DashboardWidgetPosition } from "../types";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Composables for detecting and handling collisions between widgets
|
|
6
|
+
*
|
|
7
|
+
* Provides functions for checking widget intersections and calculating
|
|
8
|
+
* new positions for displaced widgets
|
|
9
|
+
*
|
|
10
|
+
* @returns An object with functions for working with collisions
|
|
11
|
+
*/
|
|
12
|
+
export function useCollisionDetection() {
|
|
13
|
+
// Map of displaced widgets: widget id -> new position
|
|
14
|
+
const displacedWidgets = ref<Map<string, DashboardWidgetPosition>>(new Map());
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Checks the intersection of two widgets
|
|
18
|
+
*
|
|
19
|
+
* @param widgetA The first widget
|
|
20
|
+
* @param posA The position of the first widget
|
|
21
|
+
* @param widgetB The second widget
|
|
22
|
+
* @param posB The position of the second widget
|
|
23
|
+
* @returns true if the widgets intersect
|
|
24
|
+
*/
|
|
25
|
+
const intersect = (
|
|
26
|
+
widgetA: IDashboardWidget,
|
|
27
|
+
posA: DashboardWidgetPosition,
|
|
28
|
+
widgetB: IDashboardWidget,
|
|
29
|
+
posB: DashboardWidgetPosition,
|
|
30
|
+
): boolean => {
|
|
31
|
+
// Early check by Y axis (if the difference is greater than the sum of heights, there is no intersection)
|
|
32
|
+
const verticalDistance = Math.abs(posA.y - posB.y);
|
|
33
|
+
if (verticalDistance > widgetA.size.height + widgetB.size.height) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Early check by X axis (if the difference is greater than the sum of widths, there is no intersection)
|
|
38
|
+
const horizontalDistance = Math.abs(posA.x - posB.x);
|
|
39
|
+
if (horizontalDistance > widgetA.size.width + widgetB.size.width) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Standard intersection check
|
|
44
|
+
const aLeft = posA.x;
|
|
45
|
+
const aRight = posA.x + widgetA.size.width;
|
|
46
|
+
const aTop = posA.y;
|
|
47
|
+
const aBottom = posA.y + widgetA.size.height;
|
|
48
|
+
|
|
49
|
+
const bLeft = posB.x;
|
|
50
|
+
const bRight = posB.x + widgetB.size.width;
|
|
51
|
+
const bTop = posB.y;
|
|
52
|
+
const bBottom = posB.y + widgetB.size.height;
|
|
53
|
+
|
|
54
|
+
return !(aRight <= bLeft || aLeft >= bRight || aBottom <= bTop || aTop >= bBottom);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Updates the list of displaced widgets based on the current position of the dragged widget
|
|
59
|
+
*
|
|
60
|
+
* @param draggedWidget The dragged widget
|
|
61
|
+
* @param previewPosition The current position of the dragged widget
|
|
62
|
+
* @param widgets All widgets on the dashboard
|
|
63
|
+
* @param layout The current dashboard layout (widget id -> position map)
|
|
64
|
+
*/
|
|
65
|
+
const updateDisplacedWidgets = (
|
|
66
|
+
draggedWidget: IDashboardWidget | null,
|
|
67
|
+
previewPosition: DashboardWidgetPosition | null,
|
|
68
|
+
widgets: IDashboardWidget[],
|
|
69
|
+
layout: Map<string, DashboardWidgetPosition>,
|
|
70
|
+
) => {
|
|
71
|
+
if (!draggedWidget || !previewPosition) {
|
|
72
|
+
displacedWidgets.value.clear();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const newDisplacements = new Map<string, DashboardWidgetPosition>();
|
|
77
|
+
const processedWidgets = new Set<string>();
|
|
78
|
+
|
|
79
|
+
// Cache for initial collision checks
|
|
80
|
+
const directCollisionWidgets = new Set<string>();
|
|
81
|
+
|
|
82
|
+
// Check collisions with other widgets
|
|
83
|
+
for (const widget of widgets) {
|
|
84
|
+
if (widget.id === draggedWidget.id) continue;
|
|
85
|
+
|
|
86
|
+
const pos = layout.get(widget.id);
|
|
87
|
+
if (!pos) continue;
|
|
88
|
+
|
|
89
|
+
if (intersect(draggedWidget, previewPosition, widget, pos)) {
|
|
90
|
+
directCollisionWidgets.add(widget.id);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// If there are no direct collisions, skip additional calculations
|
|
95
|
+
if (directCollisionWidgets.size === 0) {
|
|
96
|
+
displacedWidgets.value = newDisplacements;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Sort widgets from top to bottom for more natural rearrangement
|
|
101
|
+
const sortedWidgets = [...widgets]
|
|
102
|
+
.filter((w) => w.id !== draggedWidget.id)
|
|
103
|
+
.sort((a, b) => {
|
|
104
|
+
const posA = layout.get(a.id);
|
|
105
|
+
const posB = layout.get(b.id);
|
|
106
|
+
if (!posA || !posB) return 0;
|
|
107
|
+
// Sort first by Y, then by X for more stable results
|
|
108
|
+
return posA.y === posB.y ? posA.x - posB.x : posA.y - posB.y;
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Function for checking collisions with caching
|
|
112
|
+
const collisionCache = new Map<string, boolean>();
|
|
113
|
+
|
|
114
|
+
const checkCollision = (widget: IDashboardWidget, position: DashboardWidgetPosition) => {
|
|
115
|
+
const cacheKey = `${widget.id}_${position.x}_${position.y}`;
|
|
116
|
+
|
|
117
|
+
if (collisionCache.has(cacheKey)) {
|
|
118
|
+
return collisionCache.get(cacheKey);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Check intersection with the dragged widget
|
|
122
|
+
let hasCollision = intersect(draggedWidget, previewPosition, widget, position);
|
|
123
|
+
|
|
124
|
+
// Check intersections with already displaced widgets, if there is no collision with the dragged widget
|
|
125
|
+
if (!hasCollision) {
|
|
126
|
+
for (const [id, pos] of newDisplacements) {
|
|
127
|
+
const w = widgets.find((w) => w.id === id);
|
|
128
|
+
if (w && intersect(widget, position, w, pos)) {
|
|
129
|
+
hasCollision = true;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
collisionCache.set(cacheKey, hasCollision);
|
|
136
|
+
return hasCollision;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// First process widgets with direct collisions
|
|
140
|
+
for (const widget of sortedWidgets) {
|
|
141
|
+
if (processedWidgets.has(widget.id)) continue;
|
|
142
|
+
|
|
143
|
+
const currentPos = layout.get(widget.id);
|
|
144
|
+
if (!currentPos) continue;
|
|
145
|
+
|
|
146
|
+
// First focus on widgets with direct collisions
|
|
147
|
+
if (!directCollisionWidgets.has(widget.id) && newDisplacements.size === 0) continue;
|
|
148
|
+
|
|
149
|
+
// Check collisions in the current position
|
|
150
|
+
const hasCollision = checkCollision(widget, currentPos);
|
|
151
|
+
|
|
152
|
+
if (hasCollision) {
|
|
153
|
+
// Find a new position below the dragged widget
|
|
154
|
+
const newY = Math.max(previewPosition.y + draggedWidget.size.height, currentPos.y + 1);
|
|
155
|
+
let finalY = newY;
|
|
156
|
+
|
|
157
|
+
// Find the nearest position without collisions
|
|
158
|
+
const maxIterations = 50; // Protection against infinite loop
|
|
159
|
+
let iterations = 0;
|
|
160
|
+
|
|
161
|
+
while (checkCollision(widget, { x: currentPos.x, y: finalY }) && iterations < maxIterations) {
|
|
162
|
+
finalY++;
|
|
163
|
+
iterations++;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
newDisplacements.set(widget.id, { x: currentPos.x, y: finalY });
|
|
167
|
+
processedWidgets.add(widget.id);
|
|
168
|
+
|
|
169
|
+
// If we have displaced a widget with a direct collision, check if we have created new collisions
|
|
170
|
+
for (const w of sortedWidgets) {
|
|
171
|
+
if (w.id !== widget.id && !processedWidgets.has(w.id)) {
|
|
172
|
+
const pos = layout.get(w.id);
|
|
173
|
+
if (pos && intersect(widget, { x: currentPos.x, y: finalY }, w, pos)) {
|
|
174
|
+
directCollisionWidgets.add(w.id);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
displacedWidgets.value = newDisplacements;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Clears the list of displaced widgets
|
|
186
|
+
*/
|
|
187
|
+
const clearDisplacedWidgets = () => {
|
|
188
|
+
displacedWidgets.value.clear();
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Checks if the widget is displaced
|
|
193
|
+
*
|
|
194
|
+
* @param widgetId The ID of the widget
|
|
195
|
+
* @returns true if the widget is displaced
|
|
196
|
+
*/
|
|
197
|
+
const isWidgetDisplaced = (widgetId: string) => {
|
|
198
|
+
return displacedWidgets.value.has(widgetId);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Gets the new position for the displaced widget
|
|
203
|
+
*
|
|
204
|
+
* @param widgetId The ID of the widget
|
|
205
|
+
* @returns The new position or undefined if the widget is not displaced
|
|
206
|
+
*/
|
|
207
|
+
const getDisplacedPosition = (widgetId: string) => {
|
|
208
|
+
return displacedWidgets.value.get(widgetId);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
displacedWidgets,
|
|
213
|
+
intersect,
|
|
214
|
+
updateDisplacedWidgets,
|
|
215
|
+
clearDisplacedWidgets,
|
|
216
|
+
isWidgetDisplaced,
|
|
217
|
+
getDisplacedPosition,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { ref, computed, onUnmounted } from "vue";
|
|
2
|
+
import type { IDashboardWidget, DashboardWidgetPosition } from "../types";
|
|
3
|
+
import { GRID_COLUMNS } from "./useGridSystem";
|
|
4
|
+
import { useDashboard } from "../../../../core/composables/useDashboard";
|
|
5
|
+
import { useDragClone } from "./useDragClone";
|
|
6
|
+
import { useEventCoordinates } from "./useEventCoordinates";
|
|
7
|
+
import { useCollisionDetection } from "./useCollisionDetection";
|
|
8
|
+
import { useGridPosition, type CellSize } from "./useGridPosition";
|
|
9
|
+
|
|
10
|
+
// Cell height constant, corresponds to --dashboard-cell-height CSS variable
|
|
11
|
+
// Value of 80px is defined in DraggableDashboard.vue
|
|
12
|
+
const CELL_HEIGHT = 80;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Composables for managing the dragging of widgets on the dashboard
|
|
16
|
+
*
|
|
17
|
+
* Provides functions for handling drag events, updating widget positions, and handling collisions
|
|
18
|
+
*
|
|
19
|
+
* @param updateWidgetPosition Function to update the position of a widget in the store
|
|
20
|
+
* @param getGridRows Function to get the number of rows in the grid
|
|
21
|
+
* @returns An object with functions and state for managing the dragging
|
|
22
|
+
*/
|
|
23
|
+
export function useDashboardDragAndDrop(
|
|
24
|
+
updateWidgetPosition: (widgetId: string, position: DashboardWidgetPosition) => void,
|
|
25
|
+
getGridRows?: () => number,
|
|
26
|
+
) {
|
|
27
|
+
const dashboard = useDashboard();
|
|
28
|
+
const widgets = computed(() => dashboard.getWidgets());
|
|
29
|
+
const gridContainer = ref<HTMLElement | null>(null);
|
|
30
|
+
|
|
31
|
+
// Dragging state
|
|
32
|
+
const draggedWidget = ref<IDashboardWidget | null>(null);
|
|
33
|
+
const isDragging = ref(false);
|
|
34
|
+
|
|
35
|
+
// Initialize helper composables
|
|
36
|
+
const { dragClone, createDragClone, updateDragClonePosition, removeDragClone } = useDragClone();
|
|
37
|
+
const { initialPosition, isTouchDevice, getEventCoordinates, saveInitialPosition, hasMovedBeyondThreshold } =
|
|
38
|
+
useEventCoordinates();
|
|
39
|
+
const { displacedWidgets, updateDisplacedWidgets, isWidgetDisplaced, getDisplacedPosition } = useCollisionDetection();
|
|
40
|
+
const {
|
|
41
|
+
previewPosition,
|
|
42
|
+
dragOffset,
|
|
43
|
+
calculateDragOffset,
|
|
44
|
+
mouseToGridCoordinates,
|
|
45
|
+
constrainToGrid,
|
|
46
|
+
updatePreviewPosition,
|
|
47
|
+
resetPosition,
|
|
48
|
+
} = useGridPosition(GRID_COLUMNS, getGridRows);
|
|
49
|
+
|
|
50
|
+
// Getting the size of the cell
|
|
51
|
+
const calculateCellSize = (): CellSize => {
|
|
52
|
+
if (!gridContainer.value) return { cellWidth: 0, cellHeight: CELL_HEIGHT };
|
|
53
|
+
const rect = gridContainer.value.getBoundingClientRect();
|
|
54
|
+
return {
|
|
55
|
+
cellWidth: rect.width / GRID_COLUMNS,
|
|
56
|
+
cellHeight: CELL_HEIGHT,
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// Common logic for updating the position during dragging
|
|
61
|
+
const updateDragPosition = (event: MouseEvent | TouchEvent) => {
|
|
62
|
+
if (!gridContainer.value || !draggedWidget.value || !dragClone.value) return;
|
|
63
|
+
|
|
64
|
+
// Save event data, as it may be unavailable in requestAnimationFrame
|
|
65
|
+
const coords = getEventCoordinates(event);
|
|
66
|
+
|
|
67
|
+
// Use requestAnimationFrame for UI optimization
|
|
68
|
+
requestAnimationFrame(() => {
|
|
69
|
+
if (!gridContainer.value || !draggedWidget.value || !dragClone.value) return;
|
|
70
|
+
|
|
71
|
+
const rect = gridContainer.value.getBoundingClientRect();
|
|
72
|
+
const cellSize = calculateCellSize();
|
|
73
|
+
|
|
74
|
+
// Update the position of the clone relative to the initial mouse position
|
|
75
|
+
const { deltaX, deltaY } = {
|
|
76
|
+
deltaX: coords.clientX - initialPosition.value.clientX,
|
|
77
|
+
deltaY: coords.clientY - initialPosition.value.clientY,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
updateDragClonePosition(deltaX, deltaY);
|
|
81
|
+
|
|
82
|
+
// Calculate the scroll offset of the container
|
|
83
|
+
const scrollOffset = {
|
|
84
|
+
left: gridContainer.value.scrollLeft,
|
|
85
|
+
top: gridContainer.value.scrollTop,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// Convert mouse coordinates to grid coordinates
|
|
89
|
+
const { gridX, gridY } = mouseToGridCoordinates(coords, rect, cellSize, scrollOffset);
|
|
90
|
+
|
|
91
|
+
// Constrain the position to the grid boundaries
|
|
92
|
+
const constrainedPosition = constrainToGrid(
|
|
93
|
+
gridX,
|
|
94
|
+
gridY,
|
|
95
|
+
draggedWidget.value.size.width,
|
|
96
|
+
draggedWidget.value.size.height,
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
// Update the preview position only if it has changed
|
|
100
|
+
if (
|
|
101
|
+
!previewPosition.value ||
|
|
102
|
+
previewPosition.value.x !== constrainedPosition.gridX ||
|
|
103
|
+
previewPosition.value.y !== constrainedPosition.gridY
|
|
104
|
+
) {
|
|
105
|
+
const newPosition = {
|
|
106
|
+
x: constrainedPosition.gridX,
|
|
107
|
+
y: constrainedPosition.gridY,
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
updatePreviewPosition(newPosition);
|
|
111
|
+
|
|
112
|
+
// Recalculate displaced widgets when the position changes
|
|
113
|
+
updateDisplacedWidgets(draggedWidget.value, newPosition, widgets.value, new Map(dashboard.getLayout()));
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// Mouse move event handler
|
|
119
|
+
const handleMouseMove = (event: MouseEvent) => {
|
|
120
|
+
if (!isDragging.value || !draggedWidget.value || !gridContainer.value || !dragClone.value) return;
|
|
121
|
+
updateDragPosition(event);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// Touch move event handler
|
|
125
|
+
const handleTouchMove = (event: TouchEvent) => {
|
|
126
|
+
if (!isDragging.value || !draggedWidget.value || !gridContainer.value || !dragClone.value) return;
|
|
127
|
+
|
|
128
|
+
// Prevent page scrolling during dragging
|
|
129
|
+
event.preventDefault();
|
|
130
|
+
|
|
131
|
+
updateDragPosition(event);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// Mouse up event handler
|
|
135
|
+
const handleMouseUp = () => {
|
|
136
|
+
finishDrag();
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const handleTouchEnd = () => {
|
|
140
|
+
finishDrag();
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// Common function for finishing the dragging
|
|
144
|
+
const finishDrag = () => {
|
|
145
|
+
if (!isDragging.value || !draggedWidget.value || !previewPosition.value) return;
|
|
146
|
+
|
|
147
|
+
// Get the necessary data
|
|
148
|
+
const draggedWidgetId = draggedWidget.value.id;
|
|
149
|
+
const finalPosition = previewPosition.value;
|
|
150
|
+
|
|
151
|
+
// When there is a clone, finish the dragging smoothly
|
|
152
|
+
if (dragClone.value) {
|
|
153
|
+
// Get the DOM element of the original widget
|
|
154
|
+
const originalWidget = document.querySelector(`.dashboard-widget[data-id="${draggedWidgetId}"]`) as HTMLElement;
|
|
155
|
+
|
|
156
|
+
if (originalWidget) {
|
|
157
|
+
const cellSize = calculateCellSize();
|
|
158
|
+
const widgetGap = 20; // Widget gap in pixels
|
|
159
|
+
|
|
160
|
+
// Get the current position of the clone (where the user released the mouse)
|
|
161
|
+
const cloneRect = dragClone.value.getBoundingClientRect();
|
|
162
|
+
|
|
163
|
+
// Get the page scroll
|
|
164
|
+
const scrollX = window.scrollX || window.pageXOffset;
|
|
165
|
+
const scrollY = window.scrollY || window.pageYOffset;
|
|
166
|
+
|
|
167
|
+
// Get the position of the grid container with the scroll
|
|
168
|
+
const gridRect = gridContainer.value!.getBoundingClientRect();
|
|
169
|
+
const gridScrollLeft = gridContainer.value!.scrollLeft;
|
|
170
|
+
const gridScrollTop = gridContainer.value!.scrollTop;
|
|
171
|
+
|
|
172
|
+
// Calculate the relative position of the clone inside the container with all scrolls
|
|
173
|
+
const relX = cloneRect.left + scrollX - (gridRect.left + scrollX) + gridScrollLeft;
|
|
174
|
+
const relY = cloneRect.top + scrollY - (gridRect.top + scrollY) + gridScrollTop;
|
|
175
|
+
|
|
176
|
+
// Calculate the final coordinates, where the widget should be moved
|
|
177
|
+
const finalX = finalPosition.x * cellSize.cellWidth + widgetGap / 2;
|
|
178
|
+
const finalY = finalPosition.y * cellSize.cellHeight + widgetGap / 2;
|
|
179
|
+
|
|
180
|
+
// First, move the original widget exactly to the clone position
|
|
181
|
+
originalWidget.style.transition = "none";
|
|
182
|
+
originalWidget.style.transform = `translate(${relX}px, ${relY}px)`;
|
|
183
|
+
originalWidget.style.opacity = "1";
|
|
184
|
+
originalWidget.style.zIndex = "1000";
|
|
185
|
+
|
|
186
|
+
// Remove the clone immediately, as the original is in its place
|
|
187
|
+
removeDragClone();
|
|
188
|
+
|
|
189
|
+
// Force reflow for applying styles
|
|
190
|
+
originalWidget.offsetHeight; // eslint-disable-line
|
|
191
|
+
|
|
192
|
+
// Update the position in the data store
|
|
193
|
+
updateWidgetPosition(draggedWidgetId, finalPosition);
|
|
194
|
+
|
|
195
|
+
// Update the positions of all displaced widgets
|
|
196
|
+
for (const [widgetId, position] of displacedWidgets.value.entries()) {
|
|
197
|
+
updateWidgetPosition(widgetId, position);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Now smoothly animate the widget to its final position
|
|
201
|
+
setTimeout(() => {
|
|
202
|
+
originalWidget.style.transition = `transform var(--dashboard-transition-duration) var(--dashboard-transition-timing)`;
|
|
203
|
+
originalWidget.style.transform = `translate(${finalX}px, ${finalY}px)`;
|
|
204
|
+
}, 20); // Small delay for correct style application
|
|
205
|
+
} else {
|
|
206
|
+
// If the original is not found, simply remove the clone and update the data
|
|
207
|
+
removeDragClone();
|
|
208
|
+
|
|
209
|
+
// Update the position in the data store
|
|
210
|
+
updateWidgetPosition(draggedWidgetId, finalPosition);
|
|
211
|
+
|
|
212
|
+
// Update the positions of all displaced widgets
|
|
213
|
+
for (const [widgetId, position] of displacedWidgets.value.entries()) {
|
|
214
|
+
updateWidgetPosition(widgetId, position);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
// If there is no clone, simply update the data
|
|
219
|
+
updateWidgetPosition(draggedWidgetId, finalPosition);
|
|
220
|
+
|
|
221
|
+
// Update the positions of all displaced widgets
|
|
222
|
+
for (const [widgetId, position] of displacedWidgets.value.entries()) {
|
|
223
|
+
updateWidgetPosition(widgetId, position);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Remove event handlers
|
|
228
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
229
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
230
|
+
document.removeEventListener("touchmove", handleTouchMove, { passive: false } as EventListenerOptions);
|
|
231
|
+
document.removeEventListener("touchend", handleTouchEnd);
|
|
232
|
+
document.removeEventListener("touchcancel", handleTouchEnd);
|
|
233
|
+
|
|
234
|
+
// Reset the state with a delay, so the animation has time to finish
|
|
235
|
+
setTimeout(() => {
|
|
236
|
+
isDragging.value = false;
|
|
237
|
+
draggedWidget.value = null;
|
|
238
|
+
resetPosition();
|
|
239
|
+
}, 50);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// Mouse/touch event handler with passive listeners
|
|
243
|
+
const handleMouseDown = (event: MouseEvent | TouchEvent, widget: IDashboardWidget, element: HTMLElement) => {
|
|
244
|
+
if (!gridContainer.value) return;
|
|
245
|
+
|
|
246
|
+
// Check the event type
|
|
247
|
+
if ("touches" in event) {
|
|
248
|
+
isTouchDevice.value = true;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Use preventDefault only for mouse events, for touch events use passive: false
|
|
252
|
+
if (!isTouchDevice.value) {
|
|
253
|
+
event.preventDefault();
|
|
254
|
+
}
|
|
255
|
+
event.stopPropagation();
|
|
256
|
+
|
|
257
|
+
// Save the initial position for determining the dragging
|
|
258
|
+
saveInitialPosition(event);
|
|
259
|
+
let hasDragStarted = false;
|
|
260
|
+
|
|
261
|
+
// Find the parent widget element
|
|
262
|
+
const widgetElement = element.closest(".dashboard-widget") as HTMLElement;
|
|
263
|
+
if (!widgetElement) return;
|
|
264
|
+
|
|
265
|
+
const cellSize = calculateCellSize();
|
|
266
|
+
|
|
267
|
+
// Temporary handler for movement to determine the start of dragging
|
|
268
|
+
const tempMoveHandler = (moveEvent: MouseEvent | TouchEvent) => {
|
|
269
|
+
if (hasDragStarted) return;
|
|
270
|
+
|
|
271
|
+
const currentCoords = getEventCoordinates(moveEvent);
|
|
272
|
+
|
|
273
|
+
// Start dragging only if the mouse has moved more than 3 pixels
|
|
274
|
+
if (hasMovedBeyondThreshold(currentCoords, 3)) {
|
|
275
|
+
hasDragStarted = true;
|
|
276
|
+
isDragging.value = true;
|
|
277
|
+
draggedWidget.value = widget;
|
|
278
|
+
|
|
279
|
+
// Calculate the drag offset
|
|
280
|
+
calculateDragOffset(event, widgetElement, cellSize);
|
|
281
|
+
|
|
282
|
+
// Create a clone for dragging
|
|
283
|
+
createDragClone(element);
|
|
284
|
+
|
|
285
|
+
// Remove temporary handlers
|
|
286
|
+
document.removeEventListener("mousemove", tempMoveHandler);
|
|
287
|
+
document.removeEventListener("touchmove", tempMoveHandler);
|
|
288
|
+
document.removeEventListener("mouseup", tempUpHandler);
|
|
289
|
+
document.removeEventListener("touchend", tempUpHandler);
|
|
290
|
+
|
|
291
|
+
// Add the dragging handlers
|
|
292
|
+
if (isTouchDevice.value) {
|
|
293
|
+
document.addEventListener("touchmove", handleTouchMove, { passive: false } as EventListenerOptions);
|
|
294
|
+
document.addEventListener("touchend", handleTouchEnd);
|
|
295
|
+
document.addEventListener("touchcancel", handleTouchEnd);
|
|
296
|
+
} else {
|
|
297
|
+
document.addEventListener("mousemove", handleMouseMove, { passive: true });
|
|
298
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
// Temporary handler for releasing to cancel the determination of dragging
|
|
304
|
+
const tempUpHandler = () => {
|
|
305
|
+
if (!hasDragStarted) {
|
|
306
|
+
document.removeEventListener("mousemove", tempMoveHandler);
|
|
307
|
+
document.removeEventListener("touchmove", tempMoveHandler);
|
|
308
|
+
document.removeEventListener("mouseup", tempUpHandler);
|
|
309
|
+
document.removeEventListener("touchend", tempUpHandler);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// Add temporary handlers for determining the start of dragging
|
|
314
|
+
if (isTouchDevice.value) {
|
|
315
|
+
document.addEventListener("touchmove", tempMoveHandler, { passive: true });
|
|
316
|
+
document.addEventListener("touchend", tempUpHandler);
|
|
317
|
+
} else {
|
|
318
|
+
document.addEventListener("mousemove", tempMoveHandler, { passive: true });
|
|
319
|
+
document.addEventListener("mouseup", tempUpHandler);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const setGridContainer = (container: HTMLElement) => {
|
|
324
|
+
gridContainer.value = container;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// Clear event handlers when the component is unmounted
|
|
328
|
+
onUnmounted(() => {
|
|
329
|
+
finishDrag();
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
return {
|
|
333
|
+
draggedWidget,
|
|
334
|
+
previewPosition,
|
|
335
|
+
displacedWidgets,
|
|
336
|
+
isDragging,
|
|
337
|
+
handleMouseDown, // Now handles both mouse and touch events
|
|
338
|
+
setGridContainer,
|
|
339
|
+
isWidgetDisplaced,
|
|
340
|
+
getDisplacedPosition,
|
|
341
|
+
};
|
|
342
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import type { IDashboardWidget, DashboardWidgetPosition } from "../types";
|
|
3
|
+
import { useDashboard } from "../../../../core/composables/useDashboard";
|
|
4
|
+
import { useLayoutPersistence } from "./useLayoutPersistence";
|
|
5
|
+
import { useGridSystem } from "./useGridSystem";
|
|
6
|
+
import { useWidgetLayout } from "./useWidgetLayout";
|
|
7
|
+
|
|
8
|
+
// LocalStorage key for dashboard layout
|
|
9
|
+
const DASHBOARD_LAYOUT_KEY = "vc-dashboard-layout";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Main composable for managing the dashboard
|
|
13
|
+
*
|
|
14
|
+
* Combines functionality for working with the grid, widget placement, and layout persistence
|
|
15
|
+
*
|
|
16
|
+
* @returns An object with functions for working with the dashboard
|
|
17
|
+
*/
|
|
18
|
+
export function useDashboardGrid() {
|
|
19
|
+
// Dashboard service
|
|
20
|
+
const dashboard = useDashboard();
|
|
21
|
+
|
|
22
|
+
// Reactive properties of widgets and layout
|
|
23
|
+
const widgets = computed(() => dashboard.getWidgets());
|
|
24
|
+
const layout = computed(() => dashboard.getLayout());
|
|
25
|
+
|
|
26
|
+
// Initialize subsystems
|
|
27
|
+
const grid = useGridSystem();
|
|
28
|
+
|
|
29
|
+
const widgetLayout = useWidgetLayout(dashboard.updateWidgetPosition);
|
|
30
|
+
|
|
31
|
+
// Hook for working with localStorage
|
|
32
|
+
const persistence = useLayoutPersistence(DASHBOARD_LAYOUT_KEY, dashboard.updateWidgetPosition);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets the current number of rows in the grid
|
|
36
|
+
*/
|
|
37
|
+
const getGridRows = (): number => {
|
|
38
|
+
return grid.updateGridRows(widgets.value, layout.value);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Saves the current layout to localStorage
|
|
43
|
+
*/
|
|
44
|
+
const saveLayoutToLocalStorage = (): void => {
|
|
45
|
+
persistence.saveLayout(layout.value);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Loads the layout from localStorage
|
|
50
|
+
*
|
|
51
|
+
* @returns true if the layout was successfully loaded
|
|
52
|
+
*/
|
|
53
|
+
const loadLayoutFromLocalStorage = (): boolean => {
|
|
54
|
+
return persistence.loadLayout(widgets.value);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Arranges widgets in rows
|
|
59
|
+
*
|
|
60
|
+
* @param widgetsToArrange An array of widgets to arrange
|
|
61
|
+
*/
|
|
62
|
+
const arrangeWidgetsInRows = (widgetsToArrange: IDashboardWidget[]): void => {
|
|
63
|
+
widgetLayout.arrangeWidgetsInRows(widgetsToArrange, widgets.value, layout.value);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Initializes widgets with their built-in positions
|
|
68
|
+
*
|
|
69
|
+
* @returns true if at least one widget had a built-in position
|
|
70
|
+
*/
|
|
71
|
+
const initializeWithBuiltInPositions = (): boolean => {
|
|
72
|
+
return widgetLayout.initializeWithBuiltInPositions(widgets.value, layout.value);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Initializes the initial positions of widgets
|
|
77
|
+
*/
|
|
78
|
+
const initializeLayout = (): void => {
|
|
79
|
+
// Priority 1: Loading from localStorage
|
|
80
|
+
const layoutLoadedFromStorage = loadLayoutFromLocalStorage();
|
|
81
|
+
|
|
82
|
+
// Priority 2: Using built-in widget positions
|
|
83
|
+
if (!layoutLoadedFromStorage) {
|
|
84
|
+
const usedBuiltInPositions = initializeWithBuiltInPositions();
|
|
85
|
+
|
|
86
|
+
// Priority 3: Standard initialization
|
|
87
|
+
if (!usedBuiltInPositions) {
|
|
88
|
+
arrangeWidgetsInRows(widgets.value);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
widgets,
|
|
95
|
+
layout,
|
|
96
|
+
GRID_COLUMNS: grid.GRID_COLUMNS,
|
|
97
|
+
getGridRows,
|
|
98
|
+
saveLayoutToLocalStorage,
|
|
99
|
+
loadLayoutFromLocalStorage,
|
|
100
|
+
arrangeWidgetsInRows,
|
|
101
|
+
initializeWithBuiltInPositions,
|
|
102
|
+
initializeLayout,
|
|
103
|
+
};
|
|
104
|
+
}
|