@astrato-io/visualizations 0.11.0 → 0.12.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 (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +129 -4
  3. package/VISUALIZATION_DEFINITIONS.md +3 -1
  4. package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
  5. package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
  6. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  7. package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
  8. package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
  9. package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
  10. package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
  11. package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
  12. package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
  13. package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
  14. package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
  15. package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
  16. package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
  17. package/chunks/defaults-CMFqXvaJ.js +3 -0
  18. package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
  19. package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
  20. package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
  21. package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
  22. package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
  23. package/chunks/handlers-CyYFSfhM.js +15393 -0
  24. package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
  25. package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
  26. package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
  27. package/chunks/line.compiler-B-4H55_T.js +203 -0
  28. package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
  29. package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
  30. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  31. package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
  32. package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
  33. package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
  34. package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
  35. package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
  36. package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
  37. package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
  38. package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
  39. package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
  40. package/chunks/standalone-B3hRGgYi.js +773 -0
  41. package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
  42. package/chunks/standalone-BPTT8XEu.js +424 -0
  43. package/chunks/standalone-BgAeHROc.js +2 -0
  44. package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
  45. package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
  46. package/chunks/standalone-C0If-V6O.js +773 -0
  47. package/chunks/standalone-C1TOyflX.js +287 -0
  48. package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
  49. package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
  50. package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
  51. package/chunks/standalone-CNf-oA2U.js +355 -0
  52. package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
  53. package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
  54. package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
  55. package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
  56. package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
  57. package/chunks/standalone-Dbn3jSH6.js +690 -0
  58. package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
  59. package/chunks/standalone-DwCIA0UG.js +1057 -0
  60. package/chunks/standalone-Dz13tl3P.js +357 -0
  61. package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
  62. package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
  63. package/chunks/standalone-ejTz66P3.js +2 -0
  64. package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
  65. package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
  66. package/chunks/standalone-vGGR6Vcn.js +6 -0
  67. package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
  68. package/chunks/theme-MYp6Rj1J.js +232 -0
  69. package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
  70. package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
  71. package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
  72. package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
  73. package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +115 -32
  77. package/docs/operations/combo.md +50 -17
  78. package/docs/operations/date-picker.md +4 -4
  79. package/docs/operations/distribution-gauge.md +18 -16
  80. package/docs/operations/dot.md +107 -24
  81. package/docs/operations/filter.md +10 -8
  82. package/docs/operations/gauge.md +20 -18
  83. package/docs/operations/heatMap.md +73 -21
  84. package/docs/operations/histogram.md +45 -12
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +11 -11
  88. package/docs/operations/line.md +57 -24
  89. package/docs/operations/map.md +16 -16
  90. package/docs/operations/number.md +10 -9
  91. package/docs/operations/pie.md +23 -21
  92. package/docs/operations/radar.md +13 -11
  93. package/docs/operations/sankey.md +19 -17
  94. package/docs/operations/scatter.md +111 -28
  95. package/docs/operations/shape.md +5 -5
  96. package/docs/operations/simpleTextObject.md +4 -4
  97. package/docs/operations/slider.md +1 -1
  98. package/docs/operations/table.md +27 -25
  99. package/docs/operations/tree.md +5 -3
  100. package/docs/operations/treemap.md +70 -18
  101. package/docs/operations/waterfall.md +40 -7
  102. package/docs/operations/word-cloud.md +69 -17
  103. package/getters.js +2 -2
  104. package/index.js +474 -525
  105. package/metadata.js +2 -2
  106. package/operations.js +24 -17
  107. package/package.json +71 -72
  108. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
  110. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
  112. package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
  113. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  115. package/src/index.d.ts +1 -1
  116. package/src/operations/index.d.ts +11 -1
  117. package/src/types.d.ts +166 -1
  118. package/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
  119. package/chunks/category-axis-D1OVyMrr.js +0 -20
  120. package/chunks/color-rules-DYJL4fIW.js +0 -15
  121. package/chunks/color-settings-DJFoFTip.js +0 -5
  122. package/chunks/defaults-B5_8S-J-.js +0 -3
  123. package/chunks/handlers-C63NVo7i.js +0 -15433
  124. package/chunks/line.compiler-DCv3h42f.js +0 -198
  125. package/chunks/standalone-06i1wmIX.js +0 -6
  126. package/chunks/standalone-B6zUvxNQ.js +0 -357
  127. package/chunks/standalone-Be5APcVv.js +0 -762
  128. package/chunks/standalone-BuXpKMnc.js +0 -2
  129. package/chunks/standalone-CUGt2FUF.js +0 -2
  130. package/chunks/standalone-CnF2OYLQ.js +0 -355
  131. package/chunks/standalone-CznEEiq3.js +0 -422
  132. package/chunks/standalone-DcuE8KBa.js +0 -287
  133. package/chunks/standalone-pCrzBiTy.js +0 -773
  134. package/chunks/standalone-qrZaimgC.js +0 -689
  135. package/chunks/standalone-yqDJ8h3K.js +0 -1012
@@ -0,0 +1,287 @@
1
+ import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
+ import { $c as t, Sa as n, Ua as r, Xc as i, Yt as a, _l as o, di as s, es as c, hl as l, hs as u, ic as d, sn as f, tn as p, ts as m, u as h } from "./visualization-filters-B9qik5_K.js";
3
+ import { I as g, Mt as _, P as v, Ur as y, fi as b } from "./utils-CUKgR7it.js";
4
+ import { x_ as x } from "./handlers-CyYFSfhM.js";
5
+ import { r as S } from "./label-format-type-C46pzgx7.js";
6
+ import { t as C } from "./stroke-dash-UgMEcCS4.js";
7
+ import "./logger-Cioob-QV.js";
8
+ import { At as w, Bt as T, Et as E, It as D, Mn as O, Mt as k, N as A, On as ee, Ot as j, Tt as M, Ut as N, Xt as P, Yt as F, _ as I, _n as L, b as R, en as z, gn as B, hn as V, i as H, in as U, k as W, kt as G, mn as K, n as q, un as J, v as Y, w as X, wn as te, wt as Z, x as Q, xt as ne, yt as re } from "./escobar-CMvphKSK.js";
9
+ import { s as ie, t as ae } from "./coloring-Cd6p0GQJ.js";
10
+ import { t as oe } from "./set-coloring-datafield-B3uIS1Pe.js";
11
+ var se = /* @__PURE__ */ e(b()), ce = (e, n, r) => {
12
+ let c = e.dimensions.filter((e) => s(e)), u = e.measures.filter((e) => s(e)), d = c[0], p = u[0], m = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
13
+ if (g?.type === t.Categorical && (_ ||= d ? l(d.dataItem) : null), g?.type === t.Gradient && (_ ||= p ? l(p.dataItem) : null), _ && G(r, 0, { color: { field: _ } }), d && e?.axes?.dimension?.continuousAxis) {
14
+ let e = o(d.dataItem), t = !!d.datePart, n = a(e) || f(e);
15
+ m = !t && n;
16
+ }
17
+ if (h = D(oe(e, _), n, h), h = W(e, h, r.collections, m, !0), u.filter((e) => e.graphType === i.Bar).length > 1 && !e.barSettings?.grouped) {
18
+ let t = B(e, u.find((e) => e.graphType === i.Bar));
19
+ h[t].data = { collection: T.ComboChartCollection };
20
+ }
21
+ return {
22
+ ...r,
23
+ scales: h
24
+ };
25
+ }, le = (e, t, n) => {
26
+ let r = e.measures.filter((e) => s(e)), a = e.dimensions.filter((e) => s(e)), o = (e.supportingMeasures ?? []).filter((e) => s(e)), c = r.reduce((e, t) => {
27
+ let n = l(t.dataItem);
28
+ return e[n] = { field: n }, e;
29
+ }, {}), u = Y(o), d = a.reduce((e, t) => {
30
+ let n = l(t.dataItem);
31
+ return e[n] = { field: n }, e;
32
+ }, {}), f = a[0];
33
+ if (!f) return n;
34
+ let p = l(f.dataItem), m = {
35
+ key: T.ComboChartCollection,
36
+ data: { extract: [] }
37
+ };
38
+ if (m.data.extract = r.map((e, t) => {
39
+ let n = l(e.dataItem);
40
+ return {
41
+ field: p,
42
+ props: {
43
+ end: { field: n },
44
+ ...c,
45
+ ...u,
46
+ ...d,
47
+ start: 0,
48
+ graphType: e.graphType,
49
+ measureIndex: t,
50
+ fieldId: n
51
+ }
52
+ };
53
+ }), r.filter((e) => e.graphType === i.Bar).length > 1) {
54
+ let t = !!r.find((e) => e.graphType === i.Bar)?.secondaryAxis, n = new Map(r.map((e) => [l(e.dataItem), !!e.secondaryAxis]));
55
+ e.barSettings?.grouped || (m.data.stack = {
56
+ stackKey: (e) => e.graphType.value === i.Bar ? `${e.value}` : `${e.value}-${e.graphType.value}-${e.measureIndex.value}`,
57
+ value: (e) => {
58
+ let r = e.fieldId?.value;
59
+ if (typeof r != "string" || n.get(r) !== t) return 0;
60
+ let i = e.end.value;
61
+ return typeof i == "number" || typeof i == "string" ? i : 0;
62
+ },
63
+ offset: S.Diverging
64
+ });
65
+ }
66
+ return {
67
+ ...n,
68
+ collections: [...n.collections ?? [], m]
69
+ };
70
+ }, ue = (e, t, n, r, a, o) => {
71
+ let c = [];
72
+ return e.measures.filter((e) => s(e)).forEach((r) => {
73
+ let s = l(r.dataItem), u = (e) => e.fieldId.value === s;
74
+ switch (r.graphType || e.type) {
75
+ case i.Bar:
76
+ c.push(fe(e, t, a ?? [], n, r, o, u));
77
+ break;
78
+ case i.Point:
79
+ c.push(E(e, t, n, r, !1, T.ComboChartCollection, u));
80
+ break;
81
+ default: c.push(de(e, t, n, r, u)), c.push(E(e, t, n, r, !r.showDataPoints, T.ComboChartCollection, u));
82
+ }
83
+ }), c.sort((e) => e.type === O.Box ? -1 : 0), {
84
+ ...n,
85
+ components: [...n.components, ...c]
86
+ };
87
+ };
88
+ function de(e, t, n, r, a) {
89
+ let o = e.dimensions.filter((e) => s(e));
90
+ if (!o[0]) throw Error("Combo chart without dimension is not supported.");
91
+ if (o.length > 1) throw Error("Combo chart currently support only one dimension.");
92
+ let c = C(r.strokeDash), f = l(r.dataItem), p = ie(e, n, t, r, f);
93
+ return {
94
+ type: O.Line,
95
+ layout: { displayOrder: z.VisualizationElement },
96
+ key: j(e, r, i.Line),
97
+ data: d({
98
+ collection: T.ComboChartCollection,
99
+ filter: a
100
+ }),
101
+ settings: {
102
+ orientation: e.orientation === u.Horizontal ? u.Vertical : u.Horizontal,
103
+ coordinates: {
104
+ major: { scale: V(e) },
105
+ minor: {
106
+ scale: B(e, r),
107
+ ref: f
108
+ }
109
+ },
110
+ layers: {
111
+ curve: e.lineSettings?.lineCurve,
112
+ skipCollisions: !0,
113
+ line: {
114
+ stroke: p,
115
+ strokeWidth: r.strokeWidth,
116
+ strokeDasharray: c
117
+ }
118
+ }
119
+ },
120
+ animations: {
121
+ enabled: !0,
122
+ presetId: "simple-opacity"
123
+ }
124
+ };
125
+ }
126
+ function fe(e, t, n, r, a, o, c) {
127
+ let f = e.dimensions.filter((e) => s(e)), m = e.measures.filter((e) => s(e) && e.graphType === i.Bar);
128
+ if (!f[0]) throw Error("Combo chart without dimension is not supported.");
129
+ let h = { scale: V(e) }, g = {
130
+ scale: B(e, a),
131
+ end: { ref: "end" }
132
+ }, _ = {
133
+ minWidthPx: 2,
134
+ rx: p(e?.barSettings.barRadius, 0),
135
+ roundAllEdges: e?.barSettings?.roundAllEdges,
136
+ useCustomBoxRounding: !0,
137
+ boxPadding: e?.barSettings?.barPadding ?? ee.scale.padding
138
+ };
139
+ _.fill = new ae(e, t, n?.[0]?.itemsNotAffectedByFiltering).getColorDefinition({ ref: "fieldId" });
140
+ let v = {
141
+ enabled: !0,
142
+ presetId: "bar-chart"
143
+ }, y = a?.graphType !== i.Bar;
144
+ if (m.length > 1 && e.barSettings?.grouped) {
145
+ let t = 1 * (1 / m.length), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / m.length, i = (1 + 0 * (m.length - 1)) * r, o = m.findIndex((e) => l(e.dataItem) === l(a.dataItem));
146
+ h.fn = (n) => {
147
+ let r = n.resources.scale(V(e));
148
+ return r(n.datum.value) + i * r.bandwidth?.() + o * r.bandwidth?.() * t;
149
+ }, _.width = n;
150
+ }
151
+ return {
152
+ type: O.Box,
153
+ layout: { displayOrder: z.VisualizationElement },
154
+ key: j(e, a, i.Bar),
155
+ data: d({
156
+ collection: T.ComboChartCollection,
157
+ filter: c
158
+ }),
159
+ settings: {
160
+ orientation: e.orientation ?? u.Vertical,
161
+ major: h,
162
+ minor: g,
163
+ box: _
164
+ },
165
+ animations: v,
166
+ brush: y ? null : J([""], o)
167
+ };
168
+ }
169
+ var pe = (e, t) => {
170
+ let n = t ? [x.Inside] : [
171
+ x.Inside,
172
+ x.Outside,
173
+ x.Opposite
174
+ ];
175
+ return (e || [
176
+ {
177
+ position: x.Inside,
178
+ justify: 1
179
+ },
180
+ { position: x.Outside },
181
+ { position: x.Opposite }
182
+ ]).map((e) => ({
183
+ ...e,
184
+ possible: n.includes(e.position)
185
+ }));
186
+ }, $ = ({ data: e }) => e ? e.end.value > e.start.value ? "up" : "down" : null, me = ({ data: e }) => e ? e.end.value > e.start.value ? "right" : "left" : null, he = (e, t, n, a, o, u) => {
187
+ let d = e.measures.filter((e) => s(e)), f = d.filter((e) => e.graphType === i.Bar), p = f.filter((e) => e.dataLabels?.show), g = f.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), _ = L(e), v = p.map((n) => {
188
+ let a = !!n.dataLabels?.barLabelPlacements, o = pe(n.dataLabels?.barLabelPlacements, g).filter((e) => e.possible).map((e) => ({
189
+ position: e.position,
190
+ fill: e.position === x.Inside ? r.white : "#242424",
191
+ ...e.justify === void 0 ? {} : { justify: e.justify },
192
+ ...a ? { overflow: [x.Outside, x.Opposite].includes(e.position) } : {}
193
+ }));
194
+ return n.dataLabels?.showBackdrop && !g && (o = o.map((e) => P(e, t, _))), {
195
+ key: `combo-bar-labels-${n.dataItem.uniqueSignature}`,
196
+ type: O.Labels,
197
+ layout: { displayOrder: z.Labels },
198
+ settings: { sources: [{
199
+ component: j(e, n, i.Bar),
200
+ selector: te.Rect,
201
+ strategy: {
202
+ type: "bar",
203
+ settings: {
204
+ direction: _ ? me : $,
205
+ fontSize: K(n.dataLabels?.size, h(t).fontSizes.dataLabel),
206
+ fontFamily: t.fonts.general.fontFamily,
207
+ labels: [{
208
+ label: R(n),
209
+ placements: o
210
+ }]
211
+ }
212
+ }
213
+ }] },
214
+ animations: {
215
+ enabled: !0,
216
+ presetId: "chart-labels"
217
+ }
218
+ };
219
+ }), y = {}, b = {}, S = d.filter((e) => e.graphType !== i.Bar).map((t) => {
220
+ let n = l(t.dataItem), r = j(e, t, i.Point);
221
+ return b[r] = n, y[r] = {
222
+ enabled: t.dataLabels?.show || !1,
223
+ fontSize: t.dataLabels?.size,
224
+ backdropColor: t.dataLabels?.backdropColor,
225
+ textColor: t.dataLabels?.textColor,
226
+ isColored: t.dataLabels?.isColored,
227
+ colorType: t.dataLabels?.showBackdrop ? c.Backdrop : c.Text,
228
+ density: t.dataLabels?.density || m.Medium
229
+ }, r;
230
+ }).filter((e) => y[e].enabled), C = S.length ? [X({
231
+ targetComponentKeys: S,
232
+ targetSelector: `.${M}`,
233
+ label: ({ data: e, node: t }) => e[b[t.key]]?.label,
234
+ skipBrush: !0
235
+ }, y, u, t)] : [];
236
+ if (v.length && C.length) {
237
+ let e = {
238
+ ...C[0],
239
+ settings: {
240
+ ...C[0].settings,
241
+ sources: [...v.flatMap((e) => e.settings?.sources ?? []), ...C[0].settings?.sources ?? []]
242
+ }
243
+ };
244
+ return {
245
+ ...n,
246
+ components: [...n.components, e]
247
+ };
248
+ }
249
+ return {
250
+ ...n,
251
+ components: [
252
+ ...n.components,
253
+ ...v,
254
+ ...C
255
+ ]
256
+ };
257
+ }, ge = class extends I {
258
+ constructor() {
259
+ super([
260
+ le,
261
+ ce,
262
+ U,
263
+ k,
264
+ ue,
265
+ ne,
266
+ w,
267
+ he,
268
+ re,
269
+ A,
270
+ N,
271
+ F,
272
+ Z,
273
+ Q
274
+ ]);
275
+ }
276
+ }, _e = y(), ve = _(({ vSpec: e, vTheme: t, data: r, elementSize: a, vizProperties: o }) => {
277
+ let s = v(), [c] = (0, se.useState)(() => new ge()), l = g(), u = q();
278
+ if (!e || !a) return null;
279
+ let d = t || n, f = c.compile(e, d, r, a, o, i.Combo, s, l, u);
280
+ return f ? /* @__PURE__ */ (0, _e.jsx)(H, {
281
+ config: o,
282
+ definition: f,
283
+ size: a,
284
+ vSpec: e
285
+ }) : null;
286
+ });
287
+ export { ve as ComboChart };
@@ -1,13 +1,13 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Na as t, oc as n, za as r } from "./visualization-filters-BwS0xUqs.js";
3
- import { Br as i, G as a, Mt as o, Qt as s, ci as c, cn as l, f as u, li as d, o as f, sr as p } from "./utils-BdJrEeIQ.js";
4
- import { l as m } from "./logger-Bc-DqDM_.js";
2
+ import { Nc as t, Ua as n, co as r } from "./visualization-filters-B9qik5_K.js";
3
+ import { G as i, Mt as a, Ur as o, di as s, dn as c, f as l, fi as u, o as d, tn as f, ur as p } from "./utils-CUKgR7it.js";
4
+ import { l as m } from "./logger-Cioob-QV.js";
5
5
  var h = {
6
6
  OpenMediaPicker: "OPEN_MEDIA_PICKER",
7
7
  OpenMediaPickerResult: "OPEN_MEDIA_PICKER_RESULT",
8
8
  OPEN_TOP_BAR: "OPEN_TOP_BAR",
9
9
  OPEN_CREATE_BOOKMARK_WINDOW: "OPEN_CREATE_BOOKMARK_WINDOW"
10
- }, g = /* @__PURE__ */ e(d());
10
+ }, g = /* @__PURE__ */ e(u());
11
11
  g.forwardRef(function(e, t) {
12
12
  return g.createElement("img", {
13
13
  ...e,
@@ -22,7 +22,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
22
22
  saturation: t?.imageSettings.saturation ?? 1,
23
23
  blur: t?.imageSettings.blur ?? 0,
24
24
  shadow: t?.imageSettings.shadow ?? !1
25
- }), b = a({
25
+ }), b = i({
26
26
  singleImageContainer: {
27
27
  display: "flex",
28
28
  height: "100%",
@@ -40,19 +40,19 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
40
40
  }
41
41
  },
42
42
  addGalleryButton: {
43
- ...c.normal14,
43
+ ...s.normal14,
44
44
  padding: "10px 20px",
45
- background: t.white,
45
+ background: n.white,
46
46
  borderRadius: 4,
47
- border: `1px solid ${t.grey3}`,
48
- color: t.secondaryPurple,
47
+ border: `1px solid ${n.grey3}`,
48
+ color: n.secondaryPurple,
49
49
  cursor: "pointer",
50
50
  display: "flex",
51
51
  justifyContent: "center",
52
52
  alignItems: "center"
53
53
  },
54
54
  buttonIcon: { marginRight: 5 }
55
- }), x = a({
55
+ }), x = i({
56
56
  mainContainer: {
57
57
  display: "flex",
58
58
  flexDirection: "column",
@@ -80,24 +80,24 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
80
80
  "&.fill": { objectFit: "fill" },
81
81
  "&.none": { objectFit: "none" }
82
82
  }
83
- }), S = i(), C = (e) => l({
83
+ }), S = o(), C = (e) => c({
84
84
  contain: e === r.Contain,
85
85
  cover: e === r.Cover,
86
86
  fill: e === r.Fill,
87
87
  none: e === r.None
88
88
  }), w = ({ imageSrc: e, imageFit: t, opacity: n, saturation: r, blur: i, shadow: a, onLoadCallback: o }) => {
89
- let s = x(), c = a ? "drop-shadow(0px 3px 6px rgba(0,0,0,0.25))" : "";
89
+ let s = x(), l = a ? "drop-shadow(0px 3px 6px rgba(0,0,0,0.25))" : "";
90
90
  return /* @__PURE__ */ (0, S.jsx)("div", {
91
91
  className: s.mainContainer,
92
92
  children: /* @__PURE__ */ (0, S.jsx)("div", {
93
93
  className: s.imageContainer,
94
94
  children: /* @__PURE__ */ (0, S.jsx)("img", {
95
- className: l({
95
+ className: c({
96
96
  [s.image]: !0,
97
97
  [C(t)]: !0
98
98
  }),
99
99
  style: {
100
- filter: `blur(${i}px) saturate(${r}) ${c}`,
100
+ filter: `blur(${i}px) saturate(${r}) ${l}`,
101
101
  opacity: n
102
102
  },
103
103
  alt: "",
@@ -108,15 +108,15 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
108
108
  })
109
109
  })
110
110
  });
111
- }, T = o(({ vSpec: e }) => {
112
- let r = s(), i = b(), { variablesDict: a } = f(), o = e && n(e) ? y(r, e, a) : null, c = u();
111
+ }, T = a(({ vSpec: e }) => {
112
+ let r = f(), i = b(), { variablesDict: a } = d(), o = e && t(e) ? y(r, e, a) : null, s = l();
113
113
  return (0, g.useEffect)(() => {
114
- !o?.imageSrc && r.daedalus.objectCapabilities.editable && c();
114
+ !o?.imageSrc && r.daedalus.objectCapabilities.editable && s();
115
115
  }, [e, o?.imageSrc]), o?.imageSrc ? /* @__PURE__ */ (0, S.jsx)("div", {
116
116
  className: i.singleImageContainer,
117
117
  children: /* @__PURE__ */ (0, S.jsx)(w, {
118
118
  ...o,
119
- onLoadCallback: c
119
+ onLoadCallback: s
120
120
  })
121
121
  }) : r.daedalus.objectCapabilities.editable ? /* @__PURE__ */ (0, S.jsx)("div", {
122
122
  className: i.previewImageContainer,
@@ -127,7 +127,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
127
127
  r.emitEvent(m.SET_PROPERTY_PANEL_OBJECT_TAB, "ITEM"), r.emitEvent(h.OpenMediaPicker);
128
128
  },
129
129
  children: [/* @__PURE__ */ (0, S.jsx)(p, {
130
- fill: t.mainDarkNavy,
130
+ fill: n.mainDarkNavy,
131
131
  size: 16,
132
132
  className: i.buttonIcon
133
133
  }), "Add from the Gallery"]
@@ -137,8 +137,8 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
137
137
  children: /* @__PURE__ */ (0, S.jsx)("img", {
138
138
  src: _,
139
139
  alt: "no image",
140
- onLoad: c,
141
- onError: c
140
+ onLoad: s,
141
+ onError: s
142
142
  })
143
143
  });
144
144
  });