@mlw-packages/react-components 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +67 -6
- package/dist/index.d.mts +111 -61
- package/dist/index.d.ts +111 -61
- package/dist/index.js +918 -396
- package/dist/index.mjs +918 -398
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
7
7
|
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { XIcon, CircleNotchIcon, MagnifyingGlassIcon, CaretUpIcon, CaretDownIcon, CheckIcon, CaretRightIcon, CircleIcon, CloudArrowUpIcon, MinusIcon, CaretUpDownIcon, PencilSimpleIcon, ArrowsLeftRightIcon, FloppyDiskIcon, PlusIcon, TrashIcon, SidebarSimpleIcon, FilePdfIcon, FileDocIcon, FileXlsIcon, FilePptIcon, FileCsvIcon, FileTextIcon, FileImageIcon, FileVideoIcon, FileAudioIcon, FileZipIcon, FileIcon, DotsSixVerticalIcon, InfoIcon, WarningIcon, XCircleIcon, CheckCircleIcon, SunIcon, MoonIcon, CaretLeftIcon, DownloadSimpleIcon, UploadSimpleIcon, CopyIcon, ArrowClockwiseIcon, ArrowLeftIcon, GearIcon, BellIcon, DotsThreeIcon, FunnelIcon, HeartIcon, StarIcon, EyeIcon, EyeSlashIcon, LockIcon, LockOpenIcon, ArrowRightIcon as ArrowRightIcon$1, FolderIcon, ArrowsOutIcon, DownloadIcon, CalendarBlankIcon, CalendarIcon, CaretLeft, CaretRight, ArrowDownIcon, ClockUserIcon, EyeSlash, Eye, ArrowRight, ArrowUpRightIcon, ArrowDownRightIcon, FileArchiveIcon, TerminalIcon, CodeIcon, CalendarDotIcon as CalendarDotIcon$1, DesktopIcon } from '@phosphor-icons/react';
|
|
8
|
+
import { XIcon, CircleNotchIcon, MagnifyingGlassIcon, CaretUpIcon, CaretDownIcon, CheckIcon, CaretRightIcon, CircleIcon, CloudArrowUpIcon, MinusIcon, CaretUpDownIcon, PencilSimpleIcon, ArrowsLeftRightIcon, FloppyDiskIcon, PlusIcon, TrashIcon, SidebarSimpleIcon, FilePdfIcon, FileDocIcon, FileXlsIcon, FilePptIcon, FileCsvIcon, FileTextIcon, FileImageIcon, FileVideoIcon, FileAudioIcon, FileZipIcon, FileIcon, DotsSixVerticalIcon, InfoIcon, WarningIcon, XCircleIcon, CheckCircleIcon, SunIcon, MoonIcon, CaretLeftIcon, DownloadSimpleIcon, UploadSimpleIcon, CopyIcon, ArrowClockwiseIcon, ArrowLeftIcon, GearIcon, BellIcon, DotsThreeIcon, FunnelIcon, HeartIcon, StarIcon, EyeIcon, EyeSlashIcon, LockIcon, LockOpenIcon, ArrowRightIcon as ArrowRightIcon$1, FolderIcon, ArrowsOutIcon, DownloadIcon, CalendarBlankIcon, CalendarIcon, CaretLeft, CaretRight, ArrowDownIcon, ClockUserIcon, EyeSlash, Eye, ArrowRight, ArrowUpRightIcon, ArrowDownRightIcon, FunnelSimpleIcon, FileArchiveIcon, TerminalIcon, CodeIcon, CalendarDotIcon as CalendarDotIcon$1, DesktopIcon } from '@phosphor-icons/react';
|
|
9
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -645,7 +645,7 @@ var DialogContentBase = React33.forwardRef(
|
|
|
645
645
|
{
|
|
646
646
|
ref,
|
|
647
647
|
className: cn(
|
|
648
|
-
"fixed left-[50%] top-[50%] z-50 w-lg grid translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg max-h-[100dvh] overflow-auto rounded-md border-border",
|
|
648
|
+
"fixed left-[50%] top-[50%] z-50 w-[90%] sm:w-lg grid translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg max-h-[100dvh] overflow-y-auto overflow-x-hidden rounded-md border-border",
|
|
649
649
|
className
|
|
650
650
|
),
|
|
651
651
|
"data-testid": dataTestId,
|
|
@@ -1911,21 +1911,28 @@ var CommandDialogBase = ({ children, open, ...props }) => {
|
|
|
1911
1911
|
"command-dialog"
|
|
1912
1912
|
) }) }) });
|
|
1913
1913
|
};
|
|
1914
|
-
var CommandInputBase = React33.forwardRef(({ className, testid: dataTestId = "command-input", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
className:
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1914
|
+
var CommandInputBase = React33.forwardRef(({ className, testid: dataTestId = "command-input", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1915
|
+
"div",
|
|
1916
|
+
{
|
|
1917
|
+
className: "flex items-center border-b px-3 border-border",
|
|
1918
|
+
"cmdk-input-wrapper": "",
|
|
1919
|
+
children: [
|
|
1920
|
+
/* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 text-primary" }),
|
|
1921
|
+
/* @__PURE__ */ jsx(
|
|
1922
|
+
Command.Input,
|
|
1923
|
+
{
|
|
1924
|
+
ref,
|
|
1925
|
+
className: cn(
|
|
1926
|
+
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none text-primary placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1927
|
+
className
|
|
1928
|
+
),
|
|
1929
|
+
"data-testid": dataTestId,
|
|
1930
|
+
...props
|
|
1931
|
+
}
|
|
1932
|
+
)
|
|
1933
|
+
]
|
|
1934
|
+
}
|
|
1935
|
+
));
|
|
1929
1936
|
CommandInputBase.displayName = Command.Input.displayName;
|
|
1930
1937
|
var CommandListBase = React33.forwardRef(({ className, testid: dataTestId = "command-list", ...props }, ref) => {
|
|
1931
1938
|
const listRef = React33.useRef(null);
|
|
@@ -1933,11 +1940,45 @@ var CommandListBase = React33.forwardRef(({ className, testid: dataTestId = "com
|
|
|
1933
1940
|
const element = listRef.current;
|
|
1934
1941
|
if (!element) return;
|
|
1935
1942
|
const handleWheel = (e) => {
|
|
1943
|
+
const target = e.currentTarget;
|
|
1944
|
+
const { scrollTop, scrollHeight, clientHeight } = target;
|
|
1945
|
+
const isScrollingDown = e.deltaY > 0;
|
|
1946
|
+
const isScrollingUp = e.deltaY < 0;
|
|
1947
|
+
const isAtBottom = scrollTop + clientHeight >= scrollHeight - 1;
|
|
1948
|
+
const isAtTop = scrollTop <= 1;
|
|
1949
|
+
if (isScrollingDown && !isAtBottom || isScrollingUp && !isAtTop) {
|
|
1950
|
+
e.stopPropagation();
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
let touchStartY = 0;
|
|
1954
|
+
const handleTouchStart = (e) => {
|
|
1955
|
+
touchStartY = e.touches[0].clientY;
|
|
1936
1956
|
e.stopPropagation();
|
|
1937
1957
|
};
|
|
1958
|
+
const handleTouchMove = (e) => {
|
|
1959
|
+
const target = e.currentTarget;
|
|
1960
|
+
const { scrollTop, scrollHeight, clientHeight } = target;
|
|
1961
|
+
const touchCurrentY = e.touches[0].clientY;
|
|
1962
|
+
const touchDeltaY = touchStartY - touchCurrentY;
|
|
1963
|
+
const isScrollingDown = touchDeltaY > 0;
|
|
1964
|
+
const isScrollingUp = touchDeltaY < 0;
|
|
1965
|
+
const isAtBottom = scrollTop + clientHeight >= scrollHeight - 1;
|
|
1966
|
+
const isAtTop = scrollTop <= 1;
|
|
1967
|
+
if (isScrollingDown && !isAtBottom || isScrollingUp && !isAtTop) {
|
|
1968
|
+
e.stopPropagation();
|
|
1969
|
+
} else if (isScrollingDown && isAtBottom || isScrollingUp && isAtTop) {
|
|
1970
|
+
e.preventDefault();
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1938
1973
|
element.addEventListener("wheel", handleWheel, { passive: false });
|
|
1974
|
+
element.addEventListener("touchstart", handleTouchStart, {
|
|
1975
|
+
passive: false
|
|
1976
|
+
});
|
|
1977
|
+
element.addEventListener("touchmove", handleTouchMove, { passive: false });
|
|
1939
1978
|
return () => {
|
|
1940
1979
|
element.removeEventListener("wheel", handleWheel);
|
|
1980
|
+
element.removeEventListener("touchmove", handleTouchMove);
|
|
1981
|
+
element.removeEventListener("touchstart", handleTouchStart);
|
|
1941
1982
|
};
|
|
1942
1983
|
}, []);
|
|
1943
1984
|
const combinedRef = React33.useCallback(
|
|
@@ -1962,7 +2003,13 @@ var CommandListBase = React33.forwardRef(({ className, testid: dataTestId = "com
|
|
|
1962
2003
|
"data-testid": dataTestId,
|
|
1963
2004
|
style: {
|
|
1964
2005
|
overscrollBehavior: "contain",
|
|
1965
|
-
WebkitOverflowScrolling: "touch"
|
|
2006
|
+
WebkitOverflowScrolling: "touch",
|
|
2007
|
+
touchAction: "pan-y",
|
|
2008
|
+
scrollbarWidth: "thin",
|
|
2009
|
+
scrollbarColor: "hsl(var(--muted)) transparent",
|
|
2010
|
+
overflowY: "auto",
|
|
2011
|
+
willChange: "scroll-position",
|
|
2012
|
+
transform: "translateZ(0)"
|
|
1966
2013
|
},
|
|
1967
2014
|
...props
|
|
1968
2015
|
}
|
|
@@ -2040,6 +2087,7 @@ var PopoverContentBase = React33.forwardRef(
|
|
|
2040
2087
|
align = "center",
|
|
2041
2088
|
sideOffset = 4,
|
|
2042
2089
|
testid: dataTestId = "popover-content",
|
|
2090
|
+
style,
|
|
2043
2091
|
...props
|
|
2044
2092
|
}, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2045
2093
|
PopoverPrimitive.Content,
|
|
@@ -2048,10 +2096,20 @@ var PopoverContentBase = React33.forwardRef(
|
|
|
2048
2096
|
align,
|
|
2049
2097
|
sideOffset,
|
|
2050
2098
|
className: cn(
|
|
2051
|
-
"z-
|
|
2099
|
+
"z-[100] w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2052
2100
|
className
|
|
2053
2101
|
),
|
|
2054
2102
|
"data-testid": dataTestId,
|
|
2103
|
+
style: {
|
|
2104
|
+
...style,
|
|
2105
|
+
WebkitOverflowScrolling: "touch",
|
|
2106
|
+
overscrollBehavior: "contain",
|
|
2107
|
+
pointerEvents: "auto"
|
|
2108
|
+
},
|
|
2109
|
+
onWheel: (e) => {
|
|
2110
|
+
e.stopPropagation();
|
|
2111
|
+
props.onWheel?.(e);
|
|
2112
|
+
},
|
|
2055
2113
|
onInteractOutside: (event) => {
|
|
2056
2114
|
props.onInteractOutside?.(event);
|
|
2057
2115
|
if (event.defaultPrevented) return;
|
|
@@ -2108,7 +2166,6 @@ function ComboboxBase({
|
|
|
2108
2166
|
hideClear = false
|
|
2109
2167
|
}) {
|
|
2110
2168
|
const [open, setOpen] = useState(false);
|
|
2111
|
-
const isMobile = useIsMobile();
|
|
2112
2169
|
return /* @__PURE__ */ jsxs(
|
|
2113
2170
|
"div",
|
|
2114
2171
|
{
|
|
@@ -2120,7 +2177,7 @@ function ComboboxBase({
|
|
|
2120
2177
|
{
|
|
2121
2178
|
open,
|
|
2122
2179
|
onOpenChange: (v) => !disabled && setOpen(v),
|
|
2123
|
-
modal:
|
|
2180
|
+
modal: false,
|
|
2124
2181
|
children: [
|
|
2125
2182
|
/* @__PURE__ */ jsx(
|
|
2126
2183
|
PopoverTriggerBase,
|
|
@@ -2852,7 +2909,7 @@ var SelectContentBase = React33.forwardRef(
|
|
|
2852
2909
|
{
|
|
2853
2910
|
ref,
|
|
2854
2911
|
className: cn(
|
|
2855
|
-
"relative z-50 max-h-96
|
|
2912
|
+
"relative z-50 max-h-96 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
2856
2913
|
className
|
|
2857
2914
|
),
|
|
2858
2915
|
position,
|
|
@@ -5393,14 +5450,29 @@ var TableCaptionBase = React33.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
5393
5450
|
}
|
|
5394
5451
|
));
|
|
5395
5452
|
TableCaptionBase.displayName = "TableCaptionBase";
|
|
5396
|
-
var TabsBase =
|
|
5453
|
+
var TabsBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5454
|
+
TabsPrimitive.Root,
|
|
5455
|
+
{
|
|
5456
|
+
ref,
|
|
5457
|
+
className: cn("w-full", className),
|
|
5458
|
+
...props
|
|
5459
|
+
}
|
|
5460
|
+
));
|
|
5461
|
+
TabsBase.displayName = TabsPrimitive.Root.displayName;
|
|
5397
5462
|
var TabsListBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5398
5463
|
TabsPrimitive.List,
|
|
5399
5464
|
{
|
|
5400
5465
|
ref,
|
|
5401
5466
|
className: cn(
|
|
5402
5467
|
"relative flex w-full items-center justify-start gap-2 border-b border-border",
|
|
5403
|
-
"bg-transparent",
|
|
5468
|
+
"bg-transparent overflow-x-auto",
|
|
5469
|
+
"scrollbar-thin scrollbar-thumb-muted-foreground/30 scrollbar-track-transparent",
|
|
5470
|
+
"hover:scrollbar-thumb-muted-foreground/50",
|
|
5471
|
+
"[&::-webkit-scrollbar]:h-1.5",
|
|
5472
|
+
"[&::-webkit-scrollbar-track]:bg-transparent",
|
|
5473
|
+
"[&::-webkit-scrollbar-thumb]:bg-muted-foreground/30",
|
|
5474
|
+
"[&::-webkit-scrollbar-thumb]:rounded-full",
|
|
5475
|
+
"hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",
|
|
5404
5476
|
className
|
|
5405
5477
|
),
|
|
5406
5478
|
...props
|
|
@@ -8121,7 +8193,7 @@ function DateTimePicker({
|
|
|
8121
8193
|
}
|
|
8122
8194
|
),
|
|
8123
8195
|
/* @__PURE__ */ jsx(ErrorMessage_default, { error }),
|
|
8124
|
-
/* @__PURE__ */ jsx(DialogContentBase, { className: "p-0 max-h-[95vh] w-
|
|
8196
|
+
/* @__PURE__ */ jsx(DialogContentBase, { className: "p-0 max-h-[95vh] w-3/6 overflow-hidden flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "overflow-y-auto flex-1", children: renderPickerContent() }) })
|
|
8125
8197
|
] }) : /* @__PURE__ */ jsxs(PopoverBase, { open, onOpenChange: setOpen, children: [
|
|
8126
8198
|
/* @__PURE__ */ jsx(
|
|
8127
8199
|
PopoverTriggerBase,
|
|
@@ -10107,8 +10179,8 @@ function EventAgenda({
|
|
|
10107
10179
|
setView(v);
|
|
10108
10180
|
},
|
|
10109
10181
|
items: selectItems,
|
|
10110
|
-
className: "gap-2 px-3 py-1.5 max-[479px]:h-8",
|
|
10111
10182
|
placeholder: viewLabel(view),
|
|
10183
|
+
className: "min-w-24",
|
|
10112
10184
|
hideClear: true
|
|
10113
10185
|
}
|
|
10114
10186
|
) })
|
|
@@ -10116,8 +10188,7 @@ function EventAgenda({
|
|
|
10116
10188
|
/* @__PURE__ */ jsxs(
|
|
10117
10189
|
"div",
|
|
10118
10190
|
{
|
|
10119
|
-
className: "flex flex-
|
|
10120
|
-
"aria-live": "polite",
|
|
10191
|
+
className: "flex flex-col transition-all duration-200 ease-in-out",
|
|
10121
10192
|
children: [
|
|
10122
10193
|
view === "month" && /* @__PURE__ */ jsx(
|
|
10123
10194
|
MonthViewAgenda,
|
|
@@ -14125,29 +14196,62 @@ var adaptDataForTooltip = (data, xAxisKey) => {
|
|
|
14125
14196
|
};
|
|
14126
14197
|
var createValueFormatter = (customFormatter, formatBR) => {
|
|
14127
14198
|
const nf = new Intl.NumberFormat("pt-BR", {
|
|
14128
|
-
minimumFractionDigits:
|
|
14129
|
-
maximumFractionDigits:
|
|
14199
|
+
minimumFractionDigits: 0,
|
|
14200
|
+
maximumFractionDigits: 0
|
|
14130
14201
|
});
|
|
14202
|
+
const prefixFormats = ["R$", "$", "\u20AC", "\xA3"];
|
|
14203
|
+
const suffixFormats = ["%", "kg", "km", "m", "L", "un", "t", "h", "min", "s"];
|
|
14204
|
+
const getFormattedValue = (baseValue, format17) => {
|
|
14205
|
+
const trimmedFormat = format17.trim();
|
|
14206
|
+
if (prefixFormats.includes(trimmedFormat)) {
|
|
14207
|
+
return `${trimmedFormat} ${baseValue}`;
|
|
14208
|
+
}
|
|
14209
|
+
if (suffixFormats.includes(trimmedFormat)) {
|
|
14210
|
+
return `${baseValue}${trimmedFormat}`;
|
|
14211
|
+
}
|
|
14212
|
+
return `${baseValue} ${trimmedFormat}`;
|
|
14213
|
+
};
|
|
14131
14214
|
if (customFormatter) {
|
|
14132
|
-
if (
|
|
14133
|
-
const
|
|
14134
|
-
|
|
14215
|
+
if (typeof customFormatter === "object" && !Array.isArray(customFormatter)) {
|
|
14216
|
+
const formatterMap = customFormatter;
|
|
14217
|
+
return (props) => {
|
|
14218
|
+
const {
|
|
14219
|
+
value,
|
|
14220
|
+
formattedValue,
|
|
14221
|
+
dataKey: propsDataKey
|
|
14222
|
+
} = props;
|
|
14135
14223
|
let num = NaN;
|
|
14136
14224
|
if (typeof value === "number") num = value;
|
|
14137
14225
|
else if (typeof value === "string" && value.trim() !== "") {
|
|
14138
14226
|
const parsed = Number(value);
|
|
14139
14227
|
num = Number.isNaN(parsed) ? NaN : parsed;
|
|
14140
14228
|
}
|
|
14141
|
-
const
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
formattedValue: brFormatted,
|
|
14145
|
-
value: void 0
|
|
14146
|
-
});
|
|
14229
|
+
const baseFormatted = formatBR && !Number.isNaN(num) ? nf.format(num) : String(formattedValue ?? value ?? "");
|
|
14230
|
+
const format17 = propsDataKey && formatterMap[propsDataKey] ? formatterMap[propsDataKey] : "";
|
|
14231
|
+
return format17 ? getFormattedValue(baseFormatted, format17) : baseFormatted;
|
|
14147
14232
|
};
|
|
14148
|
-
return wrapped;
|
|
14149
14233
|
}
|
|
14150
|
-
|
|
14234
|
+
if (typeof customFormatter === "function") {
|
|
14235
|
+
if (formatBR) {
|
|
14236
|
+
const wrapped = (props) => {
|
|
14237
|
+
const { value, formattedValue } = props;
|
|
14238
|
+
let num = NaN;
|
|
14239
|
+
if (typeof value === "number") num = value;
|
|
14240
|
+
else if (typeof value === "string" && value.trim() !== "") {
|
|
14241
|
+
const parsed = Number(value);
|
|
14242
|
+
num = Number.isNaN(parsed) ? NaN : parsed;
|
|
14243
|
+
}
|
|
14244
|
+
const brFormatted = !Number.isNaN(num) ? nf.format(num) : String(formattedValue ?? value ?? "");
|
|
14245
|
+
return customFormatter({
|
|
14246
|
+
...props,
|
|
14247
|
+
formattedValue: brFormatted,
|
|
14248
|
+
value: void 0
|
|
14249
|
+
});
|
|
14250
|
+
};
|
|
14251
|
+
return wrapped;
|
|
14252
|
+
}
|
|
14253
|
+
return customFormatter;
|
|
14254
|
+
}
|
|
14151
14255
|
}
|
|
14152
14256
|
if (!formatBR) return void 0;
|
|
14153
14257
|
const builtIn = (props) => {
|
|
@@ -14165,8 +14269,8 @@ var createValueFormatter = (customFormatter, formatBR) => {
|
|
|
14165
14269
|
};
|
|
14166
14270
|
var createYTickFormatter = (finalValueFormatter) => {
|
|
14167
14271
|
const nf = new Intl.NumberFormat("pt-BR", {
|
|
14168
|
-
minimumFractionDigits:
|
|
14169
|
-
maximumFractionDigits:
|
|
14272
|
+
minimumFractionDigits: 0,
|
|
14273
|
+
maximumFractionDigits: 0
|
|
14170
14274
|
});
|
|
14171
14275
|
const stripCurrency = (s) => String(s).replace(/^\s*R\$\s?/, "");
|
|
14172
14276
|
if (finalValueFormatter) {
|
|
@@ -14199,6 +14303,42 @@ var computeYAxisTickWidth = (chartMarginLeft, yAxisLabel, axisLabelMargin, yTick
|
|
|
14199
14303
|
const estimated = Math.max(48, Math.min(220, maxLen * 8 + 24));
|
|
14200
14304
|
return estimated;
|
|
14201
14305
|
};
|
|
14306
|
+
var CustomYAxisTick = (props) => {
|
|
14307
|
+
const { x = 0, y = 0, payload } = props;
|
|
14308
|
+
const text = String(payload?.value || "");
|
|
14309
|
+
const maxCharsPerLine = 20;
|
|
14310
|
+
const words = text.split(" ");
|
|
14311
|
+
const lines = [];
|
|
14312
|
+
let currentLine = "";
|
|
14313
|
+
words.forEach((word) => {
|
|
14314
|
+
const testLine = currentLine ? `${currentLine} ${word}` : word;
|
|
14315
|
+
if (testLine.length > maxCharsPerLine && currentLine) {
|
|
14316
|
+
lines.push(currentLine);
|
|
14317
|
+
currentLine = word;
|
|
14318
|
+
} else {
|
|
14319
|
+
currentLine = testLine;
|
|
14320
|
+
}
|
|
14321
|
+
});
|
|
14322
|
+
if (currentLine) {
|
|
14323
|
+
lines.push(currentLine);
|
|
14324
|
+
}
|
|
14325
|
+
const lineHeight = 12;
|
|
14326
|
+
const totalHeight = lines.length * lineHeight;
|
|
14327
|
+
const startY = y - totalHeight / 2 + lineHeight / 2;
|
|
14328
|
+
return /* @__PURE__ */ jsx("g", { children: lines.map((line, index) => /* @__PURE__ */ jsx(
|
|
14329
|
+
"text",
|
|
14330
|
+
{
|
|
14331
|
+
x,
|
|
14332
|
+
y: startY + index * lineHeight,
|
|
14333
|
+
textAnchor: "end",
|
|
14334
|
+
fill: "hsl(var(--muted-foreground))",
|
|
14335
|
+
fontSize: 11,
|
|
14336
|
+
children: line
|
|
14337
|
+
},
|
|
14338
|
+
index
|
|
14339
|
+
)) });
|
|
14340
|
+
};
|
|
14341
|
+
var CustomYAxisTick_default = CustomYAxisTick;
|
|
14202
14342
|
var menuVariants = {
|
|
14203
14343
|
hidden: { opacity: 0, y: -6, scale: 0.98 },
|
|
14204
14344
|
visible: { opacity: 1, y: 0, scale: 1 },
|
|
@@ -15484,12 +15624,14 @@ var SystemTooltip = ({
|
|
|
15484
15624
|
data,
|
|
15485
15625
|
position,
|
|
15486
15626
|
title = "Conex\xF5es",
|
|
15627
|
+
isLoading = false,
|
|
15487
15628
|
onMouseDown,
|
|
15488
15629
|
onClose,
|
|
15489
15630
|
onPositionChange
|
|
15490
15631
|
}) => {
|
|
15491
15632
|
const [localPos, setLocalPos] = useState(position);
|
|
15492
15633
|
const [dragging, setDragging] = useState(false);
|
|
15634
|
+
const [expandedId, setExpandedId] = useState(null);
|
|
15493
15635
|
const offsetRef = useRef({ x: 0, y: 0 });
|
|
15494
15636
|
const lastMouse = useRef({ x: 0, y: 0 });
|
|
15495
15637
|
useEffect(() => setLocalPos(position), [position]);
|
|
@@ -15611,54 +15753,157 @@ var SystemTooltip = ({
|
|
|
15611
15753
|
]
|
|
15612
15754
|
}
|
|
15613
15755
|
),
|
|
15614
|
-
/* @__PURE__ */
|
|
15756
|
+
/* @__PURE__ */ jsx("div", { className: "px-4 pt-4 pb-3", children: isLoading ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15757
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "h-6 w-3/4" }),
|
|
15758
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "h-4 w-1/2" })
|
|
15759
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15615
15760
|
/* @__PURE__ */ jsx("h3", { className: "text-xl font-bold text-foreground tracking-tight truncate", children: data.name }),
|
|
15616
|
-
/* @__PURE__ */ jsx("
|
|
15617
|
-
] }),
|
|
15761
|
+
data.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground tracking-tight truncate", children: data.description })
|
|
15762
|
+
] }) }),
|
|
15618
15763
|
/* @__PURE__ */ jsxs("div", { className: "px-3 pb-4 space-y-4 max-h-[300px] overflow-y-auto [&::-webkit-scrollbar]:w- [&::-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: [
|
|
15619
15764
|
/* @__PURE__ */ jsx(SeparatorBase, { className: "w-full" }),
|
|
15620
|
-
|
|
15621
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
15622
|
-
/* @__PURE__ */
|
|
15623
|
-
|
|
15765
|
+
isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15766
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15767
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-1", children: [
|
|
15768
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "w-1.5 h-1.5 rounded-full" }),
|
|
15769
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "h-3 w-16" })
|
|
15770
|
+
] }),
|
|
15771
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsx(SkeletonBase, { className: "h-10 w-full rounded-lg" }, i)) })
|
|
15624
15772
|
] }),
|
|
15625
|
-
/* @__PURE__ */
|
|
15626
|
-
"div",
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15646
|
-
|
|
15647
|
-
|
|
15773
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15774
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-1", children: [
|
|
15775
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "w-1.5 h-1.5 rounded-full" }),
|
|
15776
|
+
/* @__PURE__ */ jsx(SkeletonBase, { className: "h-3 w-16" })
|
|
15777
|
+
] }),
|
|
15778
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: [1, 2].map((i) => /* @__PURE__ */ jsx(SkeletonBase, { className: "h-10 w-full rounded-lg" }, i)) })
|
|
15779
|
+
] })
|
|
15780
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15781
|
+
entries.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15782
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-1", children: [
|
|
15783
|
+
/* @__PURE__ */ jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500" }),
|
|
15784
|
+
/* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase", children: "Entradas" })
|
|
15785
|
+
] }),
|
|
15786
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: entries.map((conn) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
15787
|
+
/* @__PURE__ */ jsxs(
|
|
15788
|
+
"div",
|
|
15789
|
+
{
|
|
15790
|
+
className: "group flex items-center justify-between p-2 rounded-lg bg-emerald-500/5 border border-emerald-500/10 hover:border-emerald-500/30 transition-all cursor-pointer",
|
|
15791
|
+
onClick: () => setExpandedId(expandedId === conn.id ? null : conn.id),
|
|
15792
|
+
children: [
|
|
15793
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate", children: conn.name }) }),
|
|
15794
|
+
/* @__PURE__ */ jsx(
|
|
15795
|
+
ArrowRight,
|
|
15796
|
+
{
|
|
15797
|
+
size: 14,
|
|
15798
|
+
className: "text-emerald-500 shrink-0 rotate-180"
|
|
15799
|
+
}
|
|
15800
|
+
)
|
|
15801
|
+
]
|
|
15802
|
+
}
|
|
15803
|
+
),
|
|
15804
|
+
expandedId === conn.id && conn.integration && /* @__PURE__ */ jsxs("div", { className: "ml-2 p-2 rounded-lg bg-muted/30 border border-border/20 text-xs space-y-1", children: [
|
|
15805
|
+
conn.integration.Nome && /* @__PURE__ */ jsxs("div", { children: [
|
|
15806
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Nome:" }),
|
|
15807
|
+
" ",
|
|
15808
|
+
conn.integration.Nome
|
|
15809
|
+
] }),
|
|
15810
|
+
(conn.integration.tipo || conn.integration.Tipo) && /* @__PURE__ */ jsxs("div", { children: [
|
|
15811
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Tipo:" }),
|
|
15812
|
+
" ",
|
|
15813
|
+
conn.integration.tipo || conn.integration.Tipo
|
|
15814
|
+
] }),
|
|
15815
|
+
conn.integration.Protocolos && /* @__PURE__ */ jsxs("div", { children: [
|
|
15816
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Protocolos:" }),
|
|
15817
|
+
" ",
|
|
15818
|
+
conn.integration.Protocolos
|
|
15819
|
+
] }),
|
|
15820
|
+
conn.integration.Ambiente && /* @__PURE__ */ jsxs("div", { children: [
|
|
15821
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Ambiente:" }),
|
|
15822
|
+
" ",
|
|
15823
|
+
conn.integration.Ambiente
|
|
15824
|
+
] }),
|
|
15825
|
+
conn.integration.Setor && /* @__PURE__ */ jsxs("div", { children: [
|
|
15826
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Setor:" }),
|
|
15827
|
+
" ",
|
|
15828
|
+
conn.integration.Setor
|
|
15829
|
+
] }),
|
|
15830
|
+
conn.integration.Contato && /* @__PURE__ */ jsxs("div", { children: [
|
|
15831
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Contato:" }),
|
|
15832
|
+
" ",
|
|
15833
|
+
conn.integration.Contato
|
|
15834
|
+
] }),
|
|
15835
|
+
conn.integration.Sustentacao && /* @__PURE__ */ jsxs("div", { children: [
|
|
15836
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Sustenta\xE7\xE3o:" }),
|
|
15837
|
+
" ",
|
|
15838
|
+
conn.integration.Sustentacao
|
|
15839
|
+
] })
|
|
15840
|
+
] })
|
|
15841
|
+
] }, conn.id)) })
|
|
15648
15842
|
] }),
|
|
15649
|
-
/* @__PURE__ */
|
|
15650
|
-
"div",
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15843
|
+
exits.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
15844
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-1", children: [
|
|
15845
|
+
/* @__PURE__ */ jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-blue-500" }),
|
|
15846
|
+
/* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase", children: "Sa\xEDdas" })
|
|
15847
|
+
] }),
|
|
15848
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: exits.map((conn) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
15849
|
+
/* @__PURE__ */ jsxs(
|
|
15850
|
+
"div",
|
|
15851
|
+
{
|
|
15852
|
+
className: "group flex items-center justify-between p-2 rounded-lg bg-blue-500/5 border border-blue-500/10 hover:border-blue-500/30 transition-all cursor-pointer",
|
|
15853
|
+
onClick: () => setExpandedId(expandedId === conn.id ? null : conn.id),
|
|
15854
|
+
children: [
|
|
15855
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate", children: conn.name }) }),
|
|
15856
|
+
/* @__PURE__ */ jsx(
|
|
15857
|
+
ArrowRight,
|
|
15858
|
+
{
|
|
15859
|
+
size: 14,
|
|
15860
|
+
className: "text-blue-500 shrink-0"
|
|
15861
|
+
}
|
|
15862
|
+
)
|
|
15863
|
+
]
|
|
15864
|
+
}
|
|
15865
|
+
),
|
|
15866
|
+
expandedId === conn.id && conn.integration && /* @__PURE__ */ jsxs("div", { className: "ml-2 p-2 rounded-lg bg-muted/30 border border-border/20 text-xs space-y-1", children: [
|
|
15867
|
+
conn.integration.Nome && /* @__PURE__ */ jsxs("div", { children: [
|
|
15868
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Nome:" }),
|
|
15869
|
+
" ",
|
|
15870
|
+
conn.integration.Nome
|
|
15871
|
+
] }),
|
|
15872
|
+
(conn.integration.tipo || conn.integration.Tipo) && /* @__PURE__ */ jsxs("div", { children: [
|
|
15873
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Tipo:" }),
|
|
15874
|
+
" ",
|
|
15875
|
+
conn.integration.tipo || conn.integration.Tipo
|
|
15876
|
+
] }),
|
|
15877
|
+
conn.integration.Protocolos && /* @__PURE__ */ jsxs("div", { children: [
|
|
15878
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Protocolos:" }),
|
|
15879
|
+
" ",
|
|
15880
|
+
conn.integration.Protocolos
|
|
15881
|
+
] }),
|
|
15882
|
+
conn.integration.Ambiente && /* @__PURE__ */ jsxs("div", { children: [
|
|
15883
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Ambiente:" }),
|
|
15884
|
+
" ",
|
|
15885
|
+
conn.integration.Ambiente
|
|
15886
|
+
] }),
|
|
15887
|
+
conn.integration.Setor && /* @__PURE__ */ jsxs("div", { children: [
|
|
15888
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Setor:" }),
|
|
15889
|
+
" ",
|
|
15890
|
+
conn.integration.Setor
|
|
15891
|
+
] }),
|
|
15892
|
+
conn.integration.Contato && /* @__PURE__ */ jsxs("div", { children: [
|
|
15893
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Contato:" }),
|
|
15894
|
+
" ",
|
|
15895
|
+
conn.integration.Contato
|
|
15896
|
+
] }),
|
|
15897
|
+
conn.integration.Sustentacao && /* @__PURE__ */ jsxs("div", { children: [
|
|
15898
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Sustenta\xE7\xE3o:" }),
|
|
15899
|
+
" ",
|
|
15900
|
+
conn.integration.Sustentacao
|
|
15901
|
+
] })
|
|
15902
|
+
] })
|
|
15903
|
+
] }, conn.id)) })
|
|
15904
|
+
] }),
|
|
15905
|
+
data.connections.length === 0 && !isLoading && /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center justify-center p-6 text-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Nenhuma conex\xE3o encontrada" }) })
|
|
15906
|
+
] })
|
|
15662
15907
|
] })
|
|
15663
15908
|
]
|
|
15664
15909
|
},
|
|
@@ -15676,7 +15921,7 @@ var Brush = ({
|
|
|
15676
15921
|
xAxisKey,
|
|
15677
15922
|
seriesOrder,
|
|
15678
15923
|
finalColors,
|
|
15679
|
-
brushHeight =
|
|
15924
|
+
brushHeight = 40,
|
|
15680
15925
|
brushColor,
|
|
15681
15926
|
miniChartOpacity = 0.3
|
|
15682
15927
|
}) => {
|
|
@@ -15900,16 +16145,76 @@ var ChartTotalLegend = ({ items }) => {
|
|
|
15900
16145
|
] }, index)) });
|
|
15901
16146
|
};
|
|
15902
16147
|
var ChartTotalLegend_default = ChartTotalLegend;
|
|
16148
|
+
var formatFieldName2 = (key) => {
|
|
16149
|
+
return key.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).trim();
|
|
16150
|
+
};
|
|
16151
|
+
var HorizontalLegend = ({
|
|
16152
|
+
allKeys,
|
|
16153
|
+
mapperConfig,
|
|
16154
|
+
finalColors,
|
|
16155
|
+
labelMap,
|
|
16156
|
+
legendUppercase = false,
|
|
16157
|
+
orderBy,
|
|
16158
|
+
maxPeriodLabel,
|
|
16159
|
+
minPeriodLabel,
|
|
16160
|
+
className
|
|
16161
|
+
}) => {
|
|
16162
|
+
const formatLegendLabel = (key) => {
|
|
16163
|
+
const label = mapperConfig[key]?.label ?? labelMap?.[key] ?? formatFieldName2(key);
|
|
16164
|
+
return legendUppercase ? label.toUpperCase() : label;
|
|
16165
|
+
};
|
|
16166
|
+
return /* @__PURE__ */ jsx("div", { className: cn(className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 sm:gap-3 md:gap-4 overflow-x-auto", children: [
|
|
16167
|
+
allKeys.map((key) => {
|
|
16168
|
+
const displayLabel = formatLegendLabel(key);
|
|
16169
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 sm:gap-2 flex-shrink-0", children: [
|
|
16170
|
+
/* @__PURE__ */ jsx(
|
|
16171
|
+
"div",
|
|
16172
|
+
{
|
|
16173
|
+
className: "w-2.5 h-2.5 sm:w-3 sm:h-3 rounded-sm flex-shrink-0",
|
|
16174
|
+
style: { backgroundColor: finalColors[key] }
|
|
16175
|
+
}
|
|
16176
|
+
),
|
|
16177
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs sm:text-sm tracking-[0] whitespace-nowrap", children: displayLabel })
|
|
16178
|
+
] }, key);
|
|
16179
|
+
}),
|
|
16180
|
+
orderBy && maxPeriodLabel && minPeriodLabel && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 sm:gap-3 md:gap-4 ml-3 pl-3 md:ml-4 md:pl-4 border-l border-border flex-shrink-0", children: [
|
|
16181
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 sm:gap-1.5", children: [
|
|
16182
|
+
/* @__PURE__ */ jsx(
|
|
16183
|
+
FunnelSimpleIcon,
|
|
16184
|
+
{
|
|
16185
|
+
className: "w-3 h-3 sm:w-4 sm:h-4 text-green-600 flex-shrink-0",
|
|
16186
|
+
weight: "bold"
|
|
16187
|
+
}
|
|
16188
|
+
),
|
|
16189
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs sm:text-sm tracking-[0] font-medium whitespace-nowrap", children: maxPeriodLabel })
|
|
16190
|
+
] }),
|
|
16191
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 sm:gap-1.5", children: [
|
|
16192
|
+
/* @__PURE__ */ jsx(
|
|
16193
|
+
FunnelSimpleIcon,
|
|
16194
|
+
{
|
|
16195
|
+
className: "w-3 h-3 sm:w-4 sm:h-4 text-red-600 rotate-180 flex-shrink-0",
|
|
16196
|
+
weight: "bold"
|
|
16197
|
+
}
|
|
16198
|
+
),
|
|
16199
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs sm:text-sm tracking-[0] font-medium whitespace-nowrap", children: minPeriodLabel })
|
|
16200
|
+
] })
|
|
16201
|
+
] })
|
|
16202
|
+
] }) });
|
|
16203
|
+
};
|
|
16204
|
+
var HorizontalLegend_default = HorizontalLegend;
|
|
15903
16205
|
var formatCompactNumber = (value) => {
|
|
15904
16206
|
const isNegative = value < 0;
|
|
15905
16207
|
const absValue = Math.abs(value);
|
|
15906
16208
|
let formatted;
|
|
15907
16209
|
if (absValue >= 1e9) {
|
|
15908
|
-
|
|
16210
|
+
const billions = absValue / 1e9;
|
|
16211
|
+
formatted = (billions % 1 === 0 ? billions.toFixed(0) : billions.toFixed(1)) + "B";
|
|
15909
16212
|
} else if (absValue >= 1e6) {
|
|
15910
|
-
|
|
16213
|
+
const millions = absValue / 1e6;
|
|
16214
|
+
formatted = (millions % 1 === 0 ? millions.toFixed(0) : millions.toFixed(1)) + "M";
|
|
15911
16215
|
} else if (absValue >= 1e3) {
|
|
15912
|
-
|
|
16216
|
+
const thousands = absValue / 1e3;
|
|
16217
|
+
formatted = (thousands % 1 === 0 ? thousands.toFixed(0) : thousands.toFixed(1)) + " mil";
|
|
15913
16218
|
} else {
|
|
15914
16219
|
try {
|
|
15915
16220
|
const nf = new Intl.NumberFormat("pt-BR", {
|
|
@@ -16636,6 +16941,42 @@ function useTimeSeriesRange({
|
|
|
16636
16941
|
handleMouseDown
|
|
16637
16942
|
};
|
|
16638
16943
|
}
|
|
16944
|
+
var useChartMinMax = ({
|
|
16945
|
+
processedData,
|
|
16946
|
+
orderBy,
|
|
16947
|
+
xAxisDataKey,
|
|
16948
|
+
categoryFormatter
|
|
16949
|
+
}) => {
|
|
16950
|
+
return useMemo(() => {
|
|
16951
|
+
if (!processedData || processedData.length === 0 || !orderBy) {
|
|
16952
|
+
return {
|
|
16953
|
+
maxPeriodLabel: "",
|
|
16954
|
+
minPeriodLabel: ""
|
|
16955
|
+
};
|
|
16956
|
+
}
|
|
16957
|
+
let maxValue = -Infinity;
|
|
16958
|
+
let minValue = Infinity;
|
|
16959
|
+
let maxPeriodLabel = "";
|
|
16960
|
+
let minPeriodLabel = "";
|
|
16961
|
+
processedData.forEach((item) => {
|
|
16962
|
+
const value = Number(item[orderBy]) || 0;
|
|
16963
|
+
const periodName = String(item[xAxisDataKey] || "N/A");
|
|
16964
|
+
const formattedPeriod = categoryFormatter ? categoryFormatter(periodName) : periodName;
|
|
16965
|
+
if (value > maxValue) {
|
|
16966
|
+
maxValue = value;
|
|
16967
|
+
maxPeriodLabel = formattedPeriod;
|
|
16968
|
+
}
|
|
16969
|
+
if (value < minValue) {
|
|
16970
|
+
minValue = value;
|
|
16971
|
+
minPeriodLabel = formattedPeriod;
|
|
16972
|
+
}
|
|
16973
|
+
});
|
|
16974
|
+
return {
|
|
16975
|
+
maxPeriodLabel,
|
|
16976
|
+
minPeriodLabel
|
|
16977
|
+
};
|
|
16978
|
+
}, [processedData, orderBy, xAxisDataKey, categoryFormatter]);
|
|
16979
|
+
};
|
|
16639
16980
|
var filtersOrder = (mapperConfig, series) => {
|
|
16640
16981
|
const seriesOrder = [];
|
|
16641
16982
|
if (series) {
|
|
@@ -16708,7 +17049,7 @@ var fnSmartConfig = ({ xAxis, data, labelMap }) => {
|
|
|
16708
17049
|
return { xAxisConfig, mapperConfig };
|
|
16709
17050
|
};
|
|
16710
17051
|
var fnConfigRightKeys = (biaxialConfigNormalized, yTickFormatter, finalColors) => {
|
|
16711
|
-
const decimals = typeof biaxialConfigNormalized?.decimals === "number" ? Math.max(0, Math.floor(biaxialConfigNormalized.decimals)) :
|
|
17052
|
+
const decimals = typeof biaxialConfigNormalized?.decimals === "number" ? Math.max(0, Math.floor(biaxialConfigNormalized.decimals)) : 1;
|
|
16712
17053
|
const rightTickFormatter = (v) => {
|
|
16713
17054
|
if (biaxialConfigNormalized?.percentage) {
|
|
16714
17055
|
const num = Number(String(v));
|
|
@@ -16758,6 +17099,11 @@ var fnContentLabelList = (p) => {
|
|
|
16758
17099
|
const needsOutside = barHeight > 0 && barHeight < smallThreshold || barWidth > 0 && barWidth < smallThreshold;
|
|
16759
17100
|
return needsOutside ? null : true;
|
|
16760
17101
|
};
|
|
17102
|
+
|
|
17103
|
+
// src/utils/calcDivision.ts
|
|
17104
|
+
var calcDivision = (dividend, divisor) => {
|
|
17105
|
+
return dividend / divisor;
|
|
17106
|
+
};
|
|
16761
17107
|
var DEFAULT_COLORS2 = ["#55af7d", "#8e68ff", "#2273e1"];
|
|
16762
17108
|
var Chart = ({
|
|
16763
17109
|
data,
|
|
@@ -16794,7 +17140,9 @@ var Chart = ({
|
|
|
16794
17140
|
isLoading = false,
|
|
16795
17141
|
timeSeries,
|
|
16796
17142
|
timeSeriesLegend,
|
|
16797
|
-
customLegend
|
|
17143
|
+
customLegend,
|
|
17144
|
+
horizontal = false,
|
|
17145
|
+
orderBy
|
|
16798
17146
|
}) => {
|
|
16799
17147
|
const { xAxisConfig, mapperConfig } = useMemo(() => {
|
|
16800
17148
|
return fnSmartConfig({ xAxis, data, labelMap });
|
|
@@ -16830,16 +17178,38 @@ var Chart = ({
|
|
|
16830
17178
|
defaultEndIndex: timeSeriesConfig?.end,
|
|
16831
17179
|
onRangeChange: timeSeriesConfig?.onRangeChange
|
|
16832
17180
|
});
|
|
17181
|
+
const { maxPeriodLabel, minPeriodLabel } = useChartMinMax({
|
|
17182
|
+
processedData: data,
|
|
17183
|
+
orderBy,
|
|
17184
|
+
xAxisDataKey: xAxisConfig.dataKey,
|
|
17185
|
+
categoryFormatter
|
|
17186
|
+
});
|
|
16833
17187
|
const processedData = useMemo(() => {
|
|
16834
17188
|
const mapped = data.map((item) => ({
|
|
16835
17189
|
...item,
|
|
16836
17190
|
name: String(item[xAxisConfig.dataKey] || "N/A")
|
|
16837
17191
|
}));
|
|
17192
|
+
let result = mapped;
|
|
16838
17193
|
if (timeSeriesConfig) {
|
|
16839
|
-
|
|
17194
|
+
result = mapped.slice(startIndex, endIndex + 1);
|
|
17195
|
+
}
|
|
17196
|
+
if (orderBy && horizontal) {
|
|
17197
|
+
result = [...result].sort((a, b) => {
|
|
17198
|
+
const valueA = Number(a[orderBy]) || 0;
|
|
17199
|
+
const valueB = Number(b[orderBy]) || 0;
|
|
17200
|
+
return valueB - valueA;
|
|
17201
|
+
});
|
|
16840
17202
|
}
|
|
16841
|
-
return
|
|
16842
|
-
}, [
|
|
17203
|
+
return result;
|
|
17204
|
+
}, [
|
|
17205
|
+
data,
|
|
17206
|
+
xAxisConfig.dataKey,
|
|
17207
|
+
timeSeriesConfig,
|
|
17208
|
+
startIndex,
|
|
17209
|
+
endIndex,
|
|
17210
|
+
orderBy,
|
|
17211
|
+
horizontal
|
|
17212
|
+
]);
|
|
16843
17213
|
const seriesOrder = filtersOrder(mapperConfig, series);
|
|
16844
17214
|
const allKeys = seriesOrder.map((s) => s.key).filter(Boolean);
|
|
16845
17215
|
const finalColors = useMemo(
|
|
@@ -16934,23 +17304,27 @@ var Chart = ({
|
|
|
16934
17304
|
const CONTAINER_PADDING_LEFT = -6;
|
|
16935
17305
|
const finalChartRightMargin = chartMargin?.right ?? (rightKeys.length > 0 ? AXIS_LABEL_MARGIN : 30);
|
|
16936
17306
|
const finalChartLeftMargin = chartMargin?.left ?? (yAxisLabel ? AXIS_LABEL_MARGIN : 0);
|
|
16937
|
-
const yAxisTickWidth = useMemo(
|
|
16938
|
-
()
|
|
17307
|
+
const yAxisTickWidth = useMemo(() => {
|
|
17308
|
+
if (horizontal) {
|
|
17309
|
+
if (typeof chartMargin?.left === "number") return chartMargin.left;
|
|
17310
|
+
return 130;
|
|
17311
|
+
}
|
|
17312
|
+
return computeYAxisTickWidth(
|
|
16939
17313
|
chartMargin?.left,
|
|
16940
17314
|
yAxisLabel,
|
|
16941
17315
|
AXIS_LABEL_MARGIN,
|
|
16942
17316
|
yTickFormatter,
|
|
16943
17317
|
minLeftDataValue,
|
|
16944
17318
|
niceMaxLeft
|
|
16945
|
-
)
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
);
|
|
17319
|
+
);
|
|
17320
|
+
}, [
|
|
17321
|
+
horizontal,
|
|
17322
|
+
chartMargin?.left,
|
|
17323
|
+
yAxisLabel,
|
|
17324
|
+
yTickFormatter,
|
|
17325
|
+
minLeftDataValue,
|
|
17326
|
+
niceMaxLeft
|
|
17327
|
+
]);
|
|
16954
17328
|
const HORIZONTAL_PADDING_CLASS = "px-24";
|
|
16955
17329
|
const teste = "pl-24 pr-4";
|
|
16956
17330
|
const effectiveChartWidth = typeof width === "number" ? width : measuredWidth ? Math.max(0, measuredWidth - 32) : computedWidth;
|
|
@@ -16992,20 +17366,52 @@ var Chart = ({
|
|
|
16992
17366
|
);
|
|
16993
17367
|
}
|
|
16994
17368
|
if (Array.isArray(data) && data.length === 0) {
|
|
16995
|
-
return /* @__PURE__ */
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17369
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
17370
|
+
/* @__PURE__ */ jsx(
|
|
17371
|
+
NoData_default,
|
|
17372
|
+
{
|
|
17373
|
+
title,
|
|
17374
|
+
paddingLeft: CONTAINER_PADDING_LEFT + finalChartLeftMargin,
|
|
17375
|
+
height
|
|
17376
|
+
}
|
|
17377
|
+
),
|
|
17378
|
+
/* @__PURE__ */ jsx("div", { style: { height: 0 }, children: /* @__PURE__ */ jsxs("svg", { width: effectiveChartWidth, height, children: [
|
|
17379
|
+
xAxisLabel && /* @__PURE__ */ jsx(
|
|
17380
|
+
"text",
|
|
17381
|
+
{
|
|
17382
|
+
x: effectiveChartWidth - 40,
|
|
17383
|
+
y: height - 10,
|
|
17384
|
+
fontSize: 12,
|
|
17385
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17386
|
+
fontWeight: 500,
|
|
17387
|
+
textAnchor: "end",
|
|
17388
|
+
children: xAxisLabel
|
|
17389
|
+
}
|
|
17390
|
+
),
|
|
17391
|
+
yAxisLabel && /* @__PURE__ */ jsx(
|
|
17392
|
+
"text",
|
|
17393
|
+
{
|
|
17394
|
+
x: 20,
|
|
17395
|
+
y: 40,
|
|
17396
|
+
fontSize: 12,
|
|
17397
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17398
|
+
fontWeight: 500,
|
|
17399
|
+
textAnchor: "start",
|
|
17400
|
+
transform: `rotate(-90 20 40)`,
|
|
17401
|
+
children: yAxisLabel
|
|
17402
|
+
}
|
|
17403
|
+
)
|
|
17404
|
+
] }) })
|
|
17405
|
+
] });
|
|
17003
17406
|
}
|
|
17004
17407
|
return /* @__PURE__ */ jsx(
|
|
17005
17408
|
"div",
|
|
17006
17409
|
{
|
|
17007
17410
|
ref: wrapperRef,
|
|
17008
|
-
className: cn(
|
|
17411
|
+
className: cn(
|
|
17412
|
+
"w-full overflow-hidden min-w-0 rounded-lg border-border",
|
|
17413
|
+
className
|
|
17414
|
+
),
|
|
17009
17415
|
children: /* @__PURE__ */ jsxs("div", { className: "rounded-lg bg-card relative w-full max-w-full min-w-0 py-1", children: [
|
|
17010
17416
|
title && /* @__PURE__ */ jsx(
|
|
17011
17417
|
"div",
|
|
@@ -17102,303 +17508,417 @@ var Chart = ({
|
|
|
17102
17508
|
)
|
|
17103
17509
|
}
|
|
17104
17510
|
),
|
|
17105
|
-
|
|
17106
|
-
|
|
17511
|
+
showLegend && horizontal && /* @__PURE__ */ jsx(
|
|
17512
|
+
HorizontalLegend_default,
|
|
17107
17513
|
{
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17514
|
+
allKeys,
|
|
17515
|
+
mapperConfig,
|
|
17516
|
+
finalColors,
|
|
17517
|
+
labelMap,
|
|
17518
|
+
legendUppercase,
|
|
17519
|
+
orderBy,
|
|
17520
|
+
maxPeriodLabel,
|
|
17521
|
+
minPeriodLabel,
|
|
17522
|
+
className: cn(HORIZONTAL_PADDING_CLASS)
|
|
17523
|
+
}
|
|
17524
|
+
),
|
|
17525
|
+
/* @__PURE__ */ jsx(
|
|
17526
|
+
"div",
|
|
17527
|
+
{
|
|
17528
|
+
className: cn(
|
|
17529
|
+
horizontal && "overflow-y-auto overflow-x-hidden px-6",
|
|
17530
|
+
horizontal && "scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent"
|
|
17531
|
+
),
|
|
17532
|
+
style: {
|
|
17533
|
+
maxHeight: horizontal ? height : void 0
|
|
17115
17534
|
},
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17535
|
+
children: /* @__PURE__ */ jsx(
|
|
17536
|
+
ResponsiveContainer,
|
|
17537
|
+
{
|
|
17538
|
+
width: "100%",
|
|
17539
|
+
height: horizontal ? Math.max(height, processedData.length * 50) : height,
|
|
17540
|
+
children: /* @__PURE__ */ jsxs(
|
|
17541
|
+
ComposedChart,
|
|
17123
17542
|
{
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
-
|
|
17543
|
+
data: processedData,
|
|
17544
|
+
height: horizontal ? Math.max(height, processedData.length * 50) : height,
|
|
17545
|
+
layout: horizontal ? "vertical" : "horizontal",
|
|
17546
|
+
margin: {
|
|
17547
|
+
top: 10,
|
|
17548
|
+
right: finalChartRightMargin,
|
|
17549
|
+
left: finalChartLeftMargin,
|
|
17550
|
+
bottom: 10
|
|
17551
|
+
},
|
|
17552
|
+
onClick: handleChartClick,
|
|
17129
17553
|
children: [
|
|
17130
|
-
/* @__PURE__ */ jsx("
|
|
17131
|
-
|
|
17132
|
-
|
|
17133
|
-
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
return String(value ?? "");
|
|
17159
|
-
},
|
|
17160
|
-
label: xAxisLabel ? {
|
|
17161
|
-
value: xAxisLabel,
|
|
17162
|
-
position: "insideBottomRight",
|
|
17163
|
-
offset: -5,
|
|
17164
|
-
style: {
|
|
17165
|
-
fontSize: 12,
|
|
17166
|
-
fill: "hsl(var(--muted-foreground))",
|
|
17167
|
-
fontWeight: 500
|
|
17168
|
-
}
|
|
17169
|
-
} : void 0
|
|
17170
|
-
}
|
|
17171
|
-
),
|
|
17172
|
-
/* @__PURE__ */ jsx(
|
|
17173
|
-
YAxis,
|
|
17174
|
-
{
|
|
17175
|
-
yAxisId: "left",
|
|
17176
|
-
width: yAxisTickWidth,
|
|
17177
|
-
stroke: "hsl(var(--muted-foreground))",
|
|
17178
|
-
fontSize: 12,
|
|
17179
|
-
tickLine: false,
|
|
17180
|
-
axisLine: false,
|
|
17181
|
-
tickFormatter: yTickFormatter,
|
|
17182
|
-
domain: [Math.min(minLeftDataValue, 0), niceMaxLeft],
|
|
17183
|
-
tickCount: 6,
|
|
17184
|
-
label: yAxisLabel ? {
|
|
17185
|
-
value: yAxisLabel,
|
|
17186
|
-
angle: -90,
|
|
17187
|
-
position: "left",
|
|
17188
|
-
dx: leftYAxisLabelDx,
|
|
17189
|
-
style: {
|
|
17190
|
-
fontSize: 12,
|
|
17191
|
-
fill: "hsl(var(--muted-foreground))",
|
|
17192
|
-
fontWeight: 500,
|
|
17193
|
-
textAnchor: "middle"
|
|
17194
|
-
}
|
|
17195
|
-
} : void 0
|
|
17196
|
-
}
|
|
17197
|
-
),
|
|
17198
|
-
minLeftDataValue < 0 && /* @__PURE__ */ jsx(
|
|
17199
|
-
ReferenceLine,
|
|
17200
|
-
{
|
|
17201
|
-
y: 0,
|
|
17202
|
-
yAxisId: "left",
|
|
17203
|
-
stroke: "hsl(var(--muted-foreground))",
|
|
17204
|
-
strokeWidth: 1,
|
|
17205
|
-
strokeDasharray: "4 4"
|
|
17206
|
-
}
|
|
17207
|
-
),
|
|
17208
|
-
rightKeys.length > 0 && (() => {
|
|
17209
|
-
const { rightAxisColor, rightTickFormatter } = fnConfigRightKeys(biaxialConfigNormalized, yTickFormatter, finalColors);
|
|
17210
|
-
return /* @__PURE__ */ jsx(
|
|
17211
|
-
YAxis,
|
|
17212
|
-
{
|
|
17213
|
-
yAxisId: "right",
|
|
17214
|
-
width: finalChartRightMargin,
|
|
17215
|
-
orientation: "right",
|
|
17216
|
-
stroke: "hsl(var(--muted-foreground))",
|
|
17217
|
-
fontSize: 12,
|
|
17218
|
-
tickLine: false,
|
|
17219
|
-
axisLine: false,
|
|
17220
|
-
tick: { fill: rightAxisColor },
|
|
17221
|
-
tickFormatter: rightTickFormatter,
|
|
17222
|
-
domain: [Math.min(minRightDataValue, 0), niceMaxRight],
|
|
17223
|
-
tickCount: 6,
|
|
17224
|
-
label: biaxialConfigNormalized?.label ? {
|
|
17225
|
-
value: biaxialConfigNormalized.label,
|
|
17226
|
-
angle: -90,
|
|
17227
|
-
position: "right",
|
|
17228
|
-
dx: rightYAxisLabelDx,
|
|
17229
|
-
style: {
|
|
17230
|
-
fontSize: 12,
|
|
17231
|
-
fill: "hsl(var(--muted-foreground))",
|
|
17232
|
-
fontWeight: 500,
|
|
17233
|
-
textAnchor: "middle"
|
|
17234
|
-
}
|
|
17235
|
-
} : void 0
|
|
17236
|
-
}
|
|
17237
|
-
);
|
|
17238
|
-
})(),
|
|
17239
|
-
showTooltip && /* @__PURE__ */ jsx(
|
|
17240
|
-
Tooltip,
|
|
17241
|
-
{
|
|
17242
|
-
content: showTooltipTotal ? /* @__PURE__ */ jsx(
|
|
17243
|
-
TooltipWithTotal_default,
|
|
17244
|
-
{
|
|
17245
|
-
finalColors,
|
|
17246
|
-
valueFormatter: finalValueFormatter,
|
|
17247
|
-
categoryFormatter,
|
|
17248
|
-
periodLabel
|
|
17249
|
-
}
|
|
17250
|
-
) : /* @__PURE__ */ jsx(
|
|
17251
|
-
TooltipSimple_default,
|
|
17252
|
-
{
|
|
17253
|
-
finalColors,
|
|
17254
|
-
valueFormatter: finalValueFormatter,
|
|
17255
|
-
categoryFormatter,
|
|
17256
|
-
periodLabel
|
|
17257
|
-
}
|
|
17258
|
-
),
|
|
17259
|
-
cursor: { fill: "hsl(var(--muted))", opacity: 0.1 }
|
|
17260
|
-
}
|
|
17261
|
-
),
|
|
17262
|
-
showLegend && /* @__PURE__ */ jsx(
|
|
17263
|
-
Legend,
|
|
17264
|
-
{
|
|
17265
|
-
iconSize: 12,
|
|
17266
|
-
formatter: (value) => {
|
|
17267
|
-
return /* @__PURE__ */ jsx("span", { className: "tracking-[0]", children: fnFormatterValueLegend(
|
|
17268
|
-
value,
|
|
17269
|
-
mapperConfig,
|
|
17270
|
-
labelMap,
|
|
17271
|
-
legendUppercase
|
|
17272
|
-
) });
|
|
17273
|
-
}
|
|
17274
|
-
}
|
|
17275
|
-
),
|
|
17276
|
-
seriesOrder.map((s) => {
|
|
17277
|
-
if (showOnlyHighlighted && !highlightedSeries.has(s.key))
|
|
17278
|
-
return null;
|
|
17279
|
-
const { label, color, key } = fnBuildConfigData(
|
|
17280
|
-
s,
|
|
17281
|
-
mapperConfig,
|
|
17282
|
-
labelMap,
|
|
17283
|
-
finalColors,
|
|
17284
|
-
rightKeys,
|
|
17285
|
-
biaxialConfigNormalized
|
|
17286
|
-
);
|
|
17287
|
-
if (s.type === "bar") {
|
|
17288
|
-
return /* @__PURE__ */ jsx(
|
|
17289
|
-
Bar,
|
|
17290
|
-
{
|
|
17291
|
-
dataKey: key,
|
|
17292
|
-
yAxisId: rightKeys.includes(key) ? "right" : "left",
|
|
17293
|
-
name: label,
|
|
17294
|
-
fill: color,
|
|
17295
|
-
radius: [4, 4, 0, 0],
|
|
17296
|
-
onClick: handleBarClick,
|
|
17297
|
-
className: "cursor-pointer",
|
|
17298
|
-
style: { opacity: getSeriesOpacity(key) },
|
|
17299
|
-
activeBar: /* @__PURE__ */ jsx(
|
|
17300
|
-
Rectangle,
|
|
17554
|
+
/* @__PURE__ */ jsx("defs", { children: seriesOrder.filter((s) => s.type === "area").map((s) => {
|
|
17555
|
+
const key = s.key;
|
|
17556
|
+
const color = finalColors[key];
|
|
17557
|
+
return /* @__PURE__ */ jsxs(
|
|
17558
|
+
"linearGradient",
|
|
17559
|
+
{
|
|
17560
|
+
id: `gradient-${key}`,
|
|
17561
|
+
x1: "0",
|
|
17562
|
+
y1: "0",
|
|
17563
|
+
x2: "0",
|
|
17564
|
+
y2: "0.8",
|
|
17565
|
+
children: [
|
|
17566
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: color, stopOpacity: 0.8 }),
|
|
17567
|
+
/* @__PURE__ */ jsx(
|
|
17568
|
+
"stop",
|
|
17569
|
+
{
|
|
17570
|
+
offset: "90%",
|
|
17571
|
+
stopColor: color,
|
|
17572
|
+
stopOpacity: 0.1
|
|
17573
|
+
}
|
|
17574
|
+
)
|
|
17575
|
+
]
|
|
17576
|
+
},
|
|
17577
|
+
`gradient-${key}`
|
|
17578
|
+
);
|
|
17579
|
+
}) }),
|
|
17580
|
+
showGrid && /* @__PURE__ */ jsx(
|
|
17581
|
+
CartesianGrid,
|
|
17301
17582
|
{
|
|
17302
|
-
|
|
17303
|
-
stroke:
|
|
17304
|
-
|
|
17305
|
-
opacity: 0.8
|
|
17583
|
+
strokeDasharray: "3 3",
|
|
17584
|
+
stroke: gridColor || "hsl(var(--muted-foreground))",
|
|
17585
|
+
opacity: 0.5
|
|
17306
17586
|
}
|
|
17307
17587
|
),
|
|
17308
|
-
|
|
17309
|
-
|
|
17588
|
+
horizontal ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17589
|
+
/* @__PURE__ */ jsx(
|
|
17590
|
+
XAxis,
|
|
17591
|
+
{
|
|
17592
|
+
type: "number",
|
|
17593
|
+
orientation: "top",
|
|
17594
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17595
|
+
fontSize: 12,
|
|
17596
|
+
tickLine: false,
|
|
17597
|
+
axisLine: false,
|
|
17598
|
+
tickFormatter: yTickFormatter,
|
|
17599
|
+
domain: [Math.min(minLeftDataValue, 0), niceMaxLeft],
|
|
17600
|
+
tickCount: 6,
|
|
17601
|
+
label: yAxisLabel ? {
|
|
17602
|
+
value: yAxisLabel,
|
|
17603
|
+
position: "insideTopRight",
|
|
17604
|
+
offset: -5,
|
|
17605
|
+
style: {
|
|
17606
|
+
fontSize: 12,
|
|
17607
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17608
|
+
fontWeight: 500
|
|
17609
|
+
}
|
|
17610
|
+
} : void 0
|
|
17611
|
+
}
|
|
17612
|
+
),
|
|
17613
|
+
/* @__PURE__ */ jsx(
|
|
17614
|
+
YAxis,
|
|
17615
|
+
{
|
|
17616
|
+
type: "category",
|
|
17617
|
+
dataKey: xAxisConfig.dataKey,
|
|
17618
|
+
yAxisId: "left",
|
|
17619
|
+
width: yAxisTickWidth,
|
|
17620
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17621
|
+
fontSize: 11,
|
|
17622
|
+
tickLine: false,
|
|
17623
|
+
axisLine: false,
|
|
17624
|
+
tick: /* @__PURE__ */ jsx(CustomYAxisTick_default, { width: yAxisTickWidth - 10 }),
|
|
17625
|
+
tickFormatter: (value) => {
|
|
17626
|
+
if (categoryFormatter)
|
|
17627
|
+
return categoryFormatter(value);
|
|
17628
|
+
if (xAxisConfig.valueFormatter)
|
|
17629
|
+
return xAxisConfig.valueFormatter(
|
|
17630
|
+
value
|
|
17631
|
+
);
|
|
17632
|
+
return String(value ?? "");
|
|
17633
|
+
},
|
|
17634
|
+
label: xAxisLabel ? {
|
|
17635
|
+
value: xAxisLabel,
|
|
17636
|
+
angle: -90,
|
|
17637
|
+
position: "insideTop",
|
|
17638
|
+
dx: leftYAxisLabelDx,
|
|
17639
|
+
style: {
|
|
17640
|
+
fontSize: 12,
|
|
17641
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17642
|
+
fontWeight: 500,
|
|
17643
|
+
textAnchor: "middle"
|
|
17644
|
+
}
|
|
17645
|
+
} : void 0
|
|
17646
|
+
}
|
|
17647
|
+
)
|
|
17648
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17649
|
+
/* @__PURE__ */ jsx(
|
|
17650
|
+
XAxis,
|
|
17651
|
+
{
|
|
17652
|
+
dataKey: xAxisConfig.dataKey,
|
|
17653
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17654
|
+
fontSize: 12,
|
|
17655
|
+
tickLine: false,
|
|
17656
|
+
axisLine: false,
|
|
17657
|
+
tickFormatter: (value) => {
|
|
17658
|
+
if (categoryFormatter)
|
|
17659
|
+
return categoryFormatter(value);
|
|
17660
|
+
if (xAxisConfig.valueFormatter)
|
|
17661
|
+
return xAxisConfig.valueFormatter(
|
|
17662
|
+
value
|
|
17663
|
+
);
|
|
17664
|
+
return String(value ?? "");
|
|
17665
|
+
},
|
|
17666
|
+
label: xAxisLabel ? {
|
|
17667
|
+
value: xAxisLabel,
|
|
17668
|
+
position: "insideBottomRight",
|
|
17669
|
+
offset: -5,
|
|
17670
|
+
style: {
|
|
17671
|
+
fontSize: 12,
|
|
17672
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17673
|
+
fontWeight: 500
|
|
17674
|
+
}
|
|
17675
|
+
} : void 0
|
|
17676
|
+
}
|
|
17677
|
+
),
|
|
17678
|
+
/* @__PURE__ */ jsx(
|
|
17679
|
+
YAxis,
|
|
17680
|
+
{
|
|
17681
|
+
yAxisId: "left",
|
|
17682
|
+
width: yAxisTickWidth,
|
|
17683
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17684
|
+
fontSize: 12,
|
|
17685
|
+
tickLine: false,
|
|
17686
|
+
axisLine: false,
|
|
17687
|
+
tickFormatter: yTickFormatter,
|
|
17688
|
+
domain: [Math.min(minLeftDataValue, 0), niceMaxLeft],
|
|
17689
|
+
tickCount: 6,
|
|
17690
|
+
label: yAxisLabel ? {
|
|
17691
|
+
value: yAxisLabel,
|
|
17692
|
+
angle: -90,
|
|
17693
|
+
position: "left",
|
|
17694
|
+
dx: leftYAxisLabelDx,
|
|
17695
|
+
style: {
|
|
17696
|
+
fontSize: 12,
|
|
17697
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17698
|
+
fontWeight: 500,
|
|
17699
|
+
textAnchor: "middle"
|
|
17700
|
+
}
|
|
17701
|
+
} : void 0
|
|
17702
|
+
}
|
|
17703
|
+
)
|
|
17704
|
+
] }),
|
|
17705
|
+
minLeftDataValue < 0 && /* @__PURE__ */ jsx(
|
|
17706
|
+
ReferenceLine,
|
|
17310
17707
|
{
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
color,
|
|
17317
|
-
finalValueFormatter
|
|
17318
|
-
);
|
|
17319
|
-
return inside(props);
|
|
17320
|
-
},
|
|
17321
|
-
offset: 0
|
|
17708
|
+
y: 0,
|
|
17709
|
+
yAxisId: "left",
|
|
17710
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17711
|
+
strokeWidth: 1,
|
|
17712
|
+
strokeDasharray: "4 4"
|
|
17322
17713
|
}
|
|
17323
|
-
)
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
|
|
17714
|
+
),
|
|
17715
|
+
rightKeys.length > 0 && (() => {
|
|
17716
|
+
const { rightAxisColor, rightTickFormatter } = fnConfigRightKeys(
|
|
17717
|
+
biaxialConfigNormalized,
|
|
17718
|
+
yTickFormatter,
|
|
17719
|
+
finalColors
|
|
17720
|
+
);
|
|
17721
|
+
return /* @__PURE__ */ jsx(
|
|
17722
|
+
YAxis,
|
|
17723
|
+
{
|
|
17724
|
+
yAxisId: "right",
|
|
17725
|
+
width: finalChartRightMargin,
|
|
17726
|
+
orientation: "right",
|
|
17727
|
+
stroke: "hsl(var(--muted-foreground))",
|
|
17728
|
+
fontSize: 12,
|
|
17729
|
+
tickLine: false,
|
|
17730
|
+
axisLine: false,
|
|
17731
|
+
tick: { fill: rightAxisColor },
|
|
17732
|
+
tickFormatter: rightTickFormatter,
|
|
17733
|
+
domain: [Math.min(minRightDataValue, 0), niceMaxRight],
|
|
17734
|
+
tickCount: 6,
|
|
17735
|
+
label: biaxialConfigNormalized?.label ? {
|
|
17736
|
+
value: biaxialConfigNormalized.label,
|
|
17737
|
+
angle: -90,
|
|
17738
|
+
position: "right",
|
|
17739
|
+
dx: rightYAxisLabelDx,
|
|
17740
|
+
style: {
|
|
17741
|
+
fontSize: 12,
|
|
17742
|
+
fill: "hsl(var(--muted-foreground))",
|
|
17743
|
+
fontWeight: 500,
|
|
17744
|
+
textAnchor: "middle"
|
|
17745
|
+
}
|
|
17746
|
+
} : void 0
|
|
17747
|
+
}
|
|
17748
|
+
);
|
|
17749
|
+
})(),
|
|
17750
|
+
showTooltip && /* @__PURE__ */ jsx(
|
|
17751
|
+
Tooltip,
|
|
17344
17752
|
{
|
|
17345
|
-
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17753
|
+
content: showTooltipTotal ? /* @__PURE__ */ jsx(
|
|
17754
|
+
TooltipWithTotal_default,
|
|
17755
|
+
{
|
|
17756
|
+
finalColors,
|
|
17757
|
+
valueFormatter: finalValueFormatter,
|
|
17758
|
+
categoryFormatter,
|
|
17759
|
+
periodLabel
|
|
17760
|
+
}
|
|
17761
|
+
) : /* @__PURE__ */ jsx(
|
|
17762
|
+
TooltipSimple_default,
|
|
17763
|
+
{
|
|
17764
|
+
finalColors,
|
|
17765
|
+
valueFormatter: finalValueFormatter,
|
|
17766
|
+
categoryFormatter,
|
|
17767
|
+
periodLabel
|
|
17768
|
+
}
|
|
17351
17769
|
),
|
|
17352
|
-
|
|
17770
|
+
cursor: { fill: "hsl(var(--muted))", opacity: 0.1 }
|
|
17353
17771
|
}
|
|
17354
|
-
)
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
);
|
|
17358
|
-
}
|
|
17359
|
-
if (s.type === "area") {
|
|
17360
|
-
return /* @__PURE__ */ jsx(
|
|
17361
|
-
Area,
|
|
17362
|
-
{
|
|
17363
|
-
type: "monotone",
|
|
17364
|
-
dataKey: key,
|
|
17365
|
-
yAxisId: rightKeys.includes(key) ? "right" : "left",
|
|
17366
|
-
name: label,
|
|
17367
|
-
stroke: color,
|
|
17368
|
-
fill: `url(#gradient-${key})`,
|
|
17369
|
-
fillOpacity: 1,
|
|
17370
|
-
strokeWidth: 2,
|
|
17371
|
-
onClick: handleSeriesClick,
|
|
17372
|
-
className: "cursor-pointer pointer-events-auto",
|
|
17373
|
-
style: { opacity: getSeriesOpacity(key) },
|
|
17374
|
-
activeDot: {
|
|
17375
|
-
r: 6,
|
|
17376
|
-
fill: color,
|
|
17377
|
-
stroke: "hsl(var(--background))",
|
|
17378
|
-
strokeWidth: 2
|
|
17379
|
-
},
|
|
17380
|
-
children: showLabels && labelsVisibility.area !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsx(
|
|
17381
|
-
LabelList,
|
|
17772
|
+
),
|
|
17773
|
+
showLegend && !horizontal && /* @__PURE__ */ jsx(
|
|
17774
|
+
Legend,
|
|
17382
17775
|
{
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17776
|
+
iconSize: 12,
|
|
17777
|
+
formatter: (value) => {
|
|
17778
|
+
return /* @__PURE__ */ jsx("span", { className: "tracking-[0] rounded-sm", children: fnFormatterValueLegend(
|
|
17779
|
+
value,
|
|
17780
|
+
mapperConfig,
|
|
17781
|
+
labelMap,
|
|
17782
|
+
legendUppercase
|
|
17783
|
+
) });
|
|
17784
|
+
}
|
|
17391
17785
|
}
|
|
17392
|
-
)
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17786
|
+
),
|
|
17787
|
+
seriesOrder.map((s) => {
|
|
17788
|
+
if (showOnlyHighlighted && !highlightedSeries.has(s.key))
|
|
17789
|
+
return null;
|
|
17790
|
+
const { label, color, key } = fnBuildConfigData(
|
|
17791
|
+
s,
|
|
17792
|
+
mapperConfig,
|
|
17793
|
+
labelMap,
|
|
17794
|
+
finalColors,
|
|
17795
|
+
rightKeys,
|
|
17796
|
+
biaxialConfigNormalized
|
|
17797
|
+
);
|
|
17798
|
+
if (s.type === "bar") {
|
|
17799
|
+
return /* @__PURE__ */ jsx(
|
|
17800
|
+
Bar,
|
|
17801
|
+
{
|
|
17802
|
+
dataKey: key,
|
|
17803
|
+
yAxisId: rightKeys.includes(key) ? "right" : "left",
|
|
17804
|
+
name: label,
|
|
17805
|
+
fill: color,
|
|
17806
|
+
radius: horizontal ? [0, 4, 4, 0] : [4, 4, 0, 0],
|
|
17807
|
+
onClick: handleBarClick,
|
|
17808
|
+
className: "cursor-pointer",
|
|
17809
|
+
style: { opacity: getSeriesOpacity(key) },
|
|
17810
|
+
activeBar: /* @__PURE__ */ jsx(
|
|
17811
|
+
Rectangle,
|
|
17812
|
+
{
|
|
17813
|
+
fill: color,
|
|
17814
|
+
stroke: color,
|
|
17815
|
+
strokeWidth: 2,
|
|
17816
|
+
opacity: 0.8
|
|
17817
|
+
}
|
|
17818
|
+
),
|
|
17819
|
+
children: showLabels && labelsVisibility.bar !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsx(
|
|
17820
|
+
LabelList,
|
|
17821
|
+
{
|
|
17822
|
+
dataKey: key,
|
|
17823
|
+
content: (props) => {
|
|
17824
|
+
if (!fnContentLabelList(props)) return null;
|
|
17825
|
+
const inside = renderInsideBarLabel(
|
|
17826
|
+
color,
|
|
17827
|
+
finalValueFormatter
|
|
17828
|
+
);
|
|
17829
|
+
return inside(props);
|
|
17830
|
+
},
|
|
17831
|
+
offset: 0
|
|
17832
|
+
}
|
|
17833
|
+
) : null
|
|
17834
|
+
},
|
|
17835
|
+
`bar-${key}`
|
|
17836
|
+
);
|
|
17837
|
+
}
|
|
17838
|
+
if (s.type === "line") {
|
|
17839
|
+
const lineFormatter = (props) => {
|
|
17840
|
+
const numValue = typeof props.value === "number" ? props.value : typeof props.value === "string" ? parseFloat(props.value) : 0;
|
|
17841
|
+
const percentage = calcDivision(numValue, 100);
|
|
17842
|
+
const formattedPercentage = typeof percentage === "number" ? percentage.toFixed(1).replace(".", ",") : String(percentage).replace(".", ",");
|
|
17843
|
+
return `${formattedPercentage}%`;
|
|
17844
|
+
};
|
|
17845
|
+
return /* @__PURE__ */ jsx(
|
|
17846
|
+
Line,
|
|
17847
|
+
{
|
|
17848
|
+
dataKey: key,
|
|
17849
|
+
yAxisId: rightKeys.includes(key) ? "right" : "left",
|
|
17850
|
+
name: label,
|
|
17851
|
+
stroke: color,
|
|
17852
|
+
strokeWidth: 2,
|
|
17853
|
+
dot: { r: 3 },
|
|
17854
|
+
activeDot: { r: 6 },
|
|
17855
|
+
onClick: handleSeriesClick,
|
|
17856
|
+
className: "cursor-pointer pointer-events-auto",
|
|
17857
|
+
style: { opacity: getSeriesOpacity(key) },
|
|
17858
|
+
children: showLabels && labelsVisibility.line !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsx(
|
|
17859
|
+
LabelList,
|
|
17860
|
+
{
|
|
17861
|
+
dataKey: key,
|
|
17862
|
+
position: "top",
|
|
17863
|
+
content: pillLabelRenderer_default(
|
|
17864
|
+
color,
|
|
17865
|
+
"filled",
|
|
17866
|
+
lineFormatter
|
|
17867
|
+
),
|
|
17868
|
+
offset: 14
|
|
17869
|
+
}
|
|
17870
|
+
) : null
|
|
17871
|
+
},
|
|
17872
|
+
`line-${key}`
|
|
17873
|
+
);
|
|
17874
|
+
}
|
|
17875
|
+
if (s.type === "area") {
|
|
17876
|
+
return /* @__PURE__ */ jsx(
|
|
17877
|
+
Area,
|
|
17878
|
+
{
|
|
17879
|
+
type: "monotone",
|
|
17880
|
+
dataKey: key,
|
|
17881
|
+
yAxisId: rightKeys.includes(key) ? "right" : "left",
|
|
17882
|
+
name: label,
|
|
17883
|
+
stroke: color,
|
|
17884
|
+
fill: `url(#gradient-${key})`,
|
|
17885
|
+
fillOpacity: 1,
|
|
17886
|
+
strokeWidth: 2,
|
|
17887
|
+
onClick: handleSeriesClick,
|
|
17888
|
+
className: "cursor-pointer pointer-events-auto",
|
|
17889
|
+
style: { opacity: getSeriesOpacity(key) },
|
|
17890
|
+
activeDot: {
|
|
17891
|
+
r: 6,
|
|
17892
|
+
fill: color,
|
|
17893
|
+
stroke: "hsl(var(--background))",
|
|
17894
|
+
strokeWidth: 2
|
|
17895
|
+
},
|
|
17896
|
+
children: showLabels && labelsVisibility.area !== false && highlightedSeries.size === 0 || highlightedSeries.has(key) ? /* @__PURE__ */ jsx(
|
|
17897
|
+
LabelList,
|
|
17898
|
+
{
|
|
17899
|
+
dataKey: key,
|
|
17900
|
+
position: "top",
|
|
17901
|
+
content: pillLabelRenderer_default(
|
|
17902
|
+
color,
|
|
17903
|
+
"soft",
|
|
17904
|
+
finalValueFormatter
|
|
17905
|
+
),
|
|
17906
|
+
offset: 12
|
|
17907
|
+
}
|
|
17908
|
+
) : null
|
|
17909
|
+
},
|
|
17910
|
+
`area-${key}`
|
|
17911
|
+
);
|
|
17912
|
+
}
|
|
17913
|
+
return null;
|
|
17914
|
+
})
|
|
17915
|
+
]
|
|
17916
|
+
}
|
|
17917
|
+
)
|
|
17918
|
+
}
|
|
17919
|
+
)
|
|
17400
17920
|
}
|
|
17401
|
-
)
|
|
17921
|
+
),
|
|
17402
17922
|
enableDraggableTooltips && activeTooltips.map((tooltip) => /* @__PURE__ */ jsx(
|
|
17403
17923
|
DraggableTooltip_default,
|
|
17404
17924
|
{
|
|
@@ -17823,4 +18343,4 @@ function Leaderboard({
|
|
|
17823
18343
|
);
|
|
17824
18344
|
}
|
|
17825
18345
|
|
|
17826
|
-
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, 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, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, visualForItem };
|
|
18346
|
+
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 };
|