@astrato-io/visualizations 0.10.0 → 0.11.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/CHANGELOG.md +21 -1
- package/README.md +22 -4
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +59 -145
- package/chunks/{Button-CCF851ea.js → Button-CPG4WX8X.js} +3 -3
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-PSLW8HmD.js} +12 -12
- package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-KQ2EQlGL.js} +16 -16
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-B-6K7kks.js} +151 -151
- package/chunks/{Title-C-p4ZarD.js → Title-BmvwZYkh.js} +32 -32
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-CFmH6gUN.js} +11 -11
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-BNou0dZF.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-BkhO7sDd.js} +55 -53
- package/chunks/{builder-CScg1TOS.js → builder-CNjuqD2z.js} +107 -56
- package/chunks/category-axis-D1OVyMrr.js +20 -0
- package/chunks/{coloring-9jU3s_-p.js → coloring-BOiP0rmn.js} +54 -54
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
- package/chunks/defaults-B5_8S-J-.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-AS9GcavE.js} +263 -242
- package/chunks/{escobar-CjirINHP.js → escobar-cQ1eQ64G.js} +8528 -8461
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-BlCbcXKR.js} +421 -421
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CI7dDNM1.js} +12 -12
- package/chunks/{filtering-C1zakrrX.js → filtering-Dwi7hDPZ.js} +263 -263
- package/chunks/handlers-C63NVo7i.js +15433 -0
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-CBlxEu3s.js} +8 -8
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-BdHo6wqq.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-C1nlVUwL.js} +9 -9
- package/chunks/line.compiler-DCv3h42f.js +198 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-CKRjhSHQ.js → logger-Bc-DqDM_.js} +72 -72
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-CRO6XpdI.js} +43 -45
- package/chunks/measure-format-default-B6ghxih7.js +22 -0
- package/chunks/{metadata-Bb9pTXrq.js → metadata-CtkvZEhS.js} +1 -1
- package/chunks/number.compiler-kV4lobCZ.js +57 -0
- package/chunks/{operations-DZoY50VX.js → operations-COl9wgqi.js} +9893 -9831
- package/chunks/{range-D1BTmFMp.js → range-CMJ5yc5Z.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BjsCbYHq.js} +76 -76
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-DFHi3Wkr.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-C5YLmHKe.js} +251 -227
- package/chunks/{shared-UitWpq1J.js → shared-DyqxOie0.js} +290 -278
- package/chunks/standalone-06i1wmIX.js +6 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-9jrQ3zJT.js} +10 -10
- package/chunks/standalone-B6zUvxNQ.js +357 -0
- package/chunks/{standalone-Bnnr87pc.js → standalone-BYK2U0Vd.js} +418 -679
- package/chunks/standalone-Be5APcVv.js +762 -0
- package/chunks/standalone-Bp4G3MDx.js +396 -0
- package/chunks/{standalone-CbPk8bKn.js → standalone-BrjtMIdd.js} +132 -132
- package/chunks/{standalone-BOzHA_d4.js → standalone-Bsfz5vnJ.js} +57 -57
- package/chunks/standalone-BuXpKMnc.js +2 -0
- package/chunks/standalone-CIjNYyya.js +8378 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CS5VGoja.js} +358 -358
- package/chunks/standalone-CUGt2FUF.js +2 -0
- package/chunks/{standalone-BapqaniK.js → standalone-ChfEHb28.js} +2299 -1072
- package/chunks/standalone-CnF2OYLQ.js +355 -0
- package/chunks/standalone-CznEEiq3.js +422 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-D9k5SCd8.js} +165 -165
- package/chunks/{standalone-CRdDZYeM.js → standalone-DYVYccmY.js} +855 -855
- package/chunks/{standalone-CVknVdUC.js → standalone-DaNxWIKn.js} +27 -27
- package/chunks/{standalone-swGs70tD.js → standalone-Db_HNuWx.js} +50 -50
- package/chunks/standalone-DcuE8KBa.js +287 -0
- package/chunks/{standalone-U0WJwFlG.js → standalone-I5kRIsp8.js} +97 -97
- package/chunks/{standalone-BBu90BhK.js → standalone-K2OvRAQM.js} +125 -125
- package/chunks/{standalone-DCFY1MAV.js → standalone-c4CPN6ug.js} +4634 -4633
- package/chunks/{standalone-ByKKqT5L.js → standalone-iOnJhCvA.js} +302 -302
- package/chunks/standalone-pCrzBiTy.js +773 -0
- package/chunks/standalone-qrZaimgC.js +689 -0
- package/chunks/standalone-yqDJ8h3K.js +1012 -0
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-CMH_dtYs.js} +29 -29
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-BfxBzhhH.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-BdJrEeIQ.js} +4037 -4015
- package/chunks/{view-DdMLZySj.js → view-Q-_XIrWE.js} +1615 -1615
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-BwS0xUqs.js} +1723 -1693
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-D_ooGNWI.js} +4006 -3994
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +30 -1
- package/docs/operations/combo.md +30 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- 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 +5 -4
- package/docs/operations/line.md +48 -1
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- 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 +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +3 -3
- package/index.js +528 -504
- package/metadata.js +2 -2
- package/operations.js +6 -6
- package/package.json +73 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +34 -53
- package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
- package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-D_MzsdfY.js +0 -22
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/handlers-ZviIUC-j.js +0 -15387
- package/chunks/line.compiler-De5fiKuR.js +0 -198
- package/chunks/number.compiler-CaTmJkmi.js +0 -53
- package/chunks/standalone-BEekPuA12.js +0 -357
- package/chunks/standalone-BR2JuRIC.js +0 -422
- package/chunks/standalone-BwJqDj2Z.js +0 -396
- package/chunks/standalone-CRfDOO1x.js +0 -287
- package/chunks/standalone-DZDGX3aa.js +0 -518
- package/chunks/standalone-DhfgeJIk.js +0 -1012
- package/chunks/standalone-DibjA73M.js +0 -6
- package/chunks/standalone-DxBAyqAu.js +0 -772
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
- package/chunks/standalone-wgFAVnnm.js +0 -355
- package/chunks/standalone-xGV0dqPV.js +0 -689
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ca as n, Da as r, Io as i, Ks as a, O as o, Oi as s, Pc as c, Qr as l, Tr as u, fa as d, hc as f, ko as p, oa as m, vc as h, vr as g, yr as _ } from "./visualization-filters-CzvFHE6M.js";
|
|
3
|
-
import { Cn as v, F as y, N as ee, ci as te, jt as ne, s as re, zr as ie } from "./utils-3Igg6xmO.js";
|
|
4
|
-
import "./logger-CKRjhSHQ.js";
|
|
5
|
-
import { At as b, Ct as x, Dt as S, Et as ae, Ft as oe, I as se, It as ce, J as le, L as ue, Lt as de, Nt as C, Ot as w, Rt as T, Vt as E, Wt as D, Xt as O, Yt as k, _n as A, an as j, bt as M, cn as N, ct as P, dt as F, fn as I, ft as L, ht as R, i as z, jt as B, n as V, nt as H, on as U, pn as W, q as fe, sn as pe, tt as me, un as he, vn as G, xt as ge } from "./escobar-CjirINHP.js";
|
|
6
|
-
import { i as _e, t as ve } from "./coloring-9jU3s_-p.js";
|
|
7
|
-
import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
8
|
-
import { t as ye } from "./range-D1BTmFMp.js";
|
|
9
|
-
var q = /* @__PURE__ */ t(((e, t) => {
|
|
10
|
-
var n = _e();
|
|
11
|
-
function r(e) {
|
|
12
|
-
var t = n(e), r = t % 1;
|
|
13
|
-
return t === t ? r ? t - r : t : 0;
|
|
14
|
-
}
|
|
15
|
-
t.exports = r;
|
|
16
|
-
}));
|
|
17
|
-
te();
|
|
18
|
-
var be = (e, t, n, r, i, a, o = []) => {
|
|
19
|
-
n.collections ??= [];
|
|
20
|
-
let s = e.dimensions.filter((e) => l(e)), u = e.measures.filter((e) => l(e)), d = xe(e, t, n, o);
|
|
21
|
-
return s[0] && (n.collections.push({
|
|
22
|
-
key: B.DimensionDomain,
|
|
23
|
-
data: { extract: [{ field: c(s[0].dataItem) }] }
|
|
24
|
-
}), d[j(e)] = {
|
|
25
|
-
data: { collection: B.DimensionDomain },
|
|
26
|
-
type: I.Band
|
|
27
|
-
}), u[0] && (d[U(e, u[0])] = {
|
|
28
|
-
data: { field: c(u[0].dataItem) },
|
|
29
|
-
expand: .02,
|
|
30
|
-
invert: le(!1, e.axes?.primaryMeasure),
|
|
31
|
-
...fe(e.axes?.primaryMeasure?.axisRange, !0)
|
|
32
|
-
}), {
|
|
33
|
-
...n,
|
|
34
|
-
scales: d
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
function xe(e, t, n, r) {
|
|
38
|
-
let i = e.dimensions.filter((e) => l(e)), a = e.measures.filter((e) => l(e));
|
|
39
|
-
switch (e.coloring?.type) {
|
|
40
|
-
case h.Categorical: {
|
|
41
|
-
let a = w(e, r, i[1]);
|
|
42
|
-
return M(n, 1, { color: { field: a } }), { categorical: ae(K(e, a), t, a, {
|
|
43
|
-
customPalette: e.coloring.customPalette ?? s.customPalette,
|
|
44
|
-
palette: e.coloring.palette,
|
|
45
|
-
sortOrder: e.coloring.sortOrder
|
|
46
|
-
}, n.collections) };
|
|
47
|
-
}
|
|
48
|
-
case h.Gradient: {
|
|
49
|
-
let r = b(e);
|
|
50
|
-
return M(n, 1, { color: { field: r } }), S(K(e, r), t, {});
|
|
51
|
-
}
|
|
52
|
-
case h.Single: {
|
|
53
|
-
let r = c(a[0]?.dataItem);
|
|
54
|
-
r && M(n, 1, { color: { field: r } });
|
|
55
|
-
let i = e?.coloring?.color ?? t.colors.brandColors[0];
|
|
56
|
-
return { [h.Single]: {
|
|
57
|
-
data: [],
|
|
58
|
-
unknown: i,
|
|
59
|
-
type: I.CategoricalColor,
|
|
60
|
-
range: [i]
|
|
61
|
-
} };
|
|
62
|
-
}
|
|
63
|
-
default: return {};
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
var Se = (e, t, n) => {
|
|
67
|
-
let r = e.dimensions.filter((e) => l(e)), i = e.measures.filter((e) => l(e)), a = (e.supportingMeasures ?? []).filter((e) => l(e)), [o, s] = r, u = c(o?.dataItem), d = c(s?.dataItem), f = c(i[0]?.dataItem), p = ue(a), m = {
|
|
68
|
-
key: B.DotBarCollection,
|
|
69
|
-
data: { extract: [{
|
|
70
|
-
field: u,
|
|
71
|
-
trackBy: (e) => e,
|
|
72
|
-
reduce: "first",
|
|
73
|
-
props: {
|
|
74
|
-
start: {
|
|
75
|
-
field: f,
|
|
76
|
-
reduce: "min"
|
|
77
|
-
},
|
|
78
|
-
med: {
|
|
79
|
-
field: f,
|
|
80
|
-
reduce: "avg"
|
|
81
|
-
},
|
|
82
|
-
end: {
|
|
83
|
-
field: f,
|
|
84
|
-
reduce: "max"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}] }
|
|
88
|
-
}, h = {
|
|
89
|
-
key: B.DotPointsCollection,
|
|
90
|
-
data: { extract: [{
|
|
91
|
-
field: d,
|
|
92
|
-
props: {
|
|
93
|
-
x: { field: f },
|
|
94
|
-
group: { field: u },
|
|
95
|
-
[f]: { field: f },
|
|
96
|
-
...p
|
|
97
|
-
}
|
|
98
|
-
}] }
|
|
99
|
-
};
|
|
100
|
-
return {
|
|
101
|
-
...n,
|
|
102
|
-
collections: [m, h]
|
|
103
|
-
};
|
|
104
|
-
}, Ce = /* @__PURE__ */ t(((e, t) => {
|
|
105
|
-
var n = Math.floor, r = Math.random;
|
|
106
|
-
function i(e, t) {
|
|
107
|
-
return e + n(r() * (t - e + 1));
|
|
108
|
-
}
|
|
109
|
-
t.exports = i;
|
|
110
|
-
})), J = /* @__PURE__ */ t(((e, t) => {
|
|
111
|
-
var n = Ce();
|
|
112
|
-
function r(e, t) {
|
|
113
|
-
var r = -1, i = e.length, a = i - 1;
|
|
114
|
-
for (t = t === void 0 ? i : t; ++r < t;) {
|
|
115
|
-
var o = n(r, a), s = e[o];
|
|
116
|
-
e[o] = e[r], e[r] = s;
|
|
117
|
-
}
|
|
118
|
-
return e.length = t, e;
|
|
119
|
-
}
|
|
120
|
-
t.exports = r;
|
|
121
|
-
})), we = /* @__PURE__ */ t(((e, t) => {
|
|
122
|
-
var n = o(), r = J();
|
|
123
|
-
function i(e) {
|
|
124
|
-
return r(n(e));
|
|
125
|
-
}
|
|
126
|
-
t.exports = i;
|
|
127
|
-
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
128
|
-
var n = _();
|
|
129
|
-
function r(e, t) {
|
|
130
|
-
return n(t, function(t) {
|
|
131
|
-
return e[t];
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
t.exports = r;
|
|
135
|
-
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
136
|
-
var n = Te(), r = u();
|
|
137
|
-
function i(e) {
|
|
138
|
-
return e == null ? [] : n(e, r(e));
|
|
139
|
-
}
|
|
140
|
-
t.exports = i;
|
|
141
|
-
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
142
|
-
var n = J(), r = Ee();
|
|
143
|
-
function i(e) {
|
|
144
|
-
return n(r(e));
|
|
145
|
-
}
|
|
146
|
-
t.exports = i;
|
|
147
|
-
})), Oe = /* @__PURE__ */ t(((e, t) => {
|
|
148
|
-
var n = we(), r = De(), i = d();
|
|
149
|
-
function a(e) {
|
|
150
|
-
return (i(e) ? n : r)(e);
|
|
151
|
-
}
|
|
152
|
-
t.exports = a;
|
|
153
|
-
})), ke = /* @__PURE__ */ e(ye()), Ae = /* @__PURE__ */ e(Oe()), Y = (e) => 1 - (e.barSettings.barPadding ?? 0);
|
|
154
|
-
function je(e, t, n) {
|
|
155
|
-
let r = new ve(e, t, n?.[0]?.itemsNotAffectedByFiltering);
|
|
156
|
-
return r.getColorDefinition({
|
|
157
|
-
overwriteSources: [r.MAIN_FIELD],
|
|
158
|
-
ref: "color"
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function Me(e) {
|
|
162
|
-
let t = O([""], e, { valuePickerMode: e?.valuePickerMode }), n = t?.consume?.[1]?.style?.active?.strokeWidth, r = (t?.consume?.[1])?.style?.active;
|
|
163
|
-
return typeof n == "function" && r && (r.strokeWidth = (e) => e.type === he.Line ? 1 : n(e)), t ?? {};
|
|
164
|
-
}
|
|
165
|
-
function X(e) {
|
|
166
|
-
return k({
|
|
167
|
-
triggerData: [""],
|
|
168
|
-
consumeData: ["", "group"],
|
|
169
|
-
consumerMode: A.Or
|
|
170
|
-
}, e ?? {}, { valuePickerMode: e?.valuePickerMode }) ?? {};
|
|
171
|
-
}
|
|
172
|
-
var Z = 100, Q = .1, $ = .9, Ne = (0, Ae.default)((0, ke.default)(Q, $, ($ - Q) / Z));
|
|
173
|
-
function Pe(e, t) {
|
|
174
|
-
return ({ datum: n, resources: { scale: r } }, i) => {
|
|
175
|
-
let a = r?.(j(t));
|
|
176
|
-
if (!a || typeof a != "function" || typeof a.bandwidth != "function") return 0;
|
|
177
|
-
let o = t.jitterPoints ? Ne[i % Z] : .5;
|
|
178
|
-
return a(n.group.value) + .5 * (1 - e) * a.bandwidth() + e * a.bandwidth() * o;
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
var Fe = (e, t, n, r, i = [], a) => {
|
|
182
|
-
let o = Ie(e, t, a), s = Le(e, je(e, t, i), a);
|
|
183
|
-
return {
|
|
184
|
-
...n,
|
|
185
|
-
components: [
|
|
186
|
-
...n.components,
|
|
187
|
-
o,
|
|
188
|
-
s
|
|
189
|
-
]
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
function Ie(e, t, n) {
|
|
193
|
-
let i = {
|
|
194
|
-
orientation: e.orientation,
|
|
195
|
-
major: { scale: j(e) },
|
|
196
|
-
minor: { scale: U(e, e.measures.filter((e) => l(e))[0]) },
|
|
197
|
-
box: {
|
|
198
|
-
width: Y(e),
|
|
199
|
-
fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
|
|
200
|
-
rx: e.barSettings?.barRadius ?? 0,
|
|
201
|
-
roundAllEdges: !0
|
|
202
|
-
},
|
|
203
|
-
median: {
|
|
204
|
-
stroke: r.mainDarkNavy,
|
|
205
|
-
strokeWidth: 2
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
return e.barSettings?.strokeEnabled ? (i.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], i.box.strokeWidth = e.barSettings?.strokeWidth) : i.box.stroke = r.transparent, {
|
|
209
|
-
type: G.Box,
|
|
210
|
-
layout: { displayOrder: E.VisualizationElement },
|
|
211
|
-
key: "min-max-box",
|
|
212
|
-
data: { collection: B.DotBarCollection },
|
|
213
|
-
settings: i,
|
|
214
|
-
animations: {
|
|
215
|
-
enabled: !0,
|
|
216
|
-
presetId: "bar-chart"
|
|
217
|
-
},
|
|
218
|
-
brush: Me(n)
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function Le(e, t, n) {
|
|
222
|
-
let r = Pe(Y(e) * .9, e);
|
|
223
|
-
return {
|
|
224
|
-
type: G.Point,
|
|
225
|
-
key: "dot-point",
|
|
226
|
-
layout: { displayOrder: E.VisualizationElement },
|
|
227
|
-
data: { collection: B.DotPointsCollection },
|
|
228
|
-
settings: {
|
|
229
|
-
x: { scale: U(e, e.measures.filter((e) => l(e))[0]) },
|
|
230
|
-
y: {
|
|
231
|
-
scale: j(e),
|
|
232
|
-
fn: r
|
|
233
|
-
},
|
|
234
|
-
shape: p.Circle,
|
|
235
|
-
size: e.pointSize,
|
|
236
|
-
strokeWidth: 2,
|
|
237
|
-
opacity: .8,
|
|
238
|
-
fill: t,
|
|
239
|
-
id: ({ datum: e }) => `${e.group.value}::${e.value}`
|
|
240
|
-
},
|
|
241
|
-
animations: { enabled: !0 },
|
|
242
|
-
brush: X(n)
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
function Re(e, t, n) {
|
|
246
|
-
if (!e.refLines?.x) return n;
|
|
247
|
-
let r = e.refLines.x.map((e) => F(e, N.XAxisScale, t)), i = {
|
|
248
|
-
type: G.RefLine,
|
|
249
|
-
layout: { displayOrder: E.RefLine },
|
|
250
|
-
lines: { x: r }
|
|
251
|
-
};
|
|
252
|
-
return {
|
|
253
|
-
...n,
|
|
254
|
-
components: [...n.components, i]
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
var ze = /* @__PURE__ */ t(((e, t) => {
|
|
258
|
-
var r = n(), i = q(), a = v(), o = g(), s = r.isFinite, c = Math.min;
|
|
259
|
-
function l(e) {
|
|
260
|
-
var t = Math[e];
|
|
261
|
-
return function(e, n) {
|
|
262
|
-
if (e = a(e), n = n == null ? 0 : c(i(n), 292), n && s(e)) {
|
|
263
|
-
var r = (o(e) + "e").split("e");
|
|
264
|
-
return r = (o(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"), +(r[0] + "e" + (+r[1] - n));
|
|
265
|
-
}
|
|
266
|
-
return t(e);
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
t.exports = l;
|
|
270
|
-
})), Be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
271
|
-
t.exports = ze()("round");
|
|
272
|
-
})))());
|
|
273
|
-
function Ve(e, t, n) {
|
|
274
|
-
let r = e.measures.filter((e) => l(e))[0];
|
|
275
|
-
return me(e, t, n, {
|
|
276
|
-
filter: He,
|
|
277
|
-
placement: {
|
|
278
|
-
type: "bounds",
|
|
279
|
-
area: "target"
|
|
280
|
-
},
|
|
281
|
-
extract: H(e, t, Ue(r?.formatter), We)
|
|
282
|
-
}, "tooltip", void 0, {
|
|
283
|
-
componentKeys: ["dot-point"],
|
|
284
|
-
yieldToComponentKeys: ["min-max-box"]
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
function He(e) {
|
|
288
|
-
if (e.length === 0) return [];
|
|
289
|
-
let t = e[0];
|
|
290
|
-
return ["dot-point", "min-max-box"].includes(t.key) ? [t] : [];
|
|
291
|
-
}
|
|
292
|
-
function Ue(e) {
|
|
293
|
-
return (t, n, r, i, a, o, s, c) => {
|
|
294
|
-
if (n.key === "dot-point") {
|
|
295
|
-
let t = n.data.x.value;
|
|
296
|
-
return !c && e ? t = r.formatter(e)(t, void 0, n.data) : c && (t = r.formatter(P(e))(n.data.x.value, void 0, n.data)), [{
|
|
297
|
-
label: n.data.label,
|
|
298
|
-
value: t
|
|
299
|
-
}];
|
|
300
|
-
} else if (n.key === "min-max-box") {
|
|
301
|
-
let t = n.data.start.value, i = (0, Be.default)(n.data.med.value, 2), a = n.data.end.value;
|
|
302
|
-
return !c && e ? (t = r.formatter(e)(t), i = r.formatter(e)(i), a = r.formatter(e)(a)) : c && (t = r.formatter(P(e))(t), i = r.formatter(P(e))(i), a = r.formatter(P(e))(a)), [
|
|
303
|
-
{
|
|
304
|
-
label: "Min",
|
|
305
|
-
value: t
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
label: "Avg",
|
|
309
|
-
value: i
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
label: "Max",
|
|
313
|
-
value: a
|
|
314
|
-
}
|
|
315
|
-
];
|
|
316
|
-
}
|
|
317
|
-
return [];
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function We(e) {
|
|
321
|
-
return e.filter((e) => l(e))[1]?.label ?? "";
|
|
322
|
-
}
|
|
323
|
-
var Ge = (e, t, n) => {
|
|
324
|
-
let r = e.dimensions.filter((e) => l(e)), a = e.measures.filter((e) => l(e)), o = {
|
|
325
|
-
showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
|
|
326
|
-
formatter: r[0]?.formatter || {
|
|
327
|
-
type: "string",
|
|
328
|
-
format: ""
|
|
329
|
-
},
|
|
330
|
-
scale: j(e),
|
|
331
|
-
key: `${C.Dimension}-${e.orientation ?? i.Vertical}`,
|
|
332
|
-
settings: { direction: oe(e) }
|
|
333
|
-
}, s = a[0], [c, u] = T([o, {
|
|
334
|
-
showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
|
|
335
|
-
formatter: s?.formatter,
|
|
336
|
-
scale: U(e, s),
|
|
337
|
-
key: `${C.Measure}-${e.orientation ?? i.Vertical}`,
|
|
338
|
-
settings: {
|
|
339
|
-
direction: de(e),
|
|
340
|
-
labelDock: ce(pe(e), s?.secondaryAxis)
|
|
341
|
-
}
|
|
342
|
-
}]);
|
|
343
|
-
return {
|
|
344
|
-
...n,
|
|
345
|
-
components: [...n.components ?? [], ...c],
|
|
346
|
-
interactions: [...n.interactions ?? [], ...u]
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
function Ke(e, t, n, r, i, a) {
|
|
350
|
-
let { components: o, interactions: s } = ge(e, t, n, r, i ?? [], a ?? {});
|
|
351
|
-
if (!e.coloring || e.coloring.type === h.Single) return {
|
|
352
|
-
...n,
|
|
353
|
-
components: o,
|
|
354
|
-
interactions: s
|
|
355
|
-
};
|
|
356
|
-
let c = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), l = o.map((e) => (e.type === W.CategoricalLegend || e.type === W.SequentialLegend) && c ? {
|
|
357
|
-
...e,
|
|
358
|
-
brush: X(a)
|
|
359
|
-
} : e);
|
|
360
|
-
return {
|
|
361
|
-
...n,
|
|
362
|
-
components: l,
|
|
363
|
-
interactions: s
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
var qe = class extends se {
|
|
367
|
-
constructor() {
|
|
368
|
-
super([
|
|
369
|
-
Se,
|
|
370
|
-
be,
|
|
371
|
-
D,
|
|
372
|
-
x,
|
|
373
|
-
Ke,
|
|
374
|
-
L,
|
|
375
|
-
Fe,
|
|
376
|
-
Re,
|
|
377
|
-
Ve,
|
|
378
|
-
Ge,
|
|
379
|
-
R
|
|
380
|
-
]);
|
|
381
|
-
}
|
|
382
|
-
}, Je = ie(), Ye = new qe(), Xe = ne(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
383
|
-
let o = ee(), { activeKey: s } = re(), c = y(), l = V();
|
|
384
|
-
if (!e || !a(e) || !r) return null;
|
|
385
|
-
let u = {
|
|
386
|
-
...i,
|
|
387
|
-
valuePickerMode: !!s
|
|
388
|
-
}, d = t || m, p = Ye.compile(e, d, n, r, u, f.Dot, o, c, l);
|
|
389
|
-
return p ? /* @__PURE__ */ (0, Je.jsx)(z, {
|
|
390
|
-
config: u,
|
|
391
|
-
definition: p,
|
|
392
|
-
size: r,
|
|
393
|
-
vSpec: e
|
|
394
|
-
}) : null;
|
|
395
|
-
});
|
|
396
|
-
export { Xe as DotChart };
|
|
@@ -1,287 +0,0 @@
|
|
|
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 };
|