@astrato-io/visualizations 0.10.1 → 0.11.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 (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,9 +1,9 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Fa as t, Fc as n, Ia as r, Io as i, La as a, Qr as o, Ut as s, ms as c, ps as l, rc as u, sa as d, ti as f, za as p } from "./visualization-filters-D7i6oh1Z.js";
3
- import { Ut as m, W as h, ci as g, f as _, jt as v, sn as y, xn as b, zr as x } from "./utils-DganVptf.js";
4
- import { s as S } from "./coloring-BtnPiQ_o.js";
5
- import { n as C, r as w, t as T } from "./icon-picker-styles-BXiJ1SZS.js";
6
- var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
2
+ import { Ba as t, Ha as n, Hc as r, Uo as i, Va as a, Wa as o, bs as s, fa as c, oi as l, qt as u, ri as d, uc as f, xs as p } from "./visualization-filters-BwS0xUqs.js";
3
+ import { Br as m, G as h, Mt as g, Sn as _, Wt as v, cn as y, f as b, li as x } from "./utils-BdJrEeIQ.js";
4
+ import { c as S } from "./coloring-BOiP0rmn.js";
5
+ import { n as C, r as w, t as T } from "./icon-picker-styles-CBlxEu3s.js";
6
+ var E = /* @__PURE__ */ e(x()), D = m(), O = (e) => {
7
7
  let t = C[e];
8
8
  return t ? String.fromCodePoint(parseInt(t, 16)) : null;
9
9
  }, k = ({ className: e, name: t, onClick: n, style: r, testId: i, displayNullIcon: a, displayNullTooltip: o, role: s }) => {
@@ -40,15 +40,15 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
40
40
  }) : null;
41
41
  }, A = (e, t) => {
42
42
  switch (e.thresholdType) {
43
- case a.Range: return M(t, e.rangeThresholds ?? []);
44
- case a.Target: return j(t, e.targetThreshold);
45
- case a.None: return {};
43
+ case n.Range: return M(t, e.rangeThresholds ?? []);
44
+ case n.Target: return j(t, e.targetThreshold);
45
+ case n.None: return {};
46
46
  }
47
47
  }, j = (e, t) => {
48
48
  if (!t) return {};
49
- let n = s(t.target, 0) ?? 0, { belowTargetColorAndIcon: r, targetColorAndIcon: i, aboveTargetColorAndIcon: a } = t;
49
+ let n = u(t.target, 0) ?? 0, { belowTargetColorAndIcon: r, targetColorAndIcon: i, aboveTargetColorAndIcon: a } = t;
50
50
  return e < n * (1 - t.targetTolerance) ? r : e > n * (1 + t.targetTolerance) ? a : i;
51
- }, M = (e, t) => [...t].sort((e, t) => (s(t.rangeTo, 0) ?? 0) - (s(e.rangeTo, 0) ?? 0)).reduce((t, n) => e < (s(n.rangeTo, 0) ?? 0) ? n.colorAndIcon : t, {}), N = (e) => {
51
+ }, M = (e, t) => [...t].sort((e, t) => (u(t.rangeTo, 0) ?? 0) - (u(e.rangeTo, 0) ?? 0)).reduce((t, n) => e < (u(n.rangeTo, 0) ?? 0) ? n.colorAndIcon : t, {}), N = (e) => {
52
52
  let t = ["numberColor"], n = ["comparisonColor"];
53
53
  switch (e) {
54
54
  case "main": return t;
@@ -66,9 +66,9 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
66
66
  comparisonPosition: i.Bottom
67
67
  }, I = {
68
68
  numberValue: 0,
69
- textAlign: l.Center,
70
- horizontalAlign: l.Center,
71
- verticalAlign: c.Middle,
69
+ textAlign: s.Center,
70
+ horizontalAlign: s.Center,
71
+ verticalAlign: p.Middle,
72
72
  numberStyle: {
73
73
  fontSize: 12,
74
74
  fontFamily: "Roboto",
@@ -78,7 +78,7 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
78
78
  strikethrough: !1
79
79
  },
80
80
  comparisonStyle: {
81
- relativeFontSizePercentage: f.relativeFontSizePercentage,
81
+ relativeFontSizePercentage: l.relativeFontSizePercentage,
82
82
  fontFamily: "Roboto",
83
83
  bold: !1,
84
84
  italic: !1,
@@ -89,13 +89,13 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
89
89
  ...F
90
90
  }, L = (e, t, n) => {
91
91
  if (!n?.length || !e) return I;
92
- let r = t || d, i = r.fonts.general.fontFamily ?? void 0, { numberValue: a, numberFormat: s, comparisonNumberValue: c, comparisonFormat: l } = R(e, n);
92
+ let r = t || c, i = r.fonts.general.fontFamily ?? void 0, { numberValue: a, numberFormat: s, comparisonNumberValue: l, comparisonFormat: u } = R(e, n);
93
93
  return {
94
- ...B(e, r, H(n, e.measures.find((e) => o(e) && e.role === p.NUMBER_MEASURE), !0), z(e, n)),
94
+ ...B(e, r, H(n, e.measures.find((e) => d(e) && e.role === o.NUMBER_MEASURE), !0), z(e, n)),
95
95
  numberValue: a,
96
96
  numberFormat: s,
97
- comparisonNumberValue: c,
98
- comparisonFormat: l,
97
+ comparisonNumberValue: l,
98
+ comparisonFormat: u,
99
99
  numberStyle: {
100
100
  fontSize: e.numberSettings?.numberStyle?.fontSize ?? I.numberStyle.fontSize,
101
101
  fontFamily: e.numberSettings?.numberStyle?.fontFamily ?? i,
@@ -120,25 +120,25 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
120
120
  comparisonGap: e.numberSettings?.position?.comparisonGap ?? I.comparisonGap
121
121
  };
122
122
  }, R = (e, t) => {
123
- let n, r, i, a, s = e.measures.filter(o), c = s.filter((e) => e.role === p.NUMBER_MEASURE), l = s.filter((e) => e.role === p.NUMBER_COMPARISON), u = c[0], d = l[0];
124
- return n = H(t, u, !0), i = z(e, t), u?.formatter && typeof u?.formatter?.format != "string" && (r = u.formatter), d?.formatter && typeof d?.formatter?.format != "string" && (a = d.formatter), d && i !== void 0 && e.numberSettings?.data?.showOnlyComparison && (n = i, r = a, i = void 0, a = void 0), {
123
+ let n, r, i, a, s = e.measures.filter(d), c = s.filter((e) => e.role === o.NUMBER_MEASURE), l = s.filter((e) => e.role === o.NUMBER_COMPARISON), u = c[0], f = l[0];
124
+ return n = H(t, u, !0), i = z(e, t), u?.formatter && typeof u?.formatter?.format != "string" && (r = u.formatter), f?.formatter && typeof f?.formatter?.format != "string" && (a = f.formatter), f && i !== void 0 && e.numberSettings?.data?.showOnlyComparison && (n = i, r = a, i = void 0, a = void 0), {
125
125
  numberValue: n,
126
126
  numberFormat: r,
127
127
  comparisonNumberValue: i,
128
128
  comparisonFormat: a
129
129
  };
130
130
  }, z = (e, t) => {
131
- let n = e.measures.filter(o), i = n.filter((e) => e.role === p.NUMBER_MEASURE), a = n.filter((e) => e.role === p.NUMBER_COMPARISON), s = i[0], c = a[0];
131
+ let n = e.measures.filter(d), r = n.filter((e) => e.role === o.NUMBER_MEASURE), i = n.filter((e) => e.role === o.NUMBER_COMPARISON), s = r[0], c = i[0];
132
132
  if (!c) return;
133
- let l = H(t, s), u = H(t, c), d = e.numberSettings?.data?.comparisonType, f = d === r.PercentageToComparison || d === r.PercentageAboveBelow || d === r.Difference;
134
- if (u === null || f && l === null) return null;
133
+ let l = H(t, s), u = H(t, c), f = e.numberSettings?.data?.comparisonType, p = f === a.PercentageToComparison || f === a.PercentageAboveBelow || f === a.Difference;
134
+ if (u === null || p && l === null) return null;
135
135
  let m = Number(l), h = +u, g = Math.abs(h);
136
- return d === r.PercentageToComparison ? m === 0 && h === 0 ? 1 : m / g : d === r.PercentageAboveBelow ? m === 0 && h === 0 ? 0 : (m - h) / g : d === r.Difference ? m - h : h;
137
- }, B = (e, t, n, r) => {
138
- let i = e.measures.filter(o), s = i.filter((e) => e.role === p.NUMBER_MEASURE), c = i.filter((e) => e.role === p.NUMBER_COMPARISON), l = s[0], u = c[0];
139
- return (e.numberSettings?.thresholds ?? []).filter((e) => e.thresholdType !== a.None).reduce((e, t) => {
140
- let i = t.measureRule === "main" ? l : u, a = n === null ? null : Number(n), o = t.measureRule === "main" ? a : r;
141
- if (i && o != null) {
136
+ return f === a.PercentageToComparison ? m === 0 && h === 0 ? 1 : m / g : f === a.PercentageAboveBelow ? m === 0 && h === 0 ? 0 : (m - h) / g : f === a.Difference ? m - h : h;
137
+ }, B = (e, t, r, i) => {
138
+ let a = e.measures.filter(d), s = a.filter((e) => e.role === o.NUMBER_MEASURE), c = a.filter((e) => e.role === o.NUMBER_COMPARISON), l = s[0], u = c[0];
139
+ return (e.numberSettings?.thresholds ?? []).filter((e) => e.thresholdType !== n.None).reduce((e, t) => {
140
+ let n = t.measureRule === "main" ? l : u, a = r === null ? null : Number(r), o = t.measureRule === "main" ? a : i;
141
+ if (n && o != null) {
142
142
  let n = A(t, o), r = {
143
143
  ...e,
144
144
  ...P(n, "icon", ["icon"]),
@@ -164,12 +164,12 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
164
164
  numberColor: S(t, e?.numberSettings?.numberStyle?.fontColor ?? t.fonts.general.color),
165
165
  ...U(e, t, e.numberSettings?.comparisonStyle?.fontColor)
166
166
  };
167
- }, H = (e, t, r = !1) => {
168
- let i = n(t?.dataItem), a = (e?.[0])?.items?.[0], o = i === null ? void 0 : a?.[i];
167
+ }, H = (e, t, n = !1) => {
168
+ let i = r(t?.dataItem), a = (e?.[0])?.items?.[0], o = i === null ? void 0 : a?.[i];
169
169
  if (o == null || o === "") return null;
170
- let s = +`${o}`, c = r && (!t?.formatter || t?.formatter?.format === "string") ? `${o}` : 0;
170
+ let s = +`${o}`, c = n && (!t?.formatter || t?.formatter?.format === "string") ? `${o}` : 0;
171
171
  return isNaN(s) ? c : s;
172
- }, U = (e, t, n) => !e.measures.filter(o).filter((e) => e.role === p.NUMBER_COMPARISON)[0] || e.numberSettings?.data?.showOnlyComparison ? {
172
+ }, U = (e, t, n) => !e.measures.filter(d).filter((e) => e.role === o.NUMBER_COMPARISON)[0] || e.numberSettings?.data?.showOnlyComparison ? {
173
173
  comparisonPosition: void 0,
174
174
  comparisonColor: void 0
175
175
  } : {
@@ -195,10 +195,10 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
195
195
  }
196
196
  }), G = (e) => {
197
197
  switch (e) {
198
- case c.Top:
199
- case l.Left: return "flex-start";
200
- case c.Bottom:
201
- case l.Right: return "flex-end";
198
+ case p.Top:
199
+ case s.Left: return "flex-start";
200
+ case p.Bottom:
201
+ case s.Right: return "flex-end";
202
202
  default: return "center";
203
203
  }
204
204
  }, K = (e) => {
@@ -232,20 +232,20 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
232
232
  }, Q = 1.2, ie = ({ number: e, comparisonNumber: t }, n, r) => {
233
233
  let { numberStyle: i, comparisonStyle: a } = n, o = i.fontSize ?? 14;
234
234
  if (!e || r.width === 0) return o;
235
- let s = b(), c = (a.relativeFontSizePercentage ?? f.relativeFontSizePercentage) / 100, l = 1;
236
- for (let u = o; u >= 1; --u) {
235
+ let s = _(), c = (a.relativeFontSizePercentage ?? l.relativeFontSizePercentage) / 100, u = 1;
236
+ for (let l = o; l >= 1; --l) {
237
237
  let o = {
238
238
  width: s.getTextSize({
239
- size: u,
239
+ size: l,
240
240
  label: e,
241
241
  fontFamily: i.fontFamily ?? "inherit",
242
242
  letterSpacing: "0.05em",
243
243
  fontWeight: 400
244
244
  }).width,
245
- height: u * Q
245
+ height: l * Q
246
246
  }, d;
247
247
  if (t) {
248
- let e = u * c;
248
+ let e = l * c;
249
249
  d = {
250
250
  width: s.getTextSize({
251
251
  size: e,
@@ -262,68 +262,68 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
262
262
  comparisonNumberSize: d,
263
263
  numberProps: n,
264
264
  elementSize: r,
265
- fontSize: u
265
+ fontSize: l
266
266
  }) && re({
267
267
  numberSize: o,
268
268
  comparisonNumberSize: d,
269
269
  numberProps: n,
270
270
  elementSize: r,
271
- fontSize: u
271
+ fontSize: l
272
272
  })) {
273
- l = u;
273
+ u = l;
274
274
  break;
275
275
  }
276
276
  }
277
- return s.cleanDOM(), l;
278
- }, $ = v((0, E.memo)(({ vSpec: e, vTheme: t, elementSize: n, data: r, vizProperties: a }) => {
279
- let [o, s] = (0, E.useState)(0), c = W(), l = _(), u = L(e, t, r ?? void 0), { numberValue: d, numberFormat: p, comparisonNumberValue: h, comparisonFormat: g, backgroundColor: v } = u, y = u.iconPosition ?? i.Left, b = o, x = d === null ? null : o, S = p && x !== null ? m(p, x) : x, C = g && h !== null ? m(g, h) : h, w = S === "" || S == null, T = w ? void 0 : `${S}`, O = C === "" || C == null ? void 0 : `${C}`, A = w || !n ? u.numberStyle.fontSize || 14 : ie({
277
+ return s.cleanDOM(), u;
278
+ }, $ = g((0, E.memo)(({ vSpec: e, vTheme: t, elementSize: n, data: r, vizProperties: a }) => {
279
+ let [o, s] = (0, E.useState)(0), c = W(), u = b(), d = L(e, t, r ?? void 0), { numberValue: f, numberFormat: p, comparisonNumberValue: m, comparisonFormat: h, backgroundColor: g } = d, _ = d.iconPosition ?? i.Left, y = o, x = f === null ? null : o, S = p && x !== null ? v(p, x) : x, C = h && m !== null ? v(h, m) : m, w = S === "" || S == null, T = w ? void 0 : `${S}`, O = C === "" || C == null ? void 0 : `${C}`, A = w || !n ? d.numberStyle.fontSize || 14 : ie({
280
280
  number: T,
281
281
  comparisonNumber: O
282
- }, u, n);
282
+ }, d, n);
283
283
  return (0, E.useEffect)(() => {
284
284
  let e;
285
- return !a?.disable?.animations && typeof d == "number" ? (typeof b != "number" && (s(0), b = 0), e = q(d, b, s, !p)) : s(d), () => {
285
+ return !a?.disable?.animations && typeof f == "number" ? (typeof y != "number" && (s(0), y = 0), e = q(f, y, s, !p)) : s(f), () => {
286
286
  e && e();
287
287
  };
288
- }, [d]), (0, E.useEffect)(() => {
289
- e && l();
288
+ }, [f]), (0, E.useEffect)(() => {
289
+ e && u();
290
290
  }, [e]), /* @__PURE__ */ (0, D.jsx)("div", {
291
291
  className: c.mainContainer,
292
292
  style: {
293
293
  fontSize: `${A}px`,
294
- alignItems: G(u.verticalAlign),
295
- justifyContent: G(u.horizontalAlign),
296
- backgroundColor: v
294
+ alignItems: G(d.verticalAlign),
295
+ justifyContent: G(d.horizontalAlign),
296
+ backgroundColor: g
297
297
  },
298
298
  children: /* @__PURE__ */ (0, D.jsxs)("div", {
299
299
  className: c.numbersContainer,
300
300
  style: {
301
- alignItems: K(u),
302
- flexDirection: X(u.comparisonPosition ?? y),
303
- ...ee(u.comparisonGap, u.comparisonPosition)
301
+ alignItems: K(d),
302
+ flexDirection: X(d.comparisonPosition ?? _),
303
+ ...ee(d.comparisonGap, d.comparisonPosition)
304
304
  },
305
305
  children: [/* @__PURE__ */ (0, D.jsxs)("div", {
306
306
  className: c.comparisonIconContainer,
307
307
  style: {
308
- alignItems: G(u.textAlign),
309
- flexDirection: X(y)
308
+ alignItems: G(d.textAlign),
309
+ flexDirection: X(_)
310
310
  },
311
311
  children: [/* @__PURE__ */ (0, D.jsx)(k, {
312
- name: u.icon ?? "",
312
+ name: d.icon ?? "",
313
313
  testId: "indicator-icon",
314
314
  style: {
315
- fontSize: te(u.comparisonPosition, y),
316
- color: u.iconColor ?? "inherit"
315
+ fontSize: te(d.comparisonPosition, _),
316
+ color: d.iconColor ?? "inherit"
317
317
  }
318
318
  }), /* @__PURE__ */ (0, D.jsx)("div", {
319
319
  "data-testid": "number-comparison",
320
320
  style: {
321
- fontSize: `${(u.comparisonStyle.relativeFontSizePercentage ?? f.relativeFontSizePercentage) / 100}em`,
322
- fontFamily: u.comparisonStyle.fontFamily,
323
- fontStyle: u.comparisonStyle.italic ? "italic" : "normal",
324
- fontWeight: u.comparisonStyle.weight || (u.comparisonStyle.bold ? "bold" : "normal"),
325
- textDecoration: Z(u.comparisonStyle.underlined ?? !1, u.comparisonStyle.strikethrough ?? !1),
326
- color: u.comparisonColor ?? "inherit"
321
+ fontSize: `${(d.comparisonStyle.relativeFontSizePercentage ?? l.relativeFontSizePercentage) / 100}em`,
322
+ fontFamily: d.comparisonStyle.fontFamily,
323
+ fontStyle: d.comparisonStyle.italic ? "italic" : "normal",
324
+ fontWeight: d.comparisonStyle.weight || (d.comparisonStyle.bold ? "bold" : "normal"),
325
+ textDecoration: Z(d.comparisonStyle.underlined ?? !1, d.comparisonStyle.strikethrough ?? !1),
326
+ color: d.comparisonColor ?? "inherit"
327
327
  },
328
328
  children: O
329
329
  })]
@@ -331,13 +331,13 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
331
331
  className: c.number,
332
332
  "data-testid": "number-base",
333
333
  style: {
334
- fontFamily: u.numberStyle.fontFamily,
335
- fontStyle: u.numberStyle.italic ? "italic" : "normal",
336
- fontWeight: u.numberStyle.weight || (u.numberStyle.bold ? "bold" : "normal"),
337
- textDecoration: Z(u.numberStyle.underlined ?? !1, u.numberStyle.strikethrough ?? !1),
338
- color: u.numberColor
334
+ fontFamily: d.numberStyle.fontFamily,
335
+ fontStyle: d.numberStyle.italic ? "italic" : "normal",
336
+ fontWeight: d.numberStyle.weight || (d.numberStyle.bold ? "bold" : "normal"),
337
+ textDecoration: Z(d.numberStyle.underlined ?? !1, d.numberStyle.strikethrough ?? !1),
338
+ color: d.numberColor
339
339
  },
340
- children: p && typeof x == "number" ? m(p, x) : x
340
+ children: p && typeof x == "number" ? v(p, x) : x
341
341
  })]
342
342
  })
343
343
  });
@@ -346,7 +346,7 @@ var E = /* @__PURE__ */ e(g()), D = x(), O = (e) => {
346
346
  return t === null ? (0, E.createElement)($, {
347
347
  ...e,
348
348
  vSpec: null
349
- }) : u(t) ? (0, E.createElement)($, {
349
+ }) : f(t) ? (0, E.createElement)($, {
350
350
  ...e,
351
351
  vSpec: t
352
352
  }) : null;