@astrato-io/visualizations 0.6.5 → 0.8.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 (140) hide show
  1. package/README.md +8 -2
  2. package/THIRD_PARTY_NOTICES.md +2 -229
  3. package/VISUALIZATION_DEFINITIONS.md +68 -114
  4. package/chunks/Button-BrGKp9Nm.js +110 -0
  5. package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
  6. package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
  7. package/chunks/{LinearProgress-B1FeWaen.js → LinearProgress-VtfFx2vJ.js} +55 -55
  8. package/chunks/MenuOption-ByRqhRdX.js +3934 -0
  9. package/chunks/Title-CO5dP1ma.js +1691 -0
  10. package/chunks/ToggleButton-KOBAimC1.js +112 -0
  11. package/chunks/{app-filter-bar.compiler-BGJ7HAbr.js → app-filter-bar.compiler-TwVTeoj5.js} +10 -10
  12. package/chunks/{bar.compiler-CT0ZbQKc.js → bar.compiler-DuQg8EUb.js} +84 -84
  13. package/chunks/builder-DEDvNq1k.js +201 -0
  14. package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
  15. package/chunks/color-settings-3VRlf_Vw.js +6 -0
  16. package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
  17. package/chunks/coloring-CncX_JRX.js +278 -0
  18. package/chunks/{definitions-D3OVqmXl.js → definitions-BPJQTx16.js} +490 -382
  19. package/chunks/{escobar-eDjtGpkC.js → escobar-DRhRMYRE.js} +6067 -4742
  20. package/chunks/event-bus-CrLB-Y8z.js +3 -0
  21. package/chunks/extend-preset-CUFNpmPe.js +4398 -0
  22. package/chunks/{filter.compiler-DBsyRBJt.js → filter.compiler-w27dlv0C.js} +12 -12
  23. package/chunks/{filtering-tqjAyJH5.js → filtering-cc7WqWpg.js} +391 -310
  24. package/chunks/{handlers-VTBfIZYZ.js → handlers-TOT-7INo.js} +3241 -3442
  25. package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
  26. package/chunks/isEqual-B8loyPsC.js +12 -0
  27. package/chunks/label-format-type-weq1XfcX.js +8 -0
  28. package/chunks/{line.compiler-CzdM5Ld0.js → line.compiler-Ct1WhN2p.js} +27 -27
  29. package/chunks/logger-DpQtYQnX.js +1163 -0
  30. package/chunks/lookup-BWllin0q.js +36 -0
  31. package/chunks/{metadata-BGElBy5Z.js → metadata-WABZrt7Y.js} +1 -1
  32. package/chunks/{number.compiler-G-R7y16P.js → number.compiler-D8TPly-4.js} +13 -13
  33. package/chunks/{operations-CTNUX6Sy.js → operations-Dh4v1Ovt.js} +9314 -9283
  34. package/chunks/{range-CiwTbMig.js → range-Bi-7zT0k.js} +2 -2
  35. package/chunks/render-wrappers-OEmtaM8g.js +2 -0
  36. package/chunks/{registry-CsQQzukD.js → requirements-Dvd8jqYF.js} +218 -222
  37. package/chunks/responsive.styles-DSiOGD7u.js +82 -0
  38. package/chunks/{shared-CBvcC5YV.js → shared-Bn4N5QcZ.js} +424 -424
  39. package/chunks/src-77e3mC7i.js +391 -0
  40. package/chunks/standalone-B55oyW6c.js +689 -0
  41. package/chunks/{standalone-C3gg736V.js → standalone-BDhPQtzQ.js} +375 -341
  42. package/chunks/{standalone-BMIbT1b2.js → standalone-BGkmozIb.js} +992 -837
  43. package/chunks/standalone-BMTCb10X.js +179 -0
  44. package/chunks/standalone-BXKRE_Se.js +468 -0
  45. package/chunks/standalone-Bes8srx1.js +354 -0
  46. package/chunks/standalone-BjZp0QMe.js +2 -0
  47. package/chunks/{standalone-JuLF-OoH.js → standalone-BlMIwpEe.js} +634 -519
  48. package/chunks/{standalone-C_rYnZ0N.js → standalone-C8ZAEutO.js} +43 -42
  49. package/chunks/standalone-C8qAelL4.js +2 -0
  50. package/chunks/standalone-CJvIXsQE.js +743 -0
  51. package/chunks/standalone-CLmGb7nn2.js +355 -0
  52. package/chunks/standalone-CM5XcAN5.js +52327 -0
  53. package/chunks/standalone-CXNP6-xD.js +420 -0
  54. package/chunks/{standalone-vzBY6q0I2.js → standalone-D5Q5ngsD.js} +57 -55
  55. package/chunks/standalone-DLlyRIE6.js +287 -0
  56. package/chunks/standalone-DMcI1afI.js +396 -0
  57. package/chunks/{standalone-DC-aUgXC.js → standalone-DN4S1MjT.js} +1111 -1092
  58. package/chunks/standalone-DT0wKji7.js +6 -0
  59. package/chunks/standalone-DW6NT205.js +518 -0
  60. package/chunks/standalone-DYQIQH4c.js +2095 -0
  61. package/chunks/standalone-D__XCp-h.js +1003 -0
  62. package/chunks/standalone-XTgSsTAa.js +354 -0
  63. package/chunks/{standalone-v1oxfU20.js → standalone-XuGksArp.js} +20 -20
  64. package/chunks/{standalone-0M4HlmDW2.js → standalone-vBnBS2YC.js} +1047 -964
  65. package/chunks/{standalone-BtSHCp2U2.js → standalone-we5D5MIn.js} +173 -168
  66. package/chunks/{table.compiler-tb914oj3.js → table.compiler-DMeeHxb6.js} +29 -29
  67. package/chunks/useFieldName-Cjn9KCVp.js +7 -0
  68. package/chunks/useSlotProps-DLbQp4lc.js +166 -0
  69. package/chunks/{utils-Bg7K-t6K.js → utils-vdmi_2PK.js} +6271 -7804
  70. package/chunks/{view-Bn83C8d9.js → view-BuwQugKb.js} +2717 -3504
  71. package/chunks/{isEqual-BDxAhUo8.js → visualization-filters-Cc4KU-l-.js} +1887 -1946
  72. package/chunks/with-html-element-D0uY2zjI.js +7328 -0
  73. package/definitions.js +2 -2
  74. package/docs/operations/astrato-app-filter-bar.md +1 -1
  75. package/docs/operations/bar.md +31 -14
  76. package/docs/operations/combo.md +1 -1
  77. package/docs/operations/date-picker.md +3 -3
  78. package/docs/operations/distribution-gauge.md +13 -13
  79. package/docs/operations/dot.md +13 -13
  80. package/docs/operations/filter.md +1 -1
  81. package/docs/operations/gauge.md +13 -13
  82. package/docs/operations/heatMap.md +13 -13
  83. package/docs/operations/histogram.md +1 -1
  84. package/docs/operations/iframe.md +1 -1
  85. package/docs/operations/image.md +1 -1
  86. package/docs/operations/index.md +3 -3
  87. package/docs/operations/line.md +7 -7
  88. package/docs/operations/number.md +1 -1
  89. package/docs/operations/pie.md +13 -13
  90. package/docs/operations/radar.md +7 -7
  91. package/docs/operations/sankey.md +13 -13
  92. package/docs/operations/scatter.md +13 -13
  93. package/docs/operations/shape.md +1 -1
  94. package/docs/operations/simpleTextObject.md +1 -1
  95. package/docs/operations/slider.md +1 -1
  96. package/docs/operations/table.md +18 -1
  97. package/docs/operations/tree.md +51 -37
  98. package/docs/operations/treemap.md +63 -49
  99. package/docs/operations/waterfall.md +1 -1
  100. package/docs/operations/word-cloud.md +13 -13
  101. package/getters.js +7 -7
  102. package/index.js +419 -417
  103. package/metadata.js +17 -18
  104. package/operations.js +13 -13
  105. package/package.json +70 -55
  106. package/src/definitions/index.d.ts +1 -1
  107. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +53 -30
  108. package/src/definitions/model/definitions/index.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  110. package/src/definitions/model/definitions/schemas/object.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/types/compilation.types.d.ts +10 -0
  112. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  113. package/src/getters/index.d.ts +1 -1
  114. package/src/operations/index.d.ts +1 -1
  115. package/src/types.d.ts +1 -0
  116. package/chunks/ClickAwayListener-BbeNMAvj.js +0 -52
  117. package/chunks/builder-B6dWSIdD.js +0 -12289
  118. package/chunks/coloring-B1XAfg6b.js +0 -664
  119. package/chunks/events-WZut5Ow6.js +0 -4
  120. package/chunks/grouping-type-On4s9Thj.js +0 -3
  121. package/chunks/requirements-DYjZCFyf.js +0 -6
  122. package/chunks/standalone-0ashe9w1.js +0 -411
  123. package/chunks/standalone-B7jax8wa.js +0 -339
  124. package/chunks/standalone-BK0VYU-l.js +0 -463
  125. package/chunks/standalone-BZV5vOwA.js +0 -6
  126. package/chunks/standalone-BhDrWj4p.js +0 -1980
  127. package/chunks/standalone-BvaKdky9.js +0 -344
  128. package/chunks/standalone-BwtM31-f.js +0 -2
  129. package/chunks/standalone-CC1VUjO32.js +0 -299
  130. package/chunks/standalone-CoLrAxRV.js +0 -13198
  131. package/chunks/standalone-DCtRoTWg.js +0 -675
  132. package/chunks/standalone-DUDFTBqL.js +0 -833
  133. package/chunks/standalone-DhZkX9Td.js +0 -2
  134. package/chunks/standalone-DtLElfuM.js +0 -512
  135. package/chunks/standalone-G9Q4Uczu.js +0 -726
  136. package/chunks/standalone-_DeX21JJ.js +0 -383
  137. package/chunks/standalone-gFhKZh8m.js +0 -179
  138. package/chunks/standalone-tDNy-SFH.js +0 -281
  139. package/chunks/ui-DQWtv2iM.js +0 -63551
  140. package/chunks/useFieldName-BvdcoJRl.js +0 -7
@@ -1,833 +0,0 @@
1
- import { o as e, r as t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { An as n, Cn as r, Cs as i, Fn as a, Gn as o, Io as s, Is as c, Ja as l, Ks as u, Lc as d, Mo as f, No as p, Ns as m, Pa as h, Sa as g, Si as _, Ta as v, Uc as y, Ys as b, Zr as x, fc as S, mc as ee, qr as te } from "./isEqual-BDxAhUo8.js";
3
- import { $t as ne, Ei as re, I as ie, P as ae, Yi as oe, Zi as se, d as ce, o as le } from "./utils-Bg7K-t6K.js";
4
- import { Bm as C, Pm as w, Vm as ue, xd as T } from "./handlers-VTBfIZYZ.js";
5
- import { Vt as E, mt as D } from "./ui-DQWtv2iM.js";
6
- import { n as de, t as fe } from "./grouping-type-On4s9Thj.js";
7
- import { At as pe, Bt as me, Ct as he, Ft as O, G as ge, Gt as k, Ht as _e, I as ve, Jt as A, M as ye, Mt as be, N as xe, Nt as Se, Ot as j, Pt as Ce, Q as we, Qt as M, Rt as Te, St as Ee, Tt as De, U as Oe, V as ke, Wt as Ae, X as je, Xt as N, Yt as P, Z as F, Zt as I, _t as Me, an as L, at as Ne, dn as R, et as z, i as Pe, in as Fe, j as Ie, jt as Le, mt as B, n as Re, nt as ze, q as Be, rn as V, rt as H, sn as Ve, st as He, tt as U, un as W, ut as Ue, vt as We, zt as Ge } from "./escobar-eDjtGpkC.js";
8
- import { t as Ke } from "./coloring-B1XAfg6b.js";
9
- import { t as qe } from "./set-coloring-datafield-B3uIS1Pe.js";
10
- var Je = /* @__PURE__ */ e(oe()), Ye = (e, t, n) => {
11
- let r = e.dimensions.filter((e) => _(e)), i = e.measures.filter((e) => _(e)), a = {
12
- showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
13
- formatter: r[0]?.formatter || {
14
- type: "string",
15
- format: ""
16
- },
17
- scale: P(e),
18
- key: `${j.Dimension}-${e.orientation ?? p.Vertical}`,
19
- settings: { direction: pe(e) }
20
- }, o = i[0], [s, c] = Se([a, {
21
- showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
22
- formatter: o?.formatter,
23
- scale: N(e, o),
24
- key: `${j.Measure}-${e.orientation ?? p.Vertical}`,
25
- settings: {
26
- direction: be(e),
27
- labelDock: Le(I(e), o?.secondaryAxis)
28
- }
29
- }]);
30
- return {
31
- ...n,
32
- components: [...n.components ?? [], ...s],
33
- interactions: [...n.interactions ?? [], ...c]
34
- };
35
- }, Xe = se(), Ze = (e, t, n) => {
36
- let r = de(e, t), i = fe(n);
37
- return r.includes(i) || (i = r[0]), {
38
- grouped: i === T.Groups,
39
- stacked: i === T.Stacked,
40
- offset: i === T.Offset,
41
- single: i === T.Bars
42
- };
43
- }, Qe = (e, t) => {
44
- let n = [
45
- w.Inside,
46
- w.Outside,
47
- w.Opposite
48
- ];
49
- return t && (n = [w.Inside]), (e || [
50
- {
51
- position: w.Inside,
52
- justify: 1
53
- },
54
- {
55
- position: w.Outside,
56
- justify: 0
57
- },
58
- {
59
- position: w.Opposite,
60
- justify: 0
61
- }
62
- ]).map((e) => ({
63
- ...e,
64
- possible: n.includes(e.position)
65
- }));
66
- }, G = (e) => {
67
- let t = e.measures.filter((e) => _(e)), r = e.dimensions.filter((e) => _(e)), i = t.length > 1, a = r.length > 1, o = t.length > 0 && r.length === 0, { grouped: s, stacked: c, offset: l } = Ze(r.length, t.length, e.barSettings), u = {
68
- ...e.barSettings.offset,
69
- enabled: l
70
- }, d = s ? e.barSettings.groupPadding : e.barSettings.barPadding, f = e.barSettings.barPadding, p = e.coloring?.type !== b.Gradient && e.barSettings.translucentBars, m = n(e.barSettings.barRadius, 0);
71
- return {
72
- isMeasureOnly: o,
73
- isMultiMeasure: i,
74
- isMultiDimension: a,
75
- stacked: c,
76
- stackedOffset: e.barSettings.stackedOffset,
77
- offset: u,
78
- barRadius: m,
79
- grouped: s,
80
- barPadding: d ?? Ve.scale.padding,
81
- groupPadding: f ?? Ve.scale.padding,
82
- translucentBars: p,
83
- roundAllEdges: e.barSettings.roundAllEdges,
84
- useCustomBoxRounding: !!m,
85
- ignoreOutOfBounds: e.barSettings.ignoreOutOfBounds
86
- };
87
- }, $e = (e, t) => {
88
- let [, n] = e.dimensions.filter((e) => _(e)), r = G(e);
89
- return e.coloring?.type === b.Categorical ? r.isMultiDimension ? S(n?.dataItem) : he(e, t) : De(e);
90
- }, et = (e) => {
91
- let { stacked: t } = G(e);
92
- if (t && "barSettings" in e && e.barSettings?.stackedOffset === C.Expand) {
93
- let t = e.measures.map((e) => ({
94
- ...e,
95
- formatter: {
96
- type: "excel-format",
97
- format: { formatType: s.Percentage1Decimal }
98
- }
99
- }));
100
- return {
101
- ...e,
102
- measures: t
103
- };
104
- }
105
- return { ...e };
106
- }, tt = (e, t) => {
107
- if (t.min && t.max) {
108
- let n = t.min(), r = t.max(), i = e.data.start?.value, a = e.data.end?.value;
109
- return i < n && a < n || i > r && a > r;
110
- }
111
- return !1;
112
- }, nt = (e) => {
113
- let t = I(e);
114
- return (d(e) ? e.measures.filter((e) => _(e) && !e.secondaryAxis) : []).length > 0 ? t ? M.XAxisScale : M.YAxisScale : t ? M.X2AxisScale : M.Y2AxisScale;
115
- }, K = (e) => {
116
- if (typeof e == "number") return e;
117
- if (e && typeof e == "object" && "value" in e && typeof e.value == "number") return e.value;
118
- }, rt = (e) => {
119
- if (typeof e == "string" || typeof e == "number") return e;
120
- if (e && typeof e == "object" && "value" in e) {
121
- let t = e.value;
122
- return typeof t == "string" || typeof t == "number" ? t : void 0;
123
- }
124
- }, q = (e) => String(rt(e.stackKey) ?? rt(e.value)), J = (e, t) => {
125
- let n = K(e.start), r = K(e.end);
126
- return typeof n == "number" && typeof r == "number" ? r - n : t ? K(e[t]) : void 0;
127
- }, it = (e, t, n, r, a, o, s, c) => {
128
- let l = e.dimensions.filter((e) => _(e)), { stacked: u, isMeasureOnly: d } = G(e), p = e;
129
- u && !d && (p = et(e), p.measures = p.measures.filter((e) => e.secondaryAxis !== !0)), n = Te(p, t, n, r, a, o, s, c);
130
- let m = [], h = [];
131
- if (!l.length && "axes" in e) {
132
- let n = e.axes?.dimension || {};
133
- if (!n.disabled) {
134
- let r;
135
- if (r = I(e) ? e.axes?.dimension?.secondaryAxis ? f.Right : f.Left : e.axes?.dimension?.secondaryAxis ? f.Top : f.Bottom, m.push(Ge("onlyMeasures", n, {
136
- ...t.axis.measure,
137
- ...t.fonts
138
- }, r)), n.showAxisName) {
139
- let a = x(e.dimensions, e.enableAlternate, o?.isPrintMode);
140
- h.push(me([{ dataItem: {
141
- internalKey: "Measures",
142
- uniqueSignature: i(),
143
- name: "Measures",
144
- schema: "",
145
- view: "",
146
- type: y.Dimension,
147
- dataType: Xe.FieldType.FLOAT
148
- } }], a, r, {
149
- ...t.axis.measure,
150
- ...t.fonts
151
- }, void 0, void 0, n?.titleFontSize));
152
- }
153
- }
154
- }
155
- return {
156
- ...n,
157
- components: [
158
- ...n.components,
159
- ...m,
160
- ...h
161
- ]
162
- };
163
- }, at = .2, ot = (e, t) => ({ data: n }) => {
164
- let r = /* @__PURE__ */ new Map();
165
- return (n.items || []).forEach((e) => {
166
- if (!e || typeof e != "object") return;
167
- let n = e, i = J(n, t);
168
- if (typeof i == "number") {
169
- let e = q(n);
170
- r.set(e, (r.get(e) || 0) + i);
171
- }
172
- }), (r.size ? [...r.values()].some((t) => e ? t < 0 : t > 0) : (n.fields || []).some((t) => e ? t.min() < 0 : t.max() > 0)) ? at : 0;
173
- }, st = (e, t, n, i, s, c, l) => {
174
- let d = e.dimensions.filter((e) => _(e)), f = e.measures.filter((e) => _(e)), p = G(e), m = $e(e, l), h = d[0], g = d.length, v = f.length, y = !1, b = {};
175
- if (h && "axes" in e && e?.axes?.dimension?.continuousAxis) {
176
- let e = ee(h?.dataItem), t = !!h.datePart, n = r(e) || a(e);
177
- y = !t && n;
178
- }
179
- let x = y ? L.Linear : L.Band;
180
- if (b = Ee(qe(e, m), t, b, n.collections, l), b = ge(e, b, n.collections, y), p.grouped) {
181
- let e, t;
182
- p.isMultiDimension ? (e = S(d[1]?.dataItem), t = { extract: { field: e } }) : p.isMultiMeasure && (e = "measures", t = f.map((e) => S(e.dataItem))), b[e] = {
183
- data: t,
184
- type: x,
185
- min: 0,
186
- max: 1,
187
- padding: p.groupPadding
188
- };
189
- }
190
- if (p.stacked || p.offset?.enabled && g === 1 && v === 1) {
191
- let t = f[0].secondaryAxis ? e.axes?.secondaryMeasure : e.axes?.primaryMeasure, n = ke(t);
192
- b[N(e, f[0])] = {
193
- invert: Oe(!I(e), t),
194
- data: { collection: M.Collection },
195
- ...n,
196
- ...p.stacked && e.barSettings.showTotal && n.type !== L.Log ? {
197
- expandMin: ot(!0, S(f[0]?.dataItem)),
198
- expandMax: ot(!1, S(f[0]?.dataItem))
199
- } : {}
200
- };
201
- }
202
- return p.isMeasureOnly && (b.onlyMeasures = {
203
- data: { items: f.map((e) => {
204
- let t = o(e) || e.label || e.dataItem.name;
205
- return {
206
- value: S(e.dataItem),
207
- label: t
208
- };
209
- }) },
210
- padding: p.barPadding,
211
- type: x,
212
- value: (e) => `${e.datum.value.value}`,
213
- label: (e) => `${e.datum.value.label}`
214
- }, p.stacked && (b[N(e, f[0])].data = { collection: "collection-no-dimension" }, b.onlyMeasures.data = { items: [{
215
- value: "measures",
216
- label: "measures"
217
- }] })), e.type === u.Bar && f.forEach((t) => {
218
- let n = t.secondaryAxis ? e.axes?.secondaryMeasure : e.axes?.primaryMeasure;
219
- if (n?.axisRange || n?.scale === ue.Log) return;
220
- let r = b[N(e, t)];
221
- r && (r.include = [0]);
222
- }), {
223
- ...n,
224
- scales: b
225
- };
226
- }, ct = { outOfRangeTitle: "axis out range" }, Y = {
227
- StackTotal: "stackTotal",
228
- StackTotalLabel: "stackTotalLabel",
229
- Ratio: "ratio"
230
- }, X = { Share: "share" }, lt = (e, t, n, r, i, a, o) => {
231
- let c = e.dimensions.filter((e) => _(e)), l = e.measures.filter((e) => _(e)), u = ye((e.supportingMeasures ?? []).filter((e) => _(e))), [d, f] = c, p = l[0], m = G(e), h = S(d?.dataItem), g = S(f?.dataItem), v = S(p?.dataItem);
232
- if (m.isMeasureOnly) {
233
- let e = [];
234
- l.forEach((t) => {
235
- let n = S(t.dataItem);
236
- e.push({
237
- field: n,
238
- props: {
239
- stackKey: "measures",
240
- [n]: { field: n },
241
- ...u,
242
- series: n,
243
- [k.property]: _e(t),
244
- start: 0,
245
- color: n,
246
- end: { field: n },
247
- secondaryAxis: t.secondaryAxis,
248
- isMultipleMeasures: m.isMultiMeasure
249
- }
250
- });
251
- });
252
- let t = {
253
- key: "collection-no-dimension",
254
- data: {
255
- extract: e,
256
- filter: (e) => (e[k.property].source = {
257
- field: k.field,
258
- key: k.sourceKey
259
- }, !0)
260
- }
261
- };
262
- return m.stacked && (t.data.stack = {
263
- stackKey: (e) => `${e.stackKey.value}`,
264
- value: (e) => e.end.value,
265
- offset: C.Diverging
266
- }), {
267
- ...n,
268
- collections: [t]
269
- };
270
- }
271
- let y = {
272
- key: "collection",
273
- data: { extract: [] }
274
- };
275
- if (m.isMultiMeasure) {
276
- let e = l.reduce((e, t) => {
277
- let n = S(t.dataItem);
278
- return e[n] = { field: n }, e;
279
- }, {});
280
- y.data.extract = l.map((t) => {
281
- let n = S(t.dataItem);
282
- return {
283
- field: h,
284
- props: {
285
- end: { field: n },
286
- series: n,
287
- color: n,
288
- ...e,
289
- ...u,
290
- start: 0,
291
- secondaryAxis: t.secondaryAxis,
292
- isMultipleMeasures: m.isMultiMeasure
293
- }
294
- };
295
- });
296
- } else {
297
- let t = $e(e, o), n = "coloring" in e && e.coloring?.type === b.Single;
298
- y.data.extract.push({
299
- field: h,
300
- props: {
301
- ...m.isMultiDimension && { series: { field: g } },
302
- start: 0,
303
- end: { field: v },
304
- color: n ? v : { field: t },
305
- [v]: { field: v },
306
- ...u,
307
- secondaryAxis: p.secondaryAxis,
308
- isMultipleMeasures: m.isMultiMeasure
309
- }
310
- });
311
- }
312
- if (m.stacked && "barSettings" in e) y.data.stack = {
313
- stackKey: (e) => `${e.value}`,
314
- value: (e) => e.end.value,
315
- offset: e.barSettings?.stackedOffset || C.Diverging
316
- };
317
- else if (m.offset?.enabled) {
318
- let e = m.offset?.totalLabel ?? "Total";
319
- y.data.stack = {
320
- stackKey: m.offset?.showTotal ? (t) => +(t.value === e) : () => 0,
321
- value: (e) => e.end.value
322
- };
323
- }
324
- let x = { [X.Share]: {
325
- type: "excel-format",
326
- format: { formatType: s.Percentage1Decimal }
327
- } };
328
- return l?.forEach((e, t) => {
329
- x[`measure-${t}`] = e.formatter || {
330
- type: "excel-format",
331
- format: { formatType: s.None }
332
- };
333
- }), {
334
- ...n,
335
- collections: [y],
336
- formatters: x
337
- };
338
- }, ut = (e, t) => t || e.colors.brandColors[0], dt = (e, t, n, r) => {
339
- let i = e.dimensions.filter((e) => _(e)), a = e.measures.filter((e) => _(e));
340
- if (!i?.[0] || !r.offset?.enabled || !r.offset?.showLine) return null;
341
- let o = P(e), s = N(e, a[0]), c = {
342
- scale: o,
343
- fn: n.scales[o]?.type === L.Linear ? void 0 : (e) => {
344
- let t = e.scale;
345
- return t(e.datum.value) + t.bandwidth();
346
- }
347
- }, l = {
348
- scale: o,
349
- fn: (e, t) => e.data.items[t + 1] ? e.scale(e.data.items[t + 1].value) : 1
350
- }, u = {
351
- scale: s,
352
- ref: "end"
353
- }, d = e.orientation === p.Horizontal ? {
354
- y0: c,
355
- y1: l,
356
- x0: u,
357
- x1: u
358
- } : {
359
- y0: u,
360
- y1: u,
361
- x0: c,
362
- x1: l
363
- };
364
- return {
365
- key: "bar-bridge",
366
- type: R.LineCoord,
367
- data: { collection: "collection" },
368
- settings: {
369
- ...d,
370
- show: (e, t) => !!e.data.items[t + 1],
371
- stroke: r.offset.lineColor ?? t.axis.dimension.lineColor,
372
- strokeWidth: 1,
373
- strokeDasharray: "2 2",
374
- opacity: 1
375
- },
376
- animations: {
377
- enabled: !0,
378
- presetId: "simple-opacity"
379
- }
380
- };
381
- }, ft = (e, t) => (n) => {
382
- if (typeof n.datum.end.value != "number") return null;
383
- let r = new D(typeof t == "function" ? t(n) : t), i = [{
384
- color: r.rgb(),
385
- opacity: 1,
386
- offset: +(n.datum.end.value < 0)
387
- }, {
388
- color: r.rgb(),
389
- opacity: .65,
390
- offset: n.datum.end.value < 0 ? 0 : 1
391
- }];
392
- return n.datum.end.value < 0 && i.reverse(), {
393
- type: "gradient",
394
- degree: I(e) ? 0 : 90,
395
- stops: i
396
- };
397
- }, pt = (e, t, n, r, i, a) => {
398
- let o = e.dimensions.filter((e) => _(e)), s = e.measures.filter((e) => _(e)), c = G(e), l = { scale: P(e) };
399
- c.isMeasureOnly && (l = {
400
- scale: "onlyMeasures",
401
- ref: c.stacked ? "stackKey" : "series"
402
- });
403
- let u = new Ke(e, t, i?.[0]?.itemsNotAffectedByFiltering), d = o.reduce((e, t) => (e[S(t.dataItem)] = !0, e), {}), f = s.reduce((n, r, i) => {
404
- if (c.stacked && i !== 0) return n;
405
- let o = { collection: M.Collection };
406
- if (c.isMeasureOnly && (o = {
407
- collection: "collection-no-dimension",
408
- filter: (e) => c.stacked || e?.source?.field === S(r.dataItem)
409
- }), c.grouped) {
410
- let e = S(r.dataItem);
411
- o = {
412
- ...o,
413
- filter: (t) => t.series?.source?.field ? d[t.series?.source?.field] : t.series?.value === e
414
- };
415
- }
416
- let s = { overwriteSources: [u.MAIN_FIELD, "series"] };
417
- (e.coloring?.type === b.Categorical || e.coloring?.type === b.Gradient) && (s.ref = "color");
418
- let f = u.getColorDefinition(s);
419
- c?.translucentBars && (f = ft(e, f));
420
- let p = {
421
- scale: N(e, r),
422
- ref: "end"
423
- }, m = _t(e, t, l, p, f);
424
- return [...n, gt(e, r, m, o, a)];
425
- }, []);
426
- if (m(e)) {
427
- let r = dt(e, t, n, c);
428
- r && f.push(r);
429
- }
430
- return {
431
- ...n,
432
- components: [...n.components, ...f]
433
- };
434
- }, mt = (e) => {
435
- let t = [], n = e.dimensions.filter((e) => _(e));
436
- return n.length || t.push(k.property), n?.[0] && t.push(""), n?.[1] && t.push("series"), t;
437
- }, ht = (e) => {
438
- let t, n = G(e), r = e.measures.filter((e) => _(e));
439
- if (n.stacked && r.length > 0) {
440
- let e = S(r[0].dataItem);
441
- t = function() {
442
- let t = {}, r = {}, i = {}, a = (e) => {
443
- let t = e.end?.value;
444
- return typeof t == "number" ? t : void 0;
445
- }, o = this.data.items;
446
- o.forEach((n) => {
447
- let o = q(n), s = J(n, e);
448
- if (r[o] || (r[o] = {
449
- positive: void 0,
450
- negative: void 0
451
- }), i[o] || (i[o] = {
452
- highest: void 0,
453
- lowest: void 0
454
- }), typeof s == "number") {
455
- t[o] = (t[o] || 0) + s, s > 0 ? r[o].positive = n : s < 0 && (r[o].negative = n);
456
- let e = a(n);
457
- if (typeof e == "number") {
458
- let { highest: t, lowest: r } = i[o];
459
- (!t || e > a(t)) && (i[o].highest = n), (!r || e < a(r)) && (i[o].lowest = n);
460
- }
461
- }
462
- }), o.forEach((a) => {
463
- let o = q(a), s = t[o] || 0, c = (s >= 0 ? i[o].highest : i[o].lowest) ?? (s >= 0 ? r[o].positive : r[o].negative);
464
- if (a[Y.StackTotal] = { value: s }, a[Y.StackTotalLabel] = { value: +(c === a) }, n.isMultiDimension) {
465
- let t = J(a, e), n = typeof t == "number" && s !== 0 ? t / s : 0;
466
- a[Y.Ratio] = { value: Number.isFinite(n) ? n : 0 };
467
- }
468
- });
469
- };
470
- }
471
- return t;
472
- }, gt = (e, t, n, r, i) => {
473
- let a = ht(e), o = e.dimensions.filter((e) => _(e)).length > 1, s = e.measures.filter((e) => _(e)), c = G(e).stacked && o && s.length === 1, l = Ae(mt(e), i, { valuePickerMode: i?.valuePickerMode }, c ? W.AndSubset : void 0);
474
- return {
475
- type: R.Box,
476
- layout: { displayOrder: O.VisualizationElement },
477
- key: B(e, t, u.Bar),
478
- data: r,
479
- settings: n,
480
- animations: {
481
- enabled: !0,
482
- presetId: "bar-chart"
483
- },
484
- beforeRender: a,
485
- brush: l
486
- };
487
- }, _t = (e, t, r, i, a) => {
488
- let o = e.dimensions.filter((e) => _(e)), s = e.measures.filter((e) => _(e)), [, c] = o, l = G(e), u = {
489
- orientation: e.orientation ?? p.Vertical,
490
- major: r,
491
- minor: i,
492
- box: {
493
- minWidthPx: 2,
494
- ref: "",
495
- rx: n(l.barRadius, 0),
496
- fill: a,
497
- stacked: l.stacked,
498
- grouped: l.grouped,
499
- boxPadding: l.barPadding,
500
- groupPadding: l.groupPadding,
501
- itemsInStackCount: s?.length,
502
- roundAllEdges: l.roundAllEdges ?? !1,
503
- useCustomBoxRounding: l.useCustomBoxRounding ?? !1,
504
- ignoreOutOfBounds: l.ignoreOutOfBounds ?? !1
505
- }
506
- };
507
- if (e.barSettings?.strokeEnabled ? (u.box.stroke = ut(t, e.barSettings?.strokeColor), u.box.strokeWidth = e.barSettings?.strokeWidth) : u.box.stroke = v.transparent, !l.isMeasureOnly && l.grouped && !e?.axes?.dimension?.continuousAxis) {
508
- let t = l.isMultiDimension ? S(c?.dataItem) : "measures";
509
- u.major.fn = (n) => {
510
- let r = n.resources.scale(P(e)), i = n.resources.scale(t), a = r.bandwidth(), o = i.bandwidth();
511
- return Number(r(n.datum.value)) + .5 * a - .5 * (1 / o - 1) * o * a + a * Number(i(n.datum.series.value));
512
- }, u.box.width = (e) => e.resources.scale(t).bandwidth();
513
- }
514
- return u;
515
- }, vt = new D(E.fontLight), yt = new D(E.fontDark), bt = (e) => {
516
- switch (!0) {
517
- case e.grouped: return "grouped";
518
- case e.stacked: return "stacked";
519
- default: return "normal";
520
- }
521
- }, xt = (e, t, n, r, i, a) => {
522
- let o = G(e), s = e.dimensions.filter(_), c = e.measures.filter(_), l = c[0], d = o.stacked && s.length > 1 && c.length === 1;
523
- if (!l?.dataLabels?.show) return n;
524
- let f = S(l.dataItem), p = new D(t.fonts.general.color), m = ({ node: e }) => {
525
- let t = e.attrs, n = t?.fill && t.fill !== "transparent", r = n && t.fill?.type === "gradient" ? t.fill?.stops?.[0]?.color : t?.fill;
526
- return new D(n ? r : "#ffffff").betterContrast(p, vt, yt).rgb();
527
- }, g = [], v = l.dataLabels.displayParts?.includes(h.Value), y = l.dataLabels.displayParts?.includes(h.Ratio);
528
- (v || !l.dataLabels.displayParts && o.stackedOffset !== C.Expand) && g.push({
529
- id({ node: e }) {
530
- return `${e.data._ID}::value`;
531
- },
532
- linkData({ node: e }) {
533
- return e.data;
534
- },
535
- fill: m,
536
- label({ node: e, formatter: t }) {
537
- return t("measure-0")(e.data[f].value, void 0, e.data);
538
- },
539
- hideEllipsed: !0
540
- }), (y || !l.dataLabels.displayParts && o.stackedOffset === C.Expand) && g.push({
541
- id({ node: e }) {
542
- return `${e.data._ID}::ratio`;
543
- },
544
- linkData({ node: e }) {
545
- return e.data;
546
- },
547
- fill: m,
548
- label({ node: e, formatter: t }) {
549
- return t(X.Share)(e.data[Y.Ratio].value);
550
- },
551
- hideEllipsed: !0
552
- });
553
- let b = {
554
- key: "bar-labels-stacked-0",
555
- type: R.Labels,
556
- layout: { displayOrder: O.Labels },
557
- settings: { sources: [{
558
- component: B(e, e.measures.filter(_)?.[0], u.Bar),
559
- selector: V.Rect,
560
- strategy: {
561
- type: "rows",
562
- settings: {
563
- justify: .5,
564
- align: .5,
565
- fontSize: A(l.dataLabels?.size),
566
- fontFamily: t.fonts.general.fontFamily,
567
- labels: g
568
- }
569
- }
570
- }] },
571
- ...a?.disable?.brushing ? {} : { brush: { consume: [{
572
- context: Fe.Selection,
573
- data: ["", "series"],
574
- mode: d ? W.AndSubset : W.And,
575
- style: { inactive: { opacity: .3 } }
576
- }] } },
577
- animations: {
578
- presetId: "simple-opacity",
579
- enabled: !0
580
- }
581
- };
582
- return {
583
- ...n,
584
- components: [...n.components, b]
585
- };
586
- }, St = (e, t, n) => {
587
- let r = G(e), i = ({ data: t }) => t ? t.end.value > t.start.value ? I(e) ? "right" : "up" : I(e) ? "left" : "down" : null, a = I(e), o = [], s = e.measures.filter(_);
588
- return e.measures.forEach((n, c) => {
589
- if (n.dataLabels?.show) {
590
- let l = s.indexOf(n), d = r.stacked ? e.measures.filter(_)?.[0] : n, f = bt(r), p = Qe(n.dataLabels.barLabelPlacements, r.stacked).filter((e) => e.possible).map((e) => ({
591
- position: e.position,
592
- justify: e.justify,
593
- overflow: [w.Outside, w.Opposite].includes(e.position),
594
- fill: e.position === w.Inside ? "#fff" : "#242424"
595
- }));
596
- n.dataLabels?.showBackdrop && !r.stacked && (p = p.map((e) => xe(e, t, a, n.dataLabels?.backdropColor))), o.push({
597
- key: `bar-labels-${f}-${c}`,
598
- type: R.Labels,
599
- layout: { displayOrder: O.Labels },
600
- settings: { sources: [{
601
- component: B(e, d, u.Bar),
602
- selector: V.Rect,
603
- strategy: {
604
- type: "bar",
605
- settings: {
606
- direction: i,
607
- fontSize: A(n.dataLabels?.size),
608
- fontFamily: t.fonts.general.fontFamily,
609
- labels: [{
610
- label: ve(n, l >= 0 ? `measure-${l}` : void 0),
611
- placements: p
612
- }]
613
- }
614
- }
615
- }] },
616
- animations: {
617
- enabled: !0,
618
- presetId: "chart-labels"
619
- }
620
- });
621
- }
622
- }), {
623
- ...n,
624
- components: [...n.components, ...o]
625
- };
626
- }, Ct = (e, t, n, r, i, a) => {
627
- let o = G(e);
628
- return o.isMultiDimension && o.stacked ? xt(e, t, n, r, i, a) : St(e, t, n, r);
629
- }, wt = (e) => {
630
- let t = e.measures.filter(_), n = t[t.length - 1];
631
- return !!n?.formatter && te(n.formatter);
632
- }, Tt = (e, t) => {
633
- let n = t.data[Y.StackTotal]?.value;
634
- return typeof n == "number" ? n : e.measures.filter(_).reduce((e, n) => {
635
- let r = t.data[S(n.dataItem)]?.value;
636
- return e + (typeof r == "number" ? r : 0);
637
- }, 0) || void 0;
638
- }, Et = (e) => ({ node: t }) => {
639
- let n = Tt(e, t);
640
- if (typeof n != "number") return null;
641
- let r = n >= 0;
642
- return I(e) ? r ? "right" : "left" : r ? "up" : "down";
643
- }, Dt = (e, t, n) => {
644
- if (t.data[Y.StackTotalLabel]) return Math.round(t.data[Y.StackTotalLabel].value) === 1;
645
- let r = t.data.end?.value;
646
- if (typeof r != "number" || e.barSettings.stackedOffset === C.Expand) return !1;
647
- if (t.data[Y.StackTotal]) return Math.round(r) === Math.round(n);
648
- let i = [...e.measures.filter(_)].reverse().find((e) => {
649
- let r = t.data[S(e.dataItem)]?.value;
650
- return typeof r == "number" && (n >= 0 ? r > 0 : r < 0);
651
- });
652
- return t.data.series?.value === S(i?.dataItem);
653
- }, Ot = (e, t) => {
654
- if (!e.barSettings.showTotal || !G(e).stacked) return;
655
- let n = e.measures.filter(_), r = n[0], i = n.length - 1;
656
- if (!(!r || i < 0)) return {
657
- key: "bar-labels-stacked-total",
658
- type: R.Labels,
659
- layout: { displayOrder: O.Labels },
660
- settings: { sources: [{
661
- component: B(e, r, u.Bar),
662
- selector: V.Rect,
663
- strategy: {
664
- type: "bar",
665
- settings: {
666
- direction: Et(e),
667
- fontSize: A(r.dataLabels?.size),
668
- fontFamily: t.fonts.general.fontFamily,
669
- labels: [{
670
- label({ node: t, formatter: n }) {
671
- let r = Tt(e, t);
672
- if (r === void 0 || !Dt(e, t, r)) return "";
673
- if (e.barSettings.stackedOffset === C.Expand) {
674
- let t = r < 0 ? -1 : 1;
675
- return wt(e) ? n(X.Share)(t) : String(t);
676
- }
677
- return n(`measure-${i}`)(r);
678
- },
679
- placements: [{
680
- position: w.Outside,
681
- fill: "#242424",
682
- justify: 0,
683
- overflow: !0
684
- }]
685
- }]
686
- }
687
- }
688
- }] },
689
- animations: {
690
- enabled: !0,
691
- presetId: "chart-labels"
692
- }
693
- };
694
- }, kt = (e, t, n) => {
695
- let r = Ot(e, t);
696
- return r ? {
697
- ...n,
698
- components: [...n.components, r]
699
- } : n;
700
- }, At = (e, t, n, r, i) => {
701
- let a = e.measures.filter((e) => _(e)), o = G(e), s = a.map((t) => B(e, t, u.Bar)), c = jt(e), l = o.grouped && o.isMultiMeasure ? U(e, i) : void 0, d = F(e, t, ze, c, i && i[0] ? i[0].sum : void 0, l);
702
- if (o.stacked) {
703
- let n = U(e, i), r = o?.stackedOffset === C.Expand, a = o.isMultiDimension ? Nt(n, r) : Pt(n, r);
704
- d = F(et(e), t, a, c);
705
- }
706
- return o.isMeasureOnly && (d = F(e, t, Ft, c)), je(e, t, n, {
707
- filter: (e) => e.filter((e) => s.findIndex((t) => t === e.key) !== -1),
708
- placement: {
709
- type: "bounds",
710
- area: "target"
711
- },
712
- extract: d
713
- }, `tooltip-${R.Box}`);
714
- }, jt = (e) => (t, n, r) => [Mt(e, n, r), we(t, n, r)].filter((e) => e?.length > 0).join("\n"), Mt = (e, t, n) => {
715
- let r = nt(e);
716
- return tt(t, n.scale(r)) ? ct.outOfRangeTitle : "";
717
- }, Z = (e, t, n, r, i) => {
718
- let a = i && !l(e.formatter) ? H(e.formatter) : e.formatter;
719
- return r.formatter(a)(t, void 0, n.data);
720
- }, Nt = (e, t = !1) => (n, r, i, a, s, c, l, u) => {
721
- let d = n.filter((e) => _(e)), f = z(i), p = d.filter((e) => !f.has(S(e.dataItem))), m = d.map((e) => {
722
- let t = S(e.dataItem), n = Object.keys(r.data).find((t) => r.data[t]?.source?.field === S(e.dataItem)), a;
723
- if (r.data.end?.value !== void 0 && r.data.start?.value !== void 0 && !f.has(t)) a = r.data.end.value - r.data.start.value;
724
- else if (n) a = r.data[n].value;
725
- else return {
726
- label: "",
727
- value: ""
728
- };
729
- let s = o(e), c = a;
730
- return (e.formatter || u) && (c = Z(e, a, r, i, u)), {
731
- label: s || e.label || e.dataItem.name || "",
732
- value: c
733
- };
734
- });
735
- if (!l && e && e[r?.data?.value]) {
736
- let n, a = p[0]?.formatter?.format?.formatType;
737
- t && It(a) ? n = "100%" : (n = e[r?.data?.value], !u && p[0]?.formatter ? n = i.formatter(p[0].formatter)(e[r?.data?.value]) : u && (n = i.formatter(H(p[0]?.formatter))(e[r?.data?.value]))), m.push({
738
- label: "Total",
739
- value: n
740
- });
741
- }
742
- return m;
743
- }, Pt = (e, t = !1) => (n, r, i, a, s, c, l, u) => {
744
- let d = n.filter((e) => _(e)), f = z(i), p = d.filter((e) => !f.has(S(e.dataItem))), m = d.map((e) => {
745
- let t = r.data.end?.value !== void 0 && r.data.start?.value !== void 0, n = S(e.dataItem), a = f.has(n), s;
746
- if (t && r.data.series?.value.toString() === n) s = r.data.end.value - r.data.start.value;
747
- else if (a) {
748
- let e = Object.keys(r.data).find((e) => r.data[e]?.source?.field === n);
749
- s = e ? r.data[e]?.value : void 0;
750
- }
751
- if (s === void 0) return {
752
- label: "",
753
- value: ""
754
- };
755
- let c = o(e), l = s;
756
- return (e.formatter || u) && (l = Z(e, s, r, i, u)), {
757
- label: c || e.label || e.dataItem.name || "",
758
- value: l
759
- };
760
- });
761
- if (!l && e && e[r?.data?.value]) {
762
- let n = p[p.length - 1], a, o = n?.formatter?.format?.formatType;
763
- t && It(o) ? a = "100%" : (a = e[r?.data?.value], !u && n?.formatter ? a = i.formatter(n.formatter)(e[r?.data?.value]) : u && (a = i.formatter(H(n?.formatter))(e[r?.data?.value]))), m.push({
764
- label: "Total",
765
- value: a
766
- });
767
- }
768
- return m;
769
- }, Ft = (e, t, n) => {
770
- let r = e.filter((e) => _(e)), i = z(n), a = t.data.series?.value?.toString(), s = a ? t.data[a]?.value : void 0, c = r.find((e) => S(e.dataItem) === a), l = o(c) || c?.label || c?.dataItem?.name, u = [];
771
- return l && s !== void 0 && u.push({
772
- label: l,
773
- value: c?.formatter && n ? Z(c, s, t, n) : s
774
- }), r.filter((e) => i.has(S(e.dataItem))).forEach((e) => {
775
- let r = S(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r), a = i ? t.data[i]?.value : void 0;
776
- if (a === void 0) return;
777
- let s = o(e) || e.label || e.dataItem.name || "";
778
- u.push({
779
- label: s,
780
- value: e.formatter && n ? Z(e, a, t, n) : a
781
- });
782
- }), u;
783
- }, It = (e) => e === s.PercentageNoDecimal || e === s.Percentage1Decimal || e === s.Percentage2Decimal, Lt = (e, t, n) => {
784
- let r = e.barSettings?.offset?.enabled ?? !1, i = e.dimensions.filter((e) => _(e)), a = e.measures.filter((e) => _(e));
785
- return i.length === 1 && a.length === 1 && !r ? Be(e, t, n) : n;
786
- }, Q = class extends Ie {
787
- constructor() {
788
- super([
789
- lt,
790
- st,
791
- it,
792
- We,
793
- Me,
794
- He,
795
- pt,
796
- Ct,
797
- kt,
798
- Ne,
799
- Lt,
800
- At,
801
- Ye,
802
- Ce,
803
- Ue
804
- ]);
805
- }
806
- preCompile(e) {
807
- let t = e, { stacked: n } = G(t);
808
- n && (t.measures = t.measures.map((e) => ({
809
- ...e,
810
- secondaryAxis: !1
811
- })));
812
- }
813
- }, Rt = re(), $ = ne(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
814
- let a = ae(), [o] = (0, Je.useState)(() => new Q()), s = ce(), { activeKey: l } = le(), d = ie(), f = Re();
815
- if (!e || !n || !r || !m(e) && !c(e)) return null;
816
- let p = {
817
- ...i,
818
- valuePickerMode: !!l
819
- }, h = t || g, _ = o.compile(e, h, n, r, {
820
- ...p,
821
- onRenderDone: s
822
- }, u.Bar, a, d, f);
823
- return _ ? /* @__PURE__ */ (0, Rt.jsx)(Pe, {
824
- config: p,
825
- definition: _,
826
- size: r,
827
- vSpec: e
828
- }) : null;
829
- }), zt = /* @__PURE__ */ t({
830
- BarChart: () => $,
831
- BarChartCompiler: () => Q
832
- });
833
- export { $ as n, Q as r, zt as t };