@astrato-io/visualizations 0.6.5 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/THIRD_PARTY_NOTICES.md +2 -229
- package/VISUALIZATION_DEFINITIONS.md +68 -114
- package/chunks/Button-BrGKp9Nm.js +110 -0
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
- package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
- package/chunks/{LinearProgress-B1FeWaen.js → LinearProgress-VtfFx2vJ.js} +55 -55
- package/chunks/MenuOption-ByRqhRdX.js +3934 -0
- package/chunks/Title-CO5dP1ma.js +1691 -0
- package/chunks/ToggleButton-KOBAimC1.js +112 -0
- package/chunks/{app-filter-bar.compiler-BGJ7HAbr.js → app-filter-bar.compiler-TwVTeoj5.js} +10 -10
- package/chunks/{bar.compiler-CT0ZbQKc.js → bar.compiler-DuQg8EUb.js} +84 -84
- package/chunks/builder-DEDvNq1k.js +201 -0
- package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
- package/chunks/color-settings-3VRlf_Vw.js +6 -0
- package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
- package/chunks/coloring-CncX_JRX.js +278 -0
- package/chunks/{definitions-D3OVqmXl.js → definitions-BPJQTx16.js} +490 -382
- package/chunks/{escobar-eDjtGpkC.js → escobar-DRhRMYRE.js} +6067 -4742
- package/chunks/event-bus-CrLB-Y8z.js +3 -0
- package/chunks/extend-preset-CUFNpmPe.js +4398 -0
- package/chunks/{filter.compiler-DBsyRBJt.js → filter.compiler-w27dlv0C.js} +12 -12
- package/chunks/{filtering-tqjAyJH5.js → filtering-cc7WqWpg.js} +391 -310
- package/chunks/{handlers-VTBfIZYZ.js → handlers-TOT-7INo.js} +3241 -3442
- package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
- package/chunks/isEqual-B8loyPsC.js +12 -0
- package/chunks/label-format-type-weq1XfcX.js +8 -0
- package/chunks/{line.compiler-CzdM5Ld0.js → line.compiler-Ct1WhN2p.js} +27 -27
- package/chunks/logger-DpQtYQnX.js +1163 -0
- package/chunks/lookup-BWllin0q.js +36 -0
- package/chunks/{metadata-BGElBy5Z.js → metadata-WABZrt7Y.js} +1 -1
- package/chunks/{number.compiler-G-R7y16P.js → number.compiler-D8TPly-4.js} +13 -13
- package/chunks/{operations-CTNUX6Sy.js → operations-Dh4v1Ovt.js} +9314 -9283
- package/chunks/{range-CiwTbMig.js → range-Bi-7zT0k.js} +2 -2
- package/chunks/render-wrappers-OEmtaM8g.js +2 -0
- package/chunks/{registry-CsQQzukD.js → requirements-Dvd8jqYF.js} +218 -222
- package/chunks/responsive.styles-DSiOGD7u.js +82 -0
- package/chunks/{shared-CBvcC5YV.js → shared-Bn4N5QcZ.js} +424 -424
- package/chunks/src-77e3mC7i.js +391 -0
- package/chunks/standalone-B55oyW6c.js +689 -0
- package/chunks/{standalone-C3gg736V.js → standalone-BDhPQtzQ.js} +375 -341
- package/chunks/{standalone-BMIbT1b2.js → standalone-BGkmozIb.js} +992 -837
- package/chunks/standalone-BMTCb10X.js +179 -0
- package/chunks/standalone-BXKRE_Se.js +468 -0
- package/chunks/standalone-Bes8srx1.js +354 -0
- package/chunks/standalone-BjZp0QMe.js +2 -0
- package/chunks/{standalone-JuLF-OoH.js → standalone-BlMIwpEe.js} +634 -519
- package/chunks/{standalone-C_rYnZ0N.js → standalone-C8ZAEutO.js} +43 -42
- package/chunks/standalone-C8qAelL4.js +2 -0
- package/chunks/standalone-CJvIXsQE.js +743 -0
- package/chunks/standalone-CLmGb7nn2.js +355 -0
- package/chunks/standalone-CM5XcAN5.js +52327 -0
- package/chunks/standalone-CXNP6-xD.js +420 -0
- package/chunks/{standalone-vzBY6q0I2.js → standalone-D5Q5ngsD.js} +57 -55
- package/chunks/standalone-DLlyRIE6.js +287 -0
- package/chunks/standalone-DMcI1afI.js +396 -0
- package/chunks/{standalone-DC-aUgXC.js → standalone-DN4S1MjT.js} +1111 -1092
- package/chunks/standalone-DT0wKji7.js +6 -0
- package/chunks/standalone-DW6NT205.js +518 -0
- package/chunks/standalone-DYQIQH4c.js +2095 -0
- package/chunks/standalone-D__XCp-h.js +1003 -0
- package/chunks/standalone-XTgSsTAa.js +354 -0
- package/chunks/{standalone-v1oxfU20.js → standalone-XuGksArp.js} +20 -20
- package/chunks/{standalone-0M4HlmDW2.js → standalone-vBnBS2YC.js} +1047 -964
- package/chunks/{standalone-BtSHCp2U2.js → standalone-we5D5MIn.js} +173 -168
- package/chunks/{table.compiler-tb914oj3.js → table.compiler-DMeeHxb6.js} +29 -29
- package/chunks/useFieldName-Cjn9KCVp.js +7 -0
- package/chunks/useSlotProps-DLbQp4lc.js +166 -0
- package/chunks/{utils-Bg7K-t6K.js → utils-vdmi_2PK.js} +6271 -7804
- package/chunks/{view-Bn83C8d9.js → view-BuwQugKb.js} +2717 -3504
- package/chunks/{isEqual-BDxAhUo8.js → visualization-filters-Cc4KU-l-.js} +1887 -1946
- package/chunks/with-html-element-D0uY2zjI.js +7328 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +31 -14
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +3 -3
- package/docs/operations/distribution-gauge.md +13 -13
- package/docs/operations/dot.md +13 -13
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +13 -13
- package/docs/operations/heatMap.md +13 -13
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +3 -3
- package/docs/operations/line.md +7 -7
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +13 -13
- package/docs/operations/radar.md +7 -7
- package/docs/operations/sankey.md +13 -13
- package/docs/operations/scatter.md +13 -13
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +18 -1
- package/docs/operations/tree.md +51 -37
- package/docs/operations/treemap.md +63 -49
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +13 -13
- package/getters.js +7 -7
- package/index.js +419 -417
- package/metadata.js +17 -18
- package/operations.js +13 -13
- package/package.json +70 -55
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +53 -30
- package/src/definitions/model/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +2 -2
- package/src/definitions/model/definitions/types/compilation.types.d.ts +10 -0
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/getters/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +1 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +0 -52
- package/chunks/builder-B6dWSIdD.js +0 -12289
- package/chunks/coloring-B1XAfg6b.js +0 -664
- package/chunks/events-WZut5Ow6.js +0 -4
- package/chunks/grouping-type-On4s9Thj.js +0 -3
- package/chunks/requirements-DYjZCFyf.js +0 -6
- package/chunks/standalone-0ashe9w1.js +0 -411
- package/chunks/standalone-B7jax8wa.js +0 -339
- package/chunks/standalone-BK0VYU-l.js +0 -463
- package/chunks/standalone-BZV5vOwA.js +0 -6
- package/chunks/standalone-BhDrWj4p.js +0 -1980
- package/chunks/standalone-BvaKdky9.js +0 -344
- package/chunks/standalone-BwtM31-f.js +0 -2
- package/chunks/standalone-CC1VUjO32.js +0 -299
- package/chunks/standalone-CoLrAxRV.js +0 -13198
- package/chunks/standalone-DCtRoTWg.js +0 -675
- package/chunks/standalone-DUDFTBqL.js +0 -833
- package/chunks/standalone-DhZkX9Td.js +0 -2
- package/chunks/standalone-DtLElfuM.js +0 -512
- package/chunks/standalone-G9Q4Uczu.js +0 -726
- package/chunks/standalone-_DeX21JJ.js +0 -383
- package/chunks/standalone-gFhKZh8m.js +0 -179
- package/chunks/standalone-tDNy-SFH.js +0 -281
- package/chunks/ui-DQWtv2iM.js +0 -63551
- package/chunks/useFieldName-BvdcoJRl.js +0 -7
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Ds as t, Gs as n, Hi as r, Ia as i, Jt as a, La as o, Us as s, Za as c, an as l, en as u, ws as d, zi as f, zr as p } from "./visualization-filters-Cc4KU-l-.js";
|
|
3
|
+
import { Ei as m, F as h, N as g, Xt as _, ri as v } from "./utils-vdmi_2PK.js";
|
|
4
|
+
import { km as y } from "./handlers-TOT-7INo.js";
|
|
5
|
+
import { r as b } from "./label-format-type-weq1XfcX.js";
|
|
6
|
+
import { t as x } from "./stroke-dash-UgMEcCS4.js";
|
|
7
|
+
import "./logger-DpQtYQnX.js";
|
|
8
|
+
import { $ as S, At as C, B as w, Bt as T, Et as E, F as D, I as ee, L as O, Nt as k, St as te, Ut as A, V as j, W as M, Y as N, Yt as P, an as F, bt as I, dt as L, gt as R, ht as z, i as B, in as V, lt as H, mn as U, mt as W, n as G, on as K, sn as q, un as J, vn as Y, vt as X, yt as Z, zt as Q } from "./escobar-DRhRMYRE.js";
|
|
9
|
+
import { o as ne, t as re } from "./coloring-CncX_JRX.js";
|
|
10
|
+
import { t as ie } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
11
|
+
var ae = /* @__PURE__ */ e(m()), oe = (e, r, i) => {
|
|
12
|
+
let o = e.dimensions.filter((e) => p(e)), c = e.measures.filter((e) => p(e)), u = o[0], f = c[0], m = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
|
|
13
|
+
if (g?.type === t.Categorical && (_ ||= u ? s(u.dataItem) : null), g?.type === t.Gradient && (_ ||= f ? s(f.dataItem) : null), _ && Z(i, 0, { color: { field: _ } }), u && e?.axes?.dimension?.continuousAxis) {
|
|
14
|
+
let e = n(u.dataItem), t = !!u.datePart, r = a(e) || l(e);
|
|
15
|
+
m = !t && r;
|
|
16
|
+
}
|
|
17
|
+
if (h = E(ie(e, _), r, h), h = N(e, h, i.collections, m, !0), c.filter((e) => e.graphType === d.Bar).length > 1 && !e.barSettings?.grouped) {
|
|
18
|
+
let t = K(e, c.find((e) => e.graphType === d.Bar));
|
|
19
|
+
h[t].data = { collection: C.ComboChartCollection };
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
...i,
|
|
23
|
+
scales: h
|
|
24
|
+
};
|
|
25
|
+
}, $ = (e, t, n) => {
|
|
26
|
+
let r = e.measures.filter((e) => p(e)), i = e.dimensions.filter((e) => p(e)), a = (e.supportingMeasures ?? []).filter((e) => p(e)), o = r.reduce((e, t) => {
|
|
27
|
+
let n = s(t.dataItem);
|
|
28
|
+
return e[n] = { field: n }, e;
|
|
29
|
+
}, {}), c = ee(a), l = i.reduce((e, t) => {
|
|
30
|
+
let n = s(t.dataItem);
|
|
31
|
+
return e[n] = { field: n }, e;
|
|
32
|
+
}, {}), u = i[0];
|
|
33
|
+
if (!u) return n;
|
|
34
|
+
let f = s(u.dataItem), m = {
|
|
35
|
+
key: C.ComboChartCollection,
|
|
36
|
+
data: { extract: [] }
|
|
37
|
+
};
|
|
38
|
+
if (m.data.extract = r.map((e, t) => {
|
|
39
|
+
let n = s(e.dataItem);
|
|
40
|
+
return {
|
|
41
|
+
field: f,
|
|
42
|
+
props: {
|
|
43
|
+
end: { field: n },
|
|
44
|
+
...o,
|
|
45
|
+
...c,
|
|
46
|
+
...l,
|
|
47
|
+
start: 0,
|
|
48
|
+
graphType: e.graphType,
|
|
49
|
+
measureIndex: t,
|
|
50
|
+
fieldId: n
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}), r.filter((e) => e.graphType === d.Bar).length > 1) {
|
|
54
|
+
let t = !!r.find((e) => e.graphType === d.Bar)?.secondaryAxis, n = new Map(r.map((e) => [s(e.dataItem), !!e.secondaryAxis]));
|
|
55
|
+
e.barSettings?.grouped || (m.data.stack = {
|
|
56
|
+
stackKey: (e) => e.graphType.value === d.Bar ? `${e.value}` : `${e.value}-${e.graphType.value}-${e.measureIndex.value}`,
|
|
57
|
+
value: (e) => {
|
|
58
|
+
let r = e.fieldId?.value;
|
|
59
|
+
if (typeof r != "string" || n.get(r) !== t) return 0;
|
|
60
|
+
let i = e.end.value;
|
|
61
|
+
return typeof i == "number" || typeof i == "string" ? i : 0;
|
|
62
|
+
},
|
|
63
|
+
offset: b.Diverging
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
...n,
|
|
68
|
+
collections: [...n.collections ?? [], m]
|
|
69
|
+
};
|
|
70
|
+
}, se = (e, t, n, r, i, a) => {
|
|
71
|
+
let o = [];
|
|
72
|
+
return e.measures.filter((e) => p(e)).forEach((r) => {
|
|
73
|
+
let c = s(r.dataItem), l = (e) => e.fieldId.value === c;
|
|
74
|
+
switch (r.graphType || e.type) {
|
|
75
|
+
case d.Bar:
|
|
76
|
+
o.push(le(e, t, i ?? [], n, r, a, l));
|
|
77
|
+
break;
|
|
78
|
+
case d.Point:
|
|
79
|
+
o.push(R(e, t, n, r, !1, C.ComboChartCollection, l));
|
|
80
|
+
break;
|
|
81
|
+
default: o.push(ce(e, t, n, r, l)), o.push(R(e, t, n, r, !r.showDataPoints, C.ComboChartCollection, l));
|
|
82
|
+
}
|
|
83
|
+
}), o.sort((e) => e.type === Y.Box ? -1 : 0), {
|
|
84
|
+
...n,
|
|
85
|
+
components: [...n.components, ...o]
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
function ce(e, t, n, r, i) {
|
|
89
|
+
let a = e.dimensions.filter((e) => p(e));
|
|
90
|
+
if (!a[0]) throw Error("Combo chart without dimension is not supported.");
|
|
91
|
+
if (a.length > 1) throw Error("Combo chart currently support only one dimension.");
|
|
92
|
+
let o = x(r.strokeDash), l = s(r.dataItem), u = ne(e, n, t, r, l);
|
|
93
|
+
return {
|
|
94
|
+
type: Y.Line,
|
|
95
|
+
layout: { displayOrder: T.VisualizationElement },
|
|
96
|
+
key: X(e, r, d.Line),
|
|
97
|
+
data: {
|
|
98
|
+
collection: C.ComboChartCollection,
|
|
99
|
+
filter: i
|
|
100
|
+
},
|
|
101
|
+
settings: {
|
|
102
|
+
orientation: e.orientation === c.Horizontal ? c.Vertical : c.Horizontal,
|
|
103
|
+
coordinates: {
|
|
104
|
+
major: { scale: F(e) },
|
|
105
|
+
minor: {
|
|
106
|
+
scale: K(e, r),
|
|
107
|
+
ref: l
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
layers: {
|
|
111
|
+
curve: e.lineSettings?.lineCurve,
|
|
112
|
+
skipCollisions: !0,
|
|
113
|
+
line: {
|
|
114
|
+
stroke: u,
|
|
115
|
+
strokeWidth: r.strokeWidth,
|
|
116
|
+
strokeDasharray: o
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
animations: {
|
|
121
|
+
enabled: !0,
|
|
122
|
+
presetId: "simple-opacity"
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function le(e, t, n, r, i, a, o) {
|
|
127
|
+
let l = e.dimensions.filter((e) => p(e)), f = e.measures.filter((e) => p(e) && e.graphType === d.Bar);
|
|
128
|
+
if (!l[0]) throw Error("Combo chart without dimension is not supported.");
|
|
129
|
+
let m = { scale: F(e) }, h = {
|
|
130
|
+
scale: K(e, i),
|
|
131
|
+
end: { ref: "end" }
|
|
132
|
+
}, g = {
|
|
133
|
+
minWidthPx: 2,
|
|
134
|
+
rx: u(e?.barSettings.barRadius, 0),
|
|
135
|
+
roundAllEdges: e?.barSettings?.roundAllEdges,
|
|
136
|
+
useCustomBoxRounding: !0,
|
|
137
|
+
boxPadding: e?.barSettings?.barPadding ?? U.scale.padding
|
|
138
|
+
};
|
|
139
|
+
g.fill = new re(e, t, n?.[0]?.itemsNotAffectedByFiltering).getColorDefinition({ ref: "fieldId" });
|
|
140
|
+
let _ = {
|
|
141
|
+
enabled: !0,
|
|
142
|
+
presetId: "bar-chart"
|
|
143
|
+
}, v = i?.graphType !== d.Bar;
|
|
144
|
+
if (f.length > 1 && e.barSettings?.grouped) {
|
|
145
|
+
let t = 1 * (1 / f.length), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / f.length, a = (1 + 0 * (f.length - 1)) * r, o = f.findIndex((e) => s(e.dataItem) === s(i.dataItem));
|
|
146
|
+
m.fn = (n) => {
|
|
147
|
+
let r = n.resources.scale(F(e));
|
|
148
|
+
return r(n.datum.value) + a * r.bandwidth?.() + o * r.bandwidth?.() * t;
|
|
149
|
+
}, g.width = n;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
type: Y.Box,
|
|
153
|
+
layout: { displayOrder: T.VisualizationElement },
|
|
154
|
+
key: X(e, i, d.Bar),
|
|
155
|
+
data: {
|
|
156
|
+
collection: C.ComboChartCollection,
|
|
157
|
+
filter: o
|
|
158
|
+
},
|
|
159
|
+
settings: {
|
|
160
|
+
orientation: e.orientation ?? c.Vertical,
|
|
161
|
+
major: m,
|
|
162
|
+
minor: h,
|
|
163
|
+
box: g
|
|
164
|
+
},
|
|
165
|
+
animations: _,
|
|
166
|
+
brush: v ? null : P([""], a)
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
var ue = (e, t) => {
|
|
170
|
+
let n = t ? [y.Inside] : [
|
|
171
|
+
y.Inside,
|
|
172
|
+
y.Outside,
|
|
173
|
+
y.Opposite
|
|
174
|
+
];
|
|
175
|
+
return (e || [
|
|
176
|
+
{
|
|
177
|
+
position: y.Inside,
|
|
178
|
+
justify: 1
|
|
179
|
+
},
|
|
180
|
+
{ position: y.Outside },
|
|
181
|
+
{ position: y.Opposite }
|
|
182
|
+
]).map((e) => ({
|
|
183
|
+
...e,
|
|
184
|
+
possible: n.includes(e.position)
|
|
185
|
+
}));
|
|
186
|
+
}, de = ({ data: e }) => e ? e.end.value > e.start.value ? "up" : "down" : null, fe = ({ data: e }) => e ? e.end.value > e.start.value ? "right" : "left" : null, pe = (e, t, n, a, c, l) => {
|
|
187
|
+
let u = e.measures.filter((e) => p(e)), f = u.filter((e) => e.graphType === d.Bar), m = f.filter((e) => e.dataLabels?.show), h = f.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = q(e), _ = m.map((n) => {
|
|
188
|
+
let i = !!n.dataLabels?.barLabelPlacements, a = ue(n.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
|
|
189
|
+
position: e.position,
|
|
190
|
+
fill: e.position === y.Inside ? r.white : "#242424",
|
|
191
|
+
...e.justify === void 0 ? {} : { justify: e.justify },
|
|
192
|
+
...i ? { overflow: [y.Outside, y.Opposite].includes(e.position) } : {}
|
|
193
|
+
}));
|
|
194
|
+
return n.dataLabels?.showBackdrop && !h && (a = a.map((e) => O(e, t, g))), {
|
|
195
|
+
key: `combo-bar-labels-${n.dataItem.uniqueSignature}`,
|
|
196
|
+
type: Y.Labels,
|
|
197
|
+
layout: { displayOrder: T.Labels },
|
|
198
|
+
settings: { sources: [{
|
|
199
|
+
component: X(e, n, d.Bar),
|
|
200
|
+
selector: J.Rect,
|
|
201
|
+
strategy: {
|
|
202
|
+
type: "bar",
|
|
203
|
+
settings: {
|
|
204
|
+
direction: g ? fe : de,
|
|
205
|
+
fontSize: V(n.dataLabels?.size),
|
|
206
|
+
fontFamily: t.fonts.general.fontFamily,
|
|
207
|
+
labels: [{
|
|
208
|
+
label: w(n),
|
|
209
|
+
placements: a
|
|
210
|
+
}]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}] },
|
|
214
|
+
animations: {
|
|
215
|
+
enabled: !0,
|
|
216
|
+
presetId: "chart-labels"
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}), v = {}, b = {}, x = u.filter((e) => e.graphType !== d.Bar).map((t) => {
|
|
220
|
+
let n = s(t.dataItem), r = X(e, t, d.Point);
|
|
221
|
+
return b[r] = n, v[r] = {
|
|
222
|
+
enabled: t.dataLabels?.show || !1,
|
|
223
|
+
fontSize: V(t.dataLabels?.size),
|
|
224
|
+
backdropColor: t.dataLabels?.backdropColor,
|
|
225
|
+
textColor: t.dataLabels?.textColor,
|
|
226
|
+
isColored: t.dataLabels?.isColored,
|
|
227
|
+
colorType: t.dataLabels?.showBackdrop ? i.Backdrop : i.Text,
|
|
228
|
+
density: t.dataLabels?.density || o.Medium
|
|
229
|
+
}, r;
|
|
230
|
+
}).filter((e) => v[e].enabled), S = x.length ? [M({
|
|
231
|
+
targetComponentKeys: x,
|
|
232
|
+
targetSelector: `.${z}`,
|
|
233
|
+
label: ({ data: e, node: t }) => e[b[t.key]]?.label,
|
|
234
|
+
skipBrush: !0
|
|
235
|
+
}, v, l, t)] : [];
|
|
236
|
+
if (_.length && S.length) {
|
|
237
|
+
let e = {
|
|
238
|
+
...S[0],
|
|
239
|
+
settings: {
|
|
240
|
+
...S[0].settings,
|
|
241
|
+
sources: [..._.flatMap((e) => e.settings?.sources ?? []), ...S[0].settings?.sources ?? []]
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
return {
|
|
245
|
+
...n,
|
|
246
|
+
components: [...n.components, e]
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
...n,
|
|
251
|
+
components: [
|
|
252
|
+
...n.components,
|
|
253
|
+
..._,
|
|
254
|
+
...S
|
|
255
|
+
]
|
|
256
|
+
};
|
|
257
|
+
}, me = class extends D {
|
|
258
|
+
constructor() {
|
|
259
|
+
super([
|
|
260
|
+
$,
|
|
261
|
+
oe,
|
|
262
|
+
A,
|
|
263
|
+
te,
|
|
264
|
+
se,
|
|
265
|
+
L,
|
|
266
|
+
I,
|
|
267
|
+
pe,
|
|
268
|
+
H,
|
|
269
|
+
S,
|
|
270
|
+
k,
|
|
271
|
+
Q,
|
|
272
|
+
W,
|
|
273
|
+
j
|
|
274
|
+
]);
|
|
275
|
+
}
|
|
276
|
+
}, he = v(), ge = _(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
277
|
+
let a = g(), [o] = (0, ae.useState)(() => new me()), s = h(), c = G();
|
|
278
|
+
if (!e || !r) return null;
|
|
279
|
+
let l = t || f, u = o.compile(e, l, n, r, i, d.Combo, a, s, c);
|
|
280
|
+
return u ? /* @__PURE__ */ (0, he.jsx)(B, {
|
|
281
|
+
config: i,
|
|
282
|
+
definition: u,
|
|
283
|
+
size: r,
|
|
284
|
+
vSpec: e
|
|
285
|
+
}) : null;
|
|
286
|
+
});
|
|
287
|
+
export { ge as ComboChart };
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Ds as n, E as r, Hi as i, St as a, Us as o, Wa as s, Za as c, _t as l, ft as u, hi as d, kt as f, pt as p, ts as m, ws as ee, zi as te, zr as h } from "./visualization-filters-Cc4KU-l-.js";
|
|
3
|
+
import { Ei as g, F as _, N as v, Vn as y, Xt as b, o as ne, ri as re } from "./utils-vdmi_2PK.js";
|
|
4
|
+
import "./logger-DpQtYQnX.js";
|
|
5
|
+
import { At as x, Bt as S, Dt as ie, Et as ae, F as oe, Ft as se, I as ce, It as le, Jt as ue, K as de, Lt as C, Mt as w, Pt as T, St as E, Tt as D, Ut as O, Yt as k, _n as A, an as j, bt as M, cn as N, dt as P, et as F, fn as I, i as L, kt as R, mt as z, n as B, on as V, pn as H, q as fe, sn as pe, st as U, tt as me, un as he, ut as ge, vn as W, yt as G } from "./escobar-DRhRMYRE.js";
|
|
6
|
+
import { i as _e, t as ve } from "./coloring-CncX_JRX.js";
|
|
7
|
+
import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
8
|
+
import { t as ye } from "./range-Bi-7zT0k.js";
|
|
9
|
+
var be = /* @__PURE__ */ t(((e, t) => {
|
|
10
|
+
var n = _e();
|
|
11
|
+
function r(e) {
|
|
12
|
+
var t = n(e), r = t % 1;
|
|
13
|
+
return t === t ? r ? t - r : t : 0;
|
|
14
|
+
}
|
|
15
|
+
t.exports = r;
|
|
16
|
+
}));
|
|
17
|
+
g();
|
|
18
|
+
var xe = (e, t, n, r, i, a, s = []) => {
|
|
19
|
+
n.collections ??= [];
|
|
20
|
+
let c = e.dimensions.filter((e) => h(e)), l = e.measures.filter((e) => h(e)), u = Se(e, t, n, s);
|
|
21
|
+
return c[0] && (n.collections.push({
|
|
22
|
+
key: x.DimensionDomain,
|
|
23
|
+
data: { extract: [{ field: o(c[0].dataItem) }] }
|
|
24
|
+
}), u[j(e)] = {
|
|
25
|
+
data: { collection: x.DimensionDomain },
|
|
26
|
+
type: I.Band
|
|
27
|
+
}), l[0] && (u[V(e, l[0])] = {
|
|
28
|
+
data: { field: o(l[0].dataItem) },
|
|
29
|
+
expand: .02,
|
|
30
|
+
invert: fe(!1, e.axes?.primaryMeasure),
|
|
31
|
+
...de(e.axes?.primaryMeasure?.axisRange, !0)
|
|
32
|
+
}), {
|
|
33
|
+
...n,
|
|
34
|
+
scales: u
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
function Se(e, t, r, i) {
|
|
38
|
+
let a = e.dimensions.filter((e) => h(e)), s = e.measures.filter((e) => h(e));
|
|
39
|
+
switch (e.coloring?.type) {
|
|
40
|
+
case n.Categorical: {
|
|
41
|
+
let n = ie(e, i, a[1]);
|
|
42
|
+
return G(r, 1, { color: { field: n } }), { categorical: D(K(e, n), t, n, {
|
|
43
|
+
customPalette: e.coloring.customPalette ?? d.customPalette,
|
|
44
|
+
palette: e.coloring.palette,
|
|
45
|
+
sortOrder: e.coloring.sortOrder
|
|
46
|
+
}, r.collections) };
|
|
47
|
+
}
|
|
48
|
+
case n.Gradient: {
|
|
49
|
+
let n = R(e);
|
|
50
|
+
return G(r, 1, { color: { field: n } }), ae(K(e, n), t, {});
|
|
51
|
+
}
|
|
52
|
+
case n.Single: {
|
|
53
|
+
let i = o(s[0]?.dataItem);
|
|
54
|
+
i && G(r, 1, { color: { field: i } });
|
|
55
|
+
let a = e?.coloring?.color ?? t.colors.brandColors[0];
|
|
56
|
+
return { [n.Single]: {
|
|
57
|
+
data: [],
|
|
58
|
+
unknown: a,
|
|
59
|
+
type: I.CategoricalColor,
|
|
60
|
+
range: [a]
|
|
61
|
+
} };
|
|
62
|
+
}
|
|
63
|
+
default: return {};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
var Ce = (e, t, n) => {
|
|
67
|
+
let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)), a = (e.supportingMeasures ?? []).filter((e) => h(e)), [s, c] = r, l = o(s?.dataItem), u = o(c?.dataItem), d = o(i[0]?.dataItem), f = ce(a), p = {
|
|
68
|
+
key: x.DotBarCollection,
|
|
69
|
+
data: { extract: [{
|
|
70
|
+
field: l,
|
|
71
|
+
trackBy: (e) => e,
|
|
72
|
+
reduce: "first",
|
|
73
|
+
props: {
|
|
74
|
+
start: {
|
|
75
|
+
field: d,
|
|
76
|
+
reduce: "min"
|
|
77
|
+
},
|
|
78
|
+
med: {
|
|
79
|
+
field: d,
|
|
80
|
+
reduce: "avg"
|
|
81
|
+
},
|
|
82
|
+
end: {
|
|
83
|
+
field: d,
|
|
84
|
+
reduce: "max"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}] }
|
|
88
|
+
}, m = {
|
|
89
|
+
key: x.DotPointsCollection,
|
|
90
|
+
data: { extract: [{
|
|
91
|
+
field: u,
|
|
92
|
+
props: {
|
|
93
|
+
x: { field: d },
|
|
94
|
+
group: { field: l },
|
|
95
|
+
[d]: { field: d },
|
|
96
|
+
...f
|
|
97
|
+
}
|
|
98
|
+
}] }
|
|
99
|
+
};
|
|
100
|
+
return {
|
|
101
|
+
...n,
|
|
102
|
+
collections: [p, m]
|
|
103
|
+
};
|
|
104
|
+
}, we = /* @__PURE__ */ t(((e, t) => {
|
|
105
|
+
var n = Math.floor, r = Math.random;
|
|
106
|
+
function i(e, t) {
|
|
107
|
+
return e + n(r() * (t - e + 1));
|
|
108
|
+
}
|
|
109
|
+
t.exports = i;
|
|
110
|
+
})), q = /* @__PURE__ */ t(((e, t) => {
|
|
111
|
+
var n = we();
|
|
112
|
+
function r(e, t) {
|
|
113
|
+
var r = -1, i = e.length, a = i - 1;
|
|
114
|
+
for (t = t === void 0 ? i : t; ++r < t;) {
|
|
115
|
+
var o = n(r, a), s = e[o];
|
|
116
|
+
e[o] = e[r], e[r] = s;
|
|
117
|
+
}
|
|
118
|
+
return e.length = t, e;
|
|
119
|
+
}
|
|
120
|
+
t.exports = r;
|
|
121
|
+
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
122
|
+
var n = r(), i = q();
|
|
123
|
+
function a(e) {
|
|
124
|
+
return i(n(e));
|
|
125
|
+
}
|
|
126
|
+
t.exports = a;
|
|
127
|
+
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
128
|
+
var n = p();
|
|
129
|
+
function r(e, t) {
|
|
130
|
+
return n(t, function(t) {
|
|
131
|
+
return e[t];
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
t.exports = r;
|
|
135
|
+
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
136
|
+
var n = Ee(), r = l();
|
|
137
|
+
function i(e) {
|
|
138
|
+
return e == null ? [] : n(e, r(e));
|
|
139
|
+
}
|
|
140
|
+
t.exports = i;
|
|
141
|
+
})), Oe = /* @__PURE__ */ t(((e, t) => {
|
|
142
|
+
var n = q(), r = De();
|
|
143
|
+
function i(e) {
|
|
144
|
+
return n(r(e));
|
|
145
|
+
}
|
|
146
|
+
t.exports = i;
|
|
147
|
+
})), ke = /* @__PURE__ */ t(((e, t) => {
|
|
148
|
+
var n = Te(), r = Oe(), i = a();
|
|
149
|
+
function o(e) {
|
|
150
|
+
return (i(e) ? n : r)(e);
|
|
151
|
+
}
|
|
152
|
+
t.exports = o;
|
|
153
|
+
})), Ae = /* @__PURE__ */ e(ye()), je = /* @__PURE__ */ e(ke()), J = (e) => 1 - (e.barSettings.barPadding ?? 0);
|
|
154
|
+
function Me(e, t, n) {
|
|
155
|
+
let r = new ve(e, t, n?.[0]?.itemsNotAffectedByFiltering);
|
|
156
|
+
return r.getColorDefinition({
|
|
157
|
+
overwriteSources: [r.MAIN_FIELD],
|
|
158
|
+
ref: "color"
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function Ne(e) {
|
|
162
|
+
let t = k([""], e, { valuePickerMode: e?.valuePickerMode }), n = t?.consume?.[1]?.style?.active?.strokeWidth, r = (t?.consume?.[1])?.style?.active;
|
|
163
|
+
return typeof n == "function" && r && (r.strokeWidth = (e) => e.type === he.Line ? 1 : n(e)), t ?? {};
|
|
164
|
+
}
|
|
165
|
+
function Y(e) {
|
|
166
|
+
return ue({
|
|
167
|
+
triggerData: [""],
|
|
168
|
+
consumeData: ["", "group"],
|
|
169
|
+
consumerMode: A.Or
|
|
170
|
+
}, e ?? {}, { valuePickerMode: e?.valuePickerMode }) ?? {};
|
|
171
|
+
}
|
|
172
|
+
var X = 100, Z = .1, Q = .9, Pe = (0, je.default)((0, Ae.default)(Z, Q, (Q - Z) / X));
|
|
173
|
+
function Fe(e, t) {
|
|
174
|
+
return ({ datum: n, resources: { scale: r } }, i) => {
|
|
175
|
+
let a = r?.(j(t));
|
|
176
|
+
if (!a || typeof a != "function" || typeof a.bandwidth != "function") return 0;
|
|
177
|
+
let o = t.jitterPoints ? Pe[i % X] : .5;
|
|
178
|
+
return a(n.group.value) + .5 * (1 - e) * a.bandwidth() + e * a.bandwidth() * o;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
var Ie = (e, t, n, r, i = [], a) => {
|
|
182
|
+
let o = Le(e, t, a), s = Re(e, Me(e, t, i), a);
|
|
183
|
+
return {
|
|
184
|
+
...n,
|
|
185
|
+
components: [
|
|
186
|
+
...n.components,
|
|
187
|
+
o,
|
|
188
|
+
s
|
|
189
|
+
]
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
function Le(e, t, n) {
|
|
193
|
+
let r = {
|
|
194
|
+
orientation: e.orientation,
|
|
195
|
+
major: { scale: j(e) },
|
|
196
|
+
minor: { scale: V(e, e.measures.filter((e) => h(e))[0]) },
|
|
197
|
+
box: {
|
|
198
|
+
width: J(e),
|
|
199
|
+
fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
|
|
200
|
+
rx: e.barSettings?.barRadius ?? 0,
|
|
201
|
+
roundAllEdges: !0
|
|
202
|
+
},
|
|
203
|
+
median: {
|
|
204
|
+
stroke: i.mainDarkNavy,
|
|
205
|
+
strokeWidth: 2
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
return e.barSettings?.strokeEnabled ? (r.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], r.box.strokeWidth = e.barSettings?.strokeWidth) : r.box.stroke = i.transparent, {
|
|
209
|
+
type: W.Box,
|
|
210
|
+
layout: { displayOrder: S.VisualizationElement },
|
|
211
|
+
key: "min-max-box",
|
|
212
|
+
data: { collection: x.DotBarCollection },
|
|
213
|
+
settings: r,
|
|
214
|
+
animations: {
|
|
215
|
+
enabled: !0,
|
|
216
|
+
presetId: "bar-chart"
|
|
217
|
+
},
|
|
218
|
+
brush: Ne(n)
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
function Re(e, t, n) {
|
|
222
|
+
let r = Fe(J(e) * .9, e);
|
|
223
|
+
return {
|
|
224
|
+
type: W.Point,
|
|
225
|
+
key: "dot-point",
|
|
226
|
+
layout: { displayOrder: S.VisualizationElement },
|
|
227
|
+
data: { collection: x.DotPointsCollection },
|
|
228
|
+
settings: {
|
|
229
|
+
x: { scale: V(e, e.measures.filter((e) => h(e))[0]) },
|
|
230
|
+
y: {
|
|
231
|
+
scale: j(e),
|
|
232
|
+
fn: r
|
|
233
|
+
},
|
|
234
|
+
shape: s.Circle,
|
|
235
|
+
size: e.pointSize,
|
|
236
|
+
strokeWidth: 2,
|
|
237
|
+
opacity: .8,
|
|
238
|
+
fill: t,
|
|
239
|
+
id: ({ datum: e }) => `${e.group.value}::${e.value}`
|
|
240
|
+
},
|
|
241
|
+
animations: { enabled: !0 },
|
|
242
|
+
brush: Y(n)
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function ze(e, t, n) {
|
|
246
|
+
if (!e.refLines?.x) return n;
|
|
247
|
+
let r = e.refLines.x.map((e) => ge(e, N.XAxisScale, t)), i = {
|
|
248
|
+
type: W.RefLine,
|
|
249
|
+
layout: { displayOrder: S.RefLine },
|
|
250
|
+
lines: { x: r }
|
|
251
|
+
};
|
|
252
|
+
return {
|
|
253
|
+
...n,
|
|
254
|
+
components: [...n.components, i]
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
var Be = /* @__PURE__ */ t(((e, t) => {
|
|
258
|
+
var n = f(), r = be(), i = y(), a = u(), o = n.isFinite, s = Math.min;
|
|
259
|
+
function c(e) {
|
|
260
|
+
var t = Math[e];
|
|
261
|
+
return function(e, n) {
|
|
262
|
+
if (e = i(e), n = n == null ? 0 : s(r(n), 292), n && o(e)) {
|
|
263
|
+
var c = (a(e) + "e").split("e");
|
|
264
|
+
return c = (a(t(c[0] + "e" + (+c[1] + n))) + "e").split("e"), +(c[0] + "e" + (+c[1] - n));
|
|
265
|
+
}
|
|
266
|
+
return t(e);
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
t.exports = c;
|
|
270
|
+
})), Ve = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
271
|
+
t.exports = Be()("round");
|
|
272
|
+
})))());
|
|
273
|
+
function $(e, t, n) {
|
|
274
|
+
let r = e.measures.filter((e) => h(e))[0];
|
|
275
|
+
return F(e, t, n, {
|
|
276
|
+
filter: He,
|
|
277
|
+
placement: {
|
|
278
|
+
type: "bounds",
|
|
279
|
+
area: "target"
|
|
280
|
+
},
|
|
281
|
+
extract: me(e, t, Ue(r?.formatter), We)
|
|
282
|
+
}, "tooltip", void 0, {
|
|
283
|
+
componentKeys: ["dot-point"],
|
|
284
|
+
yieldToComponentKeys: ["min-max-box"]
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
function He(e) {
|
|
288
|
+
if (e.length === 0) return [];
|
|
289
|
+
let t = e[0];
|
|
290
|
+
return ["dot-point", "min-max-box"].includes(t.key) ? [t] : [];
|
|
291
|
+
}
|
|
292
|
+
function Ue(e) {
|
|
293
|
+
return (t, n, r, i, a, o, s, c) => {
|
|
294
|
+
if (n.key === "dot-point") {
|
|
295
|
+
let t = n.data.x.value;
|
|
296
|
+
return !c && e ? t = r.formatter(e)(t, void 0, n.data) : c && (t = r.formatter(U(e))(n.data.x.value, void 0, n.data)), [{
|
|
297
|
+
label: n.data.label,
|
|
298
|
+
value: t
|
|
299
|
+
}];
|
|
300
|
+
} else if (n.key === "min-max-box") {
|
|
301
|
+
let t = n.data.start.value, i = (0, Ve.default)(n.data.med.value, 2), a = n.data.end.value;
|
|
302
|
+
return !c && e ? (t = r.formatter(e)(t), i = r.formatter(e)(i), a = r.formatter(e)(a)) : c && (t = r.formatter(U(e))(t), i = r.formatter(U(e))(i), a = r.formatter(U(e))(a)), [
|
|
303
|
+
{
|
|
304
|
+
label: "Min",
|
|
305
|
+
value: t
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
label: "Avg",
|
|
309
|
+
value: i
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
label: "Max",
|
|
313
|
+
value: a
|
|
314
|
+
}
|
|
315
|
+
];
|
|
316
|
+
}
|
|
317
|
+
return [];
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
function We(e) {
|
|
321
|
+
return e.filter((e) => h(e))[1]?.label ?? "";
|
|
322
|
+
}
|
|
323
|
+
var Ge = (e, t, n) => {
|
|
324
|
+
let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)), a = {
|
|
325
|
+
showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
|
|
326
|
+
formatter: r[0]?.formatter || {
|
|
327
|
+
type: "string",
|
|
328
|
+
format: ""
|
|
329
|
+
},
|
|
330
|
+
scale: j(e),
|
|
331
|
+
key: `${w.Dimension}-${e.orientation ?? c.Vertical}`,
|
|
332
|
+
settings: { direction: T(e) }
|
|
333
|
+
}, o = i[0], [s, l] = C([a, {
|
|
334
|
+
showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
|
|
335
|
+
formatter: o?.formatter,
|
|
336
|
+
scale: V(e, o),
|
|
337
|
+
key: `${w.Measure}-${e.orientation ?? c.Vertical}`,
|
|
338
|
+
settings: {
|
|
339
|
+
direction: le(e),
|
|
340
|
+
labelDock: se(pe(e), o?.secondaryAxis)
|
|
341
|
+
}
|
|
342
|
+
}]);
|
|
343
|
+
return {
|
|
344
|
+
...n,
|
|
345
|
+
components: [...n.components ?? [], ...s],
|
|
346
|
+
interactions: [...n.interactions ?? [], ...l]
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
function Ke(e, t, r, i, a, o) {
|
|
350
|
+
let { components: s, interactions: c } = M(e, t, r, i, a ?? [], o ?? {});
|
|
351
|
+
if (!e.coloring || e.coloring.type === n.Single) return {
|
|
352
|
+
...r,
|
|
353
|
+
components: s,
|
|
354
|
+
interactions: c
|
|
355
|
+
};
|
|
356
|
+
let l = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), u = s.map((e) => (e.type === H.CategoricalLegend || e.type === H.SequentialLegend) && l ? {
|
|
357
|
+
...e,
|
|
358
|
+
brush: Y(o)
|
|
359
|
+
} : e);
|
|
360
|
+
return {
|
|
361
|
+
...r,
|
|
362
|
+
components: u,
|
|
363
|
+
interactions: c
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
var qe = class extends oe {
|
|
367
|
+
constructor() {
|
|
368
|
+
super([
|
|
369
|
+
Ce,
|
|
370
|
+
xe,
|
|
371
|
+
O,
|
|
372
|
+
E,
|
|
373
|
+
Ke,
|
|
374
|
+
P,
|
|
375
|
+
Ie,
|
|
376
|
+
ze,
|
|
377
|
+
$,
|
|
378
|
+
Ge,
|
|
379
|
+
z
|
|
380
|
+
]);
|
|
381
|
+
}
|
|
382
|
+
}, Je = re(), Ye = new qe(), Xe = b(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
383
|
+
let a = v(), { activeKey: o } = ne(), s = _(), c = B();
|
|
384
|
+
if (!e || !m(e) || !r) return null;
|
|
385
|
+
let l = {
|
|
386
|
+
...i,
|
|
387
|
+
valuePickerMode: !!o
|
|
388
|
+
}, u = t || te, d = Ye.compile(e, u, n, r, l, ee.Dot, a, s, c);
|
|
389
|
+
return d ? /* @__PURE__ */ (0, Je.jsx)(L, {
|
|
390
|
+
config: l,
|
|
391
|
+
definition: d,
|
|
392
|
+
size: r,
|
|
393
|
+
vSpec: e
|
|
394
|
+
}) : null;
|
|
395
|
+
});
|
|
396
|
+
export { Xe as DotChart };
|