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,58 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
interface UseCalendarHeightOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Altura fija proporcionada por el usuario
|
|
5
|
-
* Si es 'auto', calculará la altura disponible
|
|
6
|
-
*/
|
|
7
|
-
height?: string | number;
|
|
8
|
-
/**
|
|
9
|
-
* Offset adicional a restar (ej: para márgenes externos)
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
offset?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Altura mínima del calendario
|
|
15
|
-
* @default 400
|
|
16
|
-
*/
|
|
17
|
-
minHeight?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Referencia al contenedor padre para calcular altura relativa
|
|
20
|
-
*/
|
|
21
|
-
containerRef?: RefObject<HTMLElement>;
|
|
22
|
-
}
|
|
23
|
-
interface UseCalendarHeightReturn {
|
|
24
|
-
/**
|
|
25
|
-
* Altura calculada en píxeles o string CSS
|
|
26
|
-
*/
|
|
27
|
-
calculatedHeight: string;
|
|
28
|
-
/**
|
|
29
|
-
* Forzar recálculo de altura
|
|
30
|
-
*/
|
|
31
|
-
recalculate: () => void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Hook para manejar la altura del calendario
|
|
35
|
-
*
|
|
36
|
-
* Calcula automáticamente la altura disponible basándose en:
|
|
37
|
-
* - El viewport (usando visualViewport para móviles)
|
|
38
|
-
* - El contenedor padre si se proporciona
|
|
39
|
-
* - Una altura fija si se especifica
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* // Altura automática
|
|
43
|
-
* const { calculatedHeight } = useCalendarHeight({ height: 'auto' });
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* // Altura fija
|
|
47
|
-
* const { calculatedHeight } = useCalendarHeight({ height: 600 });
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* // Relativa al contenedor
|
|
51
|
-
* const containerRef = useRef<HTMLDivElement>(null);
|
|
52
|
-
* const { calculatedHeight } = useCalendarHeight({
|
|
53
|
-
* height: 'auto',
|
|
54
|
-
* containerRef
|
|
55
|
-
* });
|
|
56
|
-
*/
|
|
57
|
-
export declare const useCalendarHeight: ({ height, offset, minHeight, containerRef, }?: UseCalendarHeightOptions) => UseCalendarHeightReturn;
|
|
58
|
-
export default useCalendarHeight;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { CalendarEvent, ProcessedEvent, EventColorConfig } from '../types';
|
|
2
|
-
interface UseEventLayoutProps {
|
|
3
|
-
events: CalendarEvent[];
|
|
4
|
-
date: Date;
|
|
5
|
-
dayStartHour: number;
|
|
6
|
-
dayEndHour: number;
|
|
7
|
-
slotInterval: 15 | 30 | 60;
|
|
8
|
-
slotHeight: number;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
}
|
|
11
|
-
interface UseEventLayoutReturn {
|
|
12
|
-
processedEvents: ProcessedEvent[];
|
|
13
|
-
getEventStyle: (event: ProcessedEvent) => React.CSSProperties;
|
|
14
|
-
getEventColor: (event: ProcessedEvent) => {
|
|
15
|
-
background: string;
|
|
16
|
-
text: string;
|
|
17
|
-
border?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export declare const useEventLayout: ({ events, date, dayStartHour, dayEndHour, slotInterval, slotHeight, eventColors, }: UseEventLayoutProps) => UseEventLayoutReturn;
|
|
21
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { CalendarEvent, ProcessedEvent, EventColorConfig } from '../types';
|
|
2
|
-
interface UseEventLayoutProps {
|
|
3
|
-
events: CalendarEvent[];
|
|
4
|
-
date: Date;
|
|
5
|
-
dayStartHour: number;
|
|
6
|
-
dayEndHour: number;
|
|
7
|
-
slotInterval: 15 | 30 | 60;
|
|
8
|
-
slotHeight: number;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
}
|
|
11
|
-
interface UseEventLayoutReturn {
|
|
12
|
-
processedEvents: ProcessedEvent[];
|
|
13
|
-
getEventStyle: (event: ProcessedEvent) => React.CSSProperties;
|
|
14
|
-
getEventColor: (event: ProcessedEvent) => {
|
|
15
|
-
background: string;
|
|
16
|
-
text: string;
|
|
17
|
-
border?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export declare const useEventLayout: ({ events, date, dayStartHour, dayEndHour, slotInterval, slotHeight, eventColors, }: UseEventLayoutProps) => UseEventLayoutReturn;
|
|
21
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { TimeSlot } from '../types';
|
|
2
|
-
interface UseTimeSlotsProps {
|
|
3
|
-
dayStartHour: number;
|
|
4
|
-
dayEndHour: number;
|
|
5
|
-
slotInterval: 15 | 30 | 60;
|
|
6
|
-
date: Date;
|
|
7
|
-
}
|
|
8
|
-
interface UseTimeSlotsReturn {
|
|
9
|
-
slots: TimeSlot[];
|
|
10
|
-
totalSlots: number;
|
|
11
|
-
slotHeight: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { TimeSlot } from '../types';
|
|
2
|
-
interface UseTimeSlotsProps {
|
|
3
|
-
dayStartHour: number;
|
|
4
|
-
dayEndHour: number;
|
|
5
|
-
slotInterval: 15 | 30 | 60;
|
|
6
|
-
date: Date;
|
|
7
|
-
}
|
|
8
|
-
interface UseTimeSlotsReturn {
|
|
9
|
-
slots: TimeSlot[];
|
|
10
|
-
totalSlots: number;
|
|
11
|
-
slotHeight: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { TimeSlot } from '../types';
|
|
2
|
-
interface UseTimeSlotsProps {
|
|
3
|
-
dayStartHour: number;
|
|
4
|
-
dayEndHour: number;
|
|
5
|
-
slotInterval: 15 | 30 | 60;
|
|
6
|
-
date: Date;
|
|
7
|
-
}
|
|
8
|
-
interface UseTimeSlotsReturn {
|
|
9
|
-
slots: TimeSlot[];
|
|
10
|
-
totalSlots: number;
|
|
11
|
-
slotHeight: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const useTimeSlots: ({ dayStartHour, dayEndHour, slotInterval, date, }: UseTimeSlotsProps) => UseTimeSlotsReturn;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getTranslations, getLanguageFromLocale, formatMessage, type CalendarLocale, type CalendarTranslations, } from './translations';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getTranslations, getLanguageFromLocale, formatMessage, type CalendarLocale, type CalendarTranslations, } from './translations';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { CalendarLabels } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Traducciones por defecto del calendario
|
|
4
|
-
* Soporta: español (es), inglés (en), portugués (pt)
|
|
5
|
-
*/
|
|
6
|
-
export type CalendarLocale = 'es' | 'en' | 'pt';
|
|
7
|
-
export interface CalendarTranslations extends CalendarLabels {
|
|
8
|
-
today: string;
|
|
9
|
-
day: string;
|
|
10
|
-
week: string;
|
|
11
|
-
month: string;
|
|
12
|
-
year: string;
|
|
13
|
-
noEvents: string;
|
|
14
|
-
moreEvents: string;
|
|
15
|
-
allDay: string;
|
|
16
|
-
loading: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Extrae el código de idioma base del locale
|
|
20
|
-
* Ej: 'es-ES' -> 'es', 'pt-BR' -> 'pt', 'en-US' -> 'en'
|
|
21
|
-
*/
|
|
22
|
-
export declare const getLanguageFromLocale: (locale: string) => CalendarLocale;
|
|
23
|
-
/**
|
|
24
|
-
* Obtiene las traducciones para un locale
|
|
25
|
-
* @param locale - Locale string (ej: 'es-ES', 'en-US', 'pt-BR')
|
|
26
|
-
* @param customLabels - Labels personalizados que sobreescriben los defaults
|
|
27
|
-
*/
|
|
28
|
-
export declare const getTranslations: (locale?: string, customLabels?: Partial<CalendarLabels>) => CalendarTranslations;
|
|
29
|
-
/**
|
|
30
|
-
* Formatea un texto con placeholders
|
|
31
|
-
* @param template - Template con placeholders {key}
|
|
32
|
-
* @param values - Objeto con valores para reemplazar
|
|
33
|
-
*/
|
|
34
|
-
export declare const formatMessage: (template: string, values: Record<string, string | number>) => string;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utilidades para manejo de fechas en el Calendar
|
|
3
|
-
*/
|
|
4
|
-
export declare const DAYS_IN_WEEK = 7;
|
|
5
|
-
export declare const HOURS_IN_DAY = 24;
|
|
6
|
-
export declare const MINUTES_IN_HOUR = 60;
|
|
7
|
-
export declare const MS_IN_MINUTE: number;
|
|
8
|
-
export declare const MS_IN_HOUR: number;
|
|
9
|
-
export declare const MS_IN_DAY: number;
|
|
10
|
-
/**
|
|
11
|
-
* Formatea una hora en formato HH:MM
|
|
12
|
-
*/
|
|
13
|
-
export declare const formatTime: (hour: number, minute?: number) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Formatea una fecha según el locale
|
|
16
|
-
*/
|
|
17
|
-
export declare const formatDate: (date: Date, locale?: string, options?: Intl.DateTimeFormatOptions) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Obtiene el nombre del mes
|
|
20
|
-
*/
|
|
21
|
-
export declare const getMonthName: (date: Date, locale?: string, format?: "long" | "short") => string;
|
|
22
|
-
/**
|
|
23
|
-
* Obtiene el nombre del día
|
|
24
|
-
*/
|
|
25
|
-
export declare const getDayName: (date: Date, locale?: string, format?: "long" | "short" | "narrow") => string;
|
|
26
|
-
/**
|
|
27
|
-
* Obtiene los nombres de los días de la semana
|
|
28
|
-
*/
|
|
29
|
-
export declare const getWeekDayNames: (locale?: string, firstDayOfWeek?: 0 | 1, format?: "long" | "short" | "narrow") => string[];
|
|
30
|
-
/**
|
|
31
|
-
* Obtiene el inicio del día (00:00:00)
|
|
32
|
-
*/
|
|
33
|
-
export declare const startOfDay: (date: Date) => Date;
|
|
34
|
-
/**
|
|
35
|
-
* Obtiene el fin del día (23:59:59)
|
|
36
|
-
*/
|
|
37
|
-
export declare const endOfDay: (date: Date) => Date;
|
|
38
|
-
/**
|
|
39
|
-
* Obtiene el inicio de la semana
|
|
40
|
-
*/
|
|
41
|
-
export declare const startOfWeek: (date: Date, firstDayOfWeek?: 0 | 1) => Date;
|
|
42
|
-
/**
|
|
43
|
-
* Obtiene el fin de la semana
|
|
44
|
-
*/
|
|
45
|
-
export declare const endOfWeek: (date: Date, firstDayOfWeek?: 0 | 1) => Date;
|
|
46
|
-
/**
|
|
47
|
-
* Obtiene el inicio del mes
|
|
48
|
-
*/
|
|
49
|
-
export declare const startOfMonth: (date: Date) => Date;
|
|
50
|
-
/**
|
|
51
|
-
* Obtiene el fin del mes
|
|
52
|
-
*/
|
|
53
|
-
export declare const endOfMonth: (date: Date) => Date;
|
|
54
|
-
/**
|
|
55
|
-
* Obtiene el inicio del año
|
|
56
|
-
*/
|
|
57
|
-
export declare const startOfYear: (date: Date) => Date;
|
|
58
|
-
/**
|
|
59
|
-
* Obtiene el fin del año
|
|
60
|
-
*/
|
|
61
|
-
export declare const endOfYear: (date: Date) => Date;
|
|
62
|
-
/**
|
|
63
|
-
* Añade días a una fecha
|
|
64
|
-
*/
|
|
65
|
-
export declare const addDays: (date: Date, days: number) => Date;
|
|
66
|
-
/**
|
|
67
|
-
* Añade semanas a una fecha
|
|
68
|
-
*/
|
|
69
|
-
export declare const addWeeks: (date: Date, weeks: number) => Date;
|
|
70
|
-
/**
|
|
71
|
-
* Añade meses a una fecha
|
|
72
|
-
*/
|
|
73
|
-
export declare const addMonths: (date: Date, months: number) => Date;
|
|
74
|
-
/**
|
|
75
|
-
* Añade años a una fecha
|
|
76
|
-
*/
|
|
77
|
-
export declare const addYears: (date: Date, years: number) => Date;
|
|
78
|
-
/**
|
|
79
|
-
* Comprueba si dos fechas son el mismo día
|
|
80
|
-
*/
|
|
81
|
-
export declare const isSameDay: (date1: Date, date2: Date) => boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Comprueba si dos fechas son el mismo mes
|
|
84
|
-
*/
|
|
85
|
-
export declare const isSameMonth: (date1: Date, date2: Date) => boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Comprueba si una fecha es hoy
|
|
88
|
-
*/
|
|
89
|
-
export declare const isToday: (date: Date) => boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Comprueba si una fecha está en el pasado
|
|
92
|
-
*/
|
|
93
|
-
export declare const isPast: (date: Date) => boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Comprueba si una fecha está en el futuro
|
|
96
|
-
*/
|
|
97
|
-
export declare const isFuture: (date: Date) => boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Comprueba si una fecha está dentro de un rango
|
|
100
|
-
*/
|
|
101
|
-
export declare const isWithinRange: (date: Date, start: Date, end: Date) => boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Genera los días de una semana
|
|
104
|
-
*/
|
|
105
|
-
export declare const getWeekDays: (date: Date, firstDayOfWeek?: 0 | 1) => Date[];
|
|
106
|
-
/**
|
|
107
|
-
* Genera los días de un mes (incluyendo días de meses adyacentes para completar semanas)
|
|
108
|
-
*/
|
|
109
|
-
export declare const getMonthDays: (date: Date, firstDayOfWeek?: 0 | 1) => Date[];
|
|
110
|
-
/**
|
|
111
|
-
* Genera los meses de un año
|
|
112
|
-
*/
|
|
113
|
-
export declare const getYearMonths: (date: Date) => Date[];
|
|
114
|
-
/**
|
|
115
|
-
* Convierte string o Date a Date
|
|
116
|
-
*/
|
|
117
|
-
export declare const toDate: (value: Date | string) => Date;
|
|
118
|
-
/**
|
|
119
|
-
* Obtiene la diferencia en minutos entre dos fechas
|
|
120
|
-
*/
|
|
121
|
-
export declare const diffInMinutes: (date1: Date, date2: Date) => number;
|
|
122
|
-
/**
|
|
123
|
-
* Obtiene la diferencia en horas entre dos fechas
|
|
124
|
-
*/
|
|
125
|
-
export declare const diffInHours: (date1: Date, date2: Date) => number;
|
|
126
|
-
/**
|
|
127
|
-
* Obtiene la diferencia en días entre dos fechas
|
|
128
|
-
*/
|
|
129
|
-
export declare const diffInDays: (date1: Date, date2: Date) => number;
|
|
130
|
-
/**
|
|
131
|
-
* Obtiene el rango de fechas según la vista
|
|
132
|
-
*/
|
|
133
|
-
export declare const getViewRange: (date: Date, view: "day" | "week" | "month" | "year", firstDayOfWeek?: 0 | 1) => {
|
|
134
|
-
start: Date;
|
|
135
|
-
end: Date;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Obtiene el título del rango según la vista
|
|
139
|
-
*/
|
|
140
|
-
export declare const getViewTitle: (date: Date, view: "day" | "week" | "month" | "year", locale?: string, firstDayOfWeek?: 0 | 1) => string;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utilidades para manejo de fechas en el Calendar
|
|
3
|
-
*/
|
|
4
|
-
export declare const DAYS_IN_WEEK = 7;
|
|
5
|
-
export declare const HOURS_IN_DAY = 24;
|
|
6
|
-
export declare const MINUTES_IN_HOUR = 60;
|
|
7
|
-
export declare const MS_IN_MINUTE: number;
|
|
8
|
-
export declare const MS_IN_HOUR: number;
|
|
9
|
-
export declare const MS_IN_DAY: number;
|
|
10
|
-
/**
|
|
11
|
-
* Formatea una hora en formato HH:MM
|
|
12
|
-
*/
|
|
13
|
-
export declare const formatTime: (hour: number, minute?: number) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Formatea una fecha según el locale
|
|
16
|
-
*/
|
|
17
|
-
export declare const formatDate: (date: Date, locale?: string, options?: Intl.DateTimeFormatOptions) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Obtiene el nombre del mes
|
|
20
|
-
*/
|
|
21
|
-
export declare const getMonthName: (date: Date, locale?: string, format?: "long" | "short") => string;
|
|
22
|
-
/**
|
|
23
|
-
* Obtiene el nombre del día
|
|
24
|
-
*/
|
|
25
|
-
export declare const getDayName: (date: Date, locale?: string, format?: "long" | "short" | "narrow") => string;
|
|
26
|
-
/**
|
|
27
|
-
* Obtiene los nombres de los días de la semana
|
|
28
|
-
*/
|
|
29
|
-
export declare const getWeekDayNames: (locale?: string, firstDayOfWeek?: 0 | 1, format?: "long" | "short" | "narrow") => string[];
|
|
30
|
-
/**
|
|
31
|
-
* Obtiene el inicio del día (00:00:00)
|
|
32
|
-
*/
|
|
33
|
-
export declare const startOfDay: (date: Date) => Date;
|
|
34
|
-
/**
|
|
35
|
-
* Obtiene el fin del día (23:59:59)
|
|
36
|
-
*/
|
|
37
|
-
export declare const endOfDay: (date: Date) => Date;
|
|
38
|
-
/**
|
|
39
|
-
* Obtiene el inicio de la semana
|
|
40
|
-
*/
|
|
41
|
-
export declare const startOfWeek: (date: Date, firstDayOfWeek?: 0 | 1) => Date;
|
|
42
|
-
/**
|
|
43
|
-
* Obtiene el fin de la semana
|
|
44
|
-
*/
|
|
45
|
-
export declare const endOfWeek: (date: Date, firstDayOfWeek?: 0 | 1) => Date;
|
|
46
|
-
/**
|
|
47
|
-
* Obtiene el inicio del mes
|
|
48
|
-
*/
|
|
49
|
-
export declare const startOfMonth: (date: Date) => Date;
|
|
50
|
-
/**
|
|
51
|
-
* Obtiene el fin del mes
|
|
52
|
-
*/
|
|
53
|
-
export declare const endOfMonth: (date: Date) => Date;
|
|
54
|
-
/**
|
|
55
|
-
* Obtiene el inicio del año
|
|
56
|
-
*/
|
|
57
|
-
export declare const startOfYear: (date: Date) => Date;
|
|
58
|
-
/**
|
|
59
|
-
* Obtiene el fin del año
|
|
60
|
-
*/
|
|
61
|
-
export declare const endOfYear: (date: Date) => Date;
|
|
62
|
-
/**
|
|
63
|
-
* Añade días a una fecha
|
|
64
|
-
*/
|
|
65
|
-
export declare const addDays: (date: Date, days: number) => Date;
|
|
66
|
-
/**
|
|
67
|
-
* Añade semanas a una fecha
|
|
68
|
-
*/
|
|
69
|
-
export declare const addWeeks: (date: Date, weeks: number) => Date;
|
|
70
|
-
/**
|
|
71
|
-
* Añade meses a una fecha
|
|
72
|
-
*/
|
|
73
|
-
export declare const addMonths: (date: Date, months: number) => Date;
|
|
74
|
-
/**
|
|
75
|
-
* Añade años a una fecha
|
|
76
|
-
*/
|
|
77
|
-
export declare const addYears: (date: Date, years: number) => Date;
|
|
78
|
-
/**
|
|
79
|
-
* Comprueba si dos fechas son el mismo día
|
|
80
|
-
*/
|
|
81
|
-
export declare const isSameDay: (date1: Date, date2: Date) => boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Comprueba si dos fechas son el mismo mes
|
|
84
|
-
*/
|
|
85
|
-
export declare const isSameMonth: (date1: Date, date2: Date) => boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Comprueba si una fecha es hoy
|
|
88
|
-
*/
|
|
89
|
-
export declare const isToday: (date: Date) => boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Comprueba si una fecha está en el pasado
|
|
92
|
-
*/
|
|
93
|
-
export declare const isPast: (date: Date) => boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Comprueba si una fecha está en el futuro
|
|
96
|
-
*/
|
|
97
|
-
export declare const isFuture: (date: Date) => boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Comprueba si una fecha está dentro de un rango
|
|
100
|
-
*/
|
|
101
|
-
export declare const isWithinRange: (date: Date, start: Date, end: Date) => boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Genera los días de una semana
|
|
104
|
-
*/
|
|
105
|
-
export declare const getWeekDays: (date: Date, firstDayOfWeek?: 0 | 1) => Date[];
|
|
106
|
-
/**
|
|
107
|
-
* Genera los días de un mes (incluyendo días de meses adyacentes para completar semanas)
|
|
108
|
-
*/
|
|
109
|
-
export declare const getMonthDays: (date: Date, firstDayOfWeek?: 0 | 1) => Date[];
|
|
110
|
-
/**
|
|
111
|
-
* Genera los meses de un año
|
|
112
|
-
*/
|
|
113
|
-
export declare const getYearMonths: (date: Date) => Date[];
|
|
114
|
-
/**
|
|
115
|
-
* Convierte string o Date a Date
|
|
116
|
-
*/
|
|
117
|
-
export declare const toDate: (value: Date | string) => Date;
|
|
118
|
-
/**
|
|
119
|
-
* Obtiene la diferencia en minutos entre dos fechas
|
|
120
|
-
*/
|
|
121
|
-
export declare const diffInMinutes: (date1: Date, date2: Date) => number;
|
|
122
|
-
/**
|
|
123
|
-
* Obtiene la diferencia en horas entre dos fechas
|
|
124
|
-
*/
|
|
125
|
-
export declare const diffInHours: (date1: Date, date2: Date) => number;
|
|
126
|
-
/**
|
|
127
|
-
* Obtiene la diferencia en días entre dos fechas
|
|
128
|
-
*/
|
|
129
|
-
export declare const diffInDays: (date1: Date, date2: Date) => number;
|
|
130
|
-
/**
|
|
131
|
-
* Obtiene el rango de fechas según la vista
|
|
132
|
-
*/
|
|
133
|
-
export declare const getViewRange: (date: Date, view: "day" | "week" | "month" | "year", firstDayOfWeek?: 0 | 1) => {
|
|
134
|
-
start: Date;
|
|
135
|
-
end: Date;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Obtiene el título del rango según la vista
|
|
139
|
-
*/
|
|
140
|
-
export declare const getViewTitle: (date: Date, view: "day" | "week" | "month" | "year", locale?: string, firstDayOfWeek?: 0 | 1) => string;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utilidades para manejo de eventos multi-día en el Calendar
|
|
3
|
-
*/
|
|
4
|
-
import type { CalendarEvent } from '../types';
|
|
5
|
-
export interface EventSegment {
|
|
6
|
-
/** Evento original */
|
|
7
|
-
event: CalendarEvent;
|
|
8
|
-
/** Fecha de inicio del segmento */
|
|
9
|
-
segmentStart: Date;
|
|
10
|
-
/** Fecha de fin del segmento */
|
|
11
|
-
segmentEnd: Date;
|
|
12
|
-
/** ¿Es el primer segmento del evento? */
|
|
13
|
-
isStart: boolean;
|
|
14
|
-
/** ¿Es el último segmento del evento? */
|
|
15
|
-
isEnd: boolean;
|
|
16
|
-
/** Número de días que abarca este segmento */
|
|
17
|
-
spanDays: number;
|
|
18
|
-
/** Índice del día dentro de la semana (0-6) para posicionamiento */
|
|
19
|
-
startDayIndex?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface MultiDayRow {
|
|
22
|
-
/** Eventos/segmentos en esta fila */
|
|
23
|
-
segments: (EventSegment | null)[];
|
|
24
|
-
/** Índice de la fila (para stacking) */
|
|
25
|
-
rowIndex: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Detecta si un evento abarca múltiples días
|
|
29
|
-
*/
|
|
30
|
-
export declare const isMultiDayEvent: (event: CalendarEvent) => boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Obtiene el número de días que abarca un evento
|
|
33
|
-
*/
|
|
34
|
-
export declare const getEventDurationInDays: (event: CalendarEvent) => number;
|
|
35
|
-
/**
|
|
36
|
-
* Comprueba si un evento ocurre en un día específico
|
|
37
|
-
*/
|
|
38
|
-
export declare const eventOccursOnDay: (event: CalendarEvent, day: Date) => boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Comprueba si un evento está completamente dentro de un rango
|
|
41
|
-
*/
|
|
42
|
-
export declare const eventWithinRange: (event: CalendarEvent, rangeStart: Date, rangeEnd: Date) => boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Comprueba si un evento se superpone con un rango
|
|
45
|
-
*/
|
|
46
|
-
export declare const eventOverlapsRange: (event: CalendarEvent, rangeStart: Date, rangeEnd: Date) => boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Divide un evento multi-día en segmentos por semana
|
|
49
|
-
* Útil para vista de mes donde los eventos cruzan semanas
|
|
50
|
-
*/
|
|
51
|
-
export declare const splitEventByWeeks: (event: CalendarEvent, weekDays: Date[]) => EventSegment[];
|
|
52
|
-
/**
|
|
53
|
-
* Obtiene los días que ocupa un evento en un rango dado
|
|
54
|
-
*/
|
|
55
|
-
export declare const getEventDaysInRange: (event: CalendarEvent, rangeStart: Date, rangeEnd: Date) => Date[];
|
|
56
|
-
/**
|
|
57
|
-
* Organiza eventos multi-día en filas para evitar superposiciones
|
|
58
|
-
* Retorna un array de filas donde cada fila contiene eventos que no se superponen
|
|
59
|
-
*/
|
|
60
|
-
export declare const layoutMultiDayEvents: (events: CalendarEvent[], weekDays: Date[]) => MultiDayRow[];
|
|
61
|
-
/**
|
|
62
|
-
* Obtiene eventos de un solo día (no multi-día y no all-day)
|
|
63
|
-
* Útil para filtrar eventos que se muestran en el timeline
|
|
64
|
-
*/
|
|
65
|
-
export declare const getSingleDayEvents: (events: CalendarEvent[]) => CalendarEvent[];
|
|
66
|
-
/**
|
|
67
|
-
* Obtiene eventos all-day y multi-día
|
|
68
|
-
*/
|
|
69
|
-
export declare const getAllDayAndMultiDayEvents: (events: CalendarEvent[]) => CalendarEvent[];
|
|
70
|
-
/**
|
|
71
|
-
* Formatea el rango de fechas de un evento multi-día
|
|
72
|
-
*/
|
|
73
|
-
export declare const formatEventDateRange: (event: CalendarEvent, locale?: string) => string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, SlotInfo, EventColorConfig, EventRenderProps } from "../types";
|
|
3
|
-
interface DayViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
dayStartHour: number;
|
|
7
|
-
dayEndHour: number;
|
|
8
|
-
slotInterval: 15 | 30 | 60;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
showNowIndicator?: boolean;
|
|
11
|
-
locale?: string;
|
|
12
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
13
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
14
|
-
renderEvent?: (props: EventRenderProps) => React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const DayView: React.FC<DayViewProps>;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, SlotInfo, EventColorConfig, EventRenderProps } from "../types";
|
|
3
|
-
interface DayViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
dayStartHour: number;
|
|
7
|
-
dayEndHour: number;
|
|
8
|
-
slotInterval: 15 | 30 | 60;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
showNowIndicator?: boolean;
|
|
11
|
-
locale?: string;
|
|
12
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
13
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
14
|
-
renderEvent?: (props: EventRenderProps) => React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const DayView: React.FC<DayViewProps>;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, CalendarLabels, SlotInfo, EventColorConfig } from "../types";
|
|
3
|
-
interface MonthViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
firstDayOfWeek: 0 | 1;
|
|
7
|
-
nonWorkingDays: number[];
|
|
8
|
-
maxEventsPerCell: number;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
locale?: string;
|
|
11
|
-
labels?: CalendarLabels;
|
|
12
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
13
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
14
|
-
onDateChange?: (date: Date) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const MonthView: React.FC<MonthViewProps>;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, CalendarLabels, SlotInfo, EventColorConfig } from "../types";
|
|
3
|
-
interface MonthViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
firstDayOfWeek: 0 | 1;
|
|
7
|
-
nonWorkingDays: number[];
|
|
8
|
-
maxEventsPerCell: number;
|
|
9
|
-
eventColors?: EventColorConfig;
|
|
10
|
-
locale?: string;
|
|
11
|
-
labels?: CalendarLabels;
|
|
12
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
13
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
14
|
-
onDateChange?: (date: Date) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const MonthView: React.FC<MonthViewProps>;
|
|
17
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, SlotInfo, EventColorConfig, EventRenderProps } from '../types';
|
|
3
|
-
interface WeekViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
dayStartHour: number;
|
|
7
|
-
dayEndHour: number;
|
|
8
|
-
slotInterval: 15 | 30 | 60;
|
|
9
|
-
firstDayOfWeek: 0 | 1;
|
|
10
|
-
nonWorkingDays: number[];
|
|
11
|
-
eventColors?: EventColorConfig;
|
|
12
|
-
showNowIndicator?: boolean;
|
|
13
|
-
locale?: string;
|
|
14
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
15
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
16
|
-
renderEvent?: (props: EventRenderProps) => React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export declare const WeekView: React.FC<WeekViewProps>;
|
|
19
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CalendarEvent as CalendarEventType, SlotInfo, EventColorConfig, EventRenderProps } from '../types';
|
|
3
|
-
interface WeekViewProps {
|
|
4
|
-
date: Date;
|
|
5
|
-
events: CalendarEventType[];
|
|
6
|
-
dayStartHour: number;
|
|
7
|
-
dayEndHour: number;
|
|
8
|
-
slotInterval: 15 | 30 | 60;
|
|
9
|
-
firstDayOfWeek: 0 | 1;
|
|
10
|
-
nonWorkingDays: number[];
|
|
11
|
-
eventColors?: EventColorConfig;
|
|
12
|
-
showNowIndicator?: boolean;
|
|
13
|
-
locale?: string;
|
|
14
|
-
onEventClick?: (event: CalendarEventType, e: React.MouseEvent) => void;
|
|
15
|
-
onSlotClick?: (slotInfo: SlotInfo) => void;
|
|
16
|
-
renderEvent?: (props: EventRenderProps) => React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export declare const WeekView: React.FC<WeekViewProps>;
|
|
19
|
-
export {};
|