@astrato-io/visualizations 0.9.0 → 0.10.1
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 +10 -0
- package/README.md +7 -3
- package/THIRD_PARTY_NOTICES.md +163 -14
- package/VISUALIZATION_DEFINITIONS.md +376 -36
- package/chunks/{Button-5CxPEACP.js → Button-Dn3rJrYf.js} +4 -4
- package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-BFeu06Yb.js} +39 -39
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +22 -0
- package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-ClO6GUjN.js} +9 -9
- package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-Czc34u4q.js} +143 -142
- package/chunks/{Title-CtFw1bVg.js → Title-BgYnaVTR.js} +22 -22
- package/chunks/_createAggregator-BMu9uRax.js +50 -0
- package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-CVir0wkl.js} +10 -10
- package/chunks/bar-layout-C_UgRlVl.js +9 -0
- package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-DYuFdi9J.js} +100 -82
- package/chunks/{builder-Dxo7D7c6.js → builder-C-TKA-My.js} +70 -37
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-B-Wa8D5P.js → coloring-BtnPiQ_o.js} +37 -37
- package/chunks/createSimplePaletteValueFilter--zrZxRV9.js +2005 -0
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-DNpzD9tY.js → definitions-CT304NDn.js} +655 -417
- package/chunks/{escobar-C4Nm3eJ7.js → escobar-CvEV2ES1.js} +7441 -7127
- package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D9-JP92b.js} +998 -933
- package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-CGuLpg7u.js → filtering-8_bFv-jb.js} +333 -377
- package/chunks/handlers-C6CZ0XJA.js +15399 -0
- package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-BXiJ1SZS.js} +11 -11
- package/chunks/isEqual-D8Ay63xR.js +16 -0
- package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-DmHpmQCC.js} +9 -9
- package/chunks/{logger-3lng-wOw.js → logger-DdZpR7xZ.js} +79 -72
- package/chunks/map.compiler-Q_Y1Pvat.js +343 -0
- package/chunks/{metadata-Fmx1swpK.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-DQdg6zTy.js} +7 -7
- package/chunks/operations-DKQWuLL7.js +31315 -0
- package/chunks/{range-CzO4isKK.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-BwZT0N3F.js → react-dom-BGP4tbXV.js} +70 -70
- package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-CYpVh65U.js → requirements-e8Fe96ag.js} +60 -58
- package/chunks/shared-C_2F90xq.js +1337 -0
- package/chunks/standalone-4MsKiqs0.js +355 -0
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-C6XDHYAM.js → standalone-B8ZSqauS.js} +110 -110
- package/chunks/{standalone-5DnapeHH.js → standalone-BA2YXyJS.js} +126 -124
- package/chunks/{standalone-CXniic5x.js → standalone-BDrXVxlP.js} +6 -5
- package/chunks/{standalone-B6s_xG2u.js → standalone-BE_ONgiG.js} +116 -116
- package/chunks/{standalone-CPUiiWNP.js → standalone-BTY3w_JA.js} +37 -37
- package/chunks/standalone-BgumbdaJ2.js +357 -0
- package/chunks/{standalone-DWPfdP0A.js → standalone-BkbiH-o8.js} +482 -482
- package/chunks/standalone-Blh4qejk.js +689 -0
- package/chunks/standalone-CXY4FpF7.js +773 -0
- package/chunks/{standalone-BvWdpUL3.js → standalone-CY_kjarf.js} +34 -31
- package/chunks/{standalone-DuwTOBXH.js → standalone-CaTxAydz.js} +587 -587
- package/chunks/{standalone-BDrQMxLi.js → standalone-Cc98Pdr6.js} +1799 -1015
- package/chunks/{standalone-DMCwtebn.js → standalone-Cl0TSfqC.js} +125 -125
- package/chunks/{standalone-CoQxJ6ov.js → standalone-CsoMmE9T.js} +778 -778
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-LFVgLhia.js → standalone-DHRalbVO.js} +311 -303
- package/chunks/standalone-DNh9NcMa.js +580 -0
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-r4ObFvys.js → standalone-DflyWtuR.js} +217 -215
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/standalone-drcFLeN6.js +6 -0
- package/chunks/{standalone-CNkHsynO.js → standalone-wOWRCpdn.js} +54 -56
- package/chunks/{standalone-Cu73fzSr.js → standalone-z0o52o5t.js} +5128 -4908
- package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-DYYD4Zzf.js → utils-DganVptf.js} +4758 -4747
- package/chunks/{view-7fH6mGmY.js → view-Bzlros43.js} +2021 -1665
- package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-D7i6oh1Z.js} +3177 -2425
- package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-CiIhFEa5.js} +3740 -3547
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -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 +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +7 -7
- package/docs/operations/line.md +280 -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 +148 -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 +374 -157
- 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 +482 -434
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +72 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +219 -7
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +9 -1
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +17 -13
- package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
- package/chunks/ToggleButton-Br9HCPCv.js +0 -150
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/handlers-CMbyj5y1.js +0 -12930
- package/chunks/isEqual-DBg_b35N.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-HSqnCRvv.js +0 -26324
- package/chunks/shared-DFoJxjVN.js +0 -1218
- package/chunks/standalone-530a5lvf.js +0 -1003
- package/chunks/standalone-B4jrf4KE.js +0 -354
- package/chunks/standalone-BMoJXGYe.js +0 -2
- package/chunks/standalone-BfvGggeM2.js +0 -355
- package/chunks/standalone-CMJJIi9v.js +0 -2
- package/chunks/standalone-C_Jd4gkj.js +0 -6
- package/chunks/standalone-CiaaibTa.js +0 -518
- package/chunks/standalone-DBeXQrwH.js +0 -468
- package/chunks/standalone-DpSRmAWx.js +0 -287
- package/chunks/standalone-kzAhwH19.js +0 -689
- package/chunks/standalone-mb7LwEiq.js +0 -3874
- /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./logger-
|
|
5
|
-
import {
|
|
6
|
-
import { i as _e, t as ve } from "./coloring-
|
|
2
|
+
import { Ao as n, Fc as r, Lo as i, O as a, Oa as o, Qr as s, Tr as c, gc as l, ki as u, pa as d, qs as f, sa as p, vr as m, wa as h, yc as g, yr as ee } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { Cn as te, F as _, N as v, ci as y, jt as b, s as x, zr as S } from "./utils-DganVptf.js";
|
|
4
|
+
import "./logger-DdZpR7xZ.js";
|
|
5
|
+
import { A as ne, At as re, Bt as ie, Ct as ae, Ft as C, Kt as oe, L as se, Lt as ce, Mt as le, Nt as w, Ot as ue, Qt as T, R as E, Rt as D, St as O, Tt as k, Ut as A, Zt as j, _ as M, _t as N, bn as P, cn as F, fn as I, hn as L, i as R, k as z, kt as B, ln as V, mn as H, mt as U, n as de, pt as fe, sn as W, un as pe, ut as G, v as me, yn as he, zt as ge } from "./escobar-CvEV2ES1.js";
|
|
6
|
+
import { i as _e, t as ve } from "./coloring-BtnPiQ_o.js";
|
|
7
7
|
import { t as K } from "./set-coloring-datafield-B3uIS1Pe.js";
|
|
8
|
-
import { t as ye } from "./range-
|
|
8
|
+
import { t as ye } from "./range-BdhzvYQ_.js";
|
|
9
9
|
var be = /* @__PURE__ */ t(((e, t) => {
|
|
10
10
|
var n = _e();
|
|
11
11
|
function r(e) {
|
|
@@ -15,91 +15,91 @@ var be = /* @__PURE__ */ t(((e, t) => {
|
|
|
15
15
|
t.exports = r;
|
|
16
16
|
}));
|
|
17
17
|
y();
|
|
18
|
-
var xe = (e, t, n,
|
|
18
|
+
var xe = (e, t, n, i, a, o, c = []) => {
|
|
19
19
|
n.collections ??= [];
|
|
20
|
-
let
|
|
21
|
-
return
|
|
22
|
-
key:
|
|
23
|
-
data: { extract: [{ field:
|
|
24
|
-
}),
|
|
25
|
-
data: { collection:
|
|
26
|
-
type:
|
|
27
|
-
}),
|
|
28
|
-
data: { field:
|
|
20
|
+
let l = e.dimensions.filter((e) => s(e)), u = e.measures.filter((e) => s(e)), d = Se(e, t, n, c);
|
|
21
|
+
return l[0] && (n.collections.push({
|
|
22
|
+
key: w.DimensionDomain,
|
|
23
|
+
data: { extract: [{ field: r(l[0].dataItem) }] }
|
|
24
|
+
}), d[W(e)] = {
|
|
25
|
+
data: { collection: w.DimensionDomain },
|
|
26
|
+
type: H.Band
|
|
27
|
+
}), u[0] && (d[F(e, u[0])] = {
|
|
28
|
+
data: { field: r(u[0].dataItem) },
|
|
29
29
|
expand: .02,
|
|
30
|
-
invert:
|
|
31
|
-
...
|
|
30
|
+
invert: ne(!1, e.axes?.primaryMeasure),
|
|
31
|
+
...z(e.axes?.primaryMeasure?.axisRange, !0)
|
|
32
32
|
}), {
|
|
33
33
|
...n,
|
|
34
|
-
scales:
|
|
34
|
+
scales: d
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
function Se(e, t,
|
|
38
|
-
let
|
|
37
|
+
function Se(e, t, n, i) {
|
|
38
|
+
let a = e.dimensions.filter((e) => s(e)), o = e.measures.filter((e) => s(e));
|
|
39
39
|
switch (e.coloring?.type) {
|
|
40
|
-
case
|
|
41
|
-
let
|
|
42
|
-
return
|
|
43
|
-
customPalette: e.coloring.customPalette ??
|
|
40
|
+
case g.Categorical: {
|
|
41
|
+
let r = re(e, i, a[1]);
|
|
42
|
+
return O(n, 1, { color: { field: r } }), { categorical: ue(K(e, r), t, r, {
|
|
43
|
+
customPalette: e.coloring.customPalette ?? u.customPalette,
|
|
44
44
|
palette: e.coloring.palette,
|
|
45
45
|
sortOrder: e.coloring.sortOrder
|
|
46
|
-
},
|
|
46
|
+
}, n.collections) };
|
|
47
47
|
}
|
|
48
|
-
case
|
|
49
|
-
let
|
|
50
|
-
return
|
|
48
|
+
case g.Gradient: {
|
|
49
|
+
let r = le(e);
|
|
50
|
+
return O(n, 1, { color: { field: r } }), B(K(e, r), t, {});
|
|
51
51
|
}
|
|
52
|
-
case
|
|
53
|
-
let i =
|
|
54
|
-
i &&
|
|
55
|
-
let
|
|
56
|
-
return { [
|
|
52
|
+
case g.Single: {
|
|
53
|
+
let i = r(o[0]?.dataItem);
|
|
54
|
+
i && O(n, 1, { color: { field: i } });
|
|
55
|
+
let a = e?.coloring?.color ?? t.colors.brandColors[0];
|
|
56
|
+
return { [g.Single]: {
|
|
57
57
|
data: [],
|
|
58
|
-
unknown:
|
|
59
|
-
type:
|
|
60
|
-
range: [
|
|
58
|
+
unknown: a,
|
|
59
|
+
type: H.CategoricalColor,
|
|
60
|
+
range: [a]
|
|
61
61
|
} };
|
|
62
62
|
}
|
|
63
63
|
default: return {};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var Ce = (e, t, n) => {
|
|
67
|
-
let
|
|
68
|
-
key:
|
|
67
|
+
let i = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = (e.supportingMeasures ?? []).filter((e) => s(e)), [c, l] = i, u = r(c?.dataItem), d = r(l?.dataItem), f = r(a[0]?.dataItem), p = me(o), m = {
|
|
68
|
+
key: w.DotBarCollection,
|
|
69
69
|
data: { extract: [{
|
|
70
|
-
field:
|
|
70
|
+
field: u,
|
|
71
71
|
trackBy: (e) => e,
|
|
72
72
|
reduce: "first",
|
|
73
73
|
props: {
|
|
74
74
|
start: {
|
|
75
|
-
field:
|
|
75
|
+
field: f,
|
|
76
76
|
reduce: "min"
|
|
77
77
|
},
|
|
78
78
|
med: {
|
|
79
|
-
field:
|
|
79
|
+
field: f,
|
|
80
80
|
reduce: "avg"
|
|
81
81
|
},
|
|
82
82
|
end: {
|
|
83
|
-
field:
|
|
83
|
+
field: f,
|
|
84
84
|
reduce: "max"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}] }
|
|
88
|
-
},
|
|
89
|
-
key:
|
|
88
|
+
}, h = {
|
|
89
|
+
key: w.DotPointsCollection,
|
|
90
90
|
data: { extract: [{
|
|
91
|
-
field:
|
|
91
|
+
field: d,
|
|
92
92
|
props: {
|
|
93
|
-
x: { field:
|
|
94
|
-
group: { field:
|
|
95
|
-
[
|
|
96
|
-
...
|
|
93
|
+
x: { field: f },
|
|
94
|
+
group: { field: u },
|
|
95
|
+
[f]: { field: f },
|
|
96
|
+
...p
|
|
97
97
|
}
|
|
98
98
|
}] }
|
|
99
99
|
};
|
|
100
100
|
return {
|
|
101
101
|
...n,
|
|
102
|
-
collections: [
|
|
102
|
+
collections: [m, h]
|
|
103
103
|
};
|
|
104
104
|
}, we = /* @__PURE__ */ t(((e, t) => {
|
|
105
105
|
var n = Math.floor, r = Math.random;
|
|
@@ -119,13 +119,13 @@ var Ce = (e, t, n) => {
|
|
|
119
119
|
}
|
|
120
120
|
t.exports = r;
|
|
121
121
|
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
122
|
-
var n =
|
|
123
|
-
function
|
|
124
|
-
return
|
|
122
|
+
var n = a(), r = q();
|
|
123
|
+
function i(e) {
|
|
124
|
+
return r(n(e));
|
|
125
125
|
}
|
|
126
|
-
t.exports =
|
|
126
|
+
t.exports = i;
|
|
127
127
|
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
128
|
-
var n =
|
|
128
|
+
var n = ee();
|
|
129
129
|
function r(e, t) {
|
|
130
130
|
return n(t, function(t) {
|
|
131
131
|
return e[t];
|
|
@@ -133,7 +133,7 @@ var Ce = (e, t, n) => {
|
|
|
133
133
|
}
|
|
134
134
|
t.exports = r;
|
|
135
135
|
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
136
|
-
var n = Ee(), r =
|
|
136
|
+
var n = Ee(), r = c();
|
|
137
137
|
function i(e) {
|
|
138
138
|
return e == null ? [] : n(e, r(e));
|
|
139
139
|
}
|
|
@@ -145,7 +145,7 @@ var Ce = (e, t, n) => {
|
|
|
145
145
|
}
|
|
146
146
|
t.exports = i;
|
|
147
147
|
})), ke = /* @__PURE__ */ t(((e, t) => {
|
|
148
|
-
var n = Te(), r = Oe(), i =
|
|
148
|
+
var n = Te(), r = Oe(), i = d();
|
|
149
149
|
function a(e) {
|
|
150
150
|
return (i(e) ? n : r)(e);
|
|
151
151
|
}
|
|
@@ -159,20 +159,20 @@ function Me(e, t, n) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function Ne(e) {
|
|
162
|
-
let t =
|
|
163
|
-
return typeof n == "function" && r && (r.strokeWidth = (e) => e.type ===
|
|
162
|
+
let t = T([""], 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 === I.Line ? 1 : n(e)), t ?? {};
|
|
164
164
|
}
|
|
165
165
|
function Y(e) {
|
|
166
|
-
return
|
|
166
|
+
return j({
|
|
167
167
|
triggerData: [""],
|
|
168
168
|
consumeData: ["", "group"],
|
|
169
|
-
consumerMode:
|
|
169
|
+
consumerMode: he.Or
|
|
170
170
|
}, e ?? {}, { valuePickerMode: e?.valuePickerMode }) ?? {};
|
|
171
171
|
}
|
|
172
172
|
var X = 100, Z = .1, Q = .9, Pe = (0, je.default)((0, Ae.default)(Z, Q, (Q - Z) / X));
|
|
173
173
|
function Fe(e, t) {
|
|
174
174
|
return ({ datum: n, resources: { scale: r } }, i) => {
|
|
175
|
-
let a = r?.(
|
|
175
|
+
let a = r?.(W(t));
|
|
176
176
|
if (!a || typeof a != "function" || typeof a.bandwidth != "function") return 0;
|
|
177
177
|
let o = t.jitterPoints ? Pe[i % X] : .5;
|
|
178
178
|
return a(n.group.value) + .5 * (1 - e) * a.bandwidth() + e * a.bandwidth() * o;
|
|
@@ -192,8 +192,8 @@ var Ie = (e, t, n, r, i = [], a) => {
|
|
|
192
192
|
function Le(e, t, n) {
|
|
193
193
|
let r = {
|
|
194
194
|
orientation: e.orientation,
|
|
195
|
-
major: { scale:
|
|
196
|
-
minor: { scale:
|
|
195
|
+
major: { scale: W(e) },
|
|
196
|
+
minor: { scale: F(e, e.measures.filter((e) => s(e))[0]) },
|
|
197
197
|
box: {
|
|
198
198
|
width: J(e),
|
|
199
199
|
fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
|
|
@@ -201,15 +201,15 @@ function Le(e, t, n) {
|
|
|
201
201
|
roundAllEdges: !0
|
|
202
202
|
},
|
|
203
203
|
median: {
|
|
204
|
-
stroke:
|
|
204
|
+
stroke: o.mainDarkNavy,
|
|
205
205
|
strokeWidth: 2
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
|
-
return e.barSettings?.strokeEnabled ? (r.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], r.box.strokeWidth = e.barSettings?.strokeWidth) : r.box.stroke =
|
|
209
|
-
type:
|
|
210
|
-
layout: { displayOrder:
|
|
208
|
+
return e.barSettings?.strokeEnabled ? (r.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], r.box.strokeWidth = e.barSettings?.strokeWidth) : r.box.stroke = o.transparent, {
|
|
209
|
+
type: P.Box,
|
|
210
|
+
layout: { displayOrder: A.VisualizationElement },
|
|
211
211
|
key: "min-max-box",
|
|
212
|
-
data: { collection:
|
|
212
|
+
data: { collection: w.DotBarCollection },
|
|
213
213
|
settings: r,
|
|
214
214
|
animations: {
|
|
215
215
|
enabled: !0,
|
|
@@ -218,20 +218,20 @@ function Le(e, t, n) {
|
|
|
218
218
|
brush: Ne(n)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
function Re(e, t,
|
|
222
|
-
let
|
|
221
|
+
function Re(e, t, r) {
|
|
222
|
+
let i = Fe(J(e) * .9, e);
|
|
223
223
|
return {
|
|
224
|
-
type:
|
|
224
|
+
type: P.Point,
|
|
225
225
|
key: "dot-point",
|
|
226
|
-
layout: { displayOrder:
|
|
227
|
-
data: { collection:
|
|
226
|
+
layout: { displayOrder: A.VisualizationElement },
|
|
227
|
+
data: { collection: w.DotPointsCollection },
|
|
228
228
|
settings: {
|
|
229
|
-
x: { scale:
|
|
229
|
+
x: { scale: F(e, e.measures.filter((e) => s(e))[0]) },
|
|
230
230
|
y: {
|
|
231
|
-
scale:
|
|
232
|
-
fn:
|
|
231
|
+
scale: W(e),
|
|
232
|
+
fn: i
|
|
233
233
|
},
|
|
234
|
-
shape:
|
|
234
|
+
shape: n.Circle,
|
|
235
235
|
size: e.pointSize,
|
|
236
236
|
strokeWidth: 2,
|
|
237
237
|
opacity: .8,
|
|
@@ -239,14 +239,14 @@ function Re(e, t, n) {
|
|
|
239
239
|
id: ({ datum: e }) => `${e.group.value}::${e.value}`
|
|
240
240
|
},
|
|
241
241
|
animations: { enabled: !0 },
|
|
242
|
-
brush: Y(
|
|
242
|
+
brush: Y(r)
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
function ze(e, t, n) {
|
|
246
246
|
if (!e.refLines?.x) return n;
|
|
247
|
-
let r = e.refLines.x.map((e) =>
|
|
248
|
-
type:
|
|
249
|
-
layout: { displayOrder:
|
|
247
|
+
let r = e.refLines.x.map((e) => fe(e, pe.XAxisScale, t)), i = {
|
|
248
|
+
type: P.RefLine,
|
|
249
|
+
layout: { displayOrder: A.RefLine },
|
|
250
250
|
lines: { x: r }
|
|
251
251
|
};
|
|
252
252
|
return {
|
|
@@ -255,7 +255,7 @@ function ze(e, t, n) {
|
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
var Be = /* @__PURE__ */ t(((e, t) => {
|
|
258
|
-
var n =
|
|
258
|
+
var n = h(), r = be(), i = te(), a = m(), o = n.isFinite, s = Math.min;
|
|
259
259
|
function c(e) {
|
|
260
260
|
var t = Math[e];
|
|
261
261
|
return function(e, n) {
|
|
@@ -271,14 +271,14 @@ var Be = /* @__PURE__ */ t(((e, t) => {
|
|
|
271
271
|
t.exports = Be()("round");
|
|
272
272
|
})))());
|
|
273
273
|
function $(e, t, n) {
|
|
274
|
-
let r = e.measures.filter((e) =>
|
|
275
|
-
return
|
|
274
|
+
let r = e.measures.filter((e) => s(e))[0];
|
|
275
|
+
return se(e, t, n, {
|
|
276
276
|
filter: He,
|
|
277
277
|
placement: {
|
|
278
278
|
type: "bounds",
|
|
279
279
|
area: "target"
|
|
280
280
|
},
|
|
281
|
-
extract:
|
|
281
|
+
extract: E(e, t, Ue(r?.formatter), We)
|
|
282
282
|
}, "tooltip", void 0, {
|
|
283
283
|
componentKeys: ["dot-point"],
|
|
284
284
|
yieldToComponentKeys: ["min-max-box"]
|
|
@@ -293,13 +293,13 @@ function Ue(e) {
|
|
|
293
293
|
return (t, n, r, i, a, o, s, c) => {
|
|
294
294
|
if (n.key === "dot-point") {
|
|
295
295
|
let t = n.data.x.value;
|
|
296
|
-
return !c && e ? t = r.formatter(e)(t, void 0, n.data) : c && (t = r.formatter(
|
|
296
|
+
return !c && e ? t = r.formatter(e)(t, void 0, n.data) : c && (t = r.formatter(G(e))(n.data.x.value, void 0, n.data)), [{
|
|
297
297
|
label: n.data.label,
|
|
298
298
|
value: t
|
|
299
299
|
}];
|
|
300
300
|
} else if (n.key === "min-max-box") {
|
|
301
301
|
let t = n.data.start.value, i = (0, Ve.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(
|
|
302
|
+
return !c && e ? (t = r.formatter(e)(t), i = r.formatter(e)(i), a = r.formatter(e)(a)) : c && (t = r.formatter(G(e))(t), i = r.formatter(G(e))(i), a = r.formatter(G(e))(a)), [
|
|
303
303
|
{
|
|
304
304
|
label: "Min",
|
|
305
305
|
value: t
|
|
@@ -318,77 +318,77 @@ function Ue(e) {
|
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
function We(e) {
|
|
321
|
-
return e.filter((e) =>
|
|
321
|
+
return e.filter((e) => s(e))[1]?.label ?? "";
|
|
322
322
|
}
|
|
323
323
|
var Ge = (e, t, n) => {
|
|
324
|
-
let r = e.dimensions.filter((e) =>
|
|
324
|
+
let r = e.dimensions.filter((e) => s(e)), a = e.measures.filter((e) => s(e)), o = {
|
|
325
325
|
showAxisTooltip: e?.axes?.dimension?.showAxisTooltip,
|
|
326
326
|
formatter: r[0]?.formatter || {
|
|
327
327
|
type: "string",
|
|
328
328
|
format: ""
|
|
329
329
|
},
|
|
330
|
-
scale:
|
|
331
|
-
key: `${
|
|
332
|
-
settings: { direction:
|
|
333
|
-
},
|
|
330
|
+
scale: W(e),
|
|
331
|
+
key: `${C.Dimension}-${e.orientation ?? i.Vertical}`,
|
|
332
|
+
settings: { direction: ce(e) }
|
|
333
|
+
}, c = a[0], [l, u] = ie([o, {
|
|
334
334
|
showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
|
|
335
|
-
formatter:
|
|
336
|
-
scale:
|
|
337
|
-
key: `${
|
|
335
|
+
formatter: c?.formatter,
|
|
336
|
+
scale: F(e, c),
|
|
337
|
+
key: `${C.Measure}-${e.orientation ?? i.Vertical}`,
|
|
338
338
|
settings: {
|
|
339
|
-
direction:
|
|
340
|
-
labelDock:
|
|
339
|
+
direction: ge(e),
|
|
340
|
+
labelDock: D(V(e), c?.secondaryAxis)
|
|
341
341
|
}
|
|
342
342
|
}]);
|
|
343
343
|
return {
|
|
344
344
|
...n,
|
|
345
|
-
components: [...n.components ?? [], ...
|
|
346
|
-
interactions: [...n.interactions ?? [], ...
|
|
345
|
+
components: [...n.components ?? [], ...l],
|
|
346
|
+
interactions: [...n.interactions ?? [], ...u]
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
|
-
function Ke(e, t, r, i, a
|
|
350
|
-
let { components:
|
|
351
|
-
if (!e.coloring || e.coloring.type ===
|
|
352
|
-
...
|
|
353
|
-
components:
|
|
354
|
-
interactions:
|
|
349
|
+
function Ke(e, t, n, r, i, a) {
|
|
350
|
+
let { components: o, interactions: s } = ae(e, t, n, r, i ?? [], a ?? {});
|
|
351
|
+
if (!e.coloring || e.coloring.type === g.Single) return {
|
|
352
|
+
...n,
|
|
353
|
+
components: o,
|
|
354
|
+
interactions: s
|
|
355
355
|
};
|
|
356
|
-
let
|
|
356
|
+
let c = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), l = o.map((e) => (e.type === L.CategoricalLegend || e.type === L.SequentialLegend) && c ? {
|
|
357
357
|
...e,
|
|
358
|
-
brush: Y(
|
|
358
|
+
brush: Y(a)
|
|
359
359
|
} : e);
|
|
360
360
|
return {
|
|
361
|
-
...
|
|
362
|
-
components:
|
|
363
|
-
interactions:
|
|
361
|
+
...n,
|
|
362
|
+
components: l,
|
|
363
|
+
interactions: s
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var qe = class extends
|
|
366
|
+
var qe = class extends M {
|
|
367
367
|
constructor() {
|
|
368
368
|
super([
|
|
369
369
|
Ce,
|
|
370
370
|
xe,
|
|
371
|
+
oe,
|
|
371
372
|
k,
|
|
372
|
-
D,
|
|
373
373
|
Ke,
|
|
374
|
-
|
|
374
|
+
U,
|
|
375
375
|
Ie,
|
|
376
376
|
ze,
|
|
377
377
|
$,
|
|
378
378
|
Ge,
|
|
379
|
-
|
|
379
|
+
N
|
|
380
380
|
]);
|
|
381
381
|
}
|
|
382
|
-
}, Je =
|
|
383
|
-
let a =
|
|
384
|
-
if (!e || !
|
|
385
|
-
let
|
|
382
|
+
}, Je = S(), Ye = new qe(), Xe = b(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
383
|
+
let a = v(), { activeKey: o } = x(), s = _(), c = de();
|
|
384
|
+
if (!e || !f(e) || !r) return null;
|
|
385
|
+
let u = {
|
|
386
386
|
...i,
|
|
387
387
|
valuePickerMode: !!o
|
|
388
|
-
},
|
|
389
|
-
return
|
|
390
|
-
config:
|
|
391
|
-
definition:
|
|
388
|
+
}, d = t || p, m = Ye.compile(e, d, n, r, u, l.Dot, a, s, c);
|
|
389
|
+
return m ? /* @__PURE__ */ (0, Je.jsx)(R, {
|
|
390
|
+
config: u,
|
|
391
|
+
definition: m,
|
|
392
392
|
size: r,
|
|
393
393
|
vSpec: e
|
|
394
394
|
}) : null;
|