@astrato-io/visualizations 0.10.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -1
- package/README.md +148 -5
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +9 -146
- package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
- package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
- package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
- package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
- package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
- package/chunks/defaults-CMFqXvaJ.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
- package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
- package/chunks/handlers-CyYFSfhM.js +15393 -0
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
- package/chunks/line.compiler-B-4H55_T.js +203 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
- package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
- package/chunks/measure-format-default-B_kuGSzi.js +26 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
- package/chunks/number.compiler-D7nMcEMv.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
- package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
- package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
- package/chunks/standalone-B3hRGgYi.js +773 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
- package/chunks/standalone-BPTT8XEu.js +424 -0
- package/chunks/standalone-BgAeHROc.js +2 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
- package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
- package/chunks/standalone-C0If-V6O.js +773 -0
- package/chunks/standalone-C1TOyflX.js +287 -0
- package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
- package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
- package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
- package/chunks/standalone-CNf-oA2U.js +355 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
- package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
- package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
- package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
- package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
- package/chunks/standalone-Dbn3jSH6.js +690 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
- package/chunks/standalone-DwCIA0UG.js +1057 -0
- package/chunks/standalone-Dz13tl3P.js +357 -0
- package/chunks/standalone-H9GFzFk_.js +8377 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
- package/chunks/standalone-ejTz66P3.js +2 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
- package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
- package/chunks/standalone-vGGR6Vcn.js +6 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
- package/chunks/theme-MYp6Rj1J.js +232 -0
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
- package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +144 -32
- package/docs/operations/combo.md +79 -17
- package/docs/operations/date-picker.md +4 -4
- package/docs/operations/distribution-gauge.md +18 -16
- package/docs/operations/dot.md +107 -24
- package/docs/operations/filter.md +10 -8
- package/docs/operations/gauge.md +20 -18
- package/docs/operations/heatMap.md +73 -21
- package/docs/operations/histogram.md +45 -12
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +12 -11
- package/docs/operations/line.md +86 -24
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +10 -9
- package/docs/operations/pie.md +23 -21
- package/docs/operations/radar.md +13 -11
- package/docs/operations/sankey.md +19 -17
- package/docs/operations/scatter.md +111 -28
- package/docs/operations/shape.md +5 -5
- package/docs/operations/simpleTextObject.md +4 -4
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +27 -25
- package/docs/operations/tree.md +5 -3
- package/docs/operations/treemap.md +70 -18
- package/docs/operations/waterfall.md +40 -7
- package/docs/operations/word-cloud.md +69 -17
- package/getters.js +3 -3
- package/index.js +585 -612
- package/metadata.js +2 -2
- package/operations.js +25 -18
- package/package.json +74 -70
- package/src/definitions/index.d.ts +1 -7
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
- package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +11 -1
- package/src/types.d.ts +166 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/color-rules-DYJL4fIW.js +0 -15
- package/chunks/color-settings-DJFoFTip.js +0 -5
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- package/chunks/handlers-C6CZ0XJA.js +0 -15399
- package/chunks/line.compiler-DmHpmQCC.js +0 -198
- package/chunks/number.compiler-DQdg6zTy.js +0 -53
- package/chunks/standalone-4MsKiqs0.js +0 -355
- package/chunks/standalone-B794g9pE.js +0 -1012
- package/chunks/standalone-BA2YXyJS.js +0 -422
- package/chunks/standalone-BgumbdaJ2.js +0 -357
- package/chunks/standalone-Blh4qejk.js +0 -689
- package/chunks/standalone-CXY4FpF7.js +0 -773
- package/chunks/standalone-DH0xTEes.js +0 -2
- package/chunks/standalone-DcnHjNnC.js +0 -2
- package/chunks/standalone-DrHdGkY7.js +0 -762
- package/chunks/standalone-c_rROMtx.js +0 -287
- package/chunks/standalone-drcFLeN6.js +0 -6
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Co as t, Fc as n, Jt as r, Lc as i, Lo as a, Lt as o, Oa as s, Qr as c, So as l, Ut as u, gc as d, sa as f, ws as p, yc as m } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
-
import { F as h, N as g, ci as _, jt as v, zr as y } from "./utils-DganVptf.js";
|
|
4
|
-
import { g_ as b } from "./handlers-C6CZ0XJA.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-DdZpR7xZ.js";
|
|
8
|
-
import { C as ee, Ct as C, D as w, Ht as T, I as E, It as D, Kt as O, M as te, Nt as k, Qt as A, St as j, Tt as M, Ut as N, _ as P, _t as F, bn as I, cn as L, fn as R, ft as z, gn as B, i as V, kt as H, ln as U, mt as W, n as G, on as K, sn as q, v as J, vt as Y, w as ne, xt as X, y as Z, yt as Q } from "./escobar-CvEV2ES1.js";
|
|
9
|
-
import { o as re, t as ie } from "./coloring-BtnPiQ_o.js";
|
|
10
|
-
import { t as ae } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
11
|
-
var oe = /* @__PURE__ */ e(_()), se = (e, t, a) => {
|
|
12
|
-
let s = e.dimensions.filter((e) => c(e)), l = e.measures.filter((e) => c(e)), u = s[0], f = l[0], p = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
|
|
13
|
-
if (g?.type === m.Categorical && (_ ||= u ? n(u.dataItem) : null), g?.type === m.Gradient && (_ ||= f ? n(f.dataItem) : null), _ && j(a, 0, { color: { field: _ } }), u && e?.axes?.dimension?.continuousAxis) {
|
|
14
|
-
let e = i(u.dataItem), t = !!u.datePart, n = o(e) || r(e);
|
|
15
|
-
p = !t && n;
|
|
16
|
-
}
|
|
17
|
-
if (h = H(ae(e, _), t, h), h = te(e, h, a.collections, p, !0), l.filter((e) => e.graphType === d.Bar).length > 1 && !e.barSettings?.grouped) {
|
|
18
|
-
let t = L(e, l.find((e) => e.graphType === d.Bar));
|
|
19
|
-
h[t].data = { collection: k.ComboChartCollection };
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
...a,
|
|
23
|
-
scales: h
|
|
24
|
-
};
|
|
25
|
-
}, ce = (e, t, r) => {
|
|
26
|
-
let i = e.measures.filter((e) => c(e)), a = e.dimensions.filter((e) => c(e)), o = (e.supportingMeasures ?? []).filter((e) => c(e)), s = i.reduce((e, t) => {
|
|
27
|
-
let r = n(t.dataItem);
|
|
28
|
-
return e[r] = { field: r }, e;
|
|
29
|
-
}, {}), l = J(o), u = a.reduce((e, t) => {
|
|
30
|
-
let r = n(t.dataItem);
|
|
31
|
-
return e[r] = { field: r }, e;
|
|
32
|
-
}, {}), f = a[0];
|
|
33
|
-
if (!f) return r;
|
|
34
|
-
let p = n(f.dataItem), m = {
|
|
35
|
-
key: k.ComboChartCollection,
|
|
36
|
-
data: { extract: [] }
|
|
37
|
-
};
|
|
38
|
-
if (m.data.extract = i.map((e, t) => {
|
|
39
|
-
let r = n(e.dataItem);
|
|
40
|
-
return {
|
|
41
|
-
field: p,
|
|
42
|
-
props: {
|
|
43
|
-
end: { field: r },
|
|
44
|
-
...s,
|
|
45
|
-
...l,
|
|
46
|
-
...u,
|
|
47
|
-
start: 0,
|
|
48
|
-
graphType: e.graphType,
|
|
49
|
-
measureIndex: t,
|
|
50
|
-
fieldId: r
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}), i.filter((e) => e.graphType === d.Bar).length > 1) {
|
|
54
|
-
let t = !!i.find((e) => e.graphType === d.Bar)?.secondaryAxis, r = new Map(i.map((e) => [n(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 n = e.fieldId?.value;
|
|
59
|
-
if (typeof n != "string" || r.get(n) !== 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
|
-
...r,
|
|
68
|
-
collections: [...r.collections ?? [], m]
|
|
69
|
-
};
|
|
70
|
-
}, le = (e, t, r, i, a, o) => {
|
|
71
|
-
let s = [];
|
|
72
|
-
return e.measures.filter((e) => c(e)).forEach((i) => {
|
|
73
|
-
let c = n(i.dataItem), l = (e) => e.fieldId.value === c;
|
|
74
|
-
switch (i.graphType || e.type) {
|
|
75
|
-
case d.Bar:
|
|
76
|
-
s.push(de(e, t, a ?? [], r, i, o, l));
|
|
77
|
-
break;
|
|
78
|
-
case d.Point:
|
|
79
|
-
s.push(Q(e, t, r, i, !1, k.ComboChartCollection, l));
|
|
80
|
-
break;
|
|
81
|
-
default: s.push(ue(e, t, r, i, l)), s.push(Q(e, t, r, i, !i.showDataPoints, k.ComboChartCollection, l));
|
|
82
|
-
}
|
|
83
|
-
}), s.sort((e) => e.type === I.Box ? -1 : 0), {
|
|
84
|
-
...r,
|
|
85
|
-
components: [...r.components, ...s]
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
function ue(e, t, r, i, o) {
|
|
89
|
-
let s = e.dimensions.filter((e) => c(e));
|
|
90
|
-
if (!s[0]) throw Error("Combo chart without dimension is not supported.");
|
|
91
|
-
if (s.length > 1) throw Error("Combo chart currently support only one dimension.");
|
|
92
|
-
let l = S(i.strokeDash), u = n(i.dataItem), f = re(e, r, t, i, u);
|
|
93
|
-
return {
|
|
94
|
-
type: I.Line,
|
|
95
|
-
layout: { displayOrder: N.VisualizationElement },
|
|
96
|
-
key: X(e, i, d.Line),
|
|
97
|
-
data: p({
|
|
98
|
-
collection: k.ComboChartCollection,
|
|
99
|
-
filter: o
|
|
100
|
-
}),
|
|
101
|
-
settings: {
|
|
102
|
-
orientation: e.orientation === a.Horizontal ? a.Vertical : a.Horizontal,
|
|
103
|
-
coordinates: {
|
|
104
|
-
major: { scale: q(e) },
|
|
105
|
-
minor: {
|
|
106
|
-
scale: L(e, i),
|
|
107
|
-
ref: u
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
layers: {
|
|
111
|
-
curve: e.lineSettings?.lineCurve,
|
|
112
|
-
skipCollisions: !0,
|
|
113
|
-
line: {
|
|
114
|
-
stroke: f,
|
|
115
|
-
strokeWidth: i.strokeWidth,
|
|
116
|
-
strokeDasharray: l
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
animations: {
|
|
121
|
-
enabled: !0,
|
|
122
|
-
presetId: "simple-opacity"
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function de(e, t, r, i, o, s, l) {
|
|
127
|
-
let f = e.dimensions.filter((e) => c(e)), m = e.measures.filter((e) => c(e) && e.graphType === d.Bar);
|
|
128
|
-
if (!f[0]) throw Error("Combo chart without dimension is not supported.");
|
|
129
|
-
let h = { scale: q(e) }, g = {
|
|
130
|
-
scale: L(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 ?? B.scale.padding
|
|
138
|
-
};
|
|
139
|
-
_.fill = new ie(e, t, 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), r = (1 - (e.barSettings?.barPadding ?? 0)) * t, i = .5 / m.length, a = (1 + 0 * (m.length - 1)) * i, s = m.findIndex((e) => n(e.dataItem) === n(o.dataItem));
|
|
146
|
-
h.fn = (n) => {
|
|
147
|
-
let r = n.resources.scale(q(e));
|
|
148
|
-
return r(n.datum.value) + a * r.bandwidth?.() + s * r.bandwidth?.() * t;
|
|
149
|
-
}, _.width = r;
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
type: I.Box,
|
|
153
|
-
layout: { displayOrder: N.VisualizationElement },
|
|
154
|
-
key: X(e, o, d.Bar),
|
|
155
|
-
data: p({
|
|
156
|
-
collection: k.ComboChartCollection,
|
|
157
|
-
filter: l
|
|
158
|
-
}),
|
|
159
|
-
settings: {
|
|
160
|
-
orientation: e.orientation ?? a.Vertical,
|
|
161
|
-
major: h,
|
|
162
|
-
minor: g,
|
|
163
|
-
box: _
|
|
164
|
-
},
|
|
165
|
-
animations: v,
|
|
166
|
-
brush: y ? null : A([""], s)
|
|
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, r, i, a, o, u) => {
|
|
187
|
-
let f = e.measures.filter((e) => c(e)), p = f.filter((e) => e.graphType === d.Bar), m = p.filter((e) => e.dataLabels?.show), h = p.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = U(e), _ = m.map((t) => {
|
|
188
|
-
let n = !!t.dataLabels?.barLabelPlacements, i = fe(t.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
|
|
189
|
-
position: e.position,
|
|
190
|
-
fill: e.position === b.Inside ? s.white : "#242424",
|
|
191
|
-
...e.justify === void 0 ? {} : { justify: e.justify },
|
|
192
|
-
...n ? { overflow: [b.Outside, b.Opposite].includes(e.position) } : {}
|
|
193
|
-
}));
|
|
194
|
-
return t.dataLabels?.showBackdrop && !h && (i = i.map((e) => Z(e, r, g))), {
|
|
195
|
-
key: `combo-bar-labels-${t.dataItem.uniqueSignature}`,
|
|
196
|
-
type: I.Labels,
|
|
197
|
-
layout: { displayOrder: N.Labels },
|
|
198
|
-
settings: { sources: [{
|
|
199
|
-
component: X(e, t, d.Bar),
|
|
200
|
-
selector: R.Rect,
|
|
201
|
-
strategy: {
|
|
202
|
-
type: "bar",
|
|
203
|
-
settings: {
|
|
204
|
-
direction: g ? $ : pe,
|
|
205
|
-
fontSize: K(t.dataLabels?.size),
|
|
206
|
-
fontFamily: r.fonts.general.fontFamily,
|
|
207
|
-
labels: [{
|
|
208
|
-
label: ee(t),
|
|
209
|
-
placements: i
|
|
210
|
-
}]
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}] },
|
|
214
|
-
animations: {
|
|
215
|
-
enabled: !0,
|
|
216
|
-
presetId: "chart-labels"
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
}), v = {}, y = {}, x = f.filter((e) => e.graphType !== d.Bar).map((r) => {
|
|
220
|
-
let i = n(r.dataItem), a = X(e, r, d.Point);
|
|
221
|
-
return y[a] = i, v[a] = {
|
|
222
|
-
enabled: r.dataLabels?.show || !1,
|
|
223
|
-
fontSize: K(r.dataLabels?.size),
|
|
224
|
-
backdropColor: r.dataLabels?.backdropColor,
|
|
225
|
-
textColor: r.dataLabels?.textColor,
|
|
226
|
-
isColored: r.dataLabels?.isColored,
|
|
227
|
-
colorType: r.dataLabels?.showBackdrop ? l.Backdrop : l.Text,
|
|
228
|
-
density: r.dataLabels?.density || t.Medium
|
|
229
|
-
}, a;
|
|
230
|
-
}).filter((e) => v[e].enabled), S = x.length ? [w({
|
|
231
|
-
targetComponentKeys: x,
|
|
232
|
-
targetSelector: `.${Y}`,
|
|
233
|
-
label: ({ data: e, node: t }) => e[y[t.key]]?.label,
|
|
234
|
-
skipBrush: !0
|
|
235
|
-
}, v, u, r)] : [];
|
|
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
|
-
...i,
|
|
246
|
-
components: [...i.components, e]
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
return {
|
|
250
|
-
...i,
|
|
251
|
-
components: [
|
|
252
|
-
...i.components,
|
|
253
|
-
..._,
|
|
254
|
-
...S
|
|
255
|
-
]
|
|
256
|
-
};
|
|
257
|
-
}, he = class extends P {
|
|
258
|
-
constructor() {
|
|
259
|
-
super([
|
|
260
|
-
ce,
|
|
261
|
-
se,
|
|
262
|
-
O,
|
|
263
|
-
M,
|
|
264
|
-
le,
|
|
265
|
-
W,
|
|
266
|
-
C,
|
|
267
|
-
me,
|
|
268
|
-
z,
|
|
269
|
-
E,
|
|
270
|
-
D,
|
|
271
|
-
T,
|
|
272
|
-
F,
|
|
273
|
-
ne
|
|
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 = G();
|
|
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)(V, {
|
|
281
|
-
config: i,
|
|
282
|
-
definition: u,
|
|
283
|
-
size: r,
|
|
284
|
-
vSpec: e
|
|
285
|
-
}) : null;
|
|
286
|
-
});
|
|
287
|
-
export { _e as ComboChart };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { ci as e, jt as t, zr as n } from "./utils-DganVptf.js";
|
|
3
|
-
import { n as r } from "./standalone-B794g9pE.js";
|
|
4
|
-
e();
|
|
5
|
-
var i = n(), a = t((e) => /* @__PURE__ */ (0, i.jsx)(r, { ...e }));
|
|
6
|
-
export { a as HistogramChart };
|