@mlw-packages/react-components 1.10.10 → 1.10.12
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 +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +238 -1
- package/dist/index.mjs +236 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2107,6 +2107,15 @@ interface SystemTooltipProps {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
declare const SystemTooltip: React__default.FC<SystemTooltipProps>;
|
|
2109
2109
|
|
|
2110
|
+
interface Node {
|
|
2111
|
+
identity: number;
|
|
2112
|
+
labels: string[];
|
|
2113
|
+
properties: {
|
|
2114
|
+
nome: string;
|
|
2115
|
+
[key: string]: string;
|
|
2116
|
+
};
|
|
2117
|
+
elementId: string;
|
|
2118
|
+
}
|
|
2110
2119
|
interface IntegrationProps {
|
|
2111
2120
|
tipo?: string;
|
|
2112
2121
|
Tipo?: string;
|
|
@@ -2120,6 +2129,21 @@ interface IntegrationProps {
|
|
|
2120
2129
|
Origem?: string;
|
|
2121
2130
|
[key: string]: string | undefined;
|
|
2122
2131
|
}
|
|
2132
|
+
interface Relationship {
|
|
2133
|
+
identity: number;
|
|
2134
|
+
start: number;
|
|
2135
|
+
end: number;
|
|
2136
|
+
type: string;
|
|
2137
|
+
properties: IntegrationProps;
|
|
2138
|
+
elementId: string;
|
|
2139
|
+
startNodeElementId: string;
|
|
2140
|
+
endNodeElementId: string;
|
|
2141
|
+
}
|
|
2142
|
+
interface Integration {
|
|
2143
|
+
origem: Node;
|
|
2144
|
+
r: Relationship;
|
|
2145
|
+
destino: Node;
|
|
2146
|
+
}
|
|
2123
2147
|
interface IntegrationConnection {
|
|
2124
2148
|
id: string;
|
|
2125
2149
|
name: string;
|
|
@@ -2132,6 +2156,7 @@ interface IntegrationData {
|
|
|
2132
2156
|
description?: string;
|
|
2133
2157
|
connections: IntegrationConnection[];
|
|
2134
2158
|
}
|
|
2159
|
+
declare function processIntegrationData(integrations: Integration[], targetSystemName: string): IntegrationData;
|
|
2135
2160
|
|
|
2136
2161
|
interface Position$1 {
|
|
2137
2162
|
top: number;
|
|
@@ -2148,6 +2173,7 @@ interface IntegrationModalProps {
|
|
|
2148
2173
|
onClose: (id: string) => void;
|
|
2149
2174
|
onPositionChange?: (id: string, position: Position$1) => void;
|
|
2150
2175
|
}
|
|
2176
|
+
declare const IntegrationModal: React__default.FC<IntegrationModalProps>;
|
|
2151
2177
|
|
|
2152
2178
|
interface ChartData$2 {
|
|
2153
2179
|
[key: string]: string | number | boolean | null | undefined;
|
|
@@ -2524,6 +2550,8 @@ interface CircularProgressProps {
|
|
|
2524
2550
|
}
|
|
2525
2551
|
declare function CircularProgress({ value, className, max, min, size, showValue, label, disableAnimation, midThreshold, lowThreshold, formatValue, }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
2526
2552
|
|
|
2553
|
+
declare const useIsTruncated: (ref: React.RefObject<HTMLElement | null>) => boolean;
|
|
2554
|
+
|
|
2527
2555
|
declare function useIsMobile(): boolean;
|
|
2528
2556
|
|
|
2529
2557
|
interface Position {
|
|
@@ -2543,4 +2571,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2543
2571
|
isDragging: boolean;
|
|
2544
2572
|
};
|
|
2545
2573
|
|
|
2546
|
-
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, type BiaxialConfig, 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, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, 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, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type IntegrationModalProps, type IntegrationProperties, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, 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 Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, 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 SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type 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, type SystemData, 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, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, 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, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
|
2574
|
+
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, type BiaxialConfig, 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, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, 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, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, 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 Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, 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 SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type 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, type SystemData, 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, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, 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, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -2107,6 +2107,15 @@ interface SystemTooltipProps {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
declare const SystemTooltip: React__default.FC<SystemTooltipProps>;
|
|
2109
2109
|
|
|
2110
|
+
interface Node {
|
|
2111
|
+
identity: number;
|
|
2112
|
+
labels: string[];
|
|
2113
|
+
properties: {
|
|
2114
|
+
nome: string;
|
|
2115
|
+
[key: string]: string;
|
|
2116
|
+
};
|
|
2117
|
+
elementId: string;
|
|
2118
|
+
}
|
|
2110
2119
|
interface IntegrationProps {
|
|
2111
2120
|
tipo?: string;
|
|
2112
2121
|
Tipo?: string;
|
|
@@ -2120,6 +2129,21 @@ interface IntegrationProps {
|
|
|
2120
2129
|
Origem?: string;
|
|
2121
2130
|
[key: string]: string | undefined;
|
|
2122
2131
|
}
|
|
2132
|
+
interface Relationship {
|
|
2133
|
+
identity: number;
|
|
2134
|
+
start: number;
|
|
2135
|
+
end: number;
|
|
2136
|
+
type: string;
|
|
2137
|
+
properties: IntegrationProps;
|
|
2138
|
+
elementId: string;
|
|
2139
|
+
startNodeElementId: string;
|
|
2140
|
+
endNodeElementId: string;
|
|
2141
|
+
}
|
|
2142
|
+
interface Integration {
|
|
2143
|
+
origem: Node;
|
|
2144
|
+
r: Relationship;
|
|
2145
|
+
destino: Node;
|
|
2146
|
+
}
|
|
2123
2147
|
interface IntegrationConnection {
|
|
2124
2148
|
id: string;
|
|
2125
2149
|
name: string;
|
|
@@ -2132,6 +2156,7 @@ interface IntegrationData {
|
|
|
2132
2156
|
description?: string;
|
|
2133
2157
|
connections: IntegrationConnection[];
|
|
2134
2158
|
}
|
|
2159
|
+
declare function processIntegrationData(integrations: Integration[], targetSystemName: string): IntegrationData;
|
|
2135
2160
|
|
|
2136
2161
|
interface Position$1 {
|
|
2137
2162
|
top: number;
|
|
@@ -2148,6 +2173,7 @@ interface IntegrationModalProps {
|
|
|
2148
2173
|
onClose: (id: string) => void;
|
|
2149
2174
|
onPositionChange?: (id: string, position: Position$1) => void;
|
|
2150
2175
|
}
|
|
2176
|
+
declare const IntegrationModal: React__default.FC<IntegrationModalProps>;
|
|
2151
2177
|
|
|
2152
2178
|
interface ChartData$2 {
|
|
2153
2179
|
[key: string]: string | number | boolean | null | undefined;
|
|
@@ -2524,6 +2550,8 @@ interface CircularProgressProps {
|
|
|
2524
2550
|
}
|
|
2525
2551
|
declare function CircularProgress({ value, className, max, min, size, showValue, label, disableAnimation, midThreshold, lowThreshold, formatValue, }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
2526
2552
|
|
|
2553
|
+
declare const useIsTruncated: (ref: React.RefObject<HTMLElement | null>) => boolean;
|
|
2554
|
+
|
|
2527
2555
|
declare function useIsMobile(): boolean;
|
|
2528
2556
|
|
|
2529
2557
|
interface Position {
|
|
@@ -2543,4 +2571,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2543
2571
|
isDragging: boolean;
|
|
2544
2572
|
};
|
|
2545
2573
|
|
|
2546
|
-
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, type BiaxialConfig, 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, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, 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, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type IntegrationModalProps, type IntegrationProperties, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, 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 Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, 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 SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type 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, type SystemData, 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, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, 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, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
|
2574
|
+
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, type BiaxialConfig, 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, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, 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, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, 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 Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, 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 SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type 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, type SystemData, 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, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, 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, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.js
CHANGED
|
@@ -16909,7 +16909,212 @@ var BodyComponent = ({ data, isLoading, connections, isInput, externalSystem })
|
|
|
16909
16909
|
)) })
|
|
16910
16910
|
] })
|
|
16911
16911
|
] });
|
|
16912
|
-
React32__namespace.default.memo(BodyComponent);
|
|
16912
|
+
var Body = React32__namespace.default.memo(BodyComponent);
|
|
16913
|
+
var modalVariants = {
|
|
16914
|
+
hidden: {
|
|
16915
|
+
opacity: 0,
|
|
16916
|
+
scale: 0.96,
|
|
16917
|
+
transition: { type: "spring", stiffness: 400, damping: 28 }
|
|
16918
|
+
},
|
|
16919
|
+
visible: {
|
|
16920
|
+
opacity: 1,
|
|
16921
|
+
scale: 1,
|
|
16922
|
+
transition: { type: "spring", stiffness: 300, damping: 28 }
|
|
16923
|
+
},
|
|
16924
|
+
exit: {
|
|
16925
|
+
opacity: 0,
|
|
16926
|
+
scale: 0.96,
|
|
16927
|
+
transition: { type: "spring", stiffness: 400, damping: 28 }
|
|
16928
|
+
}
|
|
16929
|
+
};
|
|
16930
|
+
var IntegrationModal = ({
|
|
16931
|
+
id,
|
|
16932
|
+
data,
|
|
16933
|
+
position,
|
|
16934
|
+
title = "Conex\xF5es",
|
|
16935
|
+
isLoading = false,
|
|
16936
|
+
systemName,
|
|
16937
|
+
onMouseDown,
|
|
16938
|
+
onClose,
|
|
16939
|
+
onPositionChange
|
|
16940
|
+
}) => {
|
|
16941
|
+
const isMobile = useIsMobile();
|
|
16942
|
+
const [localPos, setLocalPos] = React32.useState(position);
|
|
16943
|
+
const [dragging, setDragging] = React32.useState(false);
|
|
16944
|
+
const offsetRef = React32.useRef({ x: 0, y: 0 });
|
|
16945
|
+
const lastMouse = React32.useRef({ x: 0, y: 0 });
|
|
16946
|
+
const tooltipRef = React32.useRef(null);
|
|
16947
|
+
const currentPosRef = React32.useRef(position);
|
|
16948
|
+
React32.useEffect(() => {
|
|
16949
|
+
currentPosRef.current = position;
|
|
16950
|
+
setLocalPos(position);
|
|
16951
|
+
}, [position]);
|
|
16952
|
+
React32.useEffect(() => {
|
|
16953
|
+
let rafId = null;
|
|
16954
|
+
const handleMouseMove = (e) => {
|
|
16955
|
+
if (!dragging) return;
|
|
16956
|
+
lastMouse.current = { x: e.clientX, y: e.clientY };
|
|
16957
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16958
|
+
rafId = requestAnimationFrame(() => {
|
|
16959
|
+
const newLeft = lastMouse.current.x - offsetRef.current.x;
|
|
16960
|
+
const newTop = lastMouse.current.y - offsetRef.current.y;
|
|
16961
|
+
const p = {
|
|
16962
|
+
top: Math.max(0, Math.min(newTop, window.innerHeight - 200)),
|
|
16963
|
+
left: Math.max(0, Math.min(newLeft, window.innerWidth - 320))
|
|
16964
|
+
};
|
|
16965
|
+
currentPosRef.current = p;
|
|
16966
|
+
if (tooltipRef.current) {
|
|
16967
|
+
tooltipRef.current.style.top = `${p.top}px`;
|
|
16968
|
+
tooltipRef.current.style.left = `${p.left}px`;
|
|
16969
|
+
}
|
|
16970
|
+
onPositionChange?.(id, p);
|
|
16971
|
+
});
|
|
16972
|
+
};
|
|
16973
|
+
const handleMouseUp = () => {
|
|
16974
|
+
if (dragging) {
|
|
16975
|
+
setDragging(false);
|
|
16976
|
+
setLocalPos(currentPosRef.current);
|
|
16977
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16978
|
+
}
|
|
16979
|
+
};
|
|
16980
|
+
if (dragging) {
|
|
16981
|
+
document.addEventListener("mousemove", handleMouseMove, {
|
|
16982
|
+
passive: true
|
|
16983
|
+
});
|
|
16984
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
16985
|
+
document.body.style.cursor = "grabbing";
|
|
16986
|
+
document.body.style.userSelect = "none";
|
|
16987
|
+
}
|
|
16988
|
+
return () => {
|
|
16989
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16990
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
16991
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
16992
|
+
document.body.style.cursor = "";
|
|
16993
|
+
document.body.style.userSelect = "";
|
|
16994
|
+
};
|
|
16995
|
+
}, [dragging, id, onPositionChange]);
|
|
16996
|
+
const handleMouseDownLocal = React32.useCallback(
|
|
16997
|
+
(e) => {
|
|
16998
|
+
e.preventDefault();
|
|
16999
|
+
e.stopPropagation();
|
|
17000
|
+
const rect = e.currentTarget.closest(".fixed")?.getBoundingClientRect();
|
|
17001
|
+
if (!rect) return;
|
|
17002
|
+
offsetRef.current = { x: e.clientX - rect.left, y: e.clientY - rect.top };
|
|
17003
|
+
setDragging(true);
|
|
17004
|
+
onMouseDown?.(id, e);
|
|
17005
|
+
},
|
|
17006
|
+
[id, onMouseDown]
|
|
17007
|
+
);
|
|
17008
|
+
const handleTouchStartLocal = React32.useCallback(
|
|
17009
|
+
(e) => {
|
|
17010
|
+
e.stopPropagation();
|
|
17011
|
+
const touch = e.touches[0];
|
|
17012
|
+
if (!touch) return;
|
|
17013
|
+
const rect = e.currentTarget.closest(".fixed")?.getBoundingClientRect();
|
|
17014
|
+
if (!rect) return;
|
|
17015
|
+
offsetRef.current = {
|
|
17016
|
+
x: touch.clientX - rect.left,
|
|
17017
|
+
y: touch.clientY - rect.top
|
|
17018
|
+
};
|
|
17019
|
+
setDragging(true);
|
|
17020
|
+
onMouseDown?.(id, e);
|
|
17021
|
+
},
|
|
17022
|
+
[id, onMouseDown]
|
|
17023
|
+
);
|
|
17024
|
+
const inputConnections = React32.useMemo(
|
|
17025
|
+
() => data.connections.filter((c) => c.type === "entrada"),
|
|
17026
|
+
[data.connections]
|
|
17027
|
+
);
|
|
17028
|
+
const outputConnections = React32.useMemo(
|
|
17029
|
+
() => data.connections.filter((c) => c.type === "saida"),
|
|
17030
|
+
[data.connections]
|
|
17031
|
+
);
|
|
17032
|
+
const isInput = inputConnections.length > 0;
|
|
17033
|
+
const connections = isInput ? inputConnections : outputConnections;
|
|
17034
|
+
const externalSystem = systemName ?? connections[0]?.name ?? "Sistema";
|
|
17035
|
+
const header = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17036
|
+
"div",
|
|
17037
|
+
{
|
|
17038
|
+
className: "flex items-center justify-between py-1 border-b border-border shrink-0 max-w-lg",
|
|
17039
|
+
onMouseDown: handleMouseDownLocal,
|
|
17040
|
+
onTouchStart: handleTouchStartLocal,
|
|
17041
|
+
style: {
|
|
17042
|
+
touchAction: "none",
|
|
17043
|
+
cursor: dragging ? "grabbing" : "grab"
|
|
17044
|
+
},
|
|
17045
|
+
children: [
|
|
17046
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 px-3", children: [
|
|
17047
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.DotsSixVerticalIcon, { size: 16, className: "text-primary" }),
|
|
17048
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: title })
|
|
17049
|
+
] }),
|
|
17050
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17051
|
+
ButtonBase,
|
|
17052
|
+
{
|
|
17053
|
+
variant: "ghost",
|
|
17054
|
+
size: "icon",
|
|
17055
|
+
onClick: () => onClose(id),
|
|
17056
|
+
className: "text-muted-foreground hover:text-destructive transition-colors hover:bg-destructive/10 mr-1",
|
|
17057
|
+
style: { cursor: "pointer" },
|
|
17058
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.XIcon, { size: 16 })
|
|
17059
|
+
}
|
|
17060
|
+
)
|
|
17061
|
+
]
|
|
17062
|
+
}
|
|
17063
|
+
);
|
|
17064
|
+
const bodyProps = { data, isLoading, connections, isInput, externalSystem };
|
|
17065
|
+
if (isMobile) {
|
|
17066
|
+
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
17067
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17068
|
+
framerMotion.motion.div,
|
|
17069
|
+
{
|
|
17070
|
+
className: "fixed inset-0 z-[9999] bg-black/40 backdrop-blur-[2px]",
|
|
17071
|
+
initial: { opacity: 0 },
|
|
17072
|
+
animate: { opacity: 1 },
|
|
17073
|
+
exit: { opacity: 0 },
|
|
17074
|
+
onClick: () => onClose(id)
|
|
17075
|
+
},
|
|
17076
|
+
`overlay-${id}`
|
|
17077
|
+
),
|
|
17078
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17079
|
+
framerMotion.motion.div,
|
|
17080
|
+
{
|
|
17081
|
+
className: "fixed bottom-0 left-0 right-0 z-[10000] bg-card border-t border-border/50 rounded-t-2xl shadow-2xl flex flex-col min-h-0",
|
|
17082
|
+
style: { maxHeight: "85dvh" },
|
|
17083
|
+
initial: { y: "100%" },
|
|
17084
|
+
animate: { y: 0 },
|
|
17085
|
+
exit: { y: "100%" },
|
|
17086
|
+
transition: { type: "spring", stiffness: 320, damping: 36 },
|
|
17087
|
+
onClick: (e) => e.stopPropagation(),
|
|
17088
|
+
children: [
|
|
17089
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center pt-2.5 pb-1 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-10 h-1 rounded-full bg-border" }) }),
|
|
17090
|
+
header,
|
|
17091
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 min-h-0 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/40 transition-colors", children: /* @__PURE__ */ jsxRuntime.jsx(Body, { ...bodyProps }) })
|
|
17092
|
+
]
|
|
17093
|
+
},
|
|
17094
|
+
`sheet-${id}`
|
|
17095
|
+
)
|
|
17096
|
+
] }) });
|
|
17097
|
+
}
|
|
17098
|
+
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17099
|
+
framerMotion.motion.div,
|
|
17100
|
+
{
|
|
17101
|
+
ref: tooltipRef,
|
|
17102
|
+
className: "fixed bg-card/95 backdrop-blur-md border border-border/50 rounded-lg shadow-2xl z-[10000] w-[calc(100vw-32px)] max-w-sm sm:w-80 overflow-hidden",
|
|
17103
|
+
variants: modalVariants,
|
|
17104
|
+
initial: "hidden",
|
|
17105
|
+
animate: "visible",
|
|
17106
|
+
exit: "exit",
|
|
17107
|
+
style: { top: localPos.top, left: localPos.left },
|
|
17108
|
+
onClick: (e) => e.stopPropagation(),
|
|
17109
|
+
children: [
|
|
17110
|
+
header,
|
|
17111
|
+
/* @__PURE__ */ jsxRuntime.jsx(Body, { ...bodyProps })
|
|
17112
|
+
]
|
|
17113
|
+
},
|
|
17114
|
+
id
|
|
17115
|
+
) });
|
|
17116
|
+
};
|
|
17117
|
+
var IntegrationModal_default = IntegrationModal;
|
|
16913
17118
|
var Brush = ({
|
|
16914
17119
|
data,
|
|
16915
17120
|
legend,
|
|
@@ -21292,6 +21497,35 @@ function CircularProgress({
|
|
|
21292
21497
|
);
|
|
21293
21498
|
}
|
|
21294
21499
|
|
|
21500
|
+
// src/components/ui/data/hooks/integrationTooltipUtils.ts
|
|
21501
|
+
function processIntegrationData(integrations, targetSystemName) {
|
|
21502
|
+
const connections = [];
|
|
21503
|
+
integrations.forEach((integration) => {
|
|
21504
|
+
const origemNome = integration.origem.properties.nome;
|
|
21505
|
+
const destinoNome = integration.destino.properties.nome;
|
|
21506
|
+
if (origemNome === targetSystemName) {
|
|
21507
|
+
connections.push({
|
|
21508
|
+
id: integration.r.elementId,
|
|
21509
|
+
name: destinoNome,
|
|
21510
|
+
type: "saida",
|
|
21511
|
+
integration: integration.r.properties
|
|
21512
|
+
});
|
|
21513
|
+
}
|
|
21514
|
+
if (destinoNome === targetSystemName) {
|
|
21515
|
+
connections.push({
|
|
21516
|
+
id: integration.r.elementId,
|
|
21517
|
+
name: origemNome,
|
|
21518
|
+
type: "entrada",
|
|
21519
|
+
integration: integration.r.properties
|
|
21520
|
+
});
|
|
21521
|
+
}
|
|
21522
|
+
});
|
|
21523
|
+
return {
|
|
21524
|
+
name: targetSystemName,
|
|
21525
|
+
connections
|
|
21526
|
+
};
|
|
21527
|
+
}
|
|
21528
|
+
|
|
21295
21529
|
exports.AddButton = AddButton;
|
|
21296
21530
|
exports.Agenda = Agenda;
|
|
21297
21531
|
exports.AgendaDaysToShow = AgendaDaysToShow;
|
|
@@ -21459,6 +21693,7 @@ exports.InputOTPBase = InputOTPBase;
|
|
|
21459
21693
|
exports.InputOTPGroupBase = InputOTPGroupBase;
|
|
21460
21694
|
exports.InputOTPSeparatorBase = InputOTPSeparatorBase;
|
|
21461
21695
|
exports.InputOTPSlotBase = InputOTPSlotBase;
|
|
21696
|
+
exports.IntegrationModal = IntegrationModal_default;
|
|
21462
21697
|
exports.LabelBase = LabelBase_default;
|
|
21463
21698
|
exports.Leaderboard = Leaderboard;
|
|
21464
21699
|
exports.LikeButton = LikeButton;
|
|
@@ -21664,6 +21899,7 @@ exports.isValidHour = isValidHour;
|
|
|
21664
21899
|
exports.isValidMinuteOrSecond = isValidMinuteOrSecond;
|
|
21665
21900
|
exports.niceCeil = niceCeil;
|
|
21666
21901
|
exports.normalizeAttendDate = normalizeAttendDate;
|
|
21902
|
+
exports.processIntegrationData = processIntegrationData;
|
|
21667
21903
|
exports.processNeo4jData = processNeo4jData;
|
|
21668
21904
|
exports.renderInsideBarLabel = renderInsideBarLabel;
|
|
21669
21905
|
exports.renderPillLabel = pillLabelRenderer_default;
|
|
@@ -21693,6 +21929,7 @@ exports.useDrag = useDrag;
|
|
|
21693
21929
|
exports.useEventVisibility = useEventVisibility;
|
|
21694
21930
|
exports.useEventVisibilityAgenda = useEventVisibilityAgenda;
|
|
21695
21931
|
exports.useIsMobile = useIsMobile;
|
|
21932
|
+
exports.useIsTruncated = useIsTruncated;
|
|
21696
21933
|
exports.useOpenTooltipForPeriod = useOpenTooltipForPeriod;
|
|
21697
21934
|
exports.useProcessedData = useProcessedData;
|
|
21698
21935
|
exports.useSeriesOpacity = useSeriesOpacity;
|
package/dist/index.mjs
CHANGED
|
@@ -16866,7 +16866,212 @@ var BodyComponent = ({ data, isLoading, connections, isInput, externalSystem })
|
|
|
16866
16866
|
)) })
|
|
16867
16867
|
] })
|
|
16868
16868
|
] });
|
|
16869
|
-
React32__default.memo(BodyComponent);
|
|
16869
|
+
var Body = React32__default.memo(BodyComponent);
|
|
16870
|
+
var modalVariants = {
|
|
16871
|
+
hidden: {
|
|
16872
|
+
opacity: 0,
|
|
16873
|
+
scale: 0.96,
|
|
16874
|
+
transition: { type: "spring", stiffness: 400, damping: 28 }
|
|
16875
|
+
},
|
|
16876
|
+
visible: {
|
|
16877
|
+
opacity: 1,
|
|
16878
|
+
scale: 1,
|
|
16879
|
+
transition: { type: "spring", stiffness: 300, damping: 28 }
|
|
16880
|
+
},
|
|
16881
|
+
exit: {
|
|
16882
|
+
opacity: 0,
|
|
16883
|
+
scale: 0.96,
|
|
16884
|
+
transition: { type: "spring", stiffness: 400, damping: 28 }
|
|
16885
|
+
}
|
|
16886
|
+
};
|
|
16887
|
+
var IntegrationModal = ({
|
|
16888
|
+
id,
|
|
16889
|
+
data,
|
|
16890
|
+
position,
|
|
16891
|
+
title = "Conex\xF5es",
|
|
16892
|
+
isLoading = false,
|
|
16893
|
+
systemName,
|
|
16894
|
+
onMouseDown,
|
|
16895
|
+
onClose,
|
|
16896
|
+
onPositionChange
|
|
16897
|
+
}) => {
|
|
16898
|
+
const isMobile = useIsMobile();
|
|
16899
|
+
const [localPos, setLocalPos] = useState(position);
|
|
16900
|
+
const [dragging, setDragging] = useState(false);
|
|
16901
|
+
const offsetRef = useRef({ x: 0, y: 0 });
|
|
16902
|
+
const lastMouse = useRef({ x: 0, y: 0 });
|
|
16903
|
+
const tooltipRef = useRef(null);
|
|
16904
|
+
const currentPosRef = useRef(position);
|
|
16905
|
+
useEffect(() => {
|
|
16906
|
+
currentPosRef.current = position;
|
|
16907
|
+
setLocalPos(position);
|
|
16908
|
+
}, [position]);
|
|
16909
|
+
useEffect(() => {
|
|
16910
|
+
let rafId = null;
|
|
16911
|
+
const handleMouseMove = (e) => {
|
|
16912
|
+
if (!dragging) return;
|
|
16913
|
+
lastMouse.current = { x: e.clientX, y: e.clientY };
|
|
16914
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16915
|
+
rafId = requestAnimationFrame(() => {
|
|
16916
|
+
const newLeft = lastMouse.current.x - offsetRef.current.x;
|
|
16917
|
+
const newTop = lastMouse.current.y - offsetRef.current.y;
|
|
16918
|
+
const p = {
|
|
16919
|
+
top: Math.max(0, Math.min(newTop, window.innerHeight - 200)),
|
|
16920
|
+
left: Math.max(0, Math.min(newLeft, window.innerWidth - 320))
|
|
16921
|
+
};
|
|
16922
|
+
currentPosRef.current = p;
|
|
16923
|
+
if (tooltipRef.current) {
|
|
16924
|
+
tooltipRef.current.style.top = `${p.top}px`;
|
|
16925
|
+
tooltipRef.current.style.left = `${p.left}px`;
|
|
16926
|
+
}
|
|
16927
|
+
onPositionChange?.(id, p);
|
|
16928
|
+
});
|
|
16929
|
+
};
|
|
16930
|
+
const handleMouseUp = () => {
|
|
16931
|
+
if (dragging) {
|
|
16932
|
+
setDragging(false);
|
|
16933
|
+
setLocalPos(currentPosRef.current);
|
|
16934
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16935
|
+
}
|
|
16936
|
+
};
|
|
16937
|
+
if (dragging) {
|
|
16938
|
+
document.addEventListener("mousemove", handleMouseMove, {
|
|
16939
|
+
passive: true
|
|
16940
|
+
});
|
|
16941
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
16942
|
+
document.body.style.cursor = "grabbing";
|
|
16943
|
+
document.body.style.userSelect = "none";
|
|
16944
|
+
}
|
|
16945
|
+
return () => {
|
|
16946
|
+
if (rafId) cancelAnimationFrame(rafId);
|
|
16947
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
16948
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
16949
|
+
document.body.style.cursor = "";
|
|
16950
|
+
document.body.style.userSelect = "";
|
|
16951
|
+
};
|
|
16952
|
+
}, [dragging, id, onPositionChange]);
|
|
16953
|
+
const handleMouseDownLocal = useCallback(
|
|
16954
|
+
(e) => {
|
|
16955
|
+
e.preventDefault();
|
|
16956
|
+
e.stopPropagation();
|
|
16957
|
+
const rect = e.currentTarget.closest(".fixed")?.getBoundingClientRect();
|
|
16958
|
+
if (!rect) return;
|
|
16959
|
+
offsetRef.current = { x: e.clientX - rect.left, y: e.clientY - rect.top };
|
|
16960
|
+
setDragging(true);
|
|
16961
|
+
onMouseDown?.(id, e);
|
|
16962
|
+
},
|
|
16963
|
+
[id, onMouseDown]
|
|
16964
|
+
);
|
|
16965
|
+
const handleTouchStartLocal = useCallback(
|
|
16966
|
+
(e) => {
|
|
16967
|
+
e.stopPropagation();
|
|
16968
|
+
const touch = e.touches[0];
|
|
16969
|
+
if (!touch) return;
|
|
16970
|
+
const rect = e.currentTarget.closest(".fixed")?.getBoundingClientRect();
|
|
16971
|
+
if (!rect) return;
|
|
16972
|
+
offsetRef.current = {
|
|
16973
|
+
x: touch.clientX - rect.left,
|
|
16974
|
+
y: touch.clientY - rect.top
|
|
16975
|
+
};
|
|
16976
|
+
setDragging(true);
|
|
16977
|
+
onMouseDown?.(id, e);
|
|
16978
|
+
},
|
|
16979
|
+
[id, onMouseDown]
|
|
16980
|
+
);
|
|
16981
|
+
const inputConnections = useMemo(
|
|
16982
|
+
() => data.connections.filter((c) => c.type === "entrada"),
|
|
16983
|
+
[data.connections]
|
|
16984
|
+
);
|
|
16985
|
+
const outputConnections = useMemo(
|
|
16986
|
+
() => data.connections.filter((c) => c.type === "saida"),
|
|
16987
|
+
[data.connections]
|
|
16988
|
+
);
|
|
16989
|
+
const isInput = inputConnections.length > 0;
|
|
16990
|
+
const connections = isInput ? inputConnections : outputConnections;
|
|
16991
|
+
const externalSystem = systemName ?? connections[0]?.name ?? "Sistema";
|
|
16992
|
+
const header = /* @__PURE__ */ jsxs(
|
|
16993
|
+
"div",
|
|
16994
|
+
{
|
|
16995
|
+
className: "flex items-center justify-between py-1 border-b border-border shrink-0 max-w-lg",
|
|
16996
|
+
onMouseDown: handleMouseDownLocal,
|
|
16997
|
+
onTouchStart: handleTouchStartLocal,
|
|
16998
|
+
style: {
|
|
16999
|
+
touchAction: "none",
|
|
17000
|
+
cursor: dragging ? "grabbing" : "grab"
|
|
17001
|
+
},
|
|
17002
|
+
children: [
|
|
17003
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3", children: [
|
|
17004
|
+
/* @__PURE__ */ jsx(DotsSixVerticalIcon, { size: 16, className: "text-primary" }),
|
|
17005
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: title })
|
|
17006
|
+
] }),
|
|
17007
|
+
/* @__PURE__ */ jsx(
|
|
17008
|
+
ButtonBase,
|
|
17009
|
+
{
|
|
17010
|
+
variant: "ghost",
|
|
17011
|
+
size: "icon",
|
|
17012
|
+
onClick: () => onClose(id),
|
|
17013
|
+
className: "text-muted-foreground hover:text-destructive transition-colors hover:bg-destructive/10 mr-1",
|
|
17014
|
+
style: { cursor: "pointer" },
|
|
17015
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: 16 })
|
|
17016
|
+
}
|
|
17017
|
+
)
|
|
17018
|
+
]
|
|
17019
|
+
}
|
|
17020
|
+
);
|
|
17021
|
+
const bodyProps = { data, isLoading, connections, isInput, externalSystem };
|
|
17022
|
+
if (isMobile) {
|
|
17023
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17024
|
+
/* @__PURE__ */ jsx(
|
|
17025
|
+
motion.div,
|
|
17026
|
+
{
|
|
17027
|
+
className: "fixed inset-0 z-[9999] bg-black/40 backdrop-blur-[2px]",
|
|
17028
|
+
initial: { opacity: 0 },
|
|
17029
|
+
animate: { opacity: 1 },
|
|
17030
|
+
exit: { opacity: 0 },
|
|
17031
|
+
onClick: () => onClose(id)
|
|
17032
|
+
},
|
|
17033
|
+
`overlay-${id}`
|
|
17034
|
+
),
|
|
17035
|
+
/* @__PURE__ */ jsxs(
|
|
17036
|
+
motion.div,
|
|
17037
|
+
{
|
|
17038
|
+
className: "fixed bottom-0 left-0 right-0 z-[10000] bg-card border-t border-border/50 rounded-t-2xl shadow-2xl flex flex-col min-h-0",
|
|
17039
|
+
style: { maxHeight: "85dvh" },
|
|
17040
|
+
initial: { y: "100%" },
|
|
17041
|
+
animate: { y: 0 },
|
|
17042
|
+
exit: { y: "100%" },
|
|
17043
|
+
transition: { type: "spring", stiffness: 320, damping: 36 },
|
|
17044
|
+
onClick: (e) => e.stopPropagation(),
|
|
17045
|
+
children: [
|
|
17046
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-center pt-2.5 pb-1 shrink-0", children: /* @__PURE__ */ jsx("div", { className: "w-10 h-1 rounded-full bg-border" }) }),
|
|
17047
|
+
header,
|
|
17048
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-h-0 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/40 transition-colors", children: /* @__PURE__ */ jsx(Body, { ...bodyProps }) })
|
|
17049
|
+
]
|
|
17050
|
+
},
|
|
17051
|
+
`sheet-${id}`
|
|
17052
|
+
)
|
|
17053
|
+
] }) });
|
|
17054
|
+
}
|
|
17055
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(
|
|
17056
|
+
motion.div,
|
|
17057
|
+
{
|
|
17058
|
+
ref: tooltipRef,
|
|
17059
|
+
className: "fixed bg-card/95 backdrop-blur-md border border-border/50 rounded-lg shadow-2xl z-[10000] w-[calc(100vw-32px)] max-w-sm sm:w-80 overflow-hidden",
|
|
17060
|
+
variants: modalVariants,
|
|
17061
|
+
initial: "hidden",
|
|
17062
|
+
animate: "visible",
|
|
17063
|
+
exit: "exit",
|
|
17064
|
+
style: { top: localPos.top, left: localPos.left },
|
|
17065
|
+
onClick: (e) => e.stopPropagation(),
|
|
17066
|
+
children: [
|
|
17067
|
+
header,
|
|
17068
|
+
/* @__PURE__ */ jsx(Body, { ...bodyProps })
|
|
17069
|
+
]
|
|
17070
|
+
},
|
|
17071
|
+
id
|
|
17072
|
+
) });
|
|
17073
|
+
};
|
|
17074
|
+
var IntegrationModal_default = IntegrationModal;
|
|
16870
17075
|
var Brush = ({
|
|
16871
17076
|
data,
|
|
16872
17077
|
legend,
|
|
@@ -21249,4 +21454,33 @@ function CircularProgress({
|
|
|
21249
21454
|
);
|
|
21250
21455
|
}
|
|
21251
21456
|
|
|
21252
|
-
|
|
21457
|
+
// src/components/ui/data/hooks/integrationTooltipUtils.ts
|
|
21458
|
+
function processIntegrationData(integrations, targetSystemName) {
|
|
21459
|
+
const connections = [];
|
|
21460
|
+
integrations.forEach((integration) => {
|
|
21461
|
+
const origemNome = integration.origem.properties.nome;
|
|
21462
|
+
const destinoNome = integration.destino.properties.nome;
|
|
21463
|
+
if (origemNome === targetSystemName) {
|
|
21464
|
+
connections.push({
|
|
21465
|
+
id: integration.r.elementId,
|
|
21466
|
+
name: destinoNome,
|
|
21467
|
+
type: "saida",
|
|
21468
|
+
integration: integration.r.properties
|
|
21469
|
+
});
|
|
21470
|
+
}
|
|
21471
|
+
if (destinoNome === targetSystemName) {
|
|
21472
|
+
connections.push({
|
|
21473
|
+
id: integration.r.elementId,
|
|
21474
|
+
name: origemNome,
|
|
21475
|
+
type: "entrada",
|
|
21476
|
+
integration: integration.r.properties
|
|
21477
|
+
});
|
|
21478
|
+
}
|
|
21479
|
+
});
|
|
21480
|
+
return {
|
|
21481
|
+
name: targetSystemName,
|
|
21482
|
+
connections
|
|
21483
|
+
};
|
|
21484
|
+
}
|
|
21485
|
+
|
|
21486
|
+
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, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, 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, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, 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, IntegrationModal_default as IntegrationModal, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiDayOverlay, 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, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RadialMenu, 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, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, 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, processIntegrationData, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
|