@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.
Files changed (473) hide show
  1. package/core/plugins/modularity/loader.ts +121 -57
  2. package/dist/core/composables/index.d.ts +24 -24
  3. package/dist/core/composables/useAppBarMobileButtons/index.d.ts +1 -1
  4. package/dist/core/composables/useAppBarWidget/index.d.ts +1 -1
  5. package/dist/core/composables/useAssets/index.d.ts +1 -1
  6. package/dist/core/composables/useAsync/index.d.ts +1 -1
  7. package/dist/core/composables/useBlade/index.d.ts +2 -2
  8. package/dist/core/composables/useBladeRegistry/index.d.ts +1 -1
  9. package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
  10. package/dist/core/composables/useDashboard/index.d.ts +1 -1
  11. package/dist/core/composables/useErrorHandler/index.d.ts +1 -1
  12. package/dist/core/composables/useFunctions/index.d.ts +4 -4
  13. package/dist/core/composables/useGlobalSearch/index.d.ts +1 -1
  14. package/dist/core/composables/useLanguages/index.d.ts +1 -1
  15. package/dist/core/composables/useMenuService/index.d.ts +1 -1
  16. package/dist/core/composables/useNotifications/index.d.ts +1 -1
  17. package/dist/core/composables/useSettingsMenu/index.d.ts +1 -1
  18. package/dist/core/composables/useToolbar/index.d.ts +2 -2
  19. package/dist/core/composables/useUser/index.d.ts +2 -2
  20. package/dist/core/composables/useUserManagement/index.d.ts +2 -2
  21. package/dist/core/composables/useWidgets/index.d.ts +1 -1
  22. package/dist/core/constants/index.d.ts +3 -3
  23. package/dist/core/directives/index.d.ts +2 -2
  24. package/dist/core/plugins/ai-agent/components/index.d.ts +1 -1
  25. package/dist/core/plugins/ai-agent/composables/index.d.ts +3 -3
  26. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +2 -2
  27. package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts +1 -1
  28. package/dist/core/plugins/ai-agent/constants.d.ts +1 -1
  29. package/dist/core/plugins/ai-agent/index.d.ts +9 -9
  30. package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +1 -1
  31. package/dist/core/plugins/extension-points/ExtensionPoint.vue.d.ts +1 -1
  32. package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts +1 -1
  33. package/dist/core/plugins/extension-points/index.d.ts +4 -4
  34. package/dist/core/plugins/extension-points/store.d.ts +1 -1
  35. package/dist/core/plugins/extension-points/useExtensionPoint.d.ts +1 -1
  36. package/dist/core/plugins/index.d.ts +7 -7
  37. package/dist/core/plugins/modularity/index.d.ts +2 -2
  38. package/dist/core/plugins/modularity/loader.d.ts +1 -0
  39. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  40. package/dist/core/plugins/moment/index.d.ts +1 -1
  41. package/dist/core/plugins/validation/index.d.ts +1 -1
  42. package/dist/core/services/_internal/index.d.ts +3 -3
  43. package/dist/core/services/app-bar-menu-service.d.ts +1 -1
  44. package/dist/core/services/dashboard-service.d.ts +1 -1
  45. package/dist/core/services/index.d.ts +9 -9
  46. package/dist/core/services/menu-service.d.ts +2 -2
  47. package/dist/core/services/settings-menu-service.d.ts +1 -1
  48. package/dist/core/services/toolbar-service.d.ts +2 -2
  49. package/dist/core/services/widget-service.d.ts +2 -2
  50. package/dist/core/types/index.d.ts +3 -3
  51. package/dist/core/utilities/index.d.ts +6 -6
  52. package/dist/framework.js +13076 -12647
  53. package/dist/index.css +1 -1
  54. package/dist/index.d.ts +13 -13
  55. package/dist/injection-keys.d.ts +6 -6
  56. package/dist/locales/de.json +4 -4
  57. package/dist/locales/en.json +5 -5
  58. package/dist/shared/components/app-switcher/components/index.d.ts +1 -1
  59. package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -1
  60. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
  61. package/dist/shared/components/app-switcher/composables/index.d.ts +1 -1
  62. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
  63. package/dist/shared/components/app-switcher/index.d.ts +2 -2
  64. package/dist/shared/components/blade-navigation/components/index.d.ts +2 -2
  65. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts +1 -1
  66. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +2 -2
  67. package/dist/shared/components/blade-navigation/components/vc-blade-slot/index.d.ts +1 -1
  68. package/dist/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts +2 -2
  69. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +3 -3
  70. package/dist/shared/components/blade-navigation/composables/index.d.ts +5 -5
  71. package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts +1 -1
  72. package/dist/shared/components/blade-navigation/composables/useBladeNavigationAdapter.d.ts +1 -1
  73. package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts +2 -2
  74. package/dist/shared/components/blade-navigation/index.d.ts +4 -4
  75. package/dist/shared/components/blade-navigation/plugin-v2.d.ts +4 -4
  76. package/dist/shared/components/blade-navigation/types/index.d.ts +4 -4
  77. package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts +2 -2
  78. package/dist/shared/components/blade-navigation/utils/urlSync.d.ts +1 -1
  79. package/dist/shared/components/change-password/index.d.ts +1 -1
  80. package/dist/shared/components/change-password-button/index.d.ts +1 -1
  81. package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts +16 -0
  82. package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts.map +1 -0
  83. package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts +7 -0
  84. package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts.map +1 -0
  85. package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts +12 -0
  86. package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts.map +1 -0
  87. package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts +34 -0
  88. package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts.map +1 -0
  89. package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts +28 -0
  90. package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts.map +1 -0
  91. package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts +34 -0
  92. package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts.map +1 -0
  93. package/dist/shared/components/dashboard-charts/chart-utils.d.ts +29 -0
  94. package/dist/shared/components/dashboard-charts/chart-utils.d.ts.map +1 -0
  95. package/dist/shared/components/dashboard-charts/index.d.ts +8 -0
  96. package/dist/shared/components/dashboard-charts/index.d.ts.map +1 -0
  97. package/dist/shared/components/dashboard-charts/types.d.ts +7 -0
  98. package/dist/shared/components/dashboard-charts/types.d.ts.map +1 -0
  99. package/dist/shared/components/dashboard-widget-card/index.d.ts +4 -4
  100. package/dist/shared/components/draggable-dashboard/composables/useGridstack.d.ts +1 -1
  101. package/dist/shared/components/draggable-dashboard/composables/useGridstackAdapter.d.ts +1 -1
  102. package/dist/shared/components/draggable-dashboard/index.d.ts +5 -5
  103. package/dist/shared/components/error-interceptor/index.d.ts +2 -2
  104. package/dist/shared/components/index.d.ts +19 -18
  105. package/dist/shared/components/index.d.ts.map +1 -1
  106. package/dist/shared/components/language-selector/index.d.ts +1 -1
  107. package/dist/shared/components/logout-button/index.d.ts +1 -1
  108. package/dist/shared/components/multilanguage-selector/index.d.ts +1 -1
  109. package/dist/shared/components/notification-dropdown/_internal/notification/index.d.ts +1 -1
  110. package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +2 -2
  111. package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
  112. package/dist/shared/components/notification-template/index.d.ts +1 -1
  113. package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
  114. package/dist/shared/components/notifications/components/index.d.ts +1 -1
  115. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  116. package/dist/shared/components/notifications/composables/index.d.ts +2 -2
  117. package/dist/shared/components/notifications/composables/useContainer/index.d.ts +1 -1
  118. package/dist/shared/components/notifications/composables/useInstance/index.d.ts +1 -1
  119. package/dist/shared/components/notifications/core/index.d.ts +1 -1
  120. package/dist/shared/components/notifications/core/notification.d.ts +2 -2
  121. package/dist/shared/components/notifications/index.d.ts +4 -4
  122. package/dist/shared/components/popup-handler/components/index.d.ts +1 -1
  123. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
  124. package/dist/shared/components/popup-handler/composables/index.d.ts +1 -1
  125. package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +3 -3
  126. package/dist/shared/components/popup-handler/index.d.ts +7 -7
  127. package/dist/shared/components/popup-handler/keys.d.ts +1 -1
  128. package/dist/shared/components/popup-handler/plugin.d.ts +1 -1
  129. package/dist/shared/components/popup-handler/types/index.d.ts +1 -1
  130. package/dist/shared/components/settings-menu/index.d.ts +1 -1
  131. package/dist/shared/components/settings-menu-item/index.d.ts +1 -1
  132. package/dist/shared/components/sidebar/index.d.ts +3 -3
  133. package/dist/shared/components/sign-in/external-providers.vue.d.ts +1 -1
  134. package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
  135. package/dist/shared/components/sign-in/index.d.ts +1 -1
  136. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  137. package/dist/shared/components/theme-selector/index.d.ts +1 -1
  138. package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts +1 -1
  139. package/dist/shared/components/user-dropdown-button/index.d.ts +1 -1
  140. package/dist/shared/composables/index.d.ts +5 -5
  141. package/dist/shared/index.d.ts +5 -5
  142. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -1
  143. package/dist/shared/modules/assets/components/assets-details/index.d.ts +1 -1
  144. package/dist/shared/modules/assets/components/index.d.ts +1 -1
  145. package/dist/shared/modules/assets/index.d.ts +1 -1
  146. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  147. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
  148. package/dist/shared/modules/assets-manager/components/index.d.ts +1 -1
  149. package/dist/shared/modules/assets-manager/index.d.ts +2 -2
  150. package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +1 -1
  151. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +16 -16
  152. package/dist/shared/modules/dynamic/components/factories.d.ts +1 -1
  153. package/dist/shared/modules/dynamic/components/fields/Button.d.ts +4 -4
  154. package/dist/shared/modules/dynamic/components/fields/Card.d.ts +4 -4
  155. package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +4 -4
  156. package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +4 -4
  157. package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +4 -4
  158. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +6 -6
  159. package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +6 -6
  160. package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +4 -4
  161. package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +4 -4
  162. package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +4 -4
  163. package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +4 -4
  164. package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +2 -2
  165. package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +4 -4
  166. package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +4 -4
  167. package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +4 -4
  168. package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +4 -4
  169. package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +4 -4
  170. package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +4 -4
  171. package/dist/shared/modules/dynamic/components/fields/Table.d.ts +4 -4
  172. package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +4 -4
  173. package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +4 -4
  174. package/dist/shared/modules/dynamic/components/fields/props.d.ts +3 -3
  175. package/dist/shared/modules/dynamic/components/index.d.ts +2 -2
  176. package/dist/shared/modules/dynamic/composables/index.d.ts +4 -4
  177. package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts +1 -1
  178. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +2 -2
  179. package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts +1 -1
  180. package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts +3 -3
  181. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
  182. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
  183. package/dist/shared/modules/dynamic/factories/index.d.ts +3 -3
  184. package/dist/shared/modules/dynamic/factories/types/index.d.ts +6 -6
  185. package/dist/shared/modules/dynamic/helpers/methodHandler.d.ts +1 -1
  186. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +2 -2
  187. package/dist/shared/modules/dynamic/helpers/override.d.ts +1 -1
  188. package/dist/shared/modules/dynamic/index.d.ts +5 -5
  189. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +10 -10
  190. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +15 -15
  191. package/dist/shared/modules/dynamic/pages/index.d.ts +2 -2
  192. package/dist/shared/modules/dynamic/types/index.d.ts +3 -3
  193. package/dist/shared/modules/dynamic/types/models.d.ts +1 -1
  194. package/dist/shared/modules/index.d.ts +3 -3
  195. package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts +1 -1
  196. package/dist/shared/pages/ChangePasswordPage/components/index.d.ts +1 -1
  197. package/dist/shared/pages/ChangePasswordPage/index.d.ts +1 -1
  198. package/dist/shared/pages/ForgotPasswordPage/components/forgot-password/index.d.ts +1 -1
  199. package/dist/shared/pages/ForgotPasswordPage/components/index.d.ts +1 -1
  200. package/dist/shared/pages/ForgotPasswordPage/index.d.ts +1 -1
  201. package/dist/shared/pages/InvitePage/components/index.d.ts +1 -1
  202. package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
  203. package/dist/shared/pages/InvitePage/index.d.ts +1 -1
  204. package/dist/shared/pages/LoginPage/components/index.d.ts +1 -1
  205. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  206. package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
  207. package/dist/shared/pages/LoginPage/index.d.ts +1 -1
  208. package/dist/shared/pages/ResetPasswordPage/components/index.d.ts +1 -1
  209. package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
  210. package/dist/shared/pages/ResetPasswordPage/index.d.ts +1 -1
  211. package/dist/shared/pages/index.d.ts +5 -5
  212. package/dist/shared/pages/plugin.d.ts +5 -5
  213. package/dist/shared/utilities/index.d.ts +4 -4
  214. package/dist/tsconfig.tsbuildinfo +1 -1
  215. package/dist/ui/components/atoms/index.d.ts +21 -21
  216. package/dist/ui/components/atoms/vc-badge/index.d.ts +1 -1
  217. package/dist/ui/components/atoms/vc-banner/index.d.ts +1 -1
  218. package/dist/ui/components/atoms/vc-button/index.d.ts +3 -3
  219. package/dist/ui/components/atoms/vc-button/vc-button-group.vue.d.ts +1 -1
  220. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +2 -2
  221. package/dist/ui/components/atoms/vc-card/index.d.ts +1 -1
  222. package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
  223. package/dist/ui/components/atoms/vc-container/index.d.ts +1 -1
  224. package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
  225. package/dist/ui/components/atoms/vc-icon/composables/index.d.ts +2 -2
  226. package/dist/ui/components/atoms/vc-icon/composables/use-icon-type.d.ts +1 -1
  227. package/dist/ui/components/atoms/vc-icon/composables/use-icon.d.ts +1 -1
  228. package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +1 -1
  229. package/dist/ui/components/atoms/vc-icon/index.d.ts +3 -3
  230. package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts +1 -1
  231. package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts +1 -1
  232. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +1 -1
  233. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  234. package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts +1 -1
  235. package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
  236. package/dist/ui/components/atoms/vc-label/index.d.ts +1 -1
  237. package/dist/ui/components/atoms/vc-link/index.d.ts +1 -1
  238. package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
  239. package/dist/ui/components/atoms/vc-progress/index.d.ts +1 -1
  240. package/dist/ui/components/atoms/vc-row/index.d.ts +1 -1
  241. package/dist/ui/components/atoms/vc-scrollable-container/index.d.ts +1 -1
  242. package/dist/ui/components/atoms/vc-skeleton/index.d.ts +1 -1
  243. package/dist/ui/components/atoms/vc-status/index.d.ts +1 -1
  244. package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
  245. package/dist/ui/components/atoms/vc-tooltip/index.d.ts +1 -1
  246. package/dist/ui/components/atoms/vc-video/index.d.ts +1 -1
  247. package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
  248. package/dist/ui/components/index.d.ts +3 -3
  249. package/dist/ui/components/molecules/index.d.ts +27 -27
  250. package/dist/ui/components/molecules/vc-accordion/index.d.ts +4 -4
  251. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
  252. package/dist/ui/components/molecules/vc-checkbox/index.d.ts +1 -1
  253. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
  254. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  255. package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts +2 -2
  256. package/dist/ui/components/molecules/vc-color-input/index.d.ts +1 -1
  257. package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +1 -1
  258. package/dist/ui/components/molecules/vc-date-picker/index.d.ts +1 -1
  259. package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +1 -1
  260. package/dist/ui/components/molecules/vc-dropdown/index.d.ts +2 -2
  261. package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
  262. package/dist/ui/components/molecules/vc-dropdown-panel/index.d.ts +1 -1
  263. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts +1 -1
  264. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +1 -1
  265. package/dist/ui/components/molecules/vc-editor/index.d.ts +2 -2
  266. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  267. package/dist/ui/components/molecules/vc-field/index.d.ts +1 -1
  268. package/dist/ui/components/molecules/vc-file-upload/index.d.ts +1 -1
  269. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
  270. package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
  271. package/dist/ui/components/molecules/vc-input/index.d.ts +1 -1
  272. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
  273. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -1
  274. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  275. package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +1 -1
  276. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +1 -1
  277. package/dist/ui/components/molecules/vc-input-group/index.d.ts +2 -2
  278. package/dist/ui/components/molecules/vc-multivalue/composables/index.d.ts +6 -6
  279. package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.d.ts +1 -1
  280. package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueInput.d.ts +1 -1
  281. package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueValues.d.ts +1 -1
  282. package/dist/ui/components/molecules/vc-multivalue/index.d.ts +1 -1
  283. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
  284. package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
  285. package/dist/ui/components/molecules/vc-paginator/index.d.ts +1 -1
  286. package/dist/ui/components/molecules/vc-radio-button/index.d.ts +1 -1
  287. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +1 -1
  288. package/dist/ui/components/molecules/vc-radio-group/index.d.ts +2 -2
  289. package/dist/ui/components/molecules/vc-rating/index.d.ts +1 -1
  290. package/dist/ui/components/molecules/vc-select/composables/index.d.ts +7 -7
  291. package/dist/ui/components/molecules/vc-select/composables/useSelectDropdown.d.ts +1 -1
  292. package/dist/ui/components/molecules/vc-select/index.d.ts +2 -2
  293. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +2 -2
  294. package/dist/ui/components/molecules/vc-slider/index.d.ts +1 -1
  295. package/dist/ui/components/molecules/vc-switch/index.d.ts +1 -1
  296. package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts +1 -1
  297. package/dist/ui/components/molecules/vc-textarea/index.d.ts +1 -1
  298. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
  299. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  300. package/dist/ui/components/molecules/vc-toast/index.d.ts +1 -1
  301. package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts +1 -1
  302. package/dist/ui/components/organisms/index.d.ts +8 -8
  303. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts +1 -4
  304. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts.map +1 -1
  305. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +1 -1
  306. package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts +2 -8
  307. package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts.map +1 -1
  308. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts +2 -2
  309. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  310. package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts +2 -2
  311. package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts +1 -1
  312. package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts +1 -1
  313. package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts +1 -1
  314. package/dist/ui/components/organisms/vc-app/_internal/menu/composables/useBadge.d.ts +1 -1
  315. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts +1 -1
  316. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +2 -0
  317. package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
  318. package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts +2 -2
  319. package/dist/ui/components/organisms/vc-app/composables/useShellNavigation.d.ts +1 -1
  320. package/dist/ui/components/organisms/vc-app/composition/app-bar/index.d.ts +6 -6
  321. package/dist/ui/components/organisms/vc-app/composition/index.d.ts +6 -6
  322. package/dist/ui/components/organisms/vc-app/composition/layouts/index.d.ts +2 -2
  323. package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts +5 -5
  324. package/dist/ui/components/organisms/vc-app/composition/shell/index.d.ts +3 -3
  325. package/dist/ui/components/organisms/vc-app/composition/sidebar/index.d.ts +3 -3
  326. package/dist/ui/components/organisms/vc-app/composition/state/index.d.ts +4 -4
  327. package/dist/ui/components/organisms/vc-app/index.d.ts +2 -2
  328. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -3
  329. package/dist/ui/components/organisms/vc-auth-layout/index.d.ts +1 -1
  330. package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
  331. package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts +1 -1
  332. package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts +2 -2
  333. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
  334. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarCircleButton.vue.d.ts +1 -1
  335. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue.d.ts +1 -1
  336. package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue.d.ts +1 -1
  337. package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts +1 -1
  338. package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts +1 -1
  339. package/dist/ui/components/organisms/vc-blade/constants.d.ts +1 -1
  340. package/dist/ui/components/organisms/vc-blade/index.d.ts +1 -1
  341. package/dist/ui/components/organisms/vc-blade/utils.d.ts +1 -1
  342. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  343. package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -1
  344. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
  345. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  346. package/dist/ui/components/organisms/vc-gallery/index.d.ts +1 -1
  347. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
  348. package/dist/ui/components/organisms/vc-popup/index.d.ts +1 -1
  349. package/dist/ui/components/organisms/vc-sidebar/index.d.ts +1 -1
  350. package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +1 -1
  351. package/dist/ui/components/organisms/vc-table/VcTableAdapter.vue.d.ts +2 -2
  352. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +2 -2
  353. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +2 -2
  354. package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +1 -1
  355. package/dist/ui/components/organisms/vc-table/base/BaseVcDataTable.d.ts +1 -1
  356. package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts +1 -1
  357. package/dist/ui/components/organisms/vc-table/components/DataTableBody.vue.d.ts +3 -3
  358. package/dist/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue.d.ts +1 -1
  359. package/dist/ui/components/organisms/vc-table/components/DataTableHeader.vue.d.ts +2 -2
  360. package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts +2 -2
  361. package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts +1 -1
  362. package/dist/ui/components/organisms/vc-table/components/TableActions.vue.d.ts +1 -1
  363. package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts +1 -1
  364. package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +1 -1
  365. package/dist/ui/components/organisms/vc-table/components/cells/index.d.ts +11 -11
  366. package/dist/ui/components/organisms/vc-table/components/index.d.ts +26 -26
  367. package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue.d.ts +1 -1
  368. package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue.d.ts +1 -1
  369. package/dist/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue.d.ts +1 -1
  370. package/dist/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue.d.ts +1 -1
  371. package/dist/ui/components/organisms/vc-table/components/mobile/index.d.ts +5 -5
  372. package/dist/ui/components/organisms/vc-table/composables/index.d.ts +30 -30
  373. package/dist/ui/components/organisms/vc-table/composables/useColumnFilter.d.ts +1 -1
  374. package/dist/ui/components/organisms/vc-table/composables/useDataProcessing.d.ts +1 -1
  375. package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts +4 -4
  376. package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.d.ts +2 -2
  377. package/dist/ui/components/organisms/vc-table/composables/useTableColumns.d.ts +2 -2
  378. package/dist/ui/components/organisms/vc-table/composables/useTableFilter.d.ts +1 -1
  379. package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +1 -1
  380. package/dist/ui/components/organisms/vc-table/composables/useTableSort.d.ts +1 -1
  381. package/dist/ui/components/organisms/vc-table/index.d.ts +9 -9
  382. package/dist/ui/components/organisms/vc-table/keys.d.ts +2 -2
  383. package/dist/ui/components/organisms/vc-table/types.d.ts +3 -3
  384. package/dist/ui/components/organisms/vc-table/utils/ColumnCollector.d.ts +1 -1
  385. package/dist/ui/components/organisms/vc-table/utils/index.d.ts +3 -3
  386. package/dist/ui/composables/index.d.ts +5 -5
  387. package/dist/ui/composables/useFormField.d.ts +2 -2
  388. package/dist/ui/types/index.d.ts +1 -1
  389. package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
  390. package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
  391. package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
  392. package/dist/vendor-d3-chord-l0sNRNKZ.js +1 -0
  393. package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
  394. package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
  395. package/dist/vendor-d3-drag-l0sNRNKZ.js +1 -0
  396. package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
  397. package/dist/vendor-d3-force-l0sNRNKZ.js +1 -0
  398. package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
  399. package/dist/vendor-d3-geo-l0sNRNKZ.js +1 -0
  400. package/dist/vendor-d3-geo-projection-l0sNRNKZ.js +1 -0
  401. package/dist/vendor-d3-hierarchy-l0sNRNKZ.js +1 -0
  402. package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
  403. package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
  404. package/dist/vendor-d3-path-DJOTitNW.js +64 -0
  405. package/dist/vendor-d3-quadtree-l0sNRNKZ.js +1 -0
  406. package/dist/vendor-d3-sankey-l0sNRNKZ.js +1 -0
  407. package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
  408. package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
  409. package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
  410. package/dist/vendor-d3-time-DAPP210_.js +212 -0
  411. package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
  412. package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
  413. package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
  414. package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
  415. package/dist/vendor-elkjs-l0sNRNKZ.js +1 -0
  416. package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
  417. package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
  418. package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
  419. package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
  420. package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
  421. package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
  422. package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
  423. package/dist/vendor-emotion-weak-memoize-l0sNRNKZ.js +1 -0
  424. package/dist/vendor-internmap-Q5729_cS.js +35 -0
  425. package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
  426. package/dist/vendor-kdbush-l0sNRNKZ.js +1 -0
  427. package/dist/vendor-leaflet-l0sNRNKZ.js +1 -0
  428. package/dist/vendor-lodash-l0sNRNKZ.js +1 -0
  429. package/dist/vendor-maplibre-gl-l0sNRNKZ.js +1 -0
  430. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1 -1
  431. package/dist/vendor-striptags-BrHtQQiF.js +120 -0
  432. package/dist/vendor-stylis-ClfDrgKE.js +334 -0
  433. package/dist/vendor-supercluster-l0sNRNKZ.js +1 -0
  434. package/dist/vendor-three-l0sNRNKZ.js +1 -0
  435. package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
  436. package/dist/vendor-topojson-client-l0sNRNKZ.js +1 -0
  437. package/dist/vendor-tslib-l0sNRNKZ.js +1 -0
  438. package/dist/vendor-unovis-dagre-layout-l0sNRNKZ.js +1 -0
  439. package/dist/vendor-unovis-graphlibrary-l0sNRNKZ.js +1 -0
  440. package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
  441. package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
  442. package/package.json +6 -4
  443. package/shared/components/dashboard-charts/ChartContainer.vue +54 -0
  444. package/shared/components/dashboard-charts/ChartLegend.vue +40 -0
  445. package/shared/components/dashboard-charts/ChartTooltip.vue +43 -0
  446. package/shared/components/dashboard-charts/DashboardBarChart.vue +165 -0
  447. package/shared/components/dashboard-charts/DashboardDonutChart.vue +137 -0
  448. package/shared/components/dashboard-charts/DashboardLineChart.vue +170 -0
  449. package/shared/components/dashboard-charts/chart-theme.scss +19 -0
  450. package/shared/components/dashboard-charts/chart-tooltip.scss +48 -0
  451. package/shared/components/dashboard-charts/chart-utils.ts +189 -0
  452. package/shared/components/dashboard-charts/dashboard-charts.stories.ts +393 -0
  453. package/shared/components/dashboard-charts/index.ts +7 -0
  454. package/shared/components/dashboard-charts/types.ts +7 -0
  455. package/shared/components/index.ts +1 -0
  456. package/shared/components/sign-in/external-providers.vue +1 -1
  457. package/shared/pages/LoginPage/components/login/Login.vue +29 -31
  458. package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +2 -4
  459. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +3 -3
  460. package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +1 -1
  461. package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +2 -2
  462. package/ui/components/molecules/vc-select/vc-select.vue +1 -1
  463. package/ui/components/molecules/vc-slider/vc-slider.vue +1 -1
  464. package/ui/components/molecules/vc-switch/vc-switch.vue +2 -2
  465. package/ui/components/molecules/vc-textarea/vc-textarea.vue +8 -2
  466. package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.ts +2 -23
  467. package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue +135 -194
  468. package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue +1 -1
  469. package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.ts +0 -44
  470. package/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue +1 -0
  471. package/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue +181 -164
  472. package/ui/components/organisms/vc-app/composables/useShellBootstrap.ts +114 -106
  473. 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
+ "&": "&amp;",
28
+ "<": "&lt;",
29
+ ">": "&gt;",
30
+ "\"": "&quot;",
31
+ "'": "&#39;",
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";
@@ -0,0 +1,7 @@
1
+ export interface ChartConfigItem {
2
+ label: string;
3
+ color: string;
4
+ icon?: string;
5
+ }
6
+
7
+ export type ChartConfig = Record<string, ChartConfigItem>;
@@ -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";
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="tw-flex tw-justify-center tw-mt-4 tw-flex-col tw-gap-2">
2
+ <div class="tw-flex tw-justify-center tw-flex-col tw-gap-4">
3
3
  <ExternalProvider
4
4
  v-for="provider in providers"
5
5
  :key="provider.authenticationType"