@undp/data-viz 1.3.1 → 1.4.1
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/DataCards.cjs +21 -1
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +622 -12
- package/dist/DataCards.js.map +1 -1
- package/dist/GraphEl-B6SoGRFW.cjs +2 -0
- package/dist/GraphEl-B6SoGRFW.cjs.map +1 -0
- package/dist/{checkIfMultiple-BB7PlCNh.js → GraphEl-Cw2tDUb3.js} +129 -1163
- package/dist/GraphEl-Cw2tDUb3.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +2 -4
- package/dist/GriddedGraphs.js +9 -8
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +2 -4
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +16 -12
- package/dist/MultiGraphDashboard.js +2 -2
- package/dist/MultiGraphDashboardFromConfig.d.ts +16 -12
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +2 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +566 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +353 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +2 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +570 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +38 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -0
- package/dist/PerformanceIntensiveScrollStory.cjs +2 -0
- package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +493 -0
- package/dist/PerformanceIntensiveScrollStory.js +122 -0
- package/dist/PerformanceIntensiveScrollStory.js.map +1 -0
- package/dist/ScrollStory.cjs.map +1 -1
- package/dist/ScrollStory.d.ts +3 -5
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -5
- package/dist/SingleGraphDashboard.js +194 -194
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -4
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +2 -0
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +428 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +185 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +432 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +540 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +610 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +2 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +543 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +35 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -0
- package/dist/Types.d.ts +38 -11
- package/dist/checkIfMultiple-CYp3vADF.js +912 -0
- package/dist/checkIfMultiple-CYp3vADF.js.map +1 -0
- package/dist/checkIfMultiple-Do4kADNr.cjs +12 -0
- package/dist/checkIfMultiple-Do4kADNr.cjs.map +1 -0
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.d.ts +7 -5
- package/dist/getSchema.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +330 -163
- package/dist/index.js +150 -136
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.d.ts +5 -5
- package/dist/transformData.js +2 -2
- package/dist/{transformDataForAggregation-DAQJWGNL.js → transformDataForAggregation-CdcwlnNe.js} +2 -2
- package/dist/transformDataForAggregation-CdcwlnNe.js.map +1 -0
- package/dist/{transformDataForAggregation-BUGJnson.cjs → transformDataForAggregation-Du-Hei-W.cjs} +2 -2
- package/dist/transformDataForAggregation-Du-Hei-W.cjs.map +1 -0
- package/dist/{transformDataForGraphFromFile-DdNiOWeC.js → transformDataForGraphFromFile-CA0rw80A.js} +2 -2
- package/dist/{transformDataForGraphFromFile-DdNiOWeC.js.map → transformDataForGraphFromFile-CA0rw80A.js.map} +1 -1
- package/dist/{transformDataForGraphFromFile-CrntpaMU.cjs → transformDataForGraphFromFile-D9G3ToQf.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CrntpaMU.cjs.map → transformDataForGraphFromFile-D9G3ToQf.cjs.map} +1 -1
- package/dist/transformDataForSelect-D8AuvYdf.js +14 -0
- package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -0
- package/dist/transformDataForSelect-YmStusCI.cjs +2 -0
- package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -0
- package/dist/validateSchema.d.ts +2 -4
- package/package.json +37 -2
- package/dist/checkIfMultiple-BB7PlCNh.js.map +0 -1
- package/dist/checkIfMultiple-D5ysrI7G.cjs +0 -12
- package/dist/checkIfMultiple-D5ysrI7G.cjs.map +0 -1
- package/dist/index-D9h2WYDS.cjs +0 -22
- package/dist/index-D9h2WYDS.cjs.map +0 -1
- package/dist/index-OCoyy1wG.js +0 -635
- package/dist/index-OCoyy1wG.js.map +0 -1
- package/dist/transformDataForAggregation-BUGJnson.cjs.map +0 -1
- package/dist/transformDataForAggregation-DAQJWGNL.js.map +0 -1
|
@@ -1,956 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
import { D as fa } from "./index-OCoyy1wG.js";
|
|
37
|
-
import { StackedBarGraph as ba, GroupedBarGraph as Da, SimpleBarGraph as Ca } from "./BarGraph.js";
|
|
38
|
-
import { DumbbellChart as wa } from "./DumbbellChart.js";
|
|
39
|
-
import { StripChart as ka } from "./StripChart.js";
|
|
40
|
-
import { BeeSwarmChart as ya } from "./BeeSwarmChart.js";
|
|
41
|
-
import { RadarChart as xa } from "./RadarChart.js";
|
|
42
|
-
import { BulletChart as Ta } from "./BulletChart.js";
|
|
43
|
-
import { ThreeDGlobe as La } from "./ThreeDGlobe.js";
|
|
44
|
-
var va = "Label", ee = c.forwardRef((o, e) => /* @__PURE__ */ n.jsx(
|
|
45
|
-
M.label,
|
|
46
|
-
{
|
|
47
|
-
...o,
|
|
48
|
-
ref: e,
|
|
49
|
-
onMouseDown: (t) => {
|
|
50
|
-
t.target.closest("button, input, select, textarea") || (o.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
));
|
|
54
|
-
ee.displayName = va;
|
|
55
|
-
var ae = ee;
|
|
56
|
-
const z = x.forwardRef(({ className: o, ...e }, t) => /* @__PURE__ */ n.jsx(
|
|
57
|
-
ae,
|
|
58
|
-
{
|
|
59
|
-
...e,
|
|
60
|
-
ref: t,
|
|
61
|
-
className: L(
|
|
62
|
-
"text-sm m-0 p-0 block text-primary-gray-700 dark:text-primary-white peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
63
|
-
o
|
|
64
|
-
)
|
|
65
|
-
}
|
|
66
|
-
));
|
|
67
|
-
z.displayName = ae.displayName;
|
|
68
|
-
function oe(o) {
|
|
69
|
-
const e = c.useRef({ value: o, previous: o });
|
|
70
|
-
return c.useMemo(() => (e.current.value !== o && (e.current.previous = e.current.value, e.current.value = o), e.current.previous), [o]);
|
|
71
|
-
}
|
|
72
|
-
function te(o) {
|
|
73
|
-
const [e, t] = c.useState(void 0);
|
|
74
|
-
return Fe(() => {
|
|
75
|
-
if (o) {
|
|
76
|
-
t({ width: o.offsetWidth, height: o.offsetHeight });
|
|
77
|
-
const a = new ResizeObserver((l) => {
|
|
78
|
-
if (!Array.isArray(l) || !l.length)
|
|
79
|
-
return;
|
|
80
|
-
const r = l[0];
|
|
81
|
-
let i, s;
|
|
82
|
-
if ("borderBoxSize" in r) {
|
|
83
|
-
const h = r.borderBoxSize, g = Array.isArray(h) ? h[0] : h;
|
|
84
|
-
i = g.inlineSize, s = g.blockSize;
|
|
85
|
-
} else
|
|
86
|
-
i = o.offsetWidth, s = o.offsetHeight;
|
|
87
|
-
t({ width: i, height: s });
|
|
88
|
-
});
|
|
89
|
-
return a.observe(o, { box: "border-box" }), () => a.unobserve(o);
|
|
90
|
-
} else
|
|
91
|
-
t(void 0);
|
|
92
|
-
}, [o]), e;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @license lucide-react v0.488.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/
|
|
100
|
-
const Ma = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Oa = J("check", Ma);
|
|
101
|
-
var j = "Checkbox", [Na, at] = B(j), [Sa, G] = Na(j);
|
|
102
|
-
function Va(o) {
|
|
103
|
-
const {
|
|
104
|
-
__scopeCheckbox: e,
|
|
105
|
-
checked: t,
|
|
106
|
-
children: a,
|
|
107
|
-
defaultChecked: l,
|
|
108
|
-
disabled: r,
|
|
109
|
-
form: i,
|
|
110
|
-
name: s,
|
|
111
|
-
onCheckedChange: h,
|
|
112
|
-
required: g,
|
|
113
|
-
value: u = "on",
|
|
114
|
-
// @ts-expect-error
|
|
115
|
-
internal_do_not_use_render: p
|
|
116
|
-
} = o, [f, d] = _({
|
|
117
|
-
prop: t,
|
|
118
|
-
defaultProp: l ?? !1,
|
|
119
|
-
onChange: h,
|
|
120
|
-
caller: j
|
|
121
|
-
}), [D, k] = c.useState(null), [m, C] = c.useState(null), w = c.useRef(!1), y = D ? !!i || !!D.closest("form") : (
|
|
122
|
-
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
123
|
-
!0
|
|
124
|
-
), N = {
|
|
125
|
-
checked: f,
|
|
126
|
-
disabled: r,
|
|
127
|
-
setChecked: d,
|
|
128
|
-
control: D,
|
|
129
|
-
setControl: k,
|
|
130
|
-
name: s,
|
|
131
|
-
form: i,
|
|
132
|
-
value: u,
|
|
133
|
-
hasConsumerStoppedPropagationRef: w,
|
|
134
|
-
required: g,
|
|
135
|
-
defaultChecked: O(l) ? !1 : l,
|
|
136
|
-
isFormControl: y,
|
|
137
|
-
bubbleInput: m,
|
|
138
|
-
setBubbleInput: C
|
|
139
|
-
};
|
|
140
|
-
return /* @__PURE__ */ n.jsx(
|
|
141
|
-
Sa,
|
|
142
|
-
{
|
|
143
|
-
scope: e,
|
|
144
|
-
...N,
|
|
145
|
-
children: Ha(p) ? p(N) : a
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
var re = "CheckboxTrigger", ie = c.forwardRef(
|
|
150
|
-
({ __scopeCheckbox: o, onKeyDown: e, onClick: t, ...a }, l) => {
|
|
151
|
-
const {
|
|
152
|
-
control: r,
|
|
153
|
-
value: i,
|
|
154
|
-
disabled: s,
|
|
155
|
-
checked: h,
|
|
156
|
-
required: g,
|
|
157
|
-
setControl: u,
|
|
158
|
-
setChecked: p,
|
|
159
|
-
hasConsumerStoppedPropagationRef: f,
|
|
160
|
-
isFormControl: d,
|
|
161
|
-
bubbleInput: D
|
|
162
|
-
} = G(re, o), k = V(l, u), m = c.useRef(h);
|
|
163
|
-
return c.useEffect(() => {
|
|
164
|
-
const C = r?.form;
|
|
165
|
-
if (C) {
|
|
166
|
-
const w = () => p(m.current);
|
|
167
|
-
return C.addEventListener("reset", w), () => C.removeEventListener("reset", w);
|
|
168
|
-
}
|
|
169
|
-
}, [r, p]), /* @__PURE__ */ n.jsx(
|
|
170
|
-
M.button,
|
|
171
|
-
{
|
|
172
|
-
type: "button",
|
|
173
|
-
role: "checkbox",
|
|
174
|
-
"aria-checked": O(h) ? "mixed" : h,
|
|
175
|
-
"aria-required": g,
|
|
176
|
-
"data-state": de(h),
|
|
177
|
-
"data-disabled": s ? "" : void 0,
|
|
178
|
-
disabled: s,
|
|
179
|
-
value: i,
|
|
180
|
-
...a,
|
|
181
|
-
ref: k,
|
|
182
|
-
onKeyDown: v(e, (C) => {
|
|
183
|
-
C.key === "Enter" && C.preventDefault();
|
|
184
|
-
}),
|
|
185
|
-
onClick: v(t, (C) => {
|
|
186
|
-
p((w) => O(w) ? !0 : !w), D && d && (f.current = C.isPropagationStopped(), f.current || C.stopPropagation());
|
|
187
|
-
})
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
ie.displayName = re;
|
|
193
|
-
var X = c.forwardRef(
|
|
194
|
-
(o, e) => {
|
|
195
|
-
const {
|
|
196
|
-
__scopeCheckbox: t,
|
|
197
|
-
name: a,
|
|
198
|
-
checked: l,
|
|
199
|
-
defaultChecked: r,
|
|
200
|
-
required: i,
|
|
201
|
-
disabled: s,
|
|
202
|
-
value: h,
|
|
203
|
-
onCheckedChange: g,
|
|
204
|
-
form: u,
|
|
205
|
-
...p
|
|
206
|
-
} = o;
|
|
207
|
-
return /* @__PURE__ */ n.jsx(
|
|
208
|
-
Va,
|
|
209
|
-
{
|
|
210
|
-
__scopeCheckbox: t,
|
|
211
|
-
checked: l,
|
|
212
|
-
defaultChecked: r,
|
|
213
|
-
disabled: s,
|
|
214
|
-
required: i,
|
|
215
|
-
onCheckedChange: g,
|
|
216
|
-
name: a,
|
|
217
|
-
form: u,
|
|
218
|
-
value: h,
|
|
219
|
-
internal_do_not_use_render: ({ isFormControl: f }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
220
|
-
/* @__PURE__ */ n.jsx(
|
|
221
|
-
ie,
|
|
222
|
-
{
|
|
223
|
-
...p,
|
|
224
|
-
ref: e,
|
|
225
|
-
__scopeCheckbox: t
|
|
226
|
-
}
|
|
227
|
-
),
|
|
228
|
-
f && /* @__PURE__ */ n.jsx(
|
|
229
|
-
ce,
|
|
230
|
-
{
|
|
231
|
-
__scopeCheckbox: t
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
] })
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
);
|
|
239
|
-
X.displayName = j;
|
|
240
|
-
var le = "CheckboxIndicator", ne = c.forwardRef(
|
|
241
|
-
(o, e) => {
|
|
242
|
-
const { __scopeCheckbox: t, forceMount: a, ...l } = o, r = G(le, t);
|
|
243
|
-
return /* @__PURE__ */ n.jsx(
|
|
244
|
-
Q,
|
|
245
|
-
{
|
|
246
|
-
present: a || O(r.checked) || r.checked === !0,
|
|
247
|
-
children: /* @__PURE__ */ n.jsx(
|
|
248
|
-
M.span,
|
|
249
|
-
{
|
|
250
|
-
"data-state": de(r.checked),
|
|
251
|
-
"data-disabled": r.disabled ? "" : void 0,
|
|
252
|
-
...l,
|
|
253
|
-
ref: e,
|
|
254
|
-
style: { pointerEvents: "none", ...o.style }
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
}
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
ne.displayName = le;
|
|
262
|
-
var se = "CheckboxBubbleInput", ce = c.forwardRef(
|
|
263
|
-
({ __scopeCheckbox: o, ...e }, t) => {
|
|
264
|
-
const {
|
|
265
|
-
control: a,
|
|
266
|
-
hasConsumerStoppedPropagationRef: l,
|
|
267
|
-
checked: r,
|
|
268
|
-
defaultChecked: i,
|
|
269
|
-
required: s,
|
|
270
|
-
disabled: h,
|
|
271
|
-
name: g,
|
|
272
|
-
value: u,
|
|
273
|
-
form: p,
|
|
274
|
-
bubbleInput: f,
|
|
275
|
-
setBubbleInput: d
|
|
276
|
-
} = G(se, o), D = V(t, d), k = oe(r), m = te(a);
|
|
277
|
-
c.useEffect(() => {
|
|
278
|
-
const w = f;
|
|
279
|
-
if (!w) return;
|
|
280
|
-
const y = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
281
|
-
y,
|
|
282
|
-
"checked"
|
|
283
|
-
).set, H = !l.current;
|
|
284
|
-
if (k !== r && N) {
|
|
285
|
-
const F = new Event("click", { bubbles: H });
|
|
286
|
-
w.indeterminate = O(r), N.call(w, O(r) ? !1 : r), w.dispatchEvent(F);
|
|
287
|
-
}
|
|
288
|
-
}, [f, k, r, l]);
|
|
289
|
-
const C = c.useRef(O(r) ? !1 : r);
|
|
290
|
-
return /* @__PURE__ */ n.jsx(
|
|
291
|
-
M.input,
|
|
292
|
-
{
|
|
293
|
-
type: "checkbox",
|
|
294
|
-
"aria-hidden": !0,
|
|
295
|
-
defaultChecked: i ?? C.current,
|
|
296
|
-
required: s,
|
|
297
|
-
disabled: h,
|
|
298
|
-
name: g,
|
|
299
|
-
value: u,
|
|
300
|
-
form: p,
|
|
301
|
-
...e,
|
|
302
|
-
tabIndex: -1,
|
|
303
|
-
ref: D,
|
|
304
|
-
style: {
|
|
305
|
-
...e.style,
|
|
306
|
-
...m,
|
|
307
|
-
position: "absolute",
|
|
308
|
-
pointerEvents: "none",
|
|
309
|
-
opacity: 0,
|
|
310
|
-
margin: 0,
|
|
311
|
-
// We transform because the input is absolutely positioned but we have
|
|
312
|
-
// rendered it **after** the button. This pulls it back to sit on top
|
|
313
|
-
// of the button.
|
|
314
|
-
transform: "translateX(-100%)"
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
);
|
|
320
|
-
ce.displayName = se;
|
|
321
|
-
function Ha(o) {
|
|
322
|
-
return typeof o == "function";
|
|
323
|
-
}
|
|
324
|
-
function O(o) {
|
|
325
|
-
return o === "indeterminate";
|
|
326
|
-
}
|
|
327
|
-
function de(o) {
|
|
328
|
-
return O(o) ? "indeterminate" : o ? "checked" : "unchecked";
|
|
329
|
-
}
|
|
330
|
-
const Ia = P(
|
|
331
|
-
"peer h-4 w-4 shrink-0 rounded-0 bg-primary-white dark:bg-primary-gray-650 focus-visible:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
332
|
-
{
|
|
333
|
-
variants: {
|
|
334
|
-
color: {
|
|
335
|
-
blue: "border-primary-blue-600 hover:bg-primary-blue-100 dark:border-primary-blue-400 dark:hover:bg-primary-blue-200",
|
|
336
|
-
red: "border-accent-dark-red hover:bg-accent-light-red dark:border-accent-red dark:hover:bg-accent-light-red",
|
|
337
|
-
black: "border-primary-gray-700 hover:bg-primary-gray-400 dark:border-primary-gray-100 dark:hover:bg-primary-gray-550",
|
|
338
|
-
custom: "border-custom-color-600 hover:bg-custom-color-100 dark:border-custom-color-400 dark:hover:bg-custom-color-200"
|
|
339
|
-
},
|
|
340
|
-
variant: {
|
|
341
|
-
light: "border",
|
|
342
|
-
normal: "border-2"
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
defaultVariants: {
|
|
346
|
-
color: "red",
|
|
347
|
-
variant: "normal"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
), Aa = P("h-4 w-4", {
|
|
351
|
-
variants: {
|
|
352
|
-
color: {
|
|
353
|
-
blue: "stroke-primary-blue-600 dark:stroke-primary-blue-400",
|
|
354
|
-
red: "stroke-accent-dark-red dark:stroke-accent-red",
|
|
355
|
-
black: "stroke-primary-gray-700 dark:stroke-primary-gray-100",
|
|
356
|
-
custom: "stroke-custom-color-600 dark:stroke-custom-color-400"
|
|
357
|
-
},
|
|
358
|
-
variant: {
|
|
359
|
-
light: "-mt-px",
|
|
360
|
-
normal: "-mt-0.5"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
defaultVariants: {
|
|
364
|
-
color: "red",
|
|
365
|
-
variant: "normal"
|
|
366
|
-
}
|
|
367
|
-
}), he = x.forwardRef(
|
|
368
|
-
({
|
|
369
|
-
className: o,
|
|
370
|
-
labelClassName: e,
|
|
371
|
-
checkBoxClassName: t,
|
|
372
|
-
checkIconClassName: a,
|
|
373
|
-
label: l,
|
|
374
|
-
color: r,
|
|
375
|
-
variant: i,
|
|
376
|
-
...s
|
|
377
|
-
}, h) => {
|
|
378
|
-
const g = s.id || Z();
|
|
379
|
-
return /* @__PURE__ */ n.jsxs("div", { className: L("flex flex-row gap-2 items-center", o), children: [
|
|
380
|
-
/* @__PURE__ */ n.jsx(
|
|
381
|
-
X,
|
|
382
|
-
{
|
|
383
|
-
...s,
|
|
384
|
-
ref: h,
|
|
385
|
-
className: L(Ia({ color: r, variant: i }), t),
|
|
386
|
-
id: g,
|
|
387
|
-
children: /* @__PURE__ */ n.jsx(
|
|
388
|
-
ne,
|
|
389
|
-
{
|
|
390
|
-
className: L("flex items-center justify-center text-current"),
|
|
391
|
-
children: /* @__PURE__ */ n.jsx(
|
|
392
|
-
Oa,
|
|
393
|
-
{
|
|
394
|
-
className: L(Aa({ color: r, variant: i }), a),
|
|
395
|
-
strokeWidth: i === "light" ? 2 : 4
|
|
396
|
-
}
|
|
397
|
-
)
|
|
398
|
-
}
|
|
399
|
-
)
|
|
400
|
-
}
|
|
401
|
-
),
|
|
402
|
-
l ? /* @__PURE__ */ n.jsx(z, { className: L("mt-0.5 text-base!", e), htmlFor: g, children: l }) : null
|
|
403
|
-
] });
|
|
404
|
-
}
|
|
405
|
-
);
|
|
406
|
-
he.displayName = X.displayName;
|
|
407
|
-
const ge = x.createContext({
|
|
408
|
-
selectedValues: [],
|
|
409
|
-
onValueChange: () => {
|
|
410
|
-
},
|
|
411
|
-
color: void 0,
|
|
412
|
-
variant: void 0
|
|
413
|
-
}), Pa = x.forwardRef(
|
|
414
|
-
({ className: o, children: e, value: t, variant: a, color: l, onValueChange: r, defaultValue: i, ...s }, h) => {
|
|
415
|
-
const [g, u] = x.useState(i || []), p = t !== void 0 ? t : g, f = x.useCallback(
|
|
416
|
-
(D, k) => {
|
|
417
|
-
const m = k ? [...p, D] : p.filter((C) => C !== D);
|
|
418
|
-
t === void 0 && u(m), r?.(m);
|
|
419
|
-
},
|
|
420
|
-
[p, t, r]
|
|
421
|
-
), d = x.useMemo(
|
|
422
|
-
() => ({
|
|
423
|
-
selectedValues: p,
|
|
424
|
-
color: l,
|
|
425
|
-
variant: a,
|
|
426
|
-
onValueChange: f
|
|
427
|
-
}),
|
|
428
|
-
[p, f, l, a]
|
|
429
|
-
);
|
|
430
|
-
return /* @__PURE__ */ n.jsx(ge.Provider, { value: d, children: /* @__PURE__ */ n.jsx(
|
|
431
|
-
"div",
|
|
432
|
-
{
|
|
433
|
-
...s,
|
|
434
|
-
className: L("flex gap-x-4 gap-y-2 flex-row flex-wrap", o),
|
|
435
|
-
ref: h,
|
|
436
|
-
children: e
|
|
437
|
-
}
|
|
438
|
-
) });
|
|
439
|
-
}
|
|
440
|
-
);
|
|
441
|
-
Pa.displayName = "CheckboxGroup";
|
|
442
|
-
const Ba = x.forwardRef(({ value: o, ...e }, t) => {
|
|
443
|
-
const { selectedValues: a, onValueChange: l, color: r, variant: i } = x.useContext(ge);
|
|
444
|
-
return /* @__PURE__ */ n.jsx(
|
|
445
|
-
he,
|
|
446
|
-
{
|
|
447
|
-
ref: t,
|
|
448
|
-
...e,
|
|
449
|
-
value: o,
|
|
450
|
-
color: r,
|
|
451
|
-
variant: i,
|
|
452
|
-
checked: a.includes(o),
|
|
453
|
-
onCheckedChange: (s) => l(o, s === !0)
|
|
454
|
-
}
|
|
455
|
-
);
|
|
456
|
-
});
|
|
457
|
-
Ba.displayName = "CheckboxGroupItem";
|
|
458
|
-
var ja = c.createContext(void 0);
|
|
459
|
-
function ue(o) {
|
|
460
|
-
const e = c.useContext(ja);
|
|
461
|
-
return o || e || "ltr";
|
|
462
|
-
}
|
|
463
|
-
var $ = "rovingFocusGroup.onEntryFocus", Ra = { bubbles: !1, cancelable: !0 }, A = "RovingFocusGroup", [E, pe, Fa] = $e(A), [Wa, me] = B(
|
|
464
|
-
A,
|
|
465
|
-
[Fa]
|
|
466
|
-
), [$a, Ea] = Wa(A), fe = c.forwardRef(
|
|
467
|
-
(o, e) => /* @__PURE__ */ n.jsx(E.Provider, { scope: o.__scopeRovingFocusGroup, children: /* @__PURE__ */ n.jsx(E.Slot, { scope: o.__scopeRovingFocusGroup, children: /* @__PURE__ */ n.jsx(_a, { ...o, ref: e }) }) })
|
|
468
|
-
);
|
|
469
|
-
fe.displayName = A;
|
|
470
|
-
var _a = c.forwardRef((o, e) => {
|
|
471
|
-
const {
|
|
472
|
-
__scopeRovingFocusGroup: t,
|
|
473
|
-
orientation: a,
|
|
474
|
-
loop: l = !1,
|
|
475
|
-
dir: r,
|
|
476
|
-
currentTabStopId: i,
|
|
477
|
-
defaultCurrentTabStopId: s,
|
|
478
|
-
onCurrentTabStopIdChange: h,
|
|
479
|
-
onEntryFocus: g,
|
|
480
|
-
preventScrollOnEntryFocus: u = !1,
|
|
481
|
-
...p
|
|
482
|
-
} = o, f = c.useRef(null), d = V(e, f), D = ue(r), [k, m] = _({
|
|
483
|
-
prop: i,
|
|
484
|
-
defaultProp: s ?? null,
|
|
485
|
-
onChange: h,
|
|
486
|
-
caller: A
|
|
487
|
-
}), [C, w] = c.useState(!1), y = We(g), N = pe(t), H = c.useRef(!1), [F, q] = c.useState(0);
|
|
488
|
-
return c.useEffect(() => {
|
|
489
|
-
const T = f.current;
|
|
490
|
-
if (T)
|
|
491
|
-
return T.addEventListener($, y), () => T.removeEventListener($, y);
|
|
492
|
-
}, [y]), /* @__PURE__ */ n.jsx(
|
|
493
|
-
$a,
|
|
494
|
-
{
|
|
495
|
-
scope: t,
|
|
496
|
-
orientation: a,
|
|
497
|
-
dir: D,
|
|
498
|
-
loop: l,
|
|
499
|
-
currentTabStopId: k,
|
|
500
|
-
onItemFocus: c.useCallback(
|
|
501
|
-
(T) => m(T),
|
|
502
|
-
[m]
|
|
503
|
-
),
|
|
504
|
-
onItemShiftTab: c.useCallback(() => w(!0), []),
|
|
505
|
-
onFocusableItemAdd: c.useCallback(
|
|
506
|
-
() => q((T) => T + 1),
|
|
507
|
-
[]
|
|
508
|
-
),
|
|
509
|
-
onFocusableItemRemove: c.useCallback(
|
|
510
|
-
() => q((T) => T - 1),
|
|
511
|
-
[]
|
|
512
|
-
),
|
|
513
|
-
children: /* @__PURE__ */ n.jsx(
|
|
514
|
-
M.div,
|
|
515
|
-
{
|
|
516
|
-
tabIndex: C || F === 0 ? -1 : 0,
|
|
517
|
-
"data-orientation": a,
|
|
518
|
-
...p,
|
|
519
|
-
ref: d,
|
|
520
|
-
style: { outline: "none", ...o.style },
|
|
521
|
-
onMouseDown: v(o.onMouseDown, () => {
|
|
522
|
-
H.current = !0;
|
|
523
|
-
}),
|
|
524
|
-
onFocus: v(o.onFocus, (T) => {
|
|
525
|
-
const Pe = !H.current;
|
|
526
|
-
if (T.target === T.currentTarget && Pe && !C) {
|
|
527
|
-
const K = new CustomEvent($, Ra);
|
|
528
|
-
if (T.currentTarget.dispatchEvent(K), !K.defaultPrevented) {
|
|
529
|
-
const W = N().filter((S) => S.focusable), Be = W.find((S) => S.active), je = W.find((S) => S.id === k), Re = [Be, je, ...W].filter(
|
|
530
|
-
Boolean
|
|
531
|
-
).map((S) => S.ref.current);
|
|
532
|
-
Ce(Re, u);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
H.current = !1;
|
|
536
|
-
}),
|
|
537
|
-
onBlur: v(o.onBlur, () => w(!1))
|
|
538
|
-
}
|
|
539
|
-
)
|
|
540
|
-
}
|
|
541
|
-
);
|
|
542
|
-
}), be = "RovingFocusGroupItem", De = c.forwardRef(
|
|
543
|
-
(o, e) => {
|
|
544
|
-
const {
|
|
545
|
-
__scopeRovingFocusGroup: t,
|
|
546
|
-
focusable: a = !0,
|
|
547
|
-
active: l = !1,
|
|
548
|
-
tabStopId: r,
|
|
549
|
-
children: i,
|
|
550
|
-
...s
|
|
551
|
-
} = o, h = Ee(), g = r || h, u = Ea(be, t), p = u.currentTabStopId === g, f = pe(t), { onFocusableItemAdd: d, onFocusableItemRemove: D, currentTabStopId: k } = u;
|
|
552
|
-
return c.useEffect(() => {
|
|
553
|
-
if (a)
|
|
554
|
-
return d(), () => D();
|
|
555
|
-
}, [a, d, D]), /* @__PURE__ */ n.jsx(
|
|
556
|
-
E.ItemSlot,
|
|
557
|
-
{
|
|
558
|
-
scope: t,
|
|
559
|
-
id: g,
|
|
560
|
-
focusable: a,
|
|
561
|
-
active: l,
|
|
562
|
-
children: /* @__PURE__ */ n.jsx(
|
|
563
|
-
M.span,
|
|
564
|
-
{
|
|
565
|
-
tabIndex: p ? 0 : -1,
|
|
566
|
-
"data-orientation": u.orientation,
|
|
567
|
-
...s,
|
|
568
|
-
ref: e,
|
|
569
|
-
onMouseDown: v(o.onMouseDown, (m) => {
|
|
570
|
-
a ? u.onItemFocus(g) : m.preventDefault();
|
|
571
|
-
}),
|
|
572
|
-
onFocus: v(o.onFocus, () => u.onItemFocus(g)),
|
|
573
|
-
onKeyDown: v(o.onKeyDown, (m) => {
|
|
574
|
-
if (m.key === "Tab" && m.shiftKey) {
|
|
575
|
-
u.onItemShiftTab();
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
578
|
-
if (m.target !== m.currentTarget) return;
|
|
579
|
-
const C = Xa(m, u.orientation, u.dir);
|
|
580
|
-
if (C !== void 0) {
|
|
581
|
-
if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
|
|
582
|
-
m.preventDefault();
|
|
583
|
-
let w = f().filter((y) => y.focusable).map((y) => y.ref.current);
|
|
584
|
-
if (C === "last") w.reverse();
|
|
585
|
-
else if (C === "prev" || C === "next") {
|
|
586
|
-
C === "prev" && w.reverse();
|
|
587
|
-
const y = w.indexOf(m.currentTarget);
|
|
588
|
-
w = u.loop ? Ya(w, y + 1) : w.slice(y + 1);
|
|
589
|
-
}
|
|
590
|
-
setTimeout(() => Ce(w));
|
|
591
|
-
}
|
|
592
|
-
}),
|
|
593
|
-
children: typeof i == "function" ? i({ isCurrentTabStop: p, hasTabStop: k != null }) : i
|
|
594
|
-
}
|
|
595
|
-
)
|
|
596
|
-
}
|
|
597
|
-
);
|
|
598
|
-
}
|
|
599
|
-
);
|
|
600
|
-
De.displayName = be;
|
|
601
|
-
var za = {
|
|
602
|
-
ArrowLeft: "prev",
|
|
603
|
-
ArrowUp: "prev",
|
|
604
|
-
ArrowRight: "next",
|
|
605
|
-
ArrowDown: "next",
|
|
606
|
-
PageUp: "first",
|
|
607
|
-
Home: "first",
|
|
608
|
-
PageDown: "last",
|
|
609
|
-
End: "last"
|
|
610
|
-
};
|
|
611
|
-
function Ga(o, e) {
|
|
612
|
-
return e !== "rtl" ? o : o === "ArrowLeft" ? "ArrowRight" : o === "ArrowRight" ? "ArrowLeft" : o;
|
|
613
|
-
}
|
|
614
|
-
function Xa(o, e, t) {
|
|
615
|
-
const a = Ga(o.key, t);
|
|
616
|
-
if (!(e === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(e === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
|
|
617
|
-
return za[a];
|
|
618
|
-
}
|
|
619
|
-
function Ce(o, e = !1) {
|
|
620
|
-
const t = document.activeElement;
|
|
621
|
-
for (const a of o)
|
|
622
|
-
if (a === t || (a.focus({ preventScroll: e }), document.activeElement !== t)) return;
|
|
623
|
-
}
|
|
624
|
-
function Ya(o, e) {
|
|
625
|
-
return o.map((t, a) => o[(e + a) % o.length]);
|
|
626
|
-
}
|
|
627
|
-
var qa = fe, Ka = De;
|
|
628
|
-
/**
|
|
629
|
-
* @license lucide-react v0.488.0 - ISC
|
|
630
|
-
*
|
|
631
|
-
* This source code is licensed under the ISC license.
|
|
632
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
633
|
-
*/
|
|
634
|
-
const Ua = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Za = J("circle", Ua);
|
|
635
|
-
var Y = "Radio", [Qa, we] = B(Y), [Ja, eo] = Qa(Y), ke = c.forwardRef(
|
|
636
|
-
(o, e) => {
|
|
637
|
-
const {
|
|
638
|
-
__scopeRadio: t,
|
|
639
|
-
name: a,
|
|
640
|
-
checked: l = !1,
|
|
641
|
-
required: r,
|
|
642
|
-
disabled: i,
|
|
643
|
-
value: s = "on",
|
|
644
|
-
onCheck: h,
|
|
645
|
-
form: g,
|
|
646
|
-
...u
|
|
647
|
-
} = o, [p, f] = c.useState(null), d = V(e, (m) => f(m)), D = c.useRef(!1), k = p ? g || !!p.closest("form") : !0;
|
|
648
|
-
return /* @__PURE__ */ n.jsxs(Ja, { scope: t, checked: l, disabled: i, children: [
|
|
649
|
-
/* @__PURE__ */ n.jsx(
|
|
650
|
-
M.button,
|
|
651
|
-
{
|
|
652
|
-
type: "button",
|
|
653
|
-
role: "radio",
|
|
654
|
-
"aria-checked": l,
|
|
655
|
-
"data-state": Le(l),
|
|
656
|
-
"data-disabled": i ? "" : void 0,
|
|
657
|
-
disabled: i,
|
|
658
|
-
value: s,
|
|
659
|
-
...u,
|
|
660
|
-
ref: d,
|
|
661
|
-
onClick: v(o.onClick, (m) => {
|
|
662
|
-
l || h?.(), k && (D.current = m.isPropagationStopped(), D.current || m.stopPropagation());
|
|
663
|
-
})
|
|
664
|
-
}
|
|
665
|
-
),
|
|
666
|
-
k && /* @__PURE__ */ n.jsx(
|
|
667
|
-
Te,
|
|
668
|
-
{
|
|
669
|
-
control: p,
|
|
670
|
-
bubbles: !D.current,
|
|
671
|
-
name: a,
|
|
672
|
-
value: s,
|
|
673
|
-
checked: l,
|
|
674
|
-
required: r,
|
|
675
|
-
disabled: i,
|
|
676
|
-
form: g,
|
|
677
|
-
style: { transform: "translateX(-100%)" }
|
|
678
|
-
}
|
|
679
|
-
)
|
|
680
|
-
] });
|
|
681
|
-
}
|
|
682
|
-
);
|
|
683
|
-
ke.displayName = Y;
|
|
684
|
-
var ye = "RadioIndicator", xe = c.forwardRef(
|
|
685
|
-
(o, e) => {
|
|
686
|
-
const { __scopeRadio: t, forceMount: a, ...l } = o, r = eo(ye, t);
|
|
687
|
-
return /* @__PURE__ */ n.jsx(Q, { present: a || r.checked, children: /* @__PURE__ */ n.jsx(
|
|
688
|
-
M.span,
|
|
689
|
-
{
|
|
690
|
-
"data-state": Le(r.checked),
|
|
691
|
-
"data-disabled": r.disabled ? "" : void 0,
|
|
692
|
-
...l,
|
|
693
|
-
ref: e
|
|
694
|
-
}
|
|
695
|
-
) });
|
|
696
|
-
}
|
|
697
|
-
);
|
|
698
|
-
xe.displayName = ye;
|
|
699
|
-
var ao = "RadioBubbleInput", Te = c.forwardRef(
|
|
700
|
-
({
|
|
701
|
-
__scopeRadio: o,
|
|
702
|
-
control: e,
|
|
703
|
-
checked: t,
|
|
704
|
-
bubbles: a = !0,
|
|
705
|
-
...l
|
|
706
|
-
}, r) => {
|
|
707
|
-
const i = c.useRef(null), s = V(i, r), h = oe(t), g = te(e);
|
|
708
|
-
return c.useEffect(() => {
|
|
709
|
-
const u = i.current;
|
|
710
|
-
if (!u) return;
|
|
711
|
-
const p = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(
|
|
712
|
-
p,
|
|
713
|
-
"checked"
|
|
714
|
-
).set;
|
|
715
|
-
if (h !== t && f) {
|
|
716
|
-
const d = new Event("click", { bubbles: a });
|
|
717
|
-
f.call(u, t), u.dispatchEvent(d);
|
|
718
|
-
}
|
|
719
|
-
}, [h, t, a]), /* @__PURE__ */ n.jsx(
|
|
720
|
-
M.input,
|
|
721
|
-
{
|
|
722
|
-
type: "radio",
|
|
723
|
-
"aria-hidden": !0,
|
|
724
|
-
defaultChecked: t,
|
|
725
|
-
...l,
|
|
726
|
-
tabIndex: -1,
|
|
727
|
-
ref: s,
|
|
728
|
-
style: {
|
|
729
|
-
...l.style,
|
|
730
|
-
...g,
|
|
731
|
-
position: "absolute",
|
|
732
|
-
pointerEvents: "none",
|
|
733
|
-
opacity: 0,
|
|
734
|
-
margin: 0
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
);
|
|
738
|
-
}
|
|
739
|
-
);
|
|
740
|
-
Te.displayName = ao;
|
|
741
|
-
function Le(o) {
|
|
742
|
-
return o ? "checked" : "unchecked";
|
|
743
|
-
}
|
|
744
|
-
var oo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], R = "RadioGroup", [to, ot] = B(R, [
|
|
745
|
-
me,
|
|
746
|
-
we
|
|
747
|
-
]), ve = me(), Me = we(), [ro, io] = to(R), Oe = c.forwardRef(
|
|
748
|
-
(o, e) => {
|
|
749
|
-
const {
|
|
750
|
-
__scopeRadioGroup: t,
|
|
751
|
-
name: a,
|
|
752
|
-
defaultValue: l,
|
|
753
|
-
value: r,
|
|
754
|
-
required: i = !1,
|
|
755
|
-
disabled: s = !1,
|
|
756
|
-
orientation: h,
|
|
757
|
-
dir: g,
|
|
758
|
-
loop: u = !0,
|
|
759
|
-
onValueChange: p,
|
|
760
|
-
...f
|
|
761
|
-
} = o, d = ve(t), D = ue(g), [k, m] = _({
|
|
762
|
-
prop: r,
|
|
763
|
-
defaultProp: l ?? null,
|
|
764
|
-
onChange: p,
|
|
765
|
-
caller: R
|
|
766
|
-
});
|
|
767
|
-
return /* @__PURE__ */ n.jsx(
|
|
768
|
-
ro,
|
|
769
|
-
{
|
|
770
|
-
scope: t,
|
|
771
|
-
name: a,
|
|
772
|
-
required: i,
|
|
773
|
-
disabled: s,
|
|
774
|
-
value: k,
|
|
775
|
-
onValueChange: m,
|
|
776
|
-
children: /* @__PURE__ */ n.jsx(
|
|
777
|
-
qa,
|
|
778
|
-
{
|
|
779
|
-
asChild: !0,
|
|
780
|
-
...d,
|
|
781
|
-
orientation: h,
|
|
782
|
-
dir: D,
|
|
783
|
-
loop: u,
|
|
784
|
-
children: /* @__PURE__ */ n.jsx(
|
|
785
|
-
M.div,
|
|
786
|
-
{
|
|
787
|
-
role: "radiogroup",
|
|
788
|
-
"aria-required": i,
|
|
789
|
-
"aria-orientation": h,
|
|
790
|
-
"data-disabled": s ? "" : void 0,
|
|
791
|
-
dir: D,
|
|
792
|
-
...f,
|
|
793
|
-
ref: e
|
|
794
|
-
}
|
|
795
|
-
)
|
|
796
|
-
}
|
|
797
|
-
)
|
|
798
|
-
}
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
);
|
|
802
|
-
Oe.displayName = R;
|
|
803
|
-
var Ne = "RadioGroupItem", Se = c.forwardRef(
|
|
804
|
-
(o, e) => {
|
|
805
|
-
const { __scopeRadioGroup: t, disabled: a, ...l } = o, r = io(Ne, t), i = r.disabled || a, s = ve(t), h = Me(t), g = c.useRef(null), u = V(e, g), p = r.value === l.value, f = c.useRef(!1);
|
|
806
|
-
return c.useEffect(() => {
|
|
807
|
-
const d = (k) => {
|
|
808
|
-
oo.includes(k.key) && (f.current = !0);
|
|
809
|
-
}, D = () => f.current = !1;
|
|
810
|
-
return document.addEventListener("keydown", d), document.addEventListener("keyup", D), () => {
|
|
811
|
-
document.removeEventListener("keydown", d), document.removeEventListener("keyup", D);
|
|
812
|
-
};
|
|
813
|
-
}, []), /* @__PURE__ */ n.jsx(
|
|
814
|
-
Ka,
|
|
815
|
-
{
|
|
816
|
-
asChild: !0,
|
|
817
|
-
...s,
|
|
818
|
-
focusable: !i,
|
|
819
|
-
active: p,
|
|
820
|
-
children: /* @__PURE__ */ n.jsx(
|
|
821
|
-
ke,
|
|
822
|
-
{
|
|
823
|
-
disabled: i,
|
|
824
|
-
required: r.required,
|
|
825
|
-
checked: p,
|
|
826
|
-
...h,
|
|
827
|
-
...l,
|
|
828
|
-
name: r.name,
|
|
829
|
-
ref: u,
|
|
830
|
-
onCheck: () => r.onValueChange(l.value),
|
|
831
|
-
onKeyDown: v((d) => {
|
|
832
|
-
d.key === "Enter" && d.preventDefault();
|
|
833
|
-
}),
|
|
834
|
-
onFocus: v(l.onFocus, () => {
|
|
835
|
-
f.current && g.current?.click();
|
|
836
|
-
})
|
|
837
|
-
}
|
|
838
|
-
)
|
|
839
|
-
}
|
|
840
|
-
);
|
|
841
|
-
}
|
|
842
|
-
);
|
|
843
|
-
Se.displayName = Ne;
|
|
844
|
-
var lo = "RadioGroupIndicator", Ve = c.forwardRef(
|
|
845
|
-
(o, e) => {
|
|
846
|
-
const { __scopeRadioGroup: t, ...a } = o, l = Me(t);
|
|
847
|
-
return /* @__PURE__ */ n.jsx(xe, { ...l, ...a, ref: e });
|
|
848
|
-
}
|
|
849
|
-
);
|
|
850
|
-
Ve.displayName = lo;
|
|
851
|
-
var He = Oe, Ie = Se, no = Ve;
|
|
852
|
-
const so = P(
|
|
853
|
-
"aspect-square h-4 w-4 bg-primary-white dark:bg-primary-gray-650 rounded-full text-primary-gray-700 dark:text-primary-white shadow-sm focus:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
854
|
-
{
|
|
855
|
-
variants: {
|
|
856
|
-
color: {
|
|
857
|
-
blue: "border-primary-blue-600 hover:bg-primary-blue-100 dark:border-primary-blue-400 dark:hover:bg-primary-blue-200",
|
|
858
|
-
red: "border-accent-dark-red hover:bg-accent-light-red dark:border-accent-red dark:hover:bg-accent-light-red",
|
|
859
|
-
black: "border-primary-gray-700 hover:bg-primary-gray-400 dark:border-primary-gray-100 dark:hover:bg-primary-gray-550",
|
|
860
|
-
custom: "border-custom-color-600 hover:bg-custom-color-100 dark:border-custom-color-400 dark:hover:bg-custom-color-200"
|
|
861
|
-
},
|
|
862
|
-
variant: {
|
|
863
|
-
light: "border",
|
|
864
|
-
normal: "border-2"
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
|
-
defaultVariants: {
|
|
868
|
-
color: "red",
|
|
869
|
-
variant: "normal"
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
), co = P("stroke-0", {
|
|
873
|
-
variants: {
|
|
874
|
-
color: {
|
|
875
|
-
blue: "fill-primary-blue-600 dark:fill-primary-blue-400",
|
|
876
|
-
red: "fill-accent-dark-red dark:fill-accent-red",
|
|
877
|
-
black: "fill-primary-gray-700 dark:fill-primary-gray-100",
|
|
878
|
-
custom: "fill-custom-color-600 dark:fill-custom-color-400"
|
|
879
|
-
},
|
|
880
|
-
variant: {
|
|
881
|
-
light: "h-1.5 w-1.5",
|
|
882
|
-
normal: "h-2.5 w-2.5"
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
defaultVariants: {
|
|
886
|
-
color: "red",
|
|
887
|
-
variant: "normal"
|
|
888
|
-
}
|
|
889
|
-
}), Ae = x.createContext({
|
|
890
|
-
color: null,
|
|
891
|
-
variant: null
|
|
892
|
-
}), ho = x.forwardRef(({ className: o, color: e, variant: t, ...a }, l) => {
|
|
893
|
-
const r = x.useMemo(
|
|
894
|
-
() => ({
|
|
895
|
-
color: e,
|
|
896
|
-
variant: t
|
|
897
|
-
}),
|
|
898
|
-
[e, t]
|
|
899
|
-
);
|
|
900
|
-
return /* @__PURE__ */ n.jsx(Ae.Provider, { value: r, children: /* @__PURE__ */ n.jsx(
|
|
901
|
-
He,
|
|
902
|
-
{
|
|
903
|
-
...a,
|
|
904
|
-
className: L("flex gap-x-4 gap-y-2 flex-row flex-wrap rtl:[direction:rtl]", o),
|
|
905
|
-
ref: l
|
|
906
|
-
}
|
|
907
|
-
) });
|
|
908
|
-
});
|
|
909
|
-
ho.displayName = He.displayName;
|
|
910
|
-
const go = x.forwardRef(({ className: o, radioClassName: e, labelClassName: t, label: a, ...l }, r) => {
|
|
911
|
-
const i = l.id || Z(), { color: s, variant: h } = x.useContext(Ae);
|
|
912
|
-
return /* @__PURE__ */ n.jsxs("div", { className: L("flex flex-row gap-2 items-center", o), children: [
|
|
913
|
-
/* @__PURE__ */ n.jsx(
|
|
914
|
-
Ie,
|
|
915
|
-
{
|
|
916
|
-
...l,
|
|
917
|
-
ref: r,
|
|
918
|
-
className: L(so({ color: s, variant: h }), e),
|
|
919
|
-
id: i,
|
|
920
|
-
children: /* @__PURE__ */ n.jsx(no, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Za, { className: co({ color: s, variant: h }) }) })
|
|
921
|
-
}
|
|
922
|
-
),
|
|
923
|
-
/* @__PURE__ */ n.jsx(z, { className: L("mt-0.5 text-base!", t), htmlFor: i, children: a })
|
|
924
|
-
] });
|
|
925
|
-
});
|
|
926
|
-
go.displayName = Ie.displayName;
|
|
927
|
-
function b(o, e, t) {
|
|
928
|
-
return e.findIndex((a) => a.chartConfigId === o) === -1 ? void 0 : typeof e[e.findIndex((a) => a.chartConfigId === o)].columnId == "object" ? e[e.findIndex((a) => a.chartConfigId === o)].columnId.map(
|
|
929
|
-
(a) => t.findIndex((l) => l.value === a) === -1 ? a : t[t.findIndex((l) => l.value === a)].label
|
|
930
|
-
) : t.findIndex(
|
|
931
|
-
(a) => a.value === e[e.findIndex((l) => l.chartConfigId === o)].columnId
|
|
932
|
-
) === -1 ? e[e.findIndex((a) => a.chartConfigId === o)].columnId : t[t.findIndex(
|
|
933
|
-
(a) => a.value === e[e.findIndex((l) => l.chartConfigId === o)].columnId
|
|
934
|
-
)].label;
|
|
935
|
-
}
|
|
936
|
-
function tt(o) {
|
|
1
|
+
import { j as n } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
|
+
import { u as h } from "./Typography-Ctgfl1J5.js";
|
|
3
|
+
import { ButterflyChart as D } from "./ButterflyChart.js";
|
|
4
|
+
import { C as b } from "./index-BVnYktl4.js";
|
|
5
|
+
import { DataTable as C } from "./DataTable.js";
|
|
6
|
+
import { DonutChart as w } from "./DonutChart.js";
|
|
7
|
+
import { HeatMap as T } from "./HeatMap.js";
|
|
8
|
+
import { Histogram as k } from "./Histogram.js";
|
|
9
|
+
import { DualAxisLineChart as x } from "./DualAxisLineChart.js";
|
|
10
|
+
import { SimpleLineChart as y } from "./SimpleLineChart.js";
|
|
11
|
+
import { MultiLineChart as L } from "./MultiLineChart.js";
|
|
12
|
+
import { MultiLineAltChart as M } from "./MultiLineAltChart.js";
|
|
13
|
+
import { SparkLine as O } from "./SparkLine.js";
|
|
14
|
+
import { BiVariateChoroplethMap as N } from "./BiVariateChoroplethMap.js";
|
|
15
|
+
import { ChoroplethMap as S } from "./ChoroplethMap.js";
|
|
16
|
+
import { DotDensityMap as V } from "./DotDensityMap.js";
|
|
17
|
+
import { ParetoChart as H } from "./ParetoChart.js";
|
|
18
|
+
import { ScatterPlot as A } from "./ScatterPlot.js";
|
|
19
|
+
import { SlopeChart as v } from "./SlopeChart.js";
|
|
20
|
+
import { AreaChart as B } from "./AreaChart.js";
|
|
21
|
+
import { StatCardFromData as I } from "./StatCardFromData.js";
|
|
22
|
+
import { TreeMapGraph as P } from "./TreeMapGraph.js";
|
|
23
|
+
import { UnitChart as W } from "./UnitChart.js";
|
|
24
|
+
import { DifferenceLineChart as j } from "./DifferenceLineChart.js";
|
|
25
|
+
import { SankeyChart as z } from "./SankeyChart.js";
|
|
26
|
+
import { LineChartWithConfidenceInterval as F } from "./LineChartWithConfidenceInterval.js";
|
|
27
|
+
import { DataCards as X } from "./DataCards.js";
|
|
28
|
+
import { StackedBarGraph as Y, GroupedBarGraph as G, SimpleBarGraph as E } from "./BarGraph.js";
|
|
29
|
+
import { DumbbellChart as R } from "./DumbbellChart.js";
|
|
30
|
+
import { StripChart as $ } from "./StripChart.js";
|
|
31
|
+
import { BeeSwarmChart as q } from "./BeeSwarmChart.js";
|
|
32
|
+
import { RadarChart as U } from "./RadarChart.js";
|
|
33
|
+
import { BulletChart as J } from "./BulletChart.js";
|
|
34
|
+
import { g as i } from "./checkIfMultiple-CYp3vADF.js";
|
|
35
|
+
function Ve(c) {
|
|
937
36
|
const {
|
|
938
37
|
settings: e,
|
|
939
|
-
graph:
|
|
38
|
+
graph: l,
|
|
940
39
|
graphData: a,
|
|
941
|
-
debugMode:
|
|
942
|
-
graphDataConfiguration:
|
|
943
|
-
readableHeader:
|
|
40
|
+
debugMode: d,
|
|
41
|
+
graphDataConfiguration: o,
|
|
42
|
+
readableHeader: t,
|
|
944
43
|
updateFilters: s
|
|
945
|
-
} =
|
|
946
|
-
if (
|
|
947
|
-
return /* @__PURE__ */
|
|
44
|
+
} = c;
|
|
45
|
+
if (d && (console.log(`Graph: ${l}`), console.log("Transformed data:", a), console.log("Settings:", e)), typeof a == "string")
|
|
46
|
+
return /* @__PURE__ */ n.jsx(
|
|
948
47
|
"div",
|
|
949
48
|
{
|
|
950
49
|
className: `flex my-0 mx-auto grow flex-col justify-center ${e?.width ? "w-fit" : "w-full"}`,
|
|
951
50
|
style: { height: "inherit" },
|
|
952
|
-
children: /* @__PURE__ */
|
|
953
|
-
|
|
51
|
+
children: /* @__PURE__ */ n.jsx(
|
|
52
|
+
h,
|
|
954
53
|
{
|
|
955
54
|
size: "sm",
|
|
956
55
|
marginBottom: "none",
|
|
@@ -960,45 +59,41 @@ function tt(o) {
|
|
|
960
59
|
)
|
|
961
60
|
}
|
|
962
61
|
);
|
|
963
|
-
const
|
|
964
|
-
barChart:
|
|
965
|
-
bulletChart:
|
|
966
|
-
groupedBarChart:
|
|
967
|
-
stackedBarChart:
|
|
968
|
-
lineChart:
|
|
969
|
-
dualAxisLineChart:
|
|
970
|
-
multiLineChart:
|
|
971
|
-
multiLineAltChart:
|
|
972
|
-
stackedAreaChart:
|
|
973
|
-
choroplethMap:
|
|
974
|
-
biVariateChoroplethMap:
|
|
975
|
-
dotDensityMap:
|
|
976
|
-
donutChart:
|
|
977
|
-
slopeChart:
|
|
978
|
-
scatterPlot:
|
|
979
|
-
dumbbellChart:
|
|
980
|
-
treeMap:
|
|
981
|
-
circlePacking:
|
|
982
|
-
heatMap:
|
|
983
|
-
stripChart:
|
|
984
|
-
beeSwarmChart:
|
|
985
|
-
butterflyChart:
|
|
986
|
-
histogram:
|
|
987
|
-
sparkLine:
|
|
988
|
-
paretoChart:
|
|
989
|
-
dataTable:
|
|
990
|
-
statCard:
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
dataCards: fa,
|
|
999
|
-
radarChart: xa,
|
|
1000
|
-
threeDGlobe: La
|
|
1001
|
-
}, g = (f) => {
|
|
62
|
+
const m = {
|
|
63
|
+
barChart: E,
|
|
64
|
+
bulletChart: J,
|
|
65
|
+
groupedBarChart: G,
|
|
66
|
+
stackedBarChart: Y,
|
|
67
|
+
lineChart: y,
|
|
68
|
+
dualAxisLineChart: x,
|
|
69
|
+
multiLineChart: L,
|
|
70
|
+
multiLineAltChart: M,
|
|
71
|
+
stackedAreaChart: B,
|
|
72
|
+
choroplethMap: S,
|
|
73
|
+
biVariateChoroplethMap: N,
|
|
74
|
+
dotDensityMap: V,
|
|
75
|
+
donutChart: w,
|
|
76
|
+
slopeChart: v,
|
|
77
|
+
scatterPlot: A,
|
|
78
|
+
dumbbellChart: R,
|
|
79
|
+
treeMap: P,
|
|
80
|
+
circlePacking: b,
|
|
81
|
+
heatMap: T,
|
|
82
|
+
stripChart: $,
|
|
83
|
+
beeSwarmChart: q,
|
|
84
|
+
butterflyChart: D,
|
|
85
|
+
histogram: k,
|
|
86
|
+
sparkLine: O,
|
|
87
|
+
paretoChart: H,
|
|
88
|
+
dataTable: C,
|
|
89
|
+
statCard: I,
|
|
90
|
+
unitChart: W,
|
|
91
|
+
differenceLineChart: j,
|
|
92
|
+
sankeyChart: z,
|
|
93
|
+
lineChartWithConfidenceInterval: F,
|
|
94
|
+
dataCards: X,
|
|
95
|
+
radarChart: U
|
|
96
|
+
}, p = (f) => {
|
|
1002
97
|
switch (f) {
|
|
1003
98
|
case "barChart":
|
|
1004
99
|
return {
|
|
@@ -1025,7 +120,7 @@ function tt(o) {
|
|
|
1025
120
|
rightMargin: e?.rightMargin,
|
|
1026
121
|
truncateBy: e?.truncateBy,
|
|
1027
122
|
colorDomain: e?.colorDomain,
|
|
1028
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
123
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
1029
124
|
backgroundColor: e?.backgroundColor,
|
|
1030
125
|
padding: e?.padding,
|
|
1031
126
|
topMargin: e?.topMargin,
|
|
@@ -1051,8 +146,8 @@ function tt(o) {
|
|
|
1051
146
|
maxNumberOfBars: e?.maxNumberOfBars,
|
|
1052
147
|
ariaLabel: e?.ariaLabel,
|
|
1053
148
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1054
|
-
onSeriesMouseClick: (
|
|
1055
|
-
s?.(
|
|
149
|
+
onSeriesMouseClick: (r) => {
|
|
150
|
+
s?.(r.label);
|
|
1056
151
|
},
|
|
1057
152
|
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1058
153
|
detailsOnClick: e?.detailsOnClick,
|
|
@@ -1084,7 +179,7 @@ function tt(o) {
|
|
|
1084
179
|
barPadding: e?.barPadding,
|
|
1085
180
|
showTicks: e?.showTicks,
|
|
1086
181
|
truncateBy: e?.truncateBy,
|
|
1087
|
-
colorDomain: e?.colorDomain ||
|
|
182
|
+
colorDomain: e?.colorDomain || i("size", o || [], t || []),
|
|
1088
183
|
colorLegendTitle: e?.colorLegendTitle,
|
|
1089
184
|
suffix: e?.suffix,
|
|
1090
185
|
prefix: e?.prefix,
|
|
@@ -1141,7 +236,7 @@ function tt(o) {
|
|
|
1141
236
|
leftMargin: e?.leftMargin,
|
|
1142
237
|
rightMargin: e?.rightMargin,
|
|
1143
238
|
truncateBy: e?.truncateBy,
|
|
1144
|
-
colorDomain: e?.colorDomain ||
|
|
239
|
+
colorDomain: e?.colorDomain || i("size", o || [], t || []),
|
|
1145
240
|
colorLegendTitle: e?.colorLegendTitle,
|
|
1146
241
|
backgroundColor: e?.backgroundColor,
|
|
1147
242
|
padding: e?.padding,
|
|
@@ -1199,7 +294,7 @@ function tt(o) {
|
|
|
1199
294
|
rightMargin: e?.rightMargin,
|
|
1200
295
|
truncateBy: e?.truncateBy,
|
|
1201
296
|
colorDomain: e?.colorDomain,
|
|
1202
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
297
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
1203
298
|
backgroundColor: e?.backgroundColor,
|
|
1204
299
|
padding: e?.padding,
|
|
1205
300
|
topMargin: e?.topMargin,
|
|
@@ -1225,8 +320,8 @@ function tt(o) {
|
|
|
1225
320
|
maxNumberOfBars: e?.maxNumberOfBars,
|
|
1226
321
|
ariaLabel: e?.ariaLabel,
|
|
1227
322
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1228
|
-
onSeriesMouseClick: (
|
|
1229
|
-
s?.(
|
|
323
|
+
onSeriesMouseClick: (r) => {
|
|
324
|
+
s?.(r.label);
|
|
1230
325
|
},
|
|
1231
326
|
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1232
327
|
detailsOnClick: e?.detailsOnClick,
|
|
@@ -1362,8 +457,8 @@ function tt(o) {
|
|
|
1362
457
|
graphTitle: e?.graphTitle,
|
|
1363
458
|
graphDescription: e?.graphDescription,
|
|
1364
459
|
labels: e?.labels || [
|
|
1365
|
-
|
|
1366
|
-
|
|
460
|
+
i("y1", o || [], t || []),
|
|
461
|
+
i("y2", o || [], t || [])
|
|
1367
462
|
],
|
|
1368
463
|
footNote: e?.footNote,
|
|
1369
464
|
width: e?.width,
|
|
@@ -1423,7 +518,7 @@ function tt(o) {
|
|
|
1423
518
|
suffix: e?.suffix,
|
|
1424
519
|
prefix: e?.prefix,
|
|
1425
520
|
showColorScale: e?.showColorScale,
|
|
1426
|
-
labels: e?.labels ||
|
|
521
|
+
labels: e?.labels || i("y", o || [], t || []),
|
|
1427
522
|
backgroundColor: e?.backgroundColor,
|
|
1428
523
|
padding: e?.padding,
|
|
1429
524
|
leftMargin: e?.leftMargin,
|
|
@@ -1536,8 +631,8 @@ function tt(o) {
|
|
|
1536
631
|
suffix: e?.suffix,
|
|
1537
632
|
prefix: e?.prefix,
|
|
1538
633
|
labels: e?.labels || [
|
|
1539
|
-
|
|
1540
|
-
|
|
634
|
+
i("y1", o || [], t || []),
|
|
635
|
+
i("y2", o || [], t || [])
|
|
1541
636
|
],
|
|
1542
637
|
backgroundColor: e?.backgroundColor,
|
|
1543
638
|
padding: e?.padding,
|
|
@@ -1588,7 +683,7 @@ function tt(o) {
|
|
|
1588
683
|
sources: e?.sources,
|
|
1589
684
|
noOfXTicks: e?.noOfXTicks,
|
|
1590
685
|
dateFormat: e?.dateFormat,
|
|
1591
|
-
colorDomain: e?.colorDomain ||
|
|
686
|
+
colorDomain: e?.colorDomain || i("y", o || [], t || []),
|
|
1592
687
|
backgroundColor: e?.backgroundColor,
|
|
1593
688
|
padding: e?.padding,
|
|
1594
689
|
colorLegendTitle: e?.colorLegendTitle,
|
|
@@ -1635,7 +730,7 @@ function tt(o) {
|
|
|
1635
730
|
sources: e?.sources,
|
|
1636
731
|
colorDomain: e?.colorDomain,
|
|
1637
732
|
colors: e?.colors,
|
|
1638
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
733
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("x", o || [], t || []),
|
|
1639
734
|
scaleType: e?.scaleType,
|
|
1640
735
|
categorical: e?.categorical,
|
|
1641
736
|
data: a,
|
|
@@ -1662,8 +757,8 @@ function tt(o) {
|
|
|
1662
757
|
minHeight: e?.minHeight,
|
|
1663
758
|
ariaLabel: e?.ariaLabel,
|
|
1664
759
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1665
|
-
onSeriesMouseClick: (
|
|
1666
|
-
s?.(
|
|
760
|
+
onSeriesMouseClick: (r) => {
|
|
761
|
+
s?.(r.id);
|
|
1667
762
|
},
|
|
1668
763
|
detailsOnClick: e?.detailsOnClick,
|
|
1669
764
|
styles: e?.styles,
|
|
@@ -1687,8 +782,8 @@ function tt(o) {
|
|
|
1687
782
|
width: e?.width,
|
|
1688
783
|
height: e?.height,
|
|
1689
784
|
sources: e?.sources,
|
|
1690
|
-
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle :
|
|
1691
|
-
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle :
|
|
785
|
+
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : i("x", o || [], t || []),
|
|
786
|
+
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : i("y", o || [], t || []),
|
|
1692
787
|
xDomain: e?.xDomain,
|
|
1693
788
|
yDomain: e?.yDomain,
|
|
1694
789
|
colors: e?.colors,
|
|
@@ -1714,8 +809,8 @@ function tt(o) {
|
|
|
1714
809
|
minHeight: e?.minHeight,
|
|
1715
810
|
ariaLabel: e?.ariaLabel,
|
|
1716
811
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1717
|
-
onSeriesMouseClick: (
|
|
1718
|
-
s?.(
|
|
812
|
+
onSeriesMouseClick: (r) => {
|
|
813
|
+
s?.(r.id);
|
|
1719
814
|
},
|
|
1720
815
|
detailsOnClick: e?.detailsOnClick,
|
|
1721
816
|
styles: e?.styles,
|
|
@@ -1742,7 +837,7 @@ function tt(o) {
|
|
|
1742
837
|
sources: e?.sources,
|
|
1743
838
|
colors: e?.colors,
|
|
1744
839
|
colorDomain: e?.colorDomain,
|
|
1745
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
840
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
1746
841
|
data: a,
|
|
1747
842
|
scale: e?.scale,
|
|
1748
843
|
centerPoint: e?.centerPoint,
|
|
@@ -1772,53 +867,6 @@ function tt(o) {
|
|
|
1772
867
|
zoomInteraction: e?.zoomInteraction,
|
|
1773
868
|
animate: e?.animate
|
|
1774
869
|
};
|
|
1775
|
-
case "threeDGlobe":
|
|
1776
|
-
return {
|
|
1777
|
-
globeOffset: e?.globeOffset,
|
|
1778
|
-
polygonAltitude: e?.polygonAltitude,
|
|
1779
|
-
highlightedIds: e?.highlightedIds,
|
|
1780
|
-
scale: e?.scale,
|
|
1781
|
-
theme: e?.theme,
|
|
1782
|
-
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1783
|
-
graphTitle: e?.graphTitle,
|
|
1784
|
-
mapData: e?.mapData,
|
|
1785
|
-
graphDescription: e?.graphDescription,
|
|
1786
|
-
footNote: e?.footNote,
|
|
1787
|
-
width: e?.width,
|
|
1788
|
-
height: e?.height,
|
|
1789
|
-
sources: e?.sources,
|
|
1790
|
-
colorDomain: e?.colorDomain,
|
|
1791
|
-
colors: e?.colors,
|
|
1792
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : b("x", r || [], i || []),
|
|
1793
|
-
scaleType: e?.scaleType,
|
|
1794
|
-
data: a,
|
|
1795
|
-
centerPoint: e?.centerPoint,
|
|
1796
|
-
backgroundColor: e?.backgroundColor,
|
|
1797
|
-
mapNoDataColor: e?.mapNoDataColor,
|
|
1798
|
-
mapBorderColor: e?.mapBorderColor,
|
|
1799
|
-
relativeHeight: e?.relativeHeight,
|
|
1800
|
-
padding: e?.padding,
|
|
1801
|
-
tooltip: e?.tooltip,
|
|
1802
|
-
showColorScale: e?.showColorScale,
|
|
1803
|
-
graphID: e?.graphID,
|
|
1804
|
-
dataDownload: e?.dataDownload,
|
|
1805
|
-
mapProperty: e?.mapProperty,
|
|
1806
|
-
language: e?.language,
|
|
1807
|
-
minHeight: e?.minHeight,
|
|
1808
|
-
ariaLabel: e?.ariaLabel,
|
|
1809
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1810
|
-
onSeriesMouseClick: (d) => {
|
|
1811
|
-
s?.(d.id);
|
|
1812
|
-
},
|
|
1813
|
-
detailsOnClick: e?.detailsOnClick,
|
|
1814
|
-
styles: e?.styles,
|
|
1815
|
-
classNames: e?.classNames,
|
|
1816
|
-
categorical: e?.categorical,
|
|
1817
|
-
autoRotate: e?.autoRotate,
|
|
1818
|
-
globeMaterial: e?.globeMaterial,
|
|
1819
|
-
atmosphereColor: e?.atmosphereColor,
|
|
1820
|
-
enableZoom: e?.enableZoom
|
|
1821
|
-
};
|
|
1822
870
|
case "donutChart":
|
|
1823
871
|
return {
|
|
1824
872
|
precision: e?.precision,
|
|
@@ -1855,8 +903,8 @@ function tt(o) {
|
|
|
1855
903
|
ariaLabel: e?.ariaLabel,
|
|
1856
904
|
legendMaxWidth: e?.legendMaxWidth,
|
|
1857
905
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1858
|
-
onSeriesMouseClick: (
|
|
1859
|
-
s?.(
|
|
906
|
+
onSeriesMouseClick: (r) => {
|
|
907
|
+
s?.(r.label);
|
|
1860
908
|
},
|
|
1861
909
|
detailsOnClick: e?.detailsOnClick,
|
|
1862
910
|
styles: e?.styles,
|
|
@@ -1879,7 +927,7 @@ function tt(o) {
|
|
|
1879
927
|
showLabels: e?.showLabels,
|
|
1880
928
|
colors: e?.colors,
|
|
1881
929
|
colorDomain: e?.colorDomain,
|
|
1882
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
930
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
1883
931
|
radius: e?.radius,
|
|
1884
932
|
axisTitles: e?.axisTitles,
|
|
1885
933
|
backgroundColor: e?.backgroundColor,
|
|
@@ -1924,10 +972,10 @@ function tt(o) {
|
|
|
1924
972
|
showLabels: e?.showLabels,
|
|
1925
973
|
colors: e?.colors,
|
|
1926
974
|
colorDomain: e?.colorDomain,
|
|
1927
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
975
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
1928
976
|
radius: e?.radius,
|
|
1929
|
-
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle :
|
|
1930
|
-
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle :
|
|
977
|
+
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : i("x", o || [], t || []),
|
|
978
|
+
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : i("y", o || [], t || []),
|
|
1931
979
|
backgroundColor: e?.backgroundColor,
|
|
1932
980
|
padding: e?.padding,
|
|
1933
981
|
leftMargin: e?.leftMargin,
|
|
@@ -1994,7 +1042,7 @@ function tt(o) {
|
|
|
1994
1042
|
truncateBy: e?.truncateBy,
|
|
1995
1043
|
labelOrder: e?.labelOrder,
|
|
1996
1044
|
showColorScale: e?.showColorScale,
|
|
1997
|
-
colorDomain: e?.colorDomain ||
|
|
1045
|
+
colorDomain: e?.colorDomain || i("x", o || [], t || []),
|
|
1998
1046
|
colorLegendTitle: e?.colorLegendTitle,
|
|
1999
1047
|
backgroundColor: e?.backgroundColor,
|
|
2000
1048
|
padding: e?.padding,
|
|
@@ -2048,7 +1096,7 @@ function tt(o) {
|
|
|
2048
1096
|
leftMargin: e?.leftMargin,
|
|
2049
1097
|
rightMargin: e?.rightMargin,
|
|
2050
1098
|
colorDomain: e?.colorDomain,
|
|
2051
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
1099
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
2052
1100
|
backgroundColor: e?.backgroundColor,
|
|
2053
1101
|
padding: e?.padding,
|
|
2054
1102
|
topMargin: e?.topMargin,
|
|
@@ -2067,8 +1115,8 @@ function tt(o) {
|
|
|
2067
1115
|
showNAColor: e?.showNAColor,
|
|
2068
1116
|
ariaLabel: e?.ariaLabel,
|
|
2069
1117
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2070
|
-
onSeriesMouseClick: (
|
|
2071
|
-
s?.(
|
|
1118
|
+
onSeriesMouseClick: (r) => {
|
|
1119
|
+
s?.(r.label);
|
|
2072
1120
|
},
|
|
2073
1121
|
detailsOnClick: e?.detailsOnClick,
|
|
2074
1122
|
styles: e?.styles,
|
|
@@ -2094,7 +1142,7 @@ function tt(o) {
|
|
|
2094
1142
|
leftMargin: e?.leftMargin,
|
|
2095
1143
|
rightMargin: e?.rightMargin,
|
|
2096
1144
|
colorDomain: e?.colorDomain,
|
|
2097
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
1145
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
2098
1146
|
backgroundColor: e?.backgroundColor,
|
|
2099
1147
|
padding: e?.padding,
|
|
2100
1148
|
topMargin: e?.topMargin,
|
|
@@ -2115,8 +1163,8 @@ function tt(o) {
|
|
|
2115
1163
|
radius: e?.radius,
|
|
2116
1164
|
maxRadiusValue: e?.maxRadiusValue,
|
|
2117
1165
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2118
|
-
onSeriesMouseClick: (
|
|
2119
|
-
s?.(
|
|
1166
|
+
onSeriesMouseClick: (r) => {
|
|
1167
|
+
s?.(r.label);
|
|
2120
1168
|
},
|
|
2121
1169
|
detailsOnClick: e?.detailsOnClick,
|
|
2122
1170
|
styles: e?.styles,
|
|
@@ -2142,7 +1190,7 @@ function tt(o) {
|
|
|
2142
1190
|
leftMargin: e?.leftMargin,
|
|
2143
1191
|
rightMargin: e?.rightMargin,
|
|
2144
1192
|
truncateBy: e?.truncateBy,
|
|
2145
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
1193
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
2146
1194
|
backgroundColor: e?.backgroundColor,
|
|
2147
1195
|
padding: e?.padding,
|
|
2148
1196
|
topMargin: e?.topMargin,
|
|
@@ -2185,7 +1233,7 @@ function tt(o) {
|
|
|
2185
1233
|
sources: e?.sources,
|
|
2186
1234
|
colors: e?.colors,
|
|
2187
1235
|
colorDomain: e?.colorDomain,
|
|
2188
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
1236
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
2189
1237
|
radius: e?.radius,
|
|
2190
1238
|
backgroundColor: e?.backgroundColor,
|
|
2191
1239
|
padding: e?.padding,
|
|
@@ -2237,7 +1285,7 @@ function tt(o) {
|
|
|
2237
1285
|
leftMargin: e?.leftMargin,
|
|
2238
1286
|
rightMargin: e?.rightMargin,
|
|
2239
1287
|
colorDomain: e?.colorDomain,
|
|
2240
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle :
|
|
1288
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : i("color", o || [], t || []),
|
|
2241
1289
|
backgroundColor: e?.backgroundColor,
|
|
2242
1290
|
padding: e?.padding,
|
|
2243
1291
|
topMargin: e?.topMargin,
|
|
@@ -2276,8 +1324,8 @@ function tt(o) {
|
|
|
2276
1324
|
data: a,
|
|
2277
1325
|
graphTitle: e?.graphTitle,
|
|
2278
1326
|
graphDescription: e?.graphDescription,
|
|
2279
|
-
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle :
|
|
2280
|
-
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle :
|
|
1327
|
+
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : i("leftBar", o || [], t || []),
|
|
1328
|
+
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : i("rightBar", o || [], t || []),
|
|
2281
1329
|
footNote: e?.footNote,
|
|
2282
1330
|
width: e?.width,
|
|
2283
1331
|
height: e?.height,
|
|
@@ -2401,8 +1449,8 @@ function tt(o) {
|
|
|
2401
1449
|
showValues: e?.showValues,
|
|
2402
1450
|
graphTitle: e?.graphTitle,
|
|
2403
1451
|
graphDescription: e?.graphDescription,
|
|
2404
|
-
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle :
|
|
2405
|
-
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle :
|
|
1452
|
+
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : i("barTitle", o || [], t || []),
|
|
1453
|
+
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : i("lineTitle", o || [], t || []),
|
|
2406
1454
|
footNote: e?.footNote,
|
|
2407
1455
|
width: e?.width,
|
|
2408
1456
|
height: e?.height,
|
|
@@ -2491,79 +1539,6 @@ function tt(o) {
|
|
|
2491
1539
|
classNames: e?.classNames,
|
|
2492
1540
|
layout: e?.layout
|
|
2493
1541
|
};
|
|
2494
|
-
case "geoHubCompareMap":
|
|
2495
|
-
return {
|
|
2496
|
-
theme: e?.theme,
|
|
2497
|
-
graphTitle: e?.graphTitle,
|
|
2498
|
-
sources: e?.sources,
|
|
2499
|
-
graphDescription: e?.graphDescription,
|
|
2500
|
-
footNote: e?.footNote,
|
|
2501
|
-
backgroundColor: e?.backgroundColor,
|
|
2502
|
-
padding: e?.padding,
|
|
2503
|
-
width: e?.width,
|
|
2504
|
-
height: e?.height,
|
|
2505
|
-
relativeHeight: e?.relativeHeight,
|
|
2506
|
-
graphID: e?.graphID,
|
|
2507
|
-
mapStyles: e?.mapStyles,
|
|
2508
|
-
center: e?.center,
|
|
2509
|
-
zoomLevel: e?.zoomLevel,
|
|
2510
|
-
language: e?.language,
|
|
2511
|
-
minHeight: e?.minHeight,
|
|
2512
|
-
ariaLabel: e?.ariaLabel,
|
|
2513
|
-
styles: e?.styles,
|
|
2514
|
-
classNames: e?.classNames,
|
|
2515
|
-
mapLegend: e?.mapLegend
|
|
2516
|
-
};
|
|
2517
|
-
case "geoHubMap":
|
|
2518
|
-
return {
|
|
2519
|
-
theme: e?.theme,
|
|
2520
|
-
mapStyle: e?.mapStyle,
|
|
2521
|
-
center: e?.center,
|
|
2522
|
-
zoomLevel: e?.zoomLevel,
|
|
2523
|
-
graphTitle: e?.graphTitle,
|
|
2524
|
-
sources: e?.sources,
|
|
2525
|
-
graphDescription: e?.graphDescription,
|
|
2526
|
-
footNote: e?.footNote,
|
|
2527
|
-
backgroundColor: e?.backgroundColor,
|
|
2528
|
-
padding: e?.padding,
|
|
2529
|
-
width: e?.width,
|
|
2530
|
-
height: e?.height,
|
|
2531
|
-
relativeHeight: e?.relativeHeight,
|
|
2532
|
-
graphID: e?.graphID,
|
|
2533
|
-
language: e?.language,
|
|
2534
|
-
minHeight: e?.minHeight,
|
|
2535
|
-
includeLayers: e?.includeLayers,
|
|
2536
|
-
excludeLayers: e?.excludeLayers,
|
|
2537
|
-
ariaLabel: e?.ariaLabel,
|
|
2538
|
-
uiMode: e?.uiMode,
|
|
2539
|
-
styles: e?.styles,
|
|
2540
|
-
classNames: e?.classNames,
|
|
2541
|
-
mapLegend: e?.mapLegend
|
|
2542
|
-
};
|
|
2543
|
-
case "geoHubMapWithLayerSelection":
|
|
2544
|
-
return {
|
|
2545
|
-
theme: e?.theme,
|
|
2546
|
-
mapStyle: e?.mapStyle,
|
|
2547
|
-
center: e?.center,
|
|
2548
|
-
zoomLevel: e?.zoomLevel,
|
|
2549
|
-
graphTitle: e?.graphTitle,
|
|
2550
|
-
sources: e?.sources,
|
|
2551
|
-
graphDescription: e?.graphDescription,
|
|
2552
|
-
footNote: e?.footNote,
|
|
2553
|
-
backgroundColor: e?.backgroundColor,
|
|
2554
|
-
padding: e?.padding,
|
|
2555
|
-
width: e?.width,
|
|
2556
|
-
height: e?.height,
|
|
2557
|
-
relativeHeight: e?.relativeHeight,
|
|
2558
|
-
graphID: e?.graphID,
|
|
2559
|
-
language: e?.language,
|
|
2560
|
-
minHeight: e?.minHeight,
|
|
2561
|
-
layerSelection: e?.layerSelection,
|
|
2562
|
-
excludeLayers: e?.excludeLayers,
|
|
2563
|
-
ariaLabel: e?.ariaLabel,
|
|
2564
|
-
uiMode: e?.uiMode,
|
|
2565
|
-
mapLegend: e?.mapLegend
|
|
2566
|
-
};
|
|
2567
1542
|
case "unitChart":
|
|
2568
1543
|
return {
|
|
2569
1544
|
precision: e?.precision,
|
|
@@ -2726,34 +1701,25 @@ function tt(o) {
|
|
|
2726
1701
|
default:
|
|
2727
1702
|
return {};
|
|
2728
1703
|
}
|
|
2729
|
-
},
|
|
2730
|
-
return /* @__PURE__ */
|
|
1704
|
+
}, g = m[l], u = p(l);
|
|
1705
|
+
return /* @__PURE__ */ n.jsx(
|
|
2731
1706
|
"div",
|
|
2732
1707
|
{
|
|
2733
|
-
className: `grow my-0 ${
|
|
1708
|
+
className: `grow my-0 ${l !== "statCard" ? "mx-auto" : "mx-0"} flex flex-col h-inherit ${e?.width ? "w-fit" : "w-full"} ${l !== "unitChart" && l !== "statCard" ? "justify-center" : "justify-start"} ${e?.theme || "light"}`,
|
|
2734
1709
|
style: { minHeight: "inherit" },
|
|
2735
|
-
children:
|
|
2736
|
-
|
|
1710
|
+
children: g ? /* @__PURE__ */ n.jsx(g, { ...u }) : /* @__PURE__ */ n.jsx(
|
|
1711
|
+
h,
|
|
2737
1712
|
{
|
|
2738
1713
|
size: "sm",
|
|
2739
1714
|
marginBottom: "none",
|
|
2740
1715
|
className: "p-2 text-center text-accent-dark-red dark:text-accent-red",
|
|
2741
|
-
children: `Invalid chart type: ${
|
|
1716
|
+
children: `Invalid chart type: ${l}`
|
|
2742
1717
|
}
|
|
2743
1718
|
)
|
|
2744
1719
|
}
|
|
2745
1720
|
);
|
|
2746
1721
|
}
|
|
2747
|
-
function rt(o, e) {
|
|
2748
|
-
return e.findIndex((t) => t.chartConfigId === o) === -1 ? !1 : typeof e[e.findIndex((t) => t.chartConfigId === o)].columnId != "string";
|
|
2749
|
-
}
|
|
2750
1722
|
export {
|
|
2751
|
-
|
|
2752
|
-
ho as a,
|
|
2753
|
-
tt as b,
|
|
2754
|
-
rt as c,
|
|
2755
|
-
z as f,
|
|
2756
|
-
go as v,
|
|
2757
|
-
Pa as w
|
|
1723
|
+
Ve as G
|
|
2758
1724
|
};
|
|
2759
|
-
//# sourceMappingURL=
|
|
1725
|
+
//# sourceMappingURL=GraphEl-Cw2tDUb3.js.map
|