@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,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 {
|
|
2
|
+
import { $c as n, Dc as r, I as i, Mr as a, Oa as o, Rr as s, Sa as c, Ua as l, Ui as u, Xc as d, cs as f, di as p, hl as m, hs as h, jr as ee, za as te } from "./visualization-filters-B9qik5_K.js";
|
|
3
|
+
import { Dn as ne, I as re, Mt as g, P as _, Ur as v, fi as y, s as b } from "./utils-CUKgR7it.js";
|
|
4
|
+
import "./logger-Cioob-QV.js";
|
|
5
|
+
import { At as x, Bt as S, D as ie, Dn as C, E as ae, En as w, F as oe, Ft as se, Gt as ce, Ht as T, It as E, Kt as D, Lt as O, Mn as k, Mt as A, P as j, Wt as M, _ as N, _n as P, _t as F, bt as I, en as L, gn as R, hn as z, i as B, in as V, jn as H, kt as U, ln as W, n as G, qt as le, un as ue, v as de, vn as fe, wn as pe, wt as me, xt as he, zt as ge } from "./escobar-CMvphKSK.js";
|
|
6
|
+
import { a as _e, t as ve } from "./coloring-Cd6p0GQJ.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-Dmwp9kVB.js";
|
|
9
9
|
var be = /* @__PURE__ */ t(((e, t) => {
|
|
10
10
|
var n = _e();
|
|
11
11
|
function r(e) {
|
|
@@ -15,48 +15,48 @@ var be = /* @__PURE__ */ t(((e, t) => {
|
|
|
15
15
|
t.exports = r;
|
|
16
16
|
}));
|
|
17
17
|
y();
|
|
18
|
-
var xe = (e, t, n, i, a, o
|
|
18
|
+
var xe = (e, t, n, r, i, a, o = []) => {
|
|
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 s = e.dimensions.filter((e) => p(e)), c = e.measures.filter((e) => p(e)), l = Se(e, t, n, o);
|
|
21
|
+
return s[0] && (n.collections.push({
|
|
22
|
+
key: S.DimensionDomain,
|
|
23
|
+
data: { extract: [{ field: m(s[0].dataItem) }] }
|
|
24
|
+
}), l[z(e)] = {
|
|
25
|
+
data: { collection: S.DimensionDomain },
|
|
26
|
+
type: w.Band
|
|
27
|
+
}), c[0] && (l[R(e, c[0])] = {
|
|
28
|
+
data: { field: m(c[0].dataItem) },
|
|
29
29
|
expand: .02,
|
|
30
|
-
invert:
|
|
31
|
-
...
|
|
30
|
+
invert: ie(!1, e.axes?.primaryMeasure),
|
|
31
|
+
...ae(e.axes?.primaryMeasure?.axisRange, !0)
|
|
32
32
|
}), {
|
|
33
33
|
...n,
|
|
34
|
-
scales:
|
|
34
|
+
scales: l
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
function Se(e, t,
|
|
38
|
-
let a = e.dimensions.filter((e) =>
|
|
37
|
+
function Se(e, t, r, i) {
|
|
38
|
+
let a = e.dimensions.filter((e) => p(e)), o = e.measures.filter((e) => p(e));
|
|
39
39
|
switch (e.coloring?.type) {
|
|
40
|
-
case
|
|
41
|
-
let
|
|
42
|
-
return
|
|
40
|
+
case n.Categorical: {
|
|
41
|
+
let n = O(e, i, a[1]);
|
|
42
|
+
return U(r, 1, { color: { field: n } }), { categorical: se(K(e, n), t, n, {
|
|
43
43
|
customPalette: e.coloring.customPalette ?? u.customPalette,
|
|
44
44
|
palette: e.coloring.palette,
|
|
45
45
|
sortOrder: e.coloring.sortOrder
|
|
46
|
-
},
|
|
46
|
+
}, r.collections) };
|
|
47
47
|
}
|
|
48
|
-
case
|
|
49
|
-
let
|
|
50
|
-
return
|
|
48
|
+
case n.Gradient: {
|
|
49
|
+
let n = ge(e);
|
|
50
|
+
return U(r, 1, { color: { field: n } }), E(K(e, n), t, {});
|
|
51
51
|
}
|
|
52
|
-
case
|
|
53
|
-
let i =
|
|
54
|
-
i &&
|
|
52
|
+
case n.Single: {
|
|
53
|
+
let i = m(o[0]?.dataItem);
|
|
54
|
+
i && U(r, 1, { color: { field: i } });
|
|
55
55
|
let a = e?.coloring?.color ?? t.colors.brandColors[0];
|
|
56
|
-
return { [
|
|
56
|
+
return { [n.Single]: {
|
|
57
57
|
data: [],
|
|
58
58
|
unknown: a,
|
|
59
|
-
type:
|
|
59
|
+
type: w.CategoricalColor,
|
|
60
60
|
range: [a]
|
|
61
61
|
} };
|
|
62
62
|
}
|
|
@@ -64,42 +64,42 @@ function Se(e, t, n, i) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var Ce = (e, t, n) => {
|
|
67
|
-
let
|
|
68
|
-
key:
|
|
67
|
+
let r = e.dimensions.filter((e) => p(e)), i = e.measures.filter((e) => p(e)), a = (e.supportingMeasures ?? []).filter((e) => p(e)), [o, s] = r, c = m(o?.dataItem), l = m(s?.dataItem), u = m(i[0]?.dataItem), d = de(a), f = {
|
|
68
|
+
key: S.DotBarCollection,
|
|
69
69
|
data: { extract: [{
|
|
70
|
-
field:
|
|
70
|
+
field: c,
|
|
71
71
|
trackBy: (e) => e,
|
|
72
72
|
reduce: "first",
|
|
73
73
|
props: {
|
|
74
74
|
start: {
|
|
75
|
-
field:
|
|
75
|
+
field: u,
|
|
76
76
|
reduce: "min"
|
|
77
77
|
},
|
|
78
78
|
med: {
|
|
79
|
-
field:
|
|
79
|
+
field: u,
|
|
80
80
|
reduce: "avg"
|
|
81
81
|
},
|
|
82
82
|
end: {
|
|
83
|
-
field:
|
|
83
|
+
field: u,
|
|
84
84
|
reduce: "max"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}] }
|
|
88
88
|
}, h = {
|
|
89
|
-
key:
|
|
89
|
+
key: S.DotPointsCollection,
|
|
90
90
|
data: { extract: [{
|
|
91
|
-
field:
|
|
91
|
+
field: l,
|
|
92
92
|
props: {
|
|
93
|
-
x: { field:
|
|
94
|
-
group: { field:
|
|
95
|
-
[
|
|
96
|
-
...
|
|
93
|
+
x: { field: u },
|
|
94
|
+
group: { field: c },
|
|
95
|
+
[u]: { field: u },
|
|
96
|
+
...d
|
|
97
97
|
}
|
|
98
98
|
}] }
|
|
99
99
|
};
|
|
100
100
|
return {
|
|
101
101
|
...n,
|
|
102
|
-
collections: [
|
|
102
|
+
collections: [f, 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
|
|
122
|
+
var n = i(), r = q();
|
|
123
|
+
function a(e) {
|
|
124
124
|
return r(n(e));
|
|
125
125
|
}
|
|
126
|
-
t.exports =
|
|
126
|
+
t.exports = a;
|
|
127
127
|
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
128
|
-
var n =
|
|
128
|
+
var n = a();
|
|
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 = s();
|
|
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 = o();
|
|
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 = ue([""], 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 === pe.Line ? 1 : n(e)), t ?? {};
|
|
164
164
|
}
|
|
165
165
|
function Y(e) {
|
|
166
|
-
return
|
|
166
|
+
return W({
|
|
167
167
|
triggerData: [""],
|
|
168
168
|
consumeData: ["", "group"],
|
|
169
|
-
consumerMode:
|
|
169
|
+
consumerMode: H.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?.(z(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: z(e) },
|
|
196
|
+
minor: { scale: R(e, e.measures.filter((e) => p(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: l.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 = l.transparent, {
|
|
209
|
+
type: k.Box,
|
|
210
|
+
layout: { displayOrder: L.VisualizationElement },
|
|
211
211
|
key: "min-max-box",
|
|
212
|
-
data: { collection:
|
|
212
|
+
data: { collection: S.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, n) {
|
|
222
|
+
let r = Fe(J(e) * .9, e);
|
|
223
223
|
return {
|
|
224
|
-
type:
|
|
224
|
+
type: k.Point,
|
|
225
225
|
key: "dot-point",
|
|
226
|
-
layout: { displayOrder:
|
|
227
|
-
data: { collection:
|
|
226
|
+
layout: { displayOrder: L.VisualizationElement },
|
|
227
|
+
data: { collection: S.DotPointsCollection },
|
|
228
228
|
settings: {
|
|
229
|
-
x: { scale:
|
|
229
|
+
x: { scale: R(e, e.measures.filter((e) => p(e))[0]) },
|
|
230
230
|
y: {
|
|
231
|
-
scale:
|
|
232
|
-
fn:
|
|
231
|
+
scale: z(e),
|
|
232
|
+
fn: r
|
|
233
233
|
},
|
|
234
|
-
shape:
|
|
234
|
+
shape: f.Circle,
|
|
235
235
|
size: e.pointSize,
|
|
236
236
|
strokeWidth: 2,
|
|
237
237
|
opacity: .8,
|
|
@@ -239,14 +239,14 @@ function Re(e, t, r) {
|
|
|
239
239
|
id: ({ datum: e }) => `${e.group.value}::${e.value}`
|
|
240
240
|
},
|
|
241
241
|
animations: { enabled: !0 },
|
|
242
|
-
brush: Y(
|
|
242
|
+
brush: Y(n)
|
|
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) => I(e, fe.XAxisScale, t)), i = {
|
|
248
|
+
type: k.RefLine,
|
|
249
|
+
layout: { displayOrder: L.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 = te(), r = be(), i = ne(), a = ee(), 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) => p(e))[0];
|
|
275
|
+
return j(e, t, n, {
|
|
276
276
|
filter: He,
|
|
277
277
|
placement: {
|
|
278
278
|
type: "bounds",
|
|
279
279
|
area: "target"
|
|
280
280
|
},
|
|
281
|
-
extract:
|
|
281
|
+
extract: oe(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(F(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(F(e))(t), i = r.formatter(F(e))(i), a = r.formatter(F(e))(a)), [
|
|
303
303
|
{
|
|
304
304
|
label: "Min",
|
|
305
305
|
value: t
|
|
@@ -318,78 +318,78 @@ function Ue(e) {
|
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
function We(e) {
|
|
321
|
-
return e.filter((e) =>
|
|
321
|
+
return e.filter((e) => p(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) => p(e)), i = e.measures.filter((e) => p(e)), a = {
|
|
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: z(e),
|
|
331
|
+
key: `${T.Dimension}-${e.orientation ?? h.Vertical}`,
|
|
332
|
+
settings: { direction: M(e) }
|
|
333
|
+
}, o = i[0], [s, c] = le([a, {
|
|
334
334
|
showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
|
|
335
|
-
formatter:
|
|
336
|
-
scale:
|
|
337
|
-
key: `${
|
|
335
|
+
formatter: o?.formatter,
|
|
336
|
+
scale: R(e, o),
|
|
337
|
+
key: `${T.Measure}-${e.orientation ?? h.Vertical}`,
|
|
338
338
|
settings: {
|
|
339
|
-
direction:
|
|
340
|
-
labelDock:
|
|
339
|
+
direction: D(e),
|
|
340
|
+
labelDock: ce(P(e), o?.secondaryAxis)
|
|
341
341
|
}
|
|
342
342
|
}]);
|
|
343
343
|
return {
|
|
344
344
|
...n,
|
|
345
|
-
components: [...n.components ?? [], ...
|
|
346
|
-
interactions: [...n.interactions ?? [], ...
|
|
345
|
+
components: [...n.components ?? [], ...s],
|
|
346
|
+
interactions: [...n.interactions ?? [], ...c]
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
|
-
function Ke(e, t,
|
|
350
|
-
let { components:
|
|
351
|
-
if (!e.coloring || e.coloring.type ===
|
|
352
|
-
...
|
|
353
|
-
components:
|
|
354
|
-
interactions:
|
|
349
|
+
function Ke(e, t, r, i, a, o) {
|
|
350
|
+
let { components: s, interactions: c } = x(e, t, r, i, a ?? [], o ?? {});
|
|
351
|
+
if (!e.coloring || e.coloring.type === n.Single) return {
|
|
352
|
+
...r,
|
|
353
|
+
components: s,
|
|
354
|
+
interactions: c
|
|
355
355
|
};
|
|
356
|
-
let
|
|
356
|
+
let l = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), u = s.map((e) => (e.type === C.CategoricalLegend || e.type === C.SequentialLegend) && l ? {
|
|
357
357
|
...e,
|
|
358
|
-
brush: Y(
|
|
358
|
+
brush: Y(o)
|
|
359
359
|
} : e);
|
|
360
360
|
return {
|
|
361
|
-
...
|
|
362
|
-
components:
|
|
363
|
-
interactions:
|
|
361
|
+
...r,
|
|
362
|
+
components: u,
|
|
363
|
+
interactions: c
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var qe = class extends
|
|
366
|
+
var qe = class extends N {
|
|
367
367
|
constructor() {
|
|
368
368
|
super([
|
|
369
369
|
Ce,
|
|
370
370
|
xe,
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
V,
|
|
372
|
+
A,
|
|
373
373
|
Ke,
|
|
374
|
-
|
|
374
|
+
he,
|
|
375
375
|
Ie,
|
|
376
376
|
ze,
|
|
377
377
|
$,
|
|
378
378
|
Ge,
|
|
379
|
-
|
|
379
|
+
me
|
|
380
380
|
]);
|
|
381
381
|
}
|
|
382
|
-
}, Je =
|
|
383
|
-
let
|
|
384
|
-
if (!e || !
|
|
385
|
-
let
|
|
386
|
-
...
|
|
387
|
-
valuePickerMode: !!
|
|
388
|
-
},
|
|
389
|
-
return m ? /* @__PURE__ */ (0, Je.jsx)(
|
|
390
|
-
config:
|
|
382
|
+
}, Je = v(), Ye = new qe(), Xe = g(({ vSpec: e, vTheme: t, data: n, elementSize: i, vizProperties: a }) => {
|
|
383
|
+
let o = _(), { activeKey: s } = b(), l = re(), u = G();
|
|
384
|
+
if (!e || !r(e) || !i) return null;
|
|
385
|
+
let f = {
|
|
386
|
+
...a,
|
|
387
|
+
valuePickerMode: !!s
|
|
388
|
+
}, p = t || c, m = Ye.compile(e, p, n, i, f, d.Dot, o, l, u);
|
|
389
|
+
return m ? /* @__PURE__ */ (0, Je.jsx)(B, {
|
|
390
|
+
config: f,
|
|
391
391
|
definition: m,
|
|
392
|
-
size:
|
|
392
|
+
size: i,
|
|
393
393
|
vSpec: e
|
|
394
394
|
}) : null;
|
|
395
395
|
});
|