pixelon 0.3.25 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/chat/AudioWaves/AudioWaves(1).d.ts +21 -0
- package/dist/components/atoms/chat/AudioWaves/index(1).d.ts +2 -0
- package/dist/components/atoms/chat/DateDivider/DateDivider(1).d.ts +7 -0
- package/dist/components/atoms/chat/Loader/Loader(1).d.ts +10 -0
- package/dist/components/atoms/chat/Loader/index(1).d.ts +2 -0
- package/dist/components/atoms/chat/Select/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/Button/Button(1).d.ts +17 -0
- package/dist/components/atoms/lumi/Checkbox/Checkbox(1).d.ts +5 -0
- package/dist/components/atoms/lumi/Checkbox/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/Checkbox/index(2).d.ts +2 -0
- package/dist/components/atoms/lumi/Checkbox/types(1).d.ts +93 -0
- package/dist/components/atoms/lumi/CurrencyDisplay/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/DateDisplay/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/DateDisplay/index(2).d.ts +2 -0
- package/dist/components/atoms/lumi/DateInput/DateInput(1).d.ts +27 -0
- package/dist/components/atoms/lumi/DateInput/WebDatePicker(1).d.ts +19 -0
- package/dist/components/atoms/lumi/DateInput/WebDatePicker(2).d.ts +19 -0
- package/dist/components/atoms/lumi/Icon/Icon(1).d.ts +52 -0
- package/dist/components/atoms/lumi/Input/index(1).d.ts +3 -0
- package/dist/components/atoms/lumi/Popover/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/Popover/types(1).d.ts +62 -0
- package/dist/components/atoms/lumi/TextArea/index(1).d.ts +2 -0
- package/dist/components/atoms/lumi/TextArea/types(1).d.ts +35 -0
- package/dist/components/atoms/lumi/TimeInput/TimeInput(1).d.ts +27 -0
- package/dist/components/atoms/lumi/TimeInput/TimeInput(2).d.ts +27 -0
- package/dist/components/molecules/chat/Drawer/Drawer.d.ts +2 -0
- package/dist/components/molecules/chat/FullscreenViewer/hooks/useSwipeGestures(1).d.ts +12 -0
- package/dist/components/molecules/chat/StructuredContent/StructuredContent(1).d.ts +10 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/CarouselDisplay.d.ts +4 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselCard/CarouselCard.d.ts +15 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselConfirm/CarouselConfirm.d.ts +10 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselSearch/CarouselSearch.d.ts +8 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/components/CarouselTrack/CarouselTrack.d.ts +11 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/actions.d.ts +26 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/carouselStore.d.ts +8 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/index.d.ts +6 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/storeKeys.d.ts +10 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/store/types.d.ts +11 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/types.d.ts +43 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/useCarouselSearch.d.ts +15 -0
- package/dist/components/molecules/chat/StructuredContent/components/CarouselDisplay/useStoreState.d.ts +3 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField(1).d.ts +13 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField.d.ts +13 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/ReactiveForm.d.ts +4 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/ReactiveFormView.d.ts +10 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema(1).d.ts +4 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema.d.ts +4 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/resolveVariables.d.ts +20 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types(1).d.ts +91 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types.d.ts +100 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(1).d.ts +17 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(2).d.ts +23 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints.d.ts +23 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm(1).d.ts +38 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm.d.ts +38 -0
- package/dist/components/molecules/chat/StructuredContent/components/index.d.ts +2 -0
- package/dist/components/molecules/chat/StructuredContent/helpers/contentParser(1).d.ts +7 -0
- package/dist/components/molecules/chat/StructuredContent/helpers/fetchViaEventBus.d.ts +2 -0
- package/dist/components/molecules/chat/StructuredContent/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(1).d.ts +10 -0
- package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(2).d.ts +10 -0
- package/dist/components/molecules/lumi/Breadcrumb/types(1).d.ts +105 -0
- package/dist/components/molecules/lumi/Checkbox/Checkbox(1).d.ts +11 -0
- package/dist/components/molecules/lumi/Checkbox/index(1).d.ts +4 -0
- package/dist/components/molecules/lumi/Checkbox/use-cases/index(1).d.ts +1 -0
- package/dist/components/molecules/lumi/Checkbox/validation-helpers(1).d.ts +151 -0
- package/dist/components/molecules/lumi/DateInput/FormDateInput(1).d.ts +12 -0
- package/dist/components/molecules/lumi/DateInput/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputClearWithResetUseCase(1).d.ts +21 -0
- package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputErrorVisibilityUseCase(1).d.ts +21 -0
- package/dist/components/molecules/lumi/Drawer/Drawer(1).d.ts +39 -0
- package/dist/components/molecules/lumi/Drawer/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/DropdownMenu/DropdownMenu(1).d.ts +22 -0
- package/dist/components/molecules/lumi/DropdownMenu/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/DropdownMenu/types(1).d.ts +29 -0
- package/dist/components/molecules/lumi/Filter/FilterRow(1).d.ts +13 -0
- package/dist/components/molecules/lumi/Filter/helpers/conditionHelpers(1).d.ts +14 -0
- package/dist/components/molecules/lumi/Filter/index(1).d.ts +5 -0
- package/dist/components/molecules/lumi/Filter/types(1).d.ts +115 -0
- package/dist/components/molecules/lumi/Input/Input(1).d.ts +12 -0
- package/dist/components/molecules/lumi/Menu/Menu(1).d.ts +18 -0
- package/dist/components/molecules/lumi/Menu/MenuContext(1).d.ts +41 -0
- package/dist/components/molecules/lumi/Menu/MenuItem(1).d.ts +6 -0
- package/dist/components/molecules/lumi/Menu/MenuItem(2).d.ts +6 -0
- package/dist/components/molecules/lumi/Menu/MenuItemGroup(1).d.ts +6 -0
- package/dist/components/molecules/lumi/Menu/SubMenu(1).d.ts +6 -0
- package/dist/components/molecules/lumi/Menu/iconHelper(1).d.ts +15 -0
- package/dist/components/molecules/lumi/Menu/index(1).d.ts +8 -0
- package/dist/components/molecules/lumi/Menu/index(2).d.ts +8 -0
- package/dist/components/molecules/lumi/Menu/types(1).d.ts +119 -0
- package/dist/components/molecules/lumi/Pagination/Pagination(1).d.ts +4 -0
- package/dist/components/molecules/lumi/Pagination/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Select/Select(1).d.ts +14 -0
- package/dist/components/molecules/lumi/Select/Select(2).d.ts +14 -0
- package/dist/components/molecules/lumi/Select/Select(3).d.ts +14 -0
- package/dist/components/molecules/lumi/Select/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Select/index(2).d.ts +2 -0
- package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts +21 -0
- package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts +21 -0
- package/dist/components/molecules/lumi/Select/use-cases/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Select/use-cases/index(2).d.ts +2 -0
- package/dist/components/molecules/lumi/Table/Table(1).d.ts +6 -0
- package/dist/components/molecules/lumi/Table/Table(2).d.ts +6 -0
- package/dist/components/molecules/lumi/Table/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Table/types(1).d.ts +177 -0
- package/dist/components/molecules/lumi/Table/types(2).d.ts +177 -0
- package/dist/components/molecules/lumi/Tabs/Tabs(1).d.ts +4 -0
- package/dist/components/molecules/lumi/Tabs/Tabs(2).d.ts +4 -0
- package/dist/components/molecules/lumi/Tabs/index(1).d.ts +2 -0
- package/dist/components/molecules/lumi/Tabs/index(2).d.ts +2 -0
- package/dist/components/molecules/lumi/TimeInput/FormTimeInput(1).d.ts +12 -0
- package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputClearWithResetUseCase(1).d.ts +21 -0
- package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputErrorVisibilityUseCase(1).d.ts +21 -0
- package/dist/components/molecules/lumi/TimeInput/use-cases/index(1).d.ts +4 -0
- package/dist/components/organisms/chat/Chat/Chat(1).d.ts +12 -0
- package/dist/components/organisms/chat/Chat/hooks/useChatHandlers(1).d.ts +15 -0
- package/dist/components/organisms/chat/Chat/hooks/useChatStore.d.ts +3 -0
- package/dist/components/organisms/chat/Chat/hooks/useKeyboardLock(1).d.ts +15 -0
- package/dist/components/organisms/chat/Chat/index(1).d.ts +3 -0
- package/dist/components/organisms/chat/Chat/store/actions.d.ts +3 -0
- package/dist/components/organisms/chat/Chat/store/index(1).d.ts +4 -0
- package/dist/components/organisms/chat/Chat/store/types.d.ts +3 -0
- package/dist/components/organisms/chat/Chat/use-cases/GroupMessagesByDateUseCase(1).d.ts +20 -0
- package/dist/components/organisms/chat/index(1).d.ts +3 -0
- package/dist/components/organisms/chat/index(2).d.ts +3 -0
- package/dist/components/organisms/lumi/ActionBar/ActionBar(1).d.ts +18 -0
- package/dist/components/organisms/lumi/ActionBar/types(1).d.ts +57 -0
- package/dist/components/organisms/lumi/BaseNavbar/types(1).d.ts +34 -0
- package/dist/components/organisms/lumi/BaseWorkspace/BaseWorkspace(1).d.ts +28 -0
- package/dist/components/organisms/lumi/BaseWorkspace/index(1).d.ts +2 -0
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(1).d.ts +18 -0
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(2).d.ts +18 -0
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(3).d.ts +18 -0
- package/dist/components/organisms/lumi/Calendar/components/CalendarHeader(1).d.ts +14 -0
- package/dist/components/organisms/lumi/Calendar/components/TimeGutter(1).d.ts +10 -0
- package/dist/components/organisms/lumi/Calendar/components/TimeGutter(2).d.ts +10 -0
- package/dist/components/organisms/lumi/Calendar/hooks/index(1).d.ts +4 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(1).d.ts +58 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(2).d.ts +58 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(1).d.ts +21 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(2).d.ts +21 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(1).d.ts +14 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(2).d.ts +14 -0
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(3).d.ts +14 -0
- package/dist/components/organisms/lumi/Calendar/i18n/index(1).d.ts +1 -0
- package/dist/components/organisms/lumi/Calendar/i18n/index(2).d.ts +1 -0
- package/dist/components/organisms/lumi/Calendar/i18n/translations(1).d.ts +34 -0
- package/dist/components/organisms/lumi/Calendar/index(1).d.ts +2 -0
- package/dist/components/organisms/lumi/Calendar/utils/dateUtils(1).d.ts +140 -0
- package/dist/components/organisms/lumi/Calendar/utils/dateUtils(2).d.ts +140 -0
- package/dist/components/organisms/lumi/Calendar/utils/index(1).d.ts +2 -0
- package/dist/components/organisms/lumi/Calendar/utils/multiDayUtils(1).d.ts +73 -0
- package/dist/components/organisms/lumi/Calendar/views/DayView(1).d.ts +17 -0
- package/dist/components/organisms/lumi/Calendar/views/DayView(2).d.ts +17 -0
- package/dist/components/organisms/lumi/Calendar/views/MonthView(1).d.ts +17 -0
- package/dist/components/organisms/lumi/Calendar/views/MonthView(2).d.ts +17 -0
- package/dist/components/organisms/lumi/Calendar/views/WeekView(1).d.ts +19 -0
- package/dist/components/organisms/lumi/Calendar/views/WeekView(2).d.ts +19 -0
- package/dist/components/organisms/lumi/Calendar/views/YearView(1).d.ts +13 -0
- package/dist/components/organisms/lumi/Calendar/views/index(1).d.ts +4 -0
- package/dist/components/organisms/lumi/Calendar/views/index(2).d.ts +4 -0
- package/dist/components/organisms/lumi/DashboardNavbar/index(1).d.ts +7 -0
- package/dist/components/organisms/lumi/DashboardNavbar/types(1).d.ts +52 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(1).d.ts +23 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(2).d.ts +23 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/index(1).d.ts +7 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/index(2).d.ts +7 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/types(1).d.ts +60 -0
- package/dist/components/organisms/lumi/DashboardWorkspace/types(2).d.ts +60 -0
- package/dist/components/organisms/lumi/DynamicForm/DynamicForm(1).d.ts +21 -0
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(1).d.ts +17 -0
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(2).d.ts +17 -0
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(1).d.ts +6 -0
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(2).d.ts +6 -0
- package/dist/components/organisms/lumi/DynamicForm/index(1).d.ts +2 -0
- package/dist/components/organisms/lumi/DynamicForm/index(2).d.ts +2 -0
- package/dist/components/organisms/lumi/DynamicForm/types(1).d.ts +96 -0
- package/dist/components/organisms/lumi/DynamicForm/types(2).d.ts +96 -0
- package/dist/components/organisms/lumi/FormDrawer/FormDrawer(1).d.ts +5 -0
- package/dist/components/organisms/lumi/FormDrawer/index(1).d.ts +3 -0
- package/dist/components/organisms/lumi/FormDrawer/types(1).d.ts +61 -0
- package/dist/components/organisms/lumi/FormDrawer/types(2).d.ts +61 -0
- package/dist/components/organisms/lumi/Stepper/StepIndicator(1).d.ts +4 -0
- package/dist/components/organisms/lumi/Stepper/Stepper(1).d.ts +5 -0
- package/dist/components/organisms/lumi/Stepper/index(1).d.ts +3 -0
- package/dist/components/organisms/lumi/Stepper/types(1).d.ts +96 -0
- package/dist/components/organisms/lumi/Stepper/types(2).d.ts +96 -0
- package/dist/components/organisms/lumi/index(1).d.ts +10 -0
- package/dist/components/organisms/lumi/index(2).d.ts +10 -0
- package/dist/components/templates/chat/ChatWidget/ChatWidget(1).d.ts +10 -0
- package/dist/components/templates/chat/ChatWidget/hooks/index(1).d.ts +1 -0
- package/dist/components/templates/chat/ChatWidget/index(1).d.ts +2 -0
- package/dist/components/templates/chat/ChatWidget/index(2).d.ts +2 -0
- package/dist/components/templates/chat/ChatWidget/types(1).d.ts +90 -0
- package/dist/components/templates/lumi/Base/hooks/index(1).d.ts +2 -0
- package/dist/components/templates/lumi/Base/hooks/useAppHeight(1).d.ts +21 -0
- package/dist/components/templates/lumi/Base/index(1).d.ts +2 -0
- package/dist/components/templates/lumi/Base/types(1).d.ts +54 -0
- package/dist/components/templates/lumi/Crud/Crud(1).d.ts +6 -0
- package/dist/components/templates/lumi/Crud/Crud(2).d.ts +6 -0
- package/dist/components/templates/lumi/Crud/helpers/fieldMapper(1).d.ts +13 -0
- package/dist/components/templates/lumi/Crud/hooks/useCrudActions(1).d.ts +11 -0
- package/dist/components/templates/lumi/Crud/index(1).d.ts +2 -0
- package/dist/components/templates/lumi/Crud/store/actions(1).d.ts +45 -0
- package/dist/components/templates/lumi/Crud/store/crudStore(1).d.ts +8 -0
- package/dist/components/templates/lumi/Crud/store/index(1).d.ts +5 -0
- package/dist/components/templates/lumi/Crud/store/types(1).d.ts +71 -0
- package/dist/components/templates/lumi/Dashboard/Dashboard(1).d.ts +25 -0
- package/dist/components/templates/lumi/Dashboard/hooks/index(1).d.ts +12 -0
- package/dist/components/templates/lumi/Dashboard/hooks/index(2).d.ts +12 -0
- package/dist/components/templates/lumi/Dashboard/hooks/useDashboardStore(1).d.ts +34 -0
- package/dist/components/templates/lumi/Dashboard/hooks/useScrollToTop(1).d.ts +47 -0
- package/dist/components/templates/lumi/Dashboard/index(1).d.ts +10 -0
- package/dist/components/templates/lumi/Dashboard/store/storeKeys(1).d.ts +13 -0
- package/dist/components/templates/lumi/Dashboard/store/types(1).d.ts +73 -0
- package/dist/components/templates/lumi/Dashboard/store/types(2).d.ts +73 -0
- package/dist/components/templates/lumi/Dashboard/types(1).d.ts +114 -0
- package/dist/components/templates/lumi/Dashboard/types(2).d.ts +114 -0
- package/dist/components/templates/lumi/index(1).d.ts +3 -0
- package/dist/core/chat/ChatConfigContext(1).d.ts +36 -0
- package/dist/core/chat/chatMessage.d.ts +1 -1
- package/dist/core/eventBus/chatEventBus.d.ts +67 -0
- package/dist/index(1).esm.js +19378 -0
- package/dist/index(1).js +19487 -0
- package/dist/index.esm.js +2221 -348
- package/dist/index.js +2221 -348
- package/dist/styles(1).css +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/index.scss +7 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DASHBOARD_STORE_KEYS } from './storeKeys';
|
|
2
|
+
import type { BreadcrumbItem } from '../../../../molecules/lumi/Breadcrumb/types';
|
|
3
|
+
/**
|
|
4
|
+
* Estado completo del store del Dashboard
|
|
5
|
+
*/
|
|
6
|
+
export interface DashboardStoreState {
|
|
7
|
+
/**
|
|
8
|
+
* Estado del drawer del menú lateral
|
|
9
|
+
*/
|
|
10
|
+
[DASHBOARD_STORE_KEYS.DRAWER]: {
|
|
11
|
+
/** Si el drawer está abierto */
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
/** Si está en proceso de animación */
|
|
14
|
+
isAnimating: boolean;
|
|
15
|
+
/** Ancho del drawer en píxeles (desktop) */
|
|
16
|
+
width: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Estado del navbar
|
|
20
|
+
*/
|
|
21
|
+
[DASHBOARD_STORE_KEYS.NAVBAR]: {
|
|
22
|
+
/** Altura del navbar en píxeles */
|
|
23
|
+
height: number;
|
|
24
|
+
/** Si el navbar es sticky */
|
|
25
|
+
isSticky: boolean;
|
|
26
|
+
/** Si muestra sombra (cuando hay scroll) */
|
|
27
|
+
showShadow: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Estado del breadcrumb
|
|
31
|
+
*/
|
|
32
|
+
[DASHBOARD_STORE_KEYS.BREADCRUMB]: {
|
|
33
|
+
/** Items actuales del breadcrumb */
|
|
34
|
+
items: BreadcrumbItem[];
|
|
35
|
+
/** Si el breadcrumb necesita scroll horizontal */
|
|
36
|
+
isScrollable: boolean;
|
|
37
|
+
/** Posición de scroll horizontal */
|
|
38
|
+
scrollPosition: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Estado del menú
|
|
42
|
+
*/
|
|
43
|
+
[DASHBOARD_STORE_KEYS.MENU]: {
|
|
44
|
+
/** Keys de los items seleccionados */
|
|
45
|
+
selectedKeys: string[];
|
|
46
|
+
/** Keys de los submenús abiertos */
|
|
47
|
+
openKeys: string[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Estado del workspace (área de trabajo)
|
|
51
|
+
*/
|
|
52
|
+
[DASHBOARD_STORE_KEYS.WORKSPACE]: {
|
|
53
|
+
/** Posición de scroll vertical */
|
|
54
|
+
scrollTop: number;
|
|
55
|
+
/** Si muestra el botón "scroll to top" */
|
|
56
|
+
showScrollButton: boolean;
|
|
57
|
+
/** Si está en proceso de scroll automático */
|
|
58
|
+
isScrolling: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Estado del viewport
|
|
62
|
+
*/
|
|
63
|
+
[DASHBOARD_STORE_KEYS.VIEWPORT]: {
|
|
64
|
+
/** Si está en modo móvil (≤768px) */
|
|
65
|
+
isMobile: boolean;
|
|
66
|
+
/** Si está en modo tablet (769-1024px) */
|
|
67
|
+
isTablet: boolean;
|
|
68
|
+
/** Ancho del viewport */
|
|
69
|
+
width: number;
|
|
70
|
+
/** Altura del viewport */
|
|
71
|
+
height: number;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DASHBOARD_STORE_KEYS } from './storeKeys';
|
|
2
|
+
import type { BreadcrumbItem } from '../../../../molecules/lumi/Breadcrumb/types';
|
|
3
|
+
/**
|
|
4
|
+
* Estado completo del store del Dashboard
|
|
5
|
+
*/
|
|
6
|
+
export interface DashboardStoreState {
|
|
7
|
+
/**
|
|
8
|
+
* Estado del drawer del menú lateral
|
|
9
|
+
*/
|
|
10
|
+
[DASHBOARD_STORE_KEYS.DRAWER]: {
|
|
11
|
+
/** Si el drawer está abierto */
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
/** Si está en proceso de animación */
|
|
14
|
+
isAnimating: boolean;
|
|
15
|
+
/** Ancho del drawer en píxeles (desktop) */
|
|
16
|
+
width: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Estado del navbar
|
|
20
|
+
*/
|
|
21
|
+
[DASHBOARD_STORE_KEYS.NAVBAR]: {
|
|
22
|
+
/** Altura del navbar en píxeles */
|
|
23
|
+
height: number;
|
|
24
|
+
/** Si el navbar es sticky */
|
|
25
|
+
isSticky: boolean;
|
|
26
|
+
/** Si muestra sombra (cuando hay scroll) */
|
|
27
|
+
showShadow: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Estado del breadcrumb
|
|
31
|
+
*/
|
|
32
|
+
[DASHBOARD_STORE_KEYS.BREADCRUMB]: {
|
|
33
|
+
/** Items actuales del breadcrumb */
|
|
34
|
+
items: BreadcrumbItem[];
|
|
35
|
+
/** Si el breadcrumb necesita scroll horizontal */
|
|
36
|
+
isScrollable: boolean;
|
|
37
|
+
/** Posición de scroll horizontal */
|
|
38
|
+
scrollPosition: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Estado del menú
|
|
42
|
+
*/
|
|
43
|
+
[DASHBOARD_STORE_KEYS.MENU]: {
|
|
44
|
+
/** Keys de los items seleccionados */
|
|
45
|
+
selectedKeys: string[];
|
|
46
|
+
/** Keys de los submenús abiertos */
|
|
47
|
+
openKeys: string[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Estado del workspace (área de trabajo)
|
|
51
|
+
*/
|
|
52
|
+
[DASHBOARD_STORE_KEYS.WORKSPACE]: {
|
|
53
|
+
/** Posición de scroll vertical */
|
|
54
|
+
scrollTop: number;
|
|
55
|
+
/** Si muestra el botón "scroll to top" */
|
|
56
|
+
showScrollButton: boolean;
|
|
57
|
+
/** Si está en proceso de scroll automático */
|
|
58
|
+
isScrolling: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Estado del viewport
|
|
62
|
+
*/
|
|
63
|
+
[DASHBOARD_STORE_KEYS.VIEWPORT]: {
|
|
64
|
+
/** Si está en modo móvil (≤768px) */
|
|
65
|
+
isMobile: boolean;
|
|
66
|
+
/** Si está en modo tablet (769-1024px) */
|
|
67
|
+
isTablet: boolean;
|
|
68
|
+
/** Ancho del viewport */
|
|
69
|
+
width: number;
|
|
70
|
+
/** Altura del viewport */
|
|
71
|
+
height: number;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { MenuItemData, SelectInfo } from '../../../molecules/lumi/Menu/types';
|
|
3
|
+
import type { BreadcrumbItem } from '../../../molecules/lumi/Breadcrumb/types';
|
|
4
|
+
/**
|
|
5
|
+
* Props del template Dashboard
|
|
6
|
+
*/
|
|
7
|
+
export interface DashboardProps {
|
|
8
|
+
/**
|
|
9
|
+
* Items del menú de navegación
|
|
10
|
+
*/
|
|
11
|
+
menuItems: MenuItemData[];
|
|
12
|
+
/**
|
|
13
|
+
* Items del breadcrumb (controlado)
|
|
14
|
+
* Si no se proporciona, se genera automáticamente desde el menú seleccionado
|
|
15
|
+
*/
|
|
16
|
+
breadcrumbItems?: BreadcrumbItem[];
|
|
17
|
+
/**
|
|
18
|
+
* Contenido principal del workspace
|
|
19
|
+
*/
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Contenido extra para el navbar (botones, perfil, notificaciones, etc.)
|
|
23
|
+
*/
|
|
24
|
+
navbarExtra?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Contenido extra para el header del sidebar (junto al botón de close)
|
|
27
|
+
*/
|
|
28
|
+
sidebarHeaderExtra?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Keys de los items seleccionados (controlado)
|
|
31
|
+
*/
|
|
32
|
+
selectedKeys?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Keys de los items seleccionados por defecto (no controlado)
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
defaultSelectedKeys?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Keys de los submenús abiertos (controlado)
|
|
40
|
+
*/
|
|
41
|
+
openKeys?: string[];
|
|
42
|
+
/**
|
|
43
|
+
* Keys de los submenús abiertos por defecto (no controlado)
|
|
44
|
+
* @default []
|
|
45
|
+
*/
|
|
46
|
+
defaultOpenKeys?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Si el drawer está abierto (controlado)
|
|
49
|
+
*/
|
|
50
|
+
drawerOpen?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Si el drawer está abierto por defecto (no controlado)
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
defaultDrawerOpen?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Callback cuando se selecciona un item del menú
|
|
58
|
+
*/
|
|
59
|
+
onMenuSelect?: (info: SelectInfo, breadcrumbPath: BreadcrumbItem[]) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback cuando se hace clic en un item del breadcrumb
|
|
62
|
+
*/
|
|
63
|
+
onBreadcrumbClick?: (item: BreadcrumbItem, index: number) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Callback cuando cambia el estado del drawer
|
|
66
|
+
*/
|
|
67
|
+
onDrawerChange?: (isOpen: boolean) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Callback cuando cambian los submenús abiertos
|
|
70
|
+
*/
|
|
71
|
+
onOpenChange?: (openKeys: string[]) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Si muestra el icono de home en el breadcrumb
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
showHomeIcon?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Si habilita el botón "volver arriba"
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
81
|
+
enableScrollToTop?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Altura del navbar en píxeles
|
|
84
|
+
* @default 64
|
|
85
|
+
*/
|
|
86
|
+
navbarHeight?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Ancho del drawer en píxeles
|
|
89
|
+
* @default 280
|
|
90
|
+
*/
|
|
91
|
+
drawerWidth?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Tema del menú
|
|
94
|
+
* @default 'light'
|
|
95
|
+
*/
|
|
96
|
+
theme?: 'light' | 'dark';
|
|
97
|
+
/**
|
|
98
|
+
* Color de fondo del workspace
|
|
99
|
+
* @default '#fafafa'
|
|
100
|
+
*/
|
|
101
|
+
workspaceBackgroundColor?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Padding del workspace (CSS string)
|
|
104
|
+
*/
|
|
105
|
+
workspacePadding?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Clase CSS adicional
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Test ID para testing
|
|
112
|
+
*/
|
|
113
|
+
'data-testid'?: string;
|
|
114
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { MenuItemData, SelectInfo } from '../../../molecules/lumi/Menu/types';
|
|
3
|
+
import type { BreadcrumbItem } from '../../../molecules/lumi/Breadcrumb/types';
|
|
4
|
+
/**
|
|
5
|
+
* Props del template Dashboard
|
|
6
|
+
*/
|
|
7
|
+
export interface DashboardProps {
|
|
8
|
+
/**
|
|
9
|
+
* Items del menú de navegación
|
|
10
|
+
*/
|
|
11
|
+
menuItems: MenuItemData[];
|
|
12
|
+
/**
|
|
13
|
+
* Items del breadcrumb (controlado)
|
|
14
|
+
* Si no se proporciona, se genera automáticamente desde el menú seleccionado
|
|
15
|
+
*/
|
|
16
|
+
breadcrumbItems?: BreadcrumbItem[];
|
|
17
|
+
/**
|
|
18
|
+
* Contenido principal del workspace
|
|
19
|
+
*/
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Contenido extra para el navbar (botones, perfil, notificaciones, etc.)
|
|
23
|
+
*/
|
|
24
|
+
navbarExtra?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Contenido extra para el header del sidebar (junto al botón de close)
|
|
27
|
+
*/
|
|
28
|
+
sidebarHeaderExtra?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Keys de los items seleccionados (controlado)
|
|
31
|
+
*/
|
|
32
|
+
selectedKeys?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Keys de los items seleccionados por defecto (no controlado)
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
defaultSelectedKeys?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Keys de los submenús abiertos (controlado)
|
|
40
|
+
*/
|
|
41
|
+
openKeys?: string[];
|
|
42
|
+
/**
|
|
43
|
+
* Keys de los submenús abiertos por defecto (no controlado)
|
|
44
|
+
* @default []
|
|
45
|
+
*/
|
|
46
|
+
defaultOpenKeys?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Si el drawer está abierto (controlado)
|
|
49
|
+
*/
|
|
50
|
+
drawerOpen?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Si el drawer está abierto por defecto (no controlado)
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
defaultDrawerOpen?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Callback cuando se selecciona un item del menú
|
|
58
|
+
*/
|
|
59
|
+
onMenuSelect?: (info: SelectInfo, breadcrumbPath: BreadcrumbItem[]) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback cuando se hace clic en un item del breadcrumb
|
|
62
|
+
*/
|
|
63
|
+
onBreadcrumbClick?: (item: BreadcrumbItem, index: number) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Callback cuando cambia el estado del drawer
|
|
66
|
+
*/
|
|
67
|
+
onDrawerChange?: (isOpen: boolean) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Callback cuando cambian los submenús abiertos
|
|
70
|
+
*/
|
|
71
|
+
onOpenChange?: (openKeys: string[]) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Si muestra el icono de home en el breadcrumb
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
showHomeIcon?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Si habilita el botón "volver arriba"
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
81
|
+
enableScrollToTop?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Altura del navbar en píxeles
|
|
84
|
+
* @default 64
|
|
85
|
+
*/
|
|
86
|
+
navbarHeight?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Ancho del drawer en píxeles
|
|
89
|
+
* @default 280
|
|
90
|
+
*/
|
|
91
|
+
drawerWidth?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Tema del menú
|
|
94
|
+
* @default 'light'
|
|
95
|
+
*/
|
|
96
|
+
theme?: 'light' | 'dark';
|
|
97
|
+
/**
|
|
98
|
+
* Color de fondo del workspace
|
|
99
|
+
* @default '#fafafa'
|
|
100
|
+
*/
|
|
101
|
+
workspaceBackgroundColor?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Padding del workspace (CSS string)
|
|
104
|
+
*/
|
|
105
|
+
workspacePadding?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Clase CSS adicional
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Test ID para testing
|
|
112
|
+
*/
|
|
113
|
+
'data-testid'?: string;
|
|
114
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface ChatConfig {
|
|
3
|
+
/** IANA timezone identifier (e.g. "America/Bogota") */
|
|
4
|
+
timezone: string;
|
|
5
|
+
/** BCP 47 locale string (e.g. "es-CO") */
|
|
6
|
+
locale: string;
|
|
7
|
+
/** Title displayed in the chat header */
|
|
8
|
+
headerTitle: string;
|
|
9
|
+
/** Subtitle displayed in the chat header */
|
|
10
|
+
headerSubtitle?: string;
|
|
11
|
+
/** Avatar image URL for the chat header */
|
|
12
|
+
headerAvatarSrc?: string;
|
|
13
|
+
/** Whether to show the chat header */
|
|
14
|
+
showHeader: boolean;
|
|
15
|
+
/** Whether to show the close button in the header */
|
|
16
|
+
showCloseButton: boolean;
|
|
17
|
+
/** Whether to show role labels ("User", "Assistant") on messages */
|
|
18
|
+
showRoleLabels: boolean;
|
|
19
|
+
/** Whether to show the attachment button */
|
|
20
|
+
showAttachmentButton: boolean;
|
|
21
|
+
/** Whether to show the microphone button */
|
|
22
|
+
showMicrophoneButton: boolean;
|
|
23
|
+
/** Default placeholder text for the input textarea */
|
|
24
|
+
placeholderText: string;
|
|
25
|
+
/** Whether to simulate streaming for assistant responses that arrive complete */
|
|
26
|
+
enableStreamingEffect: boolean;
|
|
27
|
+
/** Whether the chat should fit its container (true) or use full viewport height (false) */
|
|
28
|
+
contained: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const CHAT_CONFIG_DEFAULTS: ChatConfig;
|
|
31
|
+
export interface ChatConfigProviderProps {
|
|
32
|
+
value: ChatConfig;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const ChatConfigProvider: ({ value, children }: ChatConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const useChatConfig: () => ChatConfig;
|
|
@@ -2,7 +2,7 @@ import type { CoreFile } from '../types';
|
|
|
2
2
|
export type MessageStatusType = 'sending' | 'sent' | 'failed';
|
|
3
3
|
export interface ChatMessage {
|
|
4
4
|
id?: string;
|
|
5
|
-
role: 'user' | 'assistant';
|
|
5
|
+
role: 'user' | 'assistant' | 'tool' | 'system';
|
|
6
6
|
content: string;
|
|
7
7
|
timestamp: string;
|
|
8
8
|
date: Date;
|
|
@@ -10,6 +10,13 @@ export declare const CHAT_EVENT: {
|
|
|
10
10
|
readonly THINKING_UPDATED: "thinkingUpdated";
|
|
11
11
|
readonly INPUT_DISABLED: "inputDisabled";
|
|
12
12
|
readonly CLOSE: "close";
|
|
13
|
+
readonly FETCH_REQUEST: "fetchRequest";
|
|
14
|
+
readonly FETCH_RESPONSE: "fetchResponse";
|
|
15
|
+
readonly FORM_SUBMIT: "formSubmit";
|
|
16
|
+
readonly FORM_TRACE: "formTrace";
|
|
17
|
+
readonly AGENT_EVENT: "agentEvent";
|
|
18
|
+
readonly STREAM_CHUNK: "streamChunk";
|
|
19
|
+
readonly MESSAGE_SAVED: "messageSaved";
|
|
13
20
|
};
|
|
14
21
|
export type ChatEvents = {
|
|
15
22
|
/** UI component interaction (select, confirm, etc.) */
|
|
@@ -35,6 +42,9 @@ export type ChatEvents = {
|
|
|
35
42
|
/** Consumer -> Chat: update thinking indicator state */
|
|
36
43
|
thinkingUpdated: {
|
|
37
44
|
isThinking: boolean;
|
|
45
|
+
agentName?: string;
|
|
46
|
+
agentLabel?: string;
|
|
47
|
+
toolName?: string;
|
|
38
48
|
};
|
|
39
49
|
/** Consumer -> Chat: enable/disable input controls */
|
|
40
50
|
inputDisabled: {
|
|
@@ -51,6 +61,63 @@ export type ChatEvents = {
|
|
|
51
61
|
};
|
|
52
62
|
/** Chat -> Consumer: user clicked the close button */
|
|
53
63
|
close: null;
|
|
64
|
+
/** ReactiveForm -> Consumer: HTTP fetch request via EventBus */
|
|
65
|
+
fetchRequest: {
|
|
66
|
+
requestId: string;
|
|
67
|
+
service: string;
|
|
68
|
+
url: string;
|
|
69
|
+
method: string;
|
|
70
|
+
body?: Record<string, unknown>;
|
|
71
|
+
};
|
|
72
|
+
/** Consumer -> ReactiveForm: HTTP fetch response */
|
|
73
|
+
fetchResponse: {
|
|
74
|
+
requestId: string;
|
|
75
|
+
data: unknown;
|
|
76
|
+
httpError?: string;
|
|
77
|
+
};
|
|
78
|
+
/** ReactiveForm -> Consumer: form was submitted */
|
|
79
|
+
formSubmit: {
|
|
80
|
+
formType: string;
|
|
81
|
+
submitUrl: string;
|
|
82
|
+
result: unknown;
|
|
83
|
+
formValues: Record<string, unknown>;
|
|
84
|
+
formLabels?: Record<string, string>;
|
|
85
|
+
};
|
|
86
|
+
/** Backend -> Consumer: agent lifecycle event from WebSocket */
|
|
87
|
+
agentEvent: {
|
|
88
|
+
eventType: string;
|
|
89
|
+
agentName: string;
|
|
90
|
+
agentLabel?: string;
|
|
91
|
+
chatId: string;
|
|
92
|
+
data?: Record<string, unknown>;
|
|
93
|
+
timestamp?: string;
|
|
94
|
+
};
|
|
95
|
+
/** Backend -> Consumer: streaming text chunk */
|
|
96
|
+
streamChunk: {
|
|
97
|
+
content: string;
|
|
98
|
+
chatId: string;
|
|
99
|
+
};
|
|
100
|
+
/** Backend -> Consumer: message was persisted */
|
|
101
|
+
messageSaved: {
|
|
102
|
+
chatId: string;
|
|
103
|
+
messageId?: string;
|
|
104
|
+
};
|
|
105
|
+
/** ReactiveForm -> Consumer: trace info for observability */
|
|
106
|
+
formTrace: {
|
|
107
|
+
chatId: string;
|
|
108
|
+
formTitle: string;
|
|
109
|
+
source?: string;
|
|
110
|
+
phase: 'request' | 'response';
|
|
111
|
+
service: string;
|
|
112
|
+
url: string;
|
|
113
|
+
method: string;
|
|
114
|
+
body?: Record<string, unknown>;
|
|
115
|
+
status?: number;
|
|
116
|
+
duration_ms?: number;
|
|
117
|
+
success?: boolean;
|
|
118
|
+
response?: unknown;
|
|
119
|
+
error?: string;
|
|
120
|
+
};
|
|
54
121
|
};
|
|
55
122
|
export declare const chatEventBus: {
|
|
56
123
|
on: <K extends keyof ChatEvents>(event: K, handler: (payload: ChatEvents[K]) => void) => () => void;
|