@astrato-io/visualizations 0.6.5 → 0.8.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.
- package/README.md +8 -2
- package/THIRD_PARTY_NOTICES.md +2 -229
- package/VISUALIZATION_DEFINITIONS.md +68 -114
- package/chunks/Button-BrGKp9Nm.js +110 -0
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
- package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
- package/chunks/{LinearProgress-B1FeWaen.js → LinearProgress-VtfFx2vJ.js} +55 -55
- package/chunks/MenuOption-ByRqhRdX.js +3934 -0
- package/chunks/Title-CO5dP1ma.js +1691 -0
- package/chunks/ToggleButton-KOBAimC1.js +112 -0
- package/chunks/{app-filter-bar.compiler-BGJ7HAbr.js → app-filter-bar.compiler-TwVTeoj5.js} +10 -10
- package/chunks/{bar.compiler-CT0ZbQKc.js → bar.compiler-DuQg8EUb.js} +84 -84
- package/chunks/builder-DEDvNq1k.js +201 -0
- package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
- package/chunks/color-settings-3VRlf_Vw.js +6 -0
- package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
- package/chunks/coloring-CncX_JRX.js +278 -0
- package/chunks/{definitions-D3OVqmXl.js → definitions-BPJQTx16.js} +490 -382
- package/chunks/{escobar-eDjtGpkC.js → escobar-DRhRMYRE.js} +6067 -4742
- package/chunks/event-bus-CrLB-Y8z.js +3 -0
- package/chunks/extend-preset-CUFNpmPe.js +4398 -0
- package/chunks/{filter.compiler-DBsyRBJt.js → filter.compiler-w27dlv0C.js} +12 -12
- package/chunks/{filtering-tqjAyJH5.js → filtering-cc7WqWpg.js} +391 -310
- package/chunks/{handlers-VTBfIZYZ.js → handlers-TOT-7INo.js} +3241 -3442
- package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
- package/chunks/isEqual-B8loyPsC.js +12 -0
- package/chunks/label-format-type-weq1XfcX.js +8 -0
- package/chunks/{line.compiler-CzdM5Ld0.js → line.compiler-Ct1WhN2p.js} +27 -27
- package/chunks/logger-DpQtYQnX.js +1163 -0
- package/chunks/lookup-BWllin0q.js +36 -0
- package/chunks/{metadata-BGElBy5Z.js → metadata-WABZrt7Y.js} +1 -1
- package/chunks/{number.compiler-G-R7y16P.js → number.compiler-D8TPly-4.js} +13 -13
- package/chunks/{operations-CTNUX6Sy.js → operations-Dh4v1Ovt.js} +9314 -9283
- package/chunks/{range-CiwTbMig.js → range-Bi-7zT0k.js} +2 -2
- package/chunks/render-wrappers-OEmtaM8g.js +2 -0
- package/chunks/{registry-CsQQzukD.js → requirements-Dvd8jqYF.js} +218 -222
- package/chunks/responsive.styles-DSiOGD7u.js +82 -0
- package/chunks/{shared-CBvcC5YV.js → shared-Bn4N5QcZ.js} +424 -424
- package/chunks/src-77e3mC7i.js +391 -0
- package/chunks/standalone-B55oyW6c.js +689 -0
- package/chunks/{standalone-C3gg736V.js → standalone-BDhPQtzQ.js} +375 -341
- package/chunks/{standalone-BMIbT1b2.js → standalone-BGkmozIb.js} +992 -837
- package/chunks/standalone-BMTCb10X.js +179 -0
- package/chunks/standalone-BXKRE_Se.js +468 -0
- package/chunks/standalone-Bes8srx1.js +354 -0
- package/chunks/standalone-BjZp0QMe.js +2 -0
- package/chunks/{standalone-JuLF-OoH.js → standalone-BlMIwpEe.js} +634 -519
- package/chunks/{standalone-C_rYnZ0N.js → standalone-C8ZAEutO.js} +43 -42
- package/chunks/standalone-C8qAelL4.js +2 -0
- package/chunks/standalone-CJvIXsQE.js +743 -0
- package/chunks/standalone-CLmGb7nn2.js +355 -0
- package/chunks/standalone-CM5XcAN5.js +52327 -0
- package/chunks/standalone-CXNP6-xD.js +420 -0
- package/chunks/{standalone-vzBY6q0I2.js → standalone-D5Q5ngsD.js} +57 -55
- package/chunks/standalone-DLlyRIE6.js +287 -0
- package/chunks/standalone-DMcI1afI.js +396 -0
- package/chunks/{standalone-DC-aUgXC.js → standalone-DN4S1MjT.js} +1111 -1092
- package/chunks/standalone-DT0wKji7.js +6 -0
- package/chunks/standalone-DW6NT205.js +518 -0
- package/chunks/standalone-DYQIQH4c.js +2095 -0
- package/chunks/standalone-D__XCp-h.js +1003 -0
- package/chunks/standalone-XTgSsTAa.js +354 -0
- package/chunks/{standalone-v1oxfU20.js → standalone-XuGksArp.js} +20 -20
- package/chunks/{standalone-0M4HlmDW2.js → standalone-vBnBS2YC.js} +1047 -964
- package/chunks/{standalone-BtSHCp2U2.js → standalone-we5D5MIn.js} +173 -168
- package/chunks/{table.compiler-tb914oj3.js → table.compiler-DMeeHxb6.js} +29 -29
- package/chunks/useFieldName-Cjn9KCVp.js +7 -0
- package/chunks/useSlotProps-DLbQp4lc.js +166 -0
- package/chunks/{utils-Bg7K-t6K.js → utils-vdmi_2PK.js} +6271 -7804
- package/chunks/{view-Bn83C8d9.js → view-BuwQugKb.js} +2717 -3504
- package/chunks/{isEqual-BDxAhUo8.js → visualization-filters-Cc4KU-l-.js} +1887 -1946
- package/chunks/with-html-element-D0uY2zjI.js +7328 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +31 -14
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +3 -3
- package/docs/operations/distribution-gauge.md +13 -13
- package/docs/operations/dot.md +13 -13
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +13 -13
- package/docs/operations/heatMap.md +13 -13
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +3 -3
- package/docs/operations/line.md +7 -7
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +13 -13
- package/docs/operations/radar.md +7 -7
- package/docs/operations/sankey.md +13 -13
- package/docs/operations/scatter.md +13 -13
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +18 -1
- package/docs/operations/tree.md +51 -37
- package/docs/operations/treemap.md +63 -49
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +13 -13
- package/getters.js +7 -7
- package/index.js +419 -417
- package/metadata.js +17 -18
- package/operations.js +13 -13
- package/package.json +70 -55
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +53 -30
- package/src/definitions/model/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +2 -2
- package/src/definitions/model/definitions/types/compilation.types.d.ts +10 -0
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/getters/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +1 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +0 -52
- package/chunks/builder-B6dWSIdD.js +0 -12289
- package/chunks/coloring-B1XAfg6b.js +0 -664
- package/chunks/events-WZut5Ow6.js +0 -4
- package/chunks/grouping-type-On4s9Thj.js +0 -3
- package/chunks/requirements-DYjZCFyf.js +0 -6
- package/chunks/standalone-0ashe9w1.js +0 -411
- package/chunks/standalone-B7jax8wa.js +0 -339
- package/chunks/standalone-BK0VYU-l.js +0 -463
- package/chunks/standalone-BZV5vOwA.js +0 -6
- package/chunks/standalone-BhDrWj4p.js +0 -1980
- package/chunks/standalone-BvaKdky9.js +0 -344
- package/chunks/standalone-BwtM31-f.js +0 -2
- package/chunks/standalone-CC1VUjO32.js +0 -299
- package/chunks/standalone-CoLrAxRV.js +0 -13198
- package/chunks/standalone-DCtRoTWg.js +0 -675
- package/chunks/standalone-DUDFTBqL.js +0 -833
- package/chunks/standalone-DhZkX9Td.js +0 -2
- package/chunks/standalone-DtLElfuM.js +0 -512
- package/chunks/standalone-G9Q4Uczu.js +0 -726
- package/chunks/standalone-_DeX21JJ.js +0 -383
- package/chunks/standalone-gFhKZh8m.js +0 -179
- package/chunks/standalone-tDNy-SFH.js +0 -281
- package/chunks/ui-DQWtv2iM.js +0 -63551
- package/chunks/useFieldName-BvdcoJRl.js +0 -7
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { An as t, Cn as n, Fn as r, Ks as i, No as a, Sa as o, Si as s, Ta as c, Ys as l, fc as u, mc as d, vo as f, yo as p } from "./isEqual-BDxAhUo8.js";
|
|
3
|
-
import { $t as m, Ei as h, I as g, P as _, Yi as v } from "./utils-Bg7K-t6K.js";
|
|
4
|
-
import { Bm as y, Pm as b } from "./handlers-VTBfIZYZ.js";
|
|
5
|
-
import { t as x } from "./stroke-dash-UgMEcCS4.js";
|
|
6
|
-
import { B as S, Et as C, Ft as w, G as T, I as E, Jt as D, L as O, M as k, N as ee, Pt as A, Rt as j, St as M, Wt as N, Xt as P, Y as F, Yt as I, Zt as L, at as R, dn as z, dt as B, ft as V, gt as H, ht as U, i as W, j as G, kt as K, mt as q, n as J, rn as Y, sn as te, st as X, ut as Z, vt as Q } from "./escobar-eDjtGpkC.js";
|
|
7
|
-
import { g as ne, t as re } from "./coloring-B1XAfg6b.js";
|
|
8
|
-
import { t as ie } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
9
|
-
var ae = /* @__PURE__ */ e(v()), oe = (e, t, a) => {
|
|
10
|
-
let o = e.dimensions.filter((e) => s(e)), c = e.measures.filter((e) => s(e)), f = o[0], p = c[0], m = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId;
|
|
11
|
-
if (g?.type === l.Categorical && (_ ||= u(f.dataItem)), g?.type === l.Gradient && (_ ||= u(p.dataItem)), _ && U(a, 0, { color: { field: _ } }), f && e?.axes?.dimension?.continuousAxis) {
|
|
12
|
-
let e = d(f.dataItem), t = !!f.datePart, i = n(e) || r(e);
|
|
13
|
-
m = !t && i;
|
|
14
|
-
}
|
|
15
|
-
if (h = M(ie(e, _), t, h), h = T(e, h, a.collections, m, !0), c.filter((e) => e.graphType === i.Bar).length > 1 && !e.barSettings?.grouped) {
|
|
16
|
-
let t = P(e, c.find((e) => e.graphType === i.Bar));
|
|
17
|
-
h[t].data = { collection: C.ComboChartCollection };
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
...a,
|
|
21
|
-
scales: h
|
|
22
|
-
};
|
|
23
|
-
}, $ = (e, t, n) => {
|
|
24
|
-
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) => {
|
|
25
|
-
let n = u(t.dataItem);
|
|
26
|
-
return e[n] = { field: n }, e;
|
|
27
|
-
}, {}), l = k(o), d = a.reduce((e, t) => {
|
|
28
|
-
let n = u(t.dataItem);
|
|
29
|
-
return e[n] = { field: n }, e;
|
|
30
|
-
}, {}), f = a[0];
|
|
31
|
-
if (!f) return n;
|
|
32
|
-
let p = u(f.dataItem), m = {
|
|
33
|
-
key: C.ComboChartCollection,
|
|
34
|
-
data: { extract: [] }
|
|
35
|
-
};
|
|
36
|
-
if (m.data.extract = r.map((e, t) => {
|
|
37
|
-
let n = u(e.dataItem);
|
|
38
|
-
return {
|
|
39
|
-
field: p,
|
|
40
|
-
props: {
|
|
41
|
-
end: { field: n },
|
|
42
|
-
...c,
|
|
43
|
-
...l,
|
|
44
|
-
...d,
|
|
45
|
-
start: 0,
|
|
46
|
-
graphType: e.graphType,
|
|
47
|
-
measureIndex: t,
|
|
48
|
-
fieldId: n
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}), r.filter((e) => e.graphType === i.Bar).length > 1) {
|
|
52
|
-
let t = !!r.find((e) => e.graphType === i.Bar)?.secondaryAxis, n = new Map(r.map((e) => [u(e.dataItem), !!e.secondaryAxis]));
|
|
53
|
-
e.barSettings?.grouped || (m.data.stack = {
|
|
54
|
-
stackKey: (e) => e.graphType.value === i.Bar ? `${e.value}` : `${e.value}-${e.graphType.value}-${e.measureIndex.value}`,
|
|
55
|
-
value: (e) => {
|
|
56
|
-
let r = e.fieldId?.value;
|
|
57
|
-
return typeof r != "string" || n.get(r) !== t ? null : e.end.value;
|
|
58
|
-
},
|
|
59
|
-
offset: y.Diverging
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
...n,
|
|
64
|
-
collections: [...n.collections, m]
|
|
65
|
-
};
|
|
66
|
-
}, se = (e, t, n, r, a, o) => {
|
|
67
|
-
let c = [];
|
|
68
|
-
return e.measures.filter((e) => s(e)).forEach((r) => {
|
|
69
|
-
let s = u(r.dataItem), l = (e) => e.fieldId.value === s;
|
|
70
|
-
switch (r.graphType || e.type) {
|
|
71
|
-
case i.Bar:
|
|
72
|
-
c.push(le(e, t, a, n, r, o, l));
|
|
73
|
-
break;
|
|
74
|
-
case i.Point:
|
|
75
|
-
c.push(V(e, t, n, r, !1, C.ComboChartCollection, l));
|
|
76
|
-
break;
|
|
77
|
-
default: c.push(ce(e, t, n, r, l)), c.push(V(e, t, n, r, !r.showDataPoints, C.ComboChartCollection, l));
|
|
78
|
-
}
|
|
79
|
-
}), c.sort((e) => e.type === z.Box ? -1 : 0), {
|
|
80
|
-
...n,
|
|
81
|
-
components: [...n.components, ...c]
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
function ce(e, t, n, r, o) {
|
|
85
|
-
let c = e.dimensions.filter((e) => s(e));
|
|
86
|
-
if (!c[0]) throw Error("Combo chart without dimension is not supported.");
|
|
87
|
-
if (c.length > 1) throw Error("Combo chart currently support only one dimension.");
|
|
88
|
-
let l = x(r.strokeDash), d = u(r.dataItem), f = ne(e, n, t, r, d);
|
|
89
|
-
return {
|
|
90
|
-
type: z.Line,
|
|
91
|
-
layout: { displayOrder: w.VisualizationElement },
|
|
92
|
-
key: q(e, r, i.Line),
|
|
93
|
-
data: {
|
|
94
|
-
collection: C.ComboChartCollection,
|
|
95
|
-
filter: o
|
|
96
|
-
},
|
|
97
|
-
settings: {
|
|
98
|
-
orientation: e.orientation === a.Horizontal ? a.Vertical : a.Horizontal,
|
|
99
|
-
coordinates: {
|
|
100
|
-
major: { scale: I(e) },
|
|
101
|
-
minor: {
|
|
102
|
-
scale: P(e, r),
|
|
103
|
-
ref: d
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
layers: {
|
|
107
|
-
curve: e.lineSettings?.lineCurve,
|
|
108
|
-
skipCollisions: !0,
|
|
109
|
-
line: {
|
|
110
|
-
stroke: f,
|
|
111
|
-
strokeWidth: r.strokeWidth,
|
|
112
|
-
strokeDasharray: l
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
animations: {
|
|
117
|
-
enabled: !0,
|
|
118
|
-
presetId: "simple-opacity"
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function le(e, n, r, o, c, l, d) {
|
|
123
|
-
let f = e.dimensions.filter((e) => s(e)), p = e.measures.filter((e) => s(e) && e.graphType === i.Bar);
|
|
124
|
-
if (!f[0]) throw Error("Combo chart without dimension is not supported.");
|
|
125
|
-
let m = { scale: I(e) }, h = {
|
|
126
|
-
scale: P(e, c),
|
|
127
|
-
end: { ref: "end" }
|
|
128
|
-
}, g = {
|
|
129
|
-
minWidthPx: 2,
|
|
130
|
-
rx: t(e?.barSettings.barRadius, 0),
|
|
131
|
-
roundAllEdges: e?.barSettings?.roundAllEdges,
|
|
132
|
-
useCustomBoxRounding: !0,
|
|
133
|
-
boxPadding: e?.barSettings?.barPadding ?? te.scale.padding
|
|
134
|
-
};
|
|
135
|
-
g.fill = new re(e, n, r?.[0]?.itemsNotAffectedByFiltering).getColorDefinition({ ref: "fieldId" });
|
|
136
|
-
let _ = {
|
|
137
|
-
enabled: !0,
|
|
138
|
-
presetId: "bar-chart"
|
|
139
|
-
}, v = c?.graphType !== i.Bar;
|
|
140
|
-
if (p.length > 1 && e.barSettings?.grouped) {
|
|
141
|
-
let t = 1 * (1 / p.length), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / p.length, i = (1 + 0 * (p.length - 1)) * r, a = p.findIndex((e) => u(e.dataItem) === u(c.dataItem));
|
|
142
|
-
m.fn = (n) => {
|
|
143
|
-
let r = n.resources.scale(I(e));
|
|
144
|
-
return r(n.datum.value) + i * r.bandwidth?.() + a * r.bandwidth?.() * t;
|
|
145
|
-
}, g.width = n;
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
type: z.Box,
|
|
149
|
-
layout: { displayOrder: w.VisualizationElement },
|
|
150
|
-
key: q(e, c, i.Bar),
|
|
151
|
-
data: {
|
|
152
|
-
collection: C.ComboChartCollection,
|
|
153
|
-
filter: d
|
|
154
|
-
},
|
|
155
|
-
settings: {
|
|
156
|
-
orientation: e.orientation ?? a.Vertical,
|
|
157
|
-
major: m,
|
|
158
|
-
minor: h,
|
|
159
|
-
box: g
|
|
160
|
-
},
|
|
161
|
-
animations: _,
|
|
162
|
-
brush: v ? null : N([""], l)
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
var ue = (e, t) => {
|
|
166
|
-
let n = t ? [b.Inside] : [
|
|
167
|
-
b.Inside,
|
|
168
|
-
b.Outside,
|
|
169
|
-
b.Opposite
|
|
170
|
-
];
|
|
171
|
-
return (e || [
|
|
172
|
-
{
|
|
173
|
-
position: b.Inside,
|
|
174
|
-
justify: 1
|
|
175
|
-
},
|
|
176
|
-
{ position: b.Outside },
|
|
177
|
-
{ position: b.Opposite }
|
|
178
|
-
]).map((e) => ({
|
|
179
|
-
...e,
|
|
180
|
-
possible: n.includes(e.position)
|
|
181
|
-
}));
|
|
182
|
-
}, de = ({ data: e }) => e ? e.end.value > e.start.value ? "up" : "down" : null, fe = ({ data: e }) => e ? e.end.value > e.start.value ? "right" : "left" : null, pe = (e, t, n, r, a, o) => {
|
|
183
|
-
let l = e.measures.filter((e) => s(e)), d = l.filter((e) => e.graphType === i.Bar), m = d.filter((e) => e.dataLabels?.show), h = d.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = L(e), _ = m.map((n) => {
|
|
184
|
-
let r = !!n.dataLabels?.barLabelPlacements, a = ue(n.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
|
|
185
|
-
position: e.position,
|
|
186
|
-
fill: e.position === b.Inside ? c.white : "#242424",
|
|
187
|
-
...e.justify === void 0 ? {} : { justify: e.justify },
|
|
188
|
-
...r ? { overflow: [b.Outside, b.Opposite].includes(e.position) } : {}
|
|
189
|
-
}));
|
|
190
|
-
return n.dataLabels?.showBackdrop && !h && (a = a.map((e) => ee(e, t, g))), {
|
|
191
|
-
key: `combo-bar-labels-${n.dataItem.uniqueSignature}`,
|
|
192
|
-
type: z.Labels,
|
|
193
|
-
layout: { displayOrder: w.Labels },
|
|
194
|
-
settings: { sources: [{
|
|
195
|
-
component: q(e, n, i.Bar),
|
|
196
|
-
selector: Y.Rect,
|
|
197
|
-
strategy: {
|
|
198
|
-
type: "bar",
|
|
199
|
-
settings: {
|
|
200
|
-
direction: g ? fe : de,
|
|
201
|
-
fontSize: D(n.dataLabels?.size),
|
|
202
|
-
fontFamily: t.fonts.general.fontFamily,
|
|
203
|
-
labels: [{
|
|
204
|
-
label: E(n),
|
|
205
|
-
placements: a
|
|
206
|
-
}]
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}] },
|
|
210
|
-
animations: {
|
|
211
|
-
enabled: !0,
|
|
212
|
-
presetId: "chart-labels"
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
}), v = {}, y = {}, x = l.filter((e) => e.graphType !== i.Bar).map((t) => {
|
|
216
|
-
let n = u(t.dataItem), r = q(e, t, i.Point);
|
|
217
|
-
return y[r] = n, v[r] = {
|
|
218
|
-
enabled: t.dataLabels?.show || !1,
|
|
219
|
-
fontSize: D(t.dataLabels?.size),
|
|
220
|
-
backdropColor: t.dataLabels?.backdropColor,
|
|
221
|
-
textColor: t.dataLabels?.textColor,
|
|
222
|
-
isColored: t.dataLabels?.isColored,
|
|
223
|
-
colorType: t.dataLabels?.showBackdrop ? f.Backdrop : f.Text,
|
|
224
|
-
density: t.dataLabels?.density || p.Medium
|
|
225
|
-
}, r;
|
|
226
|
-
}).filter((e) => v[e].enabled), C = x.length ? [S({
|
|
227
|
-
targetComponentKeys: x,
|
|
228
|
-
targetSelector: `.${B}`,
|
|
229
|
-
label: ({ data: e, node: t }) => e[y[t.key]]?.label,
|
|
230
|
-
skipBrush: !0
|
|
231
|
-
}, v, o, t)] : [];
|
|
232
|
-
if (_.length && C.length) {
|
|
233
|
-
let e = {
|
|
234
|
-
...C[0],
|
|
235
|
-
settings: {
|
|
236
|
-
...C[0].settings,
|
|
237
|
-
sources: [..._.flatMap((e) => e.settings.sources), ...C[0].settings.sources]
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
return {
|
|
241
|
-
...n,
|
|
242
|
-
components: [...n.components, e]
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
return {
|
|
246
|
-
...n,
|
|
247
|
-
components: [
|
|
248
|
-
...n.components,
|
|
249
|
-
..._,
|
|
250
|
-
...C
|
|
251
|
-
]
|
|
252
|
-
};
|
|
253
|
-
}, me = class extends G {
|
|
254
|
-
constructor() {
|
|
255
|
-
super([
|
|
256
|
-
$,
|
|
257
|
-
oe,
|
|
258
|
-
j,
|
|
259
|
-
Q,
|
|
260
|
-
se,
|
|
261
|
-
X,
|
|
262
|
-
H,
|
|
263
|
-
pe,
|
|
264
|
-
R,
|
|
265
|
-
F,
|
|
266
|
-
K,
|
|
267
|
-
A,
|
|
268
|
-
Z,
|
|
269
|
-
O
|
|
270
|
-
]);
|
|
271
|
-
}
|
|
272
|
-
}, he = h(), ge = m(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: a }) => {
|
|
273
|
-
let s = _(), [c] = (0, ae.useState)(() => new me()), l = g(), u = t || o, d = c.compile(e, u, n, r, a, i.Combo, s, l, J());
|
|
274
|
-
return d ? /* @__PURE__ */ (0, he.jsx)(W, {
|
|
275
|
-
config: a,
|
|
276
|
-
definition: d,
|
|
277
|
-
size: r,
|
|
278
|
-
vSpec: e
|
|
279
|
-
}) : null;
|
|
280
|
-
});
|
|
281
|
-
export { ge as ComboChart };
|