pixelon 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/lumi/PhoneInput/PhoneInput.d.ts +29 -0
- package/dist/components/atoms/lumi/PhoneInput/index.d.ts +3 -0
- package/dist/components/atoms/lumi/PhoneInput/phone-countries.d.ts +19 -0
- package/dist/components/atoms/lumi/SheetSelect/SheetSelect.d.ts +32 -0
- package/dist/components/atoms/lumi/SheetSelect/index.d.ts +2 -0
- package/dist/components/molecules/chat/StructuredContent/components/LocationField/types.d.ts +2 -0
- package/dist/components/molecules/chat/StructuredContent/components/MapView/types.d.ts +7 -0
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/types.d.ts +23 -1
- package/dist/components/organisms/lumi/DynamicForm/helpers/sanitizers.d.ts +28 -0
- package/dist/components/organisms/lumi/DynamicForm/types.d.ts +4 -0
- package/dist/components/templates/lumi/Crud/types.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +702 -263
- package/dist/index.js +709 -262
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/index.scss +2 -0
- package/dist/components/atoms/chat/AudioWaves/AudioWaves(1).d.ts +0 -21
- package/dist/components/atoms/chat/AudioWaves/index(1).d.ts +0 -2
- package/dist/components/atoms/chat/DateDivider/DateDivider(1).d.ts +0 -7
- package/dist/components/atoms/chat/Loader/Loader(1).d.ts +0 -10
- package/dist/components/atoms/chat/Loader/index(1).d.ts +0 -2
- package/dist/components/atoms/chat/Select/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/Button/Button(1).d.ts +0 -17
- package/dist/components/atoms/lumi/Checkbox/Checkbox(1).d.ts +0 -5
- package/dist/components/atoms/lumi/Checkbox/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/Checkbox/index(2).d.ts +0 -2
- package/dist/components/atoms/lumi/Checkbox/types(1).d.ts +0 -93
- package/dist/components/atoms/lumi/CurrencyDisplay/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/DateDisplay/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/DateDisplay/index(2).d.ts +0 -2
- package/dist/components/atoms/lumi/DateInput/DateInput(1).d.ts +0 -27
- package/dist/components/atoms/lumi/DateInput/WebDatePicker(1).d.ts +0 -19
- package/dist/components/atoms/lumi/DateInput/WebDatePicker(2).d.ts +0 -19
- package/dist/components/atoms/lumi/Icon/Icon(1).d.ts +0 -52
- package/dist/components/atoms/lumi/Input/index(1).d.ts +0 -3
- package/dist/components/atoms/lumi/Popover/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/Popover/types(1).d.ts +0 -62
- package/dist/components/atoms/lumi/TextArea/index(1).d.ts +0 -2
- package/dist/components/atoms/lumi/TextArea/types(1).d.ts +0 -35
- package/dist/components/atoms/lumi/TimeInput/TimeInput(1).d.ts +0 -27
- package/dist/components/atoms/lumi/TimeInput/TimeInput(2).d.ts +0 -27
- package/dist/components/molecules/chat/FullscreenViewer/hooks/useSwipeGestures(1).d.ts +0 -12
- package/dist/components/molecules/chat/StructuredContent/StructuredContent(1).d.ts +0 -10
- package/dist/components/molecules/chat/StructuredContent/components/Cart/Cart.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/components/ProductCard/ProductCard.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/components/ProductCarousel/ProductCarousel.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/components/ProductManager/ProductManager.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/PriceNegotiationChat.d.ts +0 -4
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField(1).d.ts +0 -13
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema(1).d.ts +0 -4
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types(1).d.ts +0 -91
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(1).d.ts +0 -17
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(2).d.ts +0 -23
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm(1).d.ts +0 -38
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMap.d.ts +0 -12
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMapChat.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/types.d.ts +0 -36
- package/dist/components/molecules/chat/StructuredContent/components/ServiceShortcuts/ServiceShortcutsChat.d.ts +0 -3
- package/dist/components/molecules/chat/StructuredContent/helpers/contentParser(1).d.ts +0 -7
- package/dist/components/molecules/chat/StructuredContent/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(1).d.ts +0 -10
- package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(2).d.ts +0 -10
- package/dist/components/molecules/lumi/Breadcrumb/types(1).d.ts +0 -105
- package/dist/components/molecules/lumi/Checkbox/Checkbox(1).d.ts +0 -11
- package/dist/components/molecules/lumi/Checkbox/index(1).d.ts +0 -4
- package/dist/components/molecules/lumi/Checkbox/use-cases/index(1).d.ts +0 -1
- package/dist/components/molecules/lumi/Checkbox/validation-helpers(1).d.ts +0 -151
- package/dist/components/molecules/lumi/DateInput/FormDateInput(1).d.ts +0 -12
- package/dist/components/molecules/lumi/DateInput/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputClearWithResetUseCase(1).d.ts +0 -21
- package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputErrorVisibilityUseCase(1).d.ts +0 -21
- package/dist/components/molecules/lumi/Drawer/Drawer(1).d.ts +0 -39
- package/dist/components/molecules/lumi/Drawer/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/DropdownMenu/DropdownMenu(1).d.ts +0 -22
- package/dist/components/molecules/lumi/DropdownMenu/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/DropdownMenu/types(1).d.ts +0 -29
- package/dist/components/molecules/lumi/Filter/FilterRow(1).d.ts +0 -13
- package/dist/components/molecules/lumi/Filter/helpers/conditionHelpers(1).d.ts +0 -14
- package/dist/components/molecules/lumi/Filter/index(1).d.ts +0 -5
- package/dist/components/molecules/lumi/Filter/types(1).d.ts +0 -115
- package/dist/components/molecules/lumi/Input/Input(1).d.ts +0 -12
- package/dist/components/molecules/lumi/Menu/Menu(1).d.ts +0 -18
- package/dist/components/molecules/lumi/Menu/MenuContext(1).d.ts +0 -41
- package/dist/components/molecules/lumi/Menu/MenuItem(1).d.ts +0 -6
- package/dist/components/molecules/lumi/Menu/MenuItem(2).d.ts +0 -6
- package/dist/components/molecules/lumi/Menu/MenuItemGroup(1).d.ts +0 -6
- package/dist/components/molecules/lumi/Menu/SubMenu(1).d.ts +0 -6
- package/dist/components/molecules/lumi/Menu/iconHelper(1).d.ts +0 -15
- package/dist/components/molecules/lumi/Menu/index(1).d.ts +0 -8
- package/dist/components/molecules/lumi/Menu/index(2).d.ts +0 -8
- package/dist/components/molecules/lumi/Menu/types(1).d.ts +0 -119
- package/dist/components/molecules/lumi/Pagination/Pagination(1).d.ts +0 -4
- package/dist/components/molecules/lumi/Pagination/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Select/Select(1).d.ts +0 -14
- package/dist/components/molecules/lumi/Select/Select(2).d.ts +0 -14
- package/dist/components/molecules/lumi/Select/Select(3).d.ts +0 -14
- package/dist/components/molecules/lumi/Select/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Select/index(2).d.ts +0 -2
- package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts +0 -21
- package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts +0 -21
- package/dist/components/molecules/lumi/Select/use-cases/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Select/use-cases/index(2).d.ts +0 -2
- package/dist/components/molecules/lumi/SessionExpiryPrompt/SessionExpiryPrompt.d.ts +0 -25
- package/dist/components/molecules/lumi/SessionExpiryPrompt/index.d.ts +0 -1
- package/dist/components/molecules/lumi/Table/Table(1).d.ts +0 -6
- package/dist/components/molecules/lumi/Table/Table(2).d.ts +0 -6
- package/dist/components/molecules/lumi/Table/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Table/types(1).d.ts +0 -177
- package/dist/components/molecules/lumi/Table/types(2).d.ts +0 -177
- package/dist/components/molecules/lumi/Tabs/Tabs(1).d.ts +0 -4
- package/dist/components/molecules/lumi/Tabs/Tabs(2).d.ts +0 -4
- package/dist/components/molecules/lumi/Tabs/index(1).d.ts +0 -2
- package/dist/components/molecules/lumi/Tabs/index(2).d.ts +0 -2
- package/dist/components/molecules/lumi/TimeInput/FormTimeInput(1).d.ts +0 -12
- package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputClearWithResetUseCase(1).d.ts +0 -21
- package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputErrorVisibilityUseCase(1).d.ts +0 -21
- package/dist/components/molecules/lumi/TimeInput/use-cases/index(1).d.ts +0 -4
- package/dist/components/organisms/chat/Chat/Chat(1).d.ts +0 -12
- package/dist/components/organisms/chat/Chat/hooks/useChatHandlers(1).d.ts +0 -15
- package/dist/components/organisms/chat/Chat/hooks/useKeyboardLock(1).d.ts +0 -15
- package/dist/components/organisms/chat/Chat/index(1).d.ts +0 -3
- package/dist/components/organisms/chat/Chat/store/index(1).d.ts +0 -4
- package/dist/components/organisms/chat/Chat/use-cases/GroupMessagesByDateUseCase(1).d.ts +0 -20
- package/dist/components/organisms/chat/index(1).d.ts +0 -3
- package/dist/components/organisms/chat/index(2).d.ts +0 -3
- package/dist/components/organisms/lumi/ActionBar/ActionBar(1).d.ts +0 -18
- package/dist/components/organisms/lumi/ActionBar/types(1).d.ts +0 -57
- package/dist/components/organisms/lumi/BaseNavbar/types(1).d.ts +0 -34
- package/dist/components/organisms/lumi/BaseWorkspace/BaseWorkspace(1).d.ts +0 -28
- package/dist/components/organisms/lumi/BaseWorkspace/index(1).d.ts +0 -2
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(1).d.ts +0 -18
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(2).d.ts +0 -18
- package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(3).d.ts +0 -18
- package/dist/components/organisms/lumi/Calendar/components/CalendarHeader(1).d.ts +0 -14
- package/dist/components/organisms/lumi/Calendar/components/TimeGutter(1).d.ts +0 -10
- package/dist/components/organisms/lumi/Calendar/components/TimeGutter(2).d.ts +0 -10
- package/dist/components/organisms/lumi/Calendar/hooks/index(1).d.ts +0 -4
- package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(1).d.ts +0 -58
- package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(2).d.ts +0 -58
- package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(1).d.ts +0 -21
- package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(2).d.ts +0 -21
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(1).d.ts +0 -14
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(2).d.ts +0 -14
- package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(3).d.ts +0 -14
- package/dist/components/organisms/lumi/Calendar/i18n/index(1).d.ts +0 -1
- package/dist/components/organisms/lumi/Calendar/i18n/index(2).d.ts +0 -1
- package/dist/components/organisms/lumi/Calendar/i18n/translations(1).d.ts +0 -34
- package/dist/components/organisms/lumi/Calendar/index(1).d.ts +0 -2
- package/dist/components/organisms/lumi/Calendar/utils/dateUtils(1).d.ts +0 -140
- package/dist/components/organisms/lumi/Calendar/utils/dateUtils(2).d.ts +0 -140
- package/dist/components/organisms/lumi/Calendar/utils/index(1).d.ts +0 -2
- package/dist/components/organisms/lumi/Calendar/utils/multiDayUtils(1).d.ts +0 -73
- package/dist/components/organisms/lumi/Calendar/views/DayView(1).d.ts +0 -17
- package/dist/components/organisms/lumi/Calendar/views/DayView(2).d.ts +0 -17
- package/dist/components/organisms/lumi/Calendar/views/MonthView(1).d.ts +0 -17
- package/dist/components/organisms/lumi/Calendar/views/MonthView(2).d.ts +0 -17
- package/dist/components/organisms/lumi/Calendar/views/WeekView(1).d.ts +0 -19
- package/dist/components/organisms/lumi/Calendar/views/WeekView(2).d.ts +0 -19
- package/dist/components/organisms/lumi/Calendar/views/YearView(1).d.ts +0 -13
- package/dist/components/organisms/lumi/Calendar/views/index(1).d.ts +0 -4
- package/dist/components/organisms/lumi/Calendar/views/index(2).d.ts +0 -4
- package/dist/components/organisms/lumi/DashboardNavbar/index(1).d.ts +0 -7
- package/dist/components/organisms/lumi/DashboardNavbar/types(1).d.ts +0 -52
- package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(1).d.ts +0 -23
- package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(2).d.ts +0 -23
- package/dist/components/organisms/lumi/DashboardWorkspace/index(1).d.ts +0 -7
- package/dist/components/organisms/lumi/DashboardWorkspace/index(2).d.ts +0 -7
- package/dist/components/organisms/lumi/DashboardWorkspace/types(1).d.ts +0 -60
- package/dist/components/organisms/lumi/DashboardWorkspace/types(2).d.ts +0 -60
- package/dist/components/organisms/lumi/DynamicForm/DynamicForm(1).d.ts +0 -21
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(1).d.ts +0 -17
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(2).d.ts +0 -17
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(1).d.ts +0 -6
- package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(2).d.ts +0 -6
- package/dist/components/organisms/lumi/DynamicForm/index(1).d.ts +0 -2
- package/dist/components/organisms/lumi/DynamicForm/index(2).d.ts +0 -2
- package/dist/components/organisms/lumi/DynamicForm/types(1).d.ts +0 -96
- package/dist/components/organisms/lumi/DynamicForm/types(2).d.ts +0 -96
- package/dist/components/organisms/lumi/FormDrawer/FormDrawer(1).d.ts +0 -5
- package/dist/components/organisms/lumi/FormDrawer/index(1).d.ts +0 -3
- package/dist/components/organisms/lumi/FormDrawer/types(1).d.ts +0 -61
- package/dist/components/organisms/lumi/FormDrawer/types(2).d.ts +0 -61
- package/dist/components/organisms/lumi/Stepper/StepIndicator(1).d.ts +0 -4
- package/dist/components/organisms/lumi/Stepper/Stepper(1).d.ts +0 -5
- package/dist/components/organisms/lumi/Stepper/index(1).d.ts +0 -3
- package/dist/components/organisms/lumi/Stepper/types(1).d.ts +0 -96
- package/dist/components/organisms/lumi/Stepper/types(2).d.ts +0 -96
- package/dist/components/organisms/lumi/index(1).d.ts +0 -10
- package/dist/components/organisms/lumi/index(2).d.ts +0 -10
- package/dist/components/templates/chat/ChatWidget/ChatWidget(1).d.ts +0 -10
- package/dist/components/templates/chat/ChatWidget/hooks/index(1).d.ts +0 -1
- package/dist/components/templates/chat/ChatWidget/index(1).d.ts +0 -2
- package/dist/components/templates/chat/ChatWidget/index(2).d.ts +0 -2
- package/dist/components/templates/chat/ChatWidget/types(1).d.ts +0 -90
- package/dist/components/templates/lumi/Base/hooks/index(1).d.ts +0 -2
- package/dist/components/templates/lumi/Base/hooks/useAppHeight(1).d.ts +0 -21
- package/dist/components/templates/lumi/Base/index(1).d.ts +0 -2
- package/dist/components/templates/lumi/Base/types(1).d.ts +0 -54
- package/dist/components/templates/lumi/Crud/Crud(1).d.ts +0 -6
- package/dist/components/templates/lumi/Crud/Crud(2).d.ts +0 -6
- package/dist/components/templates/lumi/Crud/ScrollToEnd.d.ts +0 -18
- package/dist/components/templates/lumi/Crud/helpers/fieldMapper(1).d.ts +0 -13
- package/dist/components/templates/lumi/Crud/hooks/useCrudActions(1).d.ts +0 -11
- package/dist/components/templates/lumi/Crud/index(1).d.ts +0 -2
- package/dist/components/templates/lumi/Crud/store/actions(1).d.ts +0 -45
- package/dist/components/templates/lumi/Crud/store/crudStore(1).d.ts +0 -8
- package/dist/components/templates/lumi/Crud/store/index(1).d.ts +0 -5
- package/dist/components/templates/lumi/Crud/store/types(1).d.ts +0 -71
- package/dist/components/templates/lumi/Dashboard/Dashboard(1).d.ts +0 -25
- package/dist/components/templates/lumi/Dashboard/hooks/index(1).d.ts +0 -12
- package/dist/components/templates/lumi/Dashboard/hooks/index(2).d.ts +0 -12
- package/dist/components/templates/lumi/Dashboard/hooks/useDashboardStore(1).d.ts +0 -34
- package/dist/components/templates/lumi/Dashboard/hooks/useScrollToTop(1).d.ts +0 -47
- package/dist/components/templates/lumi/Dashboard/index(1).d.ts +0 -10
- package/dist/components/templates/lumi/Dashboard/store/storeKeys(1).d.ts +0 -13
- package/dist/components/templates/lumi/Dashboard/store/types(1).d.ts +0 -73
- package/dist/components/templates/lumi/Dashboard/store/types(2).d.ts +0 -73
- package/dist/components/templates/lumi/Dashboard/types(1).d.ts +0 -114
- package/dist/components/templates/lumi/Dashboard/types(2).d.ts +0 -114
- package/dist/components/templates/lumi/index(1).d.ts +0 -3
- package/dist/core/chat/ChatConfigContext(1).d.ts +0 -36
- package/dist/index(1).esm.js +0 -19378
- package/dist/index(1).js +0 -19487
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { LumiIconType } from '../../../atoms/lumi/Icon';
|
|
2
|
-
/**
|
|
3
|
-
* Convierte el nombre del icono del backend al tipo de LUMI_ICON_TYPES
|
|
4
|
-
*
|
|
5
|
-
* @param iconName - Nombre del icono desde el backend (ej: "home", "folder-open")
|
|
6
|
-
* @returns El tipo de icono de LUMI_ICON_TYPES o undefined si no existe
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* getIconType("home") // LUMI_ICON_TYPES.HOME
|
|
11
|
-
* getIconType("folder-open") // LUMI_ICON_TYPES.FOLDER_OPEN
|
|
12
|
-
* getIconType("invalid") // undefined (con warning en consola)
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function getIconType(iconName?: string): LumiIconType | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Menu } from './Menu';
|
|
2
|
-
export { MenuItem } from './MenuItem';
|
|
3
|
-
export { SubMenu } from './SubMenu';
|
|
4
|
-
export { MenuItemGroup } from './MenuItemGroup';
|
|
5
|
-
export { useMenuContext, MenuProvider } from './MenuContext';
|
|
6
|
-
export { getIconType } from './iconHelper';
|
|
7
|
-
export type { MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, MenuItemData, SelectInfo, } from './types';
|
|
8
|
-
export type { MenuContextType } from './MenuContext';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Menu } from './Menu';
|
|
2
|
-
export { MenuItem } from './MenuItem';
|
|
3
|
-
export { SubMenu } from './SubMenu';
|
|
4
|
-
export { MenuItemGroup } from './MenuItemGroup';
|
|
5
|
-
export { useMenuContext, MenuProvider } from './MenuContext';
|
|
6
|
-
export { getIconType } from './iconHelper';
|
|
7
|
-
export type { MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, MenuItemData, SelectInfo, } from './types';
|
|
8
|
-
export type { MenuContextType } from './MenuContext';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { MenuMode, MenuTheme, MenuTriggerAction } from '../../../../core/constants/lumi';
|
|
2
|
-
/**
|
|
3
|
-
* Datos del menu item desde el backend
|
|
4
|
-
*/
|
|
5
|
-
export interface MenuItemData {
|
|
6
|
-
/** ID único del menu item (UUID) */
|
|
7
|
-
id: string;
|
|
8
|
-
/** ID de la compañía (UUID) */
|
|
9
|
-
companyId: string;
|
|
10
|
-
/** Nombre del menu item */
|
|
11
|
-
name: string;
|
|
12
|
-
/** Label/descripción corta del item */
|
|
13
|
-
label?: string;
|
|
14
|
-
/** Descripción larga del item */
|
|
15
|
-
description?: string;
|
|
16
|
-
/** ID del item padre (para construir jerarquía)
|
|
17
|
-
* Si topId === id, es un item de nivel superior */
|
|
18
|
-
topId: string;
|
|
19
|
-
/** Ruta de navegación */
|
|
20
|
-
route?: string;
|
|
21
|
-
/** Estado activo/inactivo */
|
|
22
|
-
state: boolean;
|
|
23
|
-
/** Nombre del icono de lumi (string que mapea a LUMI_ICON_TYPES)
|
|
24
|
-
* Ejemplo: "home" → LUMI_ICON_TYPES.HOME */
|
|
25
|
-
icon?: string;
|
|
26
|
-
/** Fecha de creación */
|
|
27
|
-
createdDate: string;
|
|
28
|
-
/** Fecha de actualización */
|
|
29
|
-
updatedDate: string;
|
|
30
|
-
/** Hijos (construidos por buildMenuTree) */
|
|
31
|
-
children?: MenuItemData[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Información del item seleccionado
|
|
35
|
-
*/
|
|
36
|
-
export interface SelectInfo {
|
|
37
|
-
key: string;
|
|
38
|
-
keyPath: string[];
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Props del componente Menu
|
|
42
|
-
*/
|
|
43
|
-
export interface MenuProps {
|
|
44
|
-
/** Lista plana de items desde el backend */
|
|
45
|
-
items: MenuItemData[];
|
|
46
|
-
/** Modo del menú */
|
|
47
|
-
mode?: MenuMode;
|
|
48
|
-
/** Tema del menú */
|
|
49
|
-
theme?: MenuTheme;
|
|
50
|
-
/** Keys de los items seleccionados por defecto */
|
|
51
|
-
defaultSelectedKeys?: string[];
|
|
52
|
-
/** Keys de los items seleccionados (controlled) */
|
|
53
|
-
selectedKeys?: string[];
|
|
54
|
-
/** Keys de los submenús abiertos por defecto */
|
|
55
|
-
defaultOpenKeys?: string[];
|
|
56
|
-
/** Keys de los submenús abiertos (controlled) */
|
|
57
|
-
openKeys?: string[];
|
|
58
|
-
/** Si está en modo accordion (solo un submenú abierto a la vez) */
|
|
59
|
-
accordion?: boolean;
|
|
60
|
-
/** Acción que dispara la apertura de submenús */
|
|
61
|
-
triggerSubMenuAction?: MenuTriggerAction;
|
|
62
|
-
/** Nivel de indentación para submenús inline (px) */
|
|
63
|
-
inlineIndent?: number;
|
|
64
|
-
/** Callback cuando se selecciona un item */
|
|
65
|
-
onSelect?: (info: SelectInfo) => void;
|
|
66
|
-
/** Callback cuando cambian los submenús abiertos */
|
|
67
|
-
onOpenChange?: (openKeys: string[]) => void;
|
|
68
|
-
/** Clase CSS adicional */
|
|
69
|
-
className?: string;
|
|
70
|
-
/** Estilos inline */
|
|
71
|
-
style?: React.CSSProperties;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Props del componente MenuItem
|
|
75
|
-
*/
|
|
76
|
-
export interface MenuItemProps {
|
|
77
|
-
/** Key única del item */
|
|
78
|
-
itemKey: string;
|
|
79
|
-
/** Título/nombre del item */
|
|
80
|
-
title: string;
|
|
81
|
-
/** Icono del item (nombre en string) */
|
|
82
|
-
icon?: string;
|
|
83
|
-
/** Ruta para React Router */
|
|
84
|
-
to?: string;
|
|
85
|
-
/** Si el item está deshabilitado */
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
/** Callback cuando se clickea el item */
|
|
88
|
-
onClick?: () => void;
|
|
89
|
-
/** Nivel de indentación (calculado internamente) */
|
|
90
|
-
level?: number;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Props del componente SubMenu
|
|
94
|
-
*/
|
|
95
|
-
export interface SubMenuProps {
|
|
96
|
-
/** Key única del submenu */
|
|
97
|
-
subMenuKey: string;
|
|
98
|
-
/** Título del submenu */
|
|
99
|
-
title: string;
|
|
100
|
-
/** Icono del submenu (nombre en string) */
|
|
101
|
-
icon?: string;
|
|
102
|
-
/** Items hijos */
|
|
103
|
-
children: MenuItemData[];
|
|
104
|
-
/** Nivel de indentación (calculado internamente) */
|
|
105
|
-
level?: number;
|
|
106
|
-
/** Si el submenu está deshabilitado */
|
|
107
|
-
disabled?: boolean;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Props del componente MenuItemGroup
|
|
111
|
-
*/
|
|
112
|
-
export interface MenuItemGroupProps {
|
|
113
|
-
/** Título del grupo */
|
|
114
|
-
title: string;
|
|
115
|
-
/** Items del grupo */
|
|
116
|
-
children: MenuItemData[];
|
|
117
|
-
/** Nivel de indentación (calculado internamente) */
|
|
118
|
-
level?: number;
|
|
119
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Control } from 'react-hook-form';
|
|
2
|
-
import { type SelectProps as LumiSelectProps, type SelectOption } from '../../../atoms/lumi/Select';
|
|
3
|
-
export interface FormSelectProps extends Omit<LumiSelectProps, 'error' | 'onChange' | 'value' | 'onBlur' | 'name' | 'onSelect' | 'onChangeMultiple'> {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
clearWithReset?: boolean | string | number | (string | number)[];
|
|
7
|
-
onSelect?: (value: string | number, option: SelectOption) => void;
|
|
8
|
-
onChangeMultiple?: (values: (string | number)[], options: SelectOption[]) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Select: {
|
|
11
|
-
({ name, control, clearWithReset, onClear, onSelect, onChangeMultiple, ...props }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export default Select;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Control } from 'react-hook-form';
|
|
2
|
-
import { type SelectProps as LumiSelectProps, type SelectOption } from '../../../atoms/lumi/Select';
|
|
3
|
-
export interface FormSelectProps extends Omit<LumiSelectProps, 'error' | 'onChange' | 'value' | 'onBlur' | 'name' | 'onSelect' | 'onChangeMultiple'> {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
clearWithReset?: boolean | string | number | (string | number)[];
|
|
7
|
-
onSelect?: (value: string | number, option: SelectOption) => void;
|
|
8
|
-
onChangeMultiple?: (values: (string | number)[], options: SelectOption[]) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Select: {
|
|
11
|
-
({ name, control, clearWithReset, onClear, onSelect, onChangeMultiple, ...props }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export default Select;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Control } from 'react-hook-form';
|
|
2
|
-
import { type SelectProps as LumiSelectProps, type SelectOption } from '../../../atoms/lumi/Select';
|
|
3
|
-
export interface FormSelectProps extends Omit<LumiSelectProps, 'error' | 'onChange' | 'value' | 'onBlur' | 'name' | 'onSelect' | 'onChangeMultiple'> {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
clearWithReset?: boolean | string | number | (string | number)[];
|
|
7
|
-
onSelect?: (value: string | number, option: SelectOption) => void;
|
|
8
|
-
onChangeMultiple?: (values: (string | number)[], options: SelectOption[]) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Select: {
|
|
11
|
-
({ name, control, clearWithReset, onClear, onSelect, onChangeMultiple, ...props }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export default Select;
|
package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Control, ControllerRenderProps } from 'react-hook-form';
|
|
2
|
-
export interface FormSelectClearWithResetOptions {
|
|
3
|
-
clearWithReset: boolean | string | number | (string | number)[];
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
field: ControllerRenderProps<any, string>;
|
|
7
|
-
wasClearedRef: {
|
|
8
|
-
current: boolean;
|
|
9
|
-
};
|
|
10
|
-
onClear?: () => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Hook personalizado para manejar la funcionalidad de limpiar con reset
|
|
14
|
-
* en formularios con React Hook Form para Select
|
|
15
|
-
*
|
|
16
|
-
* @param options - Configuración para el manejo de clear con reset
|
|
17
|
-
* @returns Función handleClear que maneja el reset y limpieza de errores
|
|
18
|
-
*/
|
|
19
|
-
export declare const useFormSelectClearWithReset: (options: FormSelectClearWithResetOptions) => {
|
|
20
|
-
handleClear: () => void;
|
|
21
|
-
};
|
package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Control, ControllerRenderProps } from 'react-hook-form';
|
|
2
|
-
export interface FormSelectClearWithResetOptions {
|
|
3
|
-
clearWithReset: boolean | string | number | (string | number)[];
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
field: ControllerRenderProps<any, string>;
|
|
7
|
-
wasClearedRef: {
|
|
8
|
-
current: boolean;
|
|
9
|
-
};
|
|
10
|
-
onClear?: () => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Hook personalizado para manejar la funcionalidad de limpiar con reset
|
|
14
|
-
* en formularios con React Hook Form para Select
|
|
15
|
-
*
|
|
16
|
-
* @param options - Configuración para el manejo de clear con reset
|
|
17
|
-
* @returns Función handleClear que maneja el reset y limpieza de errores
|
|
18
|
-
*/
|
|
19
|
-
export declare const useFormSelectClearWithReset: (options: FormSelectClearWithResetOptions) => {
|
|
20
|
-
handleClear: () => void;
|
|
21
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SessionExpiryPromptProps {
|
|
3
|
-
/** Controlado por el consumidor: este componente no decide cuándo aparecer. */
|
|
4
|
-
open: boolean;
|
|
5
|
-
/** Segundos que quedan; se muestran para que la urgencia sea un dato, no una sensación. */
|
|
6
|
-
secondsLeft?: number;
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
continueLabel?: string;
|
|
10
|
-
endLabel?: string;
|
|
11
|
-
onContinue: () => void;
|
|
12
|
-
onEnd: () => void;
|
|
13
|
-
}
|
|
14
|
-
/** SPEC-029 B2 — aviso de sesión por expirar: hoja inferior a ancho completo.
|
|
15
|
-
*
|
|
16
|
-
* MOLÉCULA: compone el átomo `Button` en vez de pintar sus propios botones. Lo que aporta es la
|
|
17
|
-
* composición —capa, hoja, jerarquía de las dos salidas—, no un estilo de botón paralelo que
|
|
18
|
-
* mañana se desincronizaría del resto del sistema.
|
|
19
|
-
*
|
|
20
|
-
* Componente TONTO a propósito: no sabe qué es un token, ni cuándo vence, ni a quién hay que
|
|
21
|
-
* preguntarle. Recibe `open` y devuelve dos decisiones. Quién decide mostrarlo es el host, que
|
|
22
|
-
* es quien conoce la política.
|
|
23
|
-
*/
|
|
24
|
-
export declare const SessionExpiryPrompt: React.FC<SessionExpiryPromptProps>;
|
|
25
|
-
export default SessionExpiryPrompt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SessionExpiryPrompt, type SessionExpiryPromptProps } from './SessionExpiryPrompt';
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export type Align = "left" | "center" | "right";
|
|
3
|
-
export type FixedSide = "left" | "right";
|
|
4
|
-
export type CellType = "CHILDREN" | "ACTION" | "FREE" | "BUTTON" | "INPUT" | "SELECT" | "DATE_INPUT" | "TIME_INPUT" | "CHECKBOX" | "INPUT_MOLECULE" | "SELECT_MOLECULE" | "DATE_INPUT_MOLECULE" | "TIME_INPUT_MOLECULE" | "CHECKBOX_MOLECULE";
|
|
5
|
-
export interface ScrollConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Ancho total de la tabla para scroll horizontal
|
|
8
|
-
* - Número: píxeles (ej: 1500)
|
|
9
|
-
* - String: '100%', 'max-content', etc.
|
|
10
|
-
* ⚠️ OBLIGATORIO para columnas fijas
|
|
11
|
-
*/
|
|
12
|
-
x?: number | string;
|
|
13
|
-
/**
|
|
14
|
-
* Alto de la tabla para scroll vertical
|
|
15
|
-
* - Número: píxeles (ej: 400)
|
|
16
|
-
* - String: '50vh', '400px', etc.
|
|
17
|
-
*/
|
|
18
|
-
y?: number | string;
|
|
19
|
-
}
|
|
20
|
-
export interface TableProps<T extends object> {
|
|
21
|
-
/** Array de datos a mostrar en la tabla */
|
|
22
|
-
dataSource: T[];
|
|
23
|
-
/** Configuración de columnas */
|
|
24
|
-
columns: Array<ColumnUI<T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Callback para eventos de la tabla (row click, actions)
|
|
27
|
-
* ⚠️ Nota: Los eventos de átomos lumi (onChange de INPUT, SELECT, etc.)
|
|
28
|
-
* se manejan directamente en uiProps, NO pasan por este callback
|
|
29
|
-
*/
|
|
30
|
-
onChange?: (info: ChangeInfo<T>) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Configuración de scroll horizontal y vertical
|
|
33
|
-
* ⚠️ OBLIGATORIO si usas columnas con `fixed`
|
|
34
|
-
* @example scroll={{ x: 1500, y: 400 }}
|
|
35
|
-
*/
|
|
36
|
-
scroll?: ScrollConfig;
|
|
37
|
-
/** Clase CSS adicional */
|
|
38
|
-
className?: string;
|
|
39
|
-
/** Habilitar virtualización para grandes volúmenes de datos */
|
|
40
|
-
virtualize?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Este parámetro está deprecado. Usa `height` en su lugar.
|
|
43
|
-
* Cantidad de filas a mostrar antes de activar scroll vertical
|
|
44
|
-
* Si no se especifica, muestra todas las filas sin scroll
|
|
45
|
-
* @example rowsToShow={10} // Muestra 10 filas, el resto con scroll
|
|
46
|
-
*/
|
|
47
|
-
rowsToShow?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Altura de la tabla (opcional)
|
|
50
|
-
* - Si se especifica: La tabla tendrá esa altura fija con scroll vertical
|
|
51
|
-
* - Si NO se especifica: La tabla tendrá altura automática según su contenido
|
|
52
|
-
* @example height={400} // 400px de altura fija
|
|
53
|
-
* @example height="50vh" // 50% del viewport
|
|
54
|
-
* @example height="auto" // Altura automática (mismo efecto que no especificar)
|
|
55
|
-
*/
|
|
56
|
-
height?: number | string;
|
|
57
|
-
/**
|
|
58
|
-
* Mostrar líneas horizontales entre filas
|
|
59
|
-
* Por defecto: true (líneas sutiles entre filas)
|
|
60
|
-
*/
|
|
61
|
-
bordered?: boolean;
|
|
62
|
-
/** Estilo compacto (padding reducido) */
|
|
63
|
-
compact?: boolean;
|
|
64
|
-
/** Mostrar hover en las filas */
|
|
65
|
-
hoverable?: boolean;
|
|
66
|
-
/** Filas alternas con background color (zebra striping) */
|
|
67
|
-
striped?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Función para obtener key único de cada fila
|
|
70
|
-
* Si no se proporciona, usa el índice (no recomendado para listas dinámicas)
|
|
71
|
-
* @example rowKey={(item) => item.id}
|
|
72
|
-
*/
|
|
73
|
-
rowKey?: (item: T, index: number) => string | number;
|
|
74
|
-
/** Mensaje cuando no hay datos */
|
|
75
|
-
emptyText?: string;
|
|
76
|
-
/** Mostrar estado de carga */
|
|
77
|
-
loading?: boolean;
|
|
78
|
-
/** Test ID para testing */
|
|
79
|
-
"data-testid"?: string;
|
|
80
|
-
/** Habilitar selección de filas */
|
|
81
|
-
selectable?: boolean;
|
|
82
|
-
/** Tipo de selección */
|
|
83
|
-
selectionType?: "checkbox" | "radio";
|
|
84
|
-
/**
|
|
85
|
-
* Filas seleccionadas (controlled component)
|
|
86
|
-
* Array de keys de las filas seleccionadas
|
|
87
|
-
*/
|
|
88
|
-
selectedRowKeys?: string[];
|
|
89
|
-
/**
|
|
90
|
-
* Callback cuando cambia la selección
|
|
91
|
-
* @param selectedKeys - Array de keys seleccionadas
|
|
92
|
-
* @param selectedRows - Array de filas completas seleccionadas
|
|
93
|
-
*/
|
|
94
|
-
onSelectionChange?: (selectedKeys: string[], selectedRows: T[]) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Keys de filas que deben estar deshabilitadas para selección
|
|
97
|
-
*/
|
|
98
|
-
disabledRowKeys?: string[];
|
|
99
|
-
/**
|
|
100
|
-
* Mostrar checkbox "Seleccionar todo" en el header
|
|
101
|
-
* Por defecto: true
|
|
102
|
-
*/
|
|
103
|
-
showSelectAll?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Ancho de la columna de selección
|
|
106
|
-
* Por defecto: '70px'
|
|
107
|
-
* Nota: La columna de selección siempre está fija a la izquierda
|
|
108
|
-
*/
|
|
109
|
-
selectionColumnWidth?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface ColumnUI<T> {
|
|
112
|
-
/** Identificador único de la columna */
|
|
113
|
-
key: string;
|
|
114
|
-
/** Título de la columna (header) */
|
|
115
|
-
title?: string;
|
|
116
|
-
/** Alineación del contenido de la celda */
|
|
117
|
-
align?: Align;
|
|
118
|
-
/**
|
|
119
|
-
* Ancho de la columna:
|
|
120
|
-
* - Sin width: Auto (se ajusta al contenido)
|
|
121
|
-
* - Número: Fracción relativa flex (ej: 2 = 2 partes del espacio disponible)
|
|
122
|
-
* - String: Valor CSS exacto (ej: '200px', '20%', '10rem')
|
|
123
|
-
* ⚠️ OBLIGATORIO para columnas con `fixed`
|
|
124
|
-
*/
|
|
125
|
-
width?: number | string;
|
|
126
|
-
/**
|
|
127
|
-
* Fijar columna a la izquierda o derecha (sticky)
|
|
128
|
-
* Las columnas fijas permanecen visibles al hacer scroll horizontal
|
|
129
|
-
* ⚠️ Requiere definir `width` y `scroll.x` en la tabla
|
|
130
|
-
*/
|
|
131
|
-
fixed?: FixedSide;
|
|
132
|
-
/** Tipo de celda a renderizar */
|
|
133
|
-
cellType?: CellType;
|
|
134
|
-
/** Configuración de origen de datos para la celda */
|
|
135
|
-
dataSource?: ColumnDataSource<T>;
|
|
136
|
-
/** Elemento React para renderizar (usado con cellType='CHILDREN') */
|
|
137
|
-
element?: ReactNode;
|
|
138
|
-
/** Props a pasar al átomo/molécula lumi (usado con cellType='BUTTON', 'INPUT', etc.) */
|
|
139
|
-
uiProps?: Record<string, unknown>;
|
|
140
|
-
/** Clase CSS adicional para la columna */
|
|
141
|
-
className?: string;
|
|
142
|
-
}
|
|
143
|
-
export interface ColumnDataSource<T> {
|
|
144
|
-
/** Función para obtener el ID único del elemento */
|
|
145
|
-
id?: (item: T, index: number) => string | number;
|
|
146
|
-
/** Función para obtener el texto a mostrar */
|
|
147
|
-
text?: (item: T, index: number) => string | number | ReactNode;
|
|
148
|
-
/** Función para obtener el estado/variante (para BADGE_UI) */
|
|
149
|
-
status?: (item: T, index: number) => "default" | "success" | "warning" | "error" | "info" | string;
|
|
150
|
-
/** Función para construir un elemento React personalizado */
|
|
151
|
-
build?: (item: T, index: number) => ReactNode;
|
|
152
|
-
/** Función para obtener el valor raw (útil para átomos lumi) */
|
|
153
|
-
raw?: (item: T, index: number) => unknown;
|
|
154
|
-
}
|
|
155
|
-
export interface ChangeInfo<T = unknown> {
|
|
156
|
-
/**
|
|
157
|
-
* Tipo de evento de la tabla
|
|
158
|
-
* - 'row-click': Click en una fila
|
|
159
|
-
* - 'action': Click en un action (botón, etc.)
|
|
160
|
-
* - 'select': Selección de filas (Fase 2)
|
|
161
|
-
*/
|
|
162
|
-
type: "row-click" | "action" | "select";
|
|
163
|
-
/** Datos del evento */
|
|
164
|
-
payload: {
|
|
165
|
-
/** Fila completa con todos sus datos */
|
|
166
|
-
row: T;
|
|
167
|
-
/** Índice de la fila en el dataSource */
|
|
168
|
-
rowIndex: number;
|
|
169
|
-
/** Key de la columna (solo para 'action') */
|
|
170
|
-
columnKey?: string;
|
|
171
|
-
/** Datos adicionales opcionales */
|
|
172
|
-
meta?: Record<string, unknown>;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
export interface ValidatedColumn<T> extends ColumnUI<T> {
|
|
176
|
-
originalIndex: number;
|
|
177
|
-
}
|