@astrato-io/visualizations 0.8.0 → 0.10.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 (161) hide show
  1. package/README.md +9 -5
  2. package/THIRD_PARTY_NOTICES.md +403 -325
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
  5. package/chunks/CircularProgress-yupH6YWs.js +765 -0
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/LinearProgress-CyFjN4px.js +327 -0
  8. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
  9. package/chunks/Title-C-p4ZarD.js +1804 -0
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/contains-BK-sRXcB.js +21 -0
  19. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  20. package/chunks/defaults-cyNhn37t.js +3 -0
  21. package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
  22. package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
  23. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
  24. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
  25. package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
  26. package/chunks/handlers-ZviIUC-j.js +15387 -0
  27. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  28. package/chunks/isEqual-Ch9OEye3.js +16 -0
  29. package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
  32. package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
  33. package/chunks/map.compiler-CKzorLgK.js +345 -0
  34. package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
  35. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
  36. package/chunks/operations-DZoY50VX.js +31297 -0
  37. package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
  38. package/chunks/react-dom-Dgv2azN2.js +368 -0
  39. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
  40. package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
  41. package/chunks/responsive.styles-FItb913l.js +93 -0
  42. package/chunks/shared-UitWpq1J.js +1331 -0
  43. package/chunks/standalone-B0U6c3su.js +3638 -0
  44. package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
  45. package/chunks/standalone-BEekPuA12.js +357 -0
  46. package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
  47. package/chunks/standalone-BR2JuRIC.js +422 -0
  48. package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
  49. package/chunks/standalone-Bnnr87pc.js +2009 -0
  50. package/chunks/standalone-BwJqDj2Z.js +396 -0
  51. package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
  52. package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
  53. package/chunks/standalone-CRfDOO1x.js +287 -0
  54. package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
  55. package/chunks/standalone-CbPk8bKn.js +580 -0
  56. package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
  57. package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
  58. package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
  59. package/chunks/standalone-DhfgeJIk.js +1012 -0
  60. package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
  61. package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
  62. package/chunks/standalone-DxBAyqAu.js +772 -0
  63. package/chunks/standalone-KMQPsNsq.js +2 -0
  64. package/chunks/standalone-MBLSvsrY.js +2 -0
  65. package/chunks/standalone-U0WJwFlG.js +354 -0
  66. package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
  67. package/chunks/standalone-wgFAVnnm.js +355 -0
  68. package/chunks/standalone-xGV0dqPV.js +689 -0
  69. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
  70. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  71. package/chunks/useFieldName-B8iCYyw1.js +7 -0
  72. package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
  73. package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
  74. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
  75. package/chunks/with-html-element-DOfkR3C1.js +16094 -0
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +303 -2
  79. package/docs/operations/combo.md +262 -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 +148 -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 +262 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +8 -8
  90. package/docs/operations/line.md +262 -1
  91. package/docs/operations/number.md +1 -1
  92. package/docs/operations/pie.md +1 -1
  93. package/docs/operations/radar.md +1 -1
  94. package/docs/operations/sankey.md +1 -1
  95. package/docs/operations/scatter.md +148 -1
  96. package/docs/operations/shape.md +1 -1
  97. package/docs/operations/simpleTextObject.md +1 -1
  98. package/docs/operations/slider.md +1 -1
  99. package/docs/operations/table.md +439 -157
  100. package/docs/operations/tree.md +1 -1
  101. package/docs/operations/treemap.md +1 -1
  102. package/docs/operations/waterfall.md +1 -1
  103. package/docs/operations/word-cloud.md +1 -1
  104. package/getters.js +2 -2
  105. package/index.js +523 -469
  106. package/metadata.js +2 -2
  107. package/operations.js +5 -5
  108. package/package.json +74 -68
  109. package/src/definitions/index.d.ts +1 -1
  110. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  111. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  112. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  113. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
  114. package/src/definitions/model/definitions/index.d.ts +2 -1
  115. package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
  116. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
  117. package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
  118. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  119. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  120. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  121. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  122. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  123. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  124. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  125. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  126. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  127. package/src/index.d.ts +1 -1
  128. package/src/operations/index.d.ts +1 -1
  129. package/src/types.d.ts +45 -41
  130. package/src/visualization-catalog.d.ts +26 -26
  131. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  132. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  133. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  134. package/chunks/Title-CO5dP1ma.js +0 -1691
  135. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  136. package/chunks/color-rules-CN7TcGrC.js +0 -6
  137. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  138. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  139. package/chunks/handlers-TOT-7INo.js +0 -12871
  140. package/chunks/isEqual-B8loyPsC.js +0 -12
  141. package/chunks/label-format-type-weq1XfcX.js +0 -8
  142. package/chunks/operations-Dh4v1Ovt.js +0 -26280
  143. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  144. package/chunks/shared-Bn4N5QcZ.js +0 -1218
  145. package/chunks/standalone-B55oyW6c.js +0 -689
  146. package/chunks/standalone-BXKRE_Se.js +0 -468
  147. package/chunks/standalone-Bes8srx1.js +0 -354
  148. package/chunks/standalone-BjZp0QMe.js +0 -2
  149. package/chunks/standalone-BlMIwpEe.js +0 -1877
  150. package/chunks/standalone-C8qAelL4.js +0 -2
  151. package/chunks/standalone-CLmGb7nn2.js +0 -355
  152. package/chunks/standalone-CXNP6-xD.js +0 -420
  153. package/chunks/standalone-DLlyRIE6.js +0 -287
  154. package/chunks/standalone-DMcI1afI.js +0 -396
  155. package/chunks/standalone-DN4S1MjT.js +0 -3874
  156. package/chunks/standalone-DYQIQH4c.js +0 -2095
  157. package/chunks/standalone-D__XCp-h.js +0 -1003
  158. package/chunks/standalone-XTgSsTAa.js +0 -354
  159. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  160. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  161. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
@@ -1,14 +1,14 @@
1
1
  import "./rolldown-runtime-DleVn1XH.js";
2
- import { Cs as e, Hi as t, Us as n, Xa as r, Za as i, do as a, en as o, hn as s, mr as c, ws as l, xo as u, zi as d, zr as f } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Ei as p, F as m, N as ee, Xt as h, bn as te, o as ne, ri as g } from "./utils-vdmi_2PK.js";
4
- import { km as _ } from "./handlers-TOT-7INo.js";
5
- import { t as v } from "./stroke-dash-UgMEcCS4.js";
6
- import { r as y } from "./extend-preset-CUFNpmPe.js";
7
- import "./logger-DpQtYQnX.js";
8
- import { Bt as b, F as re, Gt as ie, I as ae, L as oe, St as se, Ut as x, Wt as ce, Y as le, cn as S, et as ue, fn as de, i as fe, in as pe, it as me, ln as he, n as ge, on as _e, sn as C, st as w, tt as ve, un as ye, vn as T, vt as E, zt as D } from "./escobar-DRhRMYRE.js";
9
- import { p as O } from "./with-html-element-D0uY2zjI.js";
10
- import "./builder-DEDvNq1k.js";
11
- p();
2
+ import { Da as e, Fo as t, Io as n, Pc as r, Qr as i, Ut as a, es as o, hc as s, in as c, mc as l, oa as u, rr as d, us as f } from "./visualization-filters-CzvFHE6M.js";
3
+ import { F as p, N as m, Zt as ee, ci as h, jt as g, s as te, zr as _ } from "./utils-3Igg6xmO.js";
4
+ import { h_ as v } from "./handlers-ZviIUC-j.js";
5
+ import { t as ne } from "./stroke-dash-UgMEcCS4.js";
6
+ import "./logger-CKRjhSHQ.js";
7
+ import { r as y } from "./extend-preset-D-l9u_we.js";
8
+ import { Bt as b, Ct as re, Gt as ie, I as ae, Kt as oe, L as se, R as ce, Vt as x, Wt as S, X as le, at as ue, cn as C, ct as w, fn as de, i as fe, in as pe, ln as me, n as he, nt as ge, on as _e, sn as T, tt as ve, un as ye, vn as E, yt as D } from "./escobar-CjirINHP.js";
9
+ import { p as O } from "./with-html-element-DOfkR3C1.js";
10
+ import "./builder-CScg1TOS.js";
11
+ h();
12
12
  function k(e) {
13
13
  let { measureProps: t, index: n, items: r, vSpec: i } = e, { positive: a, negative: o } = A(t, i), s;
14
14
  return s = n === 0 ? r[0] > 0 ? a : o : r[n] > r[n - 1] ? a : o, s;
@@ -51,12 +51,12 @@ function F(e, t) {
51
51
  }];
52
52
  return r < 0 && i.reverse(), {
53
53
  type: "gradient",
54
- degree: C(t) ? 0 : 90,
54
+ degree: T(t) ? 0 : 90,
55
55
  stops: i
56
56
  };
57
57
  };
58
58
  }
59
- var be = (e, t) => t || e.colors.brandColors[0], xe = "subTotal-measure", I = (e) => `${xe}-${e}`, L = "total-measure", R = (e) => `${l.Waterfall}.subTotal.${e}`, z = `${l.Waterfall}.total`;
59
+ var be = (e, t) => t || e.colors.brandColors[0], xe = "subTotal-measure", I = (e) => `${xe}-${e}`, L = "total-measure", R = (e) => `${s.Waterfall}.subTotal.${e}`, z = `${s.Waterfall}.total`;
60
60
  function B(e) {
61
61
  return ({ data: t, formatter: n }) => {
62
62
  let r = t?.end.value - t?.start.value;
@@ -73,16 +73,16 @@ function U(e) {
73
73
  filter: (t) => t?.source?.field === e
74
74
  };
75
75
  }
76
- function Se(e, t, n) {
77
- let r = U(I(n)), a = {
78
- scale: e.orientation === i.Horizontal ? S.XAxisScale : S.YAxisScale,
76
+ function Se(e, t, r) {
77
+ let i = U(I(r)), a = {
78
+ scale: e.orientation === n.Horizontal ? C.XAxisScale : C.YAxisScale,
79
79
  ref: "end"
80
- }, o = j(e, n);
80
+ }, o = j(e, r);
81
81
  return {
82
- type: T.Box,
83
- layout: { displayOrder: b.VisualizationElement },
84
- key: R(n),
85
- data: r,
82
+ type: E.Box,
83
+ layout: { displayOrder: x.VisualizationElement },
84
+ key: R(r),
85
+ data: i,
86
86
  settings: W(e, t, H, a, o),
87
87
  animations: {
88
88
  enabled: !0,
@@ -91,16 +91,16 @@ function Se(e, t, n) {
91
91
  };
92
92
  }
93
93
  function Ce(e, t) {
94
- let n = U(L), r = {
95
- scale: e.orientation === i.Horizontal ? S.XAxisScale : S.YAxisScale,
94
+ let r = U(L), i = {
95
+ scale: e.orientation === n.Horizontal ? C.XAxisScale : C.YAxisScale,
96
96
  ref: "end"
97
97
  }, a = e.total.color;
98
98
  return {
99
- type: T.Box,
100
- layout: { displayOrder: b.VisualizationElement },
99
+ type: E.Box,
100
+ layout: { displayOrder: x.VisualizationElement },
101
101
  key: z,
102
- data: n,
103
- settings: W(e, t, H, r, a),
102
+ data: r,
103
+ settings: W(e, t, H, i, a),
104
104
  animations: {
105
105
  enabled: !0,
106
106
  presetId: V
@@ -108,184 +108,184 @@ function Ce(e, t) {
108
108
  };
109
109
  }
110
110
  var we = (e, t, n, r) => ({
111
- type: T.Box,
112
- layout: { displayOrder: b.VisualizationElement },
113
- key: E(e, t, l.Waterfall),
111
+ type: E.Box,
112
+ layout: { displayOrder: x.VisualizationElement },
113
+ key: D(e, t, s.Waterfall),
114
114
  data: r,
115
115
  settings: n,
116
116
  animations: {
117
117
  enabled: !0,
118
118
  presetId: V
119
119
  }
120
- }), W = (e, n, r, a, s) => {
120
+ }), W = (t, r, i, o, s) => {
121
121
  let c = {
122
- orientation: e.orientation ?? i.Vertical,
123
- major: r,
124
- minor: a,
122
+ orientation: t.orientation ?? n.Vertical,
123
+ major: i,
124
+ minor: o,
125
125
  box: {
126
126
  minWidthPx: 2,
127
127
  ref: "",
128
- rx: o(e.barSettings.barRadius, 0),
128
+ rx: a(t.barSettings.barRadius, 0),
129
129
  fill: s,
130
130
  stacked: !1,
131
131
  grouped: !1,
132
- boxPadding: e.barSettings.barPadding ?? 0,
132
+ boxPadding: t.barSettings.barPadding ?? 0,
133
133
  groupPadding: 0,
134
134
  itemsInStackCount: 0,
135
- roundAllEdges: e.barSettings.roundAllEdges ?? !1,
136
- useCustomBoxRounding: e.barSettings.useCustomBoxRounding ?? !1,
137
- ignoreOutOfBounds: e.barSettings.ignoreOutOfBounds ?? !1
135
+ roundAllEdges: t.barSettings.roundAllEdges ?? !1,
136
+ useCustomBoxRounding: t.barSettings.useCustomBoxRounding ?? !1,
137
+ ignoreOutOfBounds: t.barSettings.ignoreOutOfBounds ?? !1
138
138
  }
139
139
  };
140
- return e.barSettings?.strokeEnabled ? (c.box.stroke = be(n, e.barSettings?.strokeColor ?? ""), c.box.strokeWidth = e.barSettings?.strokeWidth) : c.box.stroke = t.transparent, c;
140
+ return t.barSettings?.strokeEnabled ? (c.box.stroke = be(r, t.barSettings?.strokeColor ?? ""), c.box.strokeWidth = t.barSettings?.strokeWidth) : c.box.stroke = e.transparent, c;
141
141
  }, G = "collection-no-dimension", K = "onlyMeasures";
142
- _.Inside, _.Outside, _.Opposite;
142
+ v.Inside, v.Outside, v.Opposite;
143
143
  function q(e, t) {
144
- let r = e.measures.filter((e) => f(e));
145
- return r.filter((i, a) => {
146
- let o = n(i.dataItem), s = t[0].items[0][o], c = e.measureProps[o];
144
+ let n = e.measures.filter((e) => i(e));
145
+ return n.filter((i, a) => {
146
+ let o = r(i.dataItem), s = t[0].items[0][o], c = e.measureProps[o];
147
147
  if (a === 0) return !!s || !c?.hideIfEmpty;
148
- let l = n(r[a - 1].dataItem);
148
+ let l = r(n[a - 1].dataItem);
149
149
  return s !== t[0].items[0][l] || !c?.hideIfEmpty;
150
150
  });
151
151
  }
152
- var Te = (e, t, n, i, a, o, s, l) => {
153
- n = x(e, t, n, i, a, o, s, l);
154
- let u = [], d = [];
152
+ var Te = (e, n, r, a, o, s, c, l) => {
153
+ r = S(e, n, r, a, o, s, c, l);
154
+ let u = [], f = [];
155
155
  if ("axes" in e) {
156
- let n = e.axes?.dimension || {};
157
- if (!n.disabled) {
158
- let i = C(e) ? r.Left : r.Bottom;
159
- if (u.push(ce(K, n, {
160
- ...t.axis.measure,
161
- ...t.fonts
162
- }, i)), n.showAxisName) {
163
- let r = e.measures.filter((e) => f(e)), a = r.length ? r : e.measures;
164
- if (a.length) {
165
- let r = c(e.measures, !!e.enableAlternate, o?.isPrintMode);
166
- d.push(ie(a, r, i, {
167
- ...t.axis.measure,
168
- ...t.fonts
169
- }, void 0, n.axisTitle ?? "Measures", n.titleFontSize, "waterfall-measures-axis-label"));
156
+ let r = e.axes?.dimension || {};
157
+ if (!r.disabled) {
158
+ let a = T(e) ? t.Left : t.Bottom;
159
+ if (u.push(ie(K, r, {
160
+ ...n.axis.measure,
161
+ ...n.fonts
162
+ }, a)), r.showAxisName) {
163
+ let t = e.measures.filter((e) => i(e)), o = t.length ? t : e.measures;
164
+ if (o.length) {
165
+ let t = d(e.measures, !!e.enableAlternate, s?.isPrintMode);
166
+ f.push(oe(o, t, a, {
167
+ ...n.axis.measure,
168
+ ...n.fonts
169
+ }, void 0, r.axisTitle ?? "Measures", r.titleFontSize, "waterfall-measures-axis-label"));
170
170
  }
171
171
  }
172
172
  }
173
173
  }
174
174
  return {
175
- ...n,
175
+ ...r,
176
176
  components: [
177
- ...n.components,
177
+ ...r.components,
178
178
  ...u,
179
- ...d
179
+ ...f
180
180
  ]
181
181
  };
182
- }, Ee = (e, t, r, i, a) => {
183
- if (!a) return r;
182
+ }, Ee = (e, t, n, i, a) => {
183
+ if (!a) return n;
184
184
  let o = le(e, {});
185
- (e.axes?.primaryMeasure?.axisRange?.axisRangeOption ?? u.Auto) === u.Auto && (C(e) ? o[S.XAxisScale].expand = .3 : o[S.YAxisScale].expand = .3);
186
- let c = [];
187
- return q(e, a).forEach((t, r) => {
188
- let i = n(t.dataItem), a = s(t);
189
- c.push({
185
+ (e.axes?.primaryMeasure?.axisRange?.axisRangeOption ?? f.Auto) === f.Auto && (T(e) ? o[C.XAxisScale].expand = .3 : o[C.YAxisScale].expand = .3);
186
+ let s = [];
187
+ return q(e, a).forEach((t, n) => {
188
+ let i = r(t.dataItem), a = c(t);
189
+ s.push({
190
190
  value: i,
191
191
  label: a || t.label || t.dataItem.name
192
192
  });
193
193
  let o = e.measureProps[i];
194
- o?.subTotalEnabled && c.push({
195
- value: I(r),
194
+ o?.subTotalEnabled && s.push({
195
+ value: I(n),
196
196
  label: o?.subTotalLabel || "Sub-Total"
197
197
  });
198
- }), e.total.enabled && c.push({
198
+ }), e.total.enabled && s.push({
199
199
  value: L,
200
200
  label: e.total.label || "Total"
201
201
  }), o.onlyMeasures = {
202
- data: { items: c },
202
+ data: { items: s },
203
203
  padding: e.barSettings.barPadding ?? 0,
204
204
  type: de.Band,
205
205
  value: (e) => `${e.datum.value.value}`,
206
206
  label: (e) => `${e.datum.value.label}`
207
207
  }, {
208
- ...r,
208
+ ...n,
209
209
  scales: o
210
210
  };
211
- }, J = "measures", De = (e, t, r, i, a) => {
212
- if (!a) return r;
213
- let o = [], s, c = q(e, a), l = ae((e.supportingMeasures ?? []).filter((e) => f(e)));
214
- if (c.forEach((t, r) => {
215
- let i = n(t.dataItem), a, u;
216
- if (r === 0) a = 0, u = { field: i }, s = "end";
217
- else if (s === "start") a = { field: n(c[r - 1].dataItem) }, u = { field: i }, s = "end";
211
+ }, J = "measures", De = (e, t, n, a, o) => {
212
+ if (!o) return n;
213
+ let s = [], c, l = q(e, o), u = se((e.supportingMeasures ?? []).filter((e) => i(e)));
214
+ if (l.forEach((t, n) => {
215
+ let i = r(t.dataItem), a, o;
216
+ if (n === 0) a = 0, o = { field: i }, c = "end";
217
+ else if (c === "start") a = { field: r(l[n - 1].dataItem) }, o = { field: i }, c = "end";
218
218
  else {
219
- let e = n(c[r - 1].dataItem);
220
- a = { field: i }, u = { field: e }, s = "start";
219
+ let e = r(l[n - 1].dataItem);
220
+ a = { field: i }, o = { field: e }, c = "start";
221
221
  }
222
- o.push({
222
+ s.push({
223
223
  field: i,
224
224
  props: {
225
225
  stackKey: J,
226
226
  [i]: { field: i },
227
- ...l,
227
+ ...u,
228
228
  series: i,
229
229
  start: a,
230
230
  color: i,
231
- end: u,
231
+ end: o,
232
232
  secondaryAxis: t.secondaryAxis,
233
233
  isMultipleMeasures: !0,
234
234
  subTotal: !1,
235
- reverted: s === "start"
235
+ reverted: c === "start"
236
236
  }
237
237
  });
238
238
  let d = e.measureProps[i];
239
239
  if (d?.subTotalEnabled) {
240
- let e = I(r), t, n;
241
- s === "end" ? (t = 0, n = { field: i }) : (t = { field: i }, n = 0), o.push({
240
+ let e = I(n), t, r;
241
+ c === "end" ? (t = 0, r = { field: i }) : (t = { field: i }, r = 0), s.push({
242
242
  field: e,
243
243
  props: {
244
244
  stackKey: J,
245
- ...l,
245
+ ...u,
246
246
  series: e,
247
247
  start: t,
248
248
  color: e,
249
- end: n,
249
+ end: r,
250
250
  secondaryAxis: !1,
251
251
  isMultipleMeasures: !0,
252
252
  label: d?.subTotalLabel || "Sub-Total",
253
253
  subTotal: !0,
254
- reverted: s === "start"
254
+ reverted: c === "start"
255
255
  }
256
256
  });
257
257
  }
258
258
  }), e.total.enabled) {
259
- let t = n(c[c.length - 1].dataItem), r, i;
260
- s === "end" ? (r = 0, i = { field: t }) : (r = { field: t }, i = 0), o.push({
259
+ let t = r(l[l.length - 1].dataItem), n, i;
260
+ c === "end" ? (n = 0, i = { field: t }) : (n = { field: t }, i = 0), s.push({
261
261
  field: L,
262
262
  props: {
263
263
  stackKey: J,
264
- ...l,
264
+ ...u,
265
265
  series: L,
266
- start: r,
266
+ start: n,
267
267
  color: L,
268
268
  end: i,
269
269
  secondaryAxis: !1,
270
270
  isMultipleMeasures: !0,
271
271
  label: e.total.label || "Total",
272
272
  subTotal: !0,
273
- reverted: s === "start"
273
+ reverted: c === "start"
274
274
  }
275
275
  });
276
276
  }
277
- let u = {
277
+ let d = {
278
278
  key: G,
279
- data: { extract: o }
279
+ data: { extract: s }
280
280
  };
281
281
  return {
282
- ...r,
283
- collections: [u]
282
+ ...n,
283
+ collections: [d]
284
284
  };
285
- }, Oe = (e, t, r, i, a) => {
286
- if (!a) return r;
287
- let o = Object.values(a[0].items[0]), s = q(e, a).reduce((r, i, a) => {
288
- let s = n(i.dataItem), c = U(s), l = {
285
+ }, Oe = (e, t, n, i, a) => {
286
+ if (!a) return n;
287
+ let o = Object.values(a[0].items[0]), s = q(e, a).reduce((n, i, a) => {
288
+ let s = r(i.dataItem), c = U(s), l = {
289
289
  scale: _e(e, i),
290
290
  ref: "end"
291
291
  }, u = k({
@@ -293,30 +293,30 @@ var Te = (e, t, n, i, a, o, s, l) => {
293
293
  index: a,
294
294
  items: o,
295
295
  vSpec: e
296
- }), d = [...r], f = W(e, t, H, l, u);
296
+ }), d = [...n], f = W(e, t, H, l, u);
297
297
  return d.push(we(e, i, f, c)), e.measureProps[s]?.subTotalEnabled && d.push(Se(e, t, a)), d;
298
298
  }, []);
299
299
  return e.total.enabled && s.push(Ce(e, t)), {
300
- ...r,
301
- components: [...r.components, ...s]
300
+ ...n,
301
+ components: [...n.components, ...s]
302
302
  };
303
- }, Y = [{ position: _.Outside }, {
304
- position: _.Inside,
303
+ }, Y = [{ position: v.Outside }, {
304
+ position: v.Inside,
305
305
  justify: 1
306
- }], ke = (e, t, r, i, a) => {
307
- if (!a) return r;
306
+ }], ke = (e, t, n, i, a) => {
307
+ if (!a) return n;
308
308
  let o = [], s = q(e, a);
309
- return s.forEach((r, i) => {
310
- if (!r.dataLabels?.show) return;
311
- o.push(Me(e, t, r, i));
312
- let a = n(r.dataItem);
313
- e.measureProps[a]?.subTotalEnabled && o.push(je(e, t, r, i));
309
+ return s.forEach((n, i) => {
310
+ if (!n.dataLabels?.show) return;
311
+ o.push(Me(e, t, n, i));
312
+ let a = r(n.dataItem);
313
+ e.measureProps[a]?.subTotalEnabled && o.push(je(e, t, n, i));
314
314
  }), e.total.enabled && e.total.showDataLabel && o.push(Ae(e, t, s)), {
315
- ...r,
316
- components: [...r.components, ...o]
315
+ ...n,
316
+ components: [...n.components, ...o]
317
317
  };
318
318
  }, X = {
319
- layout: { displayOrder: b.Labels },
319
+ layout: { displayOrder: x.Labels },
320
320
  animations: {
321
321
  enabled: !0,
322
322
  presetId: "chart-labels"
@@ -326,7 +326,7 @@ function Ae(e, t, n) {
326
326
  let r = n[n.length - 1], i = B(r);
327
327
  return {
328
328
  ...X,
329
- type: T.Labels,
329
+ type: E.Labels,
330
330
  key: "bar-labels-normal-total",
331
331
  settings: Z(e, t, z, i, e.total?.showLabelBackdrop, e.total?.labelFontSize)
332
332
  };
@@ -334,21 +334,21 @@ function Ae(e, t, n) {
334
334
  function je(e, t, n, r) {
335
335
  return {
336
336
  ...X,
337
- type: T.Labels,
337
+ type: E.Labels,
338
338
  key: `bar-labels-normal-${r}-sub`,
339
339
  settings: Z(e, t, R(r), B(n), n.dataLabels?.showBackdrop, n.dataLabels?.size)
340
340
  };
341
341
  }
342
342
  function Me(e, t, n, r) {
343
- let i = E(e, n, l.Waterfall);
343
+ let i = D(e, n, s.Waterfall);
344
344
  return {
345
345
  ...X,
346
- type: T.Labels,
346
+ type: E.Labels,
347
347
  key: `bar-labels-normal-${r}`,
348
348
  settings: Z(e, t, i, B(n), n.dataLabels?.showBackdrop, n.dataLabels?.size)
349
349
  };
350
350
  }
351
- function Z(e, t, n, r, i = !1, a = he.dataPoint.valueFontSize) {
351
+ function Z(e, t, n, r, i = !1, a = me.dataPoint.valueFontSize) {
352
352
  return { sources: [{
353
353
  component: n,
354
354
  selector: ye.Rect,
@@ -360,7 +360,7 @@ function Z(e, t, n, r, i = !1, a = he.dataPoint.valueFontSize) {
360
360
  fontFamily: t.fonts.general.fontFamily,
361
361
  labels: [{
362
362
  label: r,
363
- placements: i ? Y.map((n) => oe(n, t, C(e))) : Y
363
+ placements: i ? Y.map((n) => ce(n, t, T(e))) : Y
364
364
  }]
365
365
  }
366
366
  }
@@ -370,15 +370,15 @@ function Ne(e) {
370
370
  return ({ data: t }) => {
371
371
  if (!t) return null;
372
372
  let n = t.end.value > t.start.value;
373
- return (t.reverted?.value ? !n : n) ? C(e) ? "right" : "up" : C(e) ? "left" : "down";
373
+ return (t.reverted?.value ? !n : n) ? T(e) ? "right" : "up" : T(e) ? "left" : "down";
374
374
  };
375
375
  }
376
376
  var Pe = {
377
- curve: a.Linear,
377
+ curve: o.Linear,
378
378
  line: {
379
- stroke: t.grey1,
379
+ stroke: e.grey1,
380
380
  strokeWidth: 2,
381
- strokeDasharray: v({
381
+ strokeDasharray: ne({
382
382
  space: 1,
383
383
  width: 4
384
384
  }),
@@ -395,9 +395,9 @@ var Pe = {
395
395
  let r = n.collections[0].data.extract, i = "end", a = r.slice(0, -1).map((t, n) => {
396
396
  let a = i;
397
397
  return r[n + 1].props?.subTotal || (i = i === "start" ? "end" : "start"), {
398
- type: T.Line,
399
- layout: { displayOrder: b.VisualizationElement },
400
- key: `${l.Line}.${n}`,
398
+ type: E.Line,
399
+ layout: { displayOrder: x.VisualizationElement },
400
+ key: `${s.Line}.${n}`,
401
401
  data: {
402
402
  collection: G,
403
403
  filter: (e, t) => [n, n + 1].includes(t)
@@ -412,39 +412,39 @@ var Pe = {
412
412
  };
413
413
  };
414
414
  function Re(e, t) {
415
- let n = C(e);
415
+ let r = T(e);
416
416
  return {
417
417
  layers: Pe,
418
418
  coordinates: {
419
419
  major: Fe,
420
420
  minor: {
421
- scale: n ? S.XAxisScale : S.YAxisScale,
421
+ scale: r ? C.XAxisScale : C.YAxisScale,
422
422
  ref: t
423
423
  }
424
424
  },
425
- orientation: n ? i.Vertical : i.Horizontal
425
+ orientation: r ? n.Vertical : n.Horizontal
426
426
  };
427
427
  }
428
428
  var ze = (e, t, n) => {
429
- let r = e.measures.filter(f), i = r.map((t) => E(e, t, l.Waterfall));
430
- return ue(e, t, n, {
431
- filter: (e) => e.filter((e) => e.data?.subTotal?.value || i.findIndex((t) => t === e.key) !== -1),
429
+ let r = e.measures.filter(i), a = r.map((t) => D(e, t, s.Waterfall));
430
+ return ve(e, t, n, {
431
+ filter: (e) => e.filter((e) => e.data?.subTotal?.value || a.findIndex((t) => t === e.key) !== -1),
432
432
  placement: {
433
433
  type: "bounds",
434
434
  area: "target"
435
435
  },
436
- extract: ve({
436
+ extract: ge({
437
437
  ...e,
438
438
  measures: r
439
439
  }, t, Be, () => "")
440
- }, `tooltip-${T.Box}`);
441
- }, Be = (e, t, r, i, a, o, c, l) => {
442
- let { formatter: u } = r, d = t.data, f = me(r), p = e.filter((e) => !f.has(n(e.dataItem))), m = e.filter((e) => f.has(n(e.dataItem))).flatMap((e) => {
443
- let r = n(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
440
+ }, `tooltip-${E.Box}`);
441
+ }, Be = (e, t, n, i, a, o, s, l) => {
442
+ let { formatter: u } = n, d = t.data, f = ue(n), p = e.filter((e) => !f.has(r(e.dataItem))), m = e.filter((e) => f.has(r(e.dataItem))).flatMap((e) => {
443
+ let n = r(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === n);
444
444
  if (!i) return [];
445
445
  let a = t.data[i]?.value, o = a;
446
446
  return !l && e?.formatter && u ? o = u(e.formatter)(a) : l && u && (o = u(w(e?.formatter))(a)), [{
447
- label: s(e) || e.label || e.dataItem.name || "",
447
+ label: c(e) || e.label || e.dataItem.name || "",
448
448
  value: o
449
449
  }];
450
450
  });
@@ -462,24 +462,24 @@ var ze = (e, t, n) => {
462
462
  value: r
463
463
  }, ...m];
464
464
  } else {
465
- let t = d.series.value.toString(), r = e.find((e) => n(e.dataItem) === t), i = (d.reverted.value ? -1 : 1) * (d.end.value - d.start.value), a = i;
466
- return !l && r?.formatter && u ? a = u(r.formatter)(i) : l && u && (a = u(w(r?.formatter))(i)), [{
467
- label: (r ? s(r) : "") || r?.label || r?.dataItem.name || "",
465
+ let t = d.series.value.toString(), n = e.find((e) => r(e.dataItem) === t), i = (d.reverted.value ? -1 : 1) * (d.end.value - d.start.value), a = i;
466
+ return !l && n?.formatter && u ? a = u(n.formatter)(i) : l && u && (a = u(w(n?.formatter))(i)), [{
467
+ label: (n ? c(n) : "") || n?.label || n?.dataItem.name || "",
468
468
  value: a
469
469
  }, ...m];
470
470
  }
471
- }, Ve = class extends re {
471
+ }, Ve = class extends ae {
472
472
  constructor() {
473
473
  super([
474
474
  De,
475
475
  Ee,
476
476
  Te,
477
- se,
477
+ re,
478
478
  Oe,
479
479
  ke,
480
480
  Le,
481
481
  ze,
482
- D
482
+ b
483
483
  ]);
484
484
  }
485
485
  preCompile(e, t) {
@@ -494,22 +494,22 @@ var ze = (e, t, n) => {
494
494
  }
495
495
  };
496
496
  function He(e) {
497
- return e.measures.filter((e) => f(e)).every((e) => e.dataItem.internalKey.startsWith("internalKeyMeasure"));
497
+ return e.measures.filter((e) => i(e)).every((e) => e.dataItem.internalKey.startsWith("internalKeyMeasure"));
498
498
  }
499
- var Q = g(), Ue = new Ve(), We = h(({ vSpec: t, vTheme: n, data: r, elementSize: i, vizProperties: a }) => {
500
- let o = ee(), { activeKey: s } = ne(), c = m(), u = te(), f = ge();
501
- if (!r) return null;
502
- if (!a.isFetchingData && $(r)) return /* @__PURE__ */ (0, Q.jsx)(O, { vBackendAPI: u });
503
- if ($(r) || !t || !e(t) || !i) return null;
504
- let p = {
505
- ...a,
506
- valuePickerMode: !!s
507
- }, h = n || d, g = Ue.compile(t, h, structuredClone(r), i, p, l.Waterfall, o, c, f);
508
- return g ? /* @__PURE__ */ (0, Q.jsx)(fe, {
509
- config: p,
510
- definition: g,
511
- size: i,
512
- vSpec: t
499
+ var Q = _(), Ue = new Ve(), We = g(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
500
+ let a = m(), { activeKey: o } = te(), c = p(), d = ee(), f = he();
501
+ if (!n) return null;
502
+ if (!i.isFetchingData && $(n)) return /* @__PURE__ */ (0, Q.jsx)(O, { vBackendAPI: d });
503
+ if ($(n) || !e || !l(e) || !r) return null;
504
+ let h = {
505
+ ...i,
506
+ valuePickerMode: !!o
507
+ }, g = t || u, _ = Ue.compile(e, g, structuredClone(n), r, h, s.Waterfall, a, c, f);
508
+ return _ ? /* @__PURE__ */ (0, Q.jsx)(fe, {
509
+ config: h,
510
+ definition: _,
511
+ size: r,
512
+ vSpec: e
513
513
  }) : null;
514
514
  });
515
515
  function $(e) {