@astrato-io/visualizations 0.10.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 (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  import "./rolldown-runtime-DleVn1XH.js";
2
- import { ci as e, jt as t, zr as n } from "./utils-3Igg6xmO.js";
3
- import { n as r } from "./standalone-DhfgeJIk.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
4
  e();
5
5
  var i = n(), a = t((e) => /* @__PURE__ */ (0, i.jsx)(r, { ...e }));
6
6
  export { a as HistogramChart };
@@ -1,9 +1,9 @@
1
1
  import { a as e, o as t, t as n } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $a as r, Pc as i, Qa as a, Qr as o, Za as s, eo as c, hc as l, in as u, oa as d, vc as f } from "./visualization-filters-CzvFHE6M.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-3Igg6xmO.js";
4
- import "./logger-CKRjhSHQ.js";
5
- import { Dt as b, I as x, L as S, Xt as C, ct as w, i as T, nt as E, rt as D, tt as O, un as k, vn as A } from "./escobar-CjirINHP.js";
6
- import { t as j } from "./coloring-9jU3s_-p.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
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) {
@@ -289,7 +289,7 @@ var P = /* @__PURE__ */ n(((e, t) => {
289
289
  collectionKey: "coll",
290
290
  measureValue: "size"
291
291
  }, G = (e, t, n) => {
292
- let r = e.dimensions.filter((e) => o(e)), a = e.measures.filter((e) => o(e)), s = S((e.supportingMeasures ?? []).filter((e) => o(e)));
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
293
  if (!r[0] || !a[0]) return n;
294
294
  let c = i(r[0].dataItem), l = i(a[0].dataItem), u = [{
295
295
  key: W.collectionKey,
@@ -316,15 +316,15 @@ var P = /* @__PURE__ */ n(((e, t) => {
316
316
  let r = e.dimensions.filter((e) => o(e)), a = e.measures.filter((e) => o(e));
317
317
  if (!r[0] || !a[0]) return n;
318
318
  let s = { [K.size]: { data: { field: i(a[0].dataItem) } } };
319
- return s = b(e, t, s), {
319
+ return s = D(e, t, s), {
320
320
  ...n,
321
321
  scales: s
322
322
  };
323
- }, J = (e, t, n, r, a, c, l, d) => e.filter(o).map((e, r) => {
324
- let a = Object.keys(t.data).find((n) => t.data[n]?.source?.field === i(e.dataItem)), o = (t.data[String(a)] || t.data[`measure${r}`])?.value, c = u(e) || e.label || e.dataItem.name || "", l = d && !s(e.formatter) ? w(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;
325
325
  return {
326
326
  label: c,
327
- value: l ? n.formatter(l)(o, void 0, t.data) : o
327
+ value: u ? n.formatter(u)(s, void 0, t.data) : s
328
328
  };
329
329
  }), Y = (e, t, n, r, i) => {
330
330
  let a = {
@@ -334,13 +334,13 @@ var P = /* @__PURE__ */ n(((e, t) => {
334
334
  type: "bounds"
335
335
  }
336
336
  };
337
- return a.extract = E(e, t, J, D), O(e, t, n, a, "tooltip", i);
337
+ return a.extract = S(e, t, J, A), b(e, t, n, a, "tooltip", i);
338
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 = C([""], 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);
340
340
  d?.trigger.forEach((e) => e.propagation = "stop");
341
341
  let p = {
342
342
  key: "word-cloud",
343
- type: A.WordCloud,
343
+ type: w.WordCloud,
344
344
  data: { collection: W.collectionKey },
345
345
  on: { [H.RenderDone]() {
346
346
  s?.onRenderDone?.();
@@ -371,7 +371,7 @@ var P = /* @__PURE__ */ n(((e, t) => {
371
371
  ...n,
372
372
  components: [...n.components, p]
373
373
  };
374
- }, ae = class extends x {
374
+ }, ae = class extends C {
375
375
  onRenderDone;
376
376
  onChartUpdated;
377
377
  constructor(e) {
@@ -637,7 +637,7 @@ function pe(e, t, n) {
637
637
  }
638
638
  function me(e) {
639
639
  return e.map((e) => ({
640
- type: k.Text,
640
+ type: T.Text,
641
641
  text: e.text,
642
642
  x: e.x,
643
643
  y: e.y,
@@ -658,9 +658,9 @@ function me(e) {
658
658
  }
659
659
  var Q = {
660
660
  fontFamily: "Arial",
661
- fontScaling: a.linear,
662
- fontStyle: r.normal,
663
- fontWeight: c.normal,
661
+ fontScaling: r.linear,
662
+ fontStyle: s.normal,
663
+ fontWeight: d.normal,
664
664
  seed: 1,
665
665
  maxNumChars: 32,
666
666
  word: {
@@ -716,20 +716,20 @@ var Q = {
716
716
  }
717
717
  };
718
718
  function ge(e) {
719
- e.component(A.WordCloud, he);
719
+ e.component(w.WordCloud, he);
720
720
  }
721
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: c } = _(), u = {
722
+ let a = p(), o = h(), [s] = (0, B.useState)(() => new ae(o)), { activeKey: l } = _(), d = {
723
723
  ...i,
724
- valuePickerMode: !!c
725
- }, f = t || d, m = s.compile(e, f, n, r, {
726
- ...u,
724
+ valuePickerMode: !!l
725
+ }, f = t || u, m = s.compile(e, f, n, r, {
726
+ ...d,
727
727
  onRenderDone: o
728
- }, l.WordCloud, a);
728
+ }, c.WordCloud, a);
729
729
  return m ? /* @__PURE__ */ (0, $.jsx)(v.Provider, {
730
730
  value: _e,
731
- children: /* @__PURE__ */ (0, $.jsx)(T, {
732
- config: u,
731
+ children: /* @__PURE__ */ (0, $.jsx)(E, {
732
+ config: d,
733
733
  definition: m,
734
734
  size: r,
735
735
  vSpec: e,