pixelon 0.3.24 → 0.3.26

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 (231) hide show
  1. package/dist/components/atoms/chat/AudioWaves/AudioWaves(1).d.ts +21 -0
  2. package/dist/components/atoms/chat/AudioWaves/index(1).d.ts +2 -0
  3. package/dist/components/atoms/chat/DateDivider/DateDivider(1).d.ts +7 -0
  4. package/dist/components/atoms/chat/Loader/Loader(1).d.ts +10 -0
  5. package/dist/components/atoms/chat/Loader/index(1).d.ts +2 -0
  6. package/dist/components/atoms/chat/Select/index(1).d.ts +2 -0
  7. package/dist/components/atoms/lumi/Button/Button(1).d.ts +17 -0
  8. package/dist/components/atoms/lumi/Checkbox/Checkbox(1).d.ts +5 -0
  9. package/dist/components/atoms/lumi/Checkbox/index(1).d.ts +2 -0
  10. package/dist/components/atoms/lumi/Checkbox/index(2).d.ts +2 -0
  11. package/dist/components/atoms/lumi/Checkbox/types(1).d.ts +93 -0
  12. package/dist/components/atoms/lumi/CurrencyDisplay/index(1).d.ts +2 -0
  13. package/dist/components/atoms/lumi/DateDisplay/index(1).d.ts +2 -0
  14. package/dist/components/atoms/lumi/DateDisplay/index(2).d.ts +2 -0
  15. package/dist/components/atoms/lumi/DateInput/DateInput(1).d.ts +27 -0
  16. package/dist/components/atoms/lumi/DateInput/WebDatePicker(1).d.ts +19 -0
  17. package/dist/components/atoms/lumi/DateInput/WebDatePicker(2).d.ts +19 -0
  18. package/dist/components/atoms/lumi/Icon/Icon(1).d.ts +52 -0
  19. package/dist/components/atoms/lumi/Input/index(1).d.ts +3 -0
  20. package/dist/components/atoms/lumi/Popover/index(1).d.ts +2 -0
  21. package/dist/components/atoms/lumi/Popover/types(1).d.ts +62 -0
  22. package/dist/components/atoms/lumi/TextArea/index(1).d.ts +2 -0
  23. package/dist/components/atoms/lumi/TextArea/types(1).d.ts +35 -0
  24. package/dist/components/atoms/lumi/TimeInput/TimeInput(1).d.ts +27 -0
  25. package/dist/components/atoms/lumi/TimeInput/TimeInput(2).d.ts +27 -0
  26. package/dist/components/molecules/chat/Drawer/Drawer.d.ts +2 -0
  27. package/dist/components/molecules/chat/FullscreenViewer/hooks/useSwipeGestures(1).d.ts +12 -0
  28. package/dist/components/molecules/chat/StructuredContent/StructuredContent(1).d.ts +10 -0
  29. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/CarouselDisplay.d.ts +4 -0
  30. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselCard/CarouselCard.d.ts +15 -0
  31. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselConfirm/CarouselConfirm.d.ts +10 -0
  32. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselSearch/CarouselSearch.d.ts +8 -0
  33. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselTrack/CarouselTrack.d.ts +11 -0
  34. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/actions.d.ts +26 -0
  35. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/carouselStore.d.ts +8 -0
  36. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/index.d.ts +6 -0
  37. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/storeKeys.d.ts +10 -0
  38. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/types.d.ts +11 -0
  39. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/types.d.ts +43 -0
  40. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/useCarouselSearch.d.ts +15 -0
  41. package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/useStoreState.d.ts +3 -0
  42. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField(1).d.ts +13 -0
  43. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField.d.ts +13 -0
  44. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/ReactiveForm.d.ts +4 -0
  45. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/ReactiveFormView.d.ts +10 -0
  46. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema(1).d.ts +4 -0
  47. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema.d.ts +4 -0
  48. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/resolveVariables.d.ts +20 -0
  49. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types(1).d.ts +91 -0
  50. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types.d.ts +100 -0
  51. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(1).d.ts +17 -0
  52. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(2).d.ts +23 -0
  53. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints.d.ts +23 -0
  54. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm(1).d.ts +38 -0
  55. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm.d.ts +38 -0
  56. package/dist/components/molecules/chat/StructuredContent/components/index.d.ts +2 -0
  57. package/dist/components/molecules/chat/StructuredContent/helpers/contentParser(1).d.ts +7 -0
  58. package/dist/components/molecules/chat/StructuredContent/helpers/fetchViaEventBus.d.ts +2 -0
  59. package/dist/components/molecules/chat/StructuredContent/index(1).d.ts +2 -0
  60. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(1).d.ts +10 -0
  61. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(2).d.ts +10 -0
  62. package/dist/components/molecules/lumi/Breadcrumb/types(1).d.ts +105 -0
  63. package/dist/components/molecules/lumi/Checkbox/Checkbox(1).d.ts +11 -0
  64. package/dist/components/molecules/lumi/Checkbox/index(1).d.ts +4 -0
  65. package/dist/components/molecules/lumi/Checkbox/use-cases/index(1).d.ts +1 -0
  66. package/dist/components/molecules/lumi/Checkbox/validation-helpers(1).d.ts +151 -0
  67. package/dist/components/molecules/lumi/DateInput/FormDateInput(1).d.ts +12 -0
  68. package/dist/components/molecules/lumi/DateInput/index(1).d.ts +2 -0
  69. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputClearWithResetUseCase(1).d.ts +21 -0
  70. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputErrorVisibilityUseCase(1).d.ts +21 -0
  71. package/dist/components/molecules/lumi/Drawer/Drawer(1).d.ts +39 -0
  72. package/dist/components/molecules/lumi/Drawer/index(1).d.ts +2 -0
  73. package/dist/components/molecules/lumi/DropdownMenu/DropdownMenu(1).d.ts +22 -0
  74. package/dist/components/molecules/lumi/DropdownMenu/index(1).d.ts +2 -0
  75. package/dist/components/molecules/lumi/DropdownMenu/types(1).d.ts +29 -0
  76. package/dist/components/molecules/lumi/Filter/FilterRow(1).d.ts +13 -0
  77. package/dist/components/molecules/lumi/Filter/helpers/conditionHelpers(1).d.ts +14 -0
  78. package/dist/components/molecules/lumi/Filter/index(1).d.ts +5 -0
  79. package/dist/components/molecules/lumi/Filter/types(1).d.ts +115 -0
  80. package/dist/components/molecules/lumi/Input/Input(1).d.ts +12 -0
  81. package/dist/components/molecules/lumi/Menu/Menu(1).d.ts +18 -0
  82. package/dist/components/molecules/lumi/Menu/MenuContext(1).d.ts +41 -0
  83. package/dist/components/molecules/lumi/Menu/MenuItem(1).d.ts +6 -0
  84. package/dist/components/molecules/lumi/Menu/MenuItem(2).d.ts +6 -0
  85. package/dist/components/molecules/lumi/Menu/MenuItemGroup(1).d.ts +6 -0
  86. package/dist/components/molecules/lumi/Menu/SubMenu(1).d.ts +6 -0
  87. package/dist/components/molecules/lumi/Menu/iconHelper(1).d.ts +15 -0
  88. package/dist/components/molecules/lumi/Menu/index(1).d.ts +8 -0
  89. package/dist/components/molecules/lumi/Menu/index(2).d.ts +8 -0
  90. package/dist/components/molecules/lumi/Menu/types(1).d.ts +119 -0
  91. package/dist/components/molecules/lumi/Pagination/Pagination(1).d.ts +4 -0
  92. package/dist/components/molecules/lumi/Pagination/index(1).d.ts +2 -0
  93. package/dist/components/molecules/lumi/Select/Select(1).d.ts +14 -0
  94. package/dist/components/molecules/lumi/Select/Select(2).d.ts +14 -0
  95. package/dist/components/molecules/lumi/Select/Select(3).d.ts +14 -0
  96. package/dist/components/molecules/lumi/Select/index(1).d.ts +2 -0
  97. package/dist/components/molecules/lumi/Select/index(2).d.ts +2 -0
  98. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts +21 -0
  99. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts +21 -0
  100. package/dist/components/molecules/lumi/Select/use-cases/index(1).d.ts +2 -0
  101. package/dist/components/molecules/lumi/Select/use-cases/index(2).d.ts +2 -0
  102. package/dist/components/molecules/lumi/Table/Table(1).d.ts +6 -0
  103. package/dist/components/molecules/lumi/Table/Table(2).d.ts +6 -0
  104. package/dist/components/molecules/lumi/Table/index(1).d.ts +2 -0
  105. package/dist/components/molecules/lumi/Table/types(1).d.ts +177 -0
  106. package/dist/components/molecules/lumi/Table/types(2).d.ts +177 -0
  107. package/dist/components/molecules/lumi/Tabs/Tabs(1).d.ts +4 -0
  108. package/dist/components/molecules/lumi/Tabs/Tabs(2).d.ts +4 -0
  109. package/dist/components/molecules/lumi/Tabs/index(1).d.ts +2 -0
  110. package/dist/components/molecules/lumi/Tabs/index(2).d.ts +2 -0
  111. package/dist/components/molecules/lumi/TimeInput/FormTimeInput(1).d.ts +12 -0
  112. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputClearWithResetUseCase(1).d.ts +21 -0
  113. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputErrorVisibilityUseCase(1).d.ts +21 -0
  114. package/dist/components/molecules/lumi/TimeInput/use-cases/index(1).d.ts +4 -0
  115. package/dist/components/organisms/chat/Chat/Chat(1).d.ts +12 -0
  116. package/dist/components/organisms/chat/Chat/hooks/useChatHandlers(1).d.ts +15 -0
  117. package/dist/components/organisms/chat/Chat/hooks/useChatStore.d.ts +3 -0
  118. package/dist/components/organisms/chat/Chat/hooks/useKeyboardLock(1).d.ts +15 -0
  119. package/dist/components/organisms/chat/Chat/index(1).d.ts +3 -0
  120. package/dist/components/organisms/chat/Chat/store/actions.d.ts +3 -0
  121. package/dist/components/organisms/chat/Chat/store/index(1).d.ts +4 -0
  122. package/dist/components/organisms/chat/Chat/store/types.d.ts +3 -0
  123. package/dist/components/organisms/chat/Chat/use-cases/GroupMessagesByDateUseCase(1).d.ts +20 -0
  124. package/dist/components/organisms/chat/index(1).d.ts +3 -0
  125. package/dist/components/organisms/chat/index(2).d.ts +3 -0
  126. package/dist/components/organisms/lumi/ActionBar/ActionBar(1).d.ts +18 -0
  127. package/dist/components/organisms/lumi/ActionBar/types(1).d.ts +57 -0
  128. package/dist/components/organisms/lumi/BaseNavbar/types(1).d.ts +34 -0
  129. package/dist/components/organisms/lumi/BaseWorkspace/BaseWorkspace(1).d.ts +28 -0
  130. package/dist/components/organisms/lumi/BaseWorkspace/index(1).d.ts +2 -0
  131. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(1).d.ts +18 -0
  132. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(2).d.ts +18 -0
  133. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(3).d.ts +18 -0
  134. package/dist/components/organisms/lumi/Calendar/components/CalendarHeader(1).d.ts +14 -0
  135. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(1).d.ts +10 -0
  136. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(2).d.ts +10 -0
  137. package/dist/components/organisms/lumi/Calendar/hooks/index(1).d.ts +4 -0
  138. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(1).d.ts +58 -0
  139. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(2).d.ts +58 -0
  140. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(1).d.ts +21 -0
  141. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(2).d.ts +21 -0
  142. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(1).d.ts +14 -0
  143. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(2).d.ts +14 -0
  144. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(3).d.ts +14 -0
  145. package/dist/components/organisms/lumi/Calendar/i18n/index(1).d.ts +1 -0
  146. package/dist/components/organisms/lumi/Calendar/i18n/index(2).d.ts +1 -0
  147. package/dist/components/organisms/lumi/Calendar/i18n/translations(1).d.ts +34 -0
  148. package/dist/components/organisms/lumi/Calendar/index(1).d.ts +2 -0
  149. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(1).d.ts +140 -0
  150. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(2).d.ts +140 -0
  151. package/dist/components/organisms/lumi/Calendar/utils/index(1).d.ts +2 -0
  152. package/dist/components/organisms/lumi/Calendar/utils/multiDayUtils(1).d.ts +73 -0
  153. package/dist/components/organisms/lumi/Calendar/views/DayView(1).d.ts +17 -0
  154. package/dist/components/organisms/lumi/Calendar/views/DayView(2).d.ts +17 -0
  155. package/dist/components/organisms/lumi/Calendar/views/MonthView(1).d.ts +17 -0
  156. package/dist/components/organisms/lumi/Calendar/views/MonthView(2).d.ts +17 -0
  157. package/dist/components/organisms/lumi/Calendar/views/WeekView(1).d.ts +19 -0
  158. package/dist/components/organisms/lumi/Calendar/views/WeekView(2).d.ts +19 -0
  159. package/dist/components/organisms/lumi/Calendar/views/YearView(1).d.ts +13 -0
  160. package/dist/components/organisms/lumi/Calendar/views/index(1).d.ts +4 -0
  161. package/dist/components/organisms/lumi/Calendar/views/index(2).d.ts +4 -0
  162. package/dist/components/organisms/lumi/DashboardNavbar/index(1).d.ts +7 -0
  163. package/dist/components/organisms/lumi/DashboardNavbar/types(1).d.ts +52 -0
  164. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(1).d.ts +23 -0
  165. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(2).d.ts +23 -0
  166. package/dist/components/organisms/lumi/DashboardWorkspace/index(1).d.ts +7 -0
  167. package/dist/components/organisms/lumi/DashboardWorkspace/index(2).d.ts +7 -0
  168. package/dist/components/organisms/lumi/DashboardWorkspace/types(1).d.ts +60 -0
  169. package/dist/components/organisms/lumi/DashboardWorkspace/types(2).d.ts +60 -0
  170. package/dist/components/organisms/lumi/DynamicForm/DynamicForm(1).d.ts +21 -0
  171. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(1).d.ts +17 -0
  172. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(2).d.ts +17 -0
  173. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(1).d.ts +6 -0
  174. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(2).d.ts +6 -0
  175. package/dist/components/organisms/lumi/DynamicForm/index(1).d.ts +2 -0
  176. package/dist/components/organisms/lumi/DynamicForm/index(2).d.ts +2 -0
  177. package/dist/components/organisms/lumi/DynamicForm/types(1).d.ts +96 -0
  178. package/dist/components/organisms/lumi/DynamicForm/types(2).d.ts +96 -0
  179. package/dist/components/organisms/lumi/FormDrawer/FormDrawer(1).d.ts +5 -0
  180. package/dist/components/organisms/lumi/FormDrawer/index(1).d.ts +3 -0
  181. package/dist/components/organisms/lumi/FormDrawer/types(1).d.ts +61 -0
  182. package/dist/components/organisms/lumi/FormDrawer/types(2).d.ts +61 -0
  183. package/dist/components/organisms/lumi/Stepper/StepIndicator(1).d.ts +4 -0
  184. package/dist/components/organisms/lumi/Stepper/Stepper(1).d.ts +5 -0
  185. package/dist/components/organisms/lumi/Stepper/index(1).d.ts +3 -0
  186. package/dist/components/organisms/lumi/Stepper/types(1).d.ts +96 -0
  187. package/dist/components/organisms/lumi/Stepper/types(2).d.ts +96 -0
  188. package/dist/components/organisms/lumi/index(1).d.ts +10 -0
  189. package/dist/components/organisms/lumi/index(2).d.ts +10 -0
  190. package/dist/components/templates/chat/ChatWidget/ChatWidget(1).d.ts +10 -0
  191. package/dist/components/templates/chat/ChatWidget/hooks/index(1).d.ts +1 -0
  192. package/dist/components/templates/chat/ChatWidget/index(1).d.ts +2 -0
  193. package/dist/components/templates/chat/ChatWidget/index(2).d.ts +2 -0
  194. package/dist/components/templates/chat/ChatWidget/types(1).d.ts +90 -0
  195. package/dist/components/templates/lumi/Base/hooks/index(1).d.ts +2 -0
  196. package/dist/components/templates/lumi/Base/hooks/useAppHeight(1).d.ts +21 -0
  197. package/dist/components/templates/lumi/Base/index(1).d.ts +2 -0
  198. package/dist/components/templates/lumi/Base/types(1).d.ts +54 -0
  199. package/dist/components/templates/lumi/Crud/Crud(1).d.ts +6 -0
  200. package/dist/components/templates/lumi/Crud/Crud(2).d.ts +6 -0
  201. package/dist/components/templates/lumi/Crud/helpers/fieldMapper(1).d.ts +13 -0
  202. package/dist/components/templates/lumi/Crud/hooks/useCrudActions(1).d.ts +11 -0
  203. package/dist/components/templates/lumi/Crud/index(1).d.ts +2 -0
  204. package/dist/components/templates/lumi/Crud/store/actions(1).d.ts +45 -0
  205. package/dist/components/templates/lumi/Crud/store/crudStore(1).d.ts +8 -0
  206. package/dist/components/templates/lumi/Crud/store/index(1).d.ts +5 -0
  207. package/dist/components/templates/lumi/Crud/store/types(1).d.ts +71 -0
  208. package/dist/components/templates/lumi/Dashboard/Dashboard(1).d.ts +25 -0
  209. package/dist/components/templates/lumi/Dashboard/hooks/index(1).d.ts +12 -0
  210. package/dist/components/templates/lumi/Dashboard/hooks/index(2).d.ts +12 -0
  211. package/dist/components/templates/lumi/Dashboard/hooks/useDashboardStore(1).d.ts +34 -0
  212. package/dist/components/templates/lumi/Dashboard/hooks/useScrollToTop(1).d.ts +47 -0
  213. package/dist/components/templates/lumi/Dashboard/index(1).d.ts +10 -0
  214. package/dist/components/templates/lumi/Dashboard/store/storeKeys(1).d.ts +13 -0
  215. package/dist/components/templates/lumi/Dashboard/store/types(1).d.ts +73 -0
  216. package/dist/components/templates/lumi/Dashboard/store/types(2).d.ts +73 -0
  217. package/dist/components/templates/lumi/Dashboard/types(1).d.ts +114 -0
  218. package/dist/components/templates/lumi/Dashboard/types(2).d.ts +114 -0
  219. package/dist/components/templates/lumi/index(1).d.ts +3 -0
  220. package/dist/core/chat/ChatConfigContext(1).d.ts +36 -0
  221. package/dist/core/chat/chatMessage.d.ts +1 -1
  222. package/dist/core/eventBus/chatEventBus.d.ts +72 -0
  223. package/dist/index(1).esm.js +19378 -0
  224. package/dist/index(1).js +19487 -0
  225. package/dist/index.esm.js +2260 -382
  226. package/dist/index.js +2260 -382
  227. package/dist/styles(1).css +1 -0
  228. package/dist/styles.css +1 -1
  229. package/dist/styles.css.map +1 -1
  230. package/package.json +1 -1
  231. package/src/styles/index.scss +7 -0
@@ -0,0 +1,21 @@
1
+ import type { Control, ControllerRenderProps } from 'react-hook-form';
2
+ export interface FormTimeInputErrorVisibilityOptions {
3
+ clearWithReset: boolean | string | number;
4
+ hasError: string | undefined;
5
+ wasClearedRef: {
6
+ current: boolean;
7
+ };
8
+ field: ControllerRenderProps<any, string>;
9
+ control: Control<any>;
10
+ name: string;
11
+ }
12
+ /**
13
+ * Hook personalizado para manejar la visibilidad de errores en TimeInput
14
+ * considerando la funcionalidad clearWithReset
15
+ *
16
+ * @param options - Configuración para el manejo de visibilidad de errores
17
+ * @returns shouldShowError - Boolean que indica si se debe mostrar el error
18
+ */
19
+ export declare const useFormTimeInputErrorVisibility: (options: FormTimeInputErrorVisibilityOptions) => {
20
+ shouldShowError: boolean;
21
+ };
@@ -0,0 +1,4 @@
1
+ export { useFormTimeInputErrorVisibility } from './FormTimeInputErrorVisibilityUseCase';
2
+ export { useFormTimeInputClearWithReset } from './FormTimeInputClearWithResetUseCase';
3
+ export type { FormTimeInputErrorVisibilityOptions } from './FormTimeInputErrorVisibilityUseCase';
4
+ export type { FormTimeInputClearWithResetOptions } from './FormTimeInputClearWithResetUseCase';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { ChatEventBus } from "../../../../core/eventBus";
3
+ import type { ChatConfig, ChatMessage } from "../../../../core/chat";
4
+ export type { ChatMessage };
5
+ export interface ChatProps {
6
+ /** Configuración estática/visual del chat */
7
+ config?: Partial<ChatConfig>;
8
+ /** EventBus para comunicación bidireccional */
9
+ eventBus: ChatEventBus;
10
+ }
11
+ export declare const Chat: React.FC<ChatProps>;
12
+ export default Chat;
@@ -0,0 +1,15 @@
1
+ export interface UseChatHandlersOptions {
2
+ onSend: (content: string, files?: File[]) => void;
3
+ onInputChange: (value: string) => void;
4
+ clearAttachments: () => void;
5
+ scrollToLastUserMessage: () => void;
6
+ }
7
+ export interface UseChatHandlersReturn {
8
+ handleSendWithFiles: (content: string, files?: File[]) => void;
9
+ handleInputKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>, inputValue: string, attachments: File[]) => void;
10
+ }
11
+ /**
12
+ * Hook para manejar las acciones del chat como envío de mensajes
13
+ * Centraliza la lógica de envío y manejo de eventos del input
14
+ */
15
+ export declare const useChatHandlers: ({ onSend, onInputChange, clearAttachments, scrollToLastUserMessage }: UseChatHandlersOptions) => UseChatHandlersReturn;
@@ -1,5 +1,8 @@
1
1
  export interface UseChatStoreReturn {
2
2
  showThinking: boolean;
3
+ agentName?: string;
4
+ agentLabel?: string;
5
+ toolName?: string;
3
6
  scrollButtonState: {
4
7
  visible: boolean;
5
8
  };
@@ -0,0 +1,15 @@
1
+ export interface UseKeyboardLockOptions {
2
+ textareaSelector: string;
3
+ }
4
+ /**
5
+ * Proxy-textarea approach to prevent iOS Safari keyboard scroll jump.
6
+ *
7
+ * When the keyboard is closed and the user taps the real textarea,
8
+ * we intercept the touch → focus an invisible proxy textarea at top:0
9
+ * (Safari opens the keyboard without scrolling) → once the keyboard
10
+ * settles (debounced visualViewport.resize) → transfer focus to the
11
+ * real textarea (keyboard stays open, no re-scroll).
12
+ *
13
+ * No-op on desktop/Android.
14
+ */
15
+ export declare function useKeyboardLock({ textareaSelector }: UseKeyboardLockOptions): void;
@@ -0,0 +1,3 @@
1
+ export { Chat } from './Chat';
2
+ export type { ChatProps } from './Chat';
3
+ export type { ChatMessage } from '../../../../core/chat';
@@ -28,6 +28,9 @@ export declare const thinkingActions: {
28
28
  show: () => void;
29
29
  hide: () => void;
30
30
  setThinking: (isThinking: boolean) => void;
31
+ setAgentName: (agentName: string | undefined) => void;
32
+ setAgentLabel: (agentLabel: string | undefined) => void;
33
+ setToolName: (toolName: string | undefined) => void;
31
34
  };
32
35
  export declare const scrollButtonActions: {
33
36
  setVisible: (visible: boolean) => void;
@@ -0,0 +1,4 @@
1
+ export { chatStore, setChatStore, subscribeChatProperty } from './chatStore';
2
+ export type { ChatStoreState } from './types';
3
+ export { CHAT_STORE_KEYS } from './storeKeys';
4
+ export { textareaActions, keyboardActions, chatInputActions, thinkingActions, scrollButtonActions, scrollToTopActions, combinedActions } from './actions';
@@ -17,6 +17,9 @@ export interface ChatStoreState {
17
17
  };
18
18
  [CHAT_STORE_KEYS.ASSISTANT_THINKING_INDICATOR]: {
19
19
  visible: boolean;
20
+ agentName?: string;
21
+ agentLabel?: string;
22
+ toolName?: string;
20
23
  };
21
24
  [CHAT_STORE_KEYS.SCROLL_BUTTON]: {
22
25
  visible: boolean;
@@ -0,0 +1,20 @@
1
+ import type { ChatMessage } from '../Chat';
2
+ /**
3
+ * Caso de uso: Agrupar Mensajes por Fecha
4
+ * Responsabilidad: Organizar mensajes por fecha para mostrarlos con separadores de fecha
5
+ */
6
+ export interface MessageGroup {
7
+ date: Date;
8
+ messages: ChatMessage[];
9
+ }
10
+ export interface GroupMessagesByDateRequest {
11
+ messages: ChatMessage[];
12
+ }
13
+ export interface GroupMessagesByDateResponse {
14
+ success: boolean;
15
+ groups: MessageGroup[];
16
+ error?: string;
17
+ }
18
+ export declare class GroupMessagesByDateUseCase {
19
+ execute(request: GroupMessagesByDateRequest): GroupMessagesByDateResponse;
20
+ }
@@ -0,0 +1,3 @@
1
+ export { Chat } from './Chat';
2
+ export type { ChatProps } from './Chat';
3
+ export type { ChatMessage } from '../../../core/chat';
@@ -0,0 +1,3 @@
1
+ export { Chat } from './Chat';
2
+ export type { ChatProps } from './Chat';
3
+ export type { ChatMessage } from '../../../core/chat';
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { ActionBarProps } from "./types";
3
+ import "./ActionBar.scss";
4
+ /**
5
+ * ActionBar - Organismo de Lumi
6
+ *
7
+ * Barra de acciones con botones que se habilitan/deshabilitan dinámicamente
8
+ * según el estado de selección de filas en una tabla.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <ActionBar
13
+ * actions={crudActions}
14
+ * selectedCount={selectedKeys.length}
15
+ * />
16
+ * ```
17
+ */
18
+ export declare const ActionBar: React.FC<ActionBarProps>;
@@ -0,0 +1,57 @@
1
+ import type { LumiIconType } from '../../../atoms/lumi/Icon';
2
+ /**
3
+ * Condición para habilitar un botón de acción
4
+ */
5
+ export type EnableCondition = 'always' | 'none-selected' | 'one-selected' | 'many-selected' | 'any-selected';
6
+ /**
7
+ * Configuración de una acción individual
8
+ */
9
+ export interface ActionConfig {
10
+ /** Key única de la acción */
11
+ key: string;
12
+ /** Label del botón */
13
+ label: string;
14
+ /** Icono del botón (tipo de icono Lumi) */
15
+ icon?: LumiIconType;
16
+ /** Callback al hacer click */
17
+ onClick: () => void;
18
+ /** Condición para habilitar el botón */
19
+ enableWhen?: EnableCondition;
20
+ /** Variante del botón */
21
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
22
+ /** Deshabilitar esta acción específica */
23
+ disabled?: boolean;
24
+ /** Mostrar badge con contador */
25
+ showBadge?: boolean;
26
+ /** Valor del badge */
27
+ badgeValue?: number | string;
28
+ /** Tooltip del botón */
29
+ tooltip?: string;
30
+ /** Orden de renderizado (menor primero) */
31
+ order?: number;
32
+ /** Posición del botón (izquierda o derecha) */
33
+ position?: 'left' | 'right';
34
+ }
35
+ /**
36
+ * Props del componente ActionBar
37
+ */
38
+ export interface ActionBarProps {
39
+ /** Acciones a mostrar en la barra */
40
+ actions: ActionConfig[];
41
+ /** Número de filas seleccionadas (para habilitar/deshabilitar botones) */
42
+ selectedCount: number;
43
+ /** Deshabilitar toda la barra */
44
+ disabled?: boolean;
45
+ /** Alineación de los botones */
46
+ align?: 'left' | 'center' | 'right' | 'space-between';
47
+ /** Tamaño de los botones */
48
+ size?: 'small' | 'medium' | 'large';
49
+ /** Mostrar labels en los botones (por defecto: true) */
50
+ showLabels?: boolean;
51
+ /** Mostrar labels en mobile */
52
+ showLabelsOnMobile?: boolean;
53
+ /** Clase CSS adicional */
54
+ className?: string;
55
+ /** Test ID */
56
+ 'data-testid'?: string;
57
+ }
@@ -0,0 +1,34 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props del organismo BaseNavbar
4
+ */
5
+ export interface BaseNavbarProps {
6
+ /**
7
+ * Contenido del navbar (cualquier ReactNode)
8
+ * Puede incluir logos, menús, botones, breadcrumbs, etc.
9
+ */
10
+ children?: ReactNode;
11
+ /**
12
+ * Altura del navbar en píxeles
13
+ * @default 64
14
+ */
15
+ height?: number;
16
+ /**
17
+ * Color de fondo del navbar
18
+ * @default '#ffffff'
19
+ */
20
+ backgroundColor?: string;
21
+ /**
22
+ * Mostrar sombra inferior en el navbar
23
+ * @default true
24
+ */
25
+ showShadow?: boolean;
26
+ /**
27
+ * Clase CSS adicional
28
+ */
29
+ className?: string;
30
+ /**
31
+ * Test ID para testing
32
+ */
33
+ 'data-testid'?: string;
34
+ }
@@ -0,0 +1,28 @@
1
+ import { type FC } from 'react';
2
+ import type { BaseWorkspaceProps } from './types';
3
+ import './BaseWorkspace.scss';
4
+ /**
5
+ * BaseWorkspace - Organismo de Lumi
6
+ *
7
+ * Área de trabajo principal con scroll automático y botón "volver arriba".
8
+ * Parte del Template Base para layouts simples.
9
+ *
10
+ * Características:
11
+ * - Scroll automático
12
+ * - Altura adaptativa (calc(var(--app-height) - navbarHeight))
13
+ * - Botón "volver arriba" opcional (aparece en scrollTop > 300px)
14
+ * - Padding personalizable
15
+ * - Color de fondo personalizable
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <BaseWorkspace
20
+ * navbarHeight={64}
21
+ * enableScrollToTop={true}
22
+ * padding="24px"
23
+ * >
24
+ * <MainContent />
25
+ * </BaseWorkspace>
26
+ * ```
27
+ */
28
+ export declare const BaseWorkspace: FC<BaseWorkspaceProps>;
@@ -0,0 +1,2 @@
1
+ export { BaseWorkspace } from './BaseWorkspace';
2
+ export type { BaseWorkspaceProps } from './types';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { ProcessedEvent, CalendarView, EventRenderProps } from '../types';
3
+ interface CalendarEventProps {
4
+ event: ProcessedEvent;
5
+ view: CalendarView;
6
+ style: React.CSSProperties;
7
+ color: {
8
+ background: string;
9
+ text: string;
10
+ border?: string;
11
+ };
12
+ onClick?: (event: ProcessedEvent, e: React.MouseEvent) => void;
13
+ renderEvent?: (props: EventRenderProps) => React.ReactNode;
14
+ locale?: string;
15
+ showPopover?: boolean;
16
+ }
17
+ export declare const CalendarEvent: React.FC<CalendarEventProps>;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { ProcessedEvent, CalendarView, EventRenderProps } from '../types';
3
+ interface CalendarEventProps {
4
+ event: ProcessedEvent;
5
+ view: CalendarView;
6
+ style: React.CSSProperties;
7
+ color: {
8
+ background: string;
9
+ text: string;
10
+ border?: string;
11
+ };
12
+ onClick?: (event: ProcessedEvent, e: React.MouseEvent) => void;
13
+ renderEvent?: (props: EventRenderProps) => React.ReactNode;
14
+ locale?: string;
15
+ showPopover?: boolean;
16
+ }
17
+ export declare const CalendarEvent: React.FC<CalendarEventProps>;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { ProcessedEvent, CalendarView, EventRenderProps } from '../types';
3
+ interface CalendarEventProps {
4
+ event: ProcessedEvent;
5
+ view: CalendarView;
6
+ style: React.CSSProperties;
7
+ color: {
8
+ background: string;
9
+ text: string;
10
+ border?: string;
11
+ };
12
+ onClick?: (event: ProcessedEvent, e: React.MouseEvent) => void;
13
+ renderEvent?: (props: EventRenderProps) => React.ReactNode;
14
+ locale?: string;
15
+ showPopover?: boolean;
16
+ }
17
+ export declare const CalendarEvent: React.FC<CalendarEventProps>;
18
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { CalendarView, CalendarLabels } from '../types';
3
+ interface CalendarHeaderProps {
4
+ title: string;
5
+ view: CalendarView;
6
+ availableViews: CalendarView[];
7
+ onPrev: () => void;
8
+ onNext: () => void;
9
+ onToday: () => void;
10
+ onViewChange: (view: CalendarView) => void;
11
+ labels?: CalendarLabels;
12
+ }
13
+ export declare const CalendarHeader: React.FC<CalendarHeaderProps>;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { TimeSlot } from '../types';
3
+ interface TimeGutterProps {
4
+ slots: TimeSlot[];
5
+ slotHeight: number;
6
+ slotInterval: 15 | 30 | 60;
7
+ totalHeight?: number;
8
+ }
9
+ export declare const TimeGutter: React.FC<TimeGutterProps>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { TimeSlot } from '../types';
3
+ interface TimeGutterProps {
4
+ slots: TimeSlot[];
5
+ slotHeight: number;
6
+ slotInterval: 15 | 30 | 60;
7
+ totalHeight?: number;
8
+ }
9
+ export declare const TimeGutter: React.FC<TimeGutterProps>;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './useCalendarNavigation';
2
+ export * from './useTimeSlots';
3
+ export * from './useEventLayout';
4
+ export * from './useCalendarHeight';
@@ -0,0 +1,58 @@
1
+ import { type RefObject } from 'react';
2
+ interface UseCalendarHeightOptions {
3
+ /**
4
+ * Altura fija proporcionada por el usuario
5
+ * Si es 'auto', calculará la altura disponible
6
+ */
7
+ height?: string | number;
8
+ /**
9
+ * Offset adicional a restar (ej: para márgenes externos)
10
+ * @default 0
11
+ */
12
+ offset?: number;
13
+ /**
14
+ * Altura mínima del calendario
15
+ * @default 400
16
+ */
17
+ minHeight?: number;
18
+ /**
19
+ * Referencia al contenedor padre para calcular altura relativa
20
+ */
21
+ containerRef?: RefObject<HTMLElement>;
22
+ }
23
+ interface UseCalendarHeightReturn {
24
+ /**
25
+ * Altura calculada en píxeles o string CSS
26
+ */
27
+ calculatedHeight: string;
28
+ /**
29
+ * Forzar recálculo de altura
30
+ */
31
+ recalculate: () => void;
32
+ }
33
+ /**
34
+ * Hook para manejar la altura del calendario
35
+ *
36
+ * Calcula automáticamente la altura disponible basándose en:
37
+ * - El viewport (usando visualViewport para móviles)
38
+ * - El contenedor padre si se proporciona
39
+ * - Una altura fija si se especifica
40
+ *
41
+ * @example
42
+ * // Altura automática
43
+ * const { calculatedHeight } = useCalendarHeight({ height: 'auto' });
44
+ *
45
+ * @example
46
+ * // Altura fija
47
+ * const { calculatedHeight } = useCalendarHeight({ height: 600 });
48
+ *
49
+ * @example
50
+ * // Relativa al contenedor
51
+ * const containerRef = useRef<HTMLDivElement>(null);
52
+ * const { calculatedHeight } = useCalendarHeight({
53
+ * height: 'auto',
54
+ * containerRef
55
+ * });
56
+ */
57
+ export declare const useCalendarHeight: ({ height, offset, minHeight, containerRef, }?: UseCalendarHeightOptions) => UseCalendarHeightReturn;
58
+ export default useCalendarHeight;
@@ -0,0 +1,58 @@
1
+ import { type RefObject } from 'react';
2
+ interface UseCalendarHeightOptions {
3
+ /**
4
+ * Altura fija proporcionada por el usuario
5
+ * Si es 'auto', calculará la altura disponible
6
+ */
7
+ height?: string | number;
8
+ /**
9
+ * Offset adicional a restar (ej: para márgenes externos)
10
+ * @default 0
11
+ */
12
+ offset?: number;
13
+ /**
14
+ * Altura mínima del calendario
15
+ * @default 400
16
+ */
17
+ minHeight?: number;
18
+ /**
19
+ * Referencia al contenedor padre para calcular altura relativa
20
+ */
21
+ containerRef?: RefObject<HTMLElement>;
22
+ }
23
+ interface UseCalendarHeightReturn {
24
+ /**
25
+ * Altura calculada en píxeles o string CSS
26
+ */
27
+ calculatedHeight: string;
28
+ /**
29
+ * Forzar recálculo de altura
30
+ */
31
+ recalculate: () => void;
32
+ }
33
+ /**
34
+ * Hook para manejar la altura del calendario
35
+ *
36
+ * Calcula automáticamente la altura disponible basándose en:
37
+ * - El viewport (usando visualViewport para móviles)
38
+ * - El contenedor padre si se proporciona
39
+ * - Una altura fija si se especifica
40
+ *
41
+ * @example
42
+ * // Altura automática
43
+ * const { calculatedHeight } = useCalendarHeight({ height: 'auto' });
44
+ *
45
+ * @example
46
+ * // Altura fija
47
+ * const { calculatedHeight } = useCalendarHeight({ height: 600 });
48
+ *
49
+ * @example
50
+ * // Relativa al contenedor
51
+ * const containerRef = useRef<HTMLDivElement>(null);
52
+ * const { calculatedHeight } = useCalendarHeight({
53
+ * height: 'auto',
54
+ * containerRef
55
+ * });
56
+ */
57
+ export declare const useCalendarHeight: ({ height, offset, minHeight, containerRef, }?: UseCalendarHeightOptions) => UseCalendarHeightReturn;
58
+ export default useCalendarHeight;
@@ -0,0 +1,21 @@
1
+ import type { CalendarEvent, ProcessedEvent, EventColorConfig } from '../types';
2
+ interface UseEventLayoutProps {
3
+ events: CalendarEvent[];
4
+ date: Date;
5
+ dayStartHour: number;
6
+ dayEndHour: number;
7
+ slotInterval: 15 | 30 | 60;
8
+ slotHeight: number;
9
+ eventColors?: EventColorConfig;
10
+ }
11
+ interface UseEventLayoutReturn {
12
+ processedEvents: ProcessedEvent[];
13
+ getEventStyle: (event: ProcessedEvent) => React.CSSProperties;
14
+ getEventColor: (event: ProcessedEvent) => {
15
+ background: string;
16
+ text: string;
17
+ border?: string;
18
+ };
19
+ }
20
+ export declare const useEventLayout: ({ events, date, dayStartHour, dayEndHour, slotInterval, slotHeight, eventColors, }: UseEventLayoutProps) => UseEventLayoutReturn;
21
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { CalendarEvent, ProcessedEvent, EventColorConfig } from '../types';
2
+ interface UseEventLayoutProps {
3
+ events: CalendarEvent[];
4
+ date: Date;
5
+ dayStartHour: number;
6
+ dayEndHour: number;
7
+ slotInterval: 15 | 30 | 60;
8
+ slotHeight: number;
9
+ eventColors?: EventColorConfig;
10
+ }
11
+ interface UseEventLayoutReturn {
12
+ processedEvents: ProcessedEvent[];
13
+ getEventStyle: (event: ProcessedEvent) => React.CSSProperties;
14
+ getEventColor: (event: ProcessedEvent) => {
15
+ background: string;
16
+ text: string;
17
+ border?: string;
18
+ };
19
+ }
20
+ export declare const useEventLayout: ({ events, date, dayStartHour, dayEndHour, slotInterval, slotHeight, eventColors, }: UseEventLayoutProps) => UseEventLayoutReturn;
21
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { TimeSlot } from '../types';
2
+ interface UseTimeSlotsProps {
3
+ dayStartHour: number;
4
+ dayEndHour: number;
5
+ slotInterval: 15 | 30 | 60;
6
+ date: Date;
7
+ }
8
+ interface UseTimeSlotsReturn {
9
+ slots: TimeSlot[];
10
+ totalSlots: number;
11
+ slotHeight: number;
12
+ }
13
+ export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { TimeSlot } from '../types';
2
+ interface UseTimeSlotsProps {
3
+ dayStartHour: number;
4
+ dayEndHour: number;
5
+ slotInterval: 15 | 30 | 60;
6
+ date: Date;
7
+ }
8
+ interface UseTimeSlotsReturn {
9
+ slots: TimeSlot[];
10
+ totalSlots: number;
11
+ slotHeight: number;
12
+ }
13
+ export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { TimeSlot } from '../types';
2
+ interface UseTimeSlotsProps {
3
+ dayStartHour: number;
4
+ dayEndHour: number;
5
+ slotInterval: 15 | 30 | 60;
6
+ date: Date;
7
+ }
8
+ interface UseTimeSlotsReturn {
9
+ slots: TimeSlot[];
10
+ totalSlots: number;
11
+ slotHeight: number;
12
+ }
13
+ export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
14
+ export {};
@@ -0,0 +1 @@
1
+ export { getTranslations, getLanguageFromLocale, formatMessage, type CalendarLocale, type CalendarTranslations, } from './translations';
@@ -0,0 +1 @@
1
+ export { getTranslations, getLanguageFromLocale, formatMessage, type CalendarLocale, type CalendarTranslations, } from './translations';
@@ -0,0 +1,34 @@
1
+ import type { CalendarLabels } from '../types';
2
+ /**
3
+ * Traducciones por defecto del calendario
4
+ * Soporta: español (es), inglés (en), portugués (pt)
5
+ */
6
+ export type CalendarLocale = 'es' | 'en' | 'pt';
7
+ export interface CalendarTranslations extends CalendarLabels {
8
+ today: string;
9
+ day: string;
10
+ week: string;
11
+ month: string;
12
+ year: string;
13
+ noEvents: string;
14
+ moreEvents: string;
15
+ allDay: string;
16
+ loading: string;
17
+ }
18
+ /**
19
+ * Extrae el código de idioma base del locale
20
+ * Ej: 'es-ES' -> 'es', 'pt-BR' -> 'pt', 'en-US' -> 'en'
21
+ */
22
+ export declare const getLanguageFromLocale: (locale: string) => CalendarLocale;
23
+ /**
24
+ * Obtiene las traducciones para un locale
25
+ * @param locale - Locale string (ej: 'es-ES', 'en-US', 'pt-BR')
26
+ * @param customLabels - Labels personalizados que sobreescriben los defaults
27
+ */
28
+ export declare const getTranslations: (locale?: string, customLabels?: Partial<CalendarLabels>) => CalendarTranslations;
29
+ /**
30
+ * Formatea un texto con placeholders
31
+ * @param template - Template con placeholders {key}
32
+ * @param values - Objeto con valores para reemplazar
33
+ */
34
+ export declare const formatMessage: (template: string, values: Record<string, string | number>) => string;
@@ -0,0 +1,2 @@
1
+ export { Calendar, default } from './Calendar';
2
+ export * from './types';