@astrato-io/visualizations 0.7.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 (162) hide show
  1. package/README.md +1 -25
  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-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
  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-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
  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 +1191 -3
  98. package/metadata.js +15 -16
  99. package/operations.js +5 -5
  100. package/package.json +67 -102
  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/getters/index.d.ts +3 -3
  110. package/src/index.d.ts +1 -1
  111. package/src/operations/index.d.ts +3 -3
  112. package/src/runtime/index.d.ts +2 -2
  113. package/src/types.d.ts +4 -8
  114. package/src/visualization-catalog.d.ts +26 -26
  115. package/src/web-components/index.d.ts +3 -3
  116. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  117. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  118. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  119. package/chunks/Title-CO5dP1ma.js +0 -1691
  120. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  121. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  122. package/chunks/registry-KervaxqJ.js +0 -31
  123. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  124. package/chunks/standalone-BXKRE_Se.js +0 -468
  125. package/chunks/standalone-BjZp0QMe.js +0 -2
  126. package/chunks/standalone-C8qAelL4.js +0 -2
  127. package/chunks/standalone-DT0wKji7.js +0 -6
  128. package/chunks/standalone-DYQIQH4c.js +0 -2095
  129. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  130. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  131. package/chunks/web-components-DqClFkgO.js +0 -1185
  132. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  133. package/render.js +0 -10
  134. package/src/charts/bar.d.ts +0 -1
  135. package/src/charts/combo.d.ts +0 -1
  136. package/src/charts/dot.d.ts +0 -1
  137. package/src/charts/gauge-distribution.d.ts +0 -1
  138. package/src/charts/gauge.d.ts +0 -1
  139. package/src/charts/heat-map.d.ts +0 -1
  140. package/src/charts/histogram.d.ts +0 -1
  141. package/src/charts/line.d.ts +0 -1
  142. package/src/charts/pie.d.ts +0 -1
  143. package/src/charts/radar.d.ts +0 -1
  144. package/src/charts/sankey.d.ts +0 -1
  145. package/src/charts/scatter.d.ts +0 -1
  146. package/src/charts/table.d.ts +0 -1
  147. package/src/charts/tree.d.ts +0 -1
  148. package/src/charts/treemap.d.ts +0 -1
  149. package/src/charts/waterfall.d.ts +0 -1
  150. package/src/charts/word-cloud.d.ts +0 -1
  151. package/src/objects/app-filter-bar.d.ts +0 -1
  152. package/src/objects/date-picker.d.ts +0 -1
  153. package/src/objects/filter.d.ts +0 -1
  154. package/src/objects/iframe.d.ts +0 -1
  155. package/src/objects/image.d.ts +0 -1
  156. package/src/objects/number.d.ts +0 -1
  157. package/src/objects/shape.d.ts +0 -1
  158. package/src/objects/slider.d.ts +0 -1
  159. package/src/objects/text.d.ts +0 -1
  160. package/src/registry/create-visualization-registry.d.ts +0 -5
  161. package/src/render/index.d.ts +0 -34
  162. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -1,11 +1,11 @@
1
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";
2
+ import { Ds as n, E as r, Hi as i, Us as a, Wa as o, Za as s, fr as c, hi as l, nr as u, rr as d, sr as f, ts as p, ws as m, yr as ee, zi as te, zr as h } from "./visualization-filters-mVnsnvLP.js";
3
+ import { F as g, N as _, Ot as v, ei as y, hn as b, jr as x, s as ne } from "./utils-DYYD4Zzf.js";
4
+ import "./logger-3lng-wOw.js";
5
+ import { At as S, Bt as C, Dt as re, Et as ie, F as ae, Ft as oe, I as se, It as ce, Jt as le, K as ue, Lt as w, Mt as T, Pt as E, St as D, Tt as O, Ut as k, Yt as A, _n as j, an as M, bt as N, dn as P, dt as F, et as I, fn as L, gn as R, i as z, in as B, kt as V, ln as H, mt as U, n as de, on as fe, q as pe, sn as me, st as W, tt as he, ut as ge, yt as G } from "./escobar-C4Nm3eJ7.js";
6
+ import { i as _e, t as ve } from "./coloring-B-Wa8D5P.js";
7
7
  import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
8
- import { t as ye } from "./range-Bi-7zT0k.js";
8
+ import { t as ye } from "./range-CzO4isKK.js";
9
9
  var be = /* @__PURE__ */ t(((e, t) => {
10
10
  var n = _e();
11
11
  function r(e) {
@@ -14,58 +14,58 @@ var be = /* @__PURE__ */ t(((e, t) => {
14
14
  }
15
15
  t.exports = r;
16
16
  }));
17
- g();
18
- var xe = (e, t, n, r, i, a, s = []) => {
17
+ y();
18
+ var xe = (e, t, n, r, i, o, s = []) => {
19
19
  n.collections ??= [];
20
20
  let c = e.dimensions.filter((e) => h(e)), l = e.measures.filter((e) => h(e)), u = Se(e, t, n, s);
21
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) },
22
+ key: S.DimensionDomain,
23
+ data: { extract: [{ field: a(c[0].dataItem) }] }
24
+ }), u[B(e)] = {
25
+ data: { collection: S.DimensionDomain },
26
+ type: P.Band
27
+ }), l[0] && (u[M(e, l[0])] = {
28
+ data: { field: a(l[0].dataItem) },
29
29
  expand: .02,
30
- invert: fe(!1, e.axes?.primaryMeasure),
31
- ...de(e.axes?.primaryMeasure?.axisRange, !0)
30
+ invert: pe(!1, e.axes?.primaryMeasure),
31
+ ...ue(e.axes?.primaryMeasure?.axisRange, !0)
32
32
  }), {
33
33
  ...n,
34
34
  scales: u
35
35
  };
36
36
  };
37
37
  function Se(e, t, r, i) {
38
- let a = e.dimensions.filter((e) => h(e)), s = e.measures.filter((e) => h(e));
38
+ let o = e.dimensions.filter((e) => h(e)), s = e.measures.filter((e) => h(e));
39
39
  switch (e.coloring?.type) {
40
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,
41
+ let n = re(e, i, o[1]);
42
+ return G(r, 1, { color: { field: n } }), { categorical: O(K(e, n), t, n, {
43
+ customPalette: e.coloring.customPalette ?? l.customPalette,
44
44
  palette: e.coloring.palette,
45
45
  sortOrder: e.coloring.sortOrder
46
46
  }, r.collections) };
47
47
  }
48
48
  case n.Gradient: {
49
- let n = R(e);
50
- return G(r, 1, { color: { field: n } }), ae(K(e, n), t, {});
49
+ let n = V(e);
50
+ return G(r, 1, { color: { field: n } }), ie(K(e, n), t, {});
51
51
  }
52
52
  case n.Single: {
53
- let i = o(s[0]?.dataItem);
53
+ let i = a(s[0]?.dataItem);
54
54
  i && G(r, 1, { color: { field: i } });
55
- let a = e?.coloring?.color ?? t.colors.brandColors[0];
55
+ let o = e?.coloring?.color ?? t.colors.brandColors[0];
56
56
  return { [n.Single]: {
57
57
  data: [],
58
- unknown: a,
59
- type: I.CategoricalColor,
60
- range: [a]
58
+ unknown: o,
59
+ type: P.CategoricalColor,
60
+ range: [o]
61
61
  } };
62
62
  }
63
63
  default: return {};
64
64
  }
65
65
  }
66
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,
67
+ let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)), o = (e.supportingMeasures ?? []).filter((e) => h(e)), [s, c] = r, l = a(s?.dataItem), u = a(c?.dataItem), d = a(i[0]?.dataItem), f = se(o), p = {
68
+ key: S.DotBarCollection,
69
69
  data: { extract: [{
70
70
  field: l,
71
71
  trackBy: (e) => e,
@@ -86,7 +86,7 @@ var Ce = (e, t, n) => {
86
86
  }
87
87
  }] }
88
88
  }, m = {
89
- key: x.DotPointsCollection,
89
+ key: S.DotPointsCollection,
90
90
  data: { extract: [{
91
91
  field: u,
92
92
  props: {
@@ -125,7 +125,7 @@ var Ce = (e, t, n) => {
125
125
  }
126
126
  t.exports = a;
127
127
  })), Ee = /* @__PURE__ */ t(((e, t) => {
128
- var n = p();
128
+ var n = d();
129
129
  function r(e, t) {
130
130
  return n(t, function(t) {
131
131
  return e[t];
@@ -133,7 +133,7 @@ var Ce = (e, t, n) => {
133
133
  }
134
134
  t.exports = r;
135
135
  })), De = /* @__PURE__ */ t(((e, t) => {
136
- var n = Ee(), r = l();
136
+ var n = Ee(), r = f();
137
137
  function i(e) {
138
138
  return e == null ? [] : n(e, r(e));
139
139
  }
@@ -145,11 +145,11 @@ var Ce = (e, t, n) => {
145
145
  }
146
146
  t.exports = i;
147
147
  })), ke = /* @__PURE__ */ t(((e, t) => {
148
- var n = Te(), r = Oe(), i = a();
149
- function o(e) {
148
+ var n = Te(), r = Oe(), i = c();
149
+ function a(e) {
150
150
  return (i(e) ? n : r)(e);
151
151
  }
152
- t.exports = o;
152
+ t.exports = a;
153
153
  })), Ae = /* @__PURE__ */ e(ye()), je = /* @__PURE__ */ e(ke()), J = (e) => 1 - (e.barSettings.barPadding ?? 0);
154
154
  function Me(e, t, n) {
155
155
  let r = new ve(e, t, n?.[0]?.itemsNotAffectedByFiltering);
@@ -159,20 +159,20 @@ function Me(e, t, n) {
159
159
  });
160
160
  }
161
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 ?? {};
162
+ let t = A([""], 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 === H.Line ? 1 : n(e)), t ?? {};
164
164
  }
165
165
  function Y(e) {
166
- return ue({
166
+ return le({
167
167
  triggerData: [""],
168
168
  consumeData: ["", "group"],
169
- consumerMode: A.Or
169
+ consumerMode: R.Or
170
170
  }, e ?? {}, { valuePickerMode: e?.valuePickerMode }) ?? {};
171
171
  }
172
172
  var X = 100, Z = .1, Q = .9, Pe = (0, je.default)((0, Ae.default)(Z, Q, (Q - Z) / X));
173
173
  function Fe(e, t) {
174
174
  return ({ datum: n, resources: { scale: r } }, i) => {
175
- let a = r?.(j(t));
175
+ let a = r?.(B(t));
176
176
  if (!a || typeof a != "function" || typeof a.bandwidth != "function") return 0;
177
177
  let o = t.jitterPoints ? Pe[i % X] : .5;
178
178
  return a(n.group.value) + .5 * (1 - e) * a.bandwidth() + e * a.bandwidth() * o;
@@ -192,8 +192,8 @@ var Ie = (e, t, n, r, i = [], a) => {
192
192
  function Le(e, t, n) {
193
193
  let r = {
194
194
  orientation: e.orientation,
195
- major: { scale: j(e) },
196
- minor: { scale: V(e, e.measures.filter((e) => h(e))[0]) },
195
+ major: { scale: B(e) },
196
+ minor: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
197
197
  box: {
198
198
  width: J(e),
199
199
  fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
@@ -206,10 +206,10 @@ function Le(e, t, n) {
206
206
  }
207
207
  };
208
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 },
209
+ type: j.Box,
210
+ layout: { displayOrder: C.VisualizationElement },
211
211
  key: "min-max-box",
212
- data: { collection: x.DotBarCollection },
212
+ data: { collection: S.DotBarCollection },
213
213
  settings: r,
214
214
  animations: {
215
215
  enabled: !0,
@@ -221,17 +221,17 @@ function Le(e, t, n) {
221
221
  function Re(e, t, n) {
222
222
  let r = Fe(J(e) * .9, e);
223
223
  return {
224
- type: W.Point,
224
+ type: j.Point,
225
225
  key: "dot-point",
226
- layout: { displayOrder: S.VisualizationElement },
227
- data: { collection: x.DotPointsCollection },
226
+ layout: { displayOrder: C.VisualizationElement },
227
+ data: { collection: S.DotPointsCollection },
228
228
  settings: {
229
- x: { scale: V(e, e.measures.filter((e) => h(e))[0]) },
229
+ x: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
230
230
  y: {
231
- scale: j(e),
231
+ scale: B(e),
232
232
  fn: r
233
233
  },
234
- shape: s.Circle,
234
+ shape: o.Circle,
235
235
  size: e.pointSize,
236
236
  strokeWidth: 2,
237
237
  opacity: .8,
@@ -244,9 +244,9 @@ function Re(e, t, n) {
244
244
  }
245
245
  function ze(e, t, n) {
246
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 },
247
+ let r = e.refLines.x.map((e) => ge(e, me.XAxisScale, t)), i = {
248
+ type: j.RefLine,
249
+ layout: { displayOrder: C.RefLine },
250
250
  lines: { x: r }
251
251
  };
252
252
  return {
@@ -255,7 +255,7 @@ function ze(e, t, n) {
255
255
  };
256
256
  }
257
257
  var Be = /* @__PURE__ */ t(((e, t) => {
258
- var n = f(), r = be(), i = y(), a = u(), o = n.isFinite, s = Math.min;
258
+ var n = ee(), r = be(), i = b(), a = u(), o = n.isFinite, s = Math.min;
259
259
  function c(e) {
260
260
  var t = Math[e];
261
261
  return function(e, n) {
@@ -272,13 +272,13 @@ var Be = /* @__PURE__ */ t(((e, t) => {
272
272
  })))());
273
273
  function $(e, t, n) {
274
274
  let r = e.measures.filter((e) => h(e))[0];
275
- return F(e, t, n, {
275
+ return I(e, t, n, {
276
276
  filter: He,
277
277
  placement: {
278
278
  type: "bounds",
279
279
  area: "target"
280
280
  },
281
- extract: me(e, t, Ue(r?.formatter), We)
281
+ extract: he(e, t, Ue(r?.formatter), We)
282
282
  }, "tooltip", void 0, {
283
283
  componentKeys: ["dot-point"],
284
284
  yieldToComponentKeys: ["min-max-box"]
@@ -293,13 +293,13 @@ function Ue(e) {
293
293
  return (t, n, r, i, a, o, s, c) => {
294
294
  if (n.key === "dot-point") {
295
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)), [{
296
+ 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)), [{
297
297
  label: n.data.label,
298
298
  value: t
299
299
  }];
300
300
  } else if (n.key === "min-max-box") {
301
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)), [
302
+ 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)), [
303
303
  {
304
304
  label: "Min",
305
305
  value: t
@@ -327,33 +327,33 @@ var Ge = (e, t, n) => {
327
327
  type: "string",
328
328
  format: ""
329
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, {
330
+ scale: B(e),
331
+ key: `${T.Dimension}-${e.orientation ?? s.Vertical}`,
332
+ settings: { direction: E(e) }
333
+ }, o = i[0], [c, l] = w([a, {
334
334
  showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
335
335
  formatter: o?.formatter,
336
- scale: V(e, o),
337
- key: `${w.Measure}-${e.orientation ?? c.Vertical}`,
336
+ scale: M(e, o),
337
+ key: `${T.Measure}-${e.orientation ?? s.Vertical}`,
338
338
  settings: {
339
- direction: le(e),
340
- labelDock: se(pe(e), o?.secondaryAxis)
339
+ direction: ce(e),
340
+ labelDock: oe(fe(e), o?.secondaryAxis)
341
341
  }
342
342
  }]);
343
343
  return {
344
344
  ...n,
345
- components: [...n.components ?? [], ...s],
345
+ components: [...n.components ?? [], ...c],
346
346
  interactions: [...n.interactions ?? [], ...l]
347
347
  };
348
348
  };
349
349
  function Ke(e, t, r, i, a, o) {
350
- let { components: s, interactions: c } = M(e, t, r, i, a ?? [], o ?? {});
350
+ let { components: s, interactions: c } = N(e, t, r, i, a ?? [], o ?? {});
351
351
  if (!e.coloring || e.coloring.type === n.Single) return {
352
352
  ...r,
353
353
  components: s,
354
354
  interactions: c
355
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 ? {
356
+ let l = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), u = s.map((e) => (e.type === L.CategoricalLegend || e.type === L.SequentialLegend) && l ? {
357
357
  ...e,
358
358
  brush: Y(o)
359
359
  } : e);
@@ -363,30 +363,30 @@ function Ke(e, t, r, i, a, o) {
363
363
  interactions: c
364
364
  };
365
365
  }
366
- var qe = class extends oe {
366
+ var qe = class extends ae {
367
367
  constructor() {
368
368
  super([
369
369
  Ce,
370
370
  xe,
371
- O,
372
- E,
371
+ k,
372
+ D,
373
373
  Ke,
374
- P,
374
+ F,
375
375
  Ie,
376
376
  ze,
377
377
  $,
378
378
  Ge,
379
- z
379
+ U
380
380
  ]);
381
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;
382
+ }, Je = x(), Ye = new qe(), Xe = v(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
383
+ let a = _(), { activeKey: o } = ne(), s = g(), c = de();
384
+ if (!e || !p(e) || !r) return null;
385
385
  let l = {
386
386
  ...i,
387
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, {
388
+ }, u = t || te, d = Ye.compile(e, u, n, r, l, m.Dot, a, s, c);
389
+ return d ? /* @__PURE__ */ (0, Je.jsx)(z, {
390
390
  config: l,
391
391
  definition: d,
392
392
  size: r,