@astrato-io/visualizations 0.8.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 (161) hide show
  1. package/README.md +9 -5
  2. package/THIRD_PARTY_NOTICES.md +403 -325
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
  5. package/chunks/CircularProgress-yupH6YWs.js +765 -0
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/LinearProgress-CyFjN4px.js +327 -0
  8. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
  9. package/chunks/Title-C-p4ZarD.js +1804 -0
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/contains-BK-sRXcB.js +21 -0
  19. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  20. package/chunks/defaults-cyNhn37t.js +3 -0
  21. package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
  22. package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
  23. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
  24. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
  25. package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
  26. package/chunks/handlers-ZviIUC-j.js +15387 -0
  27. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  28. package/chunks/isEqual-Ch9OEye3.js +16 -0
  29. package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
  32. package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
  33. package/chunks/map.compiler-CKzorLgK.js +345 -0
  34. package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
  35. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
  36. package/chunks/operations-DZoY50VX.js +31297 -0
  37. package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
  38. package/chunks/react-dom-Dgv2azN2.js +368 -0
  39. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
  40. package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
  41. package/chunks/responsive.styles-FItb913l.js +93 -0
  42. package/chunks/shared-UitWpq1J.js +1331 -0
  43. package/chunks/standalone-B0U6c3su.js +3638 -0
  44. package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
  45. package/chunks/standalone-BEekPuA12.js +357 -0
  46. package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
  47. package/chunks/standalone-BR2JuRIC.js +422 -0
  48. package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
  49. package/chunks/standalone-Bnnr87pc.js +2009 -0
  50. package/chunks/standalone-BwJqDj2Z.js +396 -0
  51. package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
  52. package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
  53. package/chunks/standalone-CRfDOO1x.js +287 -0
  54. package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
  55. package/chunks/standalone-CbPk8bKn.js +580 -0
  56. package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
  57. package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
  58. package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
  59. package/chunks/standalone-DhfgeJIk.js +1012 -0
  60. package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
  61. package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
  62. package/chunks/standalone-DxBAyqAu.js +772 -0
  63. package/chunks/standalone-KMQPsNsq.js +2 -0
  64. package/chunks/standalone-MBLSvsrY.js +2 -0
  65. package/chunks/standalone-U0WJwFlG.js +354 -0
  66. package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
  67. package/chunks/standalone-wgFAVnnm.js +355 -0
  68. package/chunks/standalone-xGV0dqPV.js +689 -0
  69. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
  70. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  71. package/chunks/useFieldName-B8iCYyw1.js +7 -0
  72. package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
  73. package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
  74. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
  75. package/chunks/with-html-element-DOfkR3C1.js +16094 -0
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +303 -2
  79. package/docs/operations/combo.md +262 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +148 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +262 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +8 -8
  90. package/docs/operations/line.md +262 -1
  91. package/docs/operations/number.md +1 -1
  92. package/docs/operations/pie.md +1 -1
  93. package/docs/operations/radar.md +1 -1
  94. package/docs/operations/sankey.md +1 -1
  95. package/docs/operations/scatter.md +148 -1
  96. package/docs/operations/shape.md +1 -1
  97. package/docs/operations/simpleTextObject.md +1 -1
  98. package/docs/operations/slider.md +1 -1
  99. package/docs/operations/table.md +439 -157
  100. package/docs/operations/tree.md +1 -1
  101. package/docs/operations/treemap.md +1 -1
  102. package/docs/operations/waterfall.md +1 -1
  103. package/docs/operations/word-cloud.md +1 -1
  104. package/getters.js +2 -2
  105. package/index.js +523 -469
  106. package/metadata.js +2 -2
  107. package/operations.js +5 -5
  108. package/package.json +74 -68
  109. package/src/definitions/index.d.ts +1 -1
  110. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  111. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  112. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  113. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
  114. package/src/definitions/model/definitions/index.d.ts +2 -1
  115. package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
  116. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
  117. package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
  118. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  119. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  120. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  121. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  122. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  123. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  124. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  125. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  126. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  127. package/src/index.d.ts +1 -1
  128. package/src/operations/index.d.ts +1 -1
  129. package/src/types.d.ts +45 -41
  130. package/src/visualization-catalog.d.ts +26 -26
  131. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  132. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  133. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  134. package/chunks/Title-CO5dP1ma.js +0 -1691
  135. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  136. package/chunks/color-rules-CN7TcGrC.js +0 -6
  137. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  138. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  139. package/chunks/handlers-TOT-7INo.js +0 -12871
  140. package/chunks/isEqual-B8loyPsC.js +0 -12
  141. package/chunks/label-format-type-weq1XfcX.js +0 -8
  142. package/chunks/operations-Dh4v1Ovt.js +0 -26280
  143. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  144. package/chunks/shared-Bn4N5QcZ.js +0 -1218
  145. package/chunks/standalone-B55oyW6c.js +0 -689
  146. package/chunks/standalone-BXKRE_Se.js +0 -468
  147. package/chunks/standalone-Bes8srx1.js +0 -354
  148. package/chunks/standalone-BjZp0QMe.js +0 -2
  149. package/chunks/standalone-BlMIwpEe.js +0 -1877
  150. package/chunks/standalone-C8qAelL4.js +0 -2
  151. package/chunks/standalone-CLmGb7nn2.js +0 -355
  152. package/chunks/standalone-CXNP6-xD.js +0 -420
  153. package/chunks/standalone-DLlyRIE6.js +0 -287
  154. package/chunks/standalone-DMcI1afI.js +0 -396
  155. package/chunks/standalone-DN4S1MjT.js +0 -3874
  156. package/chunks/standalone-DYQIQH4c.js +0 -2095
  157. package/chunks/standalone-D__XCp-h.js +0 -1003
  158. package/chunks/standalone-XTgSsTAa.js +0 -354
  159. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  160. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  161. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
@@ -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-Cc4KU-l-.js";
3
- import { An as i, Ei as a, Ti as o, W as s, Xt as c, a as l, bn as u, d, ri as f, wr as p } from "./utils-vdmi_2PK.js";
4
- import { l as m } from "./logger-DpQtYQnX.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(a());
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 = s({
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
- ...o.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 = s({
55
+ }), x = i({
53
56
  mainContainer: {
54
57
  display: "flex",
55
58
  flexDirection: "column",
@@ -77,43 +80,43 @@ 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) => i({
83
+ }), S = p(), C = (e) => f({
81
84
  contain: e === n.Contain,
82
85
  cover: e === n.Cover,
83
86
  fill: e === n.Fill,
84
87
  none: e === n.None
85
- }), w = ({ imageSrc: e, imageFit: t, opacity: n, saturation: r, blur: a, shadow: o, onLoadCallback: s }) => {
86
- let c = x(), l = o ? "drop-shadow(0px 3px 6px rgba(0,0,0,0.25))" : "";
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))" : "";
87
90
  return /* @__PURE__ */ (0, S.jsx)("div", {
88
- className: c.mainContainer,
91
+ className: s.mainContainer,
89
92
  children: /* @__PURE__ */ (0, S.jsx)("div", {
90
- className: c.imageContainer,
93
+ className: s.imageContainer,
91
94
  children: /* @__PURE__ */ (0, S.jsx)("img", {
92
- className: i({
93
- [c.image]: !0,
95
+ className: f({
96
+ [s.image]: !0,
94
97
  [C(t)]: !0
95
98
  }),
96
99
  style: {
97
- filter: `blur(${a}px) saturate(${r}) ${l}`,
100
+ filter: `blur(${i}px) saturate(${r}) ${c}`,
98
101
  opacity: n
99
102
  },
100
103
  alt: "",
101
104
  title: e.trim() ? "" : "Add Image",
102
105
  src: e.trim() || "data:image/svg+xml,%3Csvg%20width%3D%22177%22%20height%3D%22177%22%20viewBox%3D%220%200%20177%20177%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M177%2041.2427V164.357C177%20167.71%20175.668%20170.926%20173.297%20173.297C170.926%20175.668%20167.71%20177%20164.357%20177H12.6429C9.28976%20177%206.074%20175.668%203.70301%20173.297C1.33201%20170.926%200%20167.71%200%20164.357V12.6429C0%209.28976%201.33201%206.074%203.70301%203.70301C6.074%201.33201%209.28976%200%2012.6429%200L135.757%200C139.11%200%20152.289%2016.5319%20154.66%2018.9029C157.031%2021.2739%20177%2037.8896%20177%2041.2427Z%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2225%22%20y%3D%2225%22%20width%3D%22127%22%20height%3D%22127%22%3E%0A%20%20%20%20%3Crect%20x%3D%2225.2857%22%20y%3D%2225.2857%22%20width%3D%22126.429%22%20height%3D%22126.429%22%20fill%3D%22%23F2F2F2%22%2F%3E%0A%20%20%3C%2Fmask%3E%0A%20%20%3Cg%20mask%3D%22url(%23mask0)%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M135.703%20147.315L126.644%20123.059L90.9439%2027.4276C90.4703%2026.1541%2089.227%2025.2857%2087.8653%2025.2857C86.4444%2025.2857%2085.201%2026.0962%2084.7274%2027.3118L61.2231%2083.9847L44.3497%2069.7441C43.3432%2068.8758%2041.8631%2068.7021%2040.679%2069.281C39.4949%2069.8599%2038.7252%2071.0756%2038.8436%2072.407L42.3367%20130.469C42.3959%20131.685%2043.1656%20132.727%2044.2905%20133.248C45.4154%20133.769%2046.7179%20133.595%2047.7244%20132.901L80.287%20108.645L130.493%20150.904C131.144%20151.425%20131.914%20151.714%20132.683%20151.714C133.335%20151.714%20133.986%20151.541%20134.578%20151.135C135.703%20150.267%20136.236%20148.704%20135.703%20147.315ZM58.5589%2090.4103L48.0796%20115.65L45.9482%2079.8167L58.5589%2090.4103ZM53.2896%20120.454L63.8873%2094.9257L75.0178%20104.304L53.2896%20120.454ZM66.5515%2088.5L87.6284%2037.616L104.324%2082.3638L80.4055%20100.136L66.5515%2088.5ZM85.6155%20104.593L106.752%2088.8474L120.369%20125.259L125.046%20137.763L85.6155%20104.593Z%22%20fill%3D%22%23BDBDBD%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M137.419%200H135.757V28.5999C135.757%2031.953%20137.089%2035.1687%20139.46%2037.5397C141.831%2039.9107%20145.047%2041.2427%20148.4%2041.2427H177V39.581L137.419%200Z%22%20fill%3D%22%23E0E0E0%22%2F%3E%0A%3C%2Fsvg%3E%0A",
103
- onLoad: s,
104
- onError: s
106
+ onLoad: o,
107
+ onError: o
105
108
  })
106
109
  })
107
110
  });
108
111
  }, T = c(({ vSpec: e }) => {
109
- let n = u(), i = b(), { variablesDict: a } = l(), o = e && r(e) ? y(n, e, a) : null, s = d();
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
- !o?.imageSrc && n.daedalus.objectCapabilities.editable && s();
112
- }, [e, o?.imageSrc]), o?.imageSrc ? /* @__PURE__ */ (0, S.jsx)("div", {
114
+ !c?.imageSrc && n.daedalus.objectCapabilities.editable && d();
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
- ...o,
116
- onLoadCallback: s
118
+ ...c,
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)(p, {
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: s,
138
- onError: s
140
+ onLoad: d,
141
+ onError: d
139
142
  })
140
143
  });
141
144
  });