@astrato-io/visualizations 0.9.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 (144) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +7 -3
  3. package/THIRD_PARTY_NOTICES.md +163 -14
  4. package/VISUALIZATION_DEFINITIONS.md +376 -36
  5. package/chunks/{Button-5CxPEACP.js → Button-Dn3rJrYf.js} +4 -4
  6. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-BFeu06Yb.js} +39 -39
  7. package/chunks/FieldTypeIcon-DrMoGpHJ.js +22 -0
  8. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-ClO6GUjN.js} +9 -9
  9. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-Czc34u4q.js} +143 -142
  10. package/chunks/{Title-CtFw1bVg.js → Title-BgYnaVTR.js} +22 -22
  11. package/chunks/_createAggregator-BMu9uRax.js +50 -0
  12. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-CVir0wkl.js} +10 -10
  13. package/chunks/bar-layout-C_UgRlVl.js +9 -0
  14. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-DYuFdi9J.js} +100 -82
  15. package/chunks/{builder-Dxo7D7c6.js → builder-C-TKA-My.js} +70 -37
  16. package/chunks/color-rules-DYJL4fIW.js +15 -0
  17. package/chunks/color-settings-DJFoFTip.js +5 -0
  18. package/chunks/{coloring-B-Wa8D5P.js → coloring-BtnPiQ_o.js} +37 -37
  19. package/chunks/createSimplePaletteValueFilter--zrZxRV9.js +2005 -0
  20. package/chunks/defaults-Dtk7fg3C.js +3 -0
  21. package/chunks/{definitions-DNpzD9tY.js → definitions-CT304NDn.js} +655 -417
  22. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CvEV2ES1.js} +7441 -7127
  23. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D9-JP92b.js} +998 -933
  24. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-CXeZznks.js} +7 -7
  25. package/chunks/{filtering-CGuLpg7u.js → filtering-8_bFv-jb.js} +333 -377
  26. package/chunks/handlers-C6CZ0XJA.js +15399 -0
  27. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-BXiJ1SZS.js} +11 -11
  28. package/chunks/isEqual-D8Ay63xR.js +16 -0
  29. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-DmHpmQCC.js} +9 -9
  32. package/chunks/{logger-3lng-wOw.js → logger-DdZpR7xZ.js} +79 -72
  33. package/chunks/map.compiler-Q_Y1Pvat.js +343 -0
  34. package/chunks/{metadata-Fmx1swpK.js → metadata-BQm_TXI1.js} +1 -1
  35. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-DQdg6zTy.js} +7 -7
  36. package/chunks/operations-DKQWuLL7.js +31315 -0
  37. package/chunks/{range-CzO4isKK.js → range-BdhzvYQ_.js} +2 -2
  38. package/chunks/{react-dom-BwZT0N3F.js → react-dom-BGP4tbXV.js} +70 -70
  39. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-BZpyDnJy.js} +1 -1
  40. package/chunks/{requirements-CYpVh65U.js → requirements-e8Fe96ag.js} +60 -58
  41. package/chunks/shared-C_2F90xq.js +1337 -0
  42. package/chunks/standalone-4MsKiqs0.js +355 -0
  43. package/chunks/standalone-B794g9pE.js +1012 -0
  44. package/chunks/{standalone-C6XDHYAM.js → standalone-B8ZSqauS.js} +110 -110
  45. package/chunks/{standalone-5DnapeHH.js → standalone-BA2YXyJS.js} +126 -124
  46. package/chunks/{standalone-CXniic5x.js → standalone-BDrXVxlP.js} +6 -5
  47. package/chunks/{standalone-B6s_xG2u.js → standalone-BE_ONgiG.js} +116 -116
  48. package/chunks/{standalone-CPUiiWNP.js → standalone-BTY3w_JA.js} +37 -37
  49. package/chunks/standalone-BgumbdaJ2.js +357 -0
  50. package/chunks/{standalone-DWPfdP0A.js → standalone-BkbiH-o8.js} +482 -482
  51. package/chunks/standalone-Blh4qejk.js +689 -0
  52. package/chunks/standalone-CXY4FpF7.js +773 -0
  53. package/chunks/{standalone-BvWdpUL3.js → standalone-CY_kjarf.js} +34 -31
  54. package/chunks/{standalone-DuwTOBXH.js → standalone-CaTxAydz.js} +587 -587
  55. package/chunks/{standalone-BDrQMxLi.js → standalone-Cc98Pdr6.js} +1799 -1015
  56. package/chunks/{standalone-DMCwtebn.js → standalone-Cl0TSfqC.js} +125 -125
  57. package/chunks/{standalone-CoQxJ6ov.js → standalone-CsoMmE9T.js} +778 -778
  58. package/chunks/standalone-DH0xTEes.js +2 -0
  59. package/chunks/{standalone-LFVgLhia.js → standalone-DHRalbVO.js} +311 -303
  60. package/chunks/standalone-DNh9NcMa.js +580 -0
  61. package/chunks/standalone-DcnHjNnC.js +2 -0
  62. package/chunks/{standalone-r4ObFvys.js → standalone-DflyWtuR.js} +217 -215
  63. package/chunks/standalone-DrHdGkY7.js +762 -0
  64. package/chunks/standalone-c_rROMtx.js +287 -0
  65. package/chunks/standalone-drcFLeN6.js +6 -0
  66. package/chunks/{standalone-CNkHsynO.js → standalone-wOWRCpdn.js} +54 -56
  67. package/chunks/{standalone-Cu73fzSr.js → standalone-z0o52o5t.js} +5128 -4908
  68. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-COaHE9VD.js} +18 -18
  69. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-CdnCWzhd.js} +1 -1
  70. package/chunks/{utils-DYYD4Zzf.js → utils-DganVptf.js} +4758 -4747
  71. package/chunks/{view-7fH6mGmY.js → view-Bzlros43.js} +2021 -1665
  72. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-D7i6oh1Z.js} +3177 -2425
  73. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-CiIhFEa5.js} +3740 -3547
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +303 -2
  77. package/docs/operations/combo.md +262 -1
  78. package/docs/operations/date-picker.md +1 -1
  79. package/docs/operations/distribution-gauge.md +1 -1
  80. package/docs/operations/dot.md +148 -1
  81. package/docs/operations/filter.md +1 -1
  82. package/docs/operations/gauge.md +1 -1
  83. package/docs/operations/heatMap.md +1 -1
  84. package/docs/operations/histogram.md +262 -1
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +7 -7
  88. package/docs/operations/line.md +280 -1
  89. package/docs/operations/number.md +1 -1
  90. package/docs/operations/pie.md +1 -1
  91. package/docs/operations/radar.md +1 -1
  92. package/docs/operations/sankey.md +1 -1
  93. package/docs/operations/scatter.md +148 -1
  94. package/docs/operations/shape.md +1 -1
  95. package/docs/operations/simpleTextObject.md +1 -1
  96. package/docs/operations/slider.md +1 -1
  97. package/docs/operations/table.md +374 -157
  98. package/docs/operations/tree.md +1 -1
  99. package/docs/operations/treemap.md +1 -1
  100. package/docs/operations/waterfall.md +1 -1
  101. package/docs/operations/word-cloud.md +1 -1
  102. package/getters.js +2 -2
  103. package/index.js +482 -434
  104. package/metadata.js +2 -2
  105. package/operations.js +5 -5
  106. package/package.json +72 -67
  107. package/src/definitions/index.d.ts +7 -1
  108. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  109. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  110. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +219 -7
  112. package/src/definitions/model/definitions/index.d.ts +2 -1
  113. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  117. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  118. package/src/definitions/model/definitions/types/compilation.types.d.ts +9 -1
  119. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  120. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +1 -1
  123. package/src/types.d.ts +17 -13
  124. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  125. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  126. package/chunks/color-rules-CN7TcGrC.js +0 -6
  127. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  128. package/chunks/handlers-CMbyj5y1.js +0 -12930
  129. package/chunks/isEqual-DBg_b35N.js +0 -12
  130. package/chunks/label-format-type-weq1XfcX.js +0 -8
  131. package/chunks/operations-HSqnCRvv.js +0 -26324
  132. package/chunks/shared-DFoJxjVN.js +0 -1218
  133. package/chunks/standalone-530a5lvf.js +0 -1003
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-BMoJXGYe.js +0 -2
  136. package/chunks/standalone-BfvGggeM2.js +0 -355
  137. package/chunks/standalone-CMJJIi9v.js +0 -2
  138. package/chunks/standalone-C_Jd4gkj.js +0 -6
  139. package/chunks/standalone-CiaaibTa.js +0 -518
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DpSRmAWx.js +0 -287
  142. package/chunks/standalone-kzAhwH19.js +0 -689
  143. package/chunks/standalone-mb7LwEiq.js +0 -3874
  144. /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.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, 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";
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
7
  import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
8
- import { t as ye } from "./range-CzO4isKK.js";
8
+ import { t as ye } from "./range-BdhzvYQ_.js";
9
9
  var be = /* @__PURE__ */ t(((e, t) => {
10
10
  var n = _e();
11
11
  function r(e) {
@@ -15,91 +15,91 @@ var be = /* @__PURE__ */ t(((e, t) => {
15
15
  t.exports = r;
16
16
  }));
17
17
  y();
18
- var xe = (e, t, n, r, i, o, s = []) => {
18
+ var xe = (e, t, n, i, a, o, c = []) => {
19
19
  n.collections ??= [];
20
- let c = e.dimensions.filter((e) => h(e)), l = e.measures.filter((e) => h(e)), u = Se(e, t, n, s);
21
- return c[0] && (n.collections.push({
22
- key: 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) },
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
29
  expand: .02,
30
- invert: pe(!1, e.axes?.primaryMeasure),
31
- ...ue(e.axes?.primaryMeasure?.axisRange, !0)
30
+ invert: ne(!1, e.axes?.primaryMeasure),
31
+ ...z(e.axes?.primaryMeasure?.axisRange, !0)
32
32
  }), {
33
33
  ...n,
34
- scales: u
34
+ scales: d
35
35
  };
36
36
  };
37
- function Se(e, t, r, i) {
38
- let o = e.dimensions.filter((e) => h(e)), s = e.measures.filter((e) => h(e));
37
+ function Se(e, t, n, i) {
38
+ let a = e.dimensions.filter((e) => s(e)), o = e.measures.filter((e) => s(e));
39
39
  switch (e.coloring?.type) {
40
- case n.Categorical: {
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,
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
44
  palette: e.coloring.palette,
45
45
  sortOrder: e.coloring.sortOrder
46
- }, r.collections) };
46
+ }, n.collections) };
47
47
  }
48
- case n.Gradient: {
49
- let n = V(e);
50
- return G(r, 1, { color: { field: n } }), ie(K(e, n), t, {});
48
+ case g.Gradient: {
49
+ let r = le(e);
50
+ return O(n, 1, { color: { field: r } }), B(K(e, r), t, {});
51
51
  }
52
- case n.Single: {
53
- let i = a(s[0]?.dataItem);
54
- i && G(r, 1, { color: { field: i } });
55
- let o = e?.coloring?.color ?? t.colors.brandColors[0];
56
- return { [n.Single]: {
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
57
  data: [],
58
- unknown: o,
59
- type: P.CategoricalColor,
60
- range: [o]
58
+ unknown: a,
59
+ type: H.CategoricalColor,
60
+ range: [a]
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)), 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,
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
69
  data: { extract: [{
70
- field: l,
70
+ field: u,
71
71
  trackBy: (e) => e,
72
72
  reduce: "first",
73
73
  props: {
74
74
  start: {
75
- field: d,
75
+ field: f,
76
76
  reduce: "min"
77
77
  },
78
78
  med: {
79
- field: d,
79
+ field: f,
80
80
  reduce: "avg"
81
81
  },
82
82
  end: {
83
- field: d,
83
+ field: f,
84
84
  reduce: "max"
85
85
  }
86
86
  }
87
87
  }] }
88
- }, m = {
89
- key: S.DotPointsCollection,
88
+ }, h = {
89
+ key: w.DotPointsCollection,
90
90
  data: { extract: [{
91
- field: u,
91
+ field: d,
92
92
  props: {
93
- x: { field: d },
94
- group: { field: l },
95
- [d]: { field: d },
96
- ...f
93
+ x: { field: f },
94
+ group: { field: u },
95
+ [f]: { field: f },
96
+ ...p
97
97
  }
98
98
  }] }
99
99
  };
100
100
  return {
101
101
  ...n,
102
- collections: [p, m]
102
+ collections: [m, h]
103
103
  };
104
104
  }, we = /* @__PURE__ */ t(((e, t) => {
105
105
  var n = Math.floor, r = Math.random;
@@ -119,13 +119,13 @@ var Ce = (e, t, n) => {
119
119
  }
120
120
  t.exports = r;
121
121
  })), Te = /* @__PURE__ */ t(((e, t) => {
122
- var n = r(), i = q();
123
- function a(e) {
124
- return i(n(e));
122
+ var n = a(), r = q();
123
+ function i(e) {
124
+ return r(n(e));
125
125
  }
126
- t.exports = a;
126
+ t.exports = i;
127
127
  })), Ee = /* @__PURE__ */ t(((e, t) => {
128
- var n = d();
128
+ var n = ee();
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 = f();
136
+ var n = Ee(), r = c();
137
137
  function i(e) {
138
138
  return e == null ? [] : n(e, r(e));
139
139
  }
@@ -145,7 +145,7 @@ 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 = c();
148
+ var n = Te(), r = Oe(), i = d();
149
149
  function a(e) {
150
150
  return (i(e) ? n : r)(e);
151
151
  }
@@ -159,20 +159,20 @@ function Me(e, t, n) {
159
159
  });
160
160
  }
161
161
  function Ne(e) {
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 ?? {};
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
164
  }
165
165
  function Y(e) {
166
- return le({
166
+ return j({
167
167
  triggerData: [""],
168
168
  consumeData: ["", "group"],
169
- consumerMode: R.Or
169
+ consumerMode: he.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?.(B(t));
175
+ let a = r?.(W(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: B(e) },
196
- minor: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
195
+ major: { scale: W(e) },
196
+ minor: { scale: F(e, e.measures.filter((e) => s(e))[0]) },
197
197
  box: {
198
198
  width: J(e),
199
199
  fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
@@ -201,15 +201,15 @@ function Le(e, t, n) {
201
201
  roundAllEdges: !0
202
202
  },
203
203
  median: {
204
- stroke: i.mainDarkNavy,
204
+ stroke: o.mainDarkNavy,
205
205
  strokeWidth: 2
206
206
  }
207
207
  };
208
- return e.barSettings?.strokeEnabled ? (r.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], r.box.strokeWidth = e.barSettings?.strokeWidth) : r.box.stroke = i.transparent, {
209
- type: j.Box,
210
- layout: { displayOrder: C.VisualizationElement },
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
211
  key: "min-max-box",
212
- data: { collection: S.DotBarCollection },
212
+ data: { collection: w.DotBarCollection },
213
213
  settings: r,
214
214
  animations: {
215
215
  enabled: !0,
@@ -218,20 +218,20 @@ function Le(e, t, n) {
218
218
  brush: Ne(n)
219
219
  };
220
220
  }
221
- function Re(e, t, n) {
222
- let r = Fe(J(e) * .9, e);
221
+ function Re(e, t, r) {
222
+ let i = Fe(J(e) * .9, e);
223
223
  return {
224
- type: j.Point,
224
+ type: P.Point,
225
225
  key: "dot-point",
226
- layout: { displayOrder: C.VisualizationElement },
227
- data: { collection: S.DotPointsCollection },
226
+ layout: { displayOrder: A.VisualizationElement },
227
+ data: { collection: w.DotPointsCollection },
228
228
  settings: {
229
- x: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
229
+ x: { scale: F(e, e.measures.filter((e) => s(e))[0]) },
230
230
  y: {
231
- scale: B(e),
232
- fn: r
231
+ scale: W(e),
232
+ fn: i
233
233
  },
234
- shape: o.Circle,
234
+ shape: n.Circle,
235
235
  size: e.pointSize,
236
236
  strokeWidth: 2,
237
237
  opacity: .8,
@@ -239,14 +239,14 @@ function Re(e, t, n) {
239
239
  id: ({ datum: e }) => `${e.group.value}::${e.value}`
240
240
  },
241
241
  animations: { enabled: !0 },
242
- brush: Y(n)
242
+ brush: Y(r)
243
243
  };
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, me.XAxisScale, t)), i = {
248
- type: j.RefLine,
249
- layout: { displayOrder: C.RefLine },
247
+ let r = e.refLines.x.map((e) => fe(e, pe.XAxisScale, t)), i = {
248
+ type: P.RefLine,
249
+ layout: { displayOrder: A.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 = ee(), r = be(), i = b(), a = u(), o = n.isFinite, s = Math.min;
258
+ var n = h(), r = be(), i = te(), a = m(), o = n.isFinite, s = Math.min;
259
259
  function c(e) {
260
260
  var t = Math[e];
261
261
  return function(e, n) {
@@ -271,14 +271,14 @@ var Be = /* @__PURE__ */ t(((e, t) => {
271
271
  t.exports = Be()("round");
272
272
  })))());
273
273
  function $(e, t, n) {
274
- let r = e.measures.filter((e) => h(e))[0];
275
- return I(e, t, n, {
274
+ let r = e.measures.filter((e) => s(e))[0];
275
+ return se(e, t, n, {
276
276
  filter: He,
277
277
  placement: {
278
278
  type: "bounds",
279
279
  area: "target"
280
280
  },
281
- extract: he(e, t, Ue(r?.formatter), We)
281
+ extract: E(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(W(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(G(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(W(e))(t), i = r.formatter(W(e))(i), a = r.formatter(W(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(G(e))(t), i = r.formatter(G(e))(i), a = r.formatter(G(e))(a)), [
303
303
  {
304
304
  label: "Min",
305
305
  value: t
@@ -318,77 +318,77 @@ function Ue(e) {
318
318
  };
319
319
  }
320
320
  function We(e) {
321
- return e.filter((e) => h(e))[1]?.label ?? "";
321
+ return e.filter((e) => s(e))[1]?.label ?? "";
322
322
  }
323
323
  var Ge = (e, t, n) => {
324
- let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)), a = {
324
+ let r = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = {
325
325
  showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
326
326
  formatter: r[0]?.formatter || {
327
327
  type: "string",
328
328
  format: ""
329
329
  },
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, {
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
334
  showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
335
- formatter: o?.formatter,
336
- scale: M(e, o),
337
- key: `${T.Measure}-${e.orientation ?? s.Vertical}`,
335
+ formatter: c?.formatter,
336
+ scale: F(e, c),
337
+ key: `${C.Measure}-${e.orientation ?? i.Vertical}`,
338
338
  settings: {
339
- direction: ce(e),
340
- labelDock: oe(fe(e), o?.secondaryAxis)
339
+ direction: ge(e),
340
+ labelDock: D(V(e), c?.secondaryAxis)
341
341
  }
342
342
  }]);
343
343
  return {
344
344
  ...n,
345
- components: [...n.components ?? [], ...c],
346
- interactions: [...n.interactions ?? [], ...l]
345
+ components: [...n.components ?? [], ...l],
346
+ interactions: [...n.interactions ?? [], ...u]
347
347
  };
348
348
  };
349
- function Ke(e, t, r, i, a, o) {
350
- let { components: s, interactions: c } = N(e, t, r, i, a ?? [], o ?? {});
351
- if (!e.coloring || e.coloring.type === n.Single) return {
352
- ...r,
353
- components: s,
354
- interactions: c
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
355
  };
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 ? {
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
357
  ...e,
358
- brush: Y(o)
358
+ brush: Y(a)
359
359
  } : e);
360
360
  return {
361
- ...r,
362
- components: u,
363
- interactions: c
361
+ ...n,
362
+ components: l,
363
+ interactions: s
364
364
  };
365
365
  }
366
- var qe = class extends ae {
366
+ var qe = class extends M {
367
367
  constructor() {
368
368
  super([
369
369
  Ce,
370
370
  xe,
371
+ oe,
371
372
  k,
372
- D,
373
373
  Ke,
374
- F,
374
+ U,
375
375
  Ie,
376
376
  ze,
377
377
  $,
378
378
  Ge,
379
- U
379
+ N
380
380
  ]);
381
381
  }
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
- let l = {
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
386
  ...i,
387
387
  valuePickerMode: !!o
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
- config: l,
391
- definition: d,
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
392
  size: r,
393
393
  vSpec: e
394
394
  }) : null;