@astrato-io/visualizations 0.10.0 → 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 (138) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/README.md +22 -4
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +59 -145
  5. package/chunks/{Button-CCF851ea.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-C-p4ZarD.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-CFmH6gUN.js} +11 -11
  12. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-BkhO7sDd.js} +55 -53
  15. package/chunks/{builder-CScg1TOS.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-9jU3s_-p.js → coloring-BOiP0rmn.js} +54 -54
  18. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-C4grxhye.js → definitions-AS9GcavE.js} +263 -242
  21. package/chunks/{escobar-CjirINHP.js → escobar-cQ1eQ64G.js} +8528 -8461
  22. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-BlCbcXKR.js} +421 -421
  23. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CI7dDNM1.js} +12 -12
  24. package/chunks/{filtering-C1zakrrX.js → filtering-Dwi7hDPZ.js} +263 -263
  25. package/chunks/handlers-C63NVo7i.js +15433 -0
  26. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-Ch9OEye3.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-CgMP0qkR.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-CKRjhSHQ.js → logger-Bc-DqDM_.js} +72 -72
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-CRO6XpdI.js} +43 -45
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-Bb9pTXrq.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DZoY50VX.js → operations-COl9wgqi.js} +9893 -9831
  38. package/chunks/{range-D1BTmFMp.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-NHNrR8Ie.js → requirements-C5YLmHKe.js} +251 -227
  42. package/chunks/{shared-UitWpq1J.js → shared-DyqxOie0.js} +290 -278
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-DtBk_iUz.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/standalone-Bp4G3MDx.js +396 -0
  49. package/chunks/{standalone-CbPk8bKn.js → standalone-BrjtMIdd.js} +132 -132
  50. package/chunks/{standalone-BOzHA_d4.js → standalone-Bsfz5vnJ.js} +57 -57
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CS5VGoja.js} +358 -358
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-BapqaniK.js → standalone-ChfEHb28.js} +2299 -1072
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-D9k5SCd8.js} +165 -165
  59. package/chunks/{standalone-CRdDZYeM.js → standalone-DYVYccmY.js} +855 -855
  60. package/chunks/{standalone-CVknVdUC.js → standalone-DaNxWIKn.js} +27 -27
  61. package/chunks/{standalone-swGs70tD.js → standalone-Db_HNuWx.js} +50 -50
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-U0WJwFlG.js → standalone-I5kRIsp8.js} +97 -97
  64. package/chunks/{standalone-BBu90BhK.js → standalone-K2OvRAQM.js} +125 -125
  65. package/chunks/{standalone-DCFY1MAV.js → standalone-c4CPN6ug.js} +4634 -4633
  66. package/chunks/{standalone-ByKKqT5L.js → standalone-iOnJhCvA.js} +302 -302
  67. package/chunks/standalone-pCrzBiTy.js +773 -0
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-CMH_dtYs.js} +29 -29
  71. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-3Igg6xmO.js → utils-BdJrEeIQ.js} +4037 -4015
  73. package/chunks/{view-DdMLZySj.js → view-Q-_XIrWE.js} +1615 -1615
  74. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-BwS0xUqs.js} +1723 -1693
  75. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-D_ooGNWI.js} +4006 -3994
  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 +48 -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 +528 -504
  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 -1
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +34 -53
  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/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  119. package/src/types.d.ts +28 -28
  120. package/src/visualization-catalog.d.ts +3 -0
  121. package/styles.css +1 -1
  122. package/chunks/FieldTypeIcon-D_MzsdfY.js +0 -22
  123. package/chunks/defaults-cyNhn37t.js +0 -3
  124. package/chunks/handlers-ZviIUC-j.js +0 -15387
  125. package/chunks/line.compiler-De5fiKuR.js +0 -198
  126. package/chunks/number.compiler-CaTmJkmi.js +0 -53
  127. package/chunks/standalone-BEekPuA12.js +0 -357
  128. package/chunks/standalone-BR2JuRIC.js +0 -422
  129. package/chunks/standalone-BwJqDj2Z.js +0 -396
  130. package/chunks/standalone-CRfDOO1x.js +0 -287
  131. package/chunks/standalone-DZDGX3aa.js +0 -518
  132. package/chunks/standalone-DhfgeJIk.js +0 -1012
  133. package/chunks/standalone-DibjA73M.js +0 -6
  134. package/chunks/standalone-DxBAyqAu.js +0 -772
  135. package/chunks/standalone-KMQPsNsq.js +0 -2
  136. package/chunks/standalone-MBLSvsrY.js +0 -2
  137. package/chunks/standalone-wgFAVnnm.js +0 -355
  138. package/chunks/standalone-xGV0dqPV.js +0 -689
@@ -1,8 +1,8 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $ as t, G as n, Z as r, ci as i, it as a, nt as o, zr as s } from "./utils-3Igg6xmO.js";
3
- import { _ as c, c as l, d as u, i as d, l as f, m as p, o as m, r as h, s as g, t as _, u as v, v as y } from "./react-dom-Dgv2azN2.js";
4
- import { a as b, c as x, d as S, l as C, n as w, o as T, r as E, t as D, u as O } from "./isFocusVisible-CgMP0qkR.js";
5
- var k = /* @__PURE__ */ e(i(), 1), A = s(), j = S;
2
+ import { Br as t, K as n, Q as r, at as i, et as a, li as o, rt as s } from "./utils-BdJrEeIQ.js";
3
+ import { _ as c, c as l, d as u, i as d, l as f, m as p, o as m, r as h, s as g, t as _, u as v, v as y } from "./react-dom-BjsCbYHq.js";
4
+ import { a as b, c as x, d as S, l as C, n as w, o as T, r as E, t as D, u as O } from "./isFocusVisible-C1nlVUwL.js";
5
+ var k = /* @__PURE__ */ e(o(), 1), A = t(), j = S;
6
6
  function M(e, t) {
7
7
  typeof e == "function" ? e(t) : e && (e.current = t);
8
8
  }
@@ -13,7 +13,7 @@ function L(e, t) {
13
13
  }
14
14
  function ee(e) {
15
15
  let t = L(() => R(e)).current;
16
- return t.next = e, o(t.effect), t;
16
+ return t.next = e, s(t.effect), t;
17
17
  }
18
18
  function R(e) {
19
19
  let t = {
@@ -50,7 +50,7 @@ function re(e) {
50
50
  return e.currentStatus === "entering" ? e.isAppearing ? t.appear ?? t.enter ?? null : t.enter ?? null : t.exit ?? null;
51
51
  }
52
52
  function z(e) {
53
- let { in: t = !1, appear: n = !1, enter: r = !0, exit: i = !0, mountOnEnter: a = !1, unmountOnExit: s = !1, timeout: c, addEndListener: l, reduceMotion: u = !1, getAutoTimeout: d, nodeRef: f, onEnter: p, onEntering: m, onEntered: h, onExit: _, onExiting: v, onExited: y, children: b, ...x } = e, S = k.useContext(te), C = S && !S.isMounting ? r : n, [w, T] = k.useState(() => t ? C ? "exited" : "entered" : a || s ? "unmounted" : "exited"), E = k.useRef(w);
53
+ let { in: t = !1, appear: n = !1, enter: r = !0, exit: i = !0, mountOnEnter: a = !1, unmountOnExit: o = !1, timeout: c, addEndListener: l, reduceMotion: u = !1, getAutoTimeout: d, nodeRef: f, onEnter: p, onEntering: m, onEntered: h, onExit: _, onExiting: v, onExited: y, children: b, ...x } = e, S = k.useContext(te), C = S && !S.isMounting ? r : n, [w, T] = k.useState(() => t ? C ? "exited" : "entered" : a || o ? "unmounted" : "exited"), E = k.useRef(w);
54
54
  E.current = w, t && w === "unmounted" && (E.current = "exited", T("exited"));
55
55
  let D = k.useRef(t && C), O = k.useRef(!1), j = k.useRef(null), M = k.useRef(w), N = k.useRef(!1), P = k.useRef(u), F = ee({
56
56
  timeout: c,
@@ -66,7 +66,7 @@ function z(e) {
66
66
  enter: r,
67
67
  exit: i,
68
68
  mountOnEnter: a,
69
- unmountOnExit: s,
69
+ unmountOnExit: o,
70
70
  nodeRef: f,
71
71
  parentGroup: S
72
72
  }), I = k.useCallback(() => {
@@ -133,18 +133,18 @@ function z(e) {
133
133
  z,
134
134
  F
135
135
  ]);
136
- return o(() => (O.current = !0, D.current && (D.current = !1, B(!0, "entering")), () => {
136
+ return s(() => (O.current = !0, D.current && (D.current = !1, B(!0, "entering")), () => {
137
137
  O.current = !1, I();
138
- }), [I, B]), o(() => {
138
+ }), [I, B]), s(() => {
139
139
  if (!O.current) return;
140
140
  let e = E.current;
141
- t ? e !== "entering" && e !== "entered" && B(!1, "entering") : e === "entering" || e === "entered" ? B(!1, "exiting") : e === "exited" && s && (E.current = "unmounted", T("unmounted"));
141
+ t ? e !== "entering" && e !== "entered" && B(!1, "entering") : e === "entering" || e === "entered" ? B(!1, "exiting") : e === "exited" && o && (E.current = "unmounted", T("unmounted"));
142
142
  }, [
143
143
  t,
144
144
  w,
145
- s,
145
+ o,
146
146
  B
147
- ]), o(() => {
147
+ ]), s(() => {
148
148
  if (w === "unmounted" || M.current === "unmounted") {
149
149
  M.current = w;
150
150
  return;
@@ -168,7 +168,7 @@ function ue(e) {
168
168
  enabled: e,
169
169
  matches: e ? null : !1
170
170
  })), r = t.matches;
171
- return t.enabled !== e && (r = null, e || (r = !1)), o(() => {
171
+ return t.enabled !== e && (r = null, e || (r = !1)), s(() => {
172
172
  let r = (t) => {
173
173
  n((n) => n.enabled === e && n.matches === t ? n : {
174
174
  enabled: e,
@@ -1122,10 +1122,10 @@ function an(e) {
1122
1122
  return typeof e == "function" ? e() : e;
1123
1123
  }
1124
1124
  var on = /*#__PURE__*/ k.forwardRef(function(e, t) {
1125
- let { children: n, container: r, disablePortal: i = !1 } = e, [a, s] = k.useState(null), c = S(/*#__PURE__*/ k.isValidElement(n) ? nn(n) : null, t);
1126
- if (o(() => {
1127
- i || s(an(r) || document.body);
1128
- }, [r, i]), o(() => {
1125
+ let { children: n, container: r, disablePortal: i = !1 } = e, [a, o] = k.useState(null), c = S(/*#__PURE__*/ k.isValidElement(n) ? nn(n) : null, t);
1126
+ if (s(() => {
1127
+ i || o(an(r) || document.body);
1128
+ }, [r, i]), s(() => {
1129
1129
  if (a && !i) return M(t, a), () => {
1130
1130
  M(t, null);
1131
1131
  };
@@ -1166,14 +1166,14 @@ var dn = (e) => {
1166
1166
  let { classes: t } = e;
1167
1167
  return p({ root: ["root"] }, sn, t);
1168
1168
  }, fn = {}, pn = /*#__PURE__*/ k.forwardRef(function(e, t) {
1169
- let { anchorEl: n, children: r, direction: i, disablePortal: a, modifiers: s, open: c, placement: l, popperOptions: u, popperRef: d, slotProps: f = {}, slots: p = {}, TransitionProps: m, ownerState: h, ...g } = e, _ = k.useRef(null), v = S(_, t), y = k.useRef(null), b = S(y, d), x = k.useRef(b);
1170
- o(() => {
1169
+ let { anchorEl: n, children: r, direction: i, disablePortal: a, modifiers: o, open: c, placement: l, popperOptions: u, popperRef: d, slotProps: f = {}, slots: p = {}, TransitionProps: m, ownerState: h, ...g } = e, _ = k.useRef(null), v = S(_, t), y = k.useRef(null), b = S(y, d), x = k.useRef(b);
1170
+ s(() => {
1171
1171
  x.current = b;
1172
1172
  }, [b]), k.useImperativeHandle(d, () => y.current, []);
1173
1173
  let C = cn(l, i), [w, T] = k.useState(C), E = k.useMemo(() => ln(n), [n]);
1174
1174
  k.useEffect(() => {
1175
1175
  y.current && y.current.forceUpdate();
1176
- }), o(() => {
1176
+ }), s(() => {
1177
1177
  if (!E || !c) return;
1178
1178
  let e = (e) => {
1179
1179
  T(e.placement);
@@ -1195,7 +1195,7 @@ var dn = (e) => {
1195
1195
  }
1196
1196
  }
1197
1197
  ];
1198
- s != null && (t = t.concat(s)), u && u.modifiers != null && (t = t.concat(u.modifiers));
1198
+ o != null && (t = t.concat(o)), u && u.modifiers != null && (t = t.concat(u.modifiers));
1199
1199
  let n = en(E, _.current, {
1200
1200
  placement: C,
1201
1201
  ...u,
@@ -1213,7 +1213,7 @@ var dn = (e) => {
1213
1213
  }, [
1214
1214
  E,
1215
1215
  a,
1216
- s,
1216
+ o,
1217
1217
  c,
1218
1218
  u,
1219
1219
  C
@@ -1283,12 +1283,12 @@ var dn = (e) => {
1283
1283
  }), {
1284
1284
  name: "MuiPopper",
1285
1285
  slot: "Root"
1286
- })({}), hn = /*#__PURE__*/ k.forwardRef(function(e, n) {
1287
- let r = t(), { anchorEl: i, component: a, container: o, disablePortal: s, keepMounted: c, modifiers: l, open: u, placement: d, popperOptions: p, popperRef: m, transition: h, slots: g, slotProps: _, ...v } = f({
1286
+ })({}), hn = /*#__PURE__*/ k.forwardRef(function(e, t) {
1287
+ let n = a(), { anchorEl: r, component: i, container: o, disablePortal: s, keepMounted: c, modifiers: l, open: u, placement: d, popperOptions: p, popperRef: m, transition: h, slots: g, slotProps: _, ...v } = f({
1288
1288
  props: e,
1289
1289
  name: "MuiPopper"
1290
1290
  }), y = {
1291
- anchorEl: i,
1291
+ anchorEl: r,
1292
1292
  container: o,
1293
1293
  disablePortal: s,
1294
1294
  keepMounted: c,
@@ -1301,12 +1301,12 @@ var dn = (e) => {
1301
1301
  ...v
1302
1302
  };
1303
1303
  return /*#__PURE__*/ (0, A.jsx)(mn, {
1304
- as: a,
1305
- direction: r ? "rtl" : "ltr",
1304
+ as: i,
1305
+ direction: n ? "rtl" : "ltr",
1306
1306
  slots: g,
1307
1307
  slotProps: _,
1308
1308
  ...y,
1309
- ref: n
1309
+ ref: t
1310
1310
  });
1311
1311
  });
1312
1312
  function gn(e) {
@@ -1586,7 +1586,7 @@ var An = /*#__PURE__*/ k.forwardRef(function(e, t) {
1586
1586
  let r = f({
1587
1587
  props: e,
1588
1588
  name: "MuiTooltip"
1589
- }), { arrow: i = !1, children: o, classes: s, describeChild: c = !1, disableFocusListener: l = !1, disableHoverListener: u = !1, disableInteractive: d = !1, disableTouchListener: p = !1, enterDelay: m = 100, enterNextDelay: h = 0, enterTouchDelay: g = 700, followCursor: _ = !1, id: v, leaveDelay: y = 0, leaveTouchDelay: b = 1500, onClose: x, onOpen: S, open: C, placement: T = "bottom", slotProps: E = {}, slots: O = {}, title: M, ...I } = r, L = /*#__PURE__*/ k.isValidElement(o) ? o : /*#__PURE__*/ (0, A.jsx)("span", { children: o }), ee = n(), [R, te] = k.useState(), [ne, re] = k.useState(null), z = k.useRef(!1), B = k.useRef(!1), ie = d || _, ae = me(), oe = me(), se = me(), ce = me(), [le, ue] = P({
1589
+ }), { arrow: a = !1, children: o, classes: s, describeChild: c = !1, disableFocusListener: l = !1, disableHoverListener: u = !1, disableInteractive: d = !1, disableTouchListener: p = !1, enterDelay: m = 100, enterNextDelay: h = 0, enterTouchDelay: g = 700, followCursor: _ = !1, id: v, leaveDelay: y = 0, leaveTouchDelay: b = 1500, onClose: x, onOpen: S, open: C, placement: T = "bottom", slotProps: E = {}, slots: O = {}, title: M, ...I } = r, L = /*#__PURE__*/ k.isValidElement(o) ? o : /*#__PURE__*/ (0, A.jsx)("span", { children: o }), ee = n(), [R, te] = k.useState(), [ne, re] = k.useState(null), z = k.useRef(!1), B = k.useRef(!1), ie = d || _, ae = me(), oe = me(), se = me(), ce = me(), [le, ue] = P({
1590
1590
  controlled: C,
1591
1591
  default: !1,
1592
1592
  name: "Tooltip",
@@ -1669,7 +1669,7 @@ var An = /*#__PURE__*/ k.forwardRef(function(e, t) {
1669
1669
  ...J,
1670
1670
  ...I,
1671
1671
  ...L.props,
1672
- className: a(I.className, L.props.className),
1672
+ className: i(I.className, L.props.className),
1673
1673
  onTouchStart: ye,
1674
1674
  ref: Se,
1675
1675
  ..._ ? { onMouseMove: we } : {}
@@ -1677,7 +1677,7 @@ var An = /*#__PURE__*/ k.forwardRef(function(e, t) {
1677
1677
  p || (X.onTouchStart = be, X.onTouchEnd = xe), u || (X.onMouseOver = kn(K, X.onMouseOver), X.onMouseLeave = kn(he, X.onMouseLeave), ie || (Z.onMouseOver = q, Z.onMouseLeave = he)), l || (X.onFocus = kn(ve, X.onFocus), X.onBlur = kn(_e, X.onBlur), ie || (Z.onFocus = ve, Z.onBlur = _e));
1678
1678
  let Te = {
1679
1679
  ...r,
1680
- arrow: i,
1680
+ arrow: a,
1681
1681
  disableInteractive: ie,
1682
1682
  open: V,
1683
1683
  placement: T,
@@ -1748,7 +1748,7 @@ var An = /*#__PURE__*/ k.forwardRef(function(e, t) {
1748
1748
  ...Me,
1749
1749
  children: /*#__PURE__*/ (0, A.jsxs)(Ne, {
1750
1750
  ...Pe,
1751
- children: [M, i ? /*#__PURE__*/ (0, A.jsx)(Fe, { ...Ie }) : null]
1751
+ children: [M, a ? /*#__PURE__*/ (0, A.jsx)(Fe, { ...Ie }) : null]
1752
1752
  })
1753
1753
  })
1754
1754
  })] });
@@ -1,19 +1,19 @@
1
1
  import { t as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { M as t, Tr as n, _a as r, fa as i, fr as a } from "./visualization-filters-CzvFHE6M.js";
3
- var o = /* @__PURE__ */ e(((e, r) => {
4
- var i = t(), a = n();
2
+ import { Ar as t, Ca as n, M as r, _r as i, va as a } from "./visualization-filters-BwS0xUqs.js";
3
+ var o = /* @__PURE__ */ e(((e, n) => {
4
+ var i = r(), a = t();
5
5
  function o(e, t) {
6
6
  return e && i(e, t, a);
7
7
  }
8
- r.exports = o;
8
+ n.exports = o;
9
9
  })), s = /* @__PURE__ */ e(((e, t) => {
10
- var n = r();
10
+ var r = n();
11
11
  function i(e, t) {
12
- return function(r, i) {
13
- if (r == null) return r;
14
- if (!n(r)) return e(r, i);
15
- for (var a = r.length, o = t ? a : -1, s = Object(r); (t ? o-- : ++o < a) && i(s[o], o, s) !== !1;);
16
- return r;
12
+ return function(n, i) {
13
+ if (n == null) return n;
14
+ if (!r(n)) return e(n, i);
15
+ for (var a = n.length, o = t ? a : -1, s = Object(n); (t ? o-- : ++o < a) && i(s[o], o, s) !== !1;);
16
+ return n;
17
17
  };
18
18
  }
19
19
  t.exports = i;
@@ -38,7 +38,7 @@ var o = /* @__PURE__ */ e(((e, r) => {
38
38
  }
39
39
  t.exports = r;
40
40
  })), d = /* @__PURE__ */ e(((e, t) => {
41
- var n = l(), r = u(), o = a(), s = i();
41
+ var n = l(), r = u(), o = i(), s = a();
42
42
  function c(e, t) {
43
43
  return function(i, a) {
44
44
  var c = s(i) ? n : r, l = t ? t() : {};
@@ -1,6 +1,6 @@
1
- import { T as e, ct as t, d as n, g as r, h as i, u as a, v as o } from "./shared-UitWpq1J.js";
2
- import { Ap as s, eh as c } from "./handlers-ZviIUC-j.js";
3
- import { m as l } from "./operations-DZoY50VX.js";
1
+ import { T as e, d as t, g as n, h as r, lt as i, u as a, v as o } from "./shared-DyqxOie0.js";
2
+ import { Np as s, rh as c } from "./handlers-C63NVo7i.js";
3
+ import { m as l } from "./operations-COl9wgqi.js";
4
4
  var u = async (u) => {
5
5
  let d = s(u);
6
6
  if (d) return {
@@ -11,19 +11,19 @@ var u = async (u) => {
11
11
  }],
12
12
  success: !1
13
13
  };
14
- let f = t.safeParse(u.definition);
14
+ let f = i.safeParse(u.definition);
15
15
  if (!f.success) return {
16
16
  issues: e(f.error, u.definition),
17
17
  success: !1
18
18
  };
19
19
  let p = c.safeParse(u.baseVSpec);
20
20
  if (!p.success) return {
21
- issues: [n("invalid_structure", ["baseVSpec"], "Base app filter bar vSpec is invalid.")],
21
+ issues: [t("invalid_structure", ["baseVSpec"], "Base app filter bar vSpec is invalid.")],
22
22
  success: !1
23
23
  };
24
24
  let m = p.data;
25
25
  if (!o(m, [])) return {
26
- issues: [n("non_fresh_base_vspec", ["baseVSpec"], "App filter bar definitions require a fresh base vSpec.")],
26
+ issues: [t("non_fresh_base_vspec", ["baseVSpec"], "App filter bar definitions require a fresh base vSpec.")],
27
27
  success: !1
28
28
  };
29
29
  let h = f.data.settings ?? {}, g = [
@@ -55,10 +55,10 @@ var u = async (u) => {
55
55
  name: l.SET_SELECTABLE_FIELD_KEYS,
56
56
  payload: h.selectableFieldKeys
57
57
  }]
58
- ], _ = await i(a(u, m), g, ["settings"]);
58
+ ], _ = await r(a(u, m), g, ["settings"]);
59
59
  return "issue" in _ ? {
60
60
  issues: [_.issue],
61
61
  success: !1
62
- } : r(_.state, c);
62
+ } : n(_.state, c);
63
63
  };
64
64
  export { u as compileAppFilterBarVisualizationDefinition };
@@ -1,5 +1,5 @@
1
- import { _s as e } from "./visualization-filters-CzvFHE6M.js";
2
- import "./shared-UitWpq1J.js";
1
+ import { Ts as e } from "./visualization-filters-BwS0xUqs.js";
2
+ import "./shared-DyqxOie0.js";
3
3
  var t = (e) => e.presentation?.layout !== void 0 && e.data.dimensions.length === 1 && e.data.measures.length === 1, n = (e) => {
4
4
  let { grouped: t, offset: n, pyramid: r, stacked: i } = e.barSettings ?? {};
5
5
  return !!(t || i || r || n?.enabled);
@@ -1,10 +1,12 @@
1
- import { Oo as e, r as t } from "./visualization-filters-CzvFHE6M.js";
2
- import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, k as m, l as h, m as g, n as _, ot as v } from "./shared-UitWpq1J.js";
3
- import { Ap as y, Bm as b } from "./handlers-ZviIUC-j.js";
4
- import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-DZoY50VX.js";
5
- import { t as D } from "./bar-layout-DStC-GNV.js";
1
+ import { Io as e, r as t } from "./visualization-filters-BwS0xUqs.js";
2
+ import { A as n, D as r, O as i, P as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, j as m, l as h, m as g, n as _, st as v } from "./shared-DyqxOie0.js";
3
+ import { Np as y, Um as b } from "./handlers-C63NVo7i.js";
4
+ import { T as x, _ as S, t as C, u as w, x as T, y as E } from "./operations-COl9wgqi.js";
5
+ import { t as D } from "./bar-layout-BNou0dZF.js";
6
+ import { t as O } from "./category-axis-D1OVyMrr.js";
7
+ import { n as k } from "./measure-format-default-B6ghxih7.js";
6
8
  t();
7
- var O = (e) => {
9
+ var A = (e) => {
8
10
  let t = [...e.data.dimensions.map((e, t) => ({
9
11
  item: e,
10
12
  path: [
@@ -37,30 +39,30 @@ var O = (e) => {
37
39
  "topN",
38
40
  "by"
39
41
  ], `Measure reference "${s}" does not exist.`, { allowedValues: e.data.measures.map((e) => e.ref) })), a;
40
- }, k = (e) => {
42
+ }, j = (e) => {
41
43
  if (e.type !== "bar") return d("unsupported_visualization", ["baseVSpec", "type"], `Definition type "bar" cannot compile against base vSpec type "${e.type}".`);
42
44
  let t = e;
43
45
  return t.dimensions.length > 0 || t.measures.length > 0 || (t.supportingMeasures?.length ?? 0) > 0 || Object.keys(t.referencedData).length > 0 ? d("non_fresh_base_vspec", ["baseVSpec"], "Bar visualization definitions can only compile against a fresh base vSpec.") : void 0;
44
- }, A = {
46
+ }, M = {
45
47
  formatString: "setDimensionFormatString",
46
48
  formatType: "setDimensionFormatType"
47
- }, j = {
49
+ }, N = {
48
50
  currency: "setMeasureCurrency",
49
51
  currencyIsPrefix: "setMeasureCurrencyIsPrefix",
50
52
  formatString: "setMeasureFormatString",
51
53
  formatType: "setMeasureFormatType",
52
54
  negativeType: "setMeasureNegativeType"
53
- }, M = {
55
+ }, P = {
54
56
  inside: 1,
55
57
  opposite: 0,
56
58
  outside: 0
57
- }, N = (e) => {
59
+ }, F = (e) => {
58
60
  let t = Object.entries(e).find(([, e]) => e.success === !1);
59
61
  return t ? {
60
62
  id: t[0],
61
63
  result: t[1]
62
64
  } : void 0;
63
- }, P = (e, t) => {
65
+ }, I = (e, t) => {
64
66
  if (!e || typeof e.data != "object" || e.data === null || !("dataItem" in e.data)) return;
65
67
  let n = e.data.dataItem;
66
68
  if (!(typeof n != "object" || !n || !("internalKey" in n) || typeof n.internalKey != "string" || !("uniqueSignature" in n) || typeof n.uniqueSignature != "string")) return {
@@ -68,14 +70,14 @@ var O = (e) => {
68
70
  dataItemUniqueSignature: n.uniqueSignature,
69
71
  kind: t
70
72
  };
71
- }, F = async (e, t) => {
73
+ }, L = async (e, t) => {
72
74
  let n = e;
73
75
  for (let [e, r] of t.data.dimensions.entries()) {
74
76
  let t = `dimension:${r.ref}`, i = await C(n.vSpec, n.availableFields, [{
75
77
  id: t,
76
78
  name: w.ADD_DIMENSION,
77
79
  payload: { key: r.fieldKey }
78
- }], n.input.variables ?? [], [], n.input.theme), a = N(i.results), o = P(i.results[t], "dimension");
80
+ }], n.input.variables ?? [], [], n.input.theme), a = F(i.results), o = I(i.results[t], "dimension");
79
81
  if (a || !o) return {
80
82
  issue: d("operation_failed", [
81
83
  "data",
@@ -94,11 +96,11 @@ var O = (e) => {
94
96
  };
95
97
  }
96
98
  for (let [a, o] of t.data.measures.entries()) {
97
- let t = r(o, e.input.availableFields), s = `measure:${o.ref}`, c = await C(n.vSpec, n.availableFields, [{
99
+ let t = i(o, e.input.availableFields), s = `measure:${o.ref}`, c = await C(n.vSpec, n.availableFields, [{
98
100
  id: s,
99
101
  name: w.ADD_MEASURE,
100
- payload: i(o, e.input.availableFields)
101
- }], n.input.variables ?? [], [], n.input.theme), l = N(c.results), u = P(c.results[s], "measure");
102
+ payload: r(o, e.input.availableFields)
103
+ }], n.input.variables ?? [], [], n.input.theme), l = F(c.results), u = I(c.results[s], "measure");
102
104
  if (l || !u) return {
103
105
  issue: d("operation_failed", [
104
106
  "data",
@@ -124,28 +126,28 @@ var O = (e) => {
124
126
  state: n,
125
127
  success: !0
126
128
  };
127
- }, I = (e) => ({
129
+ }, R = (e) => ({
128
130
  dataItemInternalKey: e.dataItemInternalKey,
129
131
  dataItemUniqueSignature: e.dataItemUniqueSignature
130
- }), L = async (e, t) => {
132
+ }), z = async (e, t) => {
131
133
  let n = [];
132
134
  return t.data.dimensions.forEach((t, r) => {
133
135
  let i = e.resolvedRefs[t.ref];
134
136
  t.showNullValues !== void 0 && n.push({
135
137
  name: w.UPDATE_DIMENSION,
136
138
  payload: {
137
- ...I(i),
139
+ ...R(i),
138
140
  changes: { showNullValues: t.showNullValues }
139
141
  }
140
142
  }), t.temporalGrouping && n.push(g("setDimensionTemporalGrouping", i, t.ref, [
141
143
  "data",
142
144
  "dimensions",
143
145
  r
144
- ], t.temporalGrouping)), t.format?.formatType !== void 0 && n.push(h(A.formatType, i, t.ref, [
146
+ ], t.temporalGrouping)), t.format?.formatType !== void 0 && n.push(h(M.formatType, i, t.ref, [
145
147
  "data",
146
148
  "dimensions",
147
149
  r
148
- ], "formatType", t.format.formatType)), t.format?.formatString !== void 0 && n.push(h(A.formatString, i, t.ref, [
150
+ ], "formatType", t.format.formatType)), t.format?.formatString !== void 0 && n.push(h(M.formatString, i, t.ref, [
149
151
  "data",
150
152
  "dimensions",
151
153
  r
@@ -160,45 +162,45 @@ var O = (e) => {
160
162
  "negativeType"
161
163
  ].forEach((e) => {
162
164
  let a = t.format?.[e];
163
- a !== void 0 && n.push(h(j[e], i, t.ref, [
165
+ a !== void 0 && n.push(h(N[e], i, t.ref, [
164
166
  "data",
165
167
  "measures",
166
168
  r
167
169
  ], e, a));
168
170
  }), t.dataLabels && n.push({
169
- name: E.SET_MEASURE_DATA_LABELS_SHOW,
171
+ name: x.SET_MEASURE_DATA_LABELS_SHOW,
170
172
  payload: {
171
- ...I(i),
173
+ ...R(i),
172
174
  show: t.dataLabels.visible
173
175
  }
174
176
  }), t.dataLabels?.placements && n.push({
175
- name: E.SET_MEASURE_DATA_LABEL_BAR_PLACEMENTS,
177
+ name: x.SET_MEASURE_DATA_LABEL_BAR_PLACEMENTS,
176
178
  payload: {
177
- ...I(i),
179
+ ...R(i),
178
180
  placements: t.dataLabels.placements.map((e) => ({
179
181
  position: e,
180
- justify: M[e]
182
+ justify: P[e]
181
183
  }))
182
184
  }
183
185
  }), t.dataLabels?.textColor && n.push({
184
- name: E.SET_MEASURE_DATA_LABEL_TEXT_COLOR,
186
+ name: x.SET_MEASURE_DATA_LABEL_TEXT_COLOR,
185
187
  payload: {
186
- ...I(i),
188
+ ...R(i),
187
189
  textColor: t.dataLabels.textColor
188
190
  }
189
191
  }), t.axis && n.push({
190
- name: x.CHANGE_MEASURE_AXIS,
192
+ name: S.CHANGE_MEASURE_AXIS,
191
193
  payload: {
192
- ...I(i),
194
+ ...R(i),
193
195
  secondaryAxis: t.axis === "secondary"
194
196
  }
195
197
  });
196
- }), p(e, n, ["data"]);
197
- }, R = (e, t) => p(e, t.filterGroup ? [{
198
+ }), n.push(...k(e, t.data.measures, ["data", "measures"])), p(e, n, ["data"]);
199
+ }, B = (e, t) => p(e, t.filterGroup ? [{
198
200
  id: "filterGroup",
199
201
  name: "setStaticFilterGroup",
200
202
  payload: l(t.filterGroup)
201
- }] : [], ["filterGroup"]), z = async (t, n) => {
203
+ }] : [], ["filterGroup"]), V = async (t, n) => {
202
204
  if (!n.sorting?.length) return {
203
205
  state: t,
204
206
  success: !0
@@ -210,7 +212,7 @@ var O = (e) => {
210
212
  }))].map((t, n) => {
211
213
  let r = a.get(`${t.dataItemInternalKey}:${t.dataItemUniqueSignature}`), s = o.find((e) => e.dataItem.internalKey === t.dataItemInternalKey && e.dataItem.uniqueSignature === t.dataItemUniqueSignature);
212
214
  return {
213
- ...I(t),
215
+ ...R(t),
214
216
  newIndex: n,
215
217
  sortDirection: (r ? i.get(r)?.direction : void 0) ?? s?.sortDirection ?? e.Asc
216
218
  };
@@ -222,12 +224,12 @@ var O = (e) => {
222
224
  let d = n.sorting.map((e) => ({
223
225
  name: w.TOGGLE_SORTING_ITEM,
224
226
  payload: {
225
- ...I(t.resolvedRefs[e.by]),
227
+ ...R(t.resolvedRefs[e.by]),
226
228
  enabled: e.enabled ?? !0
227
229
  }
228
230
  }));
229
231
  return u = await p(u.state, d, ["sorting"]), u;
230
- }, B = (e, t) => {
232
+ }, H = (e, t) => {
231
233
  let n = [], { limiting: r } = t;
232
234
  if (r?.queryLimit !== void 0 && n.push({
233
235
  name: w.SET_QUERY_LIMIT,
@@ -249,13 +251,13 @@ var O = (e) => {
249
251
  }, {
250
252
  name: w.SET_TOP_N_RANK_MEASURE,
251
253
  payload: {
252
- ...I(t),
254
+ ...R(t),
253
255
  ...e.measureAggregations[r.topN.by] ? { aggregation: e.measureAggregations[r.topN.by] } : {}
254
256
  }
255
257
  });
256
258
  }
257
259
  return p(e, n, ["limiting"]);
258
- }, V = (e, t) => {
260
+ }, U = (e, t) => {
259
261
  let n = [], { presentation: r } = t, i = c(r?.axes);
260
262
  if (i) return Promise.resolve({
261
263
  issue: i,
@@ -268,7 +270,7 @@ var O = (e) => {
268
270
  }), r?.orientation !== void 0 && n.push({
269
271
  name: w.SET_BAR_CHART_ORIENTATION,
270
272
  payload: r.orientation
271
- });
273
+ }), n.push(...O(r));
272
274
  let o = r?.legend;
273
275
  o && n.push(...f(e.vSpec, o)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
274
276
  t && (t.titleVisible !== void 0 && n.push({
@@ -302,7 +304,7 @@ var O = (e) => {
302
304
  showAxisLine: t.lineVisible
303
305
  }
304
306
  }), n.push(...u(e, t)), "scale" in t && t.scale !== void 0 && n.push({
305
- name: T.SET_AXIS_SCALE,
307
+ name: E.SET_AXIS_SCALE,
306
308
  payload: {
307
309
  axisName: e,
308
310
  scale: t.scale
@@ -311,10 +313,10 @@ var O = (e) => {
311
313
  });
312
314
  let s = r?.axes?.primaryMeasure?.bands;
313
315
  return s && n.push({
314
- name: S.SET_MEASURE_AXIS_BANDS,
316
+ name: T.SET_MEASURE_AXIS_BANDS,
315
317
  payload: { bands: s }
316
318
  }), p(e, n, ["presentation"]);
317
- }, H = async (e) => {
319
+ }, W = async (e) => {
318
320
  let t = y(e);
319
321
  if (t) return {
320
322
  issues: [{
@@ -334,7 +336,7 @@ var O = (e) => {
334
336
  issues: [d("invalid_structure", ["baseVSpec"], "Base bar vSpec is invalid.", { details: { issues: i.error.issues } })],
335
337
  success: !1
336
338
  };
337
- let o = i.data, c = k(o);
339
+ let o = i.data, c = j(o);
338
340
  if (c) return {
339
341
  issues: [c],
340
342
  success: !1
@@ -344,28 +346,28 @@ var O = (e) => {
344
346
  "topN",
345
347
  "by"
346
348
  ], "Top N ranking by a predefined measure is not supported by the current query builder. Use a raw field or calculation.")] : [], f = [
347
- ...O(r.data),
348
- ...m(r.data.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
349
- ...m(r.data.data.measures, e.availableFields, ["data", "measures"], "measure"),
350
- ...n(r.data.filterGroup, e.availableFields),
349
+ ...A(r.data),
350
+ ...n(r.data.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
351
+ ...n(r.data.data.measures, e.availableFields, ["data", "measures"], "measure"),
352
+ ...m(r.data.filterGroup, e.availableFields),
351
353
  ...u
352
354
  ];
353
355
  if (f.length > 0) return {
354
356
  issues: f,
355
357
  success: !1
356
358
  };
357
- let p = await F({
359
+ let p = await L({
358
360
  availableFields: a(e.availableFields),
359
361
  input: e,
360
362
  measureAggregations: {},
361
363
  resolvedRefs: {},
362
364
  vSpec: o
363
365
  }, r.data), h = [
364
- L,
365
- R,
366
366
  z,
367
367
  B,
368
368
  V,
369
+ H,
370
+ U,
369
371
  (e, t) => _(e, t.presentation?.coloring)
370
372
  ];
371
373
  for (let e of h) {
@@ -389,4 +391,4 @@ var O = (e) => {
389
391
  success: !1
390
392
  };
391
393
  };
392
- export { H as compileBarVisualizationDefinition };
394
+ export { W as compileBarVisualizationDefinition };