@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,11 +1,11 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ds as n, E as r, Hi as i,
|
|
3
|
-
import {
|
|
4
|
-
import "./logger-
|
|
5
|
-
import { At as
|
|
6
|
-
import { i as _e, t as ve } from "./coloring-
|
|
2
|
+
import { Ds as n, E as r, Hi as i, Us as a, Wa as o, Za as s, fr as c, hi as l, nr as u, rr as d, sr as f, ts as p, ws as m, yr as ee, zi as te, zr as h } from "./visualization-filters-mVnsnvLP.js";
|
|
3
|
+
import { F as g, N as _, Ot as v, ei as y, hn as b, jr as x, s as ne } from "./utils-DYYD4Zzf.js";
|
|
4
|
+
import "./logger-3lng-wOw.js";
|
|
5
|
+
import { At as S, Bt as C, Dt as re, Et as ie, F as ae, Ft as oe, I as se, It as ce, Jt as le, K as ue, Lt as w, Mt as T, Pt as E, St as D, Tt as O, Ut as k, Yt as A, _n as j, an as M, bt as N, dn as P, dt as F, et as I, fn as L, gn as R, i as z, in as B, kt as V, ln as H, mt as U, n as de, on as fe, q as pe, sn as me, st as W, tt as he, ut as ge, yt as G } from "./escobar-C4Nm3eJ7.js";
|
|
6
|
+
import { i as _e, t as ve } from "./coloring-B-Wa8D5P.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-CzO4isKK.js";
|
|
9
9
|
var be = /* @__PURE__ */ t(((e, t) => {
|
|
10
10
|
var n = _e();
|
|
11
11
|
function r(e) {
|
|
@@ -14,58 +14,58 @@ var be = /* @__PURE__ */ t(((e, t) => {
|
|
|
14
14
|
}
|
|
15
15
|
t.exports = r;
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
var xe = (e, t, n, r, i,
|
|
17
|
+
y();
|
|
18
|
+
var xe = (e, t, n, r, i, o, s = []) => {
|
|
19
19
|
n.collections ??= [];
|
|
20
20
|
let c = e.dimensions.filter((e) => h(e)), l = e.measures.filter((e) => h(e)), u = Se(e, t, n, s);
|
|
21
21
|
return c[0] && (n.collections.push({
|
|
22
|
-
key:
|
|
23
|
-
data: { extract: [{ field:
|
|
24
|
-
}), u[
|
|
25
|
-
data: { collection:
|
|
26
|
-
type:
|
|
27
|
-
}), l[0] && (u[
|
|
28
|
-
data: { field:
|
|
22
|
+
key: S.DimensionDomain,
|
|
23
|
+
data: { extract: [{ field: a(c[0].dataItem) }] }
|
|
24
|
+
}), u[B(e)] = {
|
|
25
|
+
data: { collection: S.DimensionDomain },
|
|
26
|
+
type: P.Band
|
|
27
|
+
}), l[0] && (u[M(e, l[0])] = {
|
|
28
|
+
data: { field: a(l[0].dataItem) },
|
|
29
29
|
expand: .02,
|
|
30
|
-
invert:
|
|
31
|
-
...
|
|
30
|
+
invert: pe(!1, e.axes?.primaryMeasure),
|
|
31
|
+
...ue(e.axes?.primaryMeasure?.axisRange, !0)
|
|
32
32
|
}), {
|
|
33
33
|
...n,
|
|
34
34
|
scales: u
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
function Se(e, t, r, i) {
|
|
38
|
-
let
|
|
38
|
+
let o = e.dimensions.filter((e) => h(e)), s = e.measures.filter((e) => h(e));
|
|
39
39
|
switch (e.coloring?.type) {
|
|
40
40
|
case n.Categorical: {
|
|
41
|
-
let n =
|
|
42
|
-
return G(r, 1, { color: { field: n } }), { categorical:
|
|
43
|
-
customPalette: e.coloring.customPalette ??
|
|
41
|
+
let n = re(e, i, o[1]);
|
|
42
|
+
return G(r, 1, { color: { field: n } }), { categorical: O(K(e, n), t, n, {
|
|
43
|
+
customPalette: e.coloring.customPalette ?? l.customPalette,
|
|
44
44
|
palette: e.coloring.palette,
|
|
45
45
|
sortOrder: e.coloring.sortOrder
|
|
46
46
|
}, r.collections) };
|
|
47
47
|
}
|
|
48
48
|
case n.Gradient: {
|
|
49
|
-
let n =
|
|
50
|
-
return G(r, 1, { color: { field: n } }),
|
|
49
|
+
let n = V(e);
|
|
50
|
+
return G(r, 1, { color: { field: n } }), ie(K(e, n), t, {});
|
|
51
51
|
}
|
|
52
52
|
case n.Single: {
|
|
53
|
-
let i =
|
|
53
|
+
let i = a(s[0]?.dataItem);
|
|
54
54
|
i && G(r, 1, { color: { field: i } });
|
|
55
|
-
let
|
|
55
|
+
let o = e?.coloring?.color ?? t.colors.brandColors[0];
|
|
56
56
|
return { [n.Single]: {
|
|
57
57
|
data: [],
|
|
58
|
-
unknown:
|
|
59
|
-
type:
|
|
60
|
-
range: [
|
|
58
|
+
unknown: o,
|
|
59
|
+
type: P.CategoricalColor,
|
|
60
|
+
range: [o]
|
|
61
61
|
} };
|
|
62
62
|
}
|
|
63
63
|
default: return {};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var Ce = (e, t, n) => {
|
|
67
|
-
let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)),
|
|
68
|
-
key:
|
|
67
|
+
let r = e.dimensions.filter((e) => h(e)), i = e.measures.filter((e) => h(e)), o = (e.supportingMeasures ?? []).filter((e) => h(e)), [s, c] = r, l = a(s?.dataItem), u = a(c?.dataItem), d = a(i[0]?.dataItem), f = se(o), p = {
|
|
68
|
+
key: S.DotBarCollection,
|
|
69
69
|
data: { extract: [{
|
|
70
70
|
field: l,
|
|
71
71
|
trackBy: (e) => e,
|
|
@@ -86,7 +86,7 @@ var Ce = (e, t, n) => {
|
|
|
86
86
|
}
|
|
87
87
|
}] }
|
|
88
88
|
}, m = {
|
|
89
|
-
key:
|
|
89
|
+
key: S.DotPointsCollection,
|
|
90
90
|
data: { extract: [{
|
|
91
91
|
field: u,
|
|
92
92
|
props: {
|
|
@@ -125,7 +125,7 @@ var Ce = (e, t, n) => {
|
|
|
125
125
|
}
|
|
126
126
|
t.exports = a;
|
|
127
127
|
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
128
|
-
var n =
|
|
128
|
+
var n = d();
|
|
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 = f();
|
|
137
137
|
function i(e) {
|
|
138
138
|
return e == null ? [] : n(e, r(e));
|
|
139
139
|
}
|
|
@@ -145,11 +145,11 @@ 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 =
|
|
149
|
-
function
|
|
148
|
+
var n = Te(), r = Oe(), i = c();
|
|
149
|
+
function a(e) {
|
|
150
150
|
return (i(e) ? n : r)(e);
|
|
151
151
|
}
|
|
152
|
-
t.exports =
|
|
152
|
+
t.exports = a;
|
|
153
153
|
})), Ae = /* @__PURE__ */ e(ye()), je = /* @__PURE__ */ e(ke()), J = (e) => 1 - (e.barSettings.barPadding ?? 0);
|
|
154
154
|
function Me(e, t, n) {
|
|
155
155
|
let r = new ve(e, t, n?.[0]?.itemsNotAffectedByFiltering);
|
|
@@ -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 = A([""], 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 === H.Line ? 1 : n(e)), t ?? {};
|
|
164
164
|
}
|
|
165
165
|
function Y(e) {
|
|
166
|
-
return
|
|
166
|
+
return le({
|
|
167
167
|
triggerData: [""],
|
|
168
168
|
consumeData: ["", "group"],
|
|
169
|
-
consumerMode:
|
|
169
|
+
consumerMode: R.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?.(B(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: B(e) },
|
|
196
|
+
minor: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
|
|
197
197
|
box: {
|
|
198
198
|
width: J(e),
|
|
199
199
|
fill: e.barColor ?? "rgba(100, 100, 100, 0.2)",
|
|
@@ -206,10 +206,10 @@ function Le(e, t, n) {
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
return e.barSettings?.strokeEnabled ? (r.box.stroke = e.barSettings?.strokeColor || t.colors.brandColors[0], r.box.strokeWidth = e.barSettings?.strokeWidth) : r.box.stroke = i.transparent, {
|
|
209
|
-
type:
|
|
210
|
-
layout: { displayOrder:
|
|
209
|
+
type: j.Box,
|
|
210
|
+
layout: { displayOrder: C.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,
|
|
@@ -221,17 +221,17 @@ function Le(e, t, n) {
|
|
|
221
221
|
function Re(e, t, n) {
|
|
222
222
|
let r = Fe(J(e) * .9, e);
|
|
223
223
|
return {
|
|
224
|
-
type:
|
|
224
|
+
type: j.Point,
|
|
225
225
|
key: "dot-point",
|
|
226
|
-
layout: { displayOrder:
|
|
227
|
-
data: { collection:
|
|
226
|
+
layout: { displayOrder: C.VisualizationElement },
|
|
227
|
+
data: { collection: S.DotPointsCollection },
|
|
228
228
|
settings: {
|
|
229
|
-
x: { scale:
|
|
229
|
+
x: { scale: M(e, e.measures.filter((e) => h(e))[0]) },
|
|
230
230
|
y: {
|
|
231
|
-
scale:
|
|
231
|
+
scale: B(e),
|
|
232
232
|
fn: r
|
|
233
233
|
},
|
|
234
|
-
shape:
|
|
234
|
+
shape: o.Circle,
|
|
235
235
|
size: e.pointSize,
|
|
236
236
|
strokeWidth: 2,
|
|
237
237
|
opacity: .8,
|
|
@@ -244,9 +244,9 @@ function Re(e, t, n) {
|
|
|
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) => ge(e,
|
|
248
|
-
type:
|
|
249
|
-
layout: { displayOrder:
|
|
247
|
+
let r = e.refLines.x.map((e) => ge(e, me.XAxisScale, t)), i = {
|
|
248
|
+
type: j.RefLine,
|
|
249
|
+
layout: { displayOrder: C.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 = ee(), r = be(), i = b(), a = u(), o = n.isFinite, s = Math.min;
|
|
259
259
|
function c(e) {
|
|
260
260
|
var t = Math[e];
|
|
261
261
|
return function(e, n) {
|
|
@@ -272,13 +272,13 @@ var Be = /* @__PURE__ */ t(((e, t) => {
|
|
|
272
272
|
})))());
|
|
273
273
|
function $(e, t, n) {
|
|
274
274
|
let r = e.measures.filter((e) => h(e))[0];
|
|
275
|
-
return
|
|
275
|
+
return I(e, t, n, {
|
|
276
276
|
filter: He,
|
|
277
277
|
placement: {
|
|
278
278
|
type: "bounds",
|
|
279
279
|
area: "target"
|
|
280
280
|
},
|
|
281
|
-
extract:
|
|
281
|
+
extract: he(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(W(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(W(e))(t), i = r.formatter(W(e))(i), a = r.formatter(W(e))(a)), [
|
|
303
303
|
{
|
|
304
304
|
label: "Min",
|
|
305
305
|
value: t
|
|
@@ -327,33 +327,33 @@ var Ge = (e, t, n) => {
|
|
|
327
327
|
type: "string",
|
|
328
328
|
format: ""
|
|
329
329
|
},
|
|
330
|
-
scale:
|
|
331
|
-
key: `${
|
|
332
|
-
settings: { direction:
|
|
333
|
-
}, o = i[0], [
|
|
330
|
+
scale: B(e),
|
|
331
|
+
key: `${T.Dimension}-${e.orientation ?? s.Vertical}`,
|
|
332
|
+
settings: { direction: E(e) }
|
|
333
|
+
}, o = i[0], [c, l] = w([a, {
|
|
334
334
|
showAxisTooltip: e?.axes?.primaryMeasure?.showAxisTooltip,
|
|
335
335
|
formatter: o?.formatter,
|
|
336
|
-
scale:
|
|
337
|
-
key: `${
|
|
336
|
+
scale: M(e, o),
|
|
337
|
+
key: `${T.Measure}-${e.orientation ?? s.Vertical}`,
|
|
338
338
|
settings: {
|
|
339
|
-
direction:
|
|
340
|
-
labelDock:
|
|
339
|
+
direction: ce(e),
|
|
340
|
+
labelDock: oe(fe(e), o?.secondaryAxis)
|
|
341
341
|
}
|
|
342
342
|
}]);
|
|
343
343
|
return {
|
|
344
344
|
...n,
|
|
345
|
-
components: [...n.components ?? [], ...
|
|
345
|
+
components: [...n.components ?? [], ...c],
|
|
346
346
|
interactions: [...n.interactions ?? [], ...l]
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
function Ke(e, t, r, i, a, o) {
|
|
350
|
-
let { components: s, interactions: c } =
|
|
350
|
+
let { components: s, interactions: c } = N(e, t, r, i, a ?? [], o ?? {});
|
|
351
351
|
if (!e.coloring || e.coloring.type === n.Single) return {
|
|
352
352
|
...r,
|
|
353
353
|
components: s,
|
|
354
354
|
interactions: c
|
|
355
355
|
};
|
|
356
|
-
let l = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), u = s.map((e) => (e.type ===
|
|
356
|
+
let l = e.dimensions?.find((t) => e.coloring?.fieldId === t.dataItem.internalKey), u = s.map((e) => (e.type === L.CategoricalLegend || e.type === L.SequentialLegend) && l ? {
|
|
357
357
|
...e,
|
|
358
358
|
brush: Y(o)
|
|
359
359
|
} : e);
|
|
@@ -363,30 +363,30 @@ function Ke(e, t, r, i, a, o) {
|
|
|
363
363
|
interactions: c
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var qe = class extends
|
|
366
|
+
var qe = class extends ae {
|
|
367
367
|
constructor() {
|
|
368
368
|
super([
|
|
369
369
|
Ce,
|
|
370
370
|
xe,
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
k,
|
|
372
|
+
D,
|
|
373
373
|
Ke,
|
|
374
|
-
|
|
374
|
+
F,
|
|
375
375
|
Ie,
|
|
376
376
|
ze,
|
|
377
377
|
$,
|
|
378
378
|
Ge,
|
|
379
|
-
|
|
379
|
+
U
|
|
380
380
|
]);
|
|
381
381
|
}
|
|
382
|
-
}, Je =
|
|
383
|
-
let a =
|
|
384
|
-
if (!e || !
|
|
382
|
+
}, Je = x(), Ye = new qe(), Xe = v(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
|
|
383
|
+
let a = _(), { activeKey: o } = ne(), s = g(), c = de();
|
|
384
|
+
if (!e || !p(e) || !r) return null;
|
|
385
385
|
let l = {
|
|
386
386
|
...i,
|
|
387
387
|
valuePickerMode: !!o
|
|
388
|
-
}, u = t || te, d = Ye.compile(e, u, n, r, l,
|
|
389
|
-
return d ? /* @__PURE__ */ (0, Je.jsx)(
|
|
388
|
+
}, u = t || te, d = Ye.compile(e, u, n, r, l, m.Dot, a, s, c);
|
|
389
|
+
return d ? /* @__PURE__ */ (0, Je.jsx)(z, {
|
|
390
390
|
config: l,
|
|
391
391
|
definition: d,
|
|
392
392
|
size: r,
|