@mlw-packages/react-components 1.9.6 → 1.9.8
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 +199 -17
- package/dist/index.d.mts +244 -140
- package/dist/index.d.ts +244 -140
- package/dist/index.js +714 -581
- package/dist/index.mjs +708 -583
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -483,6 +483,7 @@ declare const CommandListBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
483
483
|
label?: string;
|
|
484
484
|
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
485
485
|
testid?: string;
|
|
486
|
+
onEndReached?: () => void;
|
|
486
487
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
487
488
|
declare const CommandEmptyBase: React$1.ForwardRefExoticComponent<Omit<{
|
|
488
489
|
children?: React$1.ReactNode;
|
|
@@ -762,7 +763,7 @@ interface DebouncedInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEl
|
|
|
762
763
|
showLoadingIndicator?: boolean;
|
|
763
764
|
error?: string | undefined;
|
|
764
765
|
}
|
|
765
|
-
declare
|
|
766
|
+
declare const DebouncedInput: React$1.ForwardRefExoticComponent<DebouncedInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
766
767
|
|
|
767
768
|
interface TreeNode {
|
|
768
769
|
id: string;
|
|
@@ -1574,106 +1575,6 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
|
|
|
1574
1575
|
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1575
1576
|
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, hideClear, empty, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1576
1577
|
|
|
1577
|
-
type Primitive = string | number | boolean | null | undefined;
|
|
1578
|
-
interface ChartData$4 {
|
|
1579
|
-
[key: string]: Primitive;
|
|
1580
|
-
name?: string;
|
|
1581
|
-
}
|
|
1582
|
-
interface XAxisConfig$1 {
|
|
1583
|
-
dataKey: string;
|
|
1584
|
-
label?: string;
|
|
1585
|
-
valueFormatter?: (value: string | number) => string;
|
|
1586
|
-
autoLabel?: boolean;
|
|
1587
|
-
}
|
|
1588
|
-
type ValueFormatter = (value: string | number) => string | number;
|
|
1589
|
-
type FinalValueFormatter = (value: number | string | null | undefined) => string;
|
|
1590
|
-
type SeriesProp$1 = {
|
|
1591
|
-
bar?: string[];
|
|
1592
|
-
line?: string[];
|
|
1593
|
-
area?: string[];
|
|
1594
|
-
};
|
|
1595
|
-
type SeriesEntry = {
|
|
1596
|
-
type: "bar" | "line" | "area";
|
|
1597
|
-
key: string;
|
|
1598
|
-
};
|
|
1599
|
-
type SeriesCounts = {
|
|
1600
|
-
bar: number;
|
|
1601
|
-
line: number;
|
|
1602
|
-
area: number;
|
|
1603
|
-
};
|
|
1604
|
-
type YAxisSide = "left" | "right";
|
|
1605
|
-
type YAxisMap = Record<string, YAxisSide>;
|
|
1606
|
-
interface MapperConfigEntry {
|
|
1607
|
-
label?: string;
|
|
1608
|
-
valueFormatter?: ValueFormatter;
|
|
1609
|
-
color?: string;
|
|
1610
|
-
type?: "number" | "string" | "auto";
|
|
1611
|
-
visible?: boolean;
|
|
1612
|
-
}
|
|
1613
|
-
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
1614
|
-
interface YAxisOptions {
|
|
1615
|
-
label?: string;
|
|
1616
|
-
stroke?: string;
|
|
1617
|
-
width?: number;
|
|
1618
|
-
percent?: boolean;
|
|
1619
|
-
percentDecimals?: number;
|
|
1620
|
-
}
|
|
1621
|
-
type YAxes = Partial<{
|
|
1622
|
-
left: YAxisOptions;
|
|
1623
|
-
right: YAxisOptions;
|
|
1624
|
-
}>;
|
|
1625
|
-
interface TooltipItem$2 {
|
|
1626
|
-
id: string;
|
|
1627
|
-
data: ChartData$4;
|
|
1628
|
-
position: {
|
|
1629
|
-
top: number;
|
|
1630
|
-
left: number;
|
|
1631
|
-
};
|
|
1632
|
-
}
|
|
1633
|
-
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
1634
|
-
name: string;
|
|
1635
|
-
};
|
|
1636
|
-
interface TimeSeriesConfig {
|
|
1637
|
-
start?: number;
|
|
1638
|
-
end?: number;
|
|
1639
|
-
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1640
|
-
height?: number;
|
|
1641
|
-
brushColor?: string;
|
|
1642
|
-
brushStroke?: string;
|
|
1643
|
-
miniChartOpacity?: number;
|
|
1644
|
-
chartHeight?: number;
|
|
1645
|
-
}
|
|
1646
|
-
interface ChartHooksArgs {
|
|
1647
|
-
width?: number | string;
|
|
1648
|
-
measuredWidth?: number | null;
|
|
1649
|
-
points?: number;
|
|
1650
|
-
seriesCounts?: SeriesCounts;
|
|
1651
|
-
niceMax?: number;
|
|
1652
|
-
yAxes?: YAxes;
|
|
1653
|
-
yAxisLabel?: string;
|
|
1654
|
-
chartMargin?: Partial<{
|
|
1655
|
-
top: number;
|
|
1656
|
-
right: number;
|
|
1657
|
-
left: number;
|
|
1658
|
-
bottom: number;
|
|
1659
|
-
}>;
|
|
1660
|
-
showLabels?: boolean;
|
|
1661
|
-
timeSeries?: boolean | TimeSeriesConfig;
|
|
1662
|
-
timeSeriesLegend?: string;
|
|
1663
|
-
customLegend?: boolean;
|
|
1664
|
-
}
|
|
1665
|
-
interface LegendItem {
|
|
1666
|
-
label: string;
|
|
1667
|
-
value: string | number;
|
|
1668
|
-
color?: string;
|
|
1669
|
-
trend?: {
|
|
1670
|
-
value?: number;
|
|
1671
|
-
label?: string;
|
|
1672
|
-
positive?: boolean;
|
|
1673
|
-
neutral?: boolean;
|
|
1674
|
-
};
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
1578
|
declare const formatFieldName: (fieldName: string) => string;
|
|
1678
1579
|
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
1679
1580
|
declare const detectXAxis: (data: Record<string, unknown>[]) => string;
|
|
@@ -1729,14 +1630,19 @@ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?
|
|
|
1729
1630
|
|
|
1730
1631
|
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1731
1632
|
|
|
1633
|
+
declare function formatLinePercentage(value: number | string | undefined): string;
|
|
1634
|
+
|
|
1732
1635
|
interface ChartData$3 {
|
|
1733
1636
|
[key: string]: string | number | boolean | null | undefined;
|
|
1734
1637
|
}
|
|
1735
|
-
interface
|
|
1736
|
-
dataKey: string
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1638
|
+
interface DataMapper {
|
|
1639
|
+
[dataKey: string]: {
|
|
1640
|
+
label?: string;
|
|
1641
|
+
valueFormatter?: (value: string | number) => string | number;
|
|
1642
|
+
color?: string;
|
|
1643
|
+
type?: "number" | "string" | "auto";
|
|
1644
|
+
visible?: boolean;
|
|
1645
|
+
};
|
|
1740
1646
|
}
|
|
1741
1647
|
interface BiaxialConfig {
|
|
1742
1648
|
key: string[];
|
|
@@ -1803,6 +1709,18 @@ interface SeriesConfig {
|
|
|
1803
1709
|
line?: string[];
|
|
1804
1710
|
area?: string[];
|
|
1805
1711
|
}
|
|
1712
|
+
type SeriesOrder = {
|
|
1713
|
+
type: "bar" | "line" | "area";
|
|
1714
|
+
key: string;
|
|
1715
|
+
};
|
|
1716
|
+
type PropsLabelList = {
|
|
1717
|
+
height?: number | string;
|
|
1718
|
+
width?: number | string;
|
|
1719
|
+
x?: number | string;
|
|
1720
|
+
y?: number | string;
|
|
1721
|
+
value?: number | string;
|
|
1722
|
+
payload?: Record<string, unknown>;
|
|
1723
|
+
};
|
|
1806
1724
|
type ValueFormatterType = (props: {
|
|
1807
1725
|
value: number | string | undefined;
|
|
1808
1726
|
formattedValue: string;
|
|
@@ -1820,31 +1738,107 @@ type Margins = Partial<{
|
|
|
1820
1738
|
left: number;
|
|
1821
1739
|
bottom: number;
|
|
1822
1740
|
}>;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
value: number;
|
|
1831
|
-
[key: string]: string | number;
|
|
1741
|
+
type LabelListContent = (props: unknown) => React.ReactNode;
|
|
1742
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
1743
|
+
interface XAxisConfig {
|
|
1744
|
+
dataKey: string;
|
|
1745
|
+
label?: string;
|
|
1746
|
+
valueFormatter?: (value: string | number) => string;
|
|
1747
|
+
autoLabel?: boolean;
|
|
1832
1748
|
}
|
|
1833
|
-
interface
|
|
1834
|
-
|
|
1835
|
-
|
|
1749
|
+
interface XAxisConfig {
|
|
1750
|
+
dataKey: string;
|
|
1751
|
+
label?: string;
|
|
1752
|
+
valueFormatter?: (value: string | number) => string;
|
|
1753
|
+
autoLabel?: boolean;
|
|
1754
|
+
}
|
|
1755
|
+
type ValueFormatter = (value: string | number) => string | number;
|
|
1756
|
+
type FinalValueFormatter = (value: number | string | null | undefined) => string;
|
|
1757
|
+
type SeriesEntry = {
|
|
1758
|
+
type: "bar" | "line" | "area";
|
|
1759
|
+
key: string;
|
|
1760
|
+
};
|
|
1761
|
+
type SeriesCounts = {
|
|
1762
|
+
bar: number;
|
|
1763
|
+
line: number;
|
|
1764
|
+
area: number;
|
|
1765
|
+
};
|
|
1766
|
+
type YAxisSide = "left" | "right";
|
|
1767
|
+
type YAxisMap = Record<string, YAxisSide>;
|
|
1768
|
+
interface MapperConfigEntry {
|
|
1769
|
+
label?: string;
|
|
1770
|
+
valueFormatter?: ValueFormatter;
|
|
1771
|
+
color?: string;
|
|
1772
|
+
type?: "number" | "string" | "auto";
|
|
1773
|
+
visible?: boolean;
|
|
1774
|
+
}
|
|
1775
|
+
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
1776
|
+
interface YAxisOptions {
|
|
1777
|
+
label?: string;
|
|
1778
|
+
stroke?: string;
|
|
1779
|
+
width?: number;
|
|
1780
|
+
percent?: boolean;
|
|
1781
|
+
percentDecimals?: number;
|
|
1782
|
+
}
|
|
1783
|
+
type YAxes = Partial<{
|
|
1784
|
+
left: YAxisOptions;
|
|
1785
|
+
right: YAxisOptions;
|
|
1786
|
+
}>;
|
|
1787
|
+
interface TooltipItem$2 {
|
|
1788
|
+
id: string;
|
|
1789
|
+
data: ChartData$3;
|
|
1790
|
+
position: {
|
|
1791
|
+
top: number;
|
|
1792
|
+
left: number;
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
1796
|
+
name: string;
|
|
1797
|
+
};
|
|
1798
|
+
interface TimeSeriesConfig {
|
|
1799
|
+
start?: number;
|
|
1800
|
+
end?: number;
|
|
1801
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1836
1802
|
height?: number;
|
|
1803
|
+
brushColor?: string;
|
|
1804
|
+
brushStroke?: string;
|
|
1805
|
+
miniChartOpacity?: number;
|
|
1806
|
+
chartHeight?: number;
|
|
1807
|
+
}
|
|
1808
|
+
interface ChartHooksArgs {
|
|
1837
1809
|
width?: number | string;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1810
|
+
measuredWidth?: number | null;
|
|
1811
|
+
points?: number;
|
|
1812
|
+
seriesCounts?: SeriesCounts;
|
|
1813
|
+
niceMax?: number;
|
|
1814
|
+
yAxes?: YAxes;
|
|
1815
|
+
yAxisLabel?: string;
|
|
1816
|
+
chartMargin?: Partial<{
|
|
1817
|
+
top: number;
|
|
1818
|
+
right: number;
|
|
1819
|
+
left: number;
|
|
1820
|
+
bottom: number;
|
|
1821
|
+
}>;
|
|
1841
1822
|
showLabels?: boolean;
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1823
|
+
timeSeries?: boolean | TimeSeriesConfig;
|
|
1824
|
+
timeSeriesLegend?: string;
|
|
1825
|
+
customLegend?: boolean;
|
|
1826
|
+
}
|
|
1827
|
+
interface LegendItem {
|
|
1828
|
+
label: string;
|
|
1829
|
+
value: string | number;
|
|
1830
|
+
color?: string;
|
|
1831
|
+
trend?: {
|
|
1832
|
+
value?: number;
|
|
1833
|
+
label?: string;
|
|
1834
|
+
positive?: boolean;
|
|
1835
|
+
neutral?: boolean;
|
|
1836
|
+
};
|
|
1846
1837
|
}
|
|
1847
|
-
|
|
1838
|
+
|
|
1839
|
+
declare const Chart: React__default.FC<ChartProps>;
|
|
1840
|
+
|
|
1841
|
+
declare const HorizontalChart: React__default.FC<ChartProps>;
|
|
1848
1842
|
|
|
1849
1843
|
interface TimeSeriesData {
|
|
1850
1844
|
[key: string]: string | number | boolean | null | undefined;
|
|
@@ -1866,25 +1860,23 @@ interface TimeSeriesProps extends Omit<React__default.ComponentProps<typeof Char
|
|
|
1866
1860
|
}
|
|
1867
1861
|
declare const TimeSeries: React__default.FC<TimeSeriesProps>;
|
|
1868
1862
|
|
|
1869
|
-
interface Props$
|
|
1870
|
-
processedData:
|
|
1871
|
-
name: string;
|
|
1872
|
-
}>;
|
|
1863
|
+
interface Props$6 {
|
|
1864
|
+
processedData: ChartData$3[];
|
|
1873
1865
|
onOpenPeriod: (periodName: string) => void;
|
|
1874
1866
|
rightOffset?: number;
|
|
1875
1867
|
topOffset?: number;
|
|
1876
1868
|
activePeriod?: string;
|
|
1877
1869
|
activePeriods?: string[];
|
|
1878
1870
|
}
|
|
1879
|
-
declare function PeriodsDropdown({ processedData, onOpenPeriod, rightOffset, topOffset, activePeriod, activePeriods, }: Props$
|
|
1871
|
+
declare function PeriodsDropdown({ processedData, onOpenPeriod, rightOffset, topOffset, activePeriod, activePeriods, }: Props$6): react_jsx_runtime.JSX.Element;
|
|
1880
1872
|
|
|
1881
|
-
interface Props$
|
|
1873
|
+
interface Props$5 {
|
|
1882
1874
|
showOnlyHighlighted: boolean;
|
|
1883
1875
|
setShowOnlyHighlighted: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
1884
1876
|
highlightedSeriesSize: number;
|
|
1885
1877
|
clearHighlights: () => void;
|
|
1886
1878
|
}
|
|
1887
|
-
declare const ShowOnly: React__default.FC<Props$
|
|
1879
|
+
declare const ShowOnly: React__default.FC<Props$5>;
|
|
1888
1880
|
|
|
1889
1881
|
interface MapperEntry {
|
|
1890
1882
|
label?: string;
|
|
@@ -1893,7 +1885,7 @@ interface MapperEntry {
|
|
|
1893
1885
|
type?: string;
|
|
1894
1886
|
visible?: boolean;
|
|
1895
1887
|
}
|
|
1896
|
-
interface Props$
|
|
1888
|
+
interface Props$4 {
|
|
1897
1889
|
allKeys: string[];
|
|
1898
1890
|
mapperConfig: Record<string, MapperEntry>;
|
|
1899
1891
|
finalColors: Record<string, string>;
|
|
@@ -1901,7 +1893,7 @@ interface Props$2 {
|
|
|
1901
1893
|
toggleHighlight: (key: string) => void;
|
|
1902
1894
|
containerWidth?: number;
|
|
1903
1895
|
}
|
|
1904
|
-
declare const Highlights: React__default.FC<Props$
|
|
1896
|
+
declare const Highlights: React__default.FC<Props$4>;
|
|
1905
1897
|
|
|
1906
1898
|
interface CloseAllButtonProps {
|
|
1907
1899
|
count: number;
|
|
@@ -1951,7 +1943,7 @@ type TooltipPayloadItem$1 = {
|
|
|
1951
1943
|
name: string;
|
|
1952
1944
|
color?: string;
|
|
1953
1945
|
};
|
|
1954
|
-
interface Props$
|
|
1946
|
+
interface Props$3 {
|
|
1955
1947
|
active?: boolean;
|
|
1956
1948
|
payload?: TooltipPayloadItem$1[];
|
|
1957
1949
|
label?: string;
|
|
@@ -1963,7 +1955,7 @@ interface Props$1 {
|
|
|
1963
1955
|
yAxisMap?: Record<string, "left" | "right">;
|
|
1964
1956
|
isBiaxial?: boolean;
|
|
1965
1957
|
}
|
|
1966
|
-
declare const RechartTooltipWithTotal: React__default.FC<Props$
|
|
1958
|
+
declare const RechartTooltipWithTotal: React__default.FC<Props$3>;
|
|
1967
1959
|
|
|
1968
1960
|
type TooltipPayloadItem = {
|
|
1969
1961
|
dataKey: string;
|
|
@@ -1971,7 +1963,7 @@ type TooltipPayloadItem = {
|
|
|
1971
1963
|
name: string;
|
|
1972
1964
|
color?: string;
|
|
1973
1965
|
};
|
|
1974
|
-
interface Props {
|
|
1966
|
+
interface Props$2 {
|
|
1975
1967
|
active?: boolean;
|
|
1976
1968
|
payload?: TooltipPayloadItem[];
|
|
1977
1969
|
label?: string;
|
|
@@ -1982,8 +1974,16 @@ interface Props {
|
|
|
1982
1974
|
yAxisMap?: Record<string, "left" | "right">;
|
|
1983
1975
|
isBiaxial?: boolean;
|
|
1984
1976
|
}
|
|
1985
|
-
declare const TooltipSimple: React__default.FC<Props>;
|
|
1977
|
+
declare const TooltipSimple: React__default.FC<Props$2>;
|
|
1986
1978
|
|
|
1979
|
+
interface Neo4jNode {
|
|
1980
|
+
identity: number;
|
|
1981
|
+
labels: string[];
|
|
1982
|
+
properties: {
|
|
1983
|
+
nome: string;
|
|
1984
|
+
};
|
|
1985
|
+
elementId: string;
|
|
1986
|
+
}
|
|
1987
1987
|
interface IntegrationProperties {
|
|
1988
1988
|
tipo?: string;
|
|
1989
1989
|
Tipo?: string;
|
|
@@ -1996,6 +1996,21 @@ interface IntegrationProperties {
|
|
|
1996
1996
|
Sustentacao?: string;
|
|
1997
1997
|
Origem?: string;
|
|
1998
1998
|
}
|
|
1999
|
+
interface Neo4jRelationship {
|
|
2000
|
+
identity: number;
|
|
2001
|
+
start: number;
|
|
2002
|
+
end: number;
|
|
2003
|
+
type: string;
|
|
2004
|
+
properties: IntegrationProperties;
|
|
2005
|
+
elementId: string;
|
|
2006
|
+
startNodeElementId: string;
|
|
2007
|
+
endNodeElementId: string;
|
|
2008
|
+
}
|
|
2009
|
+
interface Neo4jIntegration {
|
|
2010
|
+
origem: Neo4jNode;
|
|
2011
|
+
r: Neo4jRelationship;
|
|
2012
|
+
destino: Neo4jNode;
|
|
2013
|
+
}
|
|
1999
2014
|
interface Connection {
|
|
2000
2015
|
id: string;
|
|
2001
2016
|
name: string;
|
|
@@ -2008,6 +2023,7 @@ interface SystemData {
|
|
|
2008
2023
|
description?: string;
|
|
2009
2024
|
connections: Connection[];
|
|
2010
2025
|
}
|
|
2026
|
+
declare function processNeo4jData(integrations: Neo4jIntegration[], targetSystemName: string): SystemData;
|
|
2011
2027
|
|
|
2012
2028
|
interface Position$1 {
|
|
2013
2029
|
top: number;
|
|
@@ -2073,6 +2089,44 @@ interface HorizontalLegendProps {
|
|
|
2073
2089
|
}
|
|
2074
2090
|
declare const HorizontalLegend: React__default.FC<HorizontalLegendProps>;
|
|
2075
2091
|
|
|
2092
|
+
type Props$1 = {
|
|
2093
|
+
allKeys: string[];
|
|
2094
|
+
mapperConfig: MapperConfig;
|
|
2095
|
+
finalColors: Record<string, string>;
|
|
2096
|
+
highlightedSeries: Set<string>;
|
|
2097
|
+
toggleHighlight: (k: string) => void;
|
|
2098
|
+
showOnlyHighlighted: boolean;
|
|
2099
|
+
setShowOnlyHighlighted: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
2100
|
+
highlightedSeriesSize: number;
|
|
2101
|
+
clearHighlights: () => void;
|
|
2102
|
+
enableHighlights?: boolean;
|
|
2103
|
+
enableShowOnly?: boolean;
|
|
2104
|
+
enablePeriodsDropdown?: boolean;
|
|
2105
|
+
enableDraggableTooltips?: boolean;
|
|
2106
|
+
processedData?: ChartData$3[];
|
|
2107
|
+
onOpenPeriod?: (p: string) => void;
|
|
2108
|
+
rightOffset?: number;
|
|
2109
|
+
activePeriods?: string[];
|
|
2110
|
+
containerClass?: string;
|
|
2111
|
+
containerWidth?: number;
|
|
2112
|
+
};
|
|
2113
|
+
declare function ChartControls({ allKeys, mapperConfig, finalColors, highlightedSeries, toggleHighlight, showOnlyHighlighted, setShowOnlyHighlighted, highlightedSeriesSize, clearHighlights, enableHighlights, enableShowOnly, enablePeriodsDropdown, enableDraggableTooltips, processedData, onOpenPeriod, rightOffset, activePeriods, containerClass, containerWidth, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
2114
|
+
|
|
2115
|
+
type Props = {
|
|
2116
|
+
title?: React__default.ReactNode;
|
|
2117
|
+
titlePosition?: string;
|
|
2118
|
+
HORIZONTAL_PADDING_CLASS?: string;
|
|
2119
|
+
customLegend?: boolean;
|
|
2120
|
+
data: ChartData$3[];
|
|
2121
|
+
allKeys: string[];
|
|
2122
|
+
processedData: ChartData$3[];
|
|
2123
|
+
finalColors: Record<string, string>;
|
|
2124
|
+
mapperConfig: MapperConfig;
|
|
2125
|
+
finalValueFormatter?: ValueFormatterType;
|
|
2126
|
+
formatBR?: boolean;
|
|
2127
|
+
};
|
|
2128
|
+
declare function ChartHeader({ title, titlePosition, HORIZONTAL_PADDING_CLASS, customLegend, data, allKeys, processedData, finalColors, mapperConfig, finalValueFormatter, formatBR, }: Props): react_jsx_runtime.JSX.Element;
|
|
2129
|
+
|
|
2076
2130
|
interface UseChartHighlightsReturn {
|
|
2077
2131
|
highlightedSeries: Set<string>;
|
|
2078
2132
|
showOnlyHighlighted: boolean;
|
|
@@ -2167,6 +2221,56 @@ interface ChartMinMaxResult {
|
|
|
2167
2221
|
}
|
|
2168
2222
|
declare const useChartMinMax: ({ processedData, orderBy, xAxisDataKey, categoryFormatter, }: UseChartMinMaxProps) => ChartMinMaxResult;
|
|
2169
2223
|
|
|
2224
|
+
type Params$2 = {
|
|
2225
|
+
data: ChartData$3[];
|
|
2226
|
+
xAxisKey: string;
|
|
2227
|
+
timeSeriesConfig?: boolean | TimeSeriesConfig;
|
|
2228
|
+
startIndex: number;
|
|
2229
|
+
endIndex: number;
|
|
2230
|
+
};
|
|
2231
|
+
declare function useProcessedData({ data, xAxisKey, timeSeriesConfig, startIndex, endIndex, }: Params$2): {
|
|
2232
|
+
name: string;
|
|
2233
|
+
}[];
|
|
2234
|
+
|
|
2235
|
+
declare function useBiaxial(biaxial?: BiaxialConfig | string | string[], yAxisLabel?: string): BiaxialConfig | null;
|
|
2236
|
+
|
|
2237
|
+
type Params$1 = {
|
|
2238
|
+
chartMargin?: {
|
|
2239
|
+
left?: number;
|
|
2240
|
+
right?: number;
|
|
2241
|
+
};
|
|
2242
|
+
yAxisLabel?: string | number;
|
|
2243
|
+
AXIS_LABEL_MARGIN: number;
|
|
2244
|
+
yTickFormatter: (v: number | string) => string;
|
|
2245
|
+
minLeftDataValue: number;
|
|
2246
|
+
niceMaxLeft: number;
|
|
2247
|
+
rightKeysLength: number;
|
|
2248
|
+
measuredWidth?: number | null;
|
|
2249
|
+
width: number | string;
|
|
2250
|
+
computedWidth: number;
|
|
2251
|
+
};
|
|
2252
|
+
declare function useChartLayout({ chartMargin, yAxisLabel, AXIS_LABEL_MARGIN, yTickFormatter, minLeftDataValue, niceMaxLeft, rightKeysLength, measuredWidth, width, computedWidth, }: Params$1): {
|
|
2253
|
+
finalChartRightMargin: number;
|
|
2254
|
+
finalChartLeftMargin: number;
|
|
2255
|
+
yAxisTickWidth: number;
|
|
2256
|
+
effectiveChartWidth: number;
|
|
2257
|
+
chartInnerWidth: number;
|
|
2258
|
+
leftYAxisLabelDx: number;
|
|
2259
|
+
rightYAxisLabelDx: number;
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
declare function useSeriesOpacity(highlightedSeries: Set<string>): (key: string) => 1 | 0.25;
|
|
2263
|
+
|
|
2264
|
+
type Params = {
|
|
2265
|
+
enableDraggableTooltips: boolean;
|
|
2266
|
+
processedData: ChartData$3[];
|
|
2267
|
+
activeTooltips: TooltipItem$2[];
|
|
2268
|
+
setActiveTooltips: React.Dispatch<React.SetStateAction<TooltipItem$2[]>>;
|
|
2269
|
+
maxTooltips: number;
|
|
2270
|
+
effectiveChartWidth: number;
|
|
2271
|
+
};
|
|
2272
|
+
declare function useOpenTooltipForPeriod({ enableDraggableTooltips, processedData, activeTooltips, setActiveTooltips, maxTooltips, effectiveChartWidth, }: Params): (periodName: string) => void;
|
|
2273
|
+
|
|
2170
2274
|
interface NoDataProps {
|
|
2171
2275
|
paddingLeft?: number;
|
|
2172
2276
|
height?: number | string;
|
|
@@ -2227,4 +2331,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2227
2331
|
isDragging: boolean;
|
|
2228
2332
|
};
|
|
2229
2333
|
|
|
2230
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$
|
|
2334
|
+
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, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, 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, 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, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type IntegrationProperties, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, 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, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, formatLinePercentage, 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, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|