@astrato-io/visualizations 0.0.0-stage → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +93 -0
  3. package/README.md +843 -2
  4. package/THIRD_PARTY_NOTICES.md +8387 -0
  5. package/VISUALIZATION_DEFINITIONS.md +2378 -0
  6. package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
  7. package/chunks/Radio-Ciu-F4CU.js +957 -0
  8. package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
  9. package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
  10. package/chunks/accessors-DemrDevR.js +128 -0
  11. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
  12. package/chunks/bar.compiler-oqaPzIut.js +370 -0
  13. package/chunks/color-settings-ZIvgNTq1.js +10 -0
  14. package/chunks/coloring-C16AUZEi.js +663 -0
  15. package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
  16. package/chunks/debounce-fn-CUixuz45.js +7 -0
  17. package/chunks/escobar-BGqT1EsE.js +34580 -0
  18. package/chunks/event-bus-KiSiCJrC.js +2683 -0
  19. package/chunks/events-WZut5Ow6.js +4 -0
  20. package/chunks/extend-BKUkc4_i.js +37 -0
  21. package/chunks/filter.compiler-CuLtc_02.js +60 -0
  22. package/chunks/filtering-Yq4DEa0t.js +953 -0
  23. package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
  24. package/chunks/grouping-type-BX_9Ix5q.js +3 -0
  25. package/chunks/interfaces-VUY4_yVO.js +8742 -0
  26. package/chunks/line-settings-DfYTUyPz.js +4 -0
  27. package/chunks/line.compiler-BpA_6Tc7.js +188 -0
  28. package/chunks/metadata-CPXdYoln.js +28 -0
  29. package/chunks/number.compiler-DbkWcG4S.js +44 -0
  30. package/chunks/pie-uv42Eqal.js +10 -0
  31. package/chunks/range-DrzdfBX4.js +22 -0
  32. package/chunks/registry-CExpGJ1N.js +920 -0
  33. package/chunks/requirements-DNhuShLS.js +6 -0
  34. package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
  35. package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
  36. package/chunks/shared-CKDL4hx9.js +1171 -0
  37. package/chunks/src-BC7cGcJ-.js +2024 -0
  38. package/chunks/src-BOS6SqkZ.js +67 -0
  39. package/chunks/src-C0LgoUWY.js +26105 -0
  40. package/chunks/src-Cum_2NLV.js +12145 -0
  41. package/chunks/src-D9XogOrc.js +422 -0
  42. package/chunks/src-Dun_jXtz.js +10295 -0
  43. package/chunks/src-DvX5LU9T.js +14742 -0
  44. package/chunks/standalone-87YV_m9n.js +687 -0
  45. package/chunks/standalone-BDCwI6Hn.js +4619 -0
  46. package/chunks/standalone-BH5NqDwp.js +1763 -0
  47. package/chunks/standalone-BLVAWLNJ.js +385 -0
  48. package/chunks/standalone-BPomtAVs.js +2 -0
  49. package/chunks/standalone-BXyBcUOQ.js +2 -0
  50. package/chunks/standalone-BYm1UjLr.js +140 -0
  51. package/chunks/standalone-BllF4rDp.js +383 -0
  52. package/chunks/standalone-BmfMt74U.js +726 -0
  53. package/chunks/standalone-BqWyrnZI.js +281 -0
  54. package/chunks/standalone-C85u7U6I.js +340 -0
  55. package/chunks/standalone-CCNtaJ7s.js +741 -0
  56. package/chunks/standalone-CDQnr6qT.js +345 -0
  57. package/chunks/standalone-CNyNHKVx.js +674 -0
  58. package/chunks/standalone-CY57qwZ-.js +1129 -0
  59. package/chunks/standalone-CZynjFG7.js +12979 -0
  60. package/chunks/standalone-D5vnf-9y.js +3943 -0
  61. package/chunks/standalone-DFPva_ku.js +299 -0
  62. package/chunks/standalone-DQxxNwF8.js +675 -0
  63. package/chunks/standalone-DS9T0FZ-.js +830 -0
  64. package/chunks/standalone-Dx3MLlrO.js +512 -0
  65. package/chunks/standalone-DzixzZAL.js +411 -0
  66. package/chunks/standalone-QJ1kKMnO.js +6 -0
  67. package/chunks/standalone-jiz0L2Dg.js +3855 -0
  68. package/chunks/standalone-lBm9hQ-q.js +179 -0
  69. package/chunks/standalone-rJ45Zfl1.js +68 -0
  70. package/chunks/stroke-dash-UgMEcCS4.js +6 -0
  71. package/chunks/table.compiler-BrXkm4Fz.js +213 -0
  72. package/chunks/toInteger-DVZr-D1j.js +11 -0
  73. package/chunks/treemap-x_zmJoG7.js +23 -0
  74. package/chunks/typeof-CJDtcySz.js +13 -0
  75. package/chunks/types-dVVCsDWD.js +4 -0
  76. package/chunks/ui-D1HQNIBy.js +54039 -0
  77. package/chunks/url-utils-B17gj_mr.js +5501 -0
  78. package/chunks/useFieldName-oqQ3bvnO.js +7 -0
  79. package/chunks/utils-Ba9T0TqC.js +31097 -0
  80. package/chunks/view-CLqWMV7Z.js +156 -0
  81. package/definitions.js +3 -0
  82. package/docs/operations/astrato-app-filter-bar.md +161 -0
  83. package/docs/operations/bar.md +7050 -0
  84. package/docs/operations/combo.md +5825 -0
  85. package/docs/operations/date-picker.md +644 -0
  86. package/docs/operations/distribution-gauge.md +3218 -0
  87. package/docs/operations/dot.md +5662 -0
  88. package/docs/operations/filter.md +1507 -0
  89. package/docs/operations/gauge.md +3452 -0
  90. package/docs/operations/heatMap.md +6026 -0
  91. package/docs/operations/histogram.md +1870 -0
  92. package/docs/operations/iframe.md +56 -0
  93. package/docs/operations/image.md +177 -0
  94. package/docs/operations/index.md +46 -0
  95. package/docs/operations/line.md +6468 -0
  96. package/docs/operations/number.md +3969 -0
  97. package/docs/operations/pie.md +6089 -0
  98. package/docs/operations/radar.md +4646 -0
  99. package/docs/operations/sankey.md +3210 -0
  100. package/docs/operations/scatter.md +6075 -0
  101. package/docs/operations/shape.md +315 -0
  102. package/docs/operations/simpleTextObject.md +706 -0
  103. package/docs/operations/slider.md +230 -0
  104. package/docs/operations/table.md +8790 -0
  105. package/docs/operations/tree.md +2874 -0
  106. package/docs/operations/treemap.md +3619 -0
  107. package/docs/operations/waterfall.md +2938 -0
  108. package/docs/operations/word-cloud.md +3071 -0
  109. package/getters.js +18 -0
  110. package/index.js +1183 -0
  111. package/metadata.js +20 -0
  112. package/operations.js +64 -0
  113. package/package.json +191 -4
  114. package/src/definitions/index.d.ts +2 -0
  115. package/src/definitions/shared/index.d.ts +5 -0
  116. package/src/definitions/shared/lib/available-fields.d.ts +36 -0
  117. package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
  118. package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
  119. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
  120. package/src/definitions/shared/lib/registry/index.d.ts +3 -0
  121. package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
  122. package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
  123. package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
  124. package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
  125. package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
  126. package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
  127. package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
  128. package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
  129. package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
  130. package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
  131. package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
  132. package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
  133. package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
  134. package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
  135. package/src/definitions/shared/lib/types/index.d.ts +3 -0
  136. package/src/getters/index.d.ts +30 -0
  137. package/src/index.d.ts +4 -0
  138. package/src/metadata/index.d.ts +4 -0
  139. package/src/operations/index.d.ts +30 -0
  140. package/src/registry/index.d.ts +6 -0
  141. package/src/runtime/index.d.ts +2 -0
  142. package/src/types.d.ts +307 -0
  143. package/src/visualization-catalog.d.ts +82 -0
  144. package/src/web-components/index.d.ts +12 -0
  145. package/styles.css +2 -0
@@ -0,0 +1,383 @@
1
+ import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { Do as n, Lt as r, Oa as i, Po as a, Rt as o, Ta as s, Ti as c, U as l, Wt as u, Xs as d, ln as f, pc as p, qs as m, tn as h } from "./interfaces-VUY4_yVO.js";
3
+ import { I as g, Ki as _, Kn as v, P as ee, Zt as te, o as ne, wi as re } from "./utils-Ba9T0TqC.js";
4
+ import { At as ie, Ct as y, Et as b, Ft as x, H as S, M as ae, Mt as oe, Nt as se, Ot as C, Qt as ce, Rt as le, St as ue, Tt as w, U as T, Ut as E, Wt as D, X as O, Xt as k, Yt as A, Z as j, Zt as M, an as N, gt as P, ht as F, i as I, in as L, j as R, jt as z, ln as B, n as V, nn as H, ot as U, rt as W, st as de, un as G, ut as fe, vt as pe, xt as me } from "./escobar-BGqT1EsE.js";
5
+ import { t as he } from "./coloring-C16AUZEi.js";
6
+ import { t as ge } from "./toInteger-DVZr-D1j.js";
7
+ import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
8
+ import { t as _e } from "./range-DrzdfBX4.js";
9
+ _();
10
+ var q = (e, t, n, r, i, a, o) => {
11
+ let s = e.dimensions.filter((e) => c(e)), l = e.measures.filter((e) => c(e)), u = ve(e, t, n, o);
12
+ return s[0] && (n.collections.push({
13
+ key: b.DimensionDomain,
14
+ data: { extract: [{ field: p(s[0].dataItem) }] }
15
+ }), u[A(e)] = {
16
+ data: { collection: b.DimensionDomain },
17
+ type: L.Band
18
+ }), l[0] && (u[k(e, l[0])] = {
19
+ data: { field: p(l[0].dataItem) },
20
+ expand: .02,
21
+ invert: T(!1, e.axes?.primaryMeasure),
22
+ ...S(e.axes?.primaryMeasure?.axisRange, !0)
23
+ }), {
24
+ ...n,
25
+ scales: u
26
+ };
27
+ };
28
+ function ve(e, t, n, r) {
29
+ let i = e.dimensions.filter((e) => c(e)), a = e.measures.filter((e) => c(e));
30
+ switch (e.coloring?.type) {
31
+ case d.Categorical: {
32
+ let a = y(e, r, i[1]);
33
+ return F(n, 1, { color: { field: a } }), { categorical: me(K(e, a), t, a, {
34
+ customPalette: e.coloring.customPalette,
35
+ palette: e.coloring.palette,
36
+ sortOrder: e.coloring.sortOrder
37
+ }, n.collections) };
38
+ }
39
+ case d.Gradient: {
40
+ let r = w(e);
41
+ return F(n, 1, { color: { field: r } }), ue(K(e, r), t, {});
42
+ }
43
+ case d.Single: {
44
+ let r = p(a[0]?.dataItem);
45
+ r && F(n, 1, { color: { field: r } });
46
+ let i = e?.coloring?.color ?? t.colors.brandColors[0];
47
+ return { [d.Single]: {
48
+ data: [],
49
+ unknown: i,
50
+ type: L.CategoricalColor,
51
+ range: [i]
52
+ } };
53
+ }
54
+ default: return {};
55
+ }
56
+ }
57
+ var ye = (e, t, n) => {
58
+ let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), a = (e.supportingMeasures ?? []).filter((e) => c(e)), [o, s] = r, l = p(o?.dataItem), u = p(s?.dataItem), d = p(i[0]?.dataItem), f = ae(a), m = {
59
+ key: b.DotBarCollection,
60
+ data: { extract: [{
61
+ field: l,
62
+ trackBy: (e) => e,
63
+ reduce: "first",
64
+ props: {
65
+ start: {
66
+ field: d,
67
+ reduce: "min"
68
+ },
69
+ med: {
70
+ field: d,
71
+ reduce: "avg"
72
+ },
73
+ end: {
74
+ field: d,
75
+ reduce: "max"
76
+ }
77
+ }
78
+ }] }
79
+ }, h = {
80
+ key: b.DotPointsCollection,
81
+ data: { extract: [{
82
+ field: u,
83
+ props: {
84
+ x: { field: d },
85
+ group: { field: l },
86
+ [d]: { field: d },
87
+ ...f
88
+ }
89
+ }] }
90
+ };
91
+ return {
92
+ ...n,
93
+ collections: [m, h]
94
+ };
95
+ }, be = /* @__PURE__ */ t(((e, t) => {
96
+ var n = Math.floor, r = Math.random;
97
+ function i(e, t) {
98
+ return e + n(r() * (t - e + 1));
99
+ }
100
+ t.exports = i;
101
+ })), J = /* @__PURE__ */ t(((e, t) => {
102
+ var n = be();
103
+ function r(e, t) {
104
+ var r = -1, i = e.length, a = i - 1;
105
+ for (t = t === void 0 ? i : t; ++r < t;) {
106
+ var o = n(r, a), s = e[o];
107
+ e[o] = e[r], e[r] = s;
108
+ }
109
+ return e.length = t, e;
110
+ }
111
+ t.exports = r;
112
+ })), xe = /* @__PURE__ */ t(((e, t) => {
113
+ var n = l(), r = J();
114
+ function i(e) {
115
+ return r(n(e));
116
+ }
117
+ t.exports = i;
118
+ })), Se = /* @__PURE__ */ t(((e, t) => {
119
+ var n = o();
120
+ function r(e, t) {
121
+ return n(t, function(t) {
122
+ return e[t];
123
+ });
124
+ }
125
+ t.exports = r;
126
+ })), Ce = /* @__PURE__ */ t(((e, t) => {
127
+ var n = Se(), r = u();
128
+ function i(e) {
129
+ return e == null ? [] : n(e, r(e));
130
+ }
131
+ t.exports = i;
132
+ })), we = /* @__PURE__ */ t(((e, t) => {
133
+ var n = J(), r = Ce();
134
+ function i(e) {
135
+ return n(r(e));
136
+ }
137
+ t.exports = i;
138
+ })), Te = /* @__PURE__ */ t(((e, t) => {
139
+ var n = xe(), r = we(), i = h();
140
+ function a(e) {
141
+ return (i(e) ? n : r)(e);
142
+ }
143
+ t.exports = a;
144
+ })), Ee = /* @__PURE__ */ e(_e()), De = /* @__PURE__ */ e(Te()), Y = (e) => 1 - (e.barSettings.barPadding ?? 0);
145
+ function Oe(e, t, n) {
146
+ let r = new he(e, t, n?.[0]?.itemsNotAffectedByFiltering);
147
+ return r.getColorDefinition({
148
+ overwriteSources: [r.MAIN_FIELD],
149
+ ref: "color"
150
+ });
151
+ }
152
+ function ke(e) {
153
+ let t = D([""], e, { valuePickerMode: e?.valuePickerMode }), n = t?.consume?.[1]?.style?.active?.strokeWidth;
154
+ return typeof n == "function" && (t.consume[1].style.active.strokeWidth = (e) => e.type === H.Line ? 1 : n(e)), t;
155
+ }
156
+ function X(e) {
157
+ return E({
158
+ triggerData: [""],
159
+ consumeData: ["", "group"],
160
+ consumerMode: B.Or
161
+ }, e, { valuePickerMode: e?.valuePickerMode });
162
+ }
163
+ var Z = 100, Q = .1, $ = .9, Ae = (0, De.default)((0, Ee.default)(Q, $, ($ - Q) / Z));
164
+ function je(e, t) {
165
+ return ({ datum: n, resources: { scale: r } }, i) => {
166
+ let a = r(A(t)), o = t.jitterPoints ? Ae[i % Z] : .5;
167
+ return a(n.group.value) + .5 * (1 - e) * a.bandwidth() + e * a.bandwidth() * o;
168
+ };
169
+ }
170
+ var Me = (e, t, n, r, i, a) => {
171
+ let o = Ne(e, t, a), s = Pe(e, Oe(e, t, i), a);
172
+ return {
173
+ ...n,
174
+ components: [
175
+ ...n.components,
176
+ o,
177
+ s
178
+ ]
179
+ };
180
+ };
181
+ function Ne(e, t, n) {
182
+ let r = {
183
+ orientation: e.orientation,
184
+ major: { scale: A(e) },
185
+ minor: { scale: k(e, e.measures.filter((e) => c(e))[0]) },
186
+ box: {
187
+ width: Y(e),
188
+ fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
189
+ rx: e.barSettings?.barRadius ?? 0,
190
+ roundAllEdges: !0
191
+ },
192
+ median: {
193
+ stroke: i.mainDarkNavy,
194
+ strokeWidth: 2
195
+ }
196
+ };
197
+ 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, {
198
+ type: G.Box,
199
+ layout: { displayOrder: x.VisualizationElement },
200
+ key: "min-max-box",
201
+ data: { collection: b.DotBarCollection },
202
+ settings: r,
203
+ animations: {
204
+ enabled: !0,
205
+ presetId: "bar-chart"
206
+ },
207
+ brush: ke(n)
208
+ };
209
+ }
210
+ function Pe(e, t, r) {
211
+ let i = je(Y(e) * .9, e);
212
+ return {
213
+ type: G.Point,
214
+ key: "dot-point",
215
+ layout: { displayOrder: x.VisualizationElement },
216
+ data: { collection: b.DotPointsCollection },
217
+ settings: {
218
+ x: { scale: k(e, e.measures.filter((e) => c(e))[0]) },
219
+ y: {
220
+ scale: A(e),
221
+ fn: i
222
+ },
223
+ shape: n.Circle,
224
+ size: e.pointSize,
225
+ strokeWidth: 2,
226
+ opacity: .8,
227
+ fill: t,
228
+ id: ({ datum: e }) => `${e.group.value}::${e.value}`
229
+ },
230
+ animations: { enabled: !0 },
231
+ brush: X(r)
232
+ };
233
+ }
234
+ function Fe(e, t, n) {
235
+ if (!e.refLines?.x) return n;
236
+ let r = e.refLines.x.map((e) => U(e, ce.XAxisScale, t)), i = {
237
+ type: G.RefLine,
238
+ layout: { displayOrder: x.RefLine },
239
+ lines: { x: r }
240
+ };
241
+ return {
242
+ ...n,
243
+ components: [...n.components, i]
244
+ };
245
+ }
246
+ var Ie = /* @__PURE__ */ t(((e, t) => {
247
+ var n = f(), i = ge(), a = v(), o = r(), s = n.isFinite, c = Math.min;
248
+ function l(e) {
249
+ var t = Math[e];
250
+ return function(e, n) {
251
+ if (e = a(e), n = n == null ? 0 : c(i(n), 292), n && s(e)) {
252
+ var r = (o(e) + "e").split("e");
253
+ return r = (o(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"), +(r[0] + "e" + (+r[1] - n));
254
+ }
255
+ return t(e);
256
+ };
257
+ }
258
+ t.exports = l;
259
+ })), Le = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
260
+ t.exports = Ie()("round");
261
+ })))());
262
+ function Re(e, t, n) {
263
+ let r = e.measures.filter((e) => c(e))[0];
264
+ return O(e, t, n, {
265
+ filter: ze,
266
+ placement: {
267
+ type: "bounds",
268
+ area: "target"
269
+ },
270
+ extract: j(e, t, Be(r?.formatter), Ve)
271
+ }, "tooltip", void 0, {
272
+ componentKeys: ["dot-point"],
273
+ yieldToComponentKeys: ["min-max-box"]
274
+ });
275
+ }
276
+ function ze(e) {
277
+ if (e.length === 0) return [];
278
+ let t = e[0];
279
+ return ["dot-point", "min-max-box"].includes(t.key) ? [t] : [];
280
+ }
281
+ function Be(e) {
282
+ return (t, n, r, i, a, o, s, c) => {
283
+ if (n.key === "dot-point") {
284
+ let t = n.data.x.value;
285
+ return !c && e ? t = r.formatter(e)(t, void 0, n.data) : c && (t = r.formatter(W(e))(n.data.x.value, void 0, n.data)), [{
286
+ label: n.data.label,
287
+ value: t
288
+ }];
289
+ } else if (n.key === "min-max-box") {
290
+ let t = n.data.start.value, i = (0, Le.default)(n.data.med.value, 2), a = n.data.end.value;
291
+ return !c && e ? (t = r.formatter(e)(t), i = r.formatter(e)(i), a = r.formatter(e)(a)) : c && (t = r.formatter(W(e))(t), i = r.formatter(W(e))(i), a = r.formatter(W(e))(a)), [
292
+ {
293
+ label: "Min",
294
+ value: t
295
+ },
296
+ {
297
+ label: "Avg",
298
+ value: i
299
+ },
300
+ {
301
+ label: "Max",
302
+ value: a
303
+ }
304
+ ];
305
+ }
306
+ return [];
307
+ };
308
+ }
309
+ function Ve(e) {
310
+ return e.filter((e) => c(e))[1]?.label ?? "";
311
+ }
312
+ var He = (e, t, n) => {
313
+ let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), o = {
314
+ showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
315
+ formatter: r[0]?.formatter || {
316
+ type: "string",
317
+ format: ""
318
+ },
319
+ scale: A(e),
320
+ key: `${C.Dimension}-${e.orientation ?? a.Vertical}`,
321
+ settings: { direction: ie(e) }
322
+ }, s = i[0], [l, u] = se([o, {
323
+ showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
324
+ formatter: s?.formatter,
325
+ scale: k(e, s),
326
+ key: `${C.Measure}-${e.orientation ?? a.Vertical}`,
327
+ settings: {
328
+ direction: oe(e),
329
+ labelDock: z(M(e), s?.secondaryAxis)
330
+ }
331
+ }]);
332
+ return {
333
+ ...n,
334
+ components: [...n.components ?? [], ...l],
335
+ interactions: [...n.interactions ?? [], ...u]
336
+ };
337
+ };
338
+ function Ue(e, t, n, r, i, a) {
339
+ let { components: o, interactions: s } = P(e, t, n, r, i, a);
340
+ if (!e.coloring || e.coloring.type === d.Single) return {
341
+ ...n,
342
+ components: o,
343
+ interactions: s
344
+ };
345
+ let c = e.dimensions?.find((t) => e.coloring.fieldId === t.dataItem.internalKey), l = o.map((e) => (e.type === N.CategoricalLegend || e.type === N.SequentialLegend) && c ? {
346
+ ...e,
347
+ brush: X(a)
348
+ } : e);
349
+ return {
350
+ ...n,
351
+ components: l,
352
+ interactions: s
353
+ };
354
+ }
355
+ var We = class extends R {
356
+ constructor() {
357
+ super([
358
+ ye,
359
+ q,
360
+ le,
361
+ pe,
362
+ Ue,
363
+ de,
364
+ Me,
365
+ Fe,
366
+ Re,
367
+ He,
368
+ fe
369
+ ]);
370
+ }
371
+ }, Ge = re(), Ke = new We(), qe = te(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
372
+ let a = ee(), { activeKey: o } = ne(), c = g(), l = {
373
+ ...i,
374
+ valuePickerMode: !!o
375
+ }, u = t || s, d = Ke.compile(e, u, n, r, l, m.Dot, a, c, V());
376
+ return d ? /* @__PURE__ */ (0, Ge.jsx)(I, {
377
+ config: l,
378
+ definition: d,
379
+ size: r,
380
+ vSpec: e
381
+ }) : null;
382
+ });
383
+ export { qe as DotChart };