@astrato-io/visualizations 0.9.0 → 0.10.1

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 (144) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +7 -3
  3. package/THIRD_PARTY_NOTICES.md +163 -14
  4. package/VISUALIZATION_DEFINITIONS.md +376 -36
  5. package/chunks/{Button-5CxPEACP.js → Button-Dn3rJrYf.js} +4 -4
  6. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-BFeu06Yb.js} +39 -39
  7. package/chunks/FieldTypeIcon-DrMoGpHJ.js +22 -0
  8. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-ClO6GUjN.js} +9 -9
  9. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-Czc34u4q.js} +143 -142
  10. package/chunks/{Title-CtFw1bVg.js → Title-BgYnaVTR.js} +22 -22
  11. package/chunks/_createAggregator-BMu9uRax.js +50 -0
  12. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-CVir0wkl.js} +10 -10
  13. package/chunks/bar-layout-C_UgRlVl.js +9 -0
  14. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-DYuFdi9J.js} +100 -82
  15. package/chunks/{builder-Dxo7D7c6.js → builder-C-TKA-My.js} +70 -37
  16. package/chunks/color-rules-DYJL4fIW.js +15 -0
  17. package/chunks/color-settings-DJFoFTip.js +5 -0
  18. package/chunks/{coloring-B-Wa8D5P.js → coloring-BtnPiQ_o.js} +37 -37
  19. package/chunks/createSimplePaletteValueFilter--zrZxRV9.js +2005 -0
  20. package/chunks/defaults-Dtk7fg3C.js +3 -0
  21. package/chunks/{definitions-DNpzD9tY.js → definitions-CT304NDn.js} +655 -417
  22. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CvEV2ES1.js} +7441 -7127
  23. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D9-JP92b.js} +998 -933
  24. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-CXeZznks.js} +7 -7
  25. package/chunks/{filtering-CGuLpg7u.js → filtering-8_bFv-jb.js} +333 -377
  26. package/chunks/handlers-C6CZ0XJA.js +15399 -0
  27. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-BXiJ1SZS.js} +11 -11
  28. package/chunks/isEqual-D8Ay63xR.js +16 -0
  29. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-DmHpmQCC.js} +9 -9
  32. package/chunks/{logger-3lng-wOw.js → logger-DdZpR7xZ.js} +79 -72
  33. package/chunks/map.compiler-Q_Y1Pvat.js +343 -0
  34. package/chunks/{metadata-Fmx1swpK.js → metadata-BQm_TXI1.js} +1 -1
  35. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-DQdg6zTy.js} +7 -7
  36. package/chunks/operations-DKQWuLL7.js +31315 -0
  37. package/chunks/{range-CzO4isKK.js → range-BdhzvYQ_.js} +2 -2
  38. package/chunks/{react-dom-BwZT0N3F.js → react-dom-BGP4tbXV.js} +70 -70
  39. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-BZpyDnJy.js} +1 -1
  40. package/chunks/{requirements-CYpVh65U.js → requirements-e8Fe96ag.js} +60 -58
  41. package/chunks/shared-C_2F90xq.js +1337 -0
  42. package/chunks/standalone-4MsKiqs0.js +355 -0
  43. package/chunks/standalone-B794g9pE.js +1012 -0
  44. package/chunks/{standalone-C6XDHYAM.js → standalone-B8ZSqauS.js} +110 -110
  45. package/chunks/{standalone-5DnapeHH.js → standalone-BA2YXyJS.js} +126 -124
  46. package/chunks/{standalone-CXniic5x.js → standalone-BDrXVxlP.js} +6 -5
  47. package/chunks/{standalone-B6s_xG2u.js → standalone-BE_ONgiG.js} +116 -116
  48. package/chunks/{standalone-CPUiiWNP.js → standalone-BTY3w_JA.js} +37 -37
  49. package/chunks/standalone-BgumbdaJ2.js +357 -0
  50. package/chunks/{standalone-DWPfdP0A.js → standalone-BkbiH-o8.js} +482 -482
  51. package/chunks/standalone-Blh4qejk.js +689 -0
  52. package/chunks/standalone-CXY4FpF7.js +773 -0
  53. package/chunks/{standalone-BvWdpUL3.js → standalone-CY_kjarf.js} +34 -31
  54. package/chunks/{standalone-DuwTOBXH.js → standalone-CaTxAydz.js} +587 -587
  55. package/chunks/{standalone-BDrQMxLi.js → standalone-Cc98Pdr6.js} +1799 -1015
  56. package/chunks/{standalone-DMCwtebn.js → standalone-Cl0TSfqC.js} +125 -125
  57. package/chunks/{standalone-CoQxJ6ov.js → standalone-CsoMmE9T.js} +778 -778
  58. package/chunks/standalone-DH0xTEes.js +2 -0
  59. package/chunks/{standalone-LFVgLhia.js → standalone-DHRalbVO.js} +311 -303
  60. package/chunks/standalone-DNh9NcMa.js +580 -0
  61. package/chunks/standalone-DcnHjNnC.js +2 -0
  62. package/chunks/{standalone-r4ObFvys.js → standalone-DflyWtuR.js} +217 -215
  63. package/chunks/standalone-DrHdGkY7.js +762 -0
  64. package/chunks/standalone-c_rROMtx.js +287 -0
  65. package/chunks/standalone-drcFLeN6.js +6 -0
  66. package/chunks/{standalone-CNkHsynO.js → standalone-wOWRCpdn.js} +54 -56
  67. package/chunks/{standalone-Cu73fzSr.js → standalone-z0o52o5t.js} +5128 -4908
  68. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-COaHE9VD.js} +18 -18
  69. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-CdnCWzhd.js} +1 -1
  70. package/chunks/{utils-DYYD4Zzf.js → utils-DganVptf.js} +4758 -4747
  71. package/chunks/{view-7fH6mGmY.js → view-Bzlros43.js} +2021 -1665
  72. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-D7i6oh1Z.js} +3177 -2425
  73. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-CiIhFEa5.js} +3740 -3547
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +303 -2
  77. package/docs/operations/combo.md +262 -1
  78. package/docs/operations/date-picker.md +1 -1
  79. package/docs/operations/distribution-gauge.md +1 -1
  80. package/docs/operations/dot.md +148 -1
  81. package/docs/operations/filter.md +1 -1
  82. package/docs/operations/gauge.md +1 -1
  83. package/docs/operations/heatMap.md +1 -1
  84. package/docs/operations/histogram.md +262 -1
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +7 -7
  88. package/docs/operations/line.md +280 -1
  89. package/docs/operations/number.md +1 -1
  90. package/docs/operations/pie.md +1 -1
  91. package/docs/operations/radar.md +1 -1
  92. package/docs/operations/sankey.md +1 -1
  93. package/docs/operations/scatter.md +148 -1
  94. package/docs/operations/shape.md +1 -1
  95. package/docs/operations/simpleTextObject.md +1 -1
  96. package/docs/operations/slider.md +1 -1
  97. package/docs/operations/table.md +374 -157
  98. package/docs/operations/tree.md +1 -1
  99. package/docs/operations/treemap.md +1 -1
  100. package/docs/operations/waterfall.md +1 -1
  101. package/docs/operations/word-cloud.md +1 -1
  102. package/getters.js +2 -2
  103. package/index.js +482 -434
  104. package/metadata.js +2 -2
  105. package/operations.js +5 -5
  106. package/package.json +72 -67
  107. package/src/definitions/index.d.ts +7 -1
  108. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  109. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  110. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +219 -7
  112. package/src/definitions/model/definitions/index.d.ts +2 -1
  113. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  117. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  118. package/src/definitions/model/definitions/types/compilation.types.d.ts +9 -1
  119. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  120. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +1 -1
  123. package/src/types.d.ts +17 -13
  124. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  125. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  126. package/chunks/color-rules-CN7TcGrC.js +0 -6
  127. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  128. package/chunks/handlers-CMbyj5y1.js +0 -12930
  129. package/chunks/isEqual-DBg_b35N.js +0 -12
  130. package/chunks/label-format-type-weq1XfcX.js +0 -8
  131. package/chunks/operations-HSqnCRvv.js +0 -26324
  132. package/chunks/shared-DFoJxjVN.js +0 -1218
  133. package/chunks/standalone-530a5lvf.js +0 -1003
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-BMoJXGYe.js +0 -2
  136. package/chunks/standalone-BfvGggeM2.js +0 -355
  137. package/chunks/standalone-CMJJIi9v.js +0 -2
  138. package/chunks/standalone-C_Jd4gkj.js +0 -6
  139. package/chunks/standalone-CiaaibTa.js +0 -518
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DpSRmAWx.js +0 -287
  142. package/chunks/standalone-kzAhwH19.js +0 -689
  143. package/chunks/standalone-mb7LwEiq.js +0 -3874
  144. /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
@@ -0,0 +1,287 @@
1
+ import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { Co as t, Fc as n, Jt as r, Lc as i, Lo as a, Lt as o, Oa as s, Qr as c, So as l, Ut as u, gc as d, sa as f, ws as p, yc as m } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { F as h, N as g, ci as _, jt as v, zr as y } from "./utils-DganVptf.js";
4
+ import { g_ as b } from "./handlers-C6CZ0XJA.js";
5
+ import { r as x } from "./label-format-type-C46pzgx7.js";
6
+ import { t as S } from "./stroke-dash-UgMEcCS4.js";
7
+ import "./logger-DdZpR7xZ.js";
8
+ import { C as ee, Ct as C, D as w, Ht as T, I as E, It as D, Kt as O, M as te, Nt as k, Qt as A, St as j, Tt as M, Ut as N, _ as P, _t as F, bn as I, cn as L, fn as R, ft as z, gn as B, i as V, kt as H, ln as U, mt as W, n as G, on as K, sn as q, v as J, vt as Y, w as ne, xt as X, y as Z, yt as Q } from "./escobar-CvEV2ES1.js";
9
+ import { o as re, t as ie } from "./coloring-BtnPiQ_o.js";
10
+ import { t as ae } from "./set-coloring-datafield-B3uIS1Pe.js";
11
+ var oe = /* @__PURE__ */ e(_()), se = (e, t, a) => {
12
+ let s = e.dimensions.filter((e) => c(e)), l = e.measures.filter((e) => c(e)), u = s[0], f = l[0], p = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
13
+ if (g?.type === m.Categorical && (_ ||= u ? n(u.dataItem) : null), g?.type === m.Gradient && (_ ||= f ? n(f.dataItem) : null), _ && j(a, 0, { color: { field: _ } }), u && e?.axes?.dimension?.continuousAxis) {
14
+ let e = i(u.dataItem), t = !!u.datePart, n = o(e) || r(e);
15
+ p = !t && n;
16
+ }
17
+ if (h = H(ae(e, _), t, h), h = te(e, h, a.collections, p, !0), l.filter((e) => e.graphType === d.Bar).length > 1 && !e.barSettings?.grouped) {
18
+ let t = L(e, l.find((e) => e.graphType === d.Bar));
19
+ h[t].data = { collection: k.ComboChartCollection };
20
+ }
21
+ return {
22
+ ...a,
23
+ scales: h
24
+ };
25
+ }, ce = (e, t, r) => {
26
+ let i = e.measures.filter((e) => c(e)), a = e.dimensions.filter((e) => c(e)), o = (e.supportingMeasures ?? []).filter((e) => c(e)), s = i.reduce((e, t) => {
27
+ let r = n(t.dataItem);
28
+ return e[r] = { field: r }, e;
29
+ }, {}), l = J(o), u = a.reduce((e, t) => {
30
+ let r = n(t.dataItem);
31
+ return e[r] = { field: r }, e;
32
+ }, {}), f = a[0];
33
+ if (!f) return r;
34
+ let p = n(f.dataItem), m = {
35
+ key: k.ComboChartCollection,
36
+ data: { extract: [] }
37
+ };
38
+ if (m.data.extract = i.map((e, t) => {
39
+ let r = n(e.dataItem);
40
+ return {
41
+ field: p,
42
+ props: {
43
+ end: { field: r },
44
+ ...s,
45
+ ...l,
46
+ ...u,
47
+ start: 0,
48
+ graphType: e.graphType,
49
+ measureIndex: t,
50
+ fieldId: r
51
+ }
52
+ };
53
+ }), i.filter((e) => e.graphType === d.Bar).length > 1) {
54
+ let t = !!i.find((e) => e.graphType === d.Bar)?.secondaryAxis, r = new Map(i.map((e) => [n(e.dataItem), !!e.secondaryAxis]));
55
+ e.barSettings?.grouped || (m.data.stack = {
56
+ stackKey: (e) => e.graphType.value === d.Bar ? `${e.value}` : `${e.value}-${e.graphType.value}-${e.measureIndex.value}`,
57
+ value: (e) => {
58
+ let n = e.fieldId?.value;
59
+ if (typeof n != "string" || r.get(n) !== t) return 0;
60
+ let i = e.end.value;
61
+ return typeof i == "number" || typeof i == "string" ? i : 0;
62
+ },
63
+ offset: x.Diverging
64
+ });
65
+ }
66
+ return {
67
+ ...r,
68
+ collections: [...r.collections ?? [], m]
69
+ };
70
+ }, le = (e, t, r, i, a, o) => {
71
+ let s = [];
72
+ return e.measures.filter((e) => c(e)).forEach((i) => {
73
+ let c = n(i.dataItem), l = (e) => e.fieldId.value === c;
74
+ switch (i.graphType || e.type) {
75
+ case d.Bar:
76
+ s.push(de(e, t, a ?? [], r, i, o, l));
77
+ break;
78
+ case d.Point:
79
+ s.push(Q(e, t, r, i, !1, k.ComboChartCollection, l));
80
+ break;
81
+ default: s.push(ue(e, t, r, i, l)), s.push(Q(e, t, r, i, !i.showDataPoints, k.ComboChartCollection, l));
82
+ }
83
+ }), s.sort((e) => e.type === I.Box ? -1 : 0), {
84
+ ...r,
85
+ components: [...r.components, ...s]
86
+ };
87
+ };
88
+ function ue(e, t, r, i, o) {
89
+ let s = e.dimensions.filter((e) => c(e));
90
+ if (!s[0]) throw Error("Combo chart without dimension is not supported.");
91
+ if (s.length > 1) throw Error("Combo chart currently support only one dimension.");
92
+ let l = S(i.strokeDash), u = n(i.dataItem), f = re(e, r, t, i, u);
93
+ return {
94
+ type: I.Line,
95
+ layout: { displayOrder: N.VisualizationElement },
96
+ key: X(e, i, d.Line),
97
+ data: p({
98
+ collection: k.ComboChartCollection,
99
+ filter: o
100
+ }),
101
+ settings: {
102
+ orientation: e.orientation === a.Horizontal ? a.Vertical : a.Horizontal,
103
+ coordinates: {
104
+ major: { scale: q(e) },
105
+ minor: {
106
+ scale: L(e, i),
107
+ ref: u
108
+ }
109
+ },
110
+ layers: {
111
+ curve: e.lineSettings?.lineCurve,
112
+ skipCollisions: !0,
113
+ line: {
114
+ stroke: f,
115
+ strokeWidth: i.strokeWidth,
116
+ strokeDasharray: l
117
+ }
118
+ }
119
+ },
120
+ animations: {
121
+ enabled: !0,
122
+ presetId: "simple-opacity"
123
+ }
124
+ };
125
+ }
126
+ function de(e, t, r, i, o, s, l) {
127
+ let f = e.dimensions.filter((e) => c(e)), m = e.measures.filter((e) => c(e) && e.graphType === d.Bar);
128
+ if (!f[0]) throw Error("Combo chart without dimension is not supported.");
129
+ let h = { scale: q(e) }, g = {
130
+ scale: L(e, o),
131
+ end: { ref: "end" }
132
+ }, _ = {
133
+ minWidthPx: 2,
134
+ rx: u(e?.barSettings.barRadius, 0),
135
+ roundAllEdges: e?.barSettings?.roundAllEdges,
136
+ useCustomBoxRounding: !0,
137
+ boxPadding: e?.barSettings?.barPadding ?? B.scale.padding
138
+ };
139
+ _.fill = new ie(e, t, r?.[0]?.itemsNotAffectedByFiltering).getColorDefinition({ ref: "fieldId" });
140
+ let v = {
141
+ enabled: !0,
142
+ presetId: "bar-chart"
143
+ }, y = o?.graphType !== d.Bar;
144
+ if (m.length > 1 && e.barSettings?.grouped) {
145
+ let t = 1 * (1 / m.length), r = (1 - (e.barSettings?.barPadding ?? 0)) * t, i = .5 / m.length, a = (1 + 0 * (m.length - 1)) * i, s = m.findIndex((e) => n(e.dataItem) === n(o.dataItem));
146
+ h.fn = (n) => {
147
+ let r = n.resources.scale(q(e));
148
+ return r(n.datum.value) + a * r.bandwidth?.() + s * r.bandwidth?.() * t;
149
+ }, _.width = r;
150
+ }
151
+ return {
152
+ type: I.Box,
153
+ layout: { displayOrder: N.VisualizationElement },
154
+ key: X(e, o, d.Bar),
155
+ data: p({
156
+ collection: k.ComboChartCollection,
157
+ filter: l
158
+ }),
159
+ settings: {
160
+ orientation: e.orientation ?? a.Vertical,
161
+ major: h,
162
+ minor: g,
163
+ box: _
164
+ },
165
+ animations: v,
166
+ brush: y ? null : A([""], s)
167
+ };
168
+ }
169
+ var fe = (e, t) => {
170
+ let n = t ? [b.Inside] : [
171
+ b.Inside,
172
+ b.Outside,
173
+ b.Opposite
174
+ ];
175
+ return (e || [
176
+ {
177
+ position: b.Inside,
178
+ justify: 1
179
+ },
180
+ { position: b.Outside },
181
+ { position: b.Opposite }
182
+ ]).map((e) => ({
183
+ ...e,
184
+ possible: n.includes(e.position)
185
+ }));
186
+ }, pe = ({ data: e }) => e ? e.end.value > e.start.value ? "up" : "down" : null, $ = ({ data: e }) => e ? e.end.value > e.start.value ? "right" : "left" : null, me = (e, r, i, a, o, u) => {
187
+ let f = e.measures.filter((e) => c(e)), p = f.filter((e) => e.graphType === d.Bar), m = p.filter((e) => e.dataLabels?.show), h = p.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = U(e), _ = m.map((t) => {
188
+ let n = !!t.dataLabels?.barLabelPlacements, i = fe(t.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
189
+ position: e.position,
190
+ fill: e.position === b.Inside ? s.white : "#242424",
191
+ ...e.justify === void 0 ? {} : { justify: e.justify },
192
+ ...n ? { overflow: [b.Outside, b.Opposite].includes(e.position) } : {}
193
+ }));
194
+ return t.dataLabels?.showBackdrop && !h && (i = i.map((e) => Z(e, r, g))), {
195
+ key: `combo-bar-labels-${t.dataItem.uniqueSignature}`,
196
+ type: I.Labels,
197
+ layout: { displayOrder: N.Labels },
198
+ settings: { sources: [{
199
+ component: X(e, t, d.Bar),
200
+ selector: R.Rect,
201
+ strategy: {
202
+ type: "bar",
203
+ settings: {
204
+ direction: g ? $ : pe,
205
+ fontSize: K(t.dataLabels?.size),
206
+ fontFamily: r.fonts.general.fontFamily,
207
+ labels: [{
208
+ label: ee(t),
209
+ placements: i
210
+ }]
211
+ }
212
+ }
213
+ }] },
214
+ animations: {
215
+ enabled: !0,
216
+ presetId: "chart-labels"
217
+ }
218
+ };
219
+ }), v = {}, y = {}, x = f.filter((e) => e.graphType !== d.Bar).map((r) => {
220
+ let i = n(r.dataItem), a = X(e, r, d.Point);
221
+ return y[a] = i, v[a] = {
222
+ enabled: r.dataLabels?.show || !1,
223
+ fontSize: K(r.dataLabels?.size),
224
+ backdropColor: r.dataLabels?.backdropColor,
225
+ textColor: r.dataLabels?.textColor,
226
+ isColored: r.dataLabels?.isColored,
227
+ colorType: r.dataLabels?.showBackdrop ? l.Backdrop : l.Text,
228
+ density: r.dataLabels?.density || t.Medium
229
+ }, a;
230
+ }).filter((e) => v[e].enabled), S = x.length ? [w({
231
+ targetComponentKeys: x,
232
+ targetSelector: `.${Y}`,
233
+ label: ({ data: e, node: t }) => e[y[t.key]]?.label,
234
+ skipBrush: !0
235
+ }, v, u, r)] : [];
236
+ if (_.length && S.length) {
237
+ let e = {
238
+ ...S[0],
239
+ settings: {
240
+ ...S[0].settings,
241
+ sources: [..._.flatMap((e) => e.settings?.sources ?? []), ...S[0].settings?.sources ?? []]
242
+ }
243
+ };
244
+ return {
245
+ ...i,
246
+ components: [...i.components, e]
247
+ };
248
+ }
249
+ return {
250
+ ...i,
251
+ components: [
252
+ ...i.components,
253
+ ..._,
254
+ ...S
255
+ ]
256
+ };
257
+ }, he = class extends P {
258
+ constructor() {
259
+ super([
260
+ ce,
261
+ se,
262
+ O,
263
+ M,
264
+ le,
265
+ W,
266
+ C,
267
+ me,
268
+ z,
269
+ E,
270
+ D,
271
+ T,
272
+ F,
273
+ ne
274
+ ]);
275
+ }
276
+ }, ge = y(), _e = v(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
277
+ let a = g(), [o] = (0, oe.useState)(() => new he()), s = h(), c = G();
278
+ if (!e || !r) return null;
279
+ let l = t || f, u = o.compile(e, l, n, r, i, d.Combo, a, s, c);
280
+ return u ? /* @__PURE__ */ (0, ge.jsx)(V, {
281
+ config: i,
282
+ definition: u,
283
+ size: r,
284
+ vSpec: e
285
+ }) : null;
286
+ });
287
+ export { _e as ComboChart };
@@ -0,0 +1,6 @@
1
+ import "./rolldown-runtime-DleVn1XH.js";
2
+ import { ci as e, jt as t, zr as n } from "./utils-DganVptf.js";
3
+ import { n as r } from "./standalone-B794g9pE.js";
4
+ e();
5
+ var i = n(), a = t((e) => /* @__PURE__ */ (0, i.jsx)(r, { ...e }));
6
+ export { a as HistogramChart };
@@ -1,10 +1,10 @@
1
1
  import { a as e, o as t, t as n } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Ds as r, Kt as i, Us as a, fa as o, ha as s, ma as c, pa as l, ws as u, zi as d, zr as f } from "./visualization-filters-mVnsnvLP.js";
3
- import { N as p, Ot as m, Qt as h, ei as g, f as _, jr as v, s as y } from "./utils-DYYD4Zzf.js";
4
- import "./logger-3lng-wOw.js";
5
- import { Et as b, F as x, I as S, Yt as C, _n as w, et as T, i as E, ln as D, nt as O, st as k, tt as A } from "./escobar-C4Nm3eJ7.js";
6
- import { t as j } from "./coloring-B-Wa8D5P.js";
7
- import { n as M, t as N } from "./src-BOS6SqkZ2.js";
2
+ import { $a as r, Fc as i, Qa as a, Qr as o, eo as s, gc as c, in as l, sa as u, to as d, yc as f } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { N as p, ci as m, f as h, jt as g, s as _, tn as v, zr as y } from "./utils-DganVptf.js";
4
+ import "./logger-DdZpR7xZ.js";
5
+ import { L as b, Qt as x, R as S, _ as C, bn as w, fn as T, i as E, kt as D, ut as O, v as k, z as A } from "./escobar-CvEV2ES1.js";
6
+ import { t as j } from "./coloring-BtnPiQ_o.js";
7
+ import { n as M, t as N } from "./src-BOS6SqkZ.js";
8
8
  var P = /* @__PURE__ */ n(((e, t) => {
9
9
  (function(e, t, n) {
10
10
  function r(e) {
@@ -285,48 +285,46 @@ var P = /* @__PURE__ */ n(((e, t) => {
285
285
  })), z = /* @__PURE__ */ n(((e, t) => {
286
286
  var n = P(), r = ee(), i = te(), a = F(), o = I(), s = ne(), c = R();
287
287
  c.alea = n, c.xor128 = r, c.xorwow = i, c.xorshift7 = a, c.xor4096 = o, c.tychei = s, t.exports = c;
288
- })), re = /* @__PURE__ */ t(g()), B = .7, V = 12 * B, H = /* @__PURE__ */ function(e) {
289
- return e.RenderDone = "render-done", e;
290
- }({}), U = /* @__PURE__ */ function(e) {
291
- return e.Minimum = "Minimum", e;
292
- }({}), W = /* @__PURE__ */ function(e) {
293
- return e.collectionKey = "coll", e.measureValue = "size", e;
294
- }({}), G = (e, t, n) => {
295
- let r = e.dimensions.filter((e) => f(e)), i = e.measures.filter((e) => f(e)), o = S((e.supportingMeasures ?? []).filter((e) => f(e)));
296
- if (!r[0] || !i[0]) return n;
297
- let s = a(r[0].dataItem), c = a(i[0].dataItem), l = [{
298
- key: "coll",
288
+ })), B = /* @__PURE__ */ t(m()), V = .7, re = 12 * V, H = { RenderDone: "render-done" }, U = { Minimum: "Minimum" }, W = {
289
+ collectionKey: "coll",
290
+ measureValue: "size"
291
+ }, G = (e, t, n) => {
292
+ let r = e.dimensions.filter((e) => o(e)), a = e.measures.filter((e) => o(e)), s = k((e.supportingMeasures ?? []).filter((e) => o(e)));
293
+ if (!r[0] || !a[0]) return n;
294
+ let c = i(r[0].dataItem), l = i(a[0].dataItem), u = [{
295
+ key: W.collectionKey,
299
296
  data: {
300
297
  extract: [{
301
- field: s,
298
+ field: c,
302
299
  props: {
303
- size: { field: c },
304
- [c]: { field: c },
305
- ...o
300
+ [W.measureValue]: { field: l },
301
+ [l]: { field: l },
302
+ ...s
306
303
  }
307
304
  }],
308
- filter: (e) => e.size.value != null && !isNaN(e.size.value)
305
+ filter: (e) => e[W.measureValue].value != null && !isNaN(e[W.measureValue].value)
309
306
  }
310
307
  }];
311
308
  return {
312
309
  ...n,
313
- collections: l
310
+ collections: u
314
311
  };
315
- }, K = /* @__PURE__ */ function(e) {
316
- return e.size = "size", e.gradient = "gradient", e;
317
- }({}), q = (e, t, n) => {
318
- let r = e.dimensions.filter((e) => f(e)), i = e.measures.filter((e) => f(e));
319
- if (!r[0] || !i[0]) return n;
320
- let o = { size: { data: { field: a(i[0].dataItem) } } };
321
- return o = b(e, t, o), {
312
+ }, K = {
313
+ size: "size",
314
+ gradient: "gradient"
315
+ }, q = (e, t, n) => {
316
+ let r = e.dimensions.filter((e) => o(e)), a = e.measures.filter((e) => o(e));
317
+ if (!r[0] || !a[0]) return n;
318
+ let s = { [K.size]: { data: { field: i(a[0].dataItem) } } };
319
+ return s = D(e, t, s), {
322
320
  ...n,
323
- scales: o
321
+ scales: s
324
322
  };
325
- }, J = (e, t, n, r, s, c, l, u) => e.filter(f).map((e, r) => {
326
- let s = Object.keys(t.data).find((n) => t.data[n]?.source?.field === a(e.dataItem)), c = (t.data[String(s)] || t.data[`measure${r}`])?.value, l = i(e) || e.label || e.dataItem.name || "", d = u && !o(e.formatter) ? k(e.formatter) : e.formatter;
323
+ }, J = (e, t, n, r, s, c, u, d) => e.filter(o).map((e, r) => {
324
+ let o = Object.keys(t.data).find((n) => t.data[n]?.source?.field === i(e.dataItem)), s = (t.data[String(o)] || t.data[`measure${r}`])?.value, c = l(e) || e.label || e.dataItem.name || "", u = d && !a(e.formatter) ? O(e.formatter) : e.formatter;
327
325
  return {
328
- label: l,
329
- value: d ? n.formatter(d)(c, void 0, t.data) : c
326
+ label: c,
327
+ value: u ? n.formatter(u)(s, void 0, t.data) : s
330
328
  };
331
329
  }), Y = (e, t, n, r, i) => {
332
330
  let a = {
@@ -336,9 +334,9 @@ var P = /* @__PURE__ */ n(((e, t) => {
336
334
  type: "bounds"
337
335
  }
338
336
  };
339
- return a.extract = A(e, t, J, O), T(e, t, n, a, "tooltip", i);
340
- }, ie = (e, t, n, i, o, s) => {
341
- let c = e.measures.filter((e) => f(e)), l = new j(e, t, o?.[0]?.itemsNotAffectedByFiltering), u = a(c[0].dataItem), d = C([""], s);
337
+ return a.extract = S(e, t, J, A), b(e, t, n, a, "tooltip", i);
338
+ }, ie = (e, t, n, r, a, s) => {
339
+ let c = e.measures.filter((e) => o(e)), l = new j(e, t, a?.[0]?.itemsNotAffectedByFiltering), u = i(c[0].dataItem), d = x([""], s);
342
340
  d?.trigger.forEach((e) => e.propagation = "stop");
343
341
  let p = {
344
342
  key: "word-cloud",
@@ -361,8 +359,8 @@ var P = /* @__PURE__ */ n(((e, t) => {
361
359
  ref: W.measureValue
362
360
  },
363
361
  fill: l.getColorDefinition({
364
- ref: e.coloring?.type === r.Gradient ? W.measureValue : l.MAIN_FIELD,
365
- dataItemId: e.coloring?.type === r.Single ? u : void 0,
362
+ ref: e.coloring?.type === f.Gradient ? W.measureValue : l.MAIN_FIELD,
363
+ dataItemId: e.coloring?.type === f.Single ? u : void 0,
366
364
  overwriteSources: [l.MAIN_FIELD]
367
365
  })
368
366
  }
@@ -373,7 +371,7 @@ var P = /* @__PURE__ */ n(((e, t) => {
373
371
  ...n,
374
372
  components: [...n.components, p]
375
373
  };
376
- }, ae = class extends x {
374
+ }, ae = class extends C {
377
375
  onRenderDone;
378
376
  onChartUpdated;
379
377
  constructor(e) {
@@ -388,7 +386,7 @@ var P = /* @__PURE__ */ n(((e, t) => {
388
386
  };
389
387
  }
390
388
  preCompile(e) {
391
- let t = e.dimensions.filter((e) => f(e)), n = e.measures.filter((e) => f(e)), r = t[0], i = n[0];
389
+ let t = e.dimensions.filter((e) => o(e)), n = e.measures.filter((e) => o(e)), r = t[0], i = n[0];
392
390
  if (!r || !i) throw Error("Word cloud w/o a dimension or measure is not supported.");
393
391
  }
394
392
  postCompile(e) {
@@ -617,7 +615,7 @@ function de(e) {
617
615
  }
618
616
  }
619
617
  function fe(e, t, n) {
620
- let r = Math.max(1, Math.min(t.maxNumChars, Math.floor(n.width / V / 2))), i = de(t.fontScaling);
618
+ let r = Math.max(1, Math.min(t.maxNumChars, Math.floor(n.width / re / 2))), i = de(t.fontScaling);
621
619
  e.sort((e, t) => t.size - e.size);
622
620
  let a = 0;
623
621
  return [e.slice(0, 200).map((e) => {
@@ -630,7 +628,7 @@ function fe(e, t, n) {
630
628
  }), a];
631
629
  }
632
630
  function pe(e, t, n) {
633
- let r = Math.min(n.height / 2, n.width / (t * B)), i = r, a = 0;
631
+ let r = Math.min(n.height / 2, n.width / (t * V)), i = r, a = 0;
634
632
  e.forEach((e) => {
635
633
  a += r * e.scaledSize * r * e.adjustedLabel.length * e.scaledSize;
636
634
  });
@@ -639,7 +637,7 @@ function pe(e, t, n) {
639
637
  }
640
638
  function me(e) {
641
639
  return e.map((e) => ({
642
- type: D.Text,
640
+ type: T.Text,
643
641
  text: e.text,
644
642
  x: e.x,
645
643
  y: e.y,
@@ -660,9 +658,9 @@ function me(e) {
660
658
  }
661
659
  var Q = {
662
660
  fontFamily: "Arial",
663
- fontScaling: l.linear,
664
- fontStyle: c.normal,
665
- fontWeight: s.normal,
661
+ fontScaling: r.linear,
662
+ fontStyle: s.normal,
663
+ fontWeight: d.normal,
666
664
  seed: 1,
667
665
  maxNumChars: 32,
668
666
  word: {
@@ -720,18 +718,18 @@ var Q = {
720
718
  function ge(e) {
721
719
  e.component(w.WordCloud, he);
722
720
  }
723
- var $ = v(), _e = () => {}, ve = m(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
724
- let a = p(), o = _(), [s] = (0, re.useState)(() => new ae(o)), { activeKey: c } = y(), l = {
721
+ var $ = y(), _e = () => {}, ve = g(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
722
+ let a = p(), o = h(), [s] = (0, B.useState)(() => new ae(o)), { activeKey: l } = _(), d = {
725
723
  ...i,
726
- valuePickerMode: !!c
727
- }, f = t || d, m = s.compile(e, f, n, r, {
728
- ...l,
724
+ valuePickerMode: !!l
725
+ }, f = t || u, m = s.compile(e, f, n, r, {
726
+ ...d,
729
727
  onRenderDone: o
730
- }, u.WordCloud, a);
731
- return m ? /* @__PURE__ */ (0, $.jsx)(h.Provider, {
728
+ }, c.WordCloud, a);
729
+ return m ? /* @__PURE__ */ (0, $.jsx)(v.Provider, {
732
730
  value: _e,
733
731
  children: /* @__PURE__ */ (0, $.jsx)(E, {
734
- config: l,
732
+ config: d,
735
733
  definition: m,
736
734
  size: r,
737
735
  vSpec: e,