pixelon 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/types.d.ts +2 -0
- package/dist/index.esm.js +13 -4
- package/dist/index.js +13 -4
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- 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,61 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { FormFieldConfig } from "../DynamicForm/types";
|
|
3
|
-
/**
|
|
4
|
-
* Modo del FormDrawer
|
|
5
|
-
*/
|
|
6
|
-
export type FormDrawerMode = "create" | "edit" | "view";
|
|
7
|
-
/**
|
|
8
|
-
* Props del componente FormDrawer
|
|
9
|
-
*/
|
|
10
|
-
export interface FormDrawerProps {
|
|
11
|
-
/** Si el drawer está abierto */
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
/** Callback al cerrar el drawer */
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
/** Modo del formulario */
|
|
16
|
-
mode: FormDrawerMode;
|
|
17
|
-
/** Configuración de campos del formulario */
|
|
18
|
-
fields: FormFieldConfig[];
|
|
19
|
-
/** Valores iniciales del formulario */
|
|
20
|
-
defaultValues?: Record<string, unknown>;
|
|
21
|
-
/** Callback al enviar el formulario */
|
|
22
|
-
onSubmit: (data: Record<string, unknown>) => void | Promise<void>;
|
|
23
|
-
/** Callback que se ejecuta cuando cambia cualquier valor del formulario (en tiempo real) */
|
|
24
|
-
onChange?: (data: Record<string, unknown>) => void;
|
|
25
|
-
/** Esquema de validación Yup */
|
|
26
|
-
validationSchema: unknown;
|
|
27
|
-
/** Título del drawer */
|
|
28
|
-
title?: string;
|
|
29
|
-
/** Subtítulo o descripción */
|
|
30
|
-
subtitle?: string;
|
|
31
|
-
/** Estado de loading al enviar */
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
/** Ancho del drawer */
|
|
34
|
-
width?: number | string;
|
|
35
|
-
/** Texto del botón submit */
|
|
36
|
-
submitText?: string;
|
|
37
|
-
/** Texto del botón cancel */
|
|
38
|
-
cancelText?: string;
|
|
39
|
-
/** Layout de columnas del formulario */
|
|
40
|
-
columns?: 1 | 2 | 3 | 4;
|
|
41
|
-
/** Espaciado entre campos */
|
|
42
|
-
spacing?: "small" | "medium" | "large";
|
|
43
|
-
/** Tamaño de los campos del formulario */
|
|
44
|
-
fieldSize?: "small" | "medium" | "large";
|
|
45
|
-
/** Contenido adicional en el footer (además de los botones) */
|
|
46
|
-
footerExtra?: ReactNode;
|
|
47
|
-
/** Cerrar drawer al hacer clic en overlay (default: true) */
|
|
48
|
-
closeOnOverlayClick?: boolean;
|
|
49
|
-
/** Cerrar drawer al presionar Escape (default: true) */
|
|
50
|
-
closeOnEscape?: boolean;
|
|
51
|
-
/** Callback cuando se intenta cerrar (puede prevenir el cierre) */
|
|
52
|
-
onBeforeClose?: () => boolean | Promise<boolean>;
|
|
53
|
-
/** Clase CSS adicional */
|
|
54
|
-
className?: string;
|
|
55
|
-
/** Test ID */
|
|
56
|
-
"data-testid"?: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Títulos por defecto según el modo
|
|
60
|
-
*/
|
|
61
|
-
export declare const DEFAULT_TITLES: Record<FormDrawerMode, string>;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type StepStatus = 'pending' | 'active' | 'completed' | 'error';
|
|
3
|
-
export interface StepConfig {
|
|
4
|
-
/** Identificador único del paso */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Título del paso (opcional, se muestra en tooltip) */
|
|
7
|
-
title?: string;
|
|
8
|
-
/** Descripción del paso (opcional) */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Icono personalizado para el paso (opcional) */
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
/** Si el paso está deshabilitado */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Función de validación antes de avanzar al siguiente paso */
|
|
15
|
-
validate?: () => boolean | Promise<boolean>;
|
|
16
|
-
/** Callback cuando el paso se completa */
|
|
17
|
-
onComplete?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export interface StepperProps {
|
|
20
|
-
/** Configuración de los pasos */
|
|
21
|
-
steps: StepConfig[];
|
|
22
|
-
/** Índice del paso actual (controlado) */
|
|
23
|
-
currentStep?: number;
|
|
24
|
-
/** Paso inicial (no controlado) */
|
|
25
|
-
defaultStep?: number;
|
|
26
|
-
/** Callback cuando cambia el paso */
|
|
27
|
-
onStepChange?: (stepIndex: number, stepId: string) => void;
|
|
28
|
-
/** Callback cuando se completan todos los pasos */
|
|
29
|
-
onComplete?: () => void;
|
|
30
|
-
/** Callback cuando se cancela el flujo */
|
|
31
|
-
onCancel?: () => void;
|
|
32
|
-
/** Contenido de cada paso (children como función o array) */
|
|
33
|
-
children: ReactNode | ((step: StepConfig, index: number) => ReactNode);
|
|
34
|
-
/** Orientación del stepper */
|
|
35
|
-
orientation?: 'horizontal' | 'vertical';
|
|
36
|
-
/** Tamaño de los indicadores */
|
|
37
|
-
size?: 'small' | 'medium' | 'large';
|
|
38
|
-
/** Variante de los indicadores */
|
|
39
|
-
variant?: 'circle' | 'dot' | 'number';
|
|
40
|
-
/** Si se permite navegación libre entre pasos completados */
|
|
41
|
-
allowNavigation?: boolean;
|
|
42
|
-
/** Si se muestra la línea conectora entre pasos */
|
|
43
|
-
showConnector?: boolean;
|
|
44
|
-
/** Texto del botón anterior */
|
|
45
|
-
prevButtonText?: string;
|
|
46
|
-
/** Texto del botón siguiente */
|
|
47
|
-
nextButtonText?: string;
|
|
48
|
-
/** Texto del botón finalizar */
|
|
49
|
-
finishButtonText?: string;
|
|
50
|
-
/** Texto del botón cancelar */
|
|
51
|
-
cancelButtonText?: string;
|
|
52
|
-
/** Si se muestra el botón cancelar */
|
|
53
|
-
showCancelButton?: boolean;
|
|
54
|
-
/** Si se ocultan los botones de navegación */
|
|
55
|
-
hideNavigation?: boolean;
|
|
56
|
-
/** Renderizado personalizado del header */
|
|
57
|
-
renderHeader?: (props: StepperHeaderRenderProps) => ReactNode;
|
|
58
|
-
/** Renderizado personalizado del footer */
|
|
59
|
-
renderFooter?: (props: StepperFooterRenderProps) => ReactNode;
|
|
60
|
-
/** Clase CSS adicional */
|
|
61
|
-
className?: string;
|
|
62
|
-
/** Si está cargando (deshabilita navegación) */
|
|
63
|
-
loading?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface StepperHeaderRenderProps {
|
|
66
|
-
steps: StepConfig[];
|
|
67
|
-
currentStep: number;
|
|
68
|
-
goToStep: (index: number) => void;
|
|
69
|
-
getStepStatus: (index: number) => StepStatus;
|
|
70
|
-
}
|
|
71
|
-
export interface StepperFooterRenderProps {
|
|
72
|
-
currentStep: number;
|
|
73
|
-
totalSteps: number;
|
|
74
|
-
isFirstStep: boolean;
|
|
75
|
-
isLastStep: boolean;
|
|
76
|
-
canGoNext: boolean;
|
|
77
|
-
canGoPrev: boolean;
|
|
78
|
-
goNext: () => void;
|
|
79
|
-
goPrev: () => void;
|
|
80
|
-
goToStep: (index: number) => void;
|
|
81
|
-
finish: () => void;
|
|
82
|
-
cancel: () => void;
|
|
83
|
-
loading: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface StepIndicatorProps {
|
|
86
|
-
step: StepConfig;
|
|
87
|
-
index: number;
|
|
88
|
-
status: StepStatus;
|
|
89
|
-
size: 'small' | 'medium' | 'large';
|
|
90
|
-
variant: 'circle' | 'dot' | 'number';
|
|
91
|
-
onClick?: () => void;
|
|
92
|
-
isClickable: boolean;
|
|
93
|
-
showConnector: boolean;
|
|
94
|
-
isLast: boolean;
|
|
95
|
-
orientation: 'horizontal' | 'vertical';
|
|
96
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type StepStatus = 'pending' | 'active' | 'completed' | 'error';
|
|
3
|
-
export interface StepConfig {
|
|
4
|
-
/** Identificador único del paso */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Título del paso (opcional, se muestra en tooltip) */
|
|
7
|
-
title?: string;
|
|
8
|
-
/** Descripción del paso (opcional) */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Icono personalizado para el paso (opcional) */
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
/** Si el paso está deshabilitado */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** Función de validación antes de avanzar al siguiente paso */
|
|
15
|
-
validate?: () => boolean | Promise<boolean>;
|
|
16
|
-
/** Callback cuando el paso se completa */
|
|
17
|
-
onComplete?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export interface StepperProps {
|
|
20
|
-
/** Configuración de los pasos */
|
|
21
|
-
steps: StepConfig[];
|
|
22
|
-
/** Índice del paso actual (controlado) */
|
|
23
|
-
currentStep?: number;
|
|
24
|
-
/** Paso inicial (no controlado) */
|
|
25
|
-
defaultStep?: number;
|
|
26
|
-
/** Callback cuando cambia el paso */
|
|
27
|
-
onStepChange?: (stepIndex: number, stepId: string) => void;
|
|
28
|
-
/** Callback cuando se completan todos los pasos */
|
|
29
|
-
onComplete?: () => void;
|
|
30
|
-
/** Callback cuando se cancela el flujo */
|
|
31
|
-
onCancel?: () => void;
|
|
32
|
-
/** Contenido de cada paso (children como función o array) */
|
|
33
|
-
children: ReactNode | ((step: StepConfig, index: number) => ReactNode);
|
|
34
|
-
/** Orientación del stepper */
|
|
35
|
-
orientation?: 'horizontal' | 'vertical';
|
|
36
|
-
/** Tamaño de los indicadores */
|
|
37
|
-
size?: 'small' | 'medium' | 'large';
|
|
38
|
-
/** Variante de los indicadores */
|
|
39
|
-
variant?: 'circle' | 'dot' | 'number';
|
|
40
|
-
/** Si se permite navegación libre entre pasos completados */
|
|
41
|
-
allowNavigation?: boolean;
|
|
42
|
-
/** Si se muestra la línea conectora entre pasos */
|
|
43
|
-
showConnector?: boolean;
|
|
44
|
-
/** Texto del botón anterior */
|
|
45
|
-
prevButtonText?: string;
|
|
46
|
-
/** Texto del botón siguiente */
|
|
47
|
-
nextButtonText?: string;
|
|
48
|
-
/** Texto del botón finalizar */
|
|
49
|
-
finishButtonText?: string;
|
|
50
|
-
/** Texto del botón cancelar */
|
|
51
|
-
cancelButtonText?: string;
|
|
52
|
-
/** Si se muestra el botón cancelar */
|
|
53
|
-
showCancelButton?: boolean;
|
|
54
|
-
/** Si se ocultan los botones de navegación */
|
|
55
|
-
hideNavigation?: boolean;
|
|
56
|
-
/** Renderizado personalizado del header */
|
|
57
|
-
renderHeader?: (props: StepperHeaderRenderProps) => ReactNode;
|
|
58
|
-
/** Renderizado personalizado del footer */
|
|
59
|
-
renderFooter?: (props: StepperFooterRenderProps) => ReactNode;
|
|
60
|
-
/** Clase CSS adicional */
|
|
61
|
-
className?: string;
|
|
62
|
-
/** Si está cargando (deshabilita navegación) */
|
|
63
|
-
loading?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface StepperHeaderRenderProps {
|
|
66
|
-
steps: StepConfig[];
|
|
67
|
-
currentStep: number;
|
|
68
|
-
goToStep: (index: number) => void;
|
|
69
|
-
getStepStatus: (index: number) => StepStatus;
|
|
70
|
-
}
|
|
71
|
-
export interface StepperFooterRenderProps {
|
|
72
|
-
currentStep: number;
|
|
73
|
-
totalSteps: number;
|
|
74
|
-
isFirstStep: boolean;
|
|
75
|
-
isLastStep: boolean;
|
|
76
|
-
canGoNext: boolean;
|
|
77
|
-
canGoPrev: boolean;
|
|
78
|
-
goNext: () => void;
|
|
79
|
-
goPrev: () => void;
|
|
80
|
-
goToStep: (index: number) => void;
|
|
81
|
-
finish: () => void;
|
|
82
|
-
cancel: () => void;
|
|
83
|
-
loading: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface StepIndicatorProps {
|
|
86
|
-
step: StepConfig;
|
|
87
|
-
index: number;
|
|
88
|
-
status: StepStatus;
|
|
89
|
-
size: 'small' | 'medium' | 'large';
|
|
90
|
-
variant: 'circle' | 'dot' | 'number';
|
|
91
|
-
onClick?: () => void;
|
|
92
|
-
isClickable: boolean;
|
|
93
|
-
showConnector: boolean;
|
|
94
|
-
isLast: boolean;
|
|
95
|
-
orientation: 'horizontal' | 'vertical';
|
|
96
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { ActionBar, type ActionBarProps, type ActionConfig, type EnableCondition, } from './ActionBar';
|
|
2
|
-
export { DynamicForm, type DynamicFormProps, type FormFieldConfig, type MoleculeType, type SelectOption, } from './DynamicForm';
|
|
3
|
-
export { FormDrawer, type FormDrawerProps, type FormDrawerMode, DEFAULT_TITLES, } from './FormDrawer';
|
|
4
|
-
export { DashboardNavbar, type DashboardNavbarProps, } from './DashboardNavbar';
|
|
5
|
-
export { DashboardSidebar, type DashboardSidebarProps, } from './DashboardSidebar';
|
|
6
|
-
export { DashboardWorkspace, type DashboardWorkspaceProps, } from './DashboardWorkspace';
|
|
7
|
-
export { BaseNavbar, type BaseNavbarProps, } from './BaseNavbar';
|
|
8
|
-
export { BaseWorkspace, type BaseWorkspaceProps, } from './BaseWorkspace';
|
|
9
|
-
export { Calendar, type CalendarProps, type CalendarEvent, type CalendarView, type SlotInfo, type EventColorConfig, } from './Calendar';
|
|
10
|
-
export { Stepper, StepIndicator, type StepperProps, type StepConfig, type StepStatus, type StepperHeaderRenderProps, type StepperFooterRenderProps, } from './Stepper';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { ActionBar, type ActionBarProps, type ActionConfig, type EnableCondition, } from './ActionBar';
|
|
2
|
-
export { DynamicForm, type DynamicFormProps, type FormFieldConfig, type MoleculeType, type SelectOption, } from './DynamicForm';
|
|
3
|
-
export { FormDrawer, type FormDrawerProps, type FormDrawerMode, DEFAULT_TITLES, } from './FormDrawer';
|
|
4
|
-
export { DashboardNavbar, type DashboardNavbarProps, } from './DashboardNavbar';
|
|
5
|
-
export { DashboardSidebar, type DashboardSidebarProps, } from './DashboardSidebar';
|
|
6
|
-
export { DashboardWorkspace, type DashboardWorkspaceProps, } from './DashboardWorkspace';
|
|
7
|
-
export { BaseNavbar, type BaseNavbarProps, } from './BaseNavbar';
|
|
8
|
-
export { BaseWorkspace, type BaseWorkspaceProps, } from './BaseWorkspace';
|
|
9
|
-
export { Calendar, type CalendarProps, type CalendarEvent, type CalendarView, type SlotInfo, type EventColorConfig, } from './Calendar';
|
|
10
|
-
export { Stepper, StepIndicator, type StepperProps, type StepConfig, type StepStatus, type StepperHeaderRenderProps, type StepperFooterRenderProps, } from './Stepper';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { ChatWidgetProps } from './types';
|
|
3
|
-
import './ChatWidget.scss';
|
|
4
|
-
/**
|
|
5
|
-
* ChatWidget - Template de Chat tipo Widget Flotante
|
|
6
|
-
*
|
|
7
|
-
* Widget de chat estilo WhatsApp/Intercom con un botón flotante (FAB)
|
|
8
|
-
* que al hacer clic despliega el chat en un contenedor elegante.
|
|
9
|
-
*/
|
|
10
|
-
export declare const ChatWidget: FC<ChatWidgetProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useChatWidget } from './useChatWidget';
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ChatConfig } from '../../../../core/chat';
|
|
3
|
-
import type { ChatEventBus } from '../../../../core/eventBus';
|
|
4
|
-
/**
|
|
5
|
-
* Posición del widget en la pantalla
|
|
6
|
-
*/
|
|
7
|
-
export type ChatWidgetPosition = 'bottom-right' | 'bottom-left';
|
|
8
|
-
/**
|
|
9
|
-
* Offset del widget desde los bordes
|
|
10
|
-
*/
|
|
11
|
-
export interface ChatWidgetOffset {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Props del componente ChatWidget
|
|
17
|
-
*/
|
|
18
|
-
export interface ChatWidgetProps {
|
|
19
|
-
/**
|
|
20
|
-
* EventBus para comunicación bidireccional con el Chat
|
|
21
|
-
*/
|
|
22
|
-
eventBus: ChatEventBus;
|
|
23
|
-
/**
|
|
24
|
-
* Configuración estática/visual del chat
|
|
25
|
-
*/
|
|
26
|
-
config?: Partial<ChatConfig>;
|
|
27
|
-
/**
|
|
28
|
-
* Estado inicial del widget (abierto/cerrado)
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
defaultOpen?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Estado controlado (abierto/cerrado)
|
|
34
|
-
* Si se proporciona, el componente es controlado
|
|
35
|
-
*/
|
|
36
|
-
isOpen?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Callback cuando cambia el estado abierto/cerrado
|
|
39
|
-
*/
|
|
40
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Posición del widget en la pantalla
|
|
43
|
-
* @default 'bottom-right'
|
|
44
|
-
*/
|
|
45
|
-
position?: ChatWidgetPosition;
|
|
46
|
-
/**
|
|
47
|
-
* Offset desde los bordes (en píxeles)
|
|
48
|
-
* @default { x: 24, y: 24 }
|
|
49
|
-
*/
|
|
50
|
-
offset?: ChatWidgetOffset;
|
|
51
|
-
/**
|
|
52
|
-
* Icono personalizado para el FAB cuando está cerrado
|
|
53
|
-
*/
|
|
54
|
-
fabIcon?: ReactNode;
|
|
55
|
-
/**
|
|
56
|
-
* Icono cuando está abierto
|
|
57
|
-
*/
|
|
58
|
-
fabCloseIcon?: ReactNode;
|
|
59
|
-
/**
|
|
60
|
-
* Color de fondo del FAB
|
|
61
|
-
* @default 'var(--chat-color-primary)'
|
|
62
|
-
*/
|
|
63
|
-
fabColor?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Ancho del contenedor de chat
|
|
66
|
-
* @default 380
|
|
67
|
-
*/
|
|
68
|
-
width?: number | string;
|
|
69
|
-
/**
|
|
70
|
-
* Alto del contenedor de chat
|
|
71
|
-
* @default 520
|
|
72
|
-
*/
|
|
73
|
-
height?: number | string;
|
|
74
|
-
/**
|
|
75
|
-
* Clases CSS adicionales para el contenedor principal
|
|
76
|
-
*/
|
|
77
|
-
className?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Test ID para testing
|
|
80
|
-
* @default 'chat-widget'
|
|
81
|
-
*/
|
|
82
|
-
'data-testid'?: string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Estado interno del ChatWidget
|
|
86
|
-
*/
|
|
87
|
-
export interface ChatWidgetState {
|
|
88
|
-
isOpen: boolean;
|
|
89
|
-
isAnimating: boolean;
|
|
90
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook para manejar la altura de la aplicación basada en el viewport
|
|
3
|
-
* Configura la variable CSS --app-height para manejar el viewport en dispositivos móviles
|
|
4
|
-
*
|
|
5
|
-
* Este hook es especialmente importante para:
|
|
6
|
-
* - Dispositivos iOS donde la barra de direcciones afecta el viewport
|
|
7
|
-
* - Teclados virtuales que reducen el espacio disponible
|
|
8
|
-
* - Cambios de orientación
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* function Base() {
|
|
12
|
-
* useAppHeight();
|
|
13
|
-
*
|
|
14
|
-
* return (
|
|
15
|
-
* <div style={{ height: 'var(--app-height)' }}>
|
|
16
|
-
* contenido
|
|
17
|
-
* </div>
|
|
18
|
-
* );
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export declare const useAppHeight: () => void;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Props del template Base
|
|
4
|
-
*/
|
|
5
|
-
export interface BaseProps {
|
|
6
|
-
/**
|
|
7
|
-
* Contenido del navbar (primera fila)
|
|
8
|
-
* Puede ser cualquier componente React: logos, menús, breadcrumbs, botones, etc.
|
|
9
|
-
*/
|
|
10
|
-
navbarContent?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Contenido principal (segunda fila - workspace)
|
|
13
|
-
*/
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Altura del navbar en píxeles
|
|
17
|
-
* @default 64
|
|
18
|
-
*/
|
|
19
|
-
navbarHeight?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Color de fondo del navbar
|
|
22
|
-
* @default '#ffffff'
|
|
23
|
-
*/
|
|
24
|
-
navbarBackgroundColor?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Color de fondo del workspace
|
|
27
|
-
* @default '#fafafa'
|
|
28
|
-
*/
|
|
29
|
-
workspaceBackgroundColor?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Habilitar botón scroll to top en el workspace
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
enableScrollToTop?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Mostrar sombra en el navbar
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
navbarShadow?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Padding del workspace (CSS string)
|
|
42
|
-
* Se ajusta automáticamente en móvil (0px) vs desktop (valor prop)
|
|
43
|
-
* @default '24px'
|
|
44
|
-
*/
|
|
45
|
-
workspacePadding?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Clase CSS adicional para el contenedor principal
|
|
48
|
-
*/
|
|
49
|
-
className?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Test ID para testing
|
|
52
|
-
*/
|
|
53
|
-
'data-testid'?: string;
|
|
54
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CrudProps } from './types';
|
|
2
|
-
import './Crud.scss';
|
|
3
|
-
export declare function Crud<T extends Record<string, unknown>>({ size, showActionBar, actionBarMode, renderByFields, dataSource, filters, total, onCreate, onEdit, onDelete, onView, onPaginationChange, onFilterChange, validationSchema, getRowKey, labels, disabledActions, loading, filterFields, defaultFilters, tableHeight, hidePagination, formDrawerWidth, formColumns, showRowActions, rowActionTypes, rowActions, customActions, customDrawers, onCustomAction, className, 'data-testid': testId, }: CrudProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare namespace Crud {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CrudProps } from './types';
|
|
2
|
-
import './Crud.scss';
|
|
3
|
-
export declare function Crud<T extends Record<string, unknown>>({ size, showActionBar, actionBarMode, renderByFields, dataSource, filters, total, onCreate, onEdit, onDelete, onView, onPaginationChange, onFilterChange, validationSchema, getRowKey, labels, disabledActions, loading, filterFields, defaultFilters, tableHeight, hidePagination, formDrawerWidth, formColumns, showRowActions, rowActionTypes, rowActions, customActions, customDrawers, onCustomAction, className, 'data-testid': testId, }: CrudProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare namespace Crud {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ScrollToEnd.scss';
|
|
3
|
-
export interface ScrollToEndProps {
|
|
4
|
-
/** El área de datos del Crud; dentro de ella se busca quién tiene el scroll. */
|
|
5
|
-
hostRef: React.RefObject<HTMLElement | null>;
|
|
6
|
-
/** Cambia cuando cambia el contenido o la forma (tabla ↔ tarjetas): obliga a volver a mirar. */
|
|
7
|
-
dep?: unknown;
|
|
8
|
-
label?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* SPEC-093 — «hay más abajo».
|
|
12
|
-
*
|
|
13
|
-
* Desde que la tabla se desplaza por dentro (para que el paginador no se vaya de la pantalla), no
|
|
14
|
-
* hay nada que avise de que la página tiene más filas de las que se ven: el borde inferior parece
|
|
15
|
-
* el final. Este botón aparece SOLO cuando queda contenido por debajo y desaparece al llegar al
|
|
16
|
-
* final, así que no es un adorno permanente: es el aviso, y de paso el atajo.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ScrollToEnd: React.FC<ScrollToEndProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { RenderFieldConfig } from '../types';
|
|
2
|
-
import type { ColumnUI } from '../../../../molecules/lumi/Table/types';
|
|
3
|
-
import type { FormFieldConfig } from '../../../../organisms/lumi/DynamicForm/types';
|
|
4
|
-
/**
|
|
5
|
-
* Mapea RenderFieldConfig a columnas de tabla
|
|
6
|
-
*/
|
|
7
|
-
export declare function mapFieldsToTableColumns(fields: RenderFieldConfig[]): ColumnUI<Record<string, unknown>>[];
|
|
8
|
-
/**
|
|
9
|
-
* Mapea RenderFieldConfig a campos de formulario
|
|
10
|
-
* @param fields - Configuración de campos
|
|
11
|
-
* @param mode - Modo del formulario ('create' | 'edit' | 'view') para filtrar por showInModes
|
|
12
|
-
*/
|
|
13
|
-
export declare function mapFieldsToFormFields(fields: RenderFieldConfig[], mode?: 'create' | 'edit' | 'view'): FormFieldConfig[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook para manejar las acciones del CRUD
|
|
3
|
-
*/
|
|
4
|
-
export declare function useCrudActions<T extends Record<string, unknown>>(selectedRows: T[], onOpenForm: (mode: 'create' | 'edit' | 'view', data?: Partial<T>) => void, onOpenFilter: () => void, onOpenConfirm: (action: 'create' | 'edit' | 'delete', data?: Partial<T>, rows?: T[]) => void, onClearSelection: () => void, onView?: (rows: T[]) => Promise<void>, formMode?: 'create' | 'edit' | 'view' | null): {
|
|
5
|
-
handleCreate: () => void;
|
|
6
|
-
handleEdit: () => void;
|
|
7
|
-
handleView: () => Promise<void>;
|
|
8
|
-
handleDelete: () => void;
|
|
9
|
-
handleFilter: () => void;
|
|
10
|
-
handleFormSubmit: (data: Record<string, unknown>) => Promise<void>;
|
|
11
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const actionBarActions: {
|
|
2
|
-
setSelectedCount: (count: number, keys: Array<string | number>) => void;
|
|
3
|
-
setButtonDisabled: (buttonKey: "filter" | "create" | "edit" | "delete" | "view", disabled: boolean) => void;
|
|
4
|
-
setButtonLoading: (buttonKey: "filter" | "create" | "edit" | "delete" | "view", loading: boolean) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const tableActions: {
|
|
7
|
-
setSelection: (selectedKeys: Array<string | number>, selectedRows: unknown[]) => void;
|
|
8
|
-
clearSelection: () => void;
|
|
9
|
-
setLoading: (loading: boolean) => void;
|
|
10
|
-
setDataLoaded: (loaded: boolean) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const formDrawerActions: {
|
|
13
|
-
open: (mode: "create" | "edit" | "view", data?: Record<string, unknown>) => void;
|
|
14
|
-
close: () => void;
|
|
15
|
-
setDirty: (isDirty: boolean) => void;
|
|
16
|
-
setSubmitting: (isSubmitting: boolean) => void;
|
|
17
|
-
};
|
|
18
|
-
export declare const dynamicFormActions: {
|
|
19
|
-
setSubmitting: (isSubmitting: boolean) => void;
|
|
20
|
-
setValidating: (isValidating: boolean) => void;
|
|
21
|
-
setErrors: (errors: Record<string, string>) => void;
|
|
22
|
-
touchField: (fieldName: string) => void;
|
|
23
|
-
setUnsavedChanges: (hasChanges: boolean) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
};
|
|
26
|
-
export declare const filterDrawerActions: {
|
|
27
|
-
open: () => void;
|
|
28
|
-
close: () => void;
|
|
29
|
-
applyFilters: (filters: unknown[]) => void;
|
|
30
|
-
setTempFilters: (filters: unknown[]) => void;
|
|
31
|
-
clearFilters: () => void;
|
|
32
|
-
};
|
|
33
|
-
export declare const paginationActions: {
|
|
34
|
-
setCurrentPage: (page: number) => void;
|
|
35
|
-
setPageSize: (size: number) => void;
|
|
36
|
-
setTotal: (total: number) => void;
|
|
37
|
-
update: (current: number, pageSize: number, total: number) => void;
|
|
38
|
-
};
|
|
39
|
-
export declare const crudStateActions: {
|
|
40
|
-
setLoading: (loading: boolean) => void;
|
|
41
|
-
setInitialized: (initialized: boolean) => void;
|
|
42
|
-
setLastAction: (action: string | null) => void;
|
|
43
|
-
setError: (error: string | null) => void;
|
|
44
|
-
reset: () => void;
|
|
45
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CrudStoreState } from "./types";
|
|
2
|
-
export declare const crudStore: {
|
|
3
|
-
set: <K extends keyof CrudStoreState>(key: K, value: CrudStoreState[K]) => void;
|
|
4
|
-
get: <K extends keyof CrudStoreState>(key: K) => CrudStoreState[K];
|
|
5
|
-
subscribe: <K extends keyof CrudStoreState>(key: K, listener: (val: CrudStoreState[K]) => void) => () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const setCrudStore: <K extends keyof CrudStoreState>(key: K, partialValue: CrudStoreState[K] extends object ? Partial<CrudStoreState[K]> : CrudStoreState[K]) => void;
|
|
8
|
-
export declare const subscribeCrudProperty: <K extends keyof CrudStoreState>(key: K, path: string, callback: (value: any) => void) => any;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { crudStore, setCrudStore, subscribeCrudProperty } from './crudStore';
|
|
2
|
-
export { CRUD_STORE_KEYS } from './storeKeys';
|
|
3
|
-
export type { CrudStoreKey } from './storeKeys';
|
|
4
|
-
export type { CrudStoreState } from './types';
|
|
5
|
-
export { actionBarActions, tableActions, formDrawerActions, dynamicFormActions, filterDrawerActions, paginationActions, crudStateActions, } from './actions';
|