@vc-shell/framework 1.2.3-beta.0 → 1.2.3

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 (244) hide show
  1. package/core/composables/index.ts +0 -2
  2. package/core/composables/useAssets/index.ts +28 -72
  3. package/core/composables/useAsync/index.ts +1 -4
  4. package/core/composables/useBladeRegistry/index.ts +5 -6
  5. package/core/composables/useBreadcrumbs/index.ts +1 -4
  6. package/core/composables/useErrorHandler/index.ts +1 -4
  7. package/core/composables/useFunctions/debounce.ts +1 -0
  8. package/core/composables/useFunctions/delay.ts +1 -0
  9. package/core/composables/useFunctions/index.ts +1 -0
  10. package/core/composables/useFunctions/once.ts +1 -0
  11. package/core/composables/useFunctions/sleep.ts +1 -0
  12. package/core/composables/useFunctions/throttle.ts +1 -0
  13. package/core/composables/useGlobalSearch/index.ts +3 -3
  14. package/core/composables/useMenuService/index.ts +12 -7
  15. package/core/composables/useNotifications/index.ts +2 -5
  16. package/core/composables/useTheme/index.ts +1 -4
  17. package/core/composables/useUser/index.ts +20 -189
  18. package/core/composables/useWidgets/index.ts +2 -5
  19. package/core/constants/index.ts +0 -2
  20. package/core/interceptors/index.ts +2 -5
  21. package/core/plugins/modularity/index.ts +6 -8
  22. package/core/plugins/modularity/loader.ts +33 -36
  23. package/core/plugins/signalR/index.ts +3 -6
  24. package/core/services/app-bar-menu-service.ts +1 -4
  25. package/core/services/dashboard-service.ts +1 -4
  26. package/core/services/global-search-service.ts +36 -0
  27. package/core/services/index.ts +0 -2
  28. package/core/services/menu-service.ts +41 -5
  29. package/core/services/settings-menu-service.ts +1 -4
  30. package/core/services/toolbar-service.ts +3 -18
  31. package/core/services/widget-service.ts +4 -7
  32. package/core/types/index.ts +47 -3
  33. package/core/utilities/index.ts +0 -2
  34. package/dist/core/composables/useAssets/index.d.ts.map +1 -1
  35. package/dist/core/composables/useAsync/index.d.ts.map +1 -1
  36. package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
  37. package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
  38. package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
  39. package/dist/core/composables/useFunctions/debounce.d.ts.map +1 -1
  40. package/dist/core/composables/useFunctions/delay.d.ts.map +1 -1
  41. package/dist/core/composables/useFunctions/index.d.ts.map +1 -1
  42. package/dist/core/composables/useFunctions/once.d.ts.map +1 -1
  43. package/dist/core/composables/useFunctions/sleep.d.ts.map +1 -1
  44. package/dist/core/composables/useFunctions/throttle.d.ts.map +1 -1
  45. package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -1
  46. package/dist/core/composables/useMenuService/index.d.ts +2 -2
  47. package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
  48. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  49. package/dist/core/composables/useTheme/index.d.ts.map +1 -1
  50. package/dist/core/composables/useUser/index.d.ts +0 -8
  51. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  52. package/dist/core/composables/useWidgets/index.d.ts.map +1 -1
  53. package/dist/core/constants/index.d.ts +0 -2
  54. package/dist/core/constants/index.d.ts.map +1 -1
  55. package/dist/core/interceptors/index.d.ts.map +1 -1
  56. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  57. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  58. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  59. package/dist/core/services/app-bar-menu-service.d.ts.map +1 -1
  60. package/dist/core/services/dashboard-service.d.ts.map +1 -1
  61. package/dist/core/services/global-search-service.d.ts +10 -0
  62. package/dist/core/services/global-search-service.d.ts.map +1 -0
  63. package/dist/core/services/menu-service.d.ts +24 -1
  64. package/dist/core/services/menu-service.d.ts.map +1 -1
  65. package/dist/core/services/settings-menu-service.d.ts.map +1 -1
  66. package/dist/core/services/toolbar-service.d.ts.map +1 -1
  67. package/dist/core/services/widget-service.d.ts.map +1 -1
  68. package/dist/core/types/index.d.ts +34 -0
  69. package/dist/core/types/index.d.ts.map +1 -1
  70. package/dist/core/utilities/index.d.ts +0 -2
  71. package/dist/core/utilities/index.d.ts.map +1 -1
  72. package/dist/framework.js +8664 -9720
  73. package/dist/index.css +1 -1
  74. package/dist/index.d.ts +0 -19
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/injection-keys.d.ts +6 -21
  77. package/dist/injection-keys.d.ts.map +1 -1
  78. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  79. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
  80. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  81. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeActions.d.ts.map +1 -1
  82. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.d.ts.map +1 -1
  83. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/routerUtils.d.ts.map +1 -1
  84. package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts.map +1 -1
  85. package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts.map +1 -1
  86. package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
  87. package/dist/shared/components/notifications/composables/useInstance/index.d.ts.map +1 -1
  88. package/dist/shared/components/notifications/core/notification.d.ts.map +1 -1
  89. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
  90. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  91. package/dist/shared/composables/useExternalWidgets.d.ts.map +1 -1
  92. package/dist/shared/composables/useMenuExpanded.d.ts.map +1 -1
  93. package/dist/shared/composables/useTableSelection.d.ts.map +1 -1
  94. package/dist/shared/composables/useTableSort.d.ts.map +1 -1
  95. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
  96. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
  97. package/dist/shared/utilities/colorUtils.d.ts +6 -0
  98. package/dist/shared/utilities/colorUtils.d.ts.map +1 -1
  99. package/dist/tsconfig.tsbuildinfo +1 -1
  100. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +3 -0
  101. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  102. package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
  103. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +15 -0
  104. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  105. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -1
  106. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  107. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  108. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
  109. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
  110. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
  111. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +5 -0
  112. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
  113. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
  114. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
  115. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  116. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
  117. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  118. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  119. package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
  120. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/useBadge.d.ts +18 -0
  121. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/useBadge.d.ts.map +1 -0
  122. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +4 -1
  123. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
  124. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +4 -1
  125. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  126. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  127. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  128. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  129. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  130. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  131. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
  132. package/dist/ui/components/organisms/vc-table/composables/useTableActions.d.ts.map +1 -1
  133. package/dist/ui/components/organisms/vc-table/composables/useTableColumnResize.d.ts.map +1 -1
  134. package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts.map +1 -1
  135. package/dist/ui/components/organisms/vc-table/composables/useTableSelection.d.ts.map +1 -1
  136. package/dist/ui/components/organisms/vc-table/composables/useTableState.d.ts.map +1 -1
  137. package/dist/{vendor-lodash-es-SgOIjJF8.js → vendor-lodash-es-BqkGj3Jl.js} +0 -2
  138. package/package.json +5 -5
  139. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -4
  140. package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +4 -67
  141. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +10 -13
  142. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeActions.ts +4 -7
  143. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.ts +1 -4
  144. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/routerUtils.ts +1 -4
  145. package/shared/components/change-password/change-password.vue +1 -1
  146. package/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.ts +5 -14
  147. package/shared/components/draggable-dashboard/composables/useLayoutPersistence.ts +2 -5
  148. package/shared/components/index.ts +0 -2
  149. package/shared/components/notifications/composables/useContainer/index.ts +6 -8
  150. package/shared/components/notifications/composables/useInstance/index.ts +1 -4
  151. package/shared/components/notifications/core/notification.ts +7 -10
  152. package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +1 -20
  153. package/shared/components/sign-in/useExternalProvider.ts +4 -6
  154. package/shared/composables/useExternalWidgets.ts +4 -7
  155. package/shared/composables/useMenuExpanded.ts +1 -15
  156. package/shared/composables/useTableSelection.ts +0 -6
  157. package/shared/composables/useTableSort.ts +4 -4
  158. package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +3 -6
  159. package/shared/pages/LoginPage/components/login/Login.vue +1 -4
  160. package/shared/utilities/colorUtils.ts +12 -5
  161. package/ui/components/atoms/vc-badge/vc-badge.vue +59 -0
  162. package/ui/components/atoms/vc-banner/vc-banner.vue +1 -4
  163. package/ui/components/atoms/vc-button/vc-button.vue +25 -2
  164. package/ui/components/atoms/vc-container/vc-container.vue +3 -12
  165. package/ui/components/atoms/vc-icon/vc-icon.vue +10 -0
  166. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -5
  167. package/ui/components/atoms/vc-image/vc-image.vue +1 -4
  168. package/ui/components/atoms/vc-link/vc-link.vue +54 -59
  169. package/ui/components/atoms/vc-loading/vc-loading.vue +0 -4
  170. package/ui/components/atoms/vc-status/vc-status.vue +5 -0
  171. package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +4 -4
  172. package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +1 -8
  173. package/ui/components/atoms/vc-video/vc-video.vue +2 -4
  174. package/ui/components/atoms/vc-widget/vc-widget.vue +1 -4
  175. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +2 -7
  176. package/ui/components/molecules/vc-input/vc-input.vue +1 -0
  177. package/ui/components/molecules/vc-pagination/vc-pagination.vue +1 -6
  178. package/ui/components/molecules/vc-rating/vc-rating.vue +1 -1
  179. package/ui/components/molecules/vc-textarea/vc-textarea.vue +1 -1
  180. package/ui/components/molecules/vc-toast/vc-toast.vue +1 -11
  181. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/useBadge.ts +80 -0
  182. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +53 -10
  183. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +10 -1
  184. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +3 -0
  185. package/ui/components/organisms/vc-app/vc-app.vue +3 -22
  186. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +1 -4
  187. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +14 -14
  188. package/ui/components/organisms/vc-blade/vc-blade.vue +1 -3
  189. package/ui/components/organisms/vc-login-form/vc-login-form.vue +1 -3
  190. package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +2 -34
  191. package/ui/components/organisms/vc-table/composables/useTableActions.ts +10 -7
  192. package/ui/components/organisms/vc-table/composables/useTableColumnResize.ts +1 -4
  193. package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +2 -5
  194. package/ui/components/organisms/vc-table/composables/useTableSelection.ts +18 -26
  195. package/ui/components/organisms/vc-table/composables/useTableState.ts +1 -4
  196. package/core/constants/defaults.ts +0 -76
  197. package/core/constants/ui.ts +0 -68
  198. package/core/plugins/ai-agent/README.md +0 -336
  199. package/core/plugins/ai-agent/components/VcAiAgentPanel.vue +0 -125
  200. package/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue +0 -182
  201. package/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue +0 -77
  202. package/core/plugins/ai-agent/components/index.ts +0 -1
  203. package/core/plugins/ai-agent/composables/index.ts +0 -4
  204. package/core/plugins/ai-agent/composables/useAiAgent.ts +0 -231
  205. package/core/plugins/ai-agent/composables/useAiAgentContext.ts +0 -280
  206. package/core/plugins/ai-agent/constants.ts +0 -89
  207. package/core/plugins/ai-agent/index.ts +0 -91
  208. package/core/plugins/ai-agent/services/ai-agent-service.ts +0 -598
  209. package/core/plugins/ai-agent/types.ts +0 -310
  210. package/core/types/services.ts +0 -194
  211. package/core/utilities/errorTypes.ts +0 -126
  212. package/core/utilities/logger.ts +0 -120
  213. package/dist/core/constants/defaults.d.ts +0 -63
  214. package/dist/core/constants/defaults.d.ts.map +0 -1
  215. package/dist/core/constants/ui.d.ts +0 -50
  216. package/dist/core/constants/ui.d.ts.map +0 -1
  217. package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts +0 -3
  218. package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +0 -1
  219. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +0 -15
  220. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +0 -1
  221. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts +0 -10
  222. package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +0 -1
  223. package/dist/core/plugins/ai-agent/components/index.d.ts +0 -2
  224. package/dist/core/plugins/ai-agent/components/index.d.ts.map +0 -1
  225. package/dist/core/plugins/ai-agent/composables/index.d.ts +0 -4
  226. package/dist/core/plugins/ai-agent/composables/index.d.ts.map +0 -1
  227. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +0 -95
  228. package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +0 -1
  229. package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts +0 -55
  230. package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +0 -1
  231. package/dist/core/plugins/ai-agent/constants.d.ts +0 -47
  232. package/dist/core/plugins/ai-agent/constants.d.ts.map +0 -1
  233. package/dist/core/plugins/ai-agent/index.d.ts +0 -48
  234. package/dist/core/plugins/ai-agent/index.d.ts.map +0 -1
  235. package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +0 -45
  236. package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +0 -1
  237. package/dist/core/plugins/ai-agent/types.d.ts +0 -258
  238. package/dist/core/plugins/ai-agent/types.d.ts.map +0 -1
  239. package/dist/core/types/services.d.ts +0 -169
  240. package/dist/core/types/services.d.ts.map +0 -1
  241. package/dist/core/utilities/errorTypes.d.ts +0 -61
  242. package/dist/core/utilities/errorTypes.d.ts.map +0 -1
  243. package/dist/core/utilities/logger.d.ts +0 -259
  244. package/dist/core/utilities/logger.d.ts.map +0 -1
@@ -1,258 +0,0 @@
1
- import { ComputedRef, Ref } from "vue";
2
- /**
3
- * Context type for AI agent - determines UI behavior in chatbot
4
- * - 'list': Multiple selected items from a list blade (shows "X items selected" badge)
5
- * - 'details': Single item being edited in details blade (shows suggestions UI)
6
- */
7
- export type AiAgentContextType = "list" | "details";
8
- /**
9
- * Suggestion card for AI agent
10
- */
11
- export interface ISuggestion {
12
- /** Unique identifier */
13
- id: string;
14
- /** Display title */
15
- title: string;
16
- /** Icon name */
17
- icon: string;
18
- /** Icon color (optional) */
19
- iconColor?: string;
20
- /** Prompt text to send when clicked */
21
- prompt: string;
22
- }
23
- /**
24
- * Options for useAiAgentContext composable
25
- */
26
- export interface UseAiAgentContextOptions<T = Record<string, unknown>> {
27
- /**
28
- * Ref with data - accepts both formats:
29
- * - Ref<T> for DETAILS blade (single object, will be wrapped in array internally)
30
- * - Ref<T[]> for LIST blade (array of selected objects)
31
- *
32
- * When AI agent sends changes back, they will be applied to:
33
- * - The object directly (for single-object refs)
34
- * - The first item in array (for array refs)
35
- */
36
- dataRef: Ref<T> | Ref<T[]>;
37
- /** Custom suggestions for this blade */
38
- suggestions?: ISuggestion[];
39
- }
40
- /**
41
- * Return type for useAiAgentContext composable
42
- */
43
- export interface UseAiAgentContextReturn {
44
- /** Preview state (for details blades) */
45
- previewState: {
46
- isActive: ComputedRef<boolean>;
47
- changedFields: ComputedRef<string[]>;
48
- };
49
- }
50
- /**
51
- * State of the AI agent panel
52
- */
53
- export type AiAgentPanelState = "closed" | "open" | "expanded";
54
- /**
55
- * Configuration for the AI agent panel
56
- */
57
- export interface IAiAgentConfig {
58
- /** URL of the AI agent iframe */
59
- url: string;
60
- /** Panel title (default: "Virto OZ") */
61
- title?: string;
62
- /** Panel width in pixels when open (default: 350) */
63
- width?: number;
64
- /** Panel width in pixels when expanded (default: 500) */
65
- expandedWidth?: number;
66
- /** Allowed origins for postMessage (default: ["*"]) */
67
- allowedOrigins?: string[];
68
- /**
69
- * Tenant identifier for the platform instance.
70
- * This should be a static value identifying the platform installation (e.g., "virto", "acme-corp").
71
- * Configured by the host application via VirtoShellFramework options.
72
- *
73
- */
74
- tenantId?: string;
75
- }
76
- /**
77
- * Current blade information for AI context
78
- */
79
- export interface IAiAgentBladeContext {
80
- /** Blade identifier */
81
- id: string;
82
- /** Blade component name */
83
- name: string;
84
- /** Blade display title */
85
- title?: string;
86
- /** Route parameter (e.g., item ID being edited) */
87
- param?: string;
88
- /** Additional blade options */
89
- options?: Record<string, unknown>;
90
- }
91
- /**
92
- * User information for AI context
93
- */
94
- export interface IAiAgentUserContext {
95
- id?: string;
96
- userName?: string;
97
- isAdministrator?: boolean;
98
- permissions?: string[];
99
- }
100
- /**
101
- * Full context passed to the AI agent
102
- */
103
- export interface IAiAgentContext {
104
- /** Current user information */
105
- user: IAiAgentUserContext | undefined;
106
- /** Current active blade information */
107
- currentBlade: IAiAgentBladeContext | null;
108
- /** Data items (from useAiAgentContext) */
109
- items: Record<string, unknown>[];
110
- /** Timestamp of context generation */
111
- timestamp: number;
112
- }
113
- /**
114
- * Service for managing AI agent state and communication
115
- */
116
- export interface IAiAgentService {
117
- /** Current panel state */
118
- panelState: Ref<AiAgentPanelState>;
119
- /** Panel configuration */
120
- config: Ref<IAiAgentConfig>;
121
- /** Current context (reactive) */
122
- context: ComputedRef<IAiAgentContext>;
123
- /** Whether panel is open (not closed) */
124
- isOpen: ComputedRef<boolean>;
125
- /** Whether panel is in expanded state */
126
- isExpanded: ComputedRef<boolean>;
127
- /** Total count of items in current context */
128
- totalItemsCount: ComputedRef<number>;
129
- /** Open the AI panel */
130
- openPanel: () => void;
131
- /** Close the AI panel */
132
- closePanel: () => void;
133
- /** Toggle panel open/close */
134
- togglePanel: () => void;
135
- /** Expand the panel to larger width */
136
- expandPanel: () => void;
137
- /** Collapse panel to normal width */
138
- collapsePanel: () => void;
139
- /** Update configuration */
140
- setConfig: (config: Partial<IAiAgentConfig>) => void;
141
- /** Send message to AI agent iframe */
142
- sendMessage: (type: AiAgentMessageType, payload: unknown) => void;
143
- /** Register message handler, returns unsubscribe function */
144
- onMessage: (handler: (event: IAiAgentMessage) => void) => () => void;
145
- }
146
- /**
147
- * Message types sent from Shell to Chatbot
148
- */
149
- export type ShellToChatMessageType = "INIT_CONTEXT" | "UPDATE_CONTEXT";
150
- /**
151
- * Message types sent from Chatbot to Shell
152
- */
153
- export type ChatToShellMessageType = "CHAT_READY" | "NAVIGATE_TO_APP" | "EXPAND_IN_CHAT" | "RELOAD_BLADE" | "PREVIEW_CHANGES" | "APPLY_CHANGES" | "DOWNLOAD_FILE" | "SHOW_MORE" | "CHAT_ERROR";
154
- /**
155
- * Combined message types
156
- */
157
- export type AiAgentMessageType = ShellToChatMessageType | ChatToShellMessageType;
158
- /**
159
- * Generic message type (for handlers)
160
- */
161
- export interface IAiAgentMessage<T = unknown> {
162
- /** Message type identifier */
163
- type: AiAgentMessageType;
164
- /** Message payload */
165
- payload?: T;
166
- /** Message timestamp (optional) */
167
- timestamp?: number;
168
- }
169
- /**
170
- * Blade context for chatbot (simplified for chat use)
171
- */
172
- export interface IChatBladeContext {
173
- /** Blade identifier */
174
- id: string;
175
- /** Blade component name */
176
- name: string;
177
- /** Blade display title */
178
- title: string;
179
- /** Route parameter (e.g., item ID being edited) */
180
- param?: string;
181
- }
182
- /** Payload for INIT_CONTEXT message (Shell -> Chat) */
183
- export interface IInitContextPayload {
184
- /** Current user ID */
185
- userId: string;
186
- /** User locale */
187
- locale: string;
188
- /** Tenant identifier (from JWT or host app) */
189
- tenantId?: string;
190
- /** Current blade context */
191
- blade: IChatBladeContext;
192
- /** Context type - determines chatbot UI behavior */
193
- contextType: AiAgentContextType;
194
- /** Data items - always array (1 for details, N for list) */
195
- items: Record<string, unknown>[];
196
- /** Custom suggestions (if any) */
197
- suggestions?: ISuggestion[];
198
- /** Access token for API calls (automatically refreshed) */
199
- accessToken?: string;
200
- }
201
- /** Payload for UPDATE_CONTEXT message (Shell -> Chat) */
202
- export interface IUpdateContextPayload {
203
- /** Updated blade context (if changed) */
204
- blade?: IChatBladeContext;
205
- /** Tenant identifier (from JWT or host app) */
206
- tenantId?: string;
207
- /** Context type - determines chatbot UI behavior */
208
- contextType: AiAgentContextType;
209
- /** Data items - always array of full objects */
210
- items: Record<string, unknown>[];
211
- /** Custom suggestions (if changed) */
212
- suggestions?: ISuggestion[];
213
- /** Updated user locale (if changed) */
214
- locale?: string;
215
- /** Access token for API calls (automatically refreshed) */
216
- accessToken?: string;
217
- }
218
- /** Payload for NAVIGATE_TO_APP message (Chat -> Shell) */
219
- export interface INavigateToAppPayload {
220
- /** Blade name to open */
221
- bladeName: string;
222
- /** Entity ID */
223
- param?: string;
224
- /** Additional options */
225
- options?: Record<string, unknown>;
226
- }
227
- /** Payload for PREVIEW_CHANGES message (Chat -> Shell) */
228
- export interface IPreviewChangesPayload {
229
- /** Updated data to preview */
230
- data: Record<string, unknown>;
231
- /** List of changed field names */
232
- changedFields?: string[];
233
- }
234
- /** Payload for APPLY_CHANGES message (Chat -> Shell) */
235
- export interface IApplyChangesPayload {
236
- changes: Array<{
237
- entityId: string;
238
- entityType: string;
239
- field: string;
240
- oldValue: unknown;
241
- newValue: unknown;
242
- }>;
243
- }
244
- /** Payload for DOWNLOAD_FILE message (Chat -> Shell) */
245
- export interface IDownloadFilePayload {
246
- /** Filename for download */
247
- filename: string;
248
- /** MIME type */
249
- contentType: string;
250
- /** Base64 encoded content */
251
- content: string;
252
- }
253
- /** Payload for CHAT_ERROR message (Chat -> Shell) */
254
- export interface IChatErrorPayload {
255
- code: string;
256
- message: string;
257
- }
258
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../core/plugins/ai-agent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,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KACnB,CAAC,CAAC;CACJ;AAED,wDAAwD;AACxD,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qDAAqD;AACrD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1,169 +0,0 @@
1
- import type { App, Ref } from "vue";
2
- /**
3
- * Service lifecycle interface for managing service creation and cleanup
4
- */
5
- export interface ServiceLifecycle<T> {
6
- /**
7
- * Creates a new instance of the service
8
- */
9
- create(): T;
10
- /**
11
- * Provides the service to the Vue application
12
- */
13
- provide(app: App): void;
14
- /**
15
- * Cleanup function called when the service is no longer needed
16
- */
17
- cleanup(): void;
18
- }
19
- /**
20
- * Interface for services that support pre-registration of items
21
- * before the service is fully initialized
22
- */
23
- export interface PreregistrationQueue<T> {
24
- /**
25
- * Items waiting to be registered
26
- */
27
- readonly items: readonly T[];
28
- /**
29
- * Register an item to be processed when the service initializes
30
- */
31
- register(item: T): void;
32
- /**
33
- * Flush all pending items and return them for processing
34
- */
35
- flush(): T[];
36
- /**
37
- * Clear the queue without processing
38
- */
39
- clear(): void;
40
- }
41
- /**
42
- * Base interface for registry-type services
43
- */
44
- export interface RegistryService<TKey, TItem> {
45
- /**
46
- * Register a new item in the registry
47
- */
48
- register(key: TKey, item: TItem): void;
49
- /**
50
- * Unregister an item from the registry
51
- */
52
- unregister(key: TKey): boolean;
53
- /**
54
- * Get an item by its key
55
- */
56
- get(key: TKey): TItem | undefined;
57
- /**
58
- * Check if an item exists in the registry
59
- */
60
- has(key: TKey): boolean;
61
- /**
62
- * Get all registered items
63
- */
64
- getAll(): Map<TKey, TItem>;
65
- /**
66
- * Clear all items from the registry
67
- */
68
- clear(): void;
69
- }
70
- /**
71
- * Interface for services that provide reactive lists
72
- */
73
- export interface ListService<T> {
74
- /**
75
- * Reactive reference to the list items
76
- */
77
- items: Ref<T[]>;
78
- /**
79
- * Add an item to the list
80
- */
81
- add(item: T): void;
82
- /**
83
- * Remove an item from the list
84
- */
85
- remove(item: T): boolean;
86
- /**
87
- * Find an item in the list
88
- */
89
- find(predicate: (item: T) => boolean): T | undefined;
90
- /**
91
- * Filter items in the list
92
- */
93
- filter(predicate: (item: T) => boolean): T[];
94
- }
95
- /**
96
- * Interface for services with ordered items
97
- */
98
- export interface OrderedListService<T> extends ListService<T> {
99
- /**
100
- * Reorder an item to a new position
101
- */
102
- reorder(fromIndex: number, toIndex: number): void;
103
- /**
104
- * Get items sorted by priority
105
- */
106
- getSorted(): T[];
107
- }
108
- /**
109
- * Result type for async service operations
110
- */
111
- export interface ServiceResult<T> {
112
- success: boolean;
113
- data?: T;
114
- error?: {
115
- code: string;
116
- message: string;
117
- details?: Record<string, unknown>;
118
- };
119
- }
120
- /**
121
- * Interface for services that support subscription to changes
122
- */
123
- export interface ObservableService<T> {
124
- /**
125
- * Subscribe to changes
126
- */
127
- subscribe(callback: (value: T) => void): () => void;
128
- /**
129
- * Get the current value
130
- */
131
- getValue(): T;
132
- }
133
- /**
134
- * Type for widget registration
135
- */
136
- export interface WidgetRegistration<TProps = Record<string, unknown>> {
137
- id: string;
138
- component: unknown;
139
- props?: TProps;
140
- order?: number;
141
- isVisible?: boolean | (() => boolean);
142
- }
143
- /**
144
- * Type for menu item registration
145
- */
146
- export interface MenuItemRegistration {
147
- id: string;
148
- title: string;
149
- icon?: string;
150
- priority?: number;
151
- permissions?: string | string[];
152
- routeId?: string;
153
- url?: string;
154
- group?: string;
155
- children?: MenuItemRegistration[];
156
- }
157
- /**
158
- * Type for toolbar item registration
159
- */
160
- export interface ToolbarItemRegistration {
161
- id: string;
162
- title: string;
163
- icon?: string;
164
- order?: number;
165
- disabled?: boolean;
166
- clickHandler?: () => void;
167
- permissions?: string | string[];
168
- }
169
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../core/types/services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,IAAI,CAAC,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,KAAK,IAAI,CAAC,EAAE,CAAC;IAEb;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,IAAI,EAAE,KAAK;IAC1C;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,UAAU,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC;IAE/B;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;IAElC;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAE3B;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,GAAG,CA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OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACjC"}
@@ -1,61 +0,0 @@
1
- /**
2
- * Base error class for VC-Shell framework
3
- * Provides structured error handling with error codes and context
4
- */
5
- export declare class FrameworkError extends Error {
6
- readonly code: string;
7
- readonly context?: Record<string, unknown> | undefined;
8
- constructor(message: string, code: string, context?: Record<string, unknown> | undefined);
9
- toJSON(): {
10
- name: string;
11
- code: string;
12
- message: string;
13
- context: Record<string, unknown> | undefined;
14
- stack: string | undefined;
15
- };
16
- }
17
- /**
18
- * Error thrown when validation fails
19
- */
20
- export declare class ValidationError extends FrameworkError {
21
- constructor(message: string, context?: Record<string, unknown>);
22
- }
23
- /**
24
- * Error thrown when a service operation fails
25
- */
26
- export declare class ServiceError extends FrameworkError {
27
- constructor(message: string, context?: Record<string, unknown>);
28
- }
29
- /**
30
- * Error thrown when a required dependency is not provided
31
- */
32
- export declare class InjectionError extends FrameworkError {
33
- constructor(serviceName: string, context?: Record<string, unknown>);
34
- }
35
- /**
36
- * Error thrown when component registration fails
37
- */
38
- export declare class RegistrationError extends FrameworkError {
39
- constructor(componentName: string, reason: string, context?: Record<string, unknown>);
40
- }
41
- /**
42
- * Error thrown when a blade operation fails
43
- */
44
- export declare class BladeError extends FrameworkError {
45
- constructor(message: string, bladeId?: string, context?: Record<string, unknown>);
46
- }
47
- /**
48
- * Error thrown when module loading fails
49
- */
50
- export declare class ModuleLoadError extends FrameworkError {
51
- constructor(moduleId: string, reason: string, context?: Record<string, unknown>);
52
- }
53
- /**
54
- * Type guard to check if an error is a FrameworkError
55
- */
56
- export declare function isFrameworkError(error: unknown): error is FrameworkError;
57
- /**
58
- * Wraps an unknown error into a FrameworkError
59
- */
60
- export declare function wrapError(error: unknown, code?: string): FrameworkError;
61
- //# sourceMappingURL=errorTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorTypes.d.ts","sourceRoot":"","sources":["../../../core/utilities/errorTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK;aAGrB,IAAI,EAAE,MAAM;aACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAFjD,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAA;IAWnD,MAAM;;;;;;;CASP;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;gBACrC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI/D;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,cAAc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