@astrato-io/visualizations 0.6.4 → 0.6.5

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 (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import { n as e } from "./standalone-B7jax8wa.js";
2
+ export { e as DistributionGaugeChart };
@@ -1,12 +1,12 @@
1
1
  import "./rolldown-runtime-DleVn1XH.js";
2
- import { Jo as e, No as t, Oa as n, Pn as r, Po as i, Ta as a, Ti as o, Yn as s, is as c, pc as l, qs as u, ti as d } from "./interfaces-VUY4_yVO.js";
3
- import { I as f, Ki as p, P as m, Zt as h, o as ee, wi as g, xn as _ } from "./utils-Ba9T0TqC.js";
4
- import { Rn as v } from "./event-bus-KiSiCJrC.js";
5
- import { t as te } from "./stroke-dash-UgMEcCS4.js";
6
- import { n as ne, v as re } from "./src-Cum_2NLV.js";
7
- import { Bt as ie, Ft as y, G as b, Jt as ae, M as oe, N as se, Pt as ce, Qt as x, Rt as le, X as ue, Xt as de, Z as fe, Zt as S, et as pe, i as me, in as he, j as ge, mt as C, n as _e, nn as ve, rt as w, un as T, vt as ye, zt as E } from "./escobar-BGqT1EsE.js";
8
- import { vt as D } from "./_baseFlatten-DPXPOrea.js";
9
- p();
2
+ import { An as e, Gn as t, Ks as n, Mo as r, No as i, Sa as a, Si as o, Ta as s, Zr as c, fc as l, qo as u, rs as d } from "./isEqual-BDxAhUo8.js";
3
+ import { $t as f, Cn as p, Ei as m, I as ee, P as te, Yi as h, o as ne } from "./utils-Bg7K-t6K.js";
4
+ import { Pm as g } from "./handlers-VTBfIZYZ.js";
5
+ import { t as re } from "./stroke-dash-UgMEcCS4.js";
6
+ import { Vt as ie } from "./ui-DQWtv2iM.js";
7
+ import { b as _, l as v } from "./builder-B6dWSIdD.js";
8
+ import { Bt as y, Ft as b, G as ae, Jt as oe, M as se, N as ce, Pt as le, Qt as x, Rt as ue, X as de, Xt as fe, Z as pe, Zt as S, an as me, dn as C, et as he, i as ge, j as _e, mt as w, n as ve, rn as ye, rt as T, vt as E, zt as D } from "./escobar-eDjtGpkC.js";
9
+ h();
10
10
  function O(e) {
11
11
  let { measureProps: t, index: n, items: r, vSpec: i } = e, { positive: a, negative: o } = k(t, i), s;
12
12
  return s = n === 0 ? r[0] > 0 ? a : o : r[n] > r[n - 1] ? a : o, s;
@@ -54,7 +54,7 @@ function P(e, t) {
54
54
  };
55
55
  };
56
56
  }
57
- var be = (e, t) => t || e.colors.brandColors[0], xe = "subTotal-measure", F = (e) => `${xe}-${e}`, I = "total-measure", L = (e) => `${u.Waterfall}.subTotal.${e}`, R = `${u.Waterfall}.total`;
57
+ var be = (e, t) => t || e.colors.brandColors[0], xe = "subTotal-measure", F = (e) => `${xe}-${e}`, I = "total-measure", L = (e) => `${n.Waterfall}.subTotal.${e}`, R = `${n.Waterfall}.total`;
58
58
  function z(e) {
59
59
  return ({ data: t, formatter: n }) => {
60
60
  let r = t?.end.value - t?.start.value;
@@ -77,8 +77,8 @@ function Se(e, t, n) {
77
77
  ref: "end"
78
78
  }, o = A(e, n);
79
79
  return {
80
- type: T.Box,
81
- layout: { displayOrder: y.VisualizationElement },
80
+ type: C.Box,
81
+ layout: { displayOrder: b.VisualizationElement },
82
82
  key: L(n),
83
83
  data: r,
84
84
  settings: U(e, t, V, a, o),
@@ -94,8 +94,8 @@ function Ce(e, t) {
94
94
  ref: "end"
95
95
  }, a = e.total.color;
96
96
  return {
97
- type: T.Box,
98
- layout: { displayOrder: y.VisualizationElement },
97
+ type: C.Box,
98
+ layout: { displayOrder: b.VisualizationElement },
99
99
  key: R,
100
100
  data: n,
101
101
  settings: U(e, t, V, r, a),
@@ -105,39 +105,39 @@ function Ce(e, t) {
105
105
  }
106
106
  };
107
107
  }
108
- var we = (e, t, n, r) => ({
109
- type: T.Box,
110
- layout: { displayOrder: y.VisualizationElement },
111
- key: C(e, t, u.Waterfall),
112
- data: r,
113
- settings: n,
108
+ var we = (e, t, r, i) => ({
109
+ type: C.Box,
110
+ layout: { displayOrder: b.VisualizationElement },
111
+ key: w(e, t, n.Waterfall),
112
+ data: i,
113
+ settings: r,
114
114
  animations: {
115
115
  enabled: !0,
116
116
  presetId: B
117
117
  }
118
- }), U = (e, t, a, o, s) => {
118
+ }), U = (t, n, r, a, o) => {
119
119
  let c = {
120
- orientation: e.orientation ?? i.Vertical,
121
- major: a,
122
- minor: o,
120
+ orientation: t.orientation ?? i.Vertical,
121
+ major: r,
122
+ minor: a,
123
123
  box: {
124
124
  minWidthPx: 2,
125
125
  ref: "",
126
- rx: r(e.barSettings.barRadius, 0),
127
- fill: s,
126
+ rx: e(t.barSettings.barRadius, 0),
127
+ fill: o,
128
128
  stacked: !1,
129
129
  grouped: !1,
130
- boxPadding: e.barSettings.barPadding ?? 0,
130
+ boxPadding: t.barSettings.barPadding ?? 0,
131
131
  groupPadding: 0,
132
132
  itemsInStackCount: 0,
133
- roundAllEdges: e.barSettings.roundAllEdges ?? !1,
134
- useCustomBoxRounding: e.barSettings.useCustomBoxRounding ?? !1,
135
- ignoreOutOfBounds: e.barSettings.ignoreOutOfBounds ?? !1
133
+ roundAllEdges: t.barSettings.roundAllEdges ?? !1,
134
+ useCustomBoxRounding: t.barSettings.useCustomBoxRounding ?? !1,
135
+ ignoreOutOfBounds: t.barSettings.ignoreOutOfBounds ?? !1
136
136
  }
137
137
  };
138
- return e.barSettings?.strokeEnabled ? (c.box.stroke = be(t, e.barSettings?.strokeColor), c.box.strokeWidth = e.barSettings?.strokeWidth) : c.box.stroke = n.transparent, c;
138
+ return t.barSettings?.strokeEnabled ? (c.box.stroke = be(n, t.barSettings?.strokeColor), c.box.strokeWidth = t.barSettings?.strokeWidth) : c.box.stroke = s.transparent, c;
139
139
  }, W = "collection-no-dimension", G = "onlyMeasures";
140
- v.Inside, v.Outside, v.Opposite;
140
+ g.Inside, g.Outside, g.Opposite;
141
141
  function K(e, t) {
142
142
  let n = e.measures.filter((e) => o(e));
143
143
  return n.filter((r, i) => {
@@ -147,66 +147,66 @@ function K(e, t) {
147
147
  return o !== t[0].items[0][c] || !s?.hideIfEmpty;
148
148
  });
149
149
  }
150
- var Te = (e, n, r, i, a, s, c, l) => {
151
- r = le(e, n, r, i, a, s, c, l);
152
- let u = [], f = [];
150
+ var Te = (e, t, n, i, a, s, l, u) => {
151
+ n = ue(e, t, n, i, a, s, l, u);
152
+ let d = [], f = [];
153
153
  if ("axes" in e) {
154
- let r = e.axes?.dimension || {};
155
- if (!r.disabled) {
156
- let i = S(e) ? t.Left : t.Bottom;
157
- if (u.push(E(G, r, {
158
- ...n.axis.measure,
159
- ...n.fonts
160
- }, i)), r.showAxisName) {
161
- let t = e.measures.filter((e) => o(e)), a = t.length ? t : e.measures;
154
+ let n = e.axes?.dimension || {};
155
+ if (!n.disabled) {
156
+ let i = S(e) ? r.Left : r.Bottom;
157
+ if (d.push(D(G, n, {
158
+ ...t.axis.measure,
159
+ ...t.fonts
160
+ }, i)), n.showAxisName) {
161
+ let r = e.measures.filter((e) => o(e)), a = r.length ? r : e.measures;
162
162
  if (a.length) {
163
- let t = d(e.measures, !!e.enableAlternate, s?.isPrintMode);
164
- f.push(ie(a, t, i, {
165
- ...n.axis.measure,
166
- ...n.fonts
167
- }, void 0, r.axisTitle ?? "Measures", r.titleFontSize, "waterfall-measures-axis-label"));
163
+ let r = c(e.measures, !!e.enableAlternate, s?.isPrintMode);
164
+ f.push(y(a, r, i, {
165
+ ...t.axis.measure,
166
+ ...t.fonts
167
+ }, void 0, n.axisTitle ?? "Measures", n.titleFontSize, "waterfall-measures-axis-label"));
168
168
  }
169
169
  }
170
170
  }
171
171
  }
172
172
  return {
173
- ...r,
173
+ ...n,
174
174
  components: [
175
- ...r.components,
176
- ...u,
175
+ ...n.components,
176
+ ...d,
177
177
  ...f
178
178
  ]
179
179
  };
180
- }, Ee = (e, t, n, r, i) => {
181
- let a = b(e, {});
182
- (e.axes?.primaryMeasure?.axisRange?.axisRangeOption ?? c.Auto) === c.Auto && (S(e) ? a[x.XAxisScale].expand = .3 : a[x.YAxisScale].expand = .3);
183
- let o = [];
184
- return K(e, i).forEach((t, n) => {
185
- let r = l(t.dataItem), i = s(t);
186
- o.push({
187
- value: r,
188
- label: i || t.label || t.dataItem.name
180
+ }, Ee = (e, n, r, i, a) => {
181
+ let o = ae(e, {});
182
+ (e.axes?.primaryMeasure?.axisRange?.axisRangeOption ?? d.Auto) === d.Auto && (S(e) ? o[x.XAxisScale].expand = .3 : o[x.YAxisScale].expand = .3);
183
+ let s = [];
184
+ return K(e, a).forEach((n, r) => {
185
+ let i = l(n.dataItem), a = t(n);
186
+ s.push({
187
+ value: i,
188
+ label: a || n.label || n.dataItem.name
189
189
  });
190
- let a = e.measureProps[r];
191
- a?.subTotalEnabled && o.push({
192
- value: F(n),
193
- label: a?.subTotalLabel || "Sub-Total"
190
+ let o = e.measureProps[i];
191
+ o?.subTotalEnabled && s.push({
192
+ value: F(r),
193
+ label: o?.subTotalLabel || "Sub-Total"
194
194
  });
195
- }), e.total.enabled && o.push({
195
+ }), e.total.enabled && s.push({
196
196
  value: I,
197
197
  label: e.total.label || "Total"
198
- }), a.onlyMeasures = {
199
- data: { items: o },
198
+ }), o.onlyMeasures = {
199
+ data: { items: s },
200
200
  padding: e.barSettings.barPadding ?? 0,
201
- type: he.Band,
201
+ type: me.Band,
202
202
  value: (e) => `${e.datum.value.value}`,
203
203
  label: (e) => `${e.datum.value.label}`
204
204
  }, {
205
- ...n,
206
- scales: a
205
+ ...r,
206
+ scales: o
207
207
  };
208
208
  }, q = "measures", De = (e, t, n, r, i) => {
209
- let a = [], s, c = K(e, i), u = oe((e.supportingMeasures ?? []).filter((e) => o(e)));
209
+ let a = [], s, c = K(e, i), u = se((e.supportingMeasures ?? []).filter((e) => o(e)));
210
210
  if (c.forEach((t, n) => {
211
211
  let r = l(t.dataItem), i, o;
212
212
  if (n === 0) i = 0, o = { field: r }, s = "end";
@@ -281,7 +281,7 @@ var Te = (e, n, r, i, a, s, c, l) => {
281
281
  }, Oe = (e, t, n, r, i) => {
282
282
  let a = Object.values(i[0].items[0]), o = K(e, i).reduce((n, r, i) => {
283
283
  let o = l(r.dataItem), s = H(o), c = {
284
- scale: de(e, r),
284
+ scale: fe(e, r),
285
285
  ref: "end"
286
286
  }, u = O({
287
287
  measureProps: e.measureProps[o],
@@ -295,8 +295,8 @@ var Te = (e, n, r, i, a, s, c, l) => {
295
295
  ...n,
296
296
  components: [...n.components, ...o]
297
297
  };
298
- }, J = [{ position: v.Outside }, {
299
- position: v.Inside,
298
+ }, J = [{ position: g.Outside }, {
299
+ position: g.Inside,
300
300
  justify: 1
301
301
  }], ke = (e, t, n, r, i) => {
302
302
  let a = [], o = K(e, i);
@@ -310,7 +310,7 @@ var Te = (e, n, r, i, a, s, c, l) => {
310
310
  components: [...n.components, ...a]
311
311
  };
312
312
  }, Y = {
313
- layout: { displayOrder: y.Labels },
313
+ layout: { displayOrder: b.Labels },
314
314
  animations: {
315
315
  enabled: !0,
316
316
  presetId: "chart-labels"
@@ -320,7 +320,7 @@ function Ae(e, t, n) {
320
320
  let r = n[n.length - 1], i = z(r);
321
321
  return {
322
322
  ...Y,
323
- type: T.Labels,
323
+ type: C.Labels,
324
324
  key: "bar-labels-normal-total",
325
325
  settings: X(e, t, R, i, e.total?.showLabelBackdrop, e.total?.labelFontSize)
326
326
  };
@@ -328,33 +328,33 @@ function Ae(e, t, n) {
328
328
  function je(e, t, n, r) {
329
329
  return {
330
330
  ...Y,
331
- type: T.Labels,
331
+ type: C.Labels,
332
332
  key: `bar-labels-normal-${r}-sub`,
333
333
  settings: X(e, t, L(r), z(n), n.dataLabels?.showBackdrop, n.dataLabels?.size)
334
334
  };
335
335
  }
336
- function Me(e, t, n, r) {
337
- let i = C(e, n, u.Waterfall);
336
+ function Me(e, t, r, i) {
337
+ let a = w(e, r, n.Waterfall);
338
338
  return {
339
339
  ...Y,
340
- type: T.Labels,
341
- key: `bar-labels-normal-${r}`,
342
- settings: X(e, t, i, z(n), n.dataLabels?.showBackdrop, n.dataLabels?.size)
340
+ type: C.Labels,
341
+ key: `bar-labels-normal-${i}`,
342
+ settings: X(e, t, a, z(r), r.dataLabels?.showBackdrop, r.dataLabels?.size)
343
343
  };
344
344
  }
345
- function X(e, t, n, r, i = !1, a = D.dataPoint.valueFontSize) {
345
+ function X(e, t, n, r, i = !1, a = ie.dataPoint.valueFontSize) {
346
346
  return { sources: [{
347
347
  component: n,
348
- selector: ve.Rect,
348
+ selector: ye.Rect,
349
349
  strategy: {
350
350
  type: "bar",
351
351
  settings: {
352
352
  direction: Ne(e),
353
- fontSize: ae(a),
353
+ fontSize: oe(a),
354
354
  fontFamily: t.fonts.general.fontFamily,
355
355
  labels: [{
356
356
  label: r,
357
- placements: i ? J.map((n) => se(n, t, S(e))) : J
357
+ placements: i ? J.map((n) => ce(n, t, S(e))) : J
358
358
  }]
359
359
  }
360
360
  }
@@ -368,11 +368,11 @@ function Ne(e) {
368
368
  };
369
369
  }
370
370
  var Pe = {
371
- curve: e.Linear,
371
+ curve: u.Linear,
372
372
  line: {
373
- stroke: n.grey1,
373
+ stroke: s.grey1,
374
374
  strokeWidth: 2,
375
- strokeDasharray: te({
375
+ strokeDasharray: re({
376
376
  space: 1,
377
377
  width: 4
378
378
  }),
@@ -384,26 +384,26 @@ var Pe = {
384
384
  }, Ie = {
385
385
  enabled: !0,
386
386
  presetId: "simple-opacity"
387
- }, Z = (e, t, n) => {
388
- if (!e.showLines) return n;
389
- let r = n.collections[0].data.extract, i = "end", a = r.map((t, n) => {
390
- if (n === r.length - 1) return;
391
- let a = i;
392
- return r[n + 1].props.subTotal || (i = i === "start" ? "end" : "start"), {
393
- type: T.Line,
394
- layout: { displayOrder: y.VisualizationElement },
395
- key: `${u.Line}.${n}`,
387
+ }, Z = (e, t, r) => {
388
+ if (!e.showLines) return r;
389
+ let i = r.collections[0].data.extract, a = "end", o = i.map((t, r) => {
390
+ if (r === i.length - 1) return;
391
+ let o = a;
392
+ return i[r + 1].props.subTotal || (a = a === "start" ? "end" : "start"), {
393
+ type: C.Line,
394
+ layout: { displayOrder: b.VisualizationElement },
395
+ key: `${n.Line}.${r}`,
396
396
  data: {
397
397
  collection: W,
398
- filter: (e, t) => [n, n + 1].includes(t)
398
+ filter: (e, t) => [r, r + 1].includes(t)
399
399
  },
400
- settings: Le(e, a),
400
+ settings: Le(e, o),
401
401
  animations: Ie
402
402
  };
403
403
  });
404
404
  return {
405
- ...n,
406
- components: [...n.components, ...a.filter(Boolean)]
405
+ ...r,
406
+ components: [...r.components, ...o.filter(Boolean)]
407
407
  };
408
408
  };
409
409
  function Le(e, t) {
@@ -420,61 +420,61 @@ function Le(e, t) {
420
420
  orientation: n ? i.Vertical : i.Horizontal
421
421
  };
422
422
  }
423
- var Re = (e, t, n) => {
424
- let r = e.measures.filter(o), i = r.map((t) => C(e, t, u.Waterfall));
425
- return ue(e, t, n, {
426
- filter: (e) => e.filter((e) => e.data?.subTotal?.value || i.findIndex((t) => t === e.key) !== -1),
423
+ var Re = (e, t, r) => {
424
+ let i = e.measures.filter(o), a = i.map((t) => w(e, t, n.Waterfall));
425
+ return de(e, t, r, {
426
+ filter: (e) => e.filter((e) => e.data?.subTotal?.value || a.findIndex((t) => t === e.key) !== -1),
427
427
  placement: {
428
428
  type: "bounds",
429
429
  area: "target"
430
430
  },
431
- extract: fe({
431
+ extract: pe({
432
432
  ...e,
433
- measures: r
433
+ measures: i
434
434
  }, t, ze, () => "")
435
- }, `tooltip-${T.Box}`);
436
- }, ze = (e, t, n, r, i, a, o, c) => {
437
- let { formatter: u } = n, d = t.data, f = pe(n), p = e.filter((e) => !f.has(l(e.dataItem))), m = e.filter((e) => f.has(l(e.dataItem))).flatMap((e) => {
438
- let n = l(e.dataItem), r = Object.keys(t.data).find((e) => t.data[e]?.source?.field === n);
439
- if (!r) return [];
440
- let i = t.data[r]?.value, a = i;
441
- return !c && e?.formatter && u ? a = u(e.formatter)(i) : c && u && (a = u(w(e?.formatter))(i)), [{
442
- label: s(e) || e.label || e.dataItem.name || "",
443
- value: a
435
+ }, `tooltip-${C.Box}`);
436
+ }, ze = (e, n, r, i, a, o, s, c) => {
437
+ let { formatter: u } = r, d = n.data, f = he(r), p = e.filter((e) => !f.has(l(e.dataItem))), m = e.filter((e) => f.has(l(e.dataItem))).flatMap((e) => {
438
+ let r = l(e.dataItem), i = Object.keys(n.data).find((e) => n.data[e]?.source?.field === r);
439
+ if (!i) return [];
440
+ let a = n.data[i]?.value, o = a;
441
+ return !c && e?.formatter && u ? o = u(e.formatter)(a) : c && u && (o = u(T(e?.formatter))(a)), [{
442
+ label: t(e) || e.label || e.dataItem.name || "",
443
+ value: o
444
444
  }];
445
445
  });
446
446
  if (d.subTotal.value) {
447
- let e = d.label, n = d.reverted.value ? d.start.value : d.end.value, r;
448
- if (t.key === R) {
447
+ let e = d.label, t = d.reverted.value ? d.start.value : d.end.value, r;
448
+ if (n.key === R) {
449
449
  let e = p[p.length - 1];
450
- r = !c && e?.formatter && u ? u(e.formatter)(n) : n;
450
+ r = !c && e?.formatter && u ? u(e.formatter)(t) : t;
451
451
  } else {
452
- let e = parseInt(t.data._configOrder, 10), i = e > 0 ? p[e - 1] : void 0;
453
- r = !c && i?.formatter && u ? u(i.formatter)(n) : n;
452
+ let e = parseInt(n.data._configOrder, 10), i = e > 0 ? p[e - 1] : void 0;
453
+ r = !c && i?.formatter && u ? u(i.formatter)(t) : t;
454
454
  }
455
455
  return [{
456
456
  label: e.value.toString(),
457
457
  value: r
458
458
  }, ...m];
459
459
  } else {
460
- let t = d.series.value.toString(), n = e.find((e) => l(e.dataItem) === t), r = (d.reverted.value ? -1 : 1) * (d.end.value - d.start.value), i = r;
461
- return !c && n?.formatter && u ? i = u(n.formatter)(r) : c && u && (i = u(w(n?.formatter))(r)), [{
462
- label: (n ? s(n) : "") || n?.label || n?.dataItem.name || "",
463
- value: i
460
+ let n = d.series.value.toString(), r = e.find((e) => l(e.dataItem) === n), i = (d.reverted.value ? -1 : 1) * (d.end.value - d.start.value), a = i;
461
+ return !c && r?.formatter && u ? a = u(r.formatter)(i) : c && u && (a = u(T(r?.formatter))(i)), [{
462
+ label: (r ? t(r) : "") || r?.label || r?.dataItem.name || "",
463
+ value: a
464
464
  }, ...m];
465
465
  }
466
- }, Be = class extends ge {
466
+ }, Be = class extends _e {
467
467
  constructor() {
468
468
  super([
469
469
  De,
470
470
  Ee,
471
471
  Te,
472
- ye,
472
+ E,
473
473
  Oe,
474
474
  ke,
475
475
  Z,
476
476
  Re,
477
- ce
477
+ le
478
478
  ]);
479
479
  }
480
480
  preCompile(e, t) {
@@ -485,24 +485,24 @@ var Re = (e, t, n) => {
485
485
  let r = t + n[n.length - 1][1];
486
486
  n.push([e, r]);
487
487
  }
488
- }), t[0].items[0] = Object.fromEntries(n), Ve(e) && (e.measureProps = re);
488
+ }), t[0].items[0] = Object.fromEntries(n), Ve(e) && (e.measureProps = _);
489
489
  }
490
490
  };
491
491
  function Ve(e) {
492
492
  return e.measures.filter((e) => o(e)).every((e) => e.dataItem.internalKey.startsWith("internalKeyMeasure"));
493
493
  }
494
- var Q = g(), He = new Be(), Ue = h(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
495
- let o = m(), { activeKey: s } = ee(), c = f(), l = _(), d = _e();
496
- if (!i.isFetchingData && $(n)) return /* @__PURE__ */ (0, Q.jsx)(ne, { vBackendAPI: l });
497
- if ($(n)) return null;
498
- let p = {
499
- ...i,
500
- valuePickerMode: !!s
501
- }, h = t || a, g = He.compile(e, h, structuredClone(n), r, p, u.Waterfall, o, c, d);
502
- return g ? /* @__PURE__ */ (0, Q.jsx)(me, {
503
- config: p,
504
- definition: g,
505
- size: r,
494
+ var Q = m(), He = new Be(), Ue = f(({ vSpec: e, vTheme: t, data: r, elementSize: i, vizProperties: o }) => {
495
+ let s = te(), { activeKey: c } = ne(), l = ee(), u = p(), d = ve();
496
+ if (!o.isFetchingData && $(r)) return /* @__PURE__ */ (0, Q.jsx)(v, { vBackendAPI: u });
497
+ if ($(r)) return null;
498
+ let f = {
499
+ ...o,
500
+ valuePickerMode: !!c
501
+ }, m = t || a, h = He.compile(e, m, structuredClone(r), i, f, n.Waterfall, s, l, d);
502
+ return h ? /* @__PURE__ */ (0, Q.jsx)(ge, {
503
+ config: f,
504
+ definition: h,
505
+ size: i,
506
506
  vSpec: e
507
507
  }) : null;
508
508
  });