@undp/data-viz 2.0.8 → 2.1.0
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/AreaChart.cjs +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1188 -1213
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +258 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +126 -131
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +404 -413
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +179 -184
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +268 -273
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +2 -0
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.d.ts +2 -0
- package/dist/DetailsModal-0Ry5nXiC.js +32 -0
- package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
- package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
- package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.d.ts +2 -0
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +2 -0
- package/dist/DonutChart.js +185 -190
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +198 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +364 -373
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +2 -0
- package/dist/GeoHubMap.d.ts +2 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
- package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
- package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
- package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +3 -0
- package/dist/GriddedGraphs.js +158 -146
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +3 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +2 -0
- package/dist/HeatMap.js +111 -116
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +202 -207
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
- package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +3 -0
- package/dist/MultiGraphDashboard.js +90 -85
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +187 -192
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +76 -72
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +158 -163
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +2 -0
- package/dist/SankeyChart.js +172 -177
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +222 -227
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +3 -0
- package/dist/SingleGraphDashboard.js +131 -128
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +145 -141
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +2 -0
- package/dist/SlopeChart.js +182 -187
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +2 -0
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.d.ts +2 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +249 -258
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +142 -147
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Tooltip-Dj5eVppQ.js +45 -0
- package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
- package/dist/Tooltip-uUdw6wJL.cjs +2 -0
- package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +159 -164
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +3 -0
- package/dist/UnitChart.d.ts +2 -0
- package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
- package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
- package/dist/getUniqValue-DsqSii6M.js +11 -0
- package/dist/getUniqValue-DsqSii6M.js.map +1 -0
- package/dist/getUniqValue-NX8DgwND.cjs +2 -0
- package/dist/getUniqValue-NX8DgwND.cjs.map +1 -0
- package/dist/index-BBV4tAeA.js +330 -0
- package/dist/index-BBV4tAeA.js.map +1 -0
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/Tooltip-4dJo4_AF.cjs +0 -2
- package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
- package/dist/Tooltip-CwWUegPB.js +0 -43
- package/dist/Tooltip-CwWUegPB.js.map +0 -1
- package/dist/getUniqValue-BKHCm3zE.js +0 -11
- package/dist/getUniqValue-BKHCm3zE.js.map +0 -1
- package/dist/getUniqValue-RViz8tTw.cjs +0 -2
- package/dist/getUniqValue-RViz8tTw.cjs.map +0 -1
- package/dist/index-B2LQV7Tk.js +0 -335
- package/dist/index-B2LQV7Tk.js.map +0 -1
- package/dist/index-xRHRLDIp.cjs +0 -2
- package/dist/index-xRHRLDIp.cjs.map +0 -1
package/dist/HeatMap.js
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { c as Gt, j as o, m as Xt } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
2
|
import { useRef as qt, useState as dt, useEffect as Yt } from "react";
|
|
3
3
|
import { i as Ft } from "./index-Bwrro8-q.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { g as Jt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
4
|
+
import { n as Pt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
|
+
import { T as zt } from "./Tooltip-Dj5eVppQ.js";
|
|
6
|
+
import { g as Ut } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
8
7
|
import { c as Ht } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Y as Zt } from "./YAxesLabels-a57ZRv-0.js";
|
|
8
|
+
import { X as Jt } from "./XAxesLabels-Dy8E1SEo.js";
|
|
9
|
+
import { Y as Kt } from "./YAxesLabels-a57ZRv-0.js";
|
|
12
10
|
import { u as Wt } from "./uniqBy-BHy4I8PK.js";
|
|
11
|
+
import { D as Qt } from "./DetailsModal-0Ry5nXiC.js";
|
|
13
12
|
import { b as Bt } from "./band-CyHaVft5.js";
|
|
14
|
-
import { o as
|
|
15
|
-
import { t as
|
|
16
|
-
import { a as
|
|
17
|
-
import { u as
|
|
13
|
+
import { o as Zt } from "./ordinal-P77xw8aL.js";
|
|
14
|
+
import { t as _t } from "./threshold-Bgr20hik.js";
|
|
15
|
+
import { a as to } from "./linear-BwnDd9KF.js";
|
|
16
|
+
import { u as oo } from "./use-in-view-Cxa7y1TH.js";
|
|
18
17
|
import { m as Vt } from "./proxy-BxkFHwUw.js";
|
|
19
|
-
import { GraphHeader as
|
|
20
|
-
import { GraphFooter as
|
|
21
|
-
import { ColorLegendWithMouseOver as
|
|
22
|
-
import { LinearColorLegend as
|
|
23
|
-
import { ThresholdColorLegendWithMouseOver as
|
|
18
|
+
import { GraphHeader as eo } from "./GraphHeader.js";
|
|
19
|
+
import { GraphFooter as io } from "./GraphFooter.js";
|
|
20
|
+
import { ColorLegendWithMouseOver as ro } from "./ColorLegendWithMouseOver.js";
|
|
21
|
+
import { LinearColorLegend as lo } from "./LinearColorLegend.js";
|
|
22
|
+
import { ThresholdColorLegendWithMouseOver as so } from "./ThresholdColorLegendWithMouseOver.js";
|
|
24
23
|
import { Colors as g } from "./Colors.js";
|
|
25
24
|
import { E as ao } from "./EmptyState-BZo1BbAn.js";
|
|
26
|
-
import { a as
|
|
27
|
-
function
|
|
28
|
-
const t = Gt.c(
|
|
25
|
+
import { a as no, G as co } from "./GraphContainer-CRqzdKu2.js";
|
|
26
|
+
function uo(c) {
|
|
27
|
+
const t = Gt.c(86), {
|
|
29
28
|
data: h,
|
|
30
29
|
showColumnLabels: z,
|
|
31
|
-
leftMargin:
|
|
30
|
+
leftMargin: j,
|
|
32
31
|
rightMargin: U,
|
|
33
|
-
truncateBy:
|
|
32
|
+
truncateBy: y,
|
|
34
33
|
width: J,
|
|
35
34
|
height: K,
|
|
36
35
|
topMargin: gt,
|
|
@@ -40,56 +39,56 @@ function mo(a) {
|
|
|
40
39
|
suffix: jt,
|
|
41
40
|
prefix: l,
|
|
42
41
|
showValues: Z,
|
|
43
|
-
colorDomain:
|
|
44
|
-
colors:
|
|
42
|
+
colorDomain: C,
|
|
43
|
+
colors: I,
|
|
45
44
|
noDataColor: it,
|
|
46
45
|
scaleType: rt,
|
|
47
46
|
showRowLabels: ft,
|
|
48
47
|
selectedColor: _,
|
|
49
48
|
onSeriesMouseClick: W,
|
|
50
49
|
resetSelectionOnDoubleClick: xt,
|
|
51
|
-
detailsOnClick:
|
|
50
|
+
detailsOnClick: $,
|
|
52
51
|
styles: d,
|
|
53
|
-
classNames:
|
|
52
|
+
classNames: n,
|
|
54
53
|
animate: m,
|
|
55
54
|
precision: lt
|
|
56
|
-
} =
|
|
55
|
+
} = c, $t = qt(null);
|
|
57
56
|
let st;
|
|
58
57
|
t[0] !== m.amount || t[1] !== m.once ? (st = {
|
|
59
58
|
once: m.once,
|
|
60
59
|
amount: m.amount
|
|
61
60
|
}, t[0] = m.amount, t[1] = m.once, t[2] = st) : st = t[2];
|
|
62
|
-
const k =
|
|
63
|
-
let
|
|
64
|
-
t[3] !== pt || t[4] !==
|
|
61
|
+
const k = oo($t, st);
|
|
62
|
+
let at;
|
|
63
|
+
t[3] !== pt || t[4] !== j || t[5] !== U || t[6] !== gt ? (at = {
|
|
65
64
|
top: gt,
|
|
66
65
|
bottom: pt,
|
|
67
|
-
left:
|
|
66
|
+
left: j,
|
|
68
67
|
right: U
|
|
69
|
-
}, t[3] = pt, t[4] =
|
|
70
|
-
const
|
|
71
|
-
let B, G,
|
|
72
|
-
if (t[8] !== m.duration || t[9] !==
|
|
73
|
-
const ot = Wt(h, "column", !0), ht = Wt(h, "row", !0), i = Bt().domain(ht).range([0, r]), X = i.bandwidth(),
|
|
74
|
-
B = Vt.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[54] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
68
|
+
}, t[3] = pt, t[4] = j, t[5] = U, t[6] = gt, t[7] = at) : at = t[7];
|
|
69
|
+
const u = at, [D, vt] = dt(void 0), [x, yt] = dt(void 0), [nt, ct] = dt(void 0), [ut, mt] = dt(void 0), a = J - u.left - u.right, r = K - u.top - u.bottom;
|
|
70
|
+
let B, G, M, O, N, A, L, S, V, q, H, T, f;
|
|
71
|
+
if (t[8] !== m.duration || t[9] !== n?.graphObjectValues || t[10] !== n?.xAxis?.labels || t[11] !== n?.yAxis?.labels || t[12] !== C || t[13] !== I || t[14] !== h || t[15] !== $ || t[16] !== r || t[17] !== a || t[18] !== K || t[19] !== k || t[20] !== u.left || t[21] !== u.top || t[22] !== D || t[23] !== x || t[24] !== it || t[25] !== W || t[26] !== s || t[27] !== lt || t[28] !== l || t[29] !== xt || t[30] !== rt || t[31] !== _ || t[32] !== z || t[33] !== ft || t[34] !== Z || t[35] !== d?.graphObjectValues || t[36] !== d?.xAxis?.labels || t[37] !== d?.yAxis?.labels || t[38] !== jt || t[39] !== y || t[40] !== J) {
|
|
72
|
+
const ot = Wt(h, "column", !0), ht = Wt(h, "row", !0), i = Bt().domain(ht).range([0, r]), X = i.bandwidth(), R = Bt().domain(ot).range([0, a]), Y = R.bandwidth(), et = rt === "categorical" ? Zt().domain(C).range(I) : rt === "threshold" ? _t().domain(C).range(I) : to().domain(C).range(I);
|
|
73
|
+
B = Vt.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[54] === Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
75
74
|
marginLeft: "auto",
|
|
76
75
|
marginRight: "auto"
|
|
77
|
-
}, t[54] =
|
|
76
|
+
}, t[54] = f) : f = t[54], G = "ltr", M = $t, O = /* @__PURE__ */ o.jsx("g", { transform: `translate(${u.left},0)`, children: z ? ot.map((e, v) => /* @__PURE__ */ o.jsx(Jt, { y: 0, x: R(e), width: Y, height: u.top - 5, value: `${e}`.length < y ? `${e}` : `${`${e}`.substring(0, y)}...`, style: d?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "bottom", animate: {
|
|
78
77
|
duration: 0,
|
|
79
78
|
once: !0,
|
|
80
79
|
amount: 0
|
|
81
|
-
}, isInView: k },
|
|
80
|
+
}, isInView: k }, v)) : null }), N = /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${u.top})`, children: ft ? ht.map((e, v) => /* @__PURE__ */ o.jsx(Kt, { value: `${e}`.length < y ? `${e}` : `${`${e}`.substring(0, y)}...`, y: i(e), x: 0, width: u.left, height: X, alignment: "right", style: d?.yAxis?.labels, className: n?.yAxis?.labels, animate: {
|
|
82
81
|
duration: 0,
|
|
83
82
|
once: !0,
|
|
84
83
|
amount: 0
|
|
85
|
-
}, isInView: k },
|
|
84
|
+
}, isInView: k }, v)) : null }), A = `translate(${u.left},${u.top})`, L = ht.map((e, v) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${i(e)})`, children: ot.map((F) => /* @__PURE__ */ o.jsx("rect", { x: R(F), y: 0, width: Y, height: X, style: {
|
|
86
85
|
fill: it
|
|
87
|
-
}, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) },
|
|
86
|
+
}, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) }, v)), S = h.filter(mo).map((e, v) => {
|
|
88
87
|
const F = Ht(e.value) ? it : et(e.value);
|
|
89
|
-
return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${
|
|
88
|
+
return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${R(e.column)},${i(e.row)})`, onMouseEnter: (P) => {
|
|
90
89
|
yt(e), mt(P.clientY), ct(P.clientX), s?.(e);
|
|
91
90
|
}, onClick: () => {
|
|
92
|
-
(W ||
|
|
91
|
+
(W || $) && (Ft(D, e) && xt ? (vt(void 0), W?.(void 0)) : (vt(e), W?.(e)));
|
|
93
92
|
}, onMouseMove: (P) => {
|
|
94
93
|
yt(e), mt(P.clientY), ct(P.clientX);
|
|
95
94
|
}, onMouseLeave: () => {
|
|
@@ -128,55 +127,51 @@ function mo(a) {
|
|
|
128
127
|
transition: {
|
|
129
128
|
duration: m.duration
|
|
130
129
|
}
|
|
131
|
-
}, children: /* @__PURE__ */ o.jsx("foreignObject", { y: 0, x: 0, width: Y, height: X, children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ o.jsx("p", { className: Xt("text-xs text-center m-0 leading-[1.25] graph-value",
|
|
132
|
-
color:
|
|
130
|
+
}, children: /* @__PURE__ */ o.jsx("foreignObject", { y: 0, x: 0, width: Y, height: X, children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ o.jsx("p", { className: Xt("text-xs text-center m-0 leading-[1.25] graph-value", n?.graphObjectValues), style: {
|
|
131
|
+
color: Ut(F),
|
|
133
132
|
...d?.graphObjectValues || {}
|
|
134
|
-
}, children:
|
|
133
|
+
}, children: Pt(e.value, "NA", lt, l, jt) }) }) }, v) }) : null
|
|
135
134
|
] }, `${e.column}-${e.row}`);
|
|
136
|
-
}), V =
|
|
135
|
+
}), V = x ? /* @__PURE__ */ o.jsx("rect", { x: R(x.column), y: i(x.row), width: Y, height: X, style: {
|
|
137
136
|
fill: "none",
|
|
138
137
|
fillOpacity: 0,
|
|
139
138
|
strokeWidth: 1.5
|
|
140
|
-
}, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = m.duration, t[9] =
|
|
139
|
+
}, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = m.duration, t[9] = n?.graphObjectValues, t[10] = n?.xAxis?.labels, t[11] = n?.yAxis?.labels, t[12] = C, t[13] = I, t[14] = h, t[15] = $, t[16] = r, t[17] = a, t[18] = K, t[19] = k, t[20] = u.left, t[21] = u.top, t[22] = D, t[23] = x, t[24] = it, t[25] = W, t[26] = s, t[27] = lt, t[28] = l, t[29] = xt, t[30] = rt, t[31] = _, t[32] = z, t[33] = ft, t[34] = Z, t[35] = d?.graphObjectValues, t[36] = d?.xAxis?.labels, t[37] = d?.yAxis?.labels, t[38] = jt, t[39] = y, t[40] = J, t[41] = B, t[42] = G, t[43] = M, t[44] = O, t[45] = N, t[46] = A, t[47] = L, t[48] = S, t[49] = V, t[50] = q, t[51] = H, t[52] = T, t[53] = f;
|
|
141
140
|
} else
|
|
142
|
-
B = t[41], G = t[42],
|
|
141
|
+
B = t[41], G = t[42], M = t[43], O = t[44], N = t[45], A = t[46], L = t[47], S = t[48], V = t[49], q = t[50], H = t[51], T = t[52], f = t[53];
|
|
143
142
|
let E;
|
|
144
|
-
t[55] !==
|
|
143
|
+
t[55] !== A || t[56] !== L || t[57] !== S || t[58] !== V ? (E = /* @__PURE__ */ o.jsxs("g", { transform: A, children: [
|
|
144
|
+
L,
|
|
145
145
|
S,
|
|
146
|
-
A,
|
|
147
146
|
V
|
|
148
|
-
] }), t[55] =
|
|
149
|
-
let
|
|
150
|
-
t[60] !== B || t[61] !== G || t[62] !==
|
|
147
|
+
] }), t[55] = A, t[56] = L, t[57] = S, t[58] = V, t[59] = E) : E = t[59];
|
|
148
|
+
let b;
|
|
149
|
+
t[60] !== B || t[61] !== G || t[62] !== M || t[63] !== O || t[64] !== N || t[65] !== E || t[66] !== q || t[67] !== H || t[68] !== T || t[69] !== f ? (b = /* @__PURE__ */ o.jsxs(B, { width: q, height: H, viewBox: T, style: f, direction: G, ref: M, children: [
|
|
151
150
|
O,
|
|
152
151
|
N,
|
|
153
152
|
E
|
|
154
|
-
] }), t[60] = B, t[61] = G, t[62] =
|
|
155
|
-
let
|
|
156
|
-
t[71] !==
|
|
153
|
+
] }), t[60] = B, t[61] = G, t[62] = M, t[63] = O, t[64] = N, t[65] = E, t[66] = q, t[67] = H, t[68] = T, t[69] = f, t[70] = b) : b = t[70];
|
|
154
|
+
let w;
|
|
155
|
+
t[71] !== n?.tooltip || t[72] !== nt || t[73] !== ut || t[74] !== x || t[75] !== d?.tooltip || t[76] !== Q ? (w = x && Q && nt && ut ? /* @__PURE__ */ o.jsx(zt, { data: x, body: Q, xPos: nt, yPos: ut, backgroundStyle: d?.tooltip, className: n?.tooltip }) : null, t[71] = n?.tooltip, t[72] = nt, t[73] = ut, t[74] = x, t[75] = d?.tooltip, t[76] = Q, t[77] = w) : w = t[77];
|
|
157
156
|
let p;
|
|
158
|
-
t[78] !==
|
|
159
|
-
vt(void 0);
|
|
160
|
-
}, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof f == "string" ? {
|
|
161
|
-
__html: Kt(f, v)
|
|
162
|
-
} : void 0, children: typeof f == "function" ? f(v) : null }) }) : null, t[78] = f, t[79] = v, t[80] = p) : p = t[80];
|
|
157
|
+
t[78] !== n?.modal || t[79] !== $ || t[80] !== D ? (p = $ && D !== void 0 ? /* @__PURE__ */ o.jsx(Qt, { body: $, data: D, setData: vt, className: n?.modal }) : null, t[78] = n?.modal, t[79] = $, t[80] = D, t[81] = p) : p = t[81];
|
|
163
158
|
let tt;
|
|
164
|
-
return t[
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
return t[82] !== b || t[83] !== w || t[84] !== p ? (tt = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
160
|
+
b,
|
|
161
|
+
w,
|
|
167
162
|
p
|
|
168
|
-
] }), t[
|
|
163
|
+
] }), t[82] = b, t[83] = w, t[84] = p, t[85] = tt) : tt = t[85], tt;
|
|
169
164
|
}
|
|
170
|
-
function
|
|
171
|
-
return !Ht(
|
|
165
|
+
function mo(c) {
|
|
166
|
+
return !Ht(c.value);
|
|
172
167
|
}
|
|
173
|
-
function
|
|
168
|
+
function Yo(c) {
|
|
174
169
|
const t = Gt.c(71), {
|
|
175
170
|
data: h,
|
|
176
171
|
graphTitle: z,
|
|
177
|
-
colors:
|
|
172
|
+
colors: j,
|
|
178
173
|
sources: U,
|
|
179
|
-
graphDescription:
|
|
174
|
+
graphDescription: y,
|
|
180
175
|
showColumnLabels: J,
|
|
181
176
|
leftMargin: K,
|
|
182
177
|
rightMargin: gt,
|
|
@@ -186,100 +181,100 @@ function Po(a) {
|
|
|
186
181
|
scaleType: jt,
|
|
187
182
|
colorDomain: l,
|
|
188
183
|
footNote: Z,
|
|
189
|
-
colorLegendTitle:
|
|
190
|
-
padding:
|
|
184
|
+
colorLegendTitle: C,
|
|
185
|
+
padding: I,
|
|
191
186
|
backgroundColor: it,
|
|
192
187
|
topMargin: rt,
|
|
193
188
|
bottomMargin: ft,
|
|
194
189
|
tooltip: _,
|
|
195
190
|
onSeriesMouseOver: W,
|
|
196
191
|
suffix: xt,
|
|
197
|
-
prefix:
|
|
192
|
+
prefix: $,
|
|
198
193
|
showRowLabels: d,
|
|
199
|
-
relativeHeight:
|
|
194
|
+
relativeHeight: n,
|
|
200
195
|
showValues: m,
|
|
201
196
|
graphID: lt,
|
|
202
197
|
noDataColor: $t,
|
|
203
198
|
showColorScale: st,
|
|
204
199
|
onSeriesMouseClick: k,
|
|
205
|
-
graphDownload:
|
|
206
|
-
dataDownload:
|
|
207
|
-
fillContainer:
|
|
200
|
+
graphDownload: at,
|
|
201
|
+
dataDownload: u,
|
|
202
|
+
fillContainer: D,
|
|
208
203
|
language: vt,
|
|
209
|
-
showNAColor:
|
|
204
|
+
showNAColor: x,
|
|
210
205
|
minHeight: yt,
|
|
211
|
-
theme:
|
|
206
|
+
theme: nt,
|
|
212
207
|
ariaLabel: ct,
|
|
213
208
|
resetSelectionOnDoubleClick: ut,
|
|
214
209
|
detailsOnClick: mt,
|
|
215
|
-
styles:
|
|
210
|
+
styles: a,
|
|
216
211
|
classNames: r,
|
|
217
212
|
animate: B,
|
|
218
213
|
precision: G
|
|
219
|
-
} =
|
|
220
|
-
let
|
|
221
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
222
|
-
const
|
|
223
|
-
e(
|
|
214
|
+
} = c, M = J === void 0 ? !0 : J, O = K === void 0 ? 100 : K, N = gt === void 0 ? 10 : gt, A = pt === void 0 ? 999 : pt, L = it === void 0 ? !1 : it, S = rt === void 0 ? 30 : rt, V = ft === void 0 ? 10 : ft, q = xt === void 0 ? "" : xt, H = $ === void 0 ? "" : $, T = d === void 0 ? !0 : d, f = $t === void 0 ? g.gray : $t, E = st === void 0 ? !0 : st, b = at === void 0 ? !1 : at, w = u === void 0 ? !1 : u, p = D === void 0 ? !0 : D, tt = vt === void 0 ? "en" : vt, ot = x === void 0 ? !0 : x, ht = yt === void 0 ? 0 : yt, i = nt === void 0 ? "light" : nt, X = ut === void 0 ? !0 : ut, R = B === void 0 ? !1 : B, Y = G === void 0 ? 2 : G, [et, e] = dt(0), [v, F] = dt(0), [P, Tt] = dt(void 0), Nt = qt(null), Et = qt(null);
|
|
215
|
+
let Dt, Mt;
|
|
216
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (Dt = () => {
|
|
217
|
+
const Rt = new ResizeObserver((It) => {
|
|
218
|
+
e(It[0].target.clientWidth || 620), F(It[0].target.clientHeight || 480);
|
|
224
219
|
});
|
|
225
|
-
return Nt.current &&
|
|
226
|
-
},
|
|
227
|
-
const
|
|
220
|
+
return Nt.current && Rt.observe(Nt.current), () => Rt.disconnect();
|
|
221
|
+
}, Mt = [], t[0] = Dt, t[1] = Mt) : (Dt = t[0], Mt = t[1]), Yt(Dt, Mt);
|
|
222
|
+
const kt = jt || (typeof l[0] == "string" ? "categorical" : l.length === 2 ? "linear" : "threshold"), At = r?.graphContainer, Lt = a?.graphContainer, St = p ? void 0 : s;
|
|
228
223
|
let Ct;
|
|
229
|
-
t[2] !== r?.description || t[3] !== r?.title || t[4] !== h || t[5] !==
|
|
230
|
-
title:
|
|
231
|
-
description:
|
|
224
|
+
t[2] !== r?.description || t[3] !== r?.title || t[4] !== h || t[5] !== w || t[6] !== y || t[7] !== b || t[8] !== z || t[9] !== a?.description || t[10] !== a?.title || t[11] !== s ? (Ct = z || y || b || w ? /* @__PURE__ */ o.jsx(eo, { styles: {
|
|
225
|
+
title: a?.title,
|
|
226
|
+
description: a?.description
|
|
232
227
|
}, classNames: {
|
|
233
228
|
title: r?.title,
|
|
234
229
|
description: r?.description
|
|
235
|
-
}, graphTitle: z, graphDescription:
|
|
230
|
+
}, graphTitle: z, graphDescription: y, width: s, graphDownload: b ? Et : void 0, dataDownload: w ? h.map(vo).filter(xo).length > 0 ? h.map(fo).filter(po) : h.filter(go) : null }) : null, t[2] = r?.description, t[3] = r?.title, t[4] = h, t[5] = w, t[6] = y, t[7] = b, t[8] = z, t[9] = a?.description, t[10] = a?.title, t[11] = s, t[12] = Ct) : Ct = t[12];
|
|
236
231
|
let bt;
|
|
237
|
-
t[13] !==
|
|
238
|
-
E ?
|
|
239
|
-
/* @__PURE__ */ o.jsx(
|
|
232
|
+
t[13] !== R || t[14] !== V || t[15] !== r || t[16] !== l || t[17] !== C || t[18] !== j || t[19] !== h || t[20] !== mt || t[21] !== p || t[22] !== O || t[23] !== f || t[24] !== k || t[25] !== W || t[26] !== Y || t[27] !== H || t[28] !== X || t[29] !== N || t[30] !== kt || t[31] !== P || t[32] !== E || t[33] !== M || t[34] !== ot || t[35] !== T || t[36] !== m || t[37] !== a || t[38] !== q || t[39] !== v || t[40] !== et || t[41] !== i || t[42] !== _ || t[43] !== S || t[44] !== A || t[45] !== s ? (bt = h.length === 0 ? /* @__PURE__ */ o.jsx(ao, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
233
|
+
E ? kt === "categorical" ? /* @__PURE__ */ o.jsx(ro, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l.map(ho), setSelectedColor: Tt, showNAColor: ot, className: r?.colorLegend }) : kt === "threshold" ? /* @__PURE__ */ o.jsx(so, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l, setSelectedColor: Tt, naColor: f, showNAColor: ot }) : /* @__PURE__ */ o.jsx(lo, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]], colorDomain: l, className: r?.colorLegend }) : null,
|
|
234
|
+
/* @__PURE__ */ o.jsx(no, { ref: Nt, children: et && v ? /* @__PURE__ */ o.jsx(uo, { data: h, colorDomain: l, width: p || !s || et < s ? et : s, height: v, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), noDataColor: f, scaleType: kt, showColumnLabels: M, leftMargin: O, rightMargin: N, topMargin: S, bottomMargin: V, selectedColor: P, truncateBy: A, showRowLabels: T, tooltip: _, onSeriesMouseOver: W, showValues: m, suffix: q, prefix: H, onSeriesMouseClick: k, resetSelectionOnDoubleClick: X, detailsOnClick: mt, styles: a, classNames: r, animate: R === !0 ? {
|
|
240
235
|
duration: 0.5,
|
|
241
236
|
once: !0,
|
|
242
237
|
amount: 0.5
|
|
243
|
-
} :
|
|
238
|
+
} : R || {
|
|
244
239
|
duration: 0,
|
|
245
240
|
once: !0,
|
|
246
241
|
amount: 0
|
|
247
242
|
}, precision: Y }) : null })
|
|
248
|
-
] }), t[13] =
|
|
243
|
+
] }), t[13] = R, t[14] = V, t[15] = r, t[16] = l, t[17] = C, t[18] = j, t[19] = h, t[20] = mt, t[21] = p, t[22] = O, t[23] = f, t[24] = k, t[25] = W, t[26] = Y, t[27] = H, t[28] = X, t[29] = N, t[30] = kt, t[31] = P, t[32] = E, t[33] = M, t[34] = ot, t[35] = T, t[36] = m, t[37] = a, t[38] = q, t[39] = v, t[40] = et, t[41] = i, t[42] = _, t[43] = S, t[44] = A, t[45] = s, t[46] = bt) : bt = t[46];
|
|
249
244
|
let wt;
|
|
250
|
-
t[47] !== r?.footnote || t[48] !== r?.source || t[49] !== Z || t[50] !== U || t[51] !==
|
|
251
|
-
footnote:
|
|
252
|
-
source:
|
|
245
|
+
t[47] !== r?.footnote || t[48] !== r?.source || t[49] !== Z || t[50] !== U || t[51] !== a?.footnote || t[52] !== a?.source || t[53] !== s ? (wt = U || Z ? /* @__PURE__ */ o.jsx(io, { styles: {
|
|
246
|
+
footnote: a?.footnote,
|
|
247
|
+
source: a?.source
|
|
253
248
|
}, classNames: {
|
|
254
249
|
footnote: r?.footnote,
|
|
255
250
|
source: r?.source
|
|
256
|
-
}, sources: U, footNote: Z, width: s }) : null, t[47] = r?.footnote, t[48] = r?.source, t[49] = Z, t[50] = U, t[51] =
|
|
251
|
+
}, sources: U, footNote: Z, width: s }) : null, t[47] = r?.footnote, t[48] = r?.source, t[49] = Z, t[50] = U, t[51] = a?.footnote, t[52] = a?.source, t[53] = s, t[54] = wt) : wt = t[54];
|
|
257
252
|
let Ot;
|
|
258
|
-
return t[55] !== ct || t[56] !==
|
|
253
|
+
return t[55] !== ct || t[56] !== L || t[57] !== lt || t[58] !== Q || t[59] !== tt || t[60] !== ht || t[61] !== I || t[62] !== n || t[63] !== At || t[64] !== Lt || t[65] !== St || t[66] !== Ct || t[67] !== bt || t[68] !== wt || t[69] !== i ? (Ot = /* @__PURE__ */ o.jsxs(co, { className: At, style: Lt, id: lt, ref: Et, "aria-label": ct, backgroundColor: L, theme: i, language: tt, minHeight: ht, width: St, height: Q, relativeHeight: n, padding: I, children: [
|
|
259
254
|
Ct,
|
|
260
255
|
bt,
|
|
261
256
|
wt
|
|
262
|
-
] }), t[55] = ct, t[56] =
|
|
257
|
+
] }), t[55] = ct, t[56] = L, t[57] = lt, t[58] = Q, t[59] = tt, t[60] = ht, t[61] = I, t[62] = n, t[63] = At, t[64] = Lt, t[65] = St, t[66] = Ct, t[67] = bt, t[68] = wt, t[69] = i, t[70] = Ot) : Ot = t[70], Ot;
|
|
263
258
|
}
|
|
264
|
-
function
|
|
265
|
-
return `${
|
|
259
|
+
function ho(c) {
|
|
260
|
+
return `${c}`;
|
|
266
261
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
262
|
+
function go(c) {
|
|
263
|
+
return c !== void 0;
|
|
269
264
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
265
|
+
function po(c) {
|
|
266
|
+
return c !== void 0;
|
|
272
267
|
}
|
|
273
|
-
function
|
|
274
|
-
return
|
|
268
|
+
function fo(c) {
|
|
269
|
+
return c.data;
|
|
275
270
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
271
|
+
function xo(c) {
|
|
272
|
+
return c !== void 0;
|
|
278
273
|
}
|
|
279
|
-
function
|
|
280
|
-
return
|
|
274
|
+
function vo(c) {
|
|
275
|
+
return c.data;
|
|
281
276
|
}
|
|
282
277
|
export {
|
|
283
|
-
|
|
278
|
+
Yo as HeatMap
|
|
284
279
|
};
|
|
285
280
|
//# sourceMappingURL=HeatMap.js.map
|