@astrato-io/visualizations 0.8.0 → 0.9.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.
Files changed (125) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +74 -68
  98. package/metadata.js +2 -2
  99. package/operations.js +5 -5
  100. package/package.json +67 -66
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/visualization-catalog.d.ts +26 -26
  110. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  111. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  112. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  113. package/chunks/Title-CO5dP1ma.js +0 -1691
  114. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  115. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  116. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  117. package/chunks/standalone-BXKRE_Se.js +0 -468
  118. package/chunks/standalone-BjZp0QMe.js +0 -2
  119. package/chunks/standalone-C8qAelL4.js +0 -2
  120. package/chunks/standalone-DT0wKji7.js +0 -6
  121. package/chunks/standalone-DYQIQH4c.js +0 -2095
  122. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  123. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  124. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  125. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -1,159 +1,159 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $i as t, Cr as n, Ds as r, Hi as i, Ja as a, Ri as o, Rs as s, Sa as c, Us as l, Wa as u, Xa as d, Za as f, da as p, en as m, hs as h, mr as g, n as _, ws as v, xi as y, zi as b, zr as x } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Ei as S, F as C, N as w, Xt as T, d as E, fn as ee, o as D, ri as O } from "./utils-vdmi_2PK.js";
4
- import "./logger-DpQtYQnX.js";
5
- import { Bt as k, Ct as A, Dt as j, Et as M, F as N, Ft as P, Gt as F, H as I, I as te, It as ne, J as re, K as ie, Lt as ae, Mt as oe, Pt as se, U as ce, Vt as le, Wt as ue, Yt as L, Z as de, _n as fe, an as pe, cn as R, dn as z, en as me, et as he, fn as B, i as ge, in as _e, jt as ve, kt as ye, mn as V, n as be, on as xe, ot as Se, pn as Ce, q as H, rt as we, sn as Te, tt as Ee, un as De, ut as U, vn as W, xt as Oe, yt as G } from "./escobar-DRhRMYRE.js";
6
- import { t as ke } from "./coloring-CncX_JRX.js";
2
+ import { $i as t, Cr as n, Ds as r, Gn as i, Hi as a, Ja as o, Ri as s, Rs as c, Sa as l, Us as u, Wa as d, Xa as f, Za as p, da as m, hs as h, jt as g, n as _, ws as v, xi as y, zi as b, zr as x } from "./visualization-filters-mVnsnvLP.js";
3
+ import { Bt as S, F as C, N as w, Ot as T, ei as E, f as D, jr as O, s as k } from "./utils-DYYD4Zzf.js";
4
+ import "./logger-3lng-wOw.js";
5
+ import { $t as A, Bt as j, Ct as ee, Dt as M, Et as N, F as P, Ft as F, Gt as I, H as L, I as te, It as ne, J as re, K as ie, Lt as ae, Mt as oe, Pt as se, U as ce, Vt as le, Wt as R, Yt as ue, Z as de, _n as z, an as fe, dn as B, et as pe, fn as me, gn as he, i as ge, in as _e, jt as ve, kt as ye, ln as be, n as xe, on as Se, ot as Ce, pn as V, q as H, rn as we, rt as Te, sn as U, tt as Ee, un as W, ut as De, xt as Oe, yt as G } from "./escobar-C4Nm3eJ7.js";
6
+ import { t as ke } from "./coloring-B-Wa8D5P.js";
7
7
  import { t as Ae } from "./set-coloring-datafield-B3uIS1Pe.js";
8
- var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
9
- let l = [], u = [], f = e.measures.filter((e) => x(e)), p = {
8
+ var je = /* @__PURE__ */ e(E()), Me = (e, n, r, a, o, s, c, l) => {
9
+ let u = [], d = [], p = e.measures.filter((e) => x(e)), m = {
10
10
  ...n.axis.measure,
11
11
  ...n.fonts
12
- }, m = [];
13
- if (c) {
14
- let e = le(W.Text, c);
15
- m.push(e);
12
+ }, h = [];
13
+ if (l) {
14
+ let e = le(z.Text, l);
15
+ h.push(e);
16
16
  }
17
- let h = f.filter((e) => e.role === t.SCATTER_HORIZONTAL), _ = f.filter((e) => e.role === t.SCATTER_VERTICAL), v = e.measures.filter((e) => e.role === t.SCATTER_HORIZONTAL), y = e.measures.filter((e) => e.role === t.SCATTER_VERTICAL), b = h[0], S = _[0], C = {};
17
+ let g = p.filter((e) => e.role === t.SCATTER_HORIZONTAL), _ = p.filter((e) => e.role === t.SCATTER_VERTICAL), v = e.measures.filter((e) => e.role === t.SCATTER_HORIZONTAL), y = e.measures.filter((e) => e.role === t.SCATTER_VERTICAL), b = g[0], S = _[0], C = {};
18
18
  if (b) {
19
- let t = d.Bottom, n = e.axes?.primaryMeasure || C;
20
- if (l.push(ue(R.XAxisScale, n, p, t, b.formatter)), e.axes?.primaryMeasure?.showAxisName) {
21
- let r = g(v, e.enableAlternate, o?.isPrintMode);
22
- u.push(F(h, r, t, p, n.colors?.title, n.axisTitle, n.titleFontSize));
19
+ let t = f.Bottom, n = e.axes?.primaryMeasure || C;
20
+ if (u.push(R(U.XAxisScale, n, m, t, b.formatter)), e.axes?.primaryMeasure?.showAxisName) {
21
+ let r = i(v, e.enableAlternate, s?.isPrintMode);
22
+ d.push(I(g, r, t, m, n.colors?.title, n.axisTitle, n.titleFontSize));
23
23
  }
24
24
  }
25
25
  if (S) {
26
- let t = d.Left, n = e.axes?.secondaryMeasure || C;
27
- if (l.push(ue(R.YAxisScale, n, p, t, S.formatter)), e.axes?.secondaryMeasure?.showAxisName) {
28
- let r = g(y, e.enableAlternate, o?.isPrintMode);
29
- u.push(F(_, r, t, p, n.colors?.title, n.axisTitle, n.titleFontSize));
26
+ let t = f.Left, n = e.axes?.secondaryMeasure || C;
27
+ if (u.push(R(U.YAxisScale, n, m, t, S.formatter)), e.axes?.secondaryMeasure?.showAxisName) {
28
+ let r = i(y, e.enableAlternate, s?.isPrintMode);
29
+ d.push(I(_, r, t, m, n.colors?.title, n.axisTitle, n.titleFontSize));
30
30
  }
31
31
  }
32
32
  return {
33
33
  ...r,
34
34
  components: [
35
35
  ...r.components,
36
- ...l,
37
- ...u
36
+ ...u,
37
+ ...d
38
38
  ],
39
- interactions: [...r.interactions ?? [], ...m]
39
+ interactions: [...r.interactions ?? [], ...h]
40
40
  };
41
41
  }, Ne = (e, n) => {
42
- let i = e.dimensions.filter((e) => x(e)), a = e.measures.filter((e) => x(e)), o = i.filter((e) => e.role === p.SCATTER_DIMENSION), s = a.filter((e) => e.role === t.SCATTER_SIZE), c = o[0], u = s[0], { coloring: d } = e || {};
42
+ let i = e.dimensions.filter((e) => x(e)), a = e.measures.filter((e) => x(e)), o = i.filter((e) => e.role === m.SCATTER_DIMENSION), s = a.filter((e) => e.role === t.SCATTER_SIZE), c = o[0], l = s[0], { coloring: d } = e || {};
43
43
  switch (d?.type) {
44
- case r.Categorical: return j(e, n);
45
- case r.Gradient: return ye(e, u);
46
- case r.Single: return l(c.dataItem);
44
+ case r.Categorical: return M(e, n);
45
+ case r.Gradient: return ye(e, l);
46
+ case r.Single: return u(c.dataItem);
47
47
  default: return null;
48
48
  }
49
- }, Pe = (e, n, i, a, s, c, u) => {
50
- let d = e.dimensions.filter((e) => x(e)), f = e.measures.filter((e) => x(e)), h = d.filter((e) => e.role === p.SCATTER_DIMENSION), g = f.filter((e) => e.role === t.SCATTER_HORIZONTAL), v = f.filter((e) => e.role === t.SCATTER_VERTICAL), b = f.filter((e) => e.role === t.SCATTER_SIZE), S = h[0], C = g[0], w = v[0], T = b[0], E = {}, { coloring: D } = e || {}, O = d.length < 2 && e.scatterSettings?.spatialHeatmap?.show, k = O && !D?.fieldId ? null : Ne(e, u);
51
- switch (D?.type) {
49
+ }, Pe = (e, n, i, a, o, c, l) => {
50
+ let d = e.dimensions.filter((e) => x(e)), f = e.measures.filter((e) => x(e)), p = d.filter((e) => e.role === m.SCATTER_DIMENSION), h = f.filter((e) => e.role === t.SCATTER_HORIZONTAL), v = f.filter((e) => e.role === t.SCATTER_VERTICAL), b = f.filter((e) => e.role === t.SCATTER_SIZE), C = p[0], w = h[0], T = v[0], E = b[0], D = {}, { coloring: O } = e || {}, k = d.length < 2 && e.scatterSettings?.spatialHeatmap?.show, A = k && !O?.fieldId ? null : Ne(e, l);
51
+ switch (O?.type) {
52
52
  case r.Categorical:
53
- E = M(Ae(e, k), n, E, void 0, u);
53
+ D = N(Ae(e, A), n, D, void 0, l);
54
54
  break;
55
55
  case r.Gradient:
56
- E = M(Ae(e, k), n, E, void 0, u);
56
+ D = N(Ae(e, A), n, D, void 0, l);
57
57
  break;
58
58
  case r.Single: {
59
- let t = l(S.dataItem);
60
- E[r.Single] = {
59
+ let t = u(C.dataItem);
60
+ D[r.Single] = {
61
61
  data: { extract: { field: t } },
62
62
  range: [e?.coloring?.color ?? n.colors.brandColors[0]],
63
63
  type: B.CategoricalColor,
64
- label: (e) => S?.formatter?.format ? ee(S.formatter, e.datum.value) : e.datum.label
64
+ label: (e) => C?.formatter?.format ? S(C.formatter, e.datum.value) : e.datum.label
65
65
  };
66
66
  break;
67
67
  }
68
68
  default: break;
69
69
  }
70
- if (O) {
71
- E[R.Density] = {
72
- data: k ? { field: k } : void 0,
70
+ if (k) {
71
+ D[U.Density] = {
72
+ data: A ? { field: A } : void 0,
73
73
  min: 0,
74
- max: (t) => (t.data?.fields?.[0] ? t.data.fields[0].max() : 1) * (m(e.scatterSettings?.spatialHeatmap?.maxDensity ?? y.heatmapMaxDensity) ?? 0),
74
+ max: (t) => (t.data?.fields?.[0] ? t.data.fields[0].max() : 1) * (g(e.scatterSettings?.spatialHeatmap?.maxDensity ?? y.heatmapMaxDensity) ?? 0),
75
75
  nice: !0
76
- }, E[R.DensityInverted] = {
77
- ...E[R.Density],
76
+ }, D[U.DensityInverted] = {
77
+ ...D[U.Density],
78
78
  invert: !0
79
79
  };
80
- let t = [..._(D?.type ?? r.Gradient, n), ...D?.customGradient ? [D.customGradient] : []].find((e) => e.id === (D?.palette ?? n.colors.defaultGradient ?? o.id))?.colors;
81
- E[R.DensityGradient] = {
82
- ...E[R.Density],
83
- range: t ?? o.colors,
80
+ let t = [..._(O?.type ?? r.Gradient, n), ...O?.customGradient ? [O.customGradient] : []].find((e) => e.id === (O?.palette ?? n.colors.defaultGradient ?? s.id))?.colors;
81
+ D[U.DensityGradient] = {
82
+ ...D[U.Density],
83
+ range: t ?? s.colors,
84
84
  type: B.SequentialColor
85
- }, k && G(i, 0, { density: { field: k } });
86
- } else k && G(i, 0, { color: { field: k } });
87
- let A = l(C?.dataItem), j = l(w?.dataItem), N = l(T?.dataItem), P = ie(e?.axes?.primaryMeasure?.axisRange, !0), F = re(P);
88
- E[R.XAxisScale] = {
85
+ }, A && G(i, 0, { density: { field: A } });
86
+ } else A && G(i, 0, { color: { field: A } });
87
+ let j = u(w?.dataItem), ee = u(T?.dataItem), M = u(E?.dataItem), P = ie(e?.axes?.primaryMeasure?.axisRange, !0), F = re(P);
88
+ D[U.XAxisScale] = {
89
89
  type: B.Linear,
90
- data: { field: A },
90
+ data: { field: j },
91
91
  invert: H(!1, e?.axes?.primaryMeasure),
92
92
  nice: !F && V.scale.nice,
93
93
  expandMax: .06,
94
94
  ...P
95
95
  };
96
- let I = ie(e?.axes?.secondaryMeasure?.axisRange, !0), te = re(I);
97
- return E[R.YAxisScale] = {
96
+ let I = ie(e?.axes?.secondaryMeasure?.axisRange, !0), L = re(I);
97
+ return D[U.YAxisScale] = {
98
98
  type: B.Linear,
99
- data: { fields: [j] },
99
+ data: { fields: [ee] },
100
100
  invert: H(!0, e?.axes?.secondaryMeasure),
101
- nice: !te && V.scale.nice,
101
+ nice: !L && V.scale.nice,
102
102
  expandMax: .06,
103
103
  ...I
104
- }, T && (E[N] = {
104
+ }, E && (D[M] = {
105
105
  type: B.Linear,
106
- data: { field: N }
106
+ data: { field: M }
107
107
  }), {
108
108
  ...i,
109
- scales: E
109
+ scales: D
110
110
  };
111
111
  }, K = "spatial-heatmap", Fe = "shape", q = (e) => {
112
- let t = e.scatterSettings?.shape ?? u.Circle;
113
- return `${W.Point}-${t}`;
112
+ let t = e.scatterSettings?.shape ?? d.Circle;
113
+ return `${z.Point}-${t}`;
114
114
  }, Ie = (e, n, r, i, a, o) => {
115
- let s = e.dimensions.filter((e) => x(e)), c = e.measures.filter((e) => x(e)), u = te((e.supportingMeasures ?? []).filter((e) => x(e))), d = s.filter((e) => e.role === p.SCATTER_IMAGE), f = c.filter((e) => e.role === t.SCATTER_HORIZONTAL), m = c.filter((e) => e.role === t.SCATTER_VERTICAL), h = c.filter((e) => e.role === t.SCATTER_SIZE), g = d[0], _ = f[0], v = m[0], y = h[0], b = l(_?.dataItem), S = l(v?.dataItem);
115
+ let s = e.dimensions.filter((e) => x(e)), c = e.measures.filter((e) => x(e)), l = te((e.supportingMeasures ?? []).filter((e) => x(e))), d = s.filter((e) => e.role === m.SCATTER_IMAGE), f = c.filter((e) => e.role === t.SCATTER_HORIZONTAL), p = c.filter((e) => e.role === t.SCATTER_VERTICAL), h = c.filter((e) => e.role === t.SCATTER_SIZE), g = d[0], _ = f[0], v = p[0], y = h[0], b = u(_?.dataItem), S = u(v?.dataItem);
116
116
  G(r, 0, {
117
117
  x: { field: b },
118
118
  y: { field: S },
119
119
  [b]: { field: b },
120
120
  [S]: { field: S },
121
- ...u
121
+ ...l
122
122
  });
123
123
  let C = e.scatterSettings?.pointSize ?? .1, w = {};
124
124
  if (y) {
125
- let t = l(y.dataItem);
125
+ let t = u(y.dataItem);
126
126
  w = { field: t }, C = (t) => {
127
127
  let n = e.scatterSettings?.pointSize ?? 0, r = e.scatterSettings?.maxPointSize ?? Math.max(n, 1);
128
- return t.resources.scale(l(y.dataItem))(t.datum.size.value) * (r - n) + n;
128
+ return t.resources.scale(u(y.dataItem))(t.datum.size.value) * (r - n) + n;
129
129
  }, G(r, 0, {
130
130
  size: w,
131
131
  [t]: { field: t }
132
132
  });
133
133
  }
134
134
  let T;
135
- return g ? (G(r, 0, { imageUrl: { field: l(g.dataItem) } }), T = [Le(e, n, C, o, !0, a), ze(e, C, o)]) : T = e.scatterSettings?.spatialHeatmap?.show ? [Re(e, n, r, C, o, a)] : [Le(e, n, C, o, !1, a)], {
135
+ return g ? (G(r, 0, { imageUrl: { field: u(g.dataItem) } }), T = [Le(e, n, C, o, !0, a), ze(e, C, o)]) : T = e.scatterSettings?.spatialHeatmap?.show ? [Re(e, n, r, C, o, a)] : [Le(e, n, C, o, !1, a)], {
136
136
  ...r,
137
137
  components: [...r.components, ...T]
138
138
  };
139
139
  }, Le = (e, t, n, r, i, a) => {
140
- let o = new ke(e, t, a?.[0]?.itemsNotAffectedByFiltering), s = e.scatterSettings?.shape ?? u.Circle, c = e.scatterSettings?.stroke;
140
+ let o = new ke(e, t, a?.[0]?.itemsNotAffectedByFiltering), s = e.scatterSettings?.shape ?? d.Circle, c = e.scatterSettings?.stroke;
141
141
  return {
142
- type: W.Point,
143
- layout: { displayOrder: k.VisualizationElement },
142
+ type: z.Point,
143
+ layout: { displayOrder: j.VisualizationElement },
144
144
  key: q(e),
145
- data: { collection: R.Collection },
145
+ data: { collection: U.Collection },
146
146
  animations: {
147
147
  enabled: !i,
148
148
  presetId: "scatter-chart"
149
149
  },
150
150
  settings: {
151
151
  x: {
152
- scale: R.XAxisScale,
152
+ scale: U.XAxisScale,
153
153
  ref: "x"
154
154
  },
155
155
  y: {
156
- scale: R.YAxisScale,
156
+ scale: U.YAxisScale,
157
157
  ref: "y"
158
158
  },
159
159
  opacity: i ? 0 : .8,
@@ -167,61 +167,61 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
167
167
  }),
168
168
  tag: Fe
169
169
  },
170
- brush: i ? null : L([""], r, { valuePickerMode: r?.valuePickerMode })
170
+ brush: i ? null : ue([""], r, { valuePickerMode: r?.valuePickerMode })
171
171
  };
172
172
  }, Re = (e, t, n, r, i, a) => {
173
- let o = n.scales[R.Density]?.data, s = a?.[0]?.items?.length, c = n.collections?.[0]?.data?.extract?.[0]?.props?.density?.field && o?.field ? {
174
- scale: R.Density,
173
+ let o = n.scales[U.Density]?.data, s = a?.[0]?.items?.length, c = n.collections?.[0]?.data?.extract?.[0]?.props?.density?.field && o?.field ? {
174
+ scale: U.Density,
175
175
  ref: "density"
176
176
  } : {
177
- scale: R.Density,
177
+ scale: U.Density,
178
178
  fn: ({ scale: e }) => {
179
179
  let t = e?.(1);
180
180
  return typeof t == "number" ? t : 1;
181
181
  }
182
182
  };
183
183
  return {
184
- type: W.Heatmap,
185
- layout: { displayOrder: k.VisualizationElement },
184
+ type: z.Heatmap,
185
+ layout: { displayOrder: j.VisualizationElement },
186
186
  key: "spatial-heatmap",
187
187
  animations: s !== void 0 && s < 1e3 ? { enabled: !0 } : void 0,
188
- data: { collection: R.Collection },
188
+ data: { collection: U.Collection },
189
189
  settings: {
190
190
  point: {
191
191
  x: {
192
- scale: R.XAxisScale,
192
+ scale: U.XAxisScale,
193
193
  ref: "x"
194
194
  },
195
195
  y: {
196
- scale: R.YAxisScale,
196
+ scale: U.YAxisScale,
197
197
  ref: "y"
198
198
  },
199
199
  size: r,
200
200
  density: c
201
201
  },
202
- gradient: R.DensityGradient,
202
+ gradient: U.DensityGradient,
203
203
  blur: e.scatterSettings?.spatialHeatmap?.blur,
204
204
  minOpacity: 1e-4
205
205
  },
206
206
  brush: i?.disable?.brushing ? void 0 : { consume: [{
207
- context: z.Selection,
207
+ context: W.Selection,
208
208
  data: [""],
209
- mode: fe.And,
209
+ mode: he.And,
210
210
  style: { inactive: { opacity: .1 } }
211
211
  }] }
212
212
  };
213
213
  }, ze = (e, t, n) => ({
214
- type: W.DomPoint,
215
- layout: { displayOrder: k.VisualizationElement },
216
- key: W.DomPoint,
217
- data: { collection: R.Collection },
214
+ type: z.DomPoint,
215
+ layout: { displayOrder: j.VisualizationElement },
216
+ key: z.DomPoint,
217
+ data: { collection: U.Collection },
218
218
  settings: {
219
219
  x: {
220
- scale: R.XAxisScale,
220
+ scale: U.XAxisScale,
221
221
  ref: "x"
222
222
  },
223
223
  y: {
224
- scale: R.YAxisScale,
224
+ scale: U.YAxisScale,
225
225
  ref: "y"
226
226
  },
227
227
  opacity: .8,
@@ -233,11 +233,11 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
233
233
  borderWidth: e.scatterSettings?.borderWidth,
234
234
  borderColor: e.scatterSettings?.borderColor ?? void 0
235
235
  },
236
- brush: L([""], n, { valuePickerMode: n?.valuePickerMode })
236
+ brush: ue([""], n, { valuePickerMode: n?.valuePickerMode })
237
237
  }), Be = (e, t, n) => {
238
238
  let { measures: r, grid: i = [] } = e, a = i.filter((e) => e.enabled).map((e) => {
239
- let n = s(r[0].dataItem, e.dataItem);
240
- return A(e, n ? "x" : "y", n ? R.XAxisScale : R.YAxisScale, t);
239
+ let n = c(r[0].dataItem, e.dataItem);
240
+ return ee(e, n ? "x" : "y", n ? U.XAxisScale : U.YAxisScale, t);
241
241
  }).filter((e) => !!e);
242
242
  return {
243
243
  ...n,
@@ -247,16 +247,16 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
247
247
  let r = [], i = [];
248
248
  if (!e.refLines?.x && !e.refLines?.y) return n;
249
249
  if (e.refLines.x) {
250
- let n = e.refLines.x.map((e) => U(e, R.XAxisScale, t));
250
+ let n = e.refLines.x.map((e) => De(e, U.XAxisScale, t));
251
251
  r.push(...n);
252
252
  }
253
253
  if (e.refLines.y) {
254
- let n = e.refLines.y.map((e) => U(e, R.YAxisScale, t));
254
+ let n = e.refLines.y.map((e) => De(e, U.YAxisScale, t));
255
255
  i.push(...n);
256
256
  }
257
257
  let a = {
258
- type: W.RefLine,
259
- layout: { displayOrder: k.RefLine },
258
+ type: z.RefLine,
259
+ layout: { displayOrder: j.RefLine },
260
260
  lines: {
261
261
  x: r,
262
262
  y: i
@@ -268,13 +268,13 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
268
268
  };
269
269
  }, He = "scatter-reference-areas", J = "scatter-reference-area", Ue = n("scatter-reference-areas-stage", "#6B7280"), Y = (e) => {
270
270
  if (e == null) return null;
271
- let t = m(e);
271
+ let t = g(e);
272
272
  if (t === null) return null;
273
273
  let n = typeof t == "number" ? t : Number(t);
274
274
  return Number.isNaN(n) ? null : n;
275
275
  }, We = (e) => {
276
276
  if (e == null) return;
277
- let t = m(e);
277
+ let t = g(e);
278
278
  if (t === null || typeof t != "string") return;
279
279
  let n = t.trim();
280
280
  return n.length > 0 ? n : void 0;
@@ -324,60 +324,60 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
324
324
  return e.label && (t.label = { value: e.label }), e.borderColor && (t.borderColor = { value: e.borderColor }), typeof e.borderWidth == "number" && (t.borderWidth = { value: e.borderWidth }), t;
325
325
  }, qe = (e) => {
326
326
  switch (e) {
327
- case a.TopLeft: return {
327
+ case o.TopLeft: return {
328
328
  align: 0,
329
329
  justify: 0
330
330
  };
331
- case a.Top: return {
331
+ case o.Top: return {
332
332
  align: .5,
333
333
  justify: 0
334
334
  };
335
- case a.TopRight: return {
335
+ case o.TopRight: return {
336
336
  align: 1,
337
337
  justify: 0
338
338
  };
339
- case a.Left: return {
339
+ case o.Left: return {
340
340
  align: 0,
341
341
  justify: .5
342
342
  };
343
- case a.Right: return {
343
+ case o.Right: return {
344
344
  align: 1,
345
345
  justify: .5
346
346
  };
347
- case a.BottomLeft: return {
347
+ case o.BottomLeft: return {
348
348
  align: 0,
349
349
  justify: 1
350
350
  };
351
- case a.Bottom: return {
351
+ case o.Bottom: return {
352
352
  align: .5,
353
353
  justify: 1
354
354
  };
355
- case a.BottomRight: return {
355
+ case o.BottomRight: return {
356
356
  align: 1,
357
357
  justify: 1
358
358
  };
359
- case a.Center:
359
+ case o.Center:
360
360
  default: return {
361
361
  align: .5,
362
362
  justify: .5
363
363
  };
364
364
  }
365
365
  }, Je = (e, t, n) => {
366
- if (e.labelMode !== c.Fixed || !e.label) return null;
367
- let { align: r, justify: i } = qe(e.labelPlacement), a = y.referenceArea.labelColor, o = y.referenceArea.labelFontSize, s = e.labelColor ?? a, l = e.labelFontSize ?? o;
366
+ if (e.labelMode !== l.Fixed || !e.label) return null;
367
+ let { align: r, justify: i } = qe(e.labelPlacement), a = y.referenceArea.labelColor, o = y.referenceArea.labelFontSize, s = e.labelColor ?? a, c = e.labelFontSize ?? o;
368
368
  return {
369
- type: W.Labels,
369
+ type: z.Labels,
370
370
  key: `${J}-${e.id}-label`,
371
371
  layout: { displayOrder: t },
372
372
  settings: { sources: [{
373
373
  component: `${J}-${e.id}`,
374
- selector: De.Rect,
374
+ selector: be.Rect,
375
375
  strategy: {
376
376
  type: "rows",
377
377
  settings: {
378
378
  align: r,
379
379
  justify: i,
380
- fontSize: l,
380
+ fontSize: c,
381
381
  fontFamily: n.fonts?.general?.fontFamily,
382
382
  padding: 2,
383
383
  labels: [{
@@ -392,19 +392,19 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
392
392
  };
393
393
  }, Ye = (e, t, n) => {
394
394
  let r = {
395
- orientation: f.Vertical,
395
+ orientation: p.Vertical,
396
396
  major: {
397
- scale: R.XAxisScale,
397
+ scale: U.XAxisScale,
398
398
  ref: "binEnd",
399
399
  binStart: { ref: "binStart" },
400
400
  binEnd: { ref: "binEnd" }
401
401
  },
402
402
  minor: {
403
- scale: R.YAxisScale,
403
+ scale: U.YAxisScale,
404
404
  ref: "end"
405
405
  },
406
406
  minor0: {
407
- scale: R.YAxisScale,
407
+ scale: U.YAxisScale,
408
408
  ref: "start"
409
409
  },
410
410
  box: {
@@ -416,7 +416,7 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
416
416
  }
417
417
  };
418
418
  return {
419
- type: W.Box,
419
+ type: z.Box,
420
420
  key: `${J}-${e.id}`,
421
421
  layout: { displayOrder: t },
422
422
  data: {
@@ -443,7 +443,7 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
443
443
  });
444
444
  let s = n.components ? [...n.components] : [], c = i.length;
445
445
  return i.forEach((e, n) => {
446
- let r = k.ReferenceArea + (c - n) * .001, i = Ye(e, r, n);
446
+ let r = j.ReferenceArea + (c - n) * .001, i = Ye(e, r, n);
447
447
  s.push(i);
448
448
  let a = Je(e, r + 5e-4, t);
449
449
  a && s.push(a);
@@ -453,7 +453,7 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
453
453
  components: s
454
454
  };
455
455
  }, Ze = (e, t, n) => {
456
- let r = t.data.value, i = e.filter((e) => x(e)).filter((e) => e.role === p.SCATTER_DIMENSION)[0];
456
+ let r = t.data.value, i = e.filter((e) => x(e)).filter((e) => e.role === m.SCATTER_DIMENSION)[0];
457
457
  return i?.formatter && (r = n.formatter(i.formatter)(r)), `${r}`;
458
458
  }, X = (e) => typeof e == "string" && e.startsWith("scatter-reference-area") && !e.endsWith("-label"), Z = (e) => {
459
459
  let t = e.data?.labelMode;
@@ -480,10 +480,10 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
480
480
  filter: (t) => {
481
481
  let n = [
482
482
  q(e),
483
- I,
483
+ L,
484
484
  K
485
485
  ];
486
- return t.filter((e) => e.key ? X(e.key) ? Z(e) !== c.Fixed && !!Q(e) : n.includes(e.key) : !1);
486
+ return t.filter((e) => e.key ? X(e.key) ? Z(e) !== l.Fixed && !!Q(e) : n.includes(e.key) : !1);
487
487
  },
488
488
  placement: {
489
489
  type: "pointer",
@@ -509,11 +509,11 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
509
509
  r.extract = (t) => {
510
510
  if (X(t.node.key)) {
511
511
  let e = Q(t.node), n = Z(t.node);
512
- if (e && n !== c.Fixed) return $(e);
512
+ if (e && n !== l.Fixed) return $(e);
513
513
  }
514
514
  return e(t);
515
515
  };
516
- let t = we();
516
+ let t = Te();
517
517
  r.content = ({ h: e, data: n }) => {
518
518
  if (n.length > 8) {
519
519
  let e = n.length;
@@ -528,34 +528,34 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
528
528
  });
529
529
  };
530
530
  } else {
531
- let n = Ee(e, t, Se, Ze);
531
+ let n = Ee(e, t, Ce, Ze);
532
532
  r.extract = (e) => {
533
533
  if (X(e.node.key)) {
534
534
  let t = Q(e.node), n = Z(e.node);
535
- if (t && n !== c.Fixed) return $(t);
535
+ if (t && n !== l.Fixed) return $(t);
536
536
  }
537
537
  return n(e);
538
538
  };
539
539
  }
540
- return he(e, t, n, r, "tooltip", void 0, {
540
+ return pe(e, t, n, r, "tooltip", void 0, {
541
541
  componentKeys: [q(e)],
542
- yieldToComponentKeys: [I, K]
542
+ yieldToComponentKeys: [L, K]
543
543
  });
544
544
  }, $e = (e, t, n) => {
545
545
  let r = e?.measures[0], i = {
546
546
  showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
547
547
  formatter: r?.formatter,
548
- scale: pe(e),
548
+ scale: _e(e),
549
549
  key: oe.Measure,
550
550
  settings: { direction: se(e) }
551
551
  }, a = e?.measures[1], [o, s] = ae([i, {
552
552
  showAxisTooltip: e?.axes?.secondaryMeasure?.showAxisTooltip,
553
553
  formatter: a?.formatter,
554
- scale: xe(e, a),
554
+ scale: fe(e, a),
555
555
  key: oe.MeasureSec,
556
556
  settings: {
557
557
  direction: ne(e),
558
- labelDock: P(Te(e), a?.secondaryAxis)
558
+ labelDock: F(Se(e), a?.secondaryAxis)
559
559
  }
560
560
  }]);
561
561
  return {
@@ -565,24 +565,24 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
565
565
  };
566
566
  }, et = (e, t, n) => de(e, t, n), tt = (e) => {
567
567
  try {
568
- return !!e && me(e);
568
+ return !!e && A(e);
569
569
  } catch {
570
570
  return !1;
571
571
  }
572
- }, nt = (e, t, n, r, a, o) => {
572
+ }, nt = (e, t, n, r, i, o) => {
573
573
  if (o?.disable?.brushing || o?.disable?.brushingLasso) return n;
574
- let s = tt(t?.colors?.sheetBackgroundColor) ? i.white : i.mainDarkNavy, c = e.scatterSettings?.lasso, l = c?.strokeColor ?? s, u = {
575
- type: W.Lasso,
576
- key: W.Lasso,
577
- layout: { displayOrder: k.VisualizationElement + 1 },
574
+ let s = tt(t?.colors?.sheetBackgroundColor) ? a.white : a.mainDarkNavy, c = e.scatterSettings?.lasso, l = c?.strokeColor ?? s, u = {
575
+ type: z.Lasso,
576
+ key: z.Lasso,
577
+ layout: { displayOrder: j.VisualizationElement + 1 },
578
578
  settings: {
579
579
  brush: { components: [{
580
580
  key: q(e),
581
- contexts: [z.Selection],
581
+ contexts: [W.Selection],
582
582
  action: "toggle"
583
583
  }, {
584
584
  key: K,
585
- contexts: [z.Selection],
585
+ contexts: [W.Selection],
586
586
  action: "toggle"
587
587
  }] },
588
588
  lasso: {
@@ -593,28 +593,28 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
593
593
  snapIndicator: { stroke: l },
594
594
  startPoint: {
595
595
  r: 3,
596
- fill: c?.startPointColor ?? i.secondaryPurple,
596
+ fill: c?.startPointColor ?? a.secondaryPurple,
597
597
  stroke: l
598
598
  }
599
599
  }
600
600
  }, d = {
601
601
  type: "native",
602
- key: `${W.Lasso}-interaction`,
602
+ key: `${z.Lasso}-interaction`,
603
603
  events: {
604
604
  mousedown(e) {
605
- this.chart.component(W.Lasso).emit("lassoStart", { center: {
605
+ this.chart.component(z.Lasso).emit("lassoStart", { center: {
606
606
  x: e.clientX,
607
607
  y: e.clientY
608
608
  } });
609
609
  },
610
610
  mousemove(e) {
611
- this.chart.component(W.Lasso).emit("lassoMove", { center: {
611
+ this.chart.component(z.Lasso).emit("lassoMove", { center: {
612
612
  x: e.clientX,
613
613
  y: e.clientY
614
614
  } });
615
615
  },
616
616
  mouseup(e) {
617
- this.chart.component(W.Lasso).emit("lassoEnd", { center: {
617
+ this.chart.component(z.Lasso).emit("lassoEnd", { center: {
618
618
  x: e.clientX,
619
619
  y: e.clientY
620
620
  } });
@@ -633,21 +633,21 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
633
633
  targetComponentKeys: [q(e)],
634
634
  targetSelector: `.${Fe}`,
635
635
  offset: c,
636
- fontSize: _e(e.pointLabeling?.fontSize)
636
+ fontSize: we(e.pointLabeling?.fontSize)
637
637
  }, s, a, t);
638
638
  return l ? {
639
639
  ...n,
640
640
  components: [...n.components, l]
641
641
  } : n;
642
642
  }, it = (...e) => {
643
- let t = Oe(...e), n = t.components.find((e) => e.type === Ce.SequentialLegend), r = t.scales[R.Density];
643
+ let t = Oe(...e), n = t.components.find((e) => e.type === me.SequentialLegend), r = t.scales[U.Density];
644
644
  if (n && r) {
645
- n.settings.fill = R.DensityGradient;
645
+ n.settings.fill = U.DensityGradient;
646
646
  let e = n.layout?.dock;
647
- n.settings.major = e === d.Left || e === d.Right ? R.DensityInverted : R.Density;
647
+ n.settings.major = e === f.Left || e === f.Right ? U.DensityInverted : U.Density;
648
648
  }
649
649
  return t;
650
- }, at = class extends N {
650
+ }, at = class extends P {
651
651
  constructor() {
652
652
  super([
653
653
  ve,
@@ -666,11 +666,11 @@ var je = /* @__PURE__ */ e(S()), Me = (e, n, r, i, a, o, s, c) => {
666
666
  ]);
667
667
  }
668
668
  preCompile(e) {
669
- let n = e.dimensions.filter((e) => x(e)), r = e.measures.filter((e) => x(e)), i = n.filter((e) => e.role === p.SCATTER_DIMENSION), a = r.filter((e) => e.role === t.SCATTER_HORIZONTAL), o = r.filter((e) => e.role === t.SCATTER_VERTICAL), s = i[0], c = a[0], l = o[0];
669
+ let n = e.dimensions.filter((e) => x(e)), r = e.measures.filter((e) => x(e)), i = n.filter((e) => e.role === m.SCATTER_DIMENSION), a = r.filter((e) => e.role === t.SCATTER_HORIZONTAL), o = r.filter((e) => e.role === t.SCATTER_VERTICAL), s = i[0], c = a[0], l = o[0];
670
670
  if (!s || !c || !l) throw Error("Scatter chart requires at least 1 scatter dimension, 1 horizontal measure, and 1 vertical measure.");
671
671
  }
672
672
  }, ot = O(), st = T(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
673
- let a = w(), [o] = (0, je.useState)(() => new at()), s = E(), { activeKey: c } = D(), l = C(), u = be();
673
+ let a = w(), [o] = (0, je.useState)(() => new at()), s = D(), { activeKey: c } = k(), l = C(), u = xe();
674
674
  if (!e || !n || !r || !h(e)) return null;
675
675
  let d = {
676
676
  ...i,