@vc-shell/framework 1.2.4-beta.3 → 1.2.4-beta.4
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/core/plugins/modularity/loader.ts +121 -57
- package/dist/core/composables/index.d.ts +24 -24
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts +1 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts +1 -1
- package/dist/core/composables/useAssets/index.d.ts +1 -1
- package/dist/core/composables/useAsync/index.d.ts +1 -1
- package/dist/core/composables/useBlade/index.d.ts +2 -2
- package/dist/core/composables/useBladeRegistry/index.d.ts +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
- package/dist/core/composables/useDashboard/index.d.ts +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +1 -1
- package/dist/core/composables/useFunctions/index.d.ts +4 -4
- package/dist/core/composables/useGlobalSearch/index.d.ts +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +1 -1
- package/dist/core/composables/useMenuService/index.d.ts +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +2 -2
- package/dist/core/composables/useUser/index.d.ts +2 -2
- package/dist/core/composables/useUserManagement/index.d.ts +2 -2
- package/dist/core/composables/useWidgets/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +3 -3
- package/dist/core/directives/index.d.ts +2 -2
- package/dist/core/plugins/ai-agent/components/index.d.ts +1 -1
- package/dist/core/plugins/ai-agent/composables/index.d.ts +3 -3
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +2 -2
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts +1 -1
- package/dist/core/plugins/ai-agent/constants.d.ts +1 -1
- package/dist/core/plugins/ai-agent/index.d.ts +9 -9
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +1 -1
- package/dist/core/plugins/extension-points/ExtensionPoint.vue.d.ts +1 -1
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts +1 -1
- package/dist/core/plugins/extension-points/index.d.ts +4 -4
- package/dist/core/plugins/extension-points/store.d.ts +1 -1
- package/dist/core/plugins/extension-points/useExtensionPoint.d.ts +1 -1
- package/dist/core/plugins/index.d.ts +7 -7
- package/dist/core/plugins/modularity/index.d.ts +2 -2
- package/dist/core/plugins/modularity/loader.d.ts +1 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/core/plugins/moment/index.d.ts +1 -1
- package/dist/core/plugins/validation/index.d.ts +1 -1
- package/dist/core/services/_internal/index.d.ts +3 -3
- package/dist/core/services/app-bar-menu-service.d.ts +1 -1
- package/dist/core/services/dashboard-service.d.ts +1 -1
- package/dist/core/services/index.d.ts +9 -9
- package/dist/core/services/menu-service.d.ts +2 -2
- package/dist/core/services/settings-menu-service.d.ts +1 -1
- package/dist/core/services/toolbar-service.d.ts +2 -2
- package/dist/core/services/widget-service.d.ts +2 -2
- package/dist/core/types/index.d.ts +3 -3
- package/dist/core/utilities/index.d.ts +6 -6
- package/dist/framework.js +13076 -12647
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/injection-keys.d.ts +6 -6
- package/dist/locales/de.json +4 -4
- package/dist/locales/en.json +5 -5
- package/dist/shared/components/app-switcher/components/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-slot/index.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +3 -3
- package/dist/shared/components/blade-navigation/composables/index.d.ts +5 -5
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigationAdapter.d.ts +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts +2 -2
- package/dist/shared/components/blade-navigation/index.d.ts +4 -4
- package/dist/shared/components/blade-navigation/plugin-v2.d.ts +4 -4
- package/dist/shared/components/blade-navigation/types/index.d.ts +4 -4
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts +2 -2
- package/dist/shared/components/blade-navigation/utils/urlSync.d.ts +1 -1
- package/dist/shared/components/change-password/index.d.ts +1 -1
- package/dist/shared/components/change-password-button/index.d.ts +1 -1
- package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts +16 -0
- package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts +7 -0
- package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts +12 -0
- package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts +34 -0
- package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts +28 -0
- package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts +34 -0
- package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/chart-utils.d.ts +29 -0
- package/dist/shared/components/dashboard-charts/chart-utils.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/index.d.ts +8 -0
- package/dist/shared/components/dashboard-charts/index.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/types.d.ts +7 -0
- package/dist/shared/components/dashboard-charts/types.d.ts.map +1 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts +4 -4
- package/dist/shared/components/draggable-dashboard/composables/useGridstack.d.ts +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useGridstackAdapter.d.ts +1 -1
- package/dist/shared/components/draggable-dashboard/index.d.ts +5 -5
- package/dist/shared/components/error-interceptor/index.d.ts +2 -2
- package/dist/shared/components/index.d.ts +19 -18
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +1 -1
- package/dist/shared/components/logout-button/index.d.ts +1 -1
- package/dist/shared/components/multilanguage-selector/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +2 -2
- package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
- package/dist/shared/components/notification-template/index.d.ts +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/index.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
- package/dist/shared/components/notifications/composables/index.d.ts +2 -2
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts +1 -1
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts +1 -1
- package/dist/shared/components/notifications/core/index.d.ts +1 -1
- package/dist/shared/components/notifications/core/notification.d.ts +2 -2
- package/dist/shared/components/notifications/index.d.ts +4 -4
- package/dist/shared/components/popup-handler/components/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/composables/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +3 -3
- package/dist/shared/components/popup-handler/index.d.ts +7 -7
- package/dist/shared/components/popup-handler/keys.d.ts +1 -1
- package/dist/shared/components/popup-handler/plugin.d.ts +1 -1
- package/dist/shared/components/popup-handler/types/index.d.ts +1 -1
- package/dist/shared/components/settings-menu/index.d.ts +1 -1
- package/dist/shared/components/settings-menu-item/index.d.ts +1 -1
- package/dist/shared/components/sidebar/index.d.ts +3 -3
- package/dist/shared/components/sign-in/external-providers.vue.d.ts +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/index.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/theme-selector/index.d.ts +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts +1 -1
- package/dist/shared/components/user-dropdown-button/index.d.ts +1 -1
- package/dist/shared/composables/index.d.ts +5 -5
- package/dist/shared/index.d.ts +5 -5
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +1 -1
- package/dist/shared/modules/assets/components/index.d.ts +1 -1
- package/dist/shared/modules/assets/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +16 -16
- package/dist/shared/modules/dynamic/components/factories.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/composables/index.d.ts +4 -4
- package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +6 -6
- package/dist/shared/modules/dynamic/helpers/methodHandler.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +2 -2
- package/dist/shared/modules/dynamic/helpers/override.d.ts +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +5 -5
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +10 -10
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +15 -15
- package/dist/shared/modules/dynamic/pages/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/types/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/types/models.d.ts +1 -1
- package/dist/shared/modules/index.d.ts +3 -3
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ChangePasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/components/forgot-password/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/index.d.ts +5 -5
- package/dist/shared/pages/plugin.d.ts +5 -5
- package/dist/shared/utilities/index.d.ts +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +21 -21
- package/dist/ui/components/atoms/vc-badge/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-banner/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-button/vc-button-group.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-card/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/composables/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/composables/use-icon-type.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/composables/use-icon.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-scrollable-container/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-skeleton/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-tooltip/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-video/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/index.d.ts +3 -3
- package/dist/ui/components/molecules/index.d.ts +27 -27
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +4 -4
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-color-input/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-date-picker/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-field/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-group/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/composables/index.d.ts +6 -6
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueInput.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueValues.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-paginator/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-group/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-rating/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts +7 -7
- package/dist/ui/components/molecules/vc-select/composables/useSelectDropdown.d.ts +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-slider/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts +1 -1
- package/dist/ui/components/organisms/index.d.ts +8 -8
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts +1 -4
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts +2 -8
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/composables/useBadge.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +2 -0
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/composables/useShellNavigation.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/composition/app-bar/index.d.ts +6 -6
- package/dist/ui/components/organisms/vc-app/composition/index.d.ts +6 -6
- package/dist/ui/components/organisms/vc-app/composition/layouts/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/composition/shell/index.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/composition/sidebar/index.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/composition/state/index.d.ts +4 -4
- package/dist/ui/components/organisms/vc-app/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-auth-layout/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarCircleButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/constants.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/utils.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-sidebar/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/VcTableAdapter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +2 -2
- 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/base/BaseVcDataTable.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableBody.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableHeader.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/cells/index.d.ts +11 -11
- package/dist/ui/components/organisms/vc-table/components/index.d.ts +26 -26
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/index.d.ts +5 -5
- package/dist/ui/components/organisms/vc-table/composables/index.d.ts +30 -30
- package/dist/ui/components/organisms/vc-table/composables/useColumnFilter.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataProcessing.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts +4 -4
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableColumns.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSort.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +9 -9
- package/dist/ui/components/organisms/vc-table/keys.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/types.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/utils/ColumnCollector.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/utils/index.d.ts +3 -3
- package/dist/ui/composables/index.d.ts +5 -5
- package/dist/ui/composables/useFormField.d.ts +2 -2
- package/dist/ui/types/index.d.ts +1 -1
- package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
- package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
- package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
- package/dist/vendor-d3-chord-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
- package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
- package/dist/vendor-d3-drag-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
- package/dist/vendor-d3-force-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
- package/dist/vendor-d3-geo-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-geo-projection-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-hierarchy-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
- package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
- package/dist/vendor-d3-path-DJOTitNW.js +64 -0
- package/dist/vendor-d3-quadtree-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-sankey-l0sNRNKZ.js +1 -0
- package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
- package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
- package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
- package/dist/vendor-d3-time-DAPP210_.js +212 -0
- package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
- package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
- package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
- package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
- package/dist/vendor-elkjs-l0sNRNKZ.js +1 -0
- package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
- package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
- package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
- package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
- package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
- package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
- package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
- package/dist/vendor-emotion-weak-memoize-l0sNRNKZ.js +1 -0
- package/dist/vendor-internmap-Q5729_cS.js +35 -0
- package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
- package/dist/vendor-kdbush-l0sNRNKZ.js +1 -0
- package/dist/vendor-leaflet-l0sNRNKZ.js +1 -0
- package/dist/vendor-lodash-l0sNRNKZ.js +1 -0
- package/dist/vendor-maplibre-gl-l0sNRNKZ.js +1 -0
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1 -1
- package/dist/vendor-striptags-BrHtQQiF.js +120 -0
- package/dist/vendor-stylis-ClfDrgKE.js +334 -0
- package/dist/vendor-supercluster-l0sNRNKZ.js +1 -0
- package/dist/vendor-three-l0sNRNKZ.js +1 -0
- package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
- package/dist/vendor-topojson-client-l0sNRNKZ.js +1 -0
- package/dist/vendor-tslib-l0sNRNKZ.js +1 -0
- package/dist/vendor-unovis-dagre-layout-l0sNRNKZ.js +1 -0
- package/dist/vendor-unovis-graphlibrary-l0sNRNKZ.js +1 -0
- package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
- package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
- package/package.json +6 -4
- package/shared/components/dashboard-charts/ChartContainer.vue +54 -0
- package/shared/components/dashboard-charts/ChartLegend.vue +40 -0
- package/shared/components/dashboard-charts/ChartTooltip.vue +43 -0
- package/shared/components/dashboard-charts/DashboardBarChart.vue +165 -0
- package/shared/components/dashboard-charts/DashboardDonutChart.vue +137 -0
- package/shared/components/dashboard-charts/DashboardLineChart.vue +170 -0
- package/shared/components/dashboard-charts/chart-theme.scss +19 -0
- package/shared/components/dashboard-charts/chart-tooltip.scss +48 -0
- package/shared/components/dashboard-charts/chart-utils.ts +189 -0
- package/shared/components/dashboard-charts/dashboard-charts.stories.ts +393 -0
- package/shared/components/dashboard-charts/index.ts +7 -0
- package/shared/components/dashboard-charts/types.ts +7 -0
- package/shared/components/index.ts +1 -0
- package/shared/components/sign-in/external-providers.vue +1 -1
- package/shared/pages/LoginPage/components/login/Login.vue +29 -31
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +2 -4
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +3 -3
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +1 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +2 -2
- package/ui/components/molecules/vc-select/vc-select.vue +1 -1
- package/ui/components/molecules/vc-slider/vc-slider.vue +1 -1
- package/ui/components/molecules/vc-switch/vc-switch.vue +2 -2
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +8 -2
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.ts +2 -23
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue +135 -194
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.ts +0 -44
- package/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue +1 -0
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue +181 -164
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.ts +114 -106
- package/ui/components/organisms/vc-app/vc-app-shell.stories.ts +96 -37
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import type { ChartConfig } from "./types";
|
|
2
|
+
|
|
3
|
+
export type ChartRangeValue = number | string | Date;
|
|
4
|
+
|
|
5
|
+
export interface ChartTooltipItem {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
color: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface BuildChartTooltipOptions {
|
|
12
|
+
title?: string;
|
|
13
|
+
items: ChartTooltipItem[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ResolveSeriesMetaOptions {
|
|
17
|
+
config: ChartConfig;
|
|
18
|
+
key?: string;
|
|
19
|
+
index?: number;
|
|
20
|
+
fallbackLabel?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const DEFAULT_COLOR = "var(--primary-500)";
|
|
24
|
+
const FALLBACK_TEXT = "-";
|
|
25
|
+
|
|
26
|
+
const escapeMap: Record<string, string> = {
|
|
27
|
+
"&": "&",
|
|
28
|
+
"<": "<",
|
|
29
|
+
">": ">",
|
|
30
|
+
"\"": """,
|
|
31
|
+
"'": "'",
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const escapeHtml = (value: string | number | null | undefined): string => {
|
|
35
|
+
if (value === null || value === undefined) {
|
|
36
|
+
return "";
|
|
37
|
+
}
|
|
38
|
+
return String(value).replace(/[&<>"']/g, (char) => escapeMap[char] ?? char);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const normalizeRangeValue = (value: unknown): number | undefined => {
|
|
42
|
+
if (value instanceof Date) {
|
|
43
|
+
const timestamp = value.getTime();
|
|
44
|
+
return Number.isFinite(timestamp) ? timestamp : undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (typeof value === "number") {
|
|
48
|
+
return Number.isFinite(value) ? value : undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (typeof value === "string") {
|
|
52
|
+
const numericValue = Number(value);
|
|
53
|
+
if (Number.isFinite(numericValue)) {
|
|
54
|
+
return numericValue;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const timestamp = Date.parse(value);
|
|
58
|
+
if (Number.isFinite(timestamp)) {
|
|
59
|
+
return timestamp;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const filterDataByRange = <T>(
|
|
67
|
+
data: T[],
|
|
68
|
+
accessor: (datum: T) => unknown,
|
|
69
|
+
rangeStart?: ChartRangeValue,
|
|
70
|
+
rangeEnd?: ChartRangeValue,
|
|
71
|
+
): T[] => {
|
|
72
|
+
const start = normalizeRangeValue(rangeStart);
|
|
73
|
+
const end = normalizeRangeValue(rangeEnd);
|
|
74
|
+
|
|
75
|
+
if (start === undefined && end === undefined) {
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const min = start !== undefined && end !== undefined ? Math.min(start, end) : start;
|
|
80
|
+
const max = start !== undefined && end !== undefined ? Math.max(start, end) : end;
|
|
81
|
+
|
|
82
|
+
return data.filter((datum) => {
|
|
83
|
+
const comparable = normalizeRangeValue(accessor(datum));
|
|
84
|
+
if (comparable === undefined) {
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (min !== undefined && comparable < min) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (max !== undefined && comparable > max) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return true;
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const formatAxisValue = (
|
|
101
|
+
value: unknown,
|
|
102
|
+
formatter?: (value: number | Date) => string,
|
|
103
|
+
): string => {
|
|
104
|
+
if (formatter) {
|
|
105
|
+
if (typeof value === "number" || value instanceof Date) {
|
|
106
|
+
return formatter(value);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const comparable = normalizeRangeValue(value);
|
|
110
|
+
if (comparable !== undefined) {
|
|
111
|
+
return formatter(comparable);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (value === null || value === undefined) {
|
|
116
|
+
return FALLBACK_TEXT;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return String(value);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const formatNumericValue = (
|
|
123
|
+
value: unknown,
|
|
124
|
+
formatter?: (value: number) => string,
|
|
125
|
+
): string => {
|
|
126
|
+
const numericValue = typeof value === "number" ? value : Number(value);
|
|
127
|
+
|
|
128
|
+
if (!Number.isFinite(numericValue)) {
|
|
129
|
+
return FALLBACK_TEXT;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (formatter) {
|
|
133
|
+
return formatter(numericValue);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return numericValue.toLocaleString();
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export const resolveSeriesMeta = ({
|
|
140
|
+
config,
|
|
141
|
+
key,
|
|
142
|
+
index,
|
|
143
|
+
fallbackLabel,
|
|
144
|
+
}: ResolveSeriesMetaOptions): { label: string; color: string } => {
|
|
145
|
+
const configKeys = Object.keys(config);
|
|
146
|
+
const keyItem = key ? config[key] : undefined;
|
|
147
|
+
const indexItem =
|
|
148
|
+
typeof index === "number" && Number.isFinite(index) && configKeys[index]
|
|
149
|
+
? config[configKeys[index]]
|
|
150
|
+
: undefined;
|
|
151
|
+
const item = keyItem ?? indexItem;
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
label: item?.label ?? fallbackLabel ?? key ?? "Series",
|
|
155
|
+
color: item?.color ?? DEFAULT_COLOR,
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export const buildChartTooltipHtml = ({
|
|
160
|
+
title,
|
|
161
|
+
items,
|
|
162
|
+
}: BuildChartTooltipOptions): string | undefined => {
|
|
163
|
+
if (!items.length) {
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const titleMarkup = title
|
|
168
|
+
? `<div class="dashboard-chart-tooltip__title">${escapeHtml(title)}</div>`
|
|
169
|
+
: "";
|
|
170
|
+
|
|
171
|
+
const itemsMarkup = items
|
|
172
|
+
.map(
|
|
173
|
+
(item) => `
|
|
174
|
+
<div class="dashboard-chart-tooltip__item">
|
|
175
|
+
<span class="dashboard-chart-tooltip__indicator" style="background: ${escapeHtml(item.color)}"></span>
|
|
176
|
+
<span class="dashboard-chart-tooltip__label">${escapeHtml(item.label)}</span>
|
|
177
|
+
<span class="dashboard-chart-tooltip__value">${escapeHtml(item.value)}</span>
|
|
178
|
+
</div>
|
|
179
|
+
`,
|
|
180
|
+
)
|
|
181
|
+
.join("");
|
|
182
|
+
|
|
183
|
+
return `
|
|
184
|
+
<div class="dashboard-chart-tooltip">
|
|
185
|
+
${titleMarkup}
|
|
186
|
+
<div class="dashboard-chart-tooltip__items">${itemsMarkup}</div>
|
|
187
|
+
</div>
|
|
188
|
+
`;
|
|
189
|
+
};
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { computed, ref } from "vue";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
3
|
+
import DashboardLineChart from "./DashboardLineChart.vue";
|
|
4
|
+
import DashboardBarChart from "./DashboardBarChart.vue";
|
|
5
|
+
import DashboardDonutChart from "./DashboardDonutChart.vue";
|
|
6
|
+
import DashboardWidgetCard from "@shared/components/dashboard-widget-card/dashboard-widget-card.vue";
|
|
7
|
+
import DashboardStatItem from "@shared/components/dashboard-widget-card/dashboard-stat-item.vue";
|
|
8
|
+
import type { ChartConfig } from "./types";
|
|
9
|
+
|
|
10
|
+
// --- Sample data ---
|
|
11
|
+
|
|
12
|
+
const revenueData = [
|
|
13
|
+
{ month: 0, revenue: 4200, orders: 120 },
|
|
14
|
+
{ month: 1, revenue: 5100, orders: 145 },
|
|
15
|
+
{ month: 2, revenue: 4800, orders: 132 },
|
|
16
|
+
{ month: 3, revenue: 6200, orders: 178 },
|
|
17
|
+
{ month: 4, revenue: 5900, orders: 165 },
|
|
18
|
+
{ month: 5, revenue: 7100, orders: 198 },
|
|
19
|
+
{ month: 6, revenue: 6800, orders: 184 },
|
|
20
|
+
{ month: 7, revenue: 7600, orders: 210 },
|
|
21
|
+
{ month: 8, revenue: 8200, orders: 221 },
|
|
22
|
+
{ month: 9, revenue: 7900, orders: 207 },
|
|
23
|
+
{ month: 10, revenue: 8600, orders: 236 },
|
|
24
|
+
{ month: 11, revenue: 9400, orders: 258 },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const monthLabels = [
|
|
28
|
+
"Jan",
|
|
29
|
+
"Feb",
|
|
30
|
+
"Mar",
|
|
31
|
+
"Apr",
|
|
32
|
+
"May",
|
|
33
|
+
"Jun",
|
|
34
|
+
"Jul",
|
|
35
|
+
"Aug",
|
|
36
|
+
"Sep",
|
|
37
|
+
"Oct",
|
|
38
|
+
"Nov",
|
|
39
|
+
"Dec",
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const salesByCategory = [
|
|
43
|
+
{ category: 0, electronics: 12000, clothing: 8500, home: 5200 },
|
|
44
|
+
{ category: 1, electronics: 14000, clothing: 9200, home: 6100 },
|
|
45
|
+
{ category: 2, electronics: 11000, clothing: 10500, home: 7300 },
|
|
46
|
+
{ category: 3, electronics: 15500, clothing: 8800, home: 5800 },
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
const categoryLabels = ["Q1", "Q2", "Q3", "Q4"];
|
|
50
|
+
|
|
51
|
+
const channelTrendData = [
|
|
52
|
+
{ month: 0, marketplace: 1600, direct: 1100, b2b: 700 },
|
|
53
|
+
{ month: 1, marketplace: 1700, direct: 1200, b2b: 760 },
|
|
54
|
+
{ month: 2, marketplace: 1650, direct: 1160, b2b: 740 },
|
|
55
|
+
{ month: 3, marketplace: 1950, direct: 1300, b2b: 820 },
|
|
56
|
+
{ month: 4, marketplace: 1860, direct: 1260, b2b: 790 },
|
|
57
|
+
{ month: 5, marketplace: 2100, direct: 1400, b2b: 910 },
|
|
58
|
+
{ month: 6, marketplace: 2020, direct: 1370, b2b: 880 },
|
|
59
|
+
{ month: 7, marketplace: 2260, direct: 1520, b2b: 990 },
|
|
60
|
+
{ month: 8, marketplace: 2340, direct: 1600, b2b: 1030 },
|
|
61
|
+
{ month: 9, marketplace: 2210, direct: 1540, b2b: 980 },
|
|
62
|
+
{ month: 10, marketplace: 2420, direct: 1660, b2b: 1090 },
|
|
63
|
+
{ month: 11, marketplace: 2580, direct: 1740, b2b: 1150 },
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
const statusData = [
|
|
67
|
+
{ label: "Published", value: 142 },
|
|
68
|
+
{ label: "Pending", value: 38 },
|
|
69
|
+
{ label: "Draft", value: 15 },
|
|
70
|
+
{ label: "Archived", value: 7 },
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
// --- Configs ---
|
|
74
|
+
|
|
75
|
+
const revenueConfig: ChartConfig = {
|
|
76
|
+
revenue: { label: "Revenue ($)", color: "var(--primary-500)" },
|
|
77
|
+
orders: { label: "Orders", color: "var(--success-500)" },
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const salesConfig: ChartConfig = {
|
|
81
|
+
electronics: { label: "Electronics", color: "var(--primary-500)" },
|
|
82
|
+
clothing: { label: "Clothing", color: "var(--success-500)" },
|
|
83
|
+
home: { label: "Home & Garden", color: "var(--warning-500)" },
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const channelTrendConfig: ChartConfig = {
|
|
87
|
+
marketplace: { label: "Marketplace", color: "var(--primary-500)" },
|
|
88
|
+
direct: { label: "Direct", color: "var(--success-500)" },
|
|
89
|
+
b2b: { label: "B2B", color: "var(--warning-500)" },
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const statusConfig: ChartConfig = {
|
|
93
|
+
published: { label: "Published", color: "var(--success-500)" },
|
|
94
|
+
pending: { label: "Pending", color: "var(--warning-500)" },
|
|
95
|
+
draft: { label: "Draft", color: "var(--primary-300)" },
|
|
96
|
+
archived: { label: "Archived", color: "var(--neutrals-400)" },
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const periodOptions = [
|
|
100
|
+
{ id: "3m", label: "3M", size: 3 },
|
|
101
|
+
{ id: "6m", label: "6M", size: 6 },
|
|
102
|
+
{ id: "12m", label: "12M", size: 12 },
|
|
103
|
+
{ id: "all", label: "ALL", size: null },
|
|
104
|
+
] as const;
|
|
105
|
+
|
|
106
|
+
type PeriodOption = (typeof periodOptions)[number]["id"];
|
|
107
|
+
|
|
108
|
+
// --- Stories ---
|
|
109
|
+
|
|
110
|
+
const meta = {
|
|
111
|
+
title: "Shared/DashboardCharts",
|
|
112
|
+
tags: ["autodocs"],
|
|
113
|
+
decorators: [
|
|
114
|
+
() => ({
|
|
115
|
+
template: `
|
|
116
|
+
<div class="tw-w-[600px] tw-p-6 tw-bg-[var(--neutrals-100)]">
|
|
117
|
+
<story />
|
|
118
|
+
</div>
|
|
119
|
+
`,
|
|
120
|
+
}),
|
|
121
|
+
],
|
|
122
|
+
parameters: {
|
|
123
|
+
docs: {
|
|
124
|
+
description: {
|
|
125
|
+
component:
|
|
126
|
+
"Dashboard chart components built on Unovis with hover tooltips and optional range filtering for time-based datasets.",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
} satisfies Meta;
|
|
131
|
+
|
|
132
|
+
export default meta;
|
|
133
|
+
type Story = StoryObj<typeof meta>;
|
|
134
|
+
|
|
135
|
+
/** Line chart showing revenue trend over time */
|
|
136
|
+
export const LineChart: Story = {
|
|
137
|
+
render: () => ({
|
|
138
|
+
components: { DashboardLineChart, DashboardWidgetCard, DashboardStatItem },
|
|
139
|
+
setup() {
|
|
140
|
+
return { revenueData, revenueConfig, monthLabels };
|
|
141
|
+
},
|
|
142
|
+
template: `
|
|
143
|
+
<DashboardWidgetCard header="Revenue Trend" icon="material-trending_up">
|
|
144
|
+
<template #stats>
|
|
145
|
+
<DashboardStatItem value="$83,800" label="Total revenue" />
|
|
146
|
+
<DashboardStatItem value="+18%" label="vs last period" variant="success" />
|
|
147
|
+
</template>
|
|
148
|
+
<template #content>
|
|
149
|
+
<div class="tw-px-4 tw-py-3" style="height: 400px;">
|
|
150
|
+
<DashboardLineChart
|
|
151
|
+
:data="revenueData"
|
|
152
|
+
:config="revenueConfig"
|
|
153
|
+
x-key="month"
|
|
154
|
+
:y-keys="['revenue']"
|
|
155
|
+
:x-tick-format="(v) => monthLabels[v] ?? v"
|
|
156
|
+
:y-tick-format="(v) => '$' + (v / 1000).toFixed(0) + 'k'"
|
|
157
|
+
:num-x-ticks="6"
|
|
158
|
+
/>
|
|
159
|
+
</div>
|
|
160
|
+
</template>
|
|
161
|
+
</DashboardWidgetCard>
|
|
162
|
+
`,
|
|
163
|
+
}),
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/** Multi-line chart with two data series */
|
|
167
|
+
export const MultiLineChart: Story = {
|
|
168
|
+
render: () => ({
|
|
169
|
+
components: { DashboardLineChart, DashboardWidgetCard },
|
|
170
|
+
setup() {
|
|
171
|
+
return { revenueData, revenueConfig, monthLabels };
|
|
172
|
+
},
|
|
173
|
+
template: `
|
|
174
|
+
<DashboardWidgetCard header="Revenue & Orders" icon="material-analytics">
|
|
175
|
+
<template #content>
|
|
176
|
+
<div class="tw-px-4 tw-py-3" style="height: 400px;">
|
|
177
|
+
<DashboardLineChart
|
|
178
|
+
:data="revenueData"
|
|
179
|
+
:config="revenueConfig"
|
|
180
|
+
x-key="month"
|
|
181
|
+
:y-keys="['revenue', 'orders']"
|
|
182
|
+
:x-tick-format="(v) => monthLabels[v] ?? v"
|
|
183
|
+
:num-x-ticks="6"
|
|
184
|
+
/>
|
|
185
|
+
</div>
|
|
186
|
+
</template>
|
|
187
|
+
</DashboardWidgetCard>
|
|
188
|
+
`,
|
|
189
|
+
}),
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/** Grouped bar chart showing quarterly sales by category */
|
|
193
|
+
export const BarChart: Story = {
|
|
194
|
+
render: () => ({
|
|
195
|
+
components: { DashboardBarChart, DashboardWidgetCard },
|
|
196
|
+
setup() {
|
|
197
|
+
return { salesByCategory, salesConfig, categoryLabels };
|
|
198
|
+
},
|
|
199
|
+
template: `
|
|
200
|
+
<DashboardWidgetCard header="Sales by Category" icon="material-bar_chart">
|
|
201
|
+
<template #content>
|
|
202
|
+
<div class="tw-px-4 tw-py-3" style="height: 400px;">
|
|
203
|
+
<DashboardBarChart
|
|
204
|
+
:data="salesByCategory"
|
|
205
|
+
:config="salesConfig"
|
|
206
|
+
x-key="category"
|
|
207
|
+
:y-keys="['electronics', 'clothing', 'home']"
|
|
208
|
+
:x-tick-format="(v) => categoryLabels[v] ?? v"
|
|
209
|
+
:y-tick-format="(v) => '$' + (v / 1000).toFixed(0) + 'k'"
|
|
210
|
+
/>
|
|
211
|
+
</div>
|
|
212
|
+
</template>
|
|
213
|
+
</DashboardWidgetCard>
|
|
214
|
+
`,
|
|
215
|
+
}),
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
/** Donut chart showing product status distribution */
|
|
219
|
+
export const DonutChart: Story = {
|
|
220
|
+
render: () => ({
|
|
221
|
+
components: { DashboardDonutChart, DashboardWidgetCard, DashboardStatItem },
|
|
222
|
+
setup() {
|
|
223
|
+
const total = statusData.reduce((sum, d) => sum + d.value, 0);
|
|
224
|
+
return { statusData, statusConfig, total };
|
|
225
|
+
},
|
|
226
|
+
template: `
|
|
227
|
+
<DashboardWidgetCard header="Product Status" icon="lucide-package-open">
|
|
228
|
+
<template #stats>
|
|
229
|
+
<DashboardStatItem :value="total" label="Total products" />
|
|
230
|
+
</template>
|
|
231
|
+
<template #content>
|
|
232
|
+
<div class="tw-px-4 tw-py-3" style="height: 400px;">
|
|
233
|
+
<DashboardDonutChart
|
|
234
|
+
:data="statusData"
|
|
235
|
+
:config="statusConfig"
|
|
236
|
+
value-key="value"
|
|
237
|
+
:central-label="String(total)"
|
|
238
|
+
central-sub-label="Products"
|
|
239
|
+
/>
|
|
240
|
+
</div>
|
|
241
|
+
</template>
|
|
242
|
+
</DashboardWidgetCard>
|
|
243
|
+
`,
|
|
244
|
+
}),
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/** Compact donut without legend — for small widgets */
|
|
248
|
+
export const DonutCompact: Story = {
|
|
249
|
+
render: () => ({
|
|
250
|
+
components: { DashboardDonutChart },
|
|
251
|
+
setup() {
|
|
252
|
+
return { statusData, statusConfig };
|
|
253
|
+
},
|
|
254
|
+
template: `
|
|
255
|
+
<div style="width: 200px; height: 400px;">
|
|
256
|
+
<DashboardDonutChart
|
|
257
|
+
:data="statusData"
|
|
258
|
+
:config="statusConfig"
|
|
259
|
+
value-key="value"
|
|
260
|
+
:show-legend="false"
|
|
261
|
+
:show-tooltip="false"
|
|
262
|
+
:arc-width="40"
|
|
263
|
+
/>
|
|
264
|
+
</div>
|
|
265
|
+
`,
|
|
266
|
+
}),
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
/** Interactive example: hover tooltips + selectable period */
|
|
270
|
+
export const InteractiveRangeAndTooltips: Story = {
|
|
271
|
+
render: () => ({
|
|
272
|
+
components: { DashboardLineChart, DashboardBarChart, DashboardDonutChart, DashboardWidgetCard },
|
|
273
|
+
setup() {
|
|
274
|
+
const selectedPeriod = ref<PeriodOption>("6m");
|
|
275
|
+
const tooltipEnabled = ref(true);
|
|
276
|
+
|
|
277
|
+
const maxMonth = computed(() => revenueData[revenueData.length - 1]?.month ?? 0);
|
|
278
|
+
|
|
279
|
+
const rangeStart = computed(() => {
|
|
280
|
+
const option = periodOptions.find(({ id }) => id === selectedPeriod.value);
|
|
281
|
+
if (!option || option.size === null) {
|
|
282
|
+
return undefined;
|
|
283
|
+
}
|
|
284
|
+
return Math.max(0, maxMonth.value - (option.size - 1));
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
const rangeLabel = computed(
|
|
288
|
+
() =>
|
|
289
|
+
periodOptions.find(({ id }) => id === selectedPeriod.value)?.label ?? "ALL",
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
const totalProducts = statusData.reduce((sum, item) => sum + item.value, 0);
|
|
293
|
+
|
|
294
|
+
return {
|
|
295
|
+
revenueData,
|
|
296
|
+
revenueConfig,
|
|
297
|
+
channelTrendData,
|
|
298
|
+
channelTrendConfig,
|
|
299
|
+
statusData,
|
|
300
|
+
statusConfig,
|
|
301
|
+
monthLabels,
|
|
302
|
+
periodOptions,
|
|
303
|
+
selectedPeriod,
|
|
304
|
+
tooltipEnabled,
|
|
305
|
+
rangeStart,
|
|
306
|
+
rangeEnd: maxMonth,
|
|
307
|
+
rangeLabel,
|
|
308
|
+
totalProducts,
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
template: `
|
|
312
|
+
<div class="tw-flex tw-flex-col tw-gap-4">
|
|
313
|
+
<div class="tw-flex tw-flex-wrap tw-items-center tw-justify-between tw-gap-3 tw-rounded-lg tw-border tw-border-solid tw-border-neutrals-200 tw-bg-additional-50 tw-p-3">
|
|
314
|
+
<div class="tw-inline-flex tw-overflow-hidden tw-rounded-md tw-border tw-border-solid tw-border-neutrals-200">
|
|
315
|
+
<button
|
|
316
|
+
v-for="option in periodOptions"
|
|
317
|
+
:key="option.id"
|
|
318
|
+
class="tw-border-0 tw-bg-transparent tw-px-3 tw-py-1.5 tw-text-xs tw-font-semibold tw-transition-colors"
|
|
319
|
+
:class="selectedPeriod === option.id
|
|
320
|
+
? 'tw-bg-[var(--primary-500)] tw-text-additional-50'
|
|
321
|
+
: 'tw-text-neutrals-600 hover:tw-bg-neutrals-100'"
|
|
322
|
+
@click="selectedPeriod = option.id"
|
|
323
|
+
>
|
|
324
|
+
{{ option.label }}
|
|
325
|
+
</button>
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
<label class="tw-inline-flex tw-items-center tw-gap-2 tw-text-xs tw-font-medium tw-text-neutrals-700">
|
|
329
|
+
<input
|
|
330
|
+
v-model="tooltipEnabled"
|
|
331
|
+
type="checkbox"
|
|
332
|
+
class="tw-h-4 tw-w-4 tw-cursor-pointer tw-rounded tw-border tw-border-solid tw-border-neutrals-300"
|
|
333
|
+
>
|
|
334
|
+
Hover tooltip
|
|
335
|
+
</label>
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
<DashboardWidgetCard :header="'Revenue by Period (' + rangeLabel + ')'" icon="material-timeline">
|
|
339
|
+
<template #content>
|
|
340
|
+
<div class="tw-px-4 tw-py-3" style="height: 340px;">
|
|
341
|
+
<DashboardLineChart
|
|
342
|
+
:data="revenueData"
|
|
343
|
+
:config="revenueConfig"
|
|
344
|
+
x-key="month"
|
|
345
|
+
:y-keys="['revenue', 'orders']"
|
|
346
|
+
:show-tooltip="tooltipEnabled"
|
|
347
|
+
:range-start="rangeStart"
|
|
348
|
+
:range-end="rangeEnd"
|
|
349
|
+
:x-tick-format="(v) => monthLabels[v] ?? v"
|
|
350
|
+
:y-tick-format="(v) => '$' + (v / 1000).toFixed(1) + 'k'"
|
|
351
|
+
:num-x-ticks="6"
|
|
352
|
+
/>
|
|
353
|
+
</div>
|
|
354
|
+
</template>
|
|
355
|
+
</DashboardWidgetCard>
|
|
356
|
+
|
|
357
|
+
<DashboardWidgetCard :header="'Channel Performance (' + rangeLabel + ')'" icon="material-stacked_bar_chart">
|
|
358
|
+
<template #content>
|
|
359
|
+
<div class="tw-px-4 tw-py-3" style="height: 340px;">
|
|
360
|
+
<DashboardBarChart
|
|
361
|
+
:data="channelTrendData"
|
|
362
|
+
:config="channelTrendConfig"
|
|
363
|
+
x-key="month"
|
|
364
|
+
:y-keys="['marketplace', 'direct', 'b2b']"
|
|
365
|
+
:show-tooltip="tooltipEnabled"
|
|
366
|
+
:range-start="rangeStart"
|
|
367
|
+
:range-end="rangeEnd"
|
|
368
|
+
:x-tick-format="(v) => monthLabels[v] ?? v"
|
|
369
|
+
:y-tick-format="(v) => '$' + (v / 1000).toFixed(1) + 'k'"
|
|
370
|
+
:num-x-ticks="6"
|
|
371
|
+
/>
|
|
372
|
+
</div>
|
|
373
|
+
</template>
|
|
374
|
+
</DashboardWidgetCard>
|
|
375
|
+
|
|
376
|
+
<DashboardWidgetCard header="Status Breakdown" icon="material-donut_large">
|
|
377
|
+
<template #content>
|
|
378
|
+
<div class="tw-px-4 tw-py-3" style="height: 320px;">
|
|
379
|
+
<DashboardDonutChart
|
|
380
|
+
:data="statusData"
|
|
381
|
+
:config="statusConfig"
|
|
382
|
+
value-key="value"
|
|
383
|
+
:show-tooltip="tooltipEnabled"
|
|
384
|
+
:central-label="String(totalProducts)"
|
|
385
|
+
central-sub-label="Products"
|
|
386
|
+
/>
|
|
387
|
+
</div>
|
|
388
|
+
</template>
|
|
389
|
+
</DashboardWidgetCard>
|
|
390
|
+
</div>
|
|
391
|
+
`,
|
|
392
|
+
}),
|
|
393
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as ChartContainer } from "./ChartContainer.vue";
|
|
2
|
+
export { default as ChartTooltip } from "./ChartTooltip.vue";
|
|
3
|
+
export { default as ChartLegend } from "./ChartLegend.vue";
|
|
4
|
+
export { default as DashboardLineChart } from "./DashboardLineChart.vue";
|
|
5
|
+
export { default as DashboardBarChart } from "./DashboardBarChart.vue";
|
|
6
|
+
export { default as DashboardDonutChart } from "./DashboardDonutChart.vue";
|
|
7
|
+
export type { ChartConfig, ChartConfigItem } from "./types";
|
|
@@ -21,6 +21,7 @@ export * from "@shared/components/settings-menu-item";
|
|
|
21
21
|
export { GenericDropdown } from "@shared/components/generic-dropdown";
|
|
22
22
|
export * from "@shared/components/draggable-dashboard";
|
|
23
23
|
export * from "@shared/components/dashboard-widget-card";
|
|
24
|
+
export * from "@shared/components/dashboard-charts";
|
|
24
25
|
export * from "@shared/components/multilanguage-selector";
|
|
25
26
|
// ai-agent-panel is now part of the ai-agent plugin
|
|
26
27
|
// export * from "./core/plugins/ai-agent";
|