@mlw-packages/react-components 1.9.5 → 1.9.6
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +491 -3
- package/dist/index.mjs +491 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1796,6 +1796,7 @@ interface ChartProps {
|
|
|
1796
1796
|
area: boolean;
|
|
1797
1797
|
};
|
|
1798
1798
|
horizontal?: boolean;
|
|
1799
|
+
orderBy?: string;
|
|
1799
1800
|
}
|
|
1800
1801
|
interface SeriesConfig {
|
|
1801
1802
|
bar?: string[];
|
|
@@ -1822,6 +1823,8 @@ type Margins = Partial<{
|
|
|
1822
1823
|
|
|
1823
1824
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1824
1825
|
|
|
1826
|
+
declare const HorizontalChart: React__default.FC<ChartProps>;
|
|
1827
|
+
|
|
1825
1828
|
interface PieChartData {
|
|
1826
1829
|
name: string;
|
|
1827
1830
|
value: number;
|
|
@@ -2224,4 +2227,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2224
2227
|
isDragging: boolean;
|
|
2225
2228
|
};
|
|
2226
2229
|
|
|
2227
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
|
2230
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -1796,6 +1796,7 @@ interface ChartProps {
|
|
|
1796
1796
|
area: boolean;
|
|
1797
1797
|
};
|
|
1798
1798
|
horizontal?: boolean;
|
|
1799
|
+
orderBy?: string;
|
|
1799
1800
|
}
|
|
1800
1801
|
interface SeriesConfig {
|
|
1801
1802
|
bar?: string[];
|
|
@@ -1822,6 +1823,8 @@ type Margins = Partial<{
|
|
|
1822
1823
|
|
|
1823
1824
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1824
1825
|
|
|
1826
|
+
declare const HorizontalChart: React__default.FC<ChartProps>;
|
|
1827
|
+
|
|
1825
1828
|
interface PieChartData {
|
|
1826
1829
|
name: string;
|
|
1827
1830
|
value: number;
|
|
@@ -2224,4 +2227,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2224
2227
|
isDragging: boolean;
|
|
2225
2228
|
};
|
|
2226
2229
|
|
|
2227
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
|
2230
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.js
CHANGED
|
@@ -16170,7 +16170,7 @@ var HorizontalLegend = ({
|
|
|
16170
16170
|
const label = mapperConfig[key]?.label ?? labelMap?.[key] ?? formatFieldName2(key);
|
|
16171
16171
|
return legendUppercase ? label.toUpperCase() : label;
|
|
16172
16172
|
};
|
|
16173
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-
|
|
16173
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-left gap-2 sm:gap-3 md:gap-4 overflow-x-auto", children: [
|
|
16174
16174
|
allKeys.map((key) => {
|
|
16175
16175
|
const displayLabel = formatLegendLabel(key);
|
|
16176
16176
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 sm:gap-2 flex-shrink-0", children: [
|
|
@@ -17849,6 +17849,493 @@ var Chart = ({
|
|
|
17849
17849
|
);
|
|
17850
17850
|
};
|
|
17851
17851
|
var Chart_default = Chart;
|
|
17852
|
+
var DEFAULT_COLORS3 = ["#0d1136", "#666655", "#1a1a1a"];
|
|
17853
|
+
var HorizontalChart = ({
|
|
17854
|
+
data,
|
|
17855
|
+
series,
|
|
17856
|
+
className,
|
|
17857
|
+
height = 500,
|
|
17858
|
+
width = "100%",
|
|
17859
|
+
colors: colors2 = DEFAULT_COLORS3,
|
|
17860
|
+
gridColor,
|
|
17861
|
+
showGrid = true,
|
|
17862
|
+
showTooltip = true,
|
|
17863
|
+
showLegend = true,
|
|
17864
|
+
title,
|
|
17865
|
+
titlePosition = "left",
|
|
17866
|
+
showLabels = false,
|
|
17867
|
+
labelsVisibility = { bar: true },
|
|
17868
|
+
xAxis,
|
|
17869
|
+
xAxisLabel,
|
|
17870
|
+
yAxisLabel,
|
|
17871
|
+
labelMap,
|
|
17872
|
+
valueFormatter,
|
|
17873
|
+
categoryFormatter,
|
|
17874
|
+
enableHighlights = false,
|
|
17875
|
+
enableShowOnly = false,
|
|
17876
|
+
enablePeriodsDropdown = false,
|
|
17877
|
+
enableDraggableTooltips = false,
|
|
17878
|
+
showTooltipTotal = false,
|
|
17879
|
+
periodLabel = "Per\xEDodo",
|
|
17880
|
+
maxTooltips = 5,
|
|
17881
|
+
formatBR = false,
|
|
17882
|
+
legendUppercase = false,
|
|
17883
|
+
chartMargin,
|
|
17884
|
+
isLoading = false,
|
|
17885
|
+
customLegend,
|
|
17886
|
+
orderBy
|
|
17887
|
+
}) => {
|
|
17888
|
+
const { xAxisConfig, mapperConfig } = React33.useMemo(() => {
|
|
17889
|
+
return fnSmartConfig({ xAxis, data, labelMap });
|
|
17890
|
+
}, [data, xAxis, labelMap]);
|
|
17891
|
+
const {
|
|
17892
|
+
highlightedSeries,
|
|
17893
|
+
showOnlyHighlighted,
|
|
17894
|
+
toggleHighlight,
|
|
17895
|
+
setShowOnlyHighlighted,
|
|
17896
|
+
clearHighlights
|
|
17897
|
+
} = useChartHighlights();
|
|
17898
|
+
const { wrapperRef, measuredWidth } = useChartDimensions();
|
|
17899
|
+
const {
|
|
17900
|
+
activeTooltips,
|
|
17901
|
+
toggleTooltip,
|
|
17902
|
+
onTooltipPositionChange,
|
|
17903
|
+
setActiveTooltips
|
|
17904
|
+
} = useChartTooltips(maxTooltips);
|
|
17905
|
+
React33.useEffect(() => {
|
|
17906
|
+
if (highlightedSeries.size === 0 && showOnlyHighlighted) {
|
|
17907
|
+
setShowOnlyHighlighted(false);
|
|
17908
|
+
}
|
|
17909
|
+
}, [highlightedSeries, showOnlyHighlighted, setShowOnlyHighlighted]);
|
|
17910
|
+
const processedData = React33.useMemo(() => {
|
|
17911
|
+
const mapped = data.map((item) => ({
|
|
17912
|
+
...item,
|
|
17913
|
+
name: String(item[xAxisConfig.dataKey] || "N/A")
|
|
17914
|
+
}));
|
|
17915
|
+
if (orderBy && mapped.length > 0) {
|
|
17916
|
+
return [...mapped].sort((a, b) => {
|
|
17917
|
+
const valueA = Number(a[orderBy]) || 0;
|
|
17918
|
+
const valueB = Number(b[orderBy]) || 0;
|
|
17919
|
+
return valueB - valueA;
|
|
17920
|
+
});
|
|
17921
|
+
}
|
|
17922
|
+
return mapped;
|
|
17923
|
+
}, [data, xAxisConfig.dataKey, orderBy]);
|
|
17924
|
+
const seriesOrder = filtersOrder(mapperConfig, series);
|
|
17925
|
+
const allKeys = seriesOrder.map((s) => s.key).filter(Boolean);
|
|
17926
|
+
const finalColors = React33.useMemo(
|
|
17927
|
+
() => generateColorMap(allKeys, colors2, mapperConfig),
|
|
17928
|
+
[allKeys, colors2, mapperConfig]
|
|
17929
|
+
);
|
|
17930
|
+
const activePeriods = React33.useMemo(
|
|
17931
|
+
() => activeTooltips.map((t) => adaptDataForTooltip(t.data, xAxisConfig.dataKey).name),
|
|
17932
|
+
[activeTooltips, xAxisConfig.dataKey]
|
|
17933
|
+
);
|
|
17934
|
+
const maxDataValue = React33.useMemo(() => {
|
|
17935
|
+
return getMaxDataValue(processedData, allKeys);
|
|
17936
|
+
}, [processedData, allKeys]);
|
|
17937
|
+
const minDataValue = React33.useMemo(() => {
|
|
17938
|
+
return getMinDataValue(processedData, allKeys);
|
|
17939
|
+
}, [processedData, allKeys]);
|
|
17940
|
+
const niceMax = React33.useMemo(() => computeNiceMax(maxDataValue), [maxDataValue]);
|
|
17941
|
+
const { handleChartClick, handleBarClick } = useChartClick({
|
|
17942
|
+
enableDraggableTooltips,
|
|
17943
|
+
xAxisDataKey: xAxisConfig.dataKey,
|
|
17944
|
+
toggleTooltip,
|
|
17945
|
+
setActiveTooltips
|
|
17946
|
+
});
|
|
17947
|
+
const getSeriesOpacity = React33.useCallback(
|
|
17948
|
+
(key) => {
|
|
17949
|
+
return highlightedSeries.size > 0 ? highlightedSeries.has(key) ? 1 : 0.25 : 1;
|
|
17950
|
+
},
|
|
17951
|
+
[highlightedSeries]
|
|
17952
|
+
);
|
|
17953
|
+
const finalValueFormatter = React33.useMemo(
|
|
17954
|
+
() => createValueFormatter(valueFormatter, formatBR),
|
|
17955
|
+
[valueFormatter, formatBR]
|
|
17956
|
+
);
|
|
17957
|
+
const yTickFormatter = React33.useMemo(
|
|
17958
|
+
() => createYTickFormatter(finalValueFormatter),
|
|
17959
|
+
[finalValueFormatter]
|
|
17960
|
+
);
|
|
17961
|
+
const CONTAINER_PADDING_LEFT = -6;
|
|
17962
|
+
const finalChartRightMargin = chartMargin?.right ?? 0;
|
|
17963
|
+
const finalChartLeftMargin = chartMargin?.left ?? 0;
|
|
17964
|
+
const HORIZONTAL_PADDING_CLASS = "px-6";
|
|
17965
|
+
const effectiveChartWidth = typeof width === "number" ? width : measuredWidth ? Math.max(0, measuredWidth - 32) : 800;
|
|
17966
|
+
const chartInnerWidth = effectiveChartWidth - finalChartLeftMargin - finalChartRightMargin;
|
|
17967
|
+
const openTooltipForPeriod = React33.useCallback(
|
|
17968
|
+
(periodName) => {
|
|
17969
|
+
fnOpenTooltipForPeriod(
|
|
17970
|
+
enableDraggableTooltips,
|
|
17971
|
+
processedData,
|
|
17972
|
+
periodName,
|
|
17973
|
+
activeTooltips,
|
|
17974
|
+
setActiveTooltips,
|
|
17975
|
+
maxTooltips,
|
|
17976
|
+
effectiveChartWidth
|
|
17977
|
+
);
|
|
17978
|
+
},
|
|
17979
|
+
[
|
|
17980
|
+
enableDraggableTooltips,
|
|
17981
|
+
processedData,
|
|
17982
|
+
activeTooltips,
|
|
17983
|
+
effectiveChartWidth,
|
|
17984
|
+
maxTooltips,
|
|
17985
|
+
setActiveTooltips
|
|
17986
|
+
]
|
|
17987
|
+
);
|
|
17988
|
+
if (!data && !isLoading) return null;
|
|
17989
|
+
if (isLoading) {
|
|
17990
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17991
|
+
NoData_default,
|
|
17992
|
+
{
|
|
17993
|
+
title,
|
|
17994
|
+
isLoading: true,
|
|
17995
|
+
loadingMessage: typeof title === "string" ? `${title} \u2014 Carregando` : "Carregando",
|
|
17996
|
+
paddingLeft: CONTAINER_PADDING_LEFT + finalChartLeftMargin,
|
|
17997
|
+
height
|
|
17998
|
+
}
|
|
17999
|
+
);
|
|
18000
|
+
}
|
|
18001
|
+
if (Array.isArray(data) && data.length === 0) {
|
|
18002
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18003
|
+
NoData_default,
|
|
18004
|
+
{
|
|
18005
|
+
title,
|
|
18006
|
+
paddingLeft: CONTAINER_PADDING_LEFT + finalChartLeftMargin,
|
|
18007
|
+
height
|
|
18008
|
+
}
|
|
18009
|
+
) });
|
|
18010
|
+
}
|
|
18011
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18012
|
+
"div",
|
|
18013
|
+
{
|
|
18014
|
+
ref: wrapperRef,
|
|
18015
|
+
className: cn(
|
|
18016
|
+
"w-full overflow-hidden min-w-0 rounded-lg border-border",
|
|
18017
|
+
className
|
|
18018
|
+
),
|
|
18019
|
+
children: [
|
|
18020
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg bg-card relative w-full max-w-full min-w-0 py-1", children: [
|
|
18021
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18022
|
+
"div",
|
|
18023
|
+
{
|
|
18024
|
+
className: cn(
|
|
18025
|
+
"w-full flex items-center mt-3 mb-2",
|
|
18026
|
+
HORIZONTAL_PADDING_CLASS,
|
|
18027
|
+
titlePosition === "center" && "justify-center",
|
|
18028
|
+
titlePosition === "right" && "justify-end",
|
|
18029
|
+
titlePosition === "left" && "justify-start"
|
|
18030
|
+
),
|
|
18031
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[1.4rem] font-semibold text-foreground", children: title })
|
|
18032
|
+
}
|
|
18033
|
+
),
|
|
18034
|
+
customLegend && !!data.length && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("px-6 mb-2", HORIZONTAL_PADDING_CLASS), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18035
|
+
ChartTotalLegend_default,
|
|
18036
|
+
{
|
|
18037
|
+
items: allKeys.map((key) => {
|
|
18038
|
+
const values = processedData.map(
|
|
18039
|
+
(d) => Number(d[key] || 0)
|
|
18040
|
+
);
|
|
18041
|
+
const total = values.reduce((a, b) => a + b, 0);
|
|
18042
|
+
const first = values[0] || 0;
|
|
18043
|
+
const last = values[values.length - 1] || 0;
|
|
18044
|
+
const trendValue = first !== 0 ? Math.round((last - first) / first * 100) : 0;
|
|
18045
|
+
const formattedTotal = finalValueFormatter ? finalValueFormatter({
|
|
18046
|
+
value: total,
|
|
18047
|
+
formattedValue: String(total)
|
|
18048
|
+
}) : new Intl.NumberFormat(formatBR ? "pt-BR" : "en-US").format(
|
|
18049
|
+
total
|
|
18050
|
+
);
|
|
18051
|
+
return {
|
|
18052
|
+
label: mapperConfig[key]?.label || key,
|
|
18053
|
+
value: formattedTotal,
|
|
18054
|
+
color: finalColors[key],
|
|
18055
|
+
trend: {
|
|
18056
|
+
value: Math.abs(trendValue),
|
|
18057
|
+
positive: trendValue >= 0,
|
|
18058
|
+
neutral: trendValue === 0
|
|
18059
|
+
}
|
|
18060
|
+
};
|
|
18061
|
+
})
|
|
18062
|
+
}
|
|
18063
|
+
) }),
|
|
18064
|
+
allKeys.length > 0 && (enableHighlights || enableShowOnly) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18065
|
+
"div",
|
|
18066
|
+
{
|
|
18067
|
+
className: cn("flex items-center gap-2", HORIZONTAL_PADDING_CLASS),
|
|
18068
|
+
children: [
|
|
18069
|
+
enableHighlights && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18070
|
+
Highlights_default,
|
|
18071
|
+
{
|
|
18072
|
+
allKeys,
|
|
18073
|
+
mapperConfig,
|
|
18074
|
+
finalColors,
|
|
18075
|
+
highlightedSeries,
|
|
18076
|
+
toggleHighlight,
|
|
18077
|
+
containerWidth: chartInnerWidth
|
|
18078
|
+
}
|
|
18079
|
+
),
|
|
18080
|
+
enableShowOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18081
|
+
ShowOnly_default,
|
|
18082
|
+
{
|
|
18083
|
+
showOnlyHighlighted,
|
|
18084
|
+
setShowOnlyHighlighted,
|
|
18085
|
+
highlightedSeriesSize: highlightedSeries.size,
|
|
18086
|
+
clearHighlights
|
|
18087
|
+
}
|
|
18088
|
+
),
|
|
18089
|
+
enablePeriodsDropdown && enableDraggableTooltips && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18090
|
+
PeriodsDropdown_default,
|
|
18091
|
+
{
|
|
18092
|
+
processedData,
|
|
18093
|
+
onOpenPeriod: openTooltipForPeriod,
|
|
18094
|
+
rightOffset: finalChartRightMargin,
|
|
18095
|
+
activePeriods
|
|
18096
|
+
}
|
|
18097
|
+
) })
|
|
18098
|
+
]
|
|
18099
|
+
}
|
|
18100
|
+
),
|
|
18101
|
+
!(allKeys.length > 0 && (enableHighlights || enableShowOnly)) && enablePeriodsDropdown && enableDraggableTooltips && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18102
|
+
"div",
|
|
18103
|
+
{
|
|
18104
|
+
className: cn(
|
|
18105
|
+
"w-full flex justify-end mb-2",
|
|
18106
|
+
HORIZONTAL_PADDING_CLASS
|
|
18107
|
+
),
|
|
18108
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18109
|
+
PeriodsDropdown_default,
|
|
18110
|
+
{
|
|
18111
|
+
processedData,
|
|
18112
|
+
onOpenPeriod: openTooltipForPeriod,
|
|
18113
|
+
rightOffset: finalChartRightMargin
|
|
18114
|
+
}
|
|
18115
|
+
)
|
|
18116
|
+
}
|
|
18117
|
+
),
|
|
18118
|
+
showLegend && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-3", HORIZONTAL_PADDING_CLASS), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18119
|
+
HorizontalLegend_default,
|
|
18120
|
+
{
|
|
18121
|
+
allKeys,
|
|
18122
|
+
mapperConfig,
|
|
18123
|
+
finalColors,
|
|
18124
|
+
labelMap,
|
|
18125
|
+
legendUppercase
|
|
18126
|
+
}
|
|
18127
|
+
) }),
|
|
18128
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18129
|
+
"div",
|
|
18130
|
+
{
|
|
18131
|
+
className: cn(
|
|
18132
|
+
"overflow-y-auto overflow-x-hidden px-6",
|
|
18133
|
+
"scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent mb-2"
|
|
18134
|
+
),
|
|
18135
|
+
style: {
|
|
18136
|
+
maxHeight: height
|
|
18137
|
+
},
|
|
18138
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18139
|
+
recharts.ResponsiveContainer,
|
|
18140
|
+
{
|
|
18141
|
+
width: "100%",
|
|
18142
|
+
height: Math.max(height, processedData.length * 50),
|
|
18143
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18144
|
+
recharts.ComposedChart,
|
|
18145
|
+
{
|
|
18146
|
+
layout: "vertical",
|
|
18147
|
+
data: processedData,
|
|
18148
|
+
height: Math.max(height, processedData.length * 50),
|
|
18149
|
+
margin: {
|
|
18150
|
+
top: 10,
|
|
18151
|
+
right: finalChartRightMargin,
|
|
18152
|
+
left: finalChartLeftMargin,
|
|
18153
|
+
bottom: 10
|
|
18154
|
+
},
|
|
18155
|
+
onClick: handleChartClick,
|
|
18156
|
+
children: [
|
|
18157
|
+
showGrid && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18158
|
+
recharts.CartesianGrid,
|
|
18159
|
+
{
|
|
18160
|
+
strokeDasharray: "3 3",
|
|
18161
|
+
stroke: gridColor || "hsl(var(--muted-foreground))",
|
|
18162
|
+
opacity: 0.5
|
|
18163
|
+
}
|
|
18164
|
+
),
|
|
18165
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18166
|
+
recharts.XAxis,
|
|
18167
|
+
{
|
|
18168
|
+
type: "number",
|
|
18169
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
18170
|
+
fontSize: 12,
|
|
18171
|
+
tickLine: false,
|
|
18172
|
+
orientation: "top",
|
|
18173
|
+
axisLine: false,
|
|
18174
|
+
tickFormatter: yTickFormatter,
|
|
18175
|
+
domain: [Math.min(minDataValue, 0), niceMax],
|
|
18176
|
+
label: yAxisLabel ? {
|
|
18177
|
+
value: yAxisLabel,
|
|
18178
|
+
position: "insideTopRight",
|
|
18179
|
+
offset: -1,
|
|
18180
|
+
style: {
|
|
18181
|
+
fontSize: 12,
|
|
18182
|
+
fill: "hsl(var(--muted-foreground))",
|
|
18183
|
+
fontWeight: 500
|
|
18184
|
+
}
|
|
18185
|
+
} : void 0
|
|
18186
|
+
}
|
|
18187
|
+
),
|
|
18188
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18189
|
+
recharts.YAxis,
|
|
18190
|
+
{
|
|
18191
|
+
type: "category",
|
|
18192
|
+
dataKey: xAxisConfig.dataKey,
|
|
18193
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
18194
|
+
fontSize: 12,
|
|
18195
|
+
tickLine: false,
|
|
18196
|
+
axisLine: false,
|
|
18197
|
+
width: 125,
|
|
18198
|
+
tickFormatter: (value) => {
|
|
18199
|
+
if (categoryFormatter)
|
|
18200
|
+
return categoryFormatter(value);
|
|
18201
|
+
if (xAxisConfig.valueFormatter)
|
|
18202
|
+
return xAxisConfig.valueFormatter(value);
|
|
18203
|
+
return String(value ?? "");
|
|
18204
|
+
},
|
|
18205
|
+
label: xAxisLabel ? {
|
|
18206
|
+
value: xAxisLabel,
|
|
18207
|
+
angle: -90,
|
|
18208
|
+
position: "insideTopLeft",
|
|
18209
|
+
style: {
|
|
18210
|
+
fontSize: 12,
|
|
18211
|
+
fill: "hsl(var(--muted-foreground))",
|
|
18212
|
+
fontWeight: 500,
|
|
18213
|
+
textAnchor: "middle"
|
|
18214
|
+
}
|
|
18215
|
+
} : void 0
|
|
18216
|
+
}
|
|
18217
|
+
),
|
|
18218
|
+
showTooltip && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18219
|
+
recharts.Tooltip,
|
|
18220
|
+
{
|
|
18221
|
+
content: showTooltipTotal ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18222
|
+
TooltipWithTotal_default,
|
|
18223
|
+
{
|
|
18224
|
+
finalColors,
|
|
18225
|
+
valueFormatter: finalValueFormatter,
|
|
18226
|
+
categoryFormatter,
|
|
18227
|
+
periodLabel
|
|
18228
|
+
}
|
|
18229
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
18230
|
+
TooltipSimple_default,
|
|
18231
|
+
{
|
|
18232
|
+
finalColors,
|
|
18233
|
+
valueFormatter: finalValueFormatter,
|
|
18234
|
+
categoryFormatter,
|
|
18235
|
+
periodLabel
|
|
18236
|
+
}
|
|
18237
|
+
),
|
|
18238
|
+
cursor: { fill: "hsl(var(--muted))", opacity: 0.1 }
|
|
18239
|
+
}
|
|
18240
|
+
),
|
|
18241
|
+
seriesOrder.map((s) => {
|
|
18242
|
+
if (showOnlyHighlighted && !highlightedSeries.has(s.key))
|
|
18243
|
+
return null;
|
|
18244
|
+
const { label, color, key } = fnBuildConfigData(
|
|
18245
|
+
s,
|
|
18246
|
+
mapperConfig,
|
|
18247
|
+
labelMap,
|
|
18248
|
+
finalColors,
|
|
18249
|
+
[],
|
|
18250
|
+
null
|
|
18251
|
+
);
|
|
18252
|
+
if (s.type === "bar") {
|
|
18253
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18254
|
+
recharts.Bar,
|
|
18255
|
+
{
|
|
18256
|
+
dataKey: key,
|
|
18257
|
+
name: label,
|
|
18258
|
+
fill: color,
|
|
18259
|
+
radius: [0, 4, 4, 0],
|
|
18260
|
+
onClick: handleBarClick,
|
|
18261
|
+
className: "cursor-pointer",
|
|
18262
|
+
style: { opacity: getSeriesOpacity(key) },
|
|
18263
|
+
activeBar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18264
|
+
recharts.Rectangle,
|
|
18265
|
+
{
|
|
18266
|
+
fill: color,
|
|
18267
|
+
stroke: color,
|
|
18268
|
+
strokeWidth: 2,
|
|
18269
|
+
opacity: 0.8
|
|
18270
|
+
}
|
|
18271
|
+
),
|
|
18272
|
+
children: showLabels && labelsVisibility.bar !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18273
|
+
recharts.LabelList,
|
|
18274
|
+
{
|
|
18275
|
+
dataKey: key,
|
|
18276
|
+
content: (props) => {
|
|
18277
|
+
const inside = renderInsideBarLabel(
|
|
18278
|
+
color,
|
|
18279
|
+
finalValueFormatter
|
|
18280
|
+
);
|
|
18281
|
+
return inside(props);
|
|
18282
|
+
},
|
|
18283
|
+
offset: 0
|
|
18284
|
+
}
|
|
18285
|
+
) : null
|
|
18286
|
+
},
|
|
18287
|
+
`bar-${key}`
|
|
18288
|
+
);
|
|
18289
|
+
}
|
|
18290
|
+
return null;
|
|
18291
|
+
})
|
|
18292
|
+
]
|
|
18293
|
+
}
|
|
18294
|
+
)
|
|
18295
|
+
}
|
|
18296
|
+
)
|
|
18297
|
+
}
|
|
18298
|
+
)
|
|
18299
|
+
] }),
|
|
18300
|
+
enableDraggableTooltips && activeTooltips.map((tooltip) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
18301
|
+
DraggableTooltip_default,
|
|
18302
|
+
{
|
|
18303
|
+
id: tooltip.id,
|
|
18304
|
+
data: adaptDataForTooltip(tooltip.data, xAxisConfig.dataKey),
|
|
18305
|
+
position: tooltip.position,
|
|
18306
|
+
title,
|
|
18307
|
+
dataKeys: allKeys,
|
|
18308
|
+
finalColors,
|
|
18309
|
+
highlightedSeries,
|
|
18310
|
+
toggleHighlight,
|
|
18311
|
+
showOnlyHighlighted,
|
|
18312
|
+
onClose: (id) => setActiveTooltips((prev) => prev.filter((t) => t.id !== id)),
|
|
18313
|
+
onPositionChange: onTooltipPositionChange,
|
|
18314
|
+
periodLabel,
|
|
18315
|
+
dataLabel: "Dados do Per\xEDodo",
|
|
18316
|
+
valueFormatter: finalValueFormatter,
|
|
18317
|
+
categoryFormatter,
|
|
18318
|
+
globalTooltipCount: activeTooltips.length,
|
|
18319
|
+
onCloseAll: () => window.dispatchEvent(new Event("closeAllTooltips")),
|
|
18320
|
+
closeAllButtonPosition: "top-center",
|
|
18321
|
+
closeAllButtonVariant: "floating"
|
|
18322
|
+
},
|
|
18323
|
+
tooltip.id
|
|
18324
|
+
)),
|
|
18325
|
+
enableDraggableTooltips && activeTooltips.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18326
|
+
CloseAllButton_default,
|
|
18327
|
+
{
|
|
18328
|
+
count: activeTooltips.length,
|
|
18329
|
+
onCloseAll: () => window.dispatchEvent(new Event("closeAllTooltips")),
|
|
18330
|
+
position: "top-center",
|
|
18331
|
+
variant: "floating"
|
|
18332
|
+
}
|
|
18333
|
+
)
|
|
18334
|
+
]
|
|
18335
|
+
}
|
|
18336
|
+
);
|
|
18337
|
+
};
|
|
18338
|
+
var HorizontalChart_default = HorizontalChart;
|
|
17852
18339
|
var defaultData = [
|
|
17853
18340
|
{ name: "Vendas", value: 4e3 },
|
|
17854
18341
|
{ name: "Marketing", value: 3e3 },
|
|
@@ -17856,7 +18343,7 @@ var defaultData = [
|
|
|
17856
18343
|
{ name: "Suporte", value: 1e3 },
|
|
17857
18344
|
{ name: "Outros", value: 800 }
|
|
17858
18345
|
];
|
|
17859
|
-
var
|
|
18346
|
+
var DEFAULT_COLORS4 = [
|
|
17860
18347
|
"#55af7d",
|
|
17861
18348
|
// verde do projeto
|
|
17862
18349
|
"#8e68ff",
|
|
@@ -17914,7 +18401,7 @@ var CustomPieChart = ({
|
|
|
17914
18401
|
centerX = "50%",
|
|
17915
18402
|
centerY = "50%"
|
|
17916
18403
|
}) => {
|
|
17917
|
-
const finalColors = colors2 ||
|
|
18404
|
+
const finalColors = colors2 || DEFAULT_COLORS4;
|
|
17918
18405
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full rounded-lg bg-card p-4", className), children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.PieChart, { children: [
|
|
17919
18406
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17920
18407
|
recharts.Pie,
|
|
@@ -18364,6 +18851,7 @@ exports.FileUploader = FileUploader;
|
|
|
18364
18851
|
exports.FilterButton = FilterButton;
|
|
18365
18852
|
exports.HideButton = HideButton;
|
|
18366
18853
|
exports.Highlights = Highlights_default;
|
|
18854
|
+
exports.HorizontalChart = HorizontalChart_default;
|
|
18367
18855
|
exports.HorizontalLegend = HorizontalLegend_default;
|
|
18368
18856
|
exports.HoverCardBase = HoverCardBase;
|
|
18369
18857
|
exports.HoverCardContentBase = HoverCardContentBase;
|
package/dist/index.mjs
CHANGED
|
@@ -16127,7 +16127,7 @@ var HorizontalLegend = ({
|
|
|
16127
16127
|
const label = mapperConfig[key]?.label ?? labelMap?.[key] ?? formatFieldName2(key);
|
|
16128
16128
|
return legendUppercase ? label.toUpperCase() : label;
|
|
16129
16129
|
};
|
|
16130
|
-
return /* @__PURE__ */ jsx("div", { className: cn(className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-
|
|
16130
|
+
return /* @__PURE__ */ jsx("div", { className: cn(className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-left gap-2 sm:gap-3 md:gap-4 overflow-x-auto", children: [
|
|
16131
16131
|
allKeys.map((key) => {
|
|
16132
16132
|
const displayLabel = formatLegendLabel(key);
|
|
16133
16133
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 sm:gap-2 flex-shrink-0", children: [
|
|
@@ -17806,6 +17806,493 @@ var Chart = ({
|
|
|
17806
17806
|
);
|
|
17807
17807
|
};
|
|
17808
17808
|
var Chart_default = Chart;
|
|
17809
|
+
var DEFAULT_COLORS3 = ["#0d1136", "#666655", "#1a1a1a"];
|
|
17810
|
+
var HorizontalChart = ({
|
|
17811
|
+
data,
|
|
17812
|
+
series,
|
|
17813
|
+
className,
|
|
17814
|
+
height = 500,
|
|
17815
|
+
width = "100%",
|
|
17816
|
+
colors: colors2 = DEFAULT_COLORS3,
|
|
17817
|
+
gridColor,
|
|
17818
|
+
showGrid = true,
|
|
17819
|
+
showTooltip = true,
|
|
17820
|
+
showLegend = true,
|
|
17821
|
+
title,
|
|
17822
|
+
titlePosition = "left",
|
|
17823
|
+
showLabels = false,
|
|
17824
|
+
labelsVisibility = { bar: true },
|
|
17825
|
+
xAxis,
|
|
17826
|
+
xAxisLabel,
|
|
17827
|
+
yAxisLabel,
|
|
17828
|
+
labelMap,
|
|
17829
|
+
valueFormatter,
|
|
17830
|
+
categoryFormatter,
|
|
17831
|
+
enableHighlights = false,
|
|
17832
|
+
enableShowOnly = false,
|
|
17833
|
+
enablePeriodsDropdown = false,
|
|
17834
|
+
enableDraggableTooltips = false,
|
|
17835
|
+
showTooltipTotal = false,
|
|
17836
|
+
periodLabel = "Per\xEDodo",
|
|
17837
|
+
maxTooltips = 5,
|
|
17838
|
+
formatBR = false,
|
|
17839
|
+
legendUppercase = false,
|
|
17840
|
+
chartMargin,
|
|
17841
|
+
isLoading = false,
|
|
17842
|
+
customLegend,
|
|
17843
|
+
orderBy
|
|
17844
|
+
}) => {
|
|
17845
|
+
const { xAxisConfig, mapperConfig } = useMemo(() => {
|
|
17846
|
+
return fnSmartConfig({ xAxis, data, labelMap });
|
|
17847
|
+
}, [data, xAxis, labelMap]);
|
|
17848
|
+
const {
|
|
17849
|
+
highlightedSeries,
|
|
17850
|
+
showOnlyHighlighted,
|
|
17851
|
+
toggleHighlight,
|
|
17852
|
+
setShowOnlyHighlighted,
|
|
17853
|
+
clearHighlights
|
|
17854
|
+
} = useChartHighlights();
|
|
17855
|
+
const { wrapperRef, measuredWidth } = useChartDimensions();
|
|
17856
|
+
const {
|
|
17857
|
+
activeTooltips,
|
|
17858
|
+
toggleTooltip,
|
|
17859
|
+
onTooltipPositionChange,
|
|
17860
|
+
setActiveTooltips
|
|
17861
|
+
} = useChartTooltips(maxTooltips);
|
|
17862
|
+
useEffect(() => {
|
|
17863
|
+
if (highlightedSeries.size === 0 && showOnlyHighlighted) {
|
|
17864
|
+
setShowOnlyHighlighted(false);
|
|
17865
|
+
}
|
|
17866
|
+
}, [highlightedSeries, showOnlyHighlighted, setShowOnlyHighlighted]);
|
|
17867
|
+
const processedData = useMemo(() => {
|
|
17868
|
+
const mapped = data.map((item) => ({
|
|
17869
|
+
...item,
|
|
17870
|
+
name: String(item[xAxisConfig.dataKey] || "N/A")
|
|
17871
|
+
}));
|
|
17872
|
+
if (orderBy && mapped.length > 0) {
|
|
17873
|
+
return [...mapped].sort((a, b) => {
|
|
17874
|
+
const valueA = Number(a[orderBy]) || 0;
|
|
17875
|
+
const valueB = Number(b[orderBy]) || 0;
|
|
17876
|
+
return valueB - valueA;
|
|
17877
|
+
});
|
|
17878
|
+
}
|
|
17879
|
+
return mapped;
|
|
17880
|
+
}, [data, xAxisConfig.dataKey, orderBy]);
|
|
17881
|
+
const seriesOrder = filtersOrder(mapperConfig, series);
|
|
17882
|
+
const allKeys = seriesOrder.map((s) => s.key).filter(Boolean);
|
|
17883
|
+
const finalColors = useMemo(
|
|
17884
|
+
() => generateColorMap(allKeys, colors2, mapperConfig),
|
|
17885
|
+
[allKeys, colors2, mapperConfig]
|
|
17886
|
+
);
|
|
17887
|
+
const activePeriods = useMemo(
|
|
17888
|
+
() => activeTooltips.map((t) => adaptDataForTooltip(t.data, xAxisConfig.dataKey).name),
|
|
17889
|
+
[activeTooltips, xAxisConfig.dataKey]
|
|
17890
|
+
);
|
|
17891
|
+
const maxDataValue = useMemo(() => {
|
|
17892
|
+
return getMaxDataValue(processedData, allKeys);
|
|
17893
|
+
}, [processedData, allKeys]);
|
|
17894
|
+
const minDataValue = useMemo(() => {
|
|
17895
|
+
return getMinDataValue(processedData, allKeys);
|
|
17896
|
+
}, [processedData, allKeys]);
|
|
17897
|
+
const niceMax = useMemo(() => computeNiceMax(maxDataValue), [maxDataValue]);
|
|
17898
|
+
const { handleChartClick, handleBarClick } = useChartClick({
|
|
17899
|
+
enableDraggableTooltips,
|
|
17900
|
+
xAxisDataKey: xAxisConfig.dataKey,
|
|
17901
|
+
toggleTooltip,
|
|
17902
|
+
setActiveTooltips
|
|
17903
|
+
});
|
|
17904
|
+
const getSeriesOpacity = useCallback(
|
|
17905
|
+
(key) => {
|
|
17906
|
+
return highlightedSeries.size > 0 ? highlightedSeries.has(key) ? 1 : 0.25 : 1;
|
|
17907
|
+
},
|
|
17908
|
+
[highlightedSeries]
|
|
17909
|
+
);
|
|
17910
|
+
const finalValueFormatter = useMemo(
|
|
17911
|
+
() => createValueFormatter(valueFormatter, formatBR),
|
|
17912
|
+
[valueFormatter, formatBR]
|
|
17913
|
+
);
|
|
17914
|
+
const yTickFormatter = useMemo(
|
|
17915
|
+
() => createYTickFormatter(finalValueFormatter),
|
|
17916
|
+
[finalValueFormatter]
|
|
17917
|
+
);
|
|
17918
|
+
const CONTAINER_PADDING_LEFT = -6;
|
|
17919
|
+
const finalChartRightMargin = chartMargin?.right ?? 0;
|
|
17920
|
+
const finalChartLeftMargin = chartMargin?.left ?? 0;
|
|
17921
|
+
const HORIZONTAL_PADDING_CLASS = "px-6";
|
|
17922
|
+
const effectiveChartWidth = typeof width === "number" ? width : measuredWidth ? Math.max(0, measuredWidth - 32) : 800;
|
|
17923
|
+
const chartInnerWidth = effectiveChartWidth - finalChartLeftMargin - finalChartRightMargin;
|
|
17924
|
+
const openTooltipForPeriod = useCallback(
|
|
17925
|
+
(periodName) => {
|
|
17926
|
+
fnOpenTooltipForPeriod(
|
|
17927
|
+
enableDraggableTooltips,
|
|
17928
|
+
processedData,
|
|
17929
|
+
periodName,
|
|
17930
|
+
activeTooltips,
|
|
17931
|
+
setActiveTooltips,
|
|
17932
|
+
maxTooltips,
|
|
17933
|
+
effectiveChartWidth
|
|
17934
|
+
);
|
|
17935
|
+
},
|
|
17936
|
+
[
|
|
17937
|
+
enableDraggableTooltips,
|
|
17938
|
+
processedData,
|
|
17939
|
+
activeTooltips,
|
|
17940
|
+
effectiveChartWidth,
|
|
17941
|
+
maxTooltips,
|
|
17942
|
+
setActiveTooltips
|
|
17943
|
+
]
|
|
17944
|
+
);
|
|
17945
|
+
if (!data && !isLoading) return null;
|
|
17946
|
+
if (isLoading) {
|
|
17947
|
+
return /* @__PURE__ */ jsx(
|
|
17948
|
+
NoData_default,
|
|
17949
|
+
{
|
|
17950
|
+
title,
|
|
17951
|
+
isLoading: true,
|
|
17952
|
+
loadingMessage: typeof title === "string" ? `${title} \u2014 Carregando` : "Carregando",
|
|
17953
|
+
paddingLeft: CONTAINER_PADDING_LEFT + finalChartLeftMargin,
|
|
17954
|
+
height
|
|
17955
|
+
}
|
|
17956
|
+
);
|
|
17957
|
+
}
|
|
17958
|
+
if (Array.isArray(data) && data.length === 0) {
|
|
17959
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
17960
|
+
NoData_default,
|
|
17961
|
+
{
|
|
17962
|
+
title,
|
|
17963
|
+
paddingLeft: CONTAINER_PADDING_LEFT + finalChartLeftMargin,
|
|
17964
|
+
height
|
|
17965
|
+
}
|
|
17966
|
+
) });
|
|
17967
|
+
}
|
|
17968
|
+
return /* @__PURE__ */ jsxs(
|
|
17969
|
+
"div",
|
|
17970
|
+
{
|
|
17971
|
+
ref: wrapperRef,
|
|
17972
|
+
className: cn(
|
|
17973
|
+
"w-full overflow-hidden min-w-0 rounded-lg border-border",
|
|
17974
|
+
className
|
|
17975
|
+
),
|
|
17976
|
+
children: [
|
|
17977
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-lg bg-card relative w-full max-w-full min-w-0 py-1", children: [
|
|
17978
|
+
title && /* @__PURE__ */ jsx(
|
|
17979
|
+
"div",
|
|
17980
|
+
{
|
|
17981
|
+
className: cn(
|
|
17982
|
+
"w-full flex items-center mt-3 mb-2",
|
|
17983
|
+
HORIZONTAL_PADDING_CLASS,
|
|
17984
|
+
titlePosition === "center" && "justify-center",
|
|
17985
|
+
titlePosition === "right" && "justify-end",
|
|
17986
|
+
titlePosition === "left" && "justify-start"
|
|
17987
|
+
),
|
|
17988
|
+
children: /* @__PURE__ */ jsx("div", { className: "text-[1.4rem] font-semibold text-foreground", children: title })
|
|
17989
|
+
}
|
|
17990
|
+
),
|
|
17991
|
+
customLegend && !!data.length && /* @__PURE__ */ jsx("div", { className: cn("px-6 mb-2", HORIZONTAL_PADDING_CLASS), children: /* @__PURE__ */ jsx(
|
|
17992
|
+
ChartTotalLegend_default,
|
|
17993
|
+
{
|
|
17994
|
+
items: allKeys.map((key) => {
|
|
17995
|
+
const values = processedData.map(
|
|
17996
|
+
(d) => Number(d[key] || 0)
|
|
17997
|
+
);
|
|
17998
|
+
const total = values.reduce((a, b) => a + b, 0);
|
|
17999
|
+
const first = values[0] || 0;
|
|
18000
|
+
const last = values[values.length - 1] || 0;
|
|
18001
|
+
const trendValue = first !== 0 ? Math.round((last - first) / first * 100) : 0;
|
|
18002
|
+
const formattedTotal = finalValueFormatter ? finalValueFormatter({
|
|
18003
|
+
value: total,
|
|
18004
|
+
formattedValue: String(total)
|
|
18005
|
+
}) : new Intl.NumberFormat(formatBR ? "pt-BR" : "en-US").format(
|
|
18006
|
+
total
|
|
18007
|
+
);
|
|
18008
|
+
return {
|
|
18009
|
+
label: mapperConfig[key]?.label || key,
|
|
18010
|
+
value: formattedTotal,
|
|
18011
|
+
color: finalColors[key],
|
|
18012
|
+
trend: {
|
|
18013
|
+
value: Math.abs(trendValue),
|
|
18014
|
+
positive: trendValue >= 0,
|
|
18015
|
+
neutral: trendValue === 0
|
|
18016
|
+
}
|
|
18017
|
+
};
|
|
18018
|
+
})
|
|
18019
|
+
}
|
|
18020
|
+
) }),
|
|
18021
|
+
allKeys.length > 0 && (enableHighlights || enableShowOnly) && /* @__PURE__ */ jsxs(
|
|
18022
|
+
"div",
|
|
18023
|
+
{
|
|
18024
|
+
className: cn("flex items-center gap-2", HORIZONTAL_PADDING_CLASS),
|
|
18025
|
+
children: [
|
|
18026
|
+
enableHighlights && /* @__PURE__ */ jsx(
|
|
18027
|
+
Highlights_default,
|
|
18028
|
+
{
|
|
18029
|
+
allKeys,
|
|
18030
|
+
mapperConfig,
|
|
18031
|
+
finalColors,
|
|
18032
|
+
highlightedSeries,
|
|
18033
|
+
toggleHighlight,
|
|
18034
|
+
containerWidth: chartInnerWidth
|
|
18035
|
+
}
|
|
18036
|
+
),
|
|
18037
|
+
enableShowOnly && /* @__PURE__ */ jsx(
|
|
18038
|
+
ShowOnly_default,
|
|
18039
|
+
{
|
|
18040
|
+
showOnlyHighlighted,
|
|
18041
|
+
setShowOnlyHighlighted,
|
|
18042
|
+
highlightedSeriesSize: highlightedSeries.size,
|
|
18043
|
+
clearHighlights
|
|
18044
|
+
}
|
|
18045
|
+
),
|
|
18046
|
+
enablePeriodsDropdown && enableDraggableTooltips && /* @__PURE__ */ jsx("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsx(
|
|
18047
|
+
PeriodsDropdown_default,
|
|
18048
|
+
{
|
|
18049
|
+
processedData,
|
|
18050
|
+
onOpenPeriod: openTooltipForPeriod,
|
|
18051
|
+
rightOffset: finalChartRightMargin,
|
|
18052
|
+
activePeriods
|
|
18053
|
+
}
|
|
18054
|
+
) })
|
|
18055
|
+
]
|
|
18056
|
+
}
|
|
18057
|
+
),
|
|
18058
|
+
!(allKeys.length > 0 && (enableHighlights || enableShowOnly)) && enablePeriodsDropdown && enableDraggableTooltips && /* @__PURE__ */ jsx(
|
|
18059
|
+
"div",
|
|
18060
|
+
{
|
|
18061
|
+
className: cn(
|
|
18062
|
+
"w-full flex justify-end mb-2",
|
|
18063
|
+
HORIZONTAL_PADDING_CLASS
|
|
18064
|
+
),
|
|
18065
|
+
children: /* @__PURE__ */ jsx(
|
|
18066
|
+
PeriodsDropdown_default,
|
|
18067
|
+
{
|
|
18068
|
+
processedData,
|
|
18069
|
+
onOpenPeriod: openTooltipForPeriod,
|
|
18070
|
+
rightOffset: finalChartRightMargin
|
|
18071
|
+
}
|
|
18072
|
+
)
|
|
18073
|
+
}
|
|
18074
|
+
),
|
|
18075
|
+
showLegend && /* @__PURE__ */ jsx("div", { className: cn("mb-3", HORIZONTAL_PADDING_CLASS), children: /* @__PURE__ */ jsx(
|
|
18076
|
+
HorizontalLegend_default,
|
|
18077
|
+
{
|
|
18078
|
+
allKeys,
|
|
18079
|
+
mapperConfig,
|
|
18080
|
+
finalColors,
|
|
18081
|
+
labelMap,
|
|
18082
|
+
legendUppercase
|
|
18083
|
+
}
|
|
18084
|
+
) }),
|
|
18085
|
+
/* @__PURE__ */ jsx(
|
|
18086
|
+
"div",
|
|
18087
|
+
{
|
|
18088
|
+
className: cn(
|
|
18089
|
+
"overflow-y-auto overflow-x-hidden px-6",
|
|
18090
|
+
"scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent mb-2"
|
|
18091
|
+
),
|
|
18092
|
+
style: {
|
|
18093
|
+
maxHeight: height
|
|
18094
|
+
},
|
|
18095
|
+
children: /* @__PURE__ */ jsx(
|
|
18096
|
+
ResponsiveContainer,
|
|
18097
|
+
{
|
|
18098
|
+
width: "100%",
|
|
18099
|
+
height: Math.max(height, processedData.length * 50),
|
|
18100
|
+
children: /* @__PURE__ */ jsxs(
|
|
18101
|
+
ComposedChart,
|
|
18102
|
+
{
|
|
18103
|
+
layout: "vertical",
|
|
18104
|
+
data: processedData,
|
|
18105
|
+
height: Math.max(height, processedData.length * 50),
|
|
18106
|
+
margin: {
|
|
18107
|
+
top: 10,
|
|
18108
|
+
right: finalChartRightMargin,
|
|
18109
|
+
left: finalChartLeftMargin,
|
|
18110
|
+
bottom: 10
|
|
18111
|
+
},
|
|
18112
|
+
onClick: handleChartClick,
|
|
18113
|
+
children: [
|
|
18114
|
+
showGrid && /* @__PURE__ */ jsx(
|
|
18115
|
+
CartesianGrid,
|
|
18116
|
+
{
|
|
18117
|
+
strokeDasharray: "3 3",
|
|
18118
|
+
stroke: gridColor || "hsl(var(--muted-foreground))",
|
|
18119
|
+
opacity: 0.5
|
|
18120
|
+
}
|
|
18121
|
+
),
|
|
18122
|
+
/* @__PURE__ */ jsx(
|
|
18123
|
+
XAxis,
|
|
18124
|
+
{
|
|
18125
|
+
type: "number",
|
|
18126
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
18127
|
+
fontSize: 12,
|
|
18128
|
+
tickLine: false,
|
|
18129
|
+
orientation: "top",
|
|
18130
|
+
axisLine: false,
|
|
18131
|
+
tickFormatter: yTickFormatter,
|
|
18132
|
+
domain: [Math.min(minDataValue, 0), niceMax],
|
|
18133
|
+
label: yAxisLabel ? {
|
|
18134
|
+
value: yAxisLabel,
|
|
18135
|
+
position: "insideTopRight",
|
|
18136
|
+
offset: -1,
|
|
18137
|
+
style: {
|
|
18138
|
+
fontSize: 12,
|
|
18139
|
+
fill: "hsl(var(--muted-foreground))",
|
|
18140
|
+
fontWeight: 500
|
|
18141
|
+
}
|
|
18142
|
+
} : void 0
|
|
18143
|
+
}
|
|
18144
|
+
),
|
|
18145
|
+
/* @__PURE__ */ jsx(
|
|
18146
|
+
YAxis,
|
|
18147
|
+
{
|
|
18148
|
+
type: "category",
|
|
18149
|
+
dataKey: xAxisConfig.dataKey,
|
|
18150
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
18151
|
+
fontSize: 12,
|
|
18152
|
+
tickLine: false,
|
|
18153
|
+
axisLine: false,
|
|
18154
|
+
width: 125,
|
|
18155
|
+
tickFormatter: (value) => {
|
|
18156
|
+
if (categoryFormatter)
|
|
18157
|
+
return categoryFormatter(value);
|
|
18158
|
+
if (xAxisConfig.valueFormatter)
|
|
18159
|
+
return xAxisConfig.valueFormatter(value);
|
|
18160
|
+
return String(value ?? "");
|
|
18161
|
+
},
|
|
18162
|
+
label: xAxisLabel ? {
|
|
18163
|
+
value: xAxisLabel,
|
|
18164
|
+
angle: -90,
|
|
18165
|
+
position: "insideTopLeft",
|
|
18166
|
+
style: {
|
|
18167
|
+
fontSize: 12,
|
|
18168
|
+
fill: "hsl(var(--muted-foreground))",
|
|
18169
|
+
fontWeight: 500,
|
|
18170
|
+
textAnchor: "middle"
|
|
18171
|
+
}
|
|
18172
|
+
} : void 0
|
|
18173
|
+
}
|
|
18174
|
+
),
|
|
18175
|
+
showTooltip && /* @__PURE__ */ jsx(
|
|
18176
|
+
Tooltip,
|
|
18177
|
+
{
|
|
18178
|
+
content: showTooltipTotal ? /* @__PURE__ */ jsx(
|
|
18179
|
+
TooltipWithTotal_default,
|
|
18180
|
+
{
|
|
18181
|
+
finalColors,
|
|
18182
|
+
valueFormatter: finalValueFormatter,
|
|
18183
|
+
categoryFormatter,
|
|
18184
|
+
periodLabel
|
|
18185
|
+
}
|
|
18186
|
+
) : /* @__PURE__ */ jsx(
|
|
18187
|
+
TooltipSimple_default,
|
|
18188
|
+
{
|
|
18189
|
+
finalColors,
|
|
18190
|
+
valueFormatter: finalValueFormatter,
|
|
18191
|
+
categoryFormatter,
|
|
18192
|
+
periodLabel
|
|
18193
|
+
}
|
|
18194
|
+
),
|
|
18195
|
+
cursor: { fill: "hsl(var(--muted))", opacity: 0.1 }
|
|
18196
|
+
}
|
|
18197
|
+
),
|
|
18198
|
+
seriesOrder.map((s) => {
|
|
18199
|
+
if (showOnlyHighlighted && !highlightedSeries.has(s.key))
|
|
18200
|
+
return null;
|
|
18201
|
+
const { label, color, key } = fnBuildConfigData(
|
|
18202
|
+
s,
|
|
18203
|
+
mapperConfig,
|
|
18204
|
+
labelMap,
|
|
18205
|
+
finalColors,
|
|
18206
|
+
[],
|
|
18207
|
+
null
|
|
18208
|
+
);
|
|
18209
|
+
if (s.type === "bar") {
|
|
18210
|
+
return /* @__PURE__ */ jsx(
|
|
18211
|
+
Bar,
|
|
18212
|
+
{
|
|
18213
|
+
dataKey: key,
|
|
18214
|
+
name: label,
|
|
18215
|
+
fill: color,
|
|
18216
|
+
radius: [0, 4, 4, 0],
|
|
18217
|
+
onClick: handleBarClick,
|
|
18218
|
+
className: "cursor-pointer",
|
|
18219
|
+
style: { opacity: getSeriesOpacity(key) },
|
|
18220
|
+
activeBar: /* @__PURE__ */ jsx(
|
|
18221
|
+
Rectangle,
|
|
18222
|
+
{
|
|
18223
|
+
fill: color,
|
|
18224
|
+
stroke: color,
|
|
18225
|
+
strokeWidth: 2,
|
|
18226
|
+
opacity: 0.8
|
|
18227
|
+
}
|
|
18228
|
+
),
|
|
18229
|
+
children: showLabels && labelsVisibility.bar !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsx(
|
|
18230
|
+
LabelList,
|
|
18231
|
+
{
|
|
18232
|
+
dataKey: key,
|
|
18233
|
+
content: (props) => {
|
|
18234
|
+
const inside = renderInsideBarLabel(
|
|
18235
|
+
color,
|
|
18236
|
+
finalValueFormatter
|
|
18237
|
+
);
|
|
18238
|
+
return inside(props);
|
|
18239
|
+
},
|
|
18240
|
+
offset: 0
|
|
18241
|
+
}
|
|
18242
|
+
) : null
|
|
18243
|
+
},
|
|
18244
|
+
`bar-${key}`
|
|
18245
|
+
);
|
|
18246
|
+
}
|
|
18247
|
+
return null;
|
|
18248
|
+
})
|
|
18249
|
+
]
|
|
18250
|
+
}
|
|
18251
|
+
)
|
|
18252
|
+
}
|
|
18253
|
+
)
|
|
18254
|
+
}
|
|
18255
|
+
)
|
|
18256
|
+
] }),
|
|
18257
|
+
enableDraggableTooltips && activeTooltips.map((tooltip) => /* @__PURE__ */ jsx(
|
|
18258
|
+
DraggableTooltip_default,
|
|
18259
|
+
{
|
|
18260
|
+
id: tooltip.id,
|
|
18261
|
+
data: adaptDataForTooltip(tooltip.data, xAxisConfig.dataKey),
|
|
18262
|
+
position: tooltip.position,
|
|
18263
|
+
title,
|
|
18264
|
+
dataKeys: allKeys,
|
|
18265
|
+
finalColors,
|
|
18266
|
+
highlightedSeries,
|
|
18267
|
+
toggleHighlight,
|
|
18268
|
+
showOnlyHighlighted,
|
|
18269
|
+
onClose: (id) => setActiveTooltips((prev) => prev.filter((t) => t.id !== id)),
|
|
18270
|
+
onPositionChange: onTooltipPositionChange,
|
|
18271
|
+
periodLabel,
|
|
18272
|
+
dataLabel: "Dados do Per\xEDodo",
|
|
18273
|
+
valueFormatter: finalValueFormatter,
|
|
18274
|
+
categoryFormatter,
|
|
18275
|
+
globalTooltipCount: activeTooltips.length,
|
|
18276
|
+
onCloseAll: () => window.dispatchEvent(new Event("closeAllTooltips")),
|
|
18277
|
+
closeAllButtonPosition: "top-center",
|
|
18278
|
+
closeAllButtonVariant: "floating"
|
|
18279
|
+
},
|
|
18280
|
+
tooltip.id
|
|
18281
|
+
)),
|
|
18282
|
+
enableDraggableTooltips && activeTooltips.length > 1 && /* @__PURE__ */ jsx(
|
|
18283
|
+
CloseAllButton_default,
|
|
18284
|
+
{
|
|
18285
|
+
count: activeTooltips.length,
|
|
18286
|
+
onCloseAll: () => window.dispatchEvent(new Event("closeAllTooltips")),
|
|
18287
|
+
position: "top-center",
|
|
18288
|
+
variant: "floating"
|
|
18289
|
+
}
|
|
18290
|
+
)
|
|
18291
|
+
]
|
|
18292
|
+
}
|
|
18293
|
+
);
|
|
18294
|
+
};
|
|
18295
|
+
var HorizontalChart_default = HorizontalChart;
|
|
17809
18296
|
var defaultData = [
|
|
17810
18297
|
{ name: "Vendas", value: 4e3 },
|
|
17811
18298
|
{ name: "Marketing", value: 3e3 },
|
|
@@ -17813,7 +18300,7 @@ var defaultData = [
|
|
|
17813
18300
|
{ name: "Suporte", value: 1e3 },
|
|
17814
18301
|
{ name: "Outros", value: 800 }
|
|
17815
18302
|
];
|
|
17816
|
-
var
|
|
18303
|
+
var DEFAULT_COLORS4 = [
|
|
17817
18304
|
"#55af7d",
|
|
17818
18305
|
// verde do projeto
|
|
17819
18306
|
"#8e68ff",
|
|
@@ -17871,7 +18358,7 @@ var CustomPieChart = ({
|
|
|
17871
18358
|
centerX = "50%",
|
|
17872
18359
|
centerY = "50%"
|
|
17873
18360
|
}) => {
|
|
17874
|
-
const finalColors = colors2 ||
|
|
18361
|
+
const finalColors = colors2 || DEFAULT_COLORS4;
|
|
17875
18362
|
return /* @__PURE__ */ jsx("div", { className: cn("w-full rounded-lg bg-card p-4", className), children: /* @__PURE__ */ jsx(ResponsiveContainer, { width, height, children: /* @__PURE__ */ jsxs(PieChart, { children: [
|
|
17876
18363
|
/* @__PURE__ */ jsx(
|
|
17877
18364
|
Pie,
|
|
@@ -18168,4 +18655,4 @@ function Leaderboard({
|
|
|
18168
18655
|
);
|
|
18169
18656
|
}
|
|
18170
18657
|
|
|
18171
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart_default as Chart, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PieChart_default as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, visualForItem };
|
|
18658
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart_default as Chart, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PieChart_default as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, visualForItem };
|