@undp/data-viz 2.1.2 → 2.1.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/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +281 -274
- package/dist/AreaChart.js.map +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 +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +367 -356
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +406 -399
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +232 -263
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
package/dist/HeatMap.js
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { i as
|
|
4
|
-
import { n as
|
|
5
|
-
import { T as
|
|
6
|
-
import { g as
|
|
7
|
-
import { c as
|
|
8
|
-
import { X as
|
|
9
|
-
import { Y as
|
|
10
|
-
import { u as
|
|
11
|
-
import { D as
|
|
12
|
-
import { b as
|
|
13
|
-
import { o as
|
|
14
|
-
import { t as
|
|
15
|
-
import { a as
|
|
16
|
-
import { u as
|
|
17
|
-
import { m as
|
|
18
|
-
import { GraphHeader as
|
|
19
|
-
import { GraphFooter as
|
|
20
|
-
import { ColorLegendWithMouseOver as
|
|
21
|
-
import { LinearColorLegend as
|
|
22
|
-
import { ThresholdColorLegendWithMouseOver as
|
|
23
|
-
import { Colors as
|
|
24
|
-
import { E as
|
|
25
|
-
import { a as
|
|
26
|
-
function
|
|
27
|
-
const t =
|
|
28
|
-
data:
|
|
1
|
+
import { c as Ft, j as o, m as Pt } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as Et, useState as gt, useEffect as zt } from "react";
|
|
3
|
+
import { i as Ut } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { n as Jt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
|
+
import { T as Kt } from "./Tooltip-Dj5eVppQ.js";
|
|
6
|
+
import { g as Qt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
7
|
+
import { c as Rt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
|
+
import { X as Zt } from "./XAxesLabels-Dy8E1SEo.js";
|
|
9
|
+
import { Y as _t } from "./YAxesLabels-a57ZRv-0.js";
|
|
10
|
+
import { u as Xt } from "./uniqBy-BHy4I8PK.js";
|
|
11
|
+
import { D as te } from "./DetailsModal-0Ry5nXiC.js";
|
|
12
|
+
import { b as Yt } from "./band-DHUZ2X7J.js";
|
|
13
|
+
import { o as ee } from "./ordinal-BJ6O_LC5.js";
|
|
14
|
+
import { t as oe } from "./threshold-DFfqcDMa.js";
|
|
15
|
+
import { a as ie } from "./linear-BqltdMeF.js";
|
|
16
|
+
import { u as le } from "./use-in-view-Cxa7y1TH.js";
|
|
17
|
+
import { m as Tt } from "./proxy-BxkFHwUw.js";
|
|
18
|
+
import { GraphHeader as re } from "./GraphHeader.js";
|
|
19
|
+
import { GraphFooter as se } from "./GraphFooter.js";
|
|
20
|
+
import { ColorLegendWithMouseOver as ae } from "./ColorLegendWithMouseOver.js";
|
|
21
|
+
import { LinearColorLegend as ne } from "./LinearColorLegend.js";
|
|
22
|
+
import { ThresholdColorLegendWithMouseOver as ce } from "./ThresholdColorLegendWithMouseOver.js";
|
|
23
|
+
import { Colors as f } from "./Colors.js";
|
|
24
|
+
import { E as ue } from "./EmptyState-C7ZXkZWd.js";
|
|
25
|
+
import { a as me, G as he } from "./GraphContainer-CRqzdKu2.js";
|
|
26
|
+
function de(u) {
|
|
27
|
+
const t = Ft.c(86), {
|
|
28
|
+
data: a,
|
|
29
29
|
showColumnLabels: z,
|
|
30
|
-
leftMargin:
|
|
30
|
+
leftMargin: x,
|
|
31
31
|
rightMargin: U,
|
|
32
|
-
truncateBy:
|
|
32
|
+
truncateBy: C,
|
|
33
33
|
width: J,
|
|
34
34
|
height: K,
|
|
35
|
-
topMargin:
|
|
36
|
-
bottomMargin:
|
|
35
|
+
topMargin: pt,
|
|
36
|
+
bottomMargin: ft,
|
|
37
37
|
tooltip: Q,
|
|
38
38
|
onSeriesMouseOver: s,
|
|
39
|
-
suffix:
|
|
40
|
-
prefix:
|
|
39
|
+
suffix: Mt,
|
|
40
|
+
prefix: r,
|
|
41
41
|
showValues: Z,
|
|
42
|
-
colorDomain:
|
|
42
|
+
colorDomain: b,
|
|
43
43
|
colors: I,
|
|
44
44
|
noDataColor: it,
|
|
45
|
-
scaleType:
|
|
46
|
-
showRowLabels:
|
|
45
|
+
scaleType: lt,
|
|
46
|
+
showRowLabels: xt,
|
|
47
47
|
selectedColor: _,
|
|
48
48
|
onSeriesMouseClick: W,
|
|
49
|
-
resetSelectionOnDoubleClick:
|
|
49
|
+
resetSelectionOnDoubleClick: vt,
|
|
50
50
|
detailsOnClick: $,
|
|
51
|
-
styles:
|
|
52
|
-
classNames:
|
|
53
|
-
animate:
|
|
54
|
-
precision:
|
|
55
|
-
} =
|
|
51
|
+
styles: g,
|
|
52
|
+
classNames: c,
|
|
53
|
+
animate: h,
|
|
54
|
+
precision: rt
|
|
55
|
+
} = u, Ot = Et(null);
|
|
56
56
|
let st;
|
|
57
|
-
t[0] !==
|
|
58
|
-
once:
|
|
59
|
-
amount:
|
|
60
|
-
}, t[0] =
|
|
61
|
-
const k =
|
|
57
|
+
t[0] !== h.amount || t[1] !== h.once ? (st = {
|
|
58
|
+
once: h.once,
|
|
59
|
+
amount: h.amount
|
|
60
|
+
}, t[0] = h.amount, t[1] = h.once, t[2] = st) : st = t[2];
|
|
61
|
+
const k = le(Ot, st);
|
|
62
62
|
let at;
|
|
63
|
-
t[3] !==
|
|
64
|
-
top:
|
|
65
|
-
bottom:
|
|
66
|
-
left:
|
|
63
|
+
t[3] !== ft || t[4] !== x || t[5] !== U || t[6] !== pt ? (at = {
|
|
64
|
+
top: pt,
|
|
65
|
+
bottom: ft,
|
|
66
|
+
left: x,
|
|
67
67
|
right: U
|
|
68
|
-
}, t[3] =
|
|
69
|
-
const
|
|
70
|
-
let B, G, M, O, N,
|
|
71
|
-
if (t[8] !==
|
|
72
|
-
const
|
|
73
|
-
B =
|
|
68
|
+
}, t[3] = ft, t[4] = x, t[5] = U, t[6] = pt, t[7] = at) : at = t[7];
|
|
69
|
+
const m = at, [D, yt] = gt(void 0), [v, Ct] = gt(void 0), [nt, ct] = gt(void 0), [ut, mt] = gt(void 0), n = J - m.left - m.right, l = K - m.top - m.bottom;
|
|
70
|
+
let B, G, M, O, N, L, A, S, V, q, H, T, p;
|
|
71
|
+
if (t[8] !== h.duration || t[9] !== c?.graphObjectValues || t[10] !== c?.xAxis?.labels || t[11] !== c?.yAxis?.labels || t[12] !== b || t[13] !== I || t[14] !== a || t[15] !== $ || t[16] !== l || t[17] !== n || t[18] !== K || t[19] !== k || t[20] !== m.left || t[21] !== m.top || t[22] !== D || t[23] !== v || t[24] !== it || t[25] !== W || t[26] !== s || t[27] !== rt || t[28] !== r || t[29] !== vt || t[30] !== lt || t[31] !== _ || t[32] !== z || t[33] !== xt || t[34] !== Z || t[35] !== g?.graphObjectValues || t[36] !== g?.xAxis?.labels || t[37] !== g?.yAxis?.labels || t[38] !== Mt || t[39] !== C || t[40] !== J) {
|
|
72
|
+
const et = Xt(a, "column", !0), ht = Xt(a, "row", !0), i = Yt().domain(ht).range([0, l]), X = i.bandwidth(), R = Yt().domain(et).range([0, n]), Y = R.bandwidth(), ot = lt === "categorical" ? ee().domain(b).range(I) : lt === "threshold" ? oe().domain(b).range(I) : ie().domain(b).range(I);
|
|
73
|
+
B = Tt.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[54] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
74
74
|
marginLeft: "auto",
|
|
75
75
|
marginRight: "auto"
|
|
76
|
-
}, t[54] =
|
|
76
|
+
}, t[54] = p) : p = t[54], G = "ltr", M = Ot, O = /* @__PURE__ */ o.jsx("g", { transform: `translate(${m.left},0)`, children: z ? et.map((e, y) => /* @__PURE__ */ o.jsx(Zt, { y: 0, x: R(e), width: Y, height: m.top - 5, value: `${e}`.length < C ? `${e}` : `${`${e}`.substring(0, C)}...`, style: g?.xAxis?.labels, className: c?.xAxis?.labels, alignment: "bottom", animate: {
|
|
77
77
|
duration: 0,
|
|
78
78
|
once: !0,
|
|
79
79
|
amount: 0
|
|
80
|
-
}, isInView: k },
|
|
80
|
+
}, isInView: k }, y)) : null }), N = /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${m.top})`, children: xt ? ht.map((e, y) => /* @__PURE__ */ o.jsx(_t, { value: `${e}`.length < C ? `${e}` : `${`${e}`.substring(0, C)}...`, y: i(e), x: 0, width: m.left, height: X, alignment: "right", style: g?.yAxis?.labels, className: c?.yAxis?.labels, animate: {
|
|
81
81
|
duration: 0,
|
|
82
82
|
once: !0,
|
|
83
83
|
amount: 0
|
|
84
|
-
}, isInView: k },
|
|
84
|
+
}, isInView: k }, y)) : null }), L = `translate(${m.left},${m.top})`, A = ht.map((e, y) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${i(e)})`, children: et.map((F) => /* @__PURE__ */ o.jsx("rect", { x: R(F), y: 0, width: Y, height: X, style: {
|
|
85
85
|
fill: it
|
|
86
|
-
}, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) },
|
|
87
|
-
const F =
|
|
86
|
+
}, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) }, y)), S = a.filter(ge).map((e, y) => {
|
|
87
|
+
const F = Rt(e.value) ? it : ot(e.value);
|
|
88
88
|
return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${R(e.column)},${i(e.row)})`, onMouseEnter: (P) => {
|
|
89
|
-
|
|
89
|
+
Ct(e), mt(P.clientY), ct(P.clientX), s?.(e);
|
|
90
90
|
}, onClick: () => {
|
|
91
|
-
(W || $) && (
|
|
91
|
+
(W || $) && (Ut(D, e) && vt ? (yt(void 0), W?.(void 0)) : (yt(e), W?.(e)));
|
|
92
92
|
}, onMouseMove: (P) => {
|
|
93
|
-
|
|
93
|
+
Ct(e), mt(P.clientY), ct(P.clientX);
|
|
94
94
|
}, onMouseLeave: () => {
|
|
95
|
-
|
|
95
|
+
Ct(void 0), ct(void 0), mt(void 0), s?.(void 0);
|
|
96
96
|
}, opacity: _ ? _ === F ? 1 : 0.3 : 1, children: [
|
|
97
|
-
/* @__PURE__ */ o.jsx(
|
|
97
|
+
/* @__PURE__ */ o.jsx(Tt.rect, { x: 0, y: 0, width: Y, height: X, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700", exit: {
|
|
98
98
|
opacity: 0,
|
|
99
99
|
transition: {
|
|
100
|
-
duration:
|
|
100
|
+
duration: h.duration
|
|
101
101
|
}
|
|
102
102
|
}, variants: {
|
|
103
103
|
initial: {
|
|
@@ -108,173 +108,180 @@ function uo(c) {
|
|
|
108
108
|
fill: F,
|
|
109
109
|
opacity: 1,
|
|
110
110
|
transition: {
|
|
111
|
-
duration:
|
|
111
|
+
duration: h.duration
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}, initial: "initial", animate: k ? "whileInView" : "initial" }),
|
|
115
|
-
Z && !
|
|
115
|
+
Z && !Rt(e.value) ? /* @__PURE__ */ o.jsx(Tt.g, { variants: {
|
|
116
116
|
initial: {
|
|
117
117
|
opacity: 0
|
|
118
118
|
},
|
|
119
119
|
whileInView: {
|
|
120
120
|
opacity: 1,
|
|
121
121
|
transition: {
|
|
122
|
-
duration:
|
|
122
|
+
duration: h.duration
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, initial: "initial", animate: k ? "whileInView" : "initial", exit: {
|
|
126
126
|
opacity: 0,
|
|
127
127
|
transition: {
|
|
128
|
-
duration:
|
|
128
|
+
duration: h.duration
|
|
129
129
|
}
|
|
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:
|
|
131
|
-
color:
|
|
132
|
-
...
|
|
133
|
-
}, children:
|
|
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: Pt("text-xs text-center m-0 leading-[1.25] graph-value", c?.graphObjectValues), style: {
|
|
131
|
+
color: Qt(F),
|
|
132
|
+
...g?.graphObjectValues || {}
|
|
133
|
+
}, children: Jt(e.value, "NA", rt, r, Mt) }) }) }, y) }) : null
|
|
134
134
|
] }, `${e.column}-${e.row}`);
|
|
135
|
-
}), V =
|
|
135
|
+
}), V = v ? /* @__PURE__ */ o.jsx("rect", { x: R(v.column), y: i(v.row), width: Y, height: X, style: {
|
|
136
136
|
fill: "none",
|
|
137
137
|
fillOpacity: 0,
|
|
138
138
|
strokeWidth: 1.5
|
|
139
|
-
}, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] =
|
|
139
|
+
}, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = h.duration, t[9] = c?.graphObjectValues, t[10] = c?.xAxis?.labels, t[11] = c?.yAxis?.labels, t[12] = b, t[13] = I, t[14] = a, t[15] = $, t[16] = l, t[17] = n, t[18] = K, t[19] = k, t[20] = m.left, t[21] = m.top, t[22] = D, t[23] = v, t[24] = it, t[25] = W, t[26] = s, t[27] = rt, t[28] = r, t[29] = vt, t[30] = lt, t[31] = _, t[32] = z, t[33] = xt, t[34] = Z, t[35] = g?.graphObjectValues, t[36] = g?.xAxis?.labels, t[37] = g?.yAxis?.labels, t[38] = Mt, t[39] = C, t[40] = J, t[41] = B, t[42] = G, t[43] = M, t[44] = O, t[45] = N, t[46] = L, t[47] = A, t[48] = S, t[49] = V, t[50] = q, t[51] = H, t[52] = T, t[53] = p;
|
|
140
140
|
} else
|
|
141
|
-
B = t[41], G = t[42], M = t[43], O = t[44], N = t[45],
|
|
141
|
+
B = t[41], G = t[42], M = t[43], O = t[44], N = t[45], L = t[46], A = t[47], S = t[48], V = t[49], q = t[50], H = t[51], T = t[52], p = t[53];
|
|
142
142
|
let E;
|
|
143
|
-
t[55] !==
|
|
144
|
-
|
|
143
|
+
t[55] !== L || t[56] !== A || t[57] !== S || t[58] !== V ? (E = /* @__PURE__ */ o.jsxs("g", { transform: L, children: [
|
|
144
|
+
A,
|
|
145
145
|
S,
|
|
146
146
|
V
|
|
147
|
-
] }), t[55] =
|
|
148
|
-
let
|
|
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] !==
|
|
147
|
+
] }), t[55] = L, t[56] = A, t[57] = S, t[58] = V, t[59] = E) : E = t[59];
|
|
148
|
+
let w;
|
|
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] !== p ? (w = /* @__PURE__ */ o.jsxs(B, { width: q, height: H, viewBox: T, style: p, direction: G, ref: M, children: [
|
|
150
150
|
O,
|
|
151
151
|
N,
|
|
152
152
|
E
|
|
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] =
|
|
154
|
-
let
|
|
155
|
-
t[71] !==
|
|
156
|
-
let
|
|
157
|
-
t[78] !==
|
|
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] = p, t[70] = w) : w = t[70];
|
|
154
|
+
let j;
|
|
155
|
+
t[71] !== c?.tooltip || t[72] !== nt || t[73] !== ut || t[74] !== v || t[75] !== g?.tooltip || t[76] !== Q ? (j = v && Q && nt && ut ? /* @__PURE__ */ o.jsx(Kt, { data: v, body: Q, xPos: nt, yPos: ut, backgroundStyle: g?.tooltip, className: c?.tooltip }) : null, t[71] = c?.tooltip, t[72] = nt, t[73] = ut, t[74] = v, t[75] = g?.tooltip, t[76] = Q, t[77] = j) : j = t[77];
|
|
156
|
+
let d;
|
|
157
|
+
t[78] !== c?.modal || t[79] !== $ || t[80] !== D ? (d = $ && D !== void 0 ? /* @__PURE__ */ o.jsx(te, { body: $, data: D, setData: yt, className: c?.modal }) : null, t[78] = c?.modal, t[79] = $, t[80] = D, t[81] = d) : d = t[81];
|
|
158
158
|
let tt;
|
|
159
|
-
return t[82] !==
|
|
160
|
-
b,
|
|
159
|
+
return t[82] !== w || t[83] !== j || t[84] !== d ? (tt = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
161
160
|
w,
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
j,
|
|
162
|
+
d
|
|
163
|
+
] }), t[82] = w, t[83] = j, t[84] = d, t[85] = tt) : tt = t[85], tt;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return !
|
|
165
|
+
function ge(u) {
|
|
166
|
+
return !Rt(u.value);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const t =
|
|
170
|
-
data:
|
|
168
|
+
function Pe(u) {
|
|
169
|
+
const t = Ft.c(87), {
|
|
170
|
+
data: a,
|
|
171
171
|
graphTitle: z,
|
|
172
|
-
colors:
|
|
172
|
+
colors: x,
|
|
173
173
|
sources: U,
|
|
174
|
-
graphDescription:
|
|
174
|
+
graphDescription: C,
|
|
175
175
|
showColumnLabels: J,
|
|
176
176
|
leftMargin: K,
|
|
177
|
-
rightMargin:
|
|
178
|
-
truncateBy:
|
|
177
|
+
rightMargin: pt,
|
|
178
|
+
truncateBy: ft,
|
|
179
179
|
height: Q,
|
|
180
180
|
width: s,
|
|
181
|
-
scaleType:
|
|
182
|
-
colorDomain:
|
|
181
|
+
scaleType: Mt,
|
|
182
|
+
colorDomain: r,
|
|
183
183
|
footNote: Z,
|
|
184
|
-
colorLegendTitle:
|
|
184
|
+
colorLegendTitle: b,
|
|
185
185
|
padding: I,
|
|
186
186
|
backgroundColor: it,
|
|
187
|
-
topMargin:
|
|
188
|
-
bottomMargin:
|
|
187
|
+
topMargin: lt,
|
|
188
|
+
bottomMargin: xt,
|
|
189
189
|
tooltip: _,
|
|
190
190
|
onSeriesMouseOver: W,
|
|
191
|
-
suffix:
|
|
191
|
+
suffix: vt,
|
|
192
192
|
prefix: $,
|
|
193
|
-
showRowLabels:
|
|
194
|
-
relativeHeight:
|
|
195
|
-
showValues:
|
|
196
|
-
graphID:
|
|
197
|
-
noDataColor:
|
|
193
|
+
showRowLabels: g,
|
|
194
|
+
relativeHeight: c,
|
|
195
|
+
showValues: h,
|
|
196
|
+
graphID: rt,
|
|
197
|
+
noDataColor: Ot,
|
|
198
198
|
showColorScale: st,
|
|
199
199
|
onSeriesMouseClick: k,
|
|
200
200
|
graphDownload: at,
|
|
201
|
-
dataDownload:
|
|
201
|
+
dataDownload: m,
|
|
202
202
|
fillContainer: D,
|
|
203
|
-
language:
|
|
204
|
-
showNAColor:
|
|
205
|
-
minHeight:
|
|
203
|
+
language: yt,
|
|
204
|
+
showNAColor: v,
|
|
205
|
+
minHeight: Ct,
|
|
206
206
|
theme: nt,
|
|
207
207
|
ariaLabel: ct,
|
|
208
208
|
resetSelectionOnDoubleClick: ut,
|
|
209
209
|
detailsOnClick: mt,
|
|
210
|
-
styles:
|
|
211
|
-
classNames:
|
|
210
|
+
styles: n,
|
|
211
|
+
classNames: l,
|
|
212
212
|
animate: B,
|
|
213
213
|
precision: G
|
|
214
|
-
} =
|
|
215
|
-
let
|
|
216
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
217
|
-
const
|
|
218
|
-
e(
|
|
214
|
+
} = u, M = J === void 0 ? !0 : J, O = K === void 0 ? 100 : K, N = pt === void 0 ? 10 : pt, L = ft === void 0 ? 999 : ft, A = it === void 0 ? !1 : it, S = lt === void 0 ? 30 : lt, V = xt === void 0 ? 10 : xt, q = vt === void 0 ? "" : vt, H = $ === void 0 ? "" : $, T = g === void 0 ? !0 : g, p = Ot === void 0 ? f.gray : Ot, E = st === void 0 ? !0 : st, w = at === void 0 ? !1 : at, j = m === void 0 ? !1 : m, d = D === void 0 ? !0 : D, tt = yt === void 0 ? "en" : yt, et = v === void 0 ? !0 : v, ht = Ct === void 0 ? 0 : Ct, i = nt === void 0 ? "light" : nt, X = ut === void 0 ? !0 : ut, R = B === void 0 ? !1 : B, Y = G === void 0 ? 2 : G, [ot, e] = gt(0), [y, F] = gt(0), [P, It] = gt(void 0), St = Et(null), Wt = Et(null);
|
|
215
|
+
let Nt, Lt;
|
|
216
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (Nt = () => {
|
|
217
|
+
const Bt = new ResizeObserver((Gt) => {
|
|
218
|
+
e(Gt[0].target.clientWidth || 620), F(Gt[0].target.clientHeight || 480);
|
|
219
219
|
});
|
|
220
|
-
return
|
|
221
|
-
},
|
|
222
|
-
const
|
|
223
|
-
let Ct;
|
|
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
|
|
227
|
-
}, classNames: {
|
|
228
|
-
title: r?.title,
|
|
229
|
-
description: r?.description
|
|
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];
|
|
220
|
+
return St.current && Bt.observe(St.current), () => Bt.disconnect();
|
|
221
|
+
}, Lt = [], t[0] = Nt, t[1] = Lt) : (Nt = t[0], Lt = t[1]), zt(Nt, Lt);
|
|
222
|
+
const dt = Mt || (typeof r[0] == "string" ? "categorical" : r.length === 2 ? "linear" : "threshold"), Vt = l?.graphContainer, qt = n?.graphContainer, Ht = d ? void 0 : s;
|
|
231
223
|
let bt;
|
|
232
|
-
t[
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
duration: 0,
|
|
240
|
-
once: !0,
|
|
241
|
-
amount: 0
|
|
242
|
-
}, precision: Y }) : null })
|
|
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];
|
|
224
|
+
t[2] !== l?.description || t[3] !== l?.title || t[4] !== a || t[5] !== j || t[6] !== C || t[7] !== w || t[8] !== z || t[9] !== n?.description || t[10] !== n?.title || t[11] !== s ? (bt = z || C || w || j ? /* @__PURE__ */ o.jsx(re, { styles: {
|
|
225
|
+
title: n?.title,
|
|
226
|
+
description: n?.description
|
|
227
|
+
}, classNames: {
|
|
228
|
+
title: l?.title,
|
|
229
|
+
description: l?.description
|
|
230
|
+
}, graphTitle: z, graphDescription: C, width: s, graphDownload: w ? Wt : void 0, dataDownload: j ? a.map(Ce).filter(ye).length > 0 ? a.map(ve).filter(xe) : a.filter(fe) : null }) : null, t[2] = l?.description, t[3] = l?.title, t[4] = a, t[5] = j, t[6] = C, t[7] = w, t[8] = z, t[9] = n?.description, t[10] = n?.title, t[11] = s, t[12] = bt) : bt = t[12];
|
|
244
231
|
let wt;
|
|
245
|
-
t[
|
|
246
|
-
|
|
247
|
-
|
|
232
|
+
t[13] !== l?.colorLegend || t[14] !== r || t[15] !== b || t[16] !== x || t[17] !== a.length || t[18] !== d || t[19] !== p || t[20] !== dt || t[21] !== E || t[22] !== et || t[23] !== i || t[24] !== s ? (wt = E && a.length > 0 ? dt === "categorical" ? /* @__PURE__ */ o.jsx(ae, { width: d ? void 0 : s, colorLegendTitle: b, colors: x || (typeof r[0] == "string" ? f[i].categoricalColors.colors : r.length === 2 ? [f[i].sequentialColors.neutralColorsx09[0], f[i].sequentialColors.neutralColorsx09[8]] : f[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r.map(pe), setSelectedColor: It, showNAColor: et, className: l?.colorLegend }) : dt === "threshold" ? /* @__PURE__ */ o.jsx(ce, { width: d ? void 0 : s, colorLegendTitle: b, colors: x || (typeof r[0] == "string" ? f[i].categoricalColors.colors : r.length === 2 ? [f[i].sequentialColors.neutralColorsx09[0], f[i].sequentialColors.neutralColorsx09[8]] : f[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r, setSelectedColor: It, naColor: p, showNAColor: et }) : /* @__PURE__ */ o.jsx(ne, { width: d ? void 0 : s, colorLegendTitle: b, colors: x || [f[i].sequentialColors.neutralColorsx09[0], f[i].sequentialColors.neutralColorsx09[8]], colorDomain: r, className: l?.colorLegend }) : null, t[13] = l?.colorLegend, t[14] = r, t[15] = b, t[16] = x, t[17] = a.length, t[18] = d, t[19] = p, t[20] = dt, t[21] = E, t[22] = et, t[23] = i, t[24] = s, t[25] = wt) : wt = t[25];
|
|
233
|
+
let jt;
|
|
234
|
+
t[26] !== a.length ? (jt = a.length === 0 && /* @__PURE__ */ o.jsx(ue, {}), t[26] = a.length, t[27] = jt) : jt = t[27];
|
|
235
|
+
let $t;
|
|
236
|
+
t[28] !== R || t[29] !== V || t[30] !== l || t[31] !== r || t[32] !== x || t[33] !== a || t[34] !== mt || t[35] !== d || t[36] !== O || t[37] !== p || t[38] !== k || t[39] !== W || t[40] !== Y || t[41] !== H || t[42] !== X || t[43] !== N || t[44] !== dt || t[45] !== P || t[46] !== M || t[47] !== T || t[48] !== h || t[49] !== n || t[50] !== q || t[51] !== y || t[52] !== ot || t[53] !== i || t[54] !== _ || t[55] !== S || t[56] !== L || t[57] !== s ? ($t = ot && y && a.length > 0 ? /* @__PURE__ */ o.jsx(de, { data: a, colorDomain: r, width: d || !s || ot < s ? ot : s, height: y, colors: x || (typeof r[0] == "string" ? f[i].categoricalColors.colors : r.length === 2 ? [f[i].sequentialColors.neutralColorsx09[0], f[i].sequentialColors.neutralColorsx09[8]] : f[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), noDataColor: p, scaleType: dt, showColumnLabels: M, leftMargin: O, rightMargin: N, topMargin: S, bottomMargin: V, selectedColor: P, truncateBy: L, showRowLabels: T, tooltip: _, onSeriesMouseOver: W, showValues: h, suffix: q, prefix: H, onSeriesMouseClick: k, resetSelectionOnDoubleClick: X, detailsOnClick: mt, styles: n, classNames: l, animate: R === !0 ? {
|
|
237
|
+
duration: 0.5,
|
|
238
|
+
once: !0,
|
|
239
|
+
amount: 0.5
|
|
240
|
+
} : R || {
|
|
241
|
+
duration: 0,
|
|
242
|
+
once: !0,
|
|
243
|
+
amount: 0
|
|
244
|
+
}, precision: Y }) : null, t[28] = R, t[29] = V, t[30] = l, t[31] = r, t[32] = x, t[33] = a, t[34] = mt, t[35] = d, t[36] = O, t[37] = p, t[38] = k, t[39] = W, t[40] = Y, t[41] = H, t[42] = X, t[43] = N, t[44] = dt, t[45] = P, t[46] = M, t[47] = T, t[48] = h, t[49] = n, t[50] = q, t[51] = y, t[52] = ot, t[53] = i, t[54] = _, t[55] = S, t[56] = L, t[57] = s, t[58] = $t) : $t = t[58];
|
|
245
|
+
let kt;
|
|
246
|
+
t[59] !== jt || t[60] !== $t ? (kt = /* @__PURE__ */ o.jsxs(me, { ref: St, children: [
|
|
247
|
+
jt,
|
|
248
|
+
$t
|
|
249
|
+
] }), t[59] = jt, t[60] = $t, t[61] = kt) : kt = t[61];
|
|
250
|
+
let Dt;
|
|
251
|
+
t[62] !== l?.footnote || t[63] !== l?.source || t[64] !== Z || t[65] !== U || t[66] !== n?.footnote || t[67] !== n?.source || t[68] !== s ? (Dt = U || Z ? /* @__PURE__ */ o.jsx(se, { styles: {
|
|
252
|
+
footnote: n?.footnote,
|
|
253
|
+
source: n?.source
|
|
248
254
|
}, classNames: {
|
|
249
|
-
footnote:
|
|
250
|
-
source:
|
|
251
|
-
}, sources: U, footNote: Z, width: s }) : null, t[
|
|
252
|
-
let
|
|
253
|
-
return t[
|
|
254
|
-
Ct,
|
|
255
|
+
footnote: l?.footnote,
|
|
256
|
+
source: l?.source
|
|
257
|
+
}, sources: U, footNote: Z, width: s }) : null, t[62] = l?.footnote, t[63] = l?.source, t[64] = Z, t[65] = U, t[66] = n?.footnote, t[67] = n?.source, t[68] = s, t[69] = Dt) : Dt = t[69];
|
|
258
|
+
let At;
|
|
259
|
+
return t[70] !== ct || t[71] !== A || t[72] !== rt || t[73] !== Q || t[74] !== tt || t[75] !== ht || t[76] !== I || t[77] !== c || t[78] !== Vt || t[79] !== qt || t[80] !== Ht || t[81] !== bt || t[82] !== wt || t[83] !== kt || t[84] !== Dt || t[85] !== i ? (At = /* @__PURE__ */ o.jsxs(he, { className: Vt, style: qt, id: rt, ref: Wt, "aria-label": ct, backgroundColor: A, theme: i, language: tt, minHeight: ht, width: Ht, height: Q, relativeHeight: c, padding: I, children: [
|
|
255
260
|
bt,
|
|
256
|
-
wt
|
|
257
|
-
|
|
261
|
+
wt,
|
|
262
|
+
kt,
|
|
263
|
+
Dt
|
|
264
|
+
] }), t[70] = ct, t[71] = A, t[72] = rt, t[73] = Q, t[74] = tt, t[75] = ht, t[76] = I, t[77] = c, t[78] = Vt, t[79] = qt, t[80] = Ht, t[81] = bt, t[82] = wt, t[83] = kt, t[84] = Dt, t[85] = i, t[86] = At) : At = t[86], At;
|
|
258
265
|
}
|
|
259
|
-
function
|
|
260
|
-
return `${
|
|
266
|
+
function pe(u) {
|
|
267
|
+
return `${u}`;
|
|
261
268
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
269
|
+
function fe(u) {
|
|
270
|
+
return u !== void 0;
|
|
264
271
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
272
|
+
function xe(u) {
|
|
273
|
+
return u !== void 0;
|
|
267
274
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
275
|
+
function ve(u) {
|
|
276
|
+
return u.data;
|
|
270
277
|
}
|
|
271
|
-
function
|
|
272
|
-
return
|
|
278
|
+
function ye(u) {
|
|
279
|
+
return u !== void 0;
|
|
273
280
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
281
|
+
function Ce(u) {
|
|
282
|
+
return u.data;
|
|
276
283
|
}
|
|
277
284
|
export {
|
|
278
|
-
|
|
285
|
+
Pe as HeatMap
|
|
279
286
|
};
|
|
280
287
|
//# sourceMappingURL=HeatMap.js.map
|