@astrato-io/visualizations 0.8.0 → 0.9.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 +1 -1
- package/THIRD_PARTY_NOTICES.md +307 -378
- package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
- package/chunks/CircularProgress-DFS-LQb7.js +765 -0
- package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
- package/chunks/LinearProgress-CjIQfkNA.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
- package/chunks/Title-CtFw1bVg.js +1804 -0
- package/chunks/ToggleButton-Br9HCPCv.js +150 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
- package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
- package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
- package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
- package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
- package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
- package/chunks/isFocusVisible-B1_z03UT.js +144 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
- package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
- package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
- package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
- package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
- package/chunks/react-dom-BwZT0N3F.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
- package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
- package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
- package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
- package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
- package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
- package/chunks/standalone-BMoJXGYe.js +2 -0
- package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
- package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
- package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
- package/chunks/standalone-CMJJIi9v.js +2 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
- package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
- package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
- package/chunks/standalone-C_Jd4gkj.js +6 -0
- package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
- package/chunks/standalone-CoQxJ6ov.js +3638 -0
- package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
- package/chunks/standalone-DBeXQrwH.js +468 -0
- package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
- package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
- package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
- package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
- package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
- package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
- package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
- package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-mWrD_uk_.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
- package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
- package/chunks/with-html-element-B0Clt4jY.js +15901 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -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 +2 -2
- package/docs/operations/line.md +1 -1
- 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 +66 -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 +2 -2
- package/index.js +74 -68
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -66
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
- package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-DT0wKji7.js +0 -6
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
- /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ds as t, Gs as n, Hi as r, Ia as i,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Ds as t, Gs as n, Hi as r, Ia as i, It as a, La as o, Tt as s, Us as c, Za as l, jt as u, ws as d, zi as f, zr as p } from "./visualization-filters-mVnsnvLP.js";
|
|
3
|
+
import { F as m, N as h, Ot as g, ei as _, jr as v } from "./utils-DYYD4Zzf.js";
|
|
4
|
+
import { jm as y } from "./handlers-CMbyj5y1.js";
|
|
5
5
|
import { r as b } from "./label-format-type-weq1XfcX.js";
|
|
6
6
|
import { t as x } from "./stroke-dash-UgMEcCS4.js";
|
|
7
|
-
import "./logger-
|
|
8
|
-
import { $ as S, At as C, B as w, Bt as T, Et as E, F as D, I as
|
|
9
|
-
import { o as ne, t as re } from "./coloring-
|
|
7
|
+
import "./logger-3lng-wOw.js";
|
|
8
|
+
import { $ as S, At as C, B as w, Bt as T, Et as E, F as D, I as O, L as k, Nt as A, St as ee, Ut as j, V as M, W as N, Y as P, Yt as F, _n as I, an as L, bt as R, dt as z, gt as B, ht as V, i as H, in as U, ln as W, lt as G, mt as K, n as te, on as q, pn as J, rn as Y, vt as X, yt as Z, zt as Q } from "./escobar-C4Nm3eJ7.js";
|
|
9
|
+
import { o as ne, t as re } from "./coloring-B-Wa8D5P.js";
|
|
10
10
|
import { t as ie } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
11
|
-
var ae = /* @__PURE__ */ e(
|
|
12
|
-
let o = e.dimensions.filter((e) => p(e)),
|
|
13
|
-
if (g?.type === t.Categorical && (_ ||= u ?
|
|
14
|
-
let e = n(u.dataItem), t = !!u.datePart, r =
|
|
11
|
+
var ae = /* @__PURE__ */ e(_()), oe = (e, r, i) => {
|
|
12
|
+
let o = e.dimensions.filter((e) => p(e)), l = e.measures.filter((e) => p(e)), u = o[0], f = l[0], m = !1, h = {}, { coloring: g } = e || {}, _ = g?.fieldId ?? null;
|
|
13
|
+
if (g?.type === t.Categorical && (_ ||= u ? c(u.dataItem) : null), g?.type === t.Gradient && (_ ||= f ? c(f.dataItem) : null), _ && Z(i, 0, { color: { field: _ } }), u && e?.axes?.dimension?.continuousAxis) {
|
|
14
|
+
let e = n(u.dataItem), t = !!u.datePart, r = s(e) || a(e);
|
|
15
15
|
m = !t && r;
|
|
16
16
|
}
|
|
17
|
-
if (h = E(ie(e, _), r, h), h =
|
|
18
|
-
let t =
|
|
17
|
+
if (h = E(ie(e, _), r, h), h = P(e, h, i.collections, m, !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
19
|
h[t].data = { collection: C.ComboChartCollection };
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
@@ -24,25 +24,25 @@ var ae = /* @__PURE__ */ e(m()), oe = (e, r, i) => {
|
|
|
24
24
|
};
|
|
25
25
|
}, $ = (e, t, n) => {
|
|
26
26
|
let r = e.measures.filter((e) => p(e)), i = e.dimensions.filter((e) => p(e)), a = (e.supportingMeasures ?? []).filter((e) => p(e)), o = r.reduce((e, t) => {
|
|
27
|
-
let n =
|
|
27
|
+
let n = c(t.dataItem);
|
|
28
28
|
return e[n] = { field: n }, e;
|
|
29
|
-
}, {}),
|
|
30
|
-
let n =
|
|
29
|
+
}, {}), s = O(a), l = i.reduce((e, t) => {
|
|
30
|
+
let n = c(t.dataItem);
|
|
31
31
|
return e[n] = { field: n }, e;
|
|
32
32
|
}, {}), u = i[0];
|
|
33
33
|
if (!u) return n;
|
|
34
|
-
let f =
|
|
34
|
+
let f = c(u.dataItem), m = {
|
|
35
35
|
key: C.ComboChartCollection,
|
|
36
36
|
data: { extract: [] }
|
|
37
37
|
};
|
|
38
38
|
if (m.data.extract = r.map((e, t) => {
|
|
39
|
-
let n =
|
|
39
|
+
let n = c(e.dataItem);
|
|
40
40
|
return {
|
|
41
41
|
field: f,
|
|
42
42
|
props: {
|
|
43
43
|
end: { field: n },
|
|
44
44
|
...o,
|
|
45
|
-
...
|
|
45
|
+
...s,
|
|
46
46
|
...l,
|
|
47
47
|
start: 0,
|
|
48
48
|
graphType: e.graphType,
|
|
@@ -51,7 +51,7 @@ var ae = /* @__PURE__ */ e(m()), oe = (e, r, i) => {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
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) => [
|
|
54
|
+
let t = !!r.find((e) => e.graphType === d.Bar)?.secondaryAxis, n = new Map(r.map((e) => [c(e.dataItem), !!e.secondaryAxis]));
|
|
55
55
|
e.barSettings?.grouped || (m.data.stack = {
|
|
56
56
|
stackKey: (e) => e.graphType.value === d.Bar ? `${e.value}` : `${e.value}-${e.graphType.value}-${e.measureIndex.value}`,
|
|
57
57
|
value: (e) => {
|
|
@@ -70,17 +70,17 @@ var ae = /* @__PURE__ */ e(m()), oe = (e, r, i) => {
|
|
|
70
70
|
}, se = (e, t, n, r, i, a) => {
|
|
71
71
|
let o = [];
|
|
72
72
|
return e.measures.filter((e) => p(e)).forEach((r) => {
|
|
73
|
-
let
|
|
73
|
+
let s = c(r.dataItem), l = (e) => e.fieldId.value === s;
|
|
74
74
|
switch (r.graphType || e.type) {
|
|
75
75
|
case d.Bar:
|
|
76
76
|
o.push(le(e, t, i ?? [], n, r, a, l));
|
|
77
77
|
break;
|
|
78
78
|
case d.Point:
|
|
79
|
-
o.push(
|
|
79
|
+
o.push(B(e, t, n, r, !1, C.ComboChartCollection, l));
|
|
80
80
|
break;
|
|
81
|
-
default: o.push(ce(e, t, n, r, l)), o.push(
|
|
81
|
+
default: o.push(ce(e, t, n, r, l)), o.push(B(e, t, n, r, !r.showDataPoints, C.ComboChartCollection, l));
|
|
82
82
|
}
|
|
83
|
-
}), o.sort((e) => e.type ===
|
|
83
|
+
}), o.sort((e) => e.type === I.Box ? -1 : 0), {
|
|
84
84
|
...n,
|
|
85
85
|
components: [...n.components, ...o]
|
|
86
86
|
};
|
|
@@ -89,9 +89,9 @@ function ce(e, t, n, r, i) {
|
|
|
89
89
|
let a = e.dimensions.filter((e) => p(e));
|
|
90
90
|
if (!a[0]) throw Error("Combo chart without dimension is not supported.");
|
|
91
91
|
if (a.length > 1) throw Error("Combo chart currently support only one dimension.");
|
|
92
|
-
let o = x(r.strokeDash),
|
|
92
|
+
let o = x(r.strokeDash), s = c(r.dataItem), u = ne(e, n, t, r, s);
|
|
93
93
|
return {
|
|
94
|
-
type:
|
|
94
|
+
type: I.Line,
|
|
95
95
|
layout: { displayOrder: T.VisualizationElement },
|
|
96
96
|
key: X(e, r, d.Line),
|
|
97
97
|
data: {
|
|
@@ -99,12 +99,12 @@ function ce(e, t, n, r, i) {
|
|
|
99
99
|
filter: i
|
|
100
100
|
},
|
|
101
101
|
settings: {
|
|
102
|
-
orientation: e.orientation ===
|
|
102
|
+
orientation: e.orientation === l.Horizontal ? l.Vertical : l.Horizontal,
|
|
103
103
|
coordinates: {
|
|
104
|
-
major: { scale:
|
|
104
|
+
major: { scale: U(e) },
|
|
105
105
|
minor: {
|
|
106
|
-
scale:
|
|
107
|
-
ref:
|
|
106
|
+
scale: L(e, r),
|
|
107
|
+
ref: s
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
layers: {
|
|
@@ -124,17 +124,17 @@ function ce(e, t, n, r, i) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function le(e, t, n, r, i, a, o) {
|
|
127
|
-
let
|
|
128
|
-
if (!
|
|
129
|
-
let m = { scale:
|
|
130
|
-
scale:
|
|
127
|
+
let s = e.dimensions.filter((e) => p(e)), f = e.measures.filter((e) => p(e) && e.graphType === d.Bar);
|
|
128
|
+
if (!s[0]) throw Error("Combo chart without dimension is not supported.");
|
|
129
|
+
let m = { scale: U(e) }, h = {
|
|
130
|
+
scale: L(e, i),
|
|
131
131
|
end: { ref: "end" }
|
|
132
132
|
}, g = {
|
|
133
133
|
minWidthPx: 2,
|
|
134
134
|
rx: u(e?.barSettings.barRadius, 0),
|
|
135
135
|
roundAllEdges: e?.barSettings?.roundAllEdges,
|
|
136
136
|
useCustomBoxRounding: !0,
|
|
137
|
-
boxPadding: e?.barSettings?.barPadding ??
|
|
137
|
+
boxPadding: e?.barSettings?.barPadding ?? J.scale.padding
|
|
138
138
|
};
|
|
139
139
|
g.fill = new re(e, t, n?.[0]?.itemsNotAffectedByFiltering).getColorDefinition({ ref: "fieldId" });
|
|
140
140
|
let _ = {
|
|
@@ -142,14 +142,14 @@ function le(e, t, n, r, i, a, o) {
|
|
|
142
142
|
presetId: "bar-chart"
|
|
143
143
|
}, v = i?.graphType !== d.Bar;
|
|
144
144
|
if (f.length > 1 && e.barSettings?.grouped) {
|
|
145
|
-
let t = 1 * (1 / f.length), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / f.length, a = (1 + 0 * (f.length - 1)) * r, o = f.findIndex((e) =>
|
|
145
|
+
let t = 1 * (1 / f.length), n = (1 - (e.barSettings?.barPadding ?? 0)) * t, r = .5 / f.length, a = (1 + 0 * (f.length - 1)) * r, o = f.findIndex((e) => c(e.dataItem) === c(i.dataItem));
|
|
146
146
|
m.fn = (n) => {
|
|
147
|
-
let r = n.resources.scale(
|
|
147
|
+
let r = n.resources.scale(U(e));
|
|
148
148
|
return r(n.datum.value) + a * r.bandwidth?.() + o * r.bandwidth?.() * t;
|
|
149
149
|
}, g.width = n;
|
|
150
150
|
}
|
|
151
151
|
return {
|
|
152
|
-
type:
|
|
152
|
+
type: I.Box,
|
|
153
153
|
layout: { displayOrder: T.VisualizationElement },
|
|
154
154
|
key: X(e, i, d.Bar),
|
|
155
155
|
data: {
|
|
@@ -157,13 +157,13 @@ function le(e, t, n, r, i, a, o) {
|
|
|
157
157
|
filter: o
|
|
158
158
|
},
|
|
159
159
|
settings: {
|
|
160
|
-
orientation: e.orientation ??
|
|
160
|
+
orientation: e.orientation ?? l.Vertical,
|
|
161
161
|
major: m,
|
|
162
162
|
minor: h,
|
|
163
163
|
box: g
|
|
164
164
|
},
|
|
165
165
|
animations: _,
|
|
166
|
-
brush: v ? null :
|
|
166
|
+
brush: v ? null : F([""], a)
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
var ue = (e, t) => {
|
|
@@ -183,7 +183,7 @@ var ue = (e, t) => {
|
|
|
183
183
|
...e,
|
|
184
184
|
possible: n.includes(e.position)
|
|
185
185
|
}));
|
|
186
|
-
}, 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, a,
|
|
186
|
+
}, 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, a, s, l) => {
|
|
187
187
|
let u = e.measures.filter((e) => p(e)), f = u.filter((e) => e.graphType === d.Bar), m = f.filter((e) => e.dataLabels?.show), h = f.length >= 2 && !("barSettings" in e && e.barSettings?.grouped), g = q(e), _ = m.map((n) => {
|
|
188
188
|
let i = !!n.dataLabels?.barLabelPlacements, a = ue(n.dataLabels?.barLabelPlacements, h).filter((e) => e.possible).map((e) => ({
|
|
189
189
|
position: e.position,
|
|
@@ -191,18 +191,18 @@ var ue = (e, t) => {
|
|
|
191
191
|
...e.justify === void 0 ? {} : { justify: e.justify },
|
|
192
192
|
...i ? { overflow: [y.Outside, y.Opposite].includes(e.position) } : {}
|
|
193
193
|
}));
|
|
194
|
-
return n.dataLabels?.showBackdrop && !h && (a = a.map((e) =>
|
|
194
|
+
return n.dataLabels?.showBackdrop && !h && (a = a.map((e) => k(e, t, g))), {
|
|
195
195
|
key: `combo-bar-labels-${n.dataItem.uniqueSignature}`,
|
|
196
|
-
type:
|
|
196
|
+
type: I.Labels,
|
|
197
197
|
layout: { displayOrder: T.Labels },
|
|
198
198
|
settings: { sources: [{
|
|
199
199
|
component: X(e, n, d.Bar),
|
|
200
|
-
selector:
|
|
200
|
+
selector: W.Rect,
|
|
201
201
|
strategy: {
|
|
202
202
|
type: "bar",
|
|
203
203
|
settings: {
|
|
204
204
|
direction: g ? fe : de,
|
|
205
|
-
fontSize:
|
|
205
|
+
fontSize: Y(n.dataLabels?.size),
|
|
206
206
|
fontFamily: t.fonts.general.fontFamily,
|
|
207
207
|
labels: [{
|
|
208
208
|
label: w(n),
|
|
@@ -217,19 +217,19 @@ var ue = (e, t) => {
|
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
}), v = {}, b = {}, x = u.filter((e) => e.graphType !== d.Bar).map((t) => {
|
|
220
|
-
let n =
|
|
220
|
+
let n = c(t.dataItem), r = X(e, t, d.Point);
|
|
221
221
|
return b[r] = n, v[r] = {
|
|
222
222
|
enabled: t.dataLabels?.show || !1,
|
|
223
|
-
fontSize:
|
|
223
|
+
fontSize: Y(t.dataLabels?.size),
|
|
224
224
|
backdropColor: t.dataLabels?.backdropColor,
|
|
225
225
|
textColor: t.dataLabels?.textColor,
|
|
226
226
|
isColored: t.dataLabels?.isColored,
|
|
227
227
|
colorType: t.dataLabels?.showBackdrop ? i.Backdrop : i.Text,
|
|
228
228
|
density: t.dataLabels?.density || o.Medium
|
|
229
229
|
}, r;
|
|
230
|
-
}).filter((e) => v[e].enabled), S = x.length ? [
|
|
230
|
+
}).filter((e) => v[e].enabled), S = x.length ? [N({
|
|
231
231
|
targetComponentKeys: x,
|
|
232
|
-
targetSelector: `.${
|
|
232
|
+
targetSelector: `.${V}`,
|
|
233
233
|
label: ({ data: e, node: t }) => e[b[t.key]]?.label,
|
|
234
234
|
skipBrush: !0
|
|
235
235
|
}, v, l, t)] : [];
|
|
@@ -259,25 +259,25 @@ var ue = (e, t) => {
|
|
|
259
259
|
super([
|
|
260
260
|
$,
|
|
261
261
|
oe,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
j,
|
|
263
|
+
ee,
|
|
264
264
|
se,
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
z,
|
|
266
|
+
R,
|
|
267
267
|
pe,
|
|
268
|
-
|
|
268
|
+
G,
|
|
269
269
|
S,
|
|
270
|
-
|
|
270
|
+
A,
|
|
271
271
|
Q,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
K,
|
|
273
|
+
M
|
|
274
274
|
]);
|
|
275
275
|
}
|
|
276
|
-
}, he = v(), ge =
|
|
277
|
-
let a =
|
|
276
|
+
}, he = v(), ge = g(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
277
|
+
let a = h(), [o] = (0, ae.useState)(() => new me()), s = m(), c = te();
|
|
278
278
|
if (!e || !r) return null;
|
|
279
279
|
let l = t || f, u = o.compile(e, l, n, r, i, d.Combo, a, s, c);
|
|
280
|
-
return u ? /* @__PURE__ */ (0, he.jsx)(
|
|
280
|
+
return u ? /* @__PURE__ */ (0, he.jsx)(H, {
|
|
281
281
|
config: i,
|
|
282
282
|
definition: u,
|
|
283
283
|
size: r,
|