@astrato-io/visualizations 0.10.1 → 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 (143) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +148 -5
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +9 -146
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
  7. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
  10. package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
  15. package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
  16. package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
  17. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
  18. package/chunks/defaults-CMFqXvaJ.js +3 -0
  19. package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
  20. package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
  21. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
  22. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
  23. package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
  24. package/chunks/handlers-CyYFSfhM.js +15393 -0
  25. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
  26. package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
  27. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
  28. package/chunks/line.compiler-B-4H55_T.js +203 -0
  29. package/chunks/linear-Bq_r9l5S.js +264 -0
  30. package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
  31. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  32. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
  33. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  34. package/chunks/measure-format-default-B_kuGSzi.js +26 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
  36. package/chunks/number.compiler-D7nMcEMv.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
  38. package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
  42. package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
  43. package/chunks/standalone-B3hRGgYi.js +773 -0
  44. package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
  45. package/chunks/standalone-BPTT8XEu.js +424 -0
  46. package/chunks/standalone-BgAeHROc.js +2 -0
  47. package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
  48. package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
  49. package/chunks/standalone-C0If-V6O.js +773 -0
  50. package/chunks/standalone-C1TOyflX.js +287 -0
  51. package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
  52. package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
  53. package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
  54. package/chunks/standalone-CNf-oA2U.js +355 -0
  55. package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
  56. package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
  57. package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
  58. package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
  59. package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
  60. package/chunks/standalone-Dbn3jSH6.js +690 -0
  61. package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
  62. package/chunks/standalone-DwCIA0UG.js +1057 -0
  63. package/chunks/standalone-Dz13tl3P.js +357 -0
  64. package/chunks/standalone-H9GFzFk_.js +8377 -0
  65. package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
  66. package/chunks/standalone-ejTz66P3.js +2 -0
  67. package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
  68. package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
  69. package/chunks/standalone-vGGR6Vcn.js +6 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
  71. package/chunks/theme-MYp6Rj1J.js +232 -0
  72. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
  73. package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
  74. package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
  75. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
  76. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
  77. package/definitions.js +2 -2
  78. package/docs/operations/astrato-app-filter-bar.md +1 -1
  79. package/docs/operations/bar.md +144 -32
  80. package/docs/operations/combo.md +79 -17
  81. package/docs/operations/date-picker.md +4 -4
  82. package/docs/operations/distribution-gauge.md +18 -16
  83. package/docs/operations/dot.md +107 -24
  84. package/docs/operations/filter.md +10 -8
  85. package/docs/operations/gauge.md +20 -18
  86. package/docs/operations/heatMap.md +73 -21
  87. package/docs/operations/histogram.md +45 -12
  88. package/docs/operations/iframe.md +1 -1
  89. package/docs/operations/image.md +1 -1
  90. package/docs/operations/index.md +12 -11
  91. package/docs/operations/line.md +86 -24
  92. package/docs/operations/map.md +5274 -0
  93. package/docs/operations/number.md +10 -9
  94. package/docs/operations/pie.md +23 -21
  95. package/docs/operations/radar.md +13 -11
  96. package/docs/operations/sankey.md +19 -17
  97. package/docs/operations/scatter.md +111 -28
  98. package/docs/operations/shape.md +5 -5
  99. package/docs/operations/simpleTextObject.md +4 -4
  100. package/docs/operations/slider.md +1 -1
  101. package/docs/operations/table.md +27 -25
  102. package/docs/operations/tree.md +5 -3
  103. package/docs/operations/treemap.md +70 -18
  104. package/docs/operations/waterfall.md +40 -7
  105. package/docs/operations/word-cloud.md +69 -17
  106. package/getters.js +3 -3
  107. package/index.js +585 -612
  108. package/metadata.js +2 -2
  109. package/operations.js +25 -18
  110. package/package.json +74 -70
  111. package/src/definitions/index.d.ts +1 -7
  112. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  113. package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
  115. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  116. package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
  117. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  118. package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
  119. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  120. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +11 -1
  123. package/src/types.d.ts +166 -1
  124. package/src/visualization-catalog.d.ts +3 -0
  125. package/styles.css +1 -1
  126. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  127. package/chunks/color-rules-DYJL4fIW.js +0 -15
  128. package/chunks/color-settings-DJFoFTip.js +0 -5
  129. package/chunks/defaults-Dtk7fg3C.js +0 -3
  130. package/chunks/handlers-C6CZ0XJA.js +0 -15399
  131. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  132. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  133. package/chunks/standalone-4MsKiqs0.js +0 -355
  134. package/chunks/standalone-B794g9pE.js +0 -1012
  135. package/chunks/standalone-BA2YXyJS.js +0 -422
  136. package/chunks/standalone-BgumbdaJ2.js +0 -357
  137. package/chunks/standalone-Blh4qejk.js +0 -689
  138. package/chunks/standalone-CXY4FpF7.js +0 -773
  139. package/chunks/standalone-DH0xTEes.js +0 -2
  140. package/chunks/standalone-DcnHjNnC.js +0 -2
  141. package/chunks/standalone-DrHdGkY7.js +0 -762
  142. package/chunks/standalone-c_rROMtx.js +0 -287
  143. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -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 { $s as t, Oa as n, Pa as r } from "./visualization-filters-D7i6oh1Z.js";
3
- import { W as i, Zt as a, ci as o, f as s, jt as c, o as l, or as u, si as d, sn as f, zr as p } from "./utils-DganVptf.js";
4
- import { l as m } from "./logger-DdZpR7xZ.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(o());
10
+ }, g = /* @__PURE__ */ e(u());
11
11
  g.forwardRef(function(e, t) {
12
12
  return g.createElement("img", {
13
13
  ...e,
@@ -40,7 +40,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
40
40
  }
41
41
  },
42
42
  addGalleryButton: {
43
- ...d.normal14,
43
+ ...s.normal14,
44
44
  padding: "10px 20px",
45
45
  background: n.white,
46
46
  borderRadius: 4,
@@ -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 = p(), C = (e) => f({
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: f({
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 = c(({ vSpec: e }) => {
112
- let r = a(), i = b(), { variablesDict: o } = l(), c = e && t(e) ? y(r, e, o) : null, d = s();
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
- !c?.imageSrc && r.daedalus.objectCapabilities.editable && d();
115
- }, [e, c?.imageSrc]), c?.imageSrc ? /* @__PURE__ */ (0, S.jsx)("div", {
114
+ !o?.imageSrc && r.daedalus.objectCapabilities.editable && s();
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
- ...c,
119
- onLoadCallback: d
118
+ ...o,
119
+ onLoadCallback: s
120
120
  })
121
121
  }) : r.daedalus.objectCapabilities.editable ? /* @__PURE__ */ (0, S.jsx)("div", {
122
122
  className: i.previewImageContainer,
@@ -126,7 +126,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
126
126
  onClick: () => {
127
127
  r.emitEvent(m.SET_PROPERTY_PANEL_OBJECT_TAB, "ITEM"), r.emitEvent(h.OpenMediaPicker);
128
128
  },
129
- children: [/* @__PURE__ */ (0, S.jsx)(u, {
129
+ children: [/* @__PURE__ */ (0, S.jsx)(p, {
130
130
  fill: n.mainDarkNavy,
131
131
  size: 16,
132
132
  className: i.buttonIcon
@@ -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: d,
141
- onError: d
140
+ onLoad: s,
141
+ onError: s
142
142
  })
143
143
  });
144
144
  });