@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,13 +1,13 @@
1
1
  import { o as e, r as t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $i as n, Ds as r, Hi as i, Us as a, Za as o, es as s, fa as c, rs as l, zi as u, zr as d } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Ei as f, N as p, Xt as m, dn as h, fn as g, ri as _ } from "./utils-vdmi_2PK.js";
4
- import { km as v } from "./handlers-TOT-7INo.js";
2
+ import { $i as n, Ds as r, Hi as i, Us as a, Za as o, es as s, fa as c, rs as l, zi as u, zr as d } from "./visualization-filters-mVnsnvLP.js";
3
+ import { Bt as f, N as p, Ot as m, ei as h, jr as g, zt as _ } from "./utils-DYYD4Zzf.js";
4
+ import { jm as v } from "./handlers-CMbyj5y1.js";
5
5
  import { n as y } from "./label-format-type-weq1XfcX.js";
6
- import "./logger-DpQtYQnX.js";
7
- import { Bt as b, Dt as x, Et as S, F as C, I as ee, X as te, Yt as w, bt as T, et as E, fn as ne, i as re, in as ie, kt as ae, mn as D, un as O, vn as k } from "./escobar-DRhRMYRE.js";
8
- import { t as A } from "./coloring-CncX_JRX.js";
9
- import { t as j } from "./set-coloring-datafield-B3uIS1Pe.js";
10
- var M = /* @__PURE__ */ e(f()), N = {
6
+ import "./logger-3lng-wOw.js";
7
+ import { Bt as b, Dt as x, Et as S, F as C, I as w, X as ee, Yt as T, _n as E, bt as D, dn as te, et as ne, i as re, kt as ie, ln as O, pn as k, rn as A } from "./escobar-C4Nm3eJ7.js";
8
+ import { t as j } from "./coloring-B-Wa8D5P.js";
9
+ import { t as M } from "./set-coloring-datafield-B3uIS1Pe.js";
10
+ var N = /* @__PURE__ */ e(h()), P = {
11
11
  outerRadius: .95,
12
12
  cornerRadius: 10,
13
13
  additionalTextAnchorHeight: 50,
@@ -20,24 +20,24 @@ var M = /* @__PURE__ */ e(f()), N = {
20
20
  barWidthRadiusPadding: .2,
21
21
  maxBarWidthOfRadius: .15,
22
22
  gaugeCollectionKey: "Gauge-Collection"
23
- }, P = (e) => e.gaugeSettings?.barMode ?? !1, F = (e) => e.gaugeSettings?.comparisonMode ?? !1, I = (e) => {
23
+ }, F = (e) => e.gaugeSettings?.barMode ?? !1, I = (e) => e.gaugeSettings?.comparisonMode ?? !1, ae = (e) => {
24
24
  let { coloring: t } = e || {};
25
- return t?.type === r.Categorical || t?.type === r.Single ? x(e, []) ?? "" : ae(e) ?? "";
25
+ return t?.type === r.Categorical || t?.type === r.Single ? x(e, []) ?? "" : ie(e) ?? "";
26
26
  }, L = (e, t, r) => {
27
- let i = { ...S(j(e, I(e) ?? ""), t, {}) }, s = e.gaugeSettings?.barPadding ?? D.scale.padding;
28
- i = te(e, i, s);
27
+ let i = { ...S(M(e, ae(e) ?? ""), t, {}) }, s = e.gaugeSettings?.barPadding ?? k.scale.padding;
28
+ i = ee(e, i, s);
29
29
  let c = e.dimensions.filter(d), l = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE);
30
- return !c.length && P(e) ? i.onlyMeasures = {
31
- data: F(e) ? { extract: { field: l[0] ? a(l[0].dataItem) : "" } } : l.map((e) => a(e.dataItem)),
32
- type: ne.Band,
30
+ return !c.length && F(e) ? i.onlyMeasures = {
31
+ data: I(e) ? { extract: { field: l[0] ? a(l[0].dataItem) : "" } } : l.map((e) => a(e.dataItem)),
32
+ type: te.Band,
33
33
  padding: s
34
- } : F(e) || (i.onlyMeasures = {
34
+ } : I(e) || (i.onlyMeasures = {
35
35
  data: { fields: l.map((e) => a(e.dataItem)) },
36
36
  include: [0],
37
37
  expand: .05
38
- }), P(e) && (i.barScale = {
39
- min: N.minScaleValue - N.scalePadding,
40
- max: N.maxScaleValue + N.scalePadding,
38
+ }), F(e) && (i.barScale = {
39
+ min: P.minScaleValue - P.scalePadding,
40
+ max: P.maxScaleValue + P.scalePadding,
41
41
  invert: e.gaugeSettings?.orientation === o.Vertical
42
42
  }), {
43
43
  ...r,
@@ -45,17 +45,17 @@ var M = /* @__PURE__ */ e(f()), N = {
45
45
  };
46
46
  }, R = (e, t, r, i, o) => {
47
47
  if (!o) return r;
48
- let s = e.dimensions.filter(d), c = e.measures.filter(d), l = ee((e.supportingMeasures ?? []).filter(d)), u = c.filter((e) => e.role === n.GAUGE_VALUE), f = s[0], p = u[0], { targetType: m } = e.gaugeSettings ?? {}, h = P(e), g = f?.dataItem ?? p?.dataItem;
48
+ let s = e.dimensions.filter(d), c = e.measures.filter(d), l = w((e.supportingMeasures ?? []).filter(d)), u = c.filter((e) => e.role === n.GAUGE_VALUE), f = s[0], p = u[0], { targetType: m } = e.gaugeSettings ?? {}, h = F(e), g = f?.dataItem ?? p?.dataItem;
49
49
  if (!g) return r;
50
- let _ = [], v = N.minScaleValue;
51
- if (F(e) ? _.push(...B(e, g, o, l)) : f ? _.push(...z(e, g, o, l)) : _.push(...V(e, o, l)), h) {
50
+ let _ = [], v = P.minScaleValue;
51
+ if (I(e) ? _.push(...B(e, g, o, l)) : f ? _.push(...z(e, g, o, l)) : _.push(...V(e, o, l)), h) {
52
52
  let t = a(p.dataItem), n = {
53
53
  field: a(g),
54
54
  props: {
55
55
  actual: { field: t },
56
56
  color: t,
57
57
  start: v,
58
- end: N.maxScaleValue,
58
+ end: P.maxScaleValue,
59
59
  background: !0,
60
60
  ...l
61
61
  }
@@ -67,7 +67,7 @@ var M = /* @__PURE__ */ e(f()), N = {
67
67
  }), _.push(n);
68
68
  }
69
69
  let b = [{
70
- key: N.gaugeCollectionKey,
70
+ key: P.gaugeCollectionKey,
71
71
  data: { extract: _ }
72
72
  }];
73
73
  return {
@@ -75,7 +75,7 @@ var M = /* @__PURE__ */ e(f()), N = {
75
75
  collections: b
76
76
  };
77
77
  }, z = (e, t, r, i) => {
78
- let o = e.measures.filter(d), s = o.filter((e) => e.role === n.GAUGE_VALUE), c = o.filter((e) => e.role === n.GAUGE_TARGET), l = s[0], u = c[0], { targetType: f } = e.gaugeSettings, p = P(e), m = [], h = a(l.dataItem);
78
+ let o = e.measures.filter(d), s = o.filter((e) => e.role === n.GAUGE_VALUE), c = o.filter((e) => e.role === n.GAUGE_TARGET), l = s[0], u = c[0], { targetType: f } = e.gaugeSettings, p = F(e), m = [], h = a(l.dataItem);
79
79
  return p || m.push({
80
80
  field: a(t),
81
81
  props: {
@@ -88,7 +88,7 @@ var M = /* @__PURE__ */ e(f()), N = {
88
88
  field: a(t),
89
89
  props: {
90
90
  actual: { field: h },
91
- start: p ? N.minScaleValue : void 0,
91
+ start: p ? P.minScaleValue : void 0,
92
92
  end: p ? { getValue: H(e, r) } : void 0,
93
93
  [h]: { field: h },
94
94
  color: h,
@@ -98,7 +98,7 @@ var M = /* @__PURE__ */ e(f()), N = {
98
98
  t.props ??= {}, t.props.target = W(e, r), u && f === y.Data && (t.props[a(u.dataItem)] = { field: a(u.dataItem) });
99
99
  }), m;
100
100
  }, B = (e, t, r, i) => {
101
- let o = P(e), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE), c = s.reduce((e, t) => {
101
+ let o = F(e), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE), c = s.reduce((e, t) => {
102
102
  let n = a(t.dataItem);
103
103
  return e[n] = { field: n }, e;
104
104
  }, {});
@@ -109,7 +109,7 @@ var M = /* @__PURE__ */ e(f()), N = {
109
109
  props: {
110
110
  measure: { field: l },
111
111
  color: l,
112
- start: o ? N.minScaleValue : void 0,
112
+ start: o ? P.minScaleValue : void 0,
113
113
  end: o ? { getValue: H(e, r, s) } : void 0,
114
114
  ...c,
115
115
  ...i
@@ -117,7 +117,7 @@ var M = /* @__PURE__ */ e(f()), N = {
117
117
  };
118
118
  });
119
119
  }, V = (e, t, r) => {
120
- let i = P(e), o = [];
120
+ let i = F(e), o = [];
121
121
  return e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE).forEach((n) => {
122
122
  let s = a(n.dataItem), c = t[0].items[0][s], l = W(e, t, n), u = [];
123
123
  u.push({
@@ -127,7 +127,7 @@ var M = /* @__PURE__ */ e(f()), N = {
127
127
  measure: { field: s },
128
128
  actual: { field: s },
129
129
  color: s,
130
- start: i ? N.minScaleValue : void 0,
130
+ start: i ? P.minScaleValue : void 0,
131
131
  end: i && typeof c == "number" && typeof l == "number" ? U(c, l) : void 0,
132
132
  [s]: { field: s },
133
133
  ...r
@@ -139,8 +139,8 @@ var M = /* @__PURE__ */ e(f()), N = {
139
139
  measure: { field: s },
140
140
  actual: { field: s },
141
141
  color: s,
142
- start: i ? N.minScaleValue : void 0,
143
- end: i ? N.maxScaleValue : void 0,
142
+ start: i ? P.minScaleValue : void 0,
143
+ end: i ? P.maxScaleValue : void 0,
144
144
  background: !0,
145
145
  [s]: { field: s },
146
146
  ...r
@@ -152,44 +152,44 @@ var M = /* @__PURE__ */ e(f()), N = {
152
152
  }, H = (e, t, r) => {
153
153
  let i = e.measures.filter(d), o = i.filter((e) => e.role === n.GAUGE_VALUE), s = i.filter((e) => e.role === n.GAUGE_TARGET), c = o[0], l = s[0];
154
154
  return (n, i, s) => {
155
- if (!s) return N.minScaleValue;
155
+ if (!s) return P.minScaleValue;
156
156
  let u = o.find((e, t) => t === r), d = u && s[a(u.dataItem)];
157
- if (typeof d == "number" && d < 0) return N.minScaleValue;
157
+ if (typeof d == "number" && d < 0) return P.minScaleValue;
158
158
  let f = s[a(c.dataItem)], p;
159
- if (p = e.gaugeSettings?.targetType === y.Data ? s[a(l?.dataItem)] : W(e, t), typeof f != "number" || typeof p != "number") return N.minScaleValue;
160
- if (!F(e) || r === void 0) return U(f, p);
159
+ if (p = e.gaugeSettings?.targetType === y.Data ? s[a(l?.dataItem)] : W(e, t), typeof f != "number" || typeof p != "number") return P.minScaleValue;
160
+ if (!I(e) || r === void 0) return U(f, p);
161
161
  let m = 0, h = 0;
162
162
  return o.forEach((e, t) => {
163
163
  let n = Math.max(0, s[a(e.dataItem)]);
164
164
  m += n, t <= r && (h += n);
165
- }), h / m * N.maxScaleValue;
165
+ }), h / m * P.maxScaleValue;
166
166
  };
167
167
  }, U = (e, t) => {
168
168
  let n = t ? Math.max(0, e) / t : 1;
169
- return Math.min(n, 1) * N.maxScaleValue;
169
+ return Math.min(n, 1) * P.maxScaleValue;
170
170
  }, W = (e, t, r) => {
171
171
  let { targetType: i, targetValue: o } = e.gaugeSettings, s = e.measures.filter(d), c = s.filter((e) => e.role === n.GAUGE_TARGET)[0];
172
- return i === y.Auto ? t[0].items.map((e) => s.map((t) => e[a(t.dataItem)])).reduce((e, t) => Math.max(...t, e), 0) * (1 + D.scale.padding) : c && i === y.Data ? { field: a(c.dataItem) } : r && i === y.PerMeasure ? r.targetValue ?? 0 : i === y.Manual ? o ?? 0 : 0;
172
+ return i === y.Auto ? t[0].items.map((e) => s.map((t) => e[a(t.dataItem)])).reduce((e, t) => Math.max(...t, e), 0) * (1 + k.scale.padding) : c && i === y.Data ? { field: a(c.dataItem) } : r && i === y.PerMeasure ? r.targetValue ?? 0 : i === y.Manual ? o ?? 0 : 0;
173
173
  }, G = /* @__PURE__ */ function(e) {
174
174
  return e.Foreground = "foreground", e.Background = "background", e;
175
- }({}), K = (e, t, n = 0) => `${e}-${t}-${n}`, q = (e) => Math.min(N.maxBarWidthOfRadius, N.outerRadius / e), oe = (e, t, r) => {
175
+ }({}), K = (e, t, n = 0) => `${e}-${t}-${n}`, q = (e) => Math.min(P.maxBarWidthOfRadius, P.outerRadius / e), oe = (e, t, r) => {
176
176
  let i = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE);
177
177
  return (e) => r !== void 0 && e.measure?.source?.field !== a(i[r]?.dataItem) ? !1 : e.background?.value ? t === G.Background : t === G.Foreground;
178
- }, J = (e, t) => !t || e.coloring?.type === r.Single ? !1 : !F(e) || e.coloring?.type === r.Categorical, Y = (e, t, r, i, o, s, c, l) => {
179
- let u = r.dimensions.filter(d)[0], f = new A(r, i, t?.[0]?.itemsNotAffectedByFiltering), p = f.getColorDefinition(J(r, u) ? { ref: f.MAIN_FIELD } : {}), m = (e, t = 0) => !F(r) && t === 1 || s && F(r) ? "transparent" : typeof p == "function" ? p(e) : p, h = q(c), g = Number(r.gaugeSettings?.size), _ = Number(r.gaugeSettings?.startAngle), v = isNaN(g) ? 360 : g ?? 360, b = isNaN(_) ? 0 : _ ?? 0, x = b + v, S = b / 180 * Math.PI, C = x / 180 * Math.PI;
178
+ }, J = (e, t) => !t || e.coloring?.type === r.Single ? !1 : !I(e) || e.coloring?.type === r.Categorical, Y = (e, t, r, i, o, s, c, l) => {
179
+ let u = r.dimensions.filter(d)[0], f = new j(r, i, t?.[0]?.itemsNotAffectedByFiltering), p = f.getColorDefinition(J(r, u) ? { ref: f.MAIN_FIELD } : {}), m = (e, t = 0) => !I(r) && t === 1 || s && I(r) ? "transparent" : typeof p == "function" ? p(e) : p, h = q(c), g = Number(r.gaugeSettings?.size), _ = Number(r.gaugeSettings?.startAngle), v = isNaN(g) ? 360 : g ?? 360, b = isNaN(_) ? 0 : _ ?? 0, x = b + v, S = b / 180 * Math.PI, C = x / 180 * Math.PI;
180
180
  return {
181
- key: K(k.Pie, s ? G.Background : G.Foreground, o),
182
- type: k.Pie,
181
+ key: K(E.Pie, s ? G.Background : G.Foreground, o),
182
+ type: E.Pie,
183
183
  animations: {
184
184
  enabled: !0,
185
185
  presetId: "pie-chart"
186
186
  },
187
187
  data: {
188
- collection: N.gaugeCollectionKey,
188
+ collection: P.gaugeCollectionKey,
189
189
  filter: (t) => {
190
190
  if (!u) {
191
191
  let e = r.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE);
192
- return F(r) || e[o] && t.measure?.source?.field === a(e[o].dataItem);
192
+ return I(r) || e[o] && t.measure?.source?.field === a(e[o].dataItem);
193
193
  }
194
194
  return `${t.value}` == `${e[a(u.dataItem)]}`;
195
195
  }
@@ -199,14 +199,14 @@ var M = /* @__PURE__ */ e(f()), N = {
199
199
  endAngle: C,
200
200
  slice: {
201
201
  cornerRadius: r.gaugeSettings?.cornerRadius ?? 10,
202
- outerRadius: N.outerRadius - o * h,
203
- innerRadius: N.outerRadius - (o + (1 - N.barWidthRadiusPadding)) * h,
202
+ outerRadius: P.outerRadius - o * h,
203
+ innerRadius: P.outerRadius - (o + (1 - P.barWidthRadiusPadding)) * h,
204
204
  fill: m,
205
205
  strokeWidth: .1,
206
- opacity: s ? N.backgroundBarOpacity : 1,
206
+ opacity: s ? P.backgroundBarOpacity : 1,
207
207
  arc: (e, t = 0) => {
208
208
  if (s) return +(t === 0);
209
- if (F(r)) return e.datum.measure.value;
209
+ if (I(r)) return e.datum.measure.value;
210
210
  if ((r.gaugeSettings.targetType ?? y.Auto) !== y.Auto) return t === 0 ? e.datum.actual.value : Number(e.datum.target.value) - Number(e.datum.actual.value);
211
211
  {
212
212
  let n = e.resources.scale("onlyMeasures"), r = Number(n(e.datum.actual.value)) || 0;
@@ -215,17 +215,17 @@ var M = /* @__PURE__ */ e(f()), N = {
215
215
  }
216
216
  }
217
217
  },
218
- brush: w([""], l, { overwriteOpacity: s ? N.backgroundBarOpacity : void 0 })
218
+ brush: T([""], l, { overwriteOpacity: s ? P.backgroundBarOpacity : void 0 })
219
219
  };
220
220
  }, X = (e, t, n, r, s, c) => {
221
- let l = e.dimensions.filter(d)[0], u = new A(e, t, n?.[0]?.itemsNotAffectedByFiltering), f;
222
- f = r === G.Background && e.gaugeSettings?.backgroundBarColor ? e.gaugeSettings?.backgroundBarColor : u.getColorDefinition(J(e, l) ? { ref: u.MAIN_FIELD } : {}, !e.gaugeSettings?.backgroundBarColor && r === G.Background ? N.backgroundBarOpacity : void 0);
223
- let p = l ? a(l.dataItem) : "onlyMeasures", m = !l && !F(e) ? "measureValue" : void 0, h = {
224
- key: K(k.Box, r, s),
225
- type: k.Box,
221
+ let l = e.dimensions.filter(d)[0], u = new j(e, t, n?.[0]?.itemsNotAffectedByFiltering), f;
222
+ f = r === G.Background && e.gaugeSettings?.backgroundBarColor ? e.gaugeSettings?.backgroundBarColor : u.getColorDefinition(J(e, l) ? { ref: u.MAIN_FIELD } : {}, !e.gaugeSettings?.backgroundBarColor && r === G.Background ? P.backgroundBarOpacity : void 0);
223
+ let p = l ? a(l.dataItem) : "onlyMeasures", m = !l && !I(e) ? "measureValue" : void 0, h = {
224
+ key: K(E.Box, r, s),
225
+ type: E.Box,
226
226
  animations: { enabled: !0 },
227
227
  data: {
228
- collection: N.gaugeCollectionKey,
228
+ collection: P.gaugeCollectionKey,
229
229
  filter: oe(e, r, s)
230
230
  },
231
231
  settings: {
@@ -241,7 +241,7 @@ var M = /* @__PURE__ */ e(f()), N = {
241
241
  rx: e.gaugeSettings?.barRadius ?? 0
242
242
  }
243
243
  },
244
- brush: w([""], c, { disable: { triggers: r === G.Foreground } })
244
+ brush: T([""], c, { disable: { triggers: r === G.Foreground } })
245
245
  };
246
246
  if (e.gaugeSettings?.strokeEnabled) {
247
247
  let n = h.settings;
@@ -254,16 +254,16 @@ var M = /* @__PURE__ */ e(f()), N = {
254
254
  }, se = (e, t, n, r, i, a) => {
255
255
  if (!i) return n;
256
256
  let o = [];
257
- return o = P(e) ? Z(e, t, r, i, a) : ce(e, t, r, i, a), {
257
+ return o = F(e) ? Z(e, t, r, i, a) : ce(e, t, r, i, a), {
258
258
  ...n,
259
259
  components: [...n.components, ...o]
260
260
  };
261
261
  }, ce = (e, t, r, i, a) => {
262
262
  let o = e.dimensions.filter(d), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE);
263
- return !o[0] && !F(e) ? s.map((n, r) => [Y(i[0].items[0], i, e, t, r, !0, s.length), Y(i[0].items[0], i, e, t, r, !1, s.length)]).reduce((e, t) => e.concat(t), []) : i[0].items.map((n, r) => [Y(n, i, e, t, r, !0, i[0].items.length, a), Y(n, i, e, t, r, !1, i[0].items.length, a)]).reduce((e, t) => e.concat(t), []);
263
+ return !o[0] && !I(e) ? s.map((n, r) => [Y(i[0].items[0], i, e, t, r, !0, s.length), Y(i[0].items[0], i, e, t, r, !1, s.length)]).reduce((e, t) => e.concat(t), []) : i[0].items.map((n, r) => [Y(n, i, e, t, r, !0, i[0].items.length, a), Y(n, i, e, t, r, !1, i[0].items.length, a)]).reduce((e, t) => e.concat(t), []);
264
264
  }, Z = (e, t, r, i, a) => {
265
265
  let o = e.dimensions.filter(d), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE), c = o[0], l = [];
266
- if (F(e)) for (let n = s.length - 1; n >= 0; n--) l.push(X(e, t, i, G.Foreground, n, a));
266
+ if (I(e)) for (let n = s.length - 1; n >= 0; n--) l.push(X(e, t, i, G.Foreground, n, a));
267
267
  else if (c) l = [X(e, t, i, G.Background, void 0, a), X(e, t, i, G.Foreground, void 0, a)];
268
268
  else for (let n = s.length - 1; n >= 0; n--) l.push(X(e, t, i, G.Background, n)), l.push(X(e, t, i, G.Foreground, n));
269
269
  return l;
@@ -282,10 +282,10 @@ var M = /* @__PURE__ */ e(f()), N = {
282
282
  type: "bar",
283
283
  settings: {
284
284
  direction: a?.orientation === o.Vertical ? "up" : "right",
285
- fontSize: ie(a?.labelFontSize),
285
+ fontSize: A(a?.labelFontSize),
286
286
  fontFamily: t.fonts.general.fontFamily,
287
287
  labels: [{
288
- label: (t) => t.data ? e ? ue(t.data.actual.value, n, t) : `${g(n, t.data?.label)}` : "",
288
+ label: (t) => t.data ? e ? ue(t.data.actual.value, n, t) : `${f(n, t.data?.label)}` : "",
289
289
  placements: e ? [{
290
290
  position: v.Outside,
291
291
  fill: "#000",
@@ -303,11 +303,11 @@ var M = /* @__PURE__ */ e(f()), N = {
303
303
  }
304
304
  };
305
305
  return {
306
- type: k.Labels,
306
+ type: E.Labels,
307
307
  key: `gauge-bar-labels-${r}`,
308
308
  layout: { displayOrder: b.Labels },
309
309
  settings: { sources: [{
310
- component: K(k.Box, G.Foreground, i),
310
+ component: K(E.Box, G.Foreground, i),
311
311
  selector: O.Rect,
312
312
  strategy: c
313
313
  }] },
@@ -316,10 +316,10 @@ var M = /* @__PURE__ */ e(f()), N = {
316
316
  presetId: "chart-labels"
317
317
  }
318
318
  };
319
- }, ue = (e, t, n) => e === null ? "-" : typeof t != "string" && c(t) ? h(t.format, t)(e, void 0, n.data) : `${g(t, e)}`, de = (e, t, n, r) => T(e, t, n, r), fe = (e, t, r, i, a) => {
319
+ }, ue = (e, t, n) => e === null ? "-" : typeof t != "string" && c(t) ? _(t.format, t)(e, void 0, n.data) : `${f(t, e)}`, de = (e, t, n, r) => D(e, t, n, r), fe = (e, t, r, i, a) => {
320
320
  if (!a) return r;
321
- let o = e.dimensions.filter(d), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE), c = o[0], l = P(e), u = F(e), f = l ? k.Box : k.Pie, p = l && !u ? G.Background : G.Foreground, m = ((l || !c ? s : a[0]?.items) || []).map((e, t) => K(f, p, t));
322
- return E(e, t, r, {
321
+ let o = e.dimensions.filter(d), s = e.measures.filter(d).filter((e) => e.role === n.GAUGE_VALUE), c = o[0], l = F(e), u = I(e), f = l ? E.Box : E.Pie, p = l && !u ? G.Background : G.Foreground, m = ((l || !c ? s : a[0]?.items) || []).map((e, t) => K(f, p, t));
322
+ return ne(e, t, r, {
323
323
  filter: (e) => e.filter((e) => m.findIndex((t) => t === e.key) !== -1),
324
324
  placement: {
325
325
  type: l ? "bounds" : "slice",
@@ -340,8 +340,8 @@ var M = /* @__PURE__ */ e(f()), N = {
340
340
  preCompile(e) {
341
341
  if (!(e.measures ?? []).filter(d).filter((e) => e.role === n.GAUGE_VALUE).length) throw Error("Charts w/o measures are not supported ATM.");
342
342
  }
343
- }, me = _(), $ = m(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
344
- let a = p(), [o] = (0, M.useState)(() => new pe());
343
+ }, me = g(), $ = m(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
344
+ let a = p(), [o] = (0, N.useState)(() => new pe());
345
345
  if (!e || !(l(e) || s(e)) || !r) return null;
346
346
  let c = t || u, d = o.compile(e, c, n, r, i, e.type, a);
347
347
  return d ? /* @__PURE__ */ (0, me.jsx)(re, {
@@ -1,16 +1,16 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $i as t, Co as n, Hr as r, Us as i, Xa as a, Xi as o, Yi as s, Zi as c, ds as l, en as u, wo as d, zi as f, zr as p } from "./visualization-filters-Cc4KU-l-.js";
3
- import { An as m, Ei as h, W as g, Xt as _, d as v, fn as y, ri as b, zn as x } from "./utils-vdmi_2PK.js";
4
- import { s as S } from "./coloring-CncX_JRX.js";
5
- import { n as C, r as w, t as T } from "./icon-picker-styles-CoJmwTRi.js";
6
- var E = /* @__PURE__ */ e(h()), D = b(), O = (e) => {
2
+ import { $i as t, Co as n, Hr as r, Us as i, Xa as a, Xi as o, Yi as s, Zi as c, ds as l, jt as u, wo as d, zi as f, zr as p } from "./visualization-filters-mVnsnvLP.js";
3
+ import { Bt as m, Ot as h, W as g, ei as _, f as v, in as y, jr as b, pn as x } from "./utils-DYYD4Zzf.js";
4
+ import { s as S } from "./coloring-B-Wa8D5P.js";
5
+ import { n as C, r as w, t as T } from "./icon-picker-styles-DYQgVEKG.js";
6
+ var E = /* @__PURE__ */ e(_()), D = b(), 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 }) => {
10
10
  let c = T(), l = O(t);
11
11
  return !l && a ? /* @__PURE__ */ (0, D.jsxs)("div", {
12
12
  role: s,
13
- className: m({
13
+ className: y({
14
14
  [c.nullIconWrapper]: !0,
15
15
  [e ?? ""]: !!e
16
16
  }),
@@ -29,7 +29,7 @@ var E = /* @__PURE__ */ e(h()), D = b(), O = (e) => {
29
29
  })]
30
30
  }) : l ? /* @__PURE__ */ (0, D.jsx)("span", {
31
31
  role: s,
32
- className: m({
32
+ className: y({
33
33
  "material-icons": !0,
34
34
  [e ?? ""]: !!e
35
35
  }),
@@ -275,8 +275,8 @@ var E = /* @__PURE__ */ e(h()), D = b(), O = (e) => {
275
275
  }
276
276
  }
277
277
  return c.cleanDOM(), u;
278
- }, $ = _((0, E.memo)(({ vSpec: e, vTheme: t, elementSize: n, data: i, vizProperties: o }) => {
279
- let [s, c] = (0, E.useState)(0), l = W(), u = v(), d = L(e, t, i ?? void 0), { numberValue: f, numberFormat: p, comparisonNumberValue: m, comparisonFormat: h, backgroundColor: g } = d, _ = d.iconPosition ?? a.Left, b = s, x = f === null ? null : s, S = p && x !== null ? y(p, x) : x, C = h && m !== null ? y(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({
278
+ }, $ = h((0, E.memo)(({ vSpec: e, vTheme: t, elementSize: n, data: i, vizProperties: o }) => {
279
+ let [s, c] = (0, E.useState)(0), l = W(), u = v(), d = L(e, t, i ?? void 0), { numberValue: f, numberFormat: p, comparisonNumberValue: h, comparisonFormat: g, backgroundColor: _ } = d, y = d.iconPosition ?? a.Left, b = s, x = f === null ? null : s, 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 ? d.numberStyle.fontSize || 14 : ie({
280
280
  number: T,
281
281
  comparisonNumber: O
282
282
  }, d, n);
@@ -293,26 +293,26 @@ var E = /* @__PURE__ */ e(h()), D = b(), O = (e) => {
293
293
  fontSize: `${A}px`,
294
294
  alignItems: G(d.verticalAlign),
295
295
  justifyContent: G(d.horizontalAlign),
296
- backgroundColor: g
296
+ backgroundColor: _
297
297
  },
298
298
  children: /* @__PURE__ */ (0, D.jsxs)("div", {
299
299
  className: l.numbersContainer,
300
300
  style: {
301
301
  alignItems: K(d),
302
- flexDirection: X(d.comparisonPosition ?? _),
302
+ flexDirection: X(d.comparisonPosition ?? y),
303
303
  ...ee(d.comparisonGap, d.comparisonPosition)
304
304
  },
305
305
  children: [/* @__PURE__ */ (0, D.jsxs)("div", {
306
306
  className: l.comparisonIconContainer,
307
307
  style: {
308
308
  alignItems: G(d.textAlign),
309
- flexDirection: X(_)
309
+ flexDirection: X(y)
310
310
  },
311
311
  children: [/* @__PURE__ */ (0, D.jsx)(k, {
312
312
  name: d.icon ?? "",
313
313
  testId: "indicator-icon",
314
314
  style: {
315
- fontSize: te(d.comparisonPosition, _),
315
+ fontSize: te(d.comparisonPosition, y),
316
316
  color: d.iconColor ?? "inherit"
317
317
  }
318
318
  }), /* @__PURE__ */ (0, D.jsx)("div", {
@@ -337,7 +337,7 @@ var E = /* @__PURE__ */ e(h()), D = b(), O = (e) => {
337
337
  textDecoration: Z(d.numberStyle.underlined ?? !1, d.numberStyle.strikethrough ?? !1),
338
338
  color: d.numberColor
339
339
  },
340
- children: p && typeof x == "number" ? y(p, x) : x
340
+ children: p && typeof x == "number" ? m(p, x) : x
341
341
  })]
342
342
  })
343
343
  });