@astrato-io/visualizations 0.9.0 → 0.10.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 (145) hide show
  1. package/README.md +8 -4
  2. package/THIRD_PARTY_NOTICES.md +163 -14
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-5CxPEACP.js → Button-CCF851ea.js} +4 -4
  5. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-yupH6YWs.js} +39 -39
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-CyFjN4px.js} +9 -9
  8. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-CQpT79AP.js} +143 -142
  9. package/chunks/{Title-CtFw1bVg.js → Title-C-p4ZarD.js} +22 -22
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-Dxo7D7c6.js → builder-CScg1TOS.js} +71 -38
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-B-Wa8D5P.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  19. package/chunks/defaults-cyNhn37t.js +3 -0
  20. package/chunks/{definitions-DNpzD9tY.js → definitions-C4grxhye.js} +613 -401
  21. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CjirINHP.js} +5326 -5079
  22. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D-l9u_we.js} +974 -909
  23. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-lji2Acgn.js} +10 -10
  24. package/chunks/{filtering-CGuLpg7u.js → filtering-C1zakrrX.js} +385 -429
  25. package/chunks/handlers-ZviIUC-j.js +15387 -0
  26. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  27. package/chunks/isEqual-Ch9OEye3.js +16 -0
  28. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-CgMP0qkR.js} +1 -1
  29. package/chunks/label-format-type-C46pzgx7.js +17 -0
  30. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-De5fiKuR.js} +9 -9
  31. package/chunks/{logger-3lng-wOw.js → logger-CKRjhSHQ.js} +71 -64
  32. package/chunks/map.compiler-CKzorLgK.js +345 -0
  33. package/chunks/{metadata-Fmx1swpK.js → metadata-Bb9pTXrq.js} +1 -1
  34. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-CaTmJkmi.js} +7 -7
  35. package/chunks/operations-DZoY50VX.js +31297 -0
  36. package/chunks/{range-CzO4isKK.js → range-D1BTmFMp.js} +2 -2
  37. package/chunks/{react-dom-BwZT0N3F.js → react-dom-Dgv2azN2.js} +70 -70
  38. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-_P3xwu5A.js} +1 -1
  39. package/chunks/{requirements-CYpVh65U.js → requirements-NHNrR8Ie.js} +59 -57
  40. package/chunks/shared-UitWpq1J.js +1331 -0
  41. package/chunks/{standalone-CoQxJ6ov.js → standalone-B0U6c3su.js} +804 -804
  42. package/chunks/{standalone-C6XDHYAM.js → standalone-BBu90BhK.js} +109 -109
  43. package/chunks/standalone-BEekPuA12.js +357 -0
  44. package/chunks/{standalone-CPUiiWNP.js → standalone-BOzHA_d4.js} +41 -41
  45. package/chunks/standalone-BR2JuRIC.js +422 -0
  46. package/chunks/{standalone-DuwTOBXH.js → standalone-BapqaniK.js} +592 -592
  47. package/chunks/{standalone-DWPfdP0A.js → standalone-Bnnr87pc.js} +523 -523
  48. package/chunks/standalone-BwJqDj2Z.js +396 -0
  49. package/chunks/{standalone-LFVgLhia.js → standalone-ByKKqT5L.js} +266 -258
  50. package/chunks/{standalone-BDrQMxLi.js → standalone-CRdDZYeM.js} +1788 -1004
  51. package/chunks/standalone-CRfDOO1x.js +287 -0
  52. package/chunks/{standalone-BvWdpUL3.js → standalone-CVknVdUC.js} +21 -18
  53. package/chunks/standalone-CbPk8bKn.js +580 -0
  54. package/chunks/{standalone-r4ObFvys.js → standalone-Ck63MZzj.js} +218 -216
  55. package/chunks/{standalone-Cu73fzSr.js → standalone-DCFY1MAV.js} +6040 -5820
  56. package/chunks/{standalone-CiaaibTa.js → standalone-DZDGX3aa.js} +174 -174
  57. package/chunks/standalone-DhfgeJIk.js +1012 -0
  58. package/chunks/standalone-DibjA73M.js +6 -0
  59. package/chunks/{standalone-CXniic5x.js → standalone-DtBk_iUz.js} +6 -5
  60. package/chunks/standalone-DxBAyqAu.js +772 -0
  61. package/chunks/standalone-KMQPsNsq.js +2 -0
  62. package/chunks/standalone-MBLSvsrY.js +2 -0
  63. package/chunks/standalone-U0WJwFlG.js +354 -0
  64. package/chunks/{standalone-CNkHsynO.js → standalone-swGs70tD.js} +54 -56
  65. package/chunks/standalone-wgFAVnnm.js +355 -0
  66. package/chunks/standalone-xGV0dqPV.js +689 -0
  67. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-OWSx5MOq.js} +4 -4
  68. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-B8iCYyw1.js} +1 -1
  69. package/chunks/{utils-DYYD4Zzf.js → utils-3Igg6xmO.js} +4740 -4737
  70. package/chunks/{view-7fH6mGmY.js → view-DdMLZySj.js} +1988 -1632
  71. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-CzvFHE6M.js} +3158 -2417
  72. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-DOfkR3C1.js} +3353 -3160
  73. package/definitions.js +2 -2
  74. package/docs/operations/astrato-app-filter-bar.md +1 -1
  75. package/docs/operations/bar.md +303 -2
  76. package/docs/operations/combo.md +262 -1
  77. package/docs/operations/date-picker.md +1 -1
  78. package/docs/operations/distribution-gauge.md +1 -1
  79. package/docs/operations/dot.md +148 -1
  80. package/docs/operations/filter.md +1 -1
  81. package/docs/operations/gauge.md +1 -1
  82. package/docs/operations/heatMap.md +1 -1
  83. package/docs/operations/histogram.md +262 -1
  84. package/docs/operations/iframe.md +1 -1
  85. package/docs/operations/image.md +1 -1
  86. package/docs/operations/index.md +7 -7
  87. package/docs/operations/line.md +262 -1
  88. package/docs/operations/number.md +1 -1
  89. package/docs/operations/pie.md +1 -1
  90. package/docs/operations/radar.md +1 -1
  91. package/docs/operations/sankey.md +1 -1
  92. package/docs/operations/scatter.md +148 -1
  93. package/docs/operations/shape.md +1 -1
  94. package/docs/operations/simpleTextObject.md +1 -1
  95. package/docs/operations/slider.md +1 -1
  96. package/docs/operations/table.md +374 -157
  97. package/docs/operations/tree.md +1 -1
  98. package/docs/operations/treemap.md +1 -1
  99. package/docs/operations/waterfall.md +1 -1
  100. package/docs/operations/word-cloud.md +1 -1
  101. package/getters.js +2 -2
  102. package/index.js +507 -459
  103. package/metadata.js +2 -2
  104. package/operations.js +5 -5
  105. package/package.json +72 -67
  106. package/src/definitions/index.d.ts +1 -1
  107. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  108. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  109. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  110. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +188 -2
  111. package/src/definitions/model/definitions/index.d.ts +2 -1
  112. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  114. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  115. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  116. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  117. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  118. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  119. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  120. package/src/index.d.ts +1 -1
  121. package/src/operations/index.d.ts +1 -1
  122. package/src/types.d.ts +45 -41
  123. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  124. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  125. package/chunks/color-rules-CN7TcGrC.js +0 -6
  126. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  127. package/chunks/handlers-CMbyj5y1.js +0 -12930
  128. package/chunks/isEqual-DBg_b35N.js +0 -12
  129. package/chunks/label-format-type-weq1XfcX.js +0 -8
  130. package/chunks/operations-HSqnCRvv.js +0 -26324
  131. package/chunks/shared-DFoJxjVN.js +0 -1218
  132. package/chunks/standalone-530a5lvf.js +0 -1003
  133. package/chunks/standalone-5DnapeHH.js +0 -420
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-B6s_xG2u.js +0 -354
  136. package/chunks/standalone-BMoJXGYe.js +0 -2
  137. package/chunks/standalone-BfvGggeM2.js +0 -355
  138. package/chunks/standalone-CMJJIi9v.js +0 -2
  139. package/chunks/standalone-C_Jd4gkj.js +0 -6
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DMCwtebn.js +0 -396
  142. package/chunks/standalone-DpSRmAWx.js +0 -287
  143. package/chunks/standalone-kzAhwH19.js +0 -689
  144. package/chunks/standalone-mb7LwEiq.js +0 -3874
  145. /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 { Cs as t, Da as n, Ic as r, Io as i, Jt as a, Lt as o, Pc as s, Qr as c, So as l, Ut as u, hc as d, oa as f, vc as p, xo as m } from "./visualization-filters-CzvFHE6M.js";
3
+ import { F as h, N as g, ci as _, jt as v, zr as y } from "./utils-3Igg6xmO.js";
4
+ import { h_ as b } from "./handlers-ZviIUC-j.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-CKRjhSHQ.js";
8
+ import { Bt as C, Ct as w, Dt as T, G as E, H as D, I as O, L as k, Pt as ee, R as te, V as A, Vt as j, Wt as M, X as N, Xt as P, _t as F, an as I, bt as L, et as R, ft as z, gt as B, ht as V, i as H, in as U, jt as W, mn as G, n as K, on as q, sn as J, un as Y, ut as ne, vn as X, xt as Z, yt as Q } from "./escobar-CjirINHP.js";
9
+ import { o as re, t as ie } from "./coloring-9jU3s_-p.js";
10
+ import { t as ae } from "./set-coloring-datafield-B3uIS1Pe.js";
11
+ var oe = /* @__PURE__ */ e(_()), se = (e, t, n) => {
12
+ let i = e.dimensions.filter((e) => c(e)), l = e.measures.filter((e) => c(e)), u = i[0], f = l[0], m = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
13
+ if (g?.type === p.Categorical && (_ ||= u ? s(u.dataItem) : null), g?.type === p.Gradient && (_ ||= f ? s(f.dataItem) : null), _ && L(n, 0, { color: { field: _ } }), u && e?.axes?.dimension?.continuousAxis) {
14
+ let e = r(u.dataItem), t = !!u.datePart, n = o(e) || a(e);
15
+ m = !t && n;
16
+ }
17
+ if (h = T(ae(e, _), t, h), h = N(e, h, n.collections, m, !0), l.filter((e) => e.graphType === d.Bar).length > 1 && !e.barSettings?.grouped) {
18
+ let t = q(e, l.find((e) => e.graphType === d.Bar));
19
+ h[t].data = { collection: W.ComboChartCollection };
20
+ }
21
+ return {
22
+ ...n,
23
+ scales: h
24
+ };
25
+ }, ce = (e, t, n) => {
26
+ let r = e.measures.filter((e) => c(e)), i = e.dimensions.filter((e) => c(e)), a = (e.supportingMeasures ?? []).filter((e) => c(e)), o = r.reduce((e, t) => {
27
+ let n = s(t.dataItem);
28
+ return e[n] = { field: n }, e;
29
+ }, {}), l = k(a), u = i.reduce((e, t) => {
30
+ let n = s(t.dataItem);
31
+ return e[n] = { field: n }, e;
32
+ }, {}), f = i[0];
33
+ if (!f) return n;
34
+ let p = s(f.dataItem), m = {
35
+ key: W.ComboChartCollection,
36
+ data: { extract: [] }
37
+ };
38
+ if (m.data.extract = r.map((e, t) => {
39
+ let n = s(e.dataItem);
40
+ return {
41
+ field: p,
42
+ props: {
43
+ end: { field: n },
44
+ ...o,
45
+ ...l,
46
+ ...u,
47
+ start: 0,
48
+ graphType: e.graphType,
49
+ measureIndex: t,
50
+ fieldId: n
51
+ }
52
+ };
53
+ }), r.filter((e) => e.graphType === d.Bar).length > 1) {
54
+ let t = !!r.find((e) => e.graphType === d.Bar)?.secondaryAxis, n = new Map(r.map((e) => [s(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 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: x.Diverging
64
+ });
65
+ }
66
+ return {
67
+ ...n,
68
+ collections: [...n.collections ?? [], m]
69
+ };
70
+ }, le = (e, t, n, r, i, a) => {
71
+ let o = [];
72
+ return e.measures.filter((e) => c(e)).forEach((r) => {
73
+ let c = s(r.dataItem), l = (e) => e.fieldId.value === c;
74
+ switch (r.graphType || e.type) {
75
+ case d.Bar:
76
+ o.push(de(e, t, i ?? [], n, r, a, l));
77
+ break;
78
+ case d.Point:
79
+ o.push(F(e, t, n, r, !1, W.ComboChartCollection, l));
80
+ break;
81
+ default: o.push(ue(e, t, n, r, l)), o.push(F(e, t, n, r, !r.showDataPoints, W.ComboChartCollection, l));
82
+ }
83
+ }), o.sort((e) => e.type === X.Box ? -1 : 0), {
84
+ ...n,
85
+ components: [...n.components, ...o]
86
+ };
87
+ };
88
+ function ue(e, n, r, a, o) {
89
+ let l = e.dimensions.filter((e) => c(e));
90
+ if (!l[0]) throw Error("Combo chart without dimension is not supported.");
91
+ if (l.length > 1) throw Error("Combo chart currently support only one dimension.");
92
+ let u = S(a.strokeDash), f = s(a.dataItem), p = re(e, r, n, a, f);
93
+ return {
94
+ type: X.Line,
95
+ layout: { displayOrder: j.VisualizationElement },
96
+ key: Q(e, a, d.Line),
97
+ data: t({
98
+ collection: W.ComboChartCollection,
99
+ filter: o
100
+ }),
101
+ settings: {
102
+ orientation: e.orientation === i.Horizontal ? i.Vertical : i.Horizontal,
103
+ coordinates: {
104
+ major: { scale: I(e) },
105
+ minor: {
106
+ scale: q(e, a),
107
+ ref: f
108
+ }
109
+ },
110
+ layers: {
111
+ curve: e.lineSettings?.lineCurve,
112
+ skipCollisions: !0,
113
+ line: {
114
+ stroke: p,
115
+ strokeWidth: a.strokeWidth,
116
+ strokeDasharray: u
117
+ }
118
+ }
119
+ },
120
+ animations: {
121
+ enabled: !0,
122
+ presetId: "simple-opacity"
123
+ }
124
+ };
125
+ }
126
+ function de(e, n, r, a, o, l, f) {
127
+ let p = e.dimensions.filter((e) => c(e)), m = e.measures.filter((e) => c(e) && e.graphType === d.Bar);
128
+ if (!p[0]) throw Error("Combo chart without dimension is not supported.");
129
+ let h = { scale: I(e) }, g = {
130
+ scale: q(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 ?? G.scale.padding
138
+ };
139
+ _.fill = new ie(e, n, 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), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / m.length, i = (1 + 0 * (m.length - 1)) * r, a = m.findIndex((e) => s(e.dataItem) === s(o.dataItem));
146
+ h.fn = (n) => {
147
+ let r = n.resources.scale(I(e));
148
+ return r(n.datum.value) + i * r.bandwidth?.() + a * r.bandwidth?.() * t;
149
+ }, _.width = n;
150
+ }
151
+ return {
152
+ type: X.Box,
153
+ layout: { displayOrder: j.VisualizationElement },
154
+ key: Q(e, o, d.Bar),
155
+ data: t({
156
+ collection: W.ComboChartCollection,
157
+ filter: f
158
+ }),
159
+ settings: {
160
+ orientation: e.orientation ?? i.Vertical,
161
+ major: h,
162
+ minor: g,
163
+ box: _
164
+ },
165
+ animations: v,
166
+ brush: y ? null : P([""], l)
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, t, r, i, a, o) => {
187
+ let u = e.measures.filter((e) => c(e)), f = u.filter((e) => e.graphType === d.Bar), p = f.filter((e) => e.dataLabels?.show), h = f.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = J(e), _ = p.map((r) => {
188
+ let i = !!r.dataLabels?.barLabelPlacements, a = fe(r.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
189
+ position: e.position,
190
+ fill: e.position === b.Inside ? n.white : "#242424",
191
+ ...e.justify === void 0 ? {} : { justify: e.justify },
192
+ ...i ? { overflow: [b.Outside, b.Opposite].includes(e.position) } : {}
193
+ }));
194
+ return r.dataLabels?.showBackdrop && !h && (a = a.map((e) => te(e, t, g))), {
195
+ key: `combo-bar-labels-${r.dataItem.uniqueSignature}`,
196
+ type: X.Labels,
197
+ layout: { displayOrder: j.Labels },
198
+ settings: { sources: [{
199
+ component: Q(e, r, d.Bar),
200
+ selector: Y.Rect,
201
+ strategy: {
202
+ type: "bar",
203
+ settings: {
204
+ direction: g ? $ : pe,
205
+ fontSize: U(r.dataLabels?.size),
206
+ fontFamily: t.fonts.general.fontFamily,
207
+ labels: [{
208
+ label: A(r),
209
+ placements: a
210
+ }]
211
+ }
212
+ }
213
+ }] },
214
+ animations: {
215
+ enabled: !0,
216
+ presetId: "chart-labels"
217
+ }
218
+ };
219
+ }), v = {}, y = {}, x = u.filter((e) => e.graphType !== d.Bar).map((t) => {
220
+ let n = s(t.dataItem), r = Q(e, t, d.Point);
221
+ return y[r] = n, v[r] = {
222
+ enabled: t.dataLabels?.show || !1,
223
+ fontSize: U(t.dataLabels?.size),
224
+ backdropColor: t.dataLabels?.backdropColor,
225
+ textColor: t.dataLabels?.textColor,
226
+ isColored: t.dataLabels?.isColored,
227
+ colorType: t.dataLabels?.showBackdrop ? m.Backdrop : m.Text,
228
+ density: t.dataLabels?.density || l.Medium
229
+ }, r;
230
+ }).filter((e) => v[e].enabled), S = x.length ? [E({
231
+ targetComponentKeys: x,
232
+ targetSelector: `.${B}`,
233
+ label: ({ data: e, node: t }) => e[y[t.key]]?.label,
234
+ skipBrush: !0
235
+ }, v, o, t)] : [];
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
+ ...r,
246
+ components: [...r.components, e]
247
+ };
248
+ }
249
+ return {
250
+ ...r,
251
+ components: [
252
+ ...r.components,
253
+ ..._,
254
+ ...S
255
+ ]
256
+ };
257
+ }, he = class extends O {
258
+ constructor() {
259
+ super([
260
+ ce,
261
+ se,
262
+ M,
263
+ w,
264
+ le,
265
+ z,
266
+ Z,
267
+ me,
268
+ ne,
269
+ R,
270
+ ee,
271
+ C,
272
+ V,
273
+ D
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 = K();
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)(H, {
281
+ config: i,
282
+ definition: u,
283
+ size: r,
284
+ vSpec: e
285
+ }) : null;
286
+ });
287
+ export { _e as ComboChart };
@@ -1,10 +1,13 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Hi as t, Ji as n, ss as r } from "./visualization-filters-mVnsnvLP.js";
3
- import { $r as i, Jt as a, Ot as o, Qn as s, W as c, ei as l, f as u, in as d, jr as f, o as p } from "./utils-DYYD4Zzf.js";
4
- import { l as m } from "./logger-3lng-wOw.js";
5
- var h = /* @__PURE__ */ function(e) {
6
- return e.OpenMediaPicker = "OPEN_MEDIA_PICKER", e.OpenMediaPickerResult = "OPEN_MEDIA_PICKER_RESULT", e.OPEN_TOP_BAR = "OPEN_TOP_BAR", e.OPEN_CREATE_BOOKMARK_WINDOW = "OPEN_CREATE_BOOKMARK_WINDOW", e;
7
- }({}), g = /* @__PURE__ */ e(l());
2
+ import { Da as t, Na as n, Qs as r } from "./visualization-filters-CzvFHE6M.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-3Igg6xmO.js";
4
+ import { l as m } from "./logger-CKRjhSHQ.js";
5
+ var h = {
6
+ OpenMediaPicker: "OPEN_MEDIA_PICKER",
7
+ OpenMediaPickerResult: "OPEN_MEDIA_PICKER_RESULT",
8
+ OPEN_TOP_BAR: "OPEN_TOP_BAR",
9
+ OPEN_CREATE_BOOKMARK_WINDOW: "OPEN_CREATE_BOOKMARK_WINDOW"
10
+ }, g = /* @__PURE__ */ e(o());
8
11
  g.forwardRef(function(e, t) {
9
12
  return g.createElement("img", {
10
13
  ...e,
@@ -19,7 +22,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
19
22
  saturation: t?.imageSettings.saturation ?? 1,
20
23
  blur: t?.imageSettings.blur ?? 0,
21
24
  shadow: t?.imageSettings.shadow ?? !1
22
- }), b = c({
25
+ }), b = i({
23
26
  singleImageContainer: {
24
27
  display: "flex",
25
28
  height: "100%",
@@ -37,7 +40,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
37
40
  }
38
41
  },
39
42
  addGalleryButton: {
40
- ...i.normal14,
43
+ ...d.normal14,
41
44
  padding: "10px 20px",
42
45
  background: t.white,
43
46
  borderRadius: 4,
@@ -49,7 +52,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
49
52
  alignItems: "center"
50
53
  },
51
54
  buttonIcon: { marginRight: 5 }
52
- }), x = c({
55
+ }), x = i({
53
56
  mainContainer: {
54
57
  display: "flex",
55
58
  flexDirection: "column",
@@ -77,7 +80,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
77
80
  "&.fill": { objectFit: "fill" },
78
81
  "&.none": { objectFit: "none" }
79
82
  }
80
- }), S = f(), C = (e) => d({
83
+ }), S = p(), C = (e) => f({
81
84
  contain: e === n.Contain,
82
85
  cover: e === n.Cover,
83
86
  fill: e === n.Fill,
@@ -89,7 +92,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
89
92
  children: /* @__PURE__ */ (0, S.jsx)("div", {
90
93
  className: s.imageContainer,
91
94
  children: /* @__PURE__ */ (0, S.jsx)("img", {
92
- className: d({
95
+ className: f({
93
96
  [s.image]: !0,
94
97
  [C(t)]: !0
95
98
  }),
@@ -105,15 +108,15 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
105
108
  })
106
109
  })
107
110
  });
108
- }, T = o(({ vSpec: e }) => {
109
- let n = a(), i = b(), { variablesDict: o } = p(), c = e && r(e) ? y(n, e, o) : null, l = u();
111
+ }, T = c(({ vSpec: e }) => {
112
+ let n = a(), i = b(), { variablesDict: o } = l(), c = e && r(e) ? y(n, e, o) : null, d = s();
110
113
  return (0, g.useEffect)(() => {
111
- !c?.imageSrc && n.daedalus.objectCapabilities.editable && l();
114
+ !c?.imageSrc && n.daedalus.objectCapabilities.editable && d();
112
115
  }, [e, c?.imageSrc]), c?.imageSrc ? /* @__PURE__ */ (0, S.jsx)("div", {
113
116
  className: i.singleImageContainer,
114
117
  children: /* @__PURE__ */ (0, S.jsx)(w, {
115
118
  ...c,
116
- onLoadCallback: l
119
+ onLoadCallback: d
117
120
  })
118
121
  }) : n.daedalus.objectCapabilities.editable ? /* @__PURE__ */ (0, S.jsx)("div", {
119
122
  className: i.previewImageContainer,
@@ -123,7 +126,7 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
123
126
  onClick: () => {
124
127
  n.emitEvent(m.SET_PROPERTY_PANEL_OBJECT_TAB, "ITEM"), n.emitEvent(h.OpenMediaPicker);
125
128
  },
126
- children: [/* @__PURE__ */ (0, S.jsx)(s, {
129
+ children: [/* @__PURE__ */ (0, S.jsx)(u, {
127
130
  fill: t.mainDarkNavy,
128
131
  size: 16,
129
132
  className: i.buttonIcon
@@ -134,8 +137,8 @@ var _ = "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20vi
134
137
  children: /* @__PURE__ */ (0, S.jsx)("img", {
135
138
  src: _,
136
139
  alt: "no image",
137
- onLoad: l,
138
- onError: l
140
+ onLoad: d,
141
+ onError: d
139
142
  })
140
143
  });
141
144
  });