@astrato-io/visualizations 0.10.0 → 0.10.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.
Files changed (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
@@ -0,0 +1,396 @@
1
+ import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { Ao as n, Fc as r, Lo as i, O as a, Oa as o, Qr as s, Tr as c, gc as l, ki as u, pa as d, qs as f, sa as p, vr as m, wa as h, yc as g, yr as ee } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { Cn as te, F as _, N as v, ci as y, jt as b, s as x, zr as S } from "./utils-DganVptf.js";
4
+ import "./logger-DdZpR7xZ.js";
5
+ import { A as ne, At as re, Bt as ie, Ct as ae, Ft as C, Kt as oe, L as se, Lt as ce, Mt as le, Nt as w, Ot as ue, Qt as T, R as E, Rt as D, St as O, Tt as k, Ut as A, Zt as j, _ as M, _t as N, bn as P, cn as F, fn as I, hn as L, i as R, k as z, kt as B, ln as V, mn as H, mt as U, n as de, pt as fe, sn as W, un as pe, ut as G, v as me, yn as he, zt as ge } from "./escobar-CvEV2ES1.js";
6
+ import { i as _e, t as ve } from "./coloring-BtnPiQ_o.js";
7
+ import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
8
+ import { t as ye } from "./range-BdhzvYQ_.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
+ y();
18
+ var xe = (e, t, n, i, a, o, c = []) => {
19
+ n.collections ??= [];
20
+ let l = e.dimensions.filter((e) => s(e)), u = e.measures.filter((e) => s(e)), d = Se(e, t, n, c);
21
+ return l[0] && (n.collections.push({
22
+ key: w.DimensionDomain,
23
+ data: { extract: [{ field: r(l[0].dataItem) }] }
24
+ }), d[W(e)] = {
25
+ data: { collection: w.DimensionDomain },
26
+ type: H.Band
27
+ }), u[0] && (d[F(e, u[0])] = {
28
+ data: { field: r(u[0].dataItem) },
29
+ expand: .02,
30
+ invert: ne(!1, e.axes?.primaryMeasure),
31
+ ...z(e.axes?.primaryMeasure?.axisRange, !0)
32
+ }), {
33
+ ...n,
34
+ scales: d
35
+ };
36
+ };
37
+ function Se(e, t, n, i) {
38
+ let a = e.dimensions.filter((e) => s(e)), o = e.measures.filter((e) => s(e));
39
+ switch (e.coloring?.type) {
40
+ case g.Categorical: {
41
+ let r = re(e, i, a[1]);
42
+ return O(n, 1, { color: { field: r } }), { categorical: ue(K(e, r), t, r, {
43
+ customPalette: e.coloring.customPalette ?? u.customPalette,
44
+ palette: e.coloring.palette,
45
+ sortOrder: e.coloring.sortOrder
46
+ }, n.collections) };
47
+ }
48
+ case g.Gradient: {
49
+ let r = le(e);
50
+ return O(n, 1, { color: { field: r } }), B(K(e, r), t, {});
51
+ }
52
+ case g.Single: {
53
+ let i = r(o[0]?.dataItem);
54
+ i && O(n, 1, { color: { field: i } });
55
+ let a = e?.coloring?.color ?? t.colors.brandColors[0];
56
+ return { [g.Single]: {
57
+ data: [],
58
+ unknown: a,
59
+ type: H.CategoricalColor,
60
+ range: [a]
61
+ } };
62
+ }
63
+ default: return {};
64
+ }
65
+ }
66
+ var Ce = (e, t, n) => {
67
+ let i = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = (e.supportingMeasures ?? []).filter((e) => s(e)), [c, l] = i, u = r(c?.dataItem), d = r(l?.dataItem), f = r(a[0]?.dataItem), p = me(o), m = {
68
+ key: w.DotBarCollection,
69
+ data: { extract: [{
70
+ field: u,
71
+ trackBy: (e) => e,
72
+ reduce: "first",
73
+ props: {
74
+ start: {
75
+ field: f,
76
+ reduce: "min"
77
+ },
78
+ med: {
79
+ field: f,
80
+ reduce: "avg"
81
+ },
82
+ end: {
83
+ field: f,
84
+ reduce: "max"
85
+ }
86
+ }
87
+ }] }
88
+ }, h = {
89
+ key: w.DotPointsCollection,
90
+ data: { extract: [{
91
+ field: d,
92
+ props: {
93
+ x: { field: f },
94
+ group: { field: u },
95
+ [f]: { field: f },
96
+ ...p
97
+ }
98
+ }] }
99
+ };
100
+ return {
101
+ ...n,
102
+ collections: [m, h]
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 = a(), r = q();
123
+ function i(e) {
124
+ return r(n(e));
125
+ }
126
+ t.exports = i;
127
+ })), Ee = /* @__PURE__ */ t(((e, t) => {
128
+ var n = ee();
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 = c();
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 = d();
149
+ function a(e) {
150
+ return (i(e) ? n : r)(e);
151
+ }
152
+ t.exports = a;
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 = T([""], 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 === I.Line ? 1 : n(e)), t ?? {};
164
+ }
165
+ function Y(e) {
166
+ return j({
167
+ triggerData: [""],
168
+ consumeData: ["", "group"],
169
+ consumerMode: he.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?.(W(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: W(e) },
196
+ minor: { scale: F(e, e.measures.filter((e) => s(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: o.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 = o.transparent, {
209
+ type: P.Box,
210
+ layout: { displayOrder: A.VisualizationElement },
211
+ key: "min-max-box",
212
+ data: { collection: w.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, r) {
222
+ let i = Fe(J(e) * .9, e);
223
+ return {
224
+ type: P.Point,
225
+ key: "dot-point",
226
+ layout: { displayOrder: A.VisualizationElement },
227
+ data: { collection: w.DotPointsCollection },
228
+ settings: {
229
+ x: { scale: F(e, e.measures.filter((e) => s(e))[0]) },
230
+ y: {
231
+ scale: W(e),
232
+ fn: i
233
+ },
234
+ shape: n.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(r)
243
+ };
244
+ }
245
+ function ze(e, t, n) {
246
+ if (!e.refLines?.x) return n;
247
+ let r = e.refLines.x.map((e) => fe(e, pe.XAxisScale, t)), i = {
248
+ type: P.RefLine,
249
+ layout: { displayOrder: A.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 = h(), r = be(), i = te(), a = m(), 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) => s(e))[0];
275
+ return se(e, t, n, {
276
+ filter: He,
277
+ placement: {
278
+ type: "bounds",
279
+ area: "target"
280
+ },
281
+ extract: E(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(G(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(G(e))(t), i = r.formatter(G(e))(i), a = r.formatter(G(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) => s(e))[1]?.label ?? "";
322
+ }
323
+ var Ge = (e, t, n) => {
324
+ let r = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = {
325
+ showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
326
+ formatter: r[0]?.formatter || {
327
+ type: "string",
328
+ format: ""
329
+ },
330
+ scale: W(e),
331
+ key: `${C.Dimension}-${e.orientation ?? i.Vertical}`,
332
+ settings: { direction: ce(e) }
333
+ }, c = a[0], [l, u] = ie([o, {
334
+ showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
335
+ formatter: c?.formatter,
336
+ scale: F(e, c),
337
+ key: `${C.Measure}-${e.orientation ?? i.Vertical}`,
338
+ settings: {
339
+ direction: ge(e),
340
+ labelDock: D(V(e), c?.secondaryAxis)
341
+ }
342
+ }]);
343
+ return {
344
+ ...n,
345
+ components: [...n.components ?? [], ...l],
346
+ interactions: [...n.interactions ?? [], ...u]
347
+ };
348
+ };
349
+ function Ke(e, t, n, r, i, a) {
350
+ let { components: o, interactions: s } = ae(e, t, n, r, i ?? [], a ?? {});
351
+ if (!e.coloring || e.coloring.type === g.Single) return {
352
+ ...n,
353
+ components: o,
354
+ interactions: s
355
+ };
356
+ let c = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), l = o.map((e) => (e.type === L.CategoricalLegend || e.type === L.SequentialLegend) && c ? {
357
+ ...e,
358
+ brush: Y(a)
359
+ } : e);
360
+ return {
361
+ ...n,
362
+ components: l,
363
+ interactions: s
364
+ };
365
+ }
366
+ var qe = class extends M {
367
+ constructor() {
368
+ super([
369
+ Ce,
370
+ xe,
371
+ oe,
372
+ k,
373
+ Ke,
374
+ U,
375
+ Ie,
376
+ ze,
377
+ $,
378
+ Ge,
379
+ N
380
+ ]);
381
+ }
382
+ }, Je = S(), Ye = new qe(), Xe = b(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
383
+ let a = v(), { activeKey: o } = x(), s = _(), c = de();
384
+ if (!e || !f(e) || !r) return null;
385
+ let u = {
386
+ ...i,
387
+ valuePickerMode: !!o
388
+ }, d = t || p, m = Ye.compile(e, d, n, r, u, l.Dot, a, s, c);
389
+ return m ? /* @__PURE__ */ (0, Je.jsx)(R, {
390
+ config: u,
391
+ definition: m,
392
+ size: r,
393
+ vSpec: e
394
+ }) : null;
395
+ });
396
+ export { Xe as DotChart };