@astrato-io/visualizations 0.6.5 → 0.8.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 +8 -2
- package/THIRD_PARTY_NOTICES.md +2 -229
- package/VISUALIZATION_DEFINITIONS.md +68 -114
- package/chunks/Button-BrGKp9Nm.js +110 -0
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
- package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
- package/chunks/{LinearProgress-B1FeWaen.js → LinearProgress-VtfFx2vJ.js} +55 -55
- package/chunks/MenuOption-ByRqhRdX.js +3934 -0
- package/chunks/Title-CO5dP1ma.js +1691 -0
- package/chunks/ToggleButton-KOBAimC1.js +112 -0
- package/chunks/{app-filter-bar.compiler-BGJ7HAbr.js → app-filter-bar.compiler-TwVTeoj5.js} +10 -10
- package/chunks/{bar.compiler-CT0ZbQKc.js → bar.compiler-DuQg8EUb.js} +84 -84
- package/chunks/builder-DEDvNq1k.js +201 -0
- package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
- package/chunks/color-settings-3VRlf_Vw.js +6 -0
- package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
- package/chunks/coloring-CncX_JRX.js +278 -0
- package/chunks/{definitions-D3OVqmXl.js → definitions-BPJQTx16.js} +490 -382
- package/chunks/{escobar-eDjtGpkC.js → escobar-DRhRMYRE.js} +6067 -4742
- package/chunks/event-bus-CrLB-Y8z.js +3 -0
- package/chunks/extend-preset-CUFNpmPe.js +4398 -0
- package/chunks/{filter.compiler-DBsyRBJt.js → filter.compiler-w27dlv0C.js} +12 -12
- package/chunks/{filtering-tqjAyJH5.js → filtering-cc7WqWpg.js} +391 -310
- package/chunks/{handlers-VTBfIZYZ.js → handlers-TOT-7INo.js} +3241 -3442
- package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
- package/chunks/isEqual-B8loyPsC.js +12 -0
- package/chunks/label-format-type-weq1XfcX.js +8 -0
- package/chunks/{line.compiler-CzdM5Ld0.js → line.compiler-Ct1WhN2p.js} +27 -27
- package/chunks/logger-DpQtYQnX.js +1163 -0
- package/chunks/lookup-BWllin0q.js +36 -0
- package/chunks/{metadata-BGElBy5Z.js → metadata-WABZrt7Y.js} +1 -1
- package/chunks/{number.compiler-G-R7y16P.js → number.compiler-D8TPly-4.js} +13 -13
- package/chunks/{operations-CTNUX6Sy.js → operations-Dh4v1Ovt.js} +9314 -9283
- package/chunks/{range-CiwTbMig.js → range-Bi-7zT0k.js} +2 -2
- package/chunks/render-wrappers-OEmtaM8g.js +2 -0
- package/chunks/{registry-CsQQzukD.js → requirements-Dvd8jqYF.js} +218 -222
- package/chunks/responsive.styles-DSiOGD7u.js +82 -0
- package/chunks/{shared-CBvcC5YV.js → shared-Bn4N5QcZ.js} +424 -424
- package/chunks/src-77e3mC7i.js +391 -0
- package/chunks/standalone-B55oyW6c.js +689 -0
- package/chunks/{standalone-C3gg736V.js → standalone-BDhPQtzQ.js} +375 -341
- package/chunks/{standalone-BMIbT1b2.js → standalone-BGkmozIb.js} +992 -837
- package/chunks/standalone-BMTCb10X.js +179 -0
- package/chunks/standalone-BXKRE_Se.js +468 -0
- package/chunks/standalone-Bes8srx1.js +354 -0
- package/chunks/standalone-BjZp0QMe.js +2 -0
- package/chunks/{standalone-JuLF-OoH.js → standalone-BlMIwpEe.js} +634 -519
- package/chunks/{standalone-C_rYnZ0N.js → standalone-C8ZAEutO.js} +43 -42
- package/chunks/standalone-C8qAelL4.js +2 -0
- package/chunks/standalone-CJvIXsQE.js +743 -0
- package/chunks/standalone-CLmGb7nn2.js +355 -0
- package/chunks/standalone-CM5XcAN5.js +52327 -0
- package/chunks/standalone-CXNP6-xD.js +420 -0
- package/chunks/{standalone-vzBY6q0I2.js → standalone-D5Q5ngsD.js} +57 -55
- package/chunks/standalone-DLlyRIE6.js +287 -0
- package/chunks/standalone-DMcI1afI.js +396 -0
- package/chunks/{standalone-DC-aUgXC.js → standalone-DN4S1MjT.js} +1111 -1092
- package/chunks/standalone-DT0wKji7.js +6 -0
- package/chunks/standalone-DW6NT205.js +518 -0
- package/chunks/standalone-DYQIQH4c.js +2095 -0
- package/chunks/standalone-D__XCp-h.js +1003 -0
- package/chunks/standalone-XTgSsTAa.js +354 -0
- package/chunks/{standalone-v1oxfU20.js → standalone-XuGksArp.js} +20 -20
- package/chunks/{standalone-0M4HlmDW2.js → standalone-vBnBS2YC.js} +1047 -964
- package/chunks/{standalone-BtSHCp2U2.js → standalone-we5D5MIn.js} +173 -168
- package/chunks/{table.compiler-tb914oj3.js → table.compiler-DMeeHxb6.js} +29 -29
- package/chunks/useFieldName-Cjn9KCVp.js +7 -0
- package/chunks/useSlotProps-DLbQp4lc.js +166 -0
- package/chunks/{utils-Bg7K-t6K.js → utils-vdmi_2PK.js} +6271 -7804
- package/chunks/{view-Bn83C8d9.js → view-BuwQugKb.js} +2717 -3504
- package/chunks/{isEqual-BDxAhUo8.js → visualization-filters-Cc4KU-l-.js} +1887 -1946
- package/chunks/with-html-element-D0uY2zjI.js +7328 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +31 -14
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +3 -3
- package/docs/operations/distribution-gauge.md +13 -13
- package/docs/operations/dot.md +13 -13
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +13 -13
- package/docs/operations/heatMap.md +13 -13
- 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 +3 -3
- package/docs/operations/line.md +7 -7
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +13 -13
- package/docs/operations/radar.md +7 -7
- package/docs/operations/sankey.md +13 -13
- package/docs/operations/scatter.md +13 -13
- 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 +18 -1
- package/docs/operations/tree.md +51 -37
- package/docs/operations/treemap.md +63 -49
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +13 -13
- package/getters.js +7 -7
- package/index.js +419 -417
- package/metadata.js +17 -18
- package/operations.js +13 -13
- package/package.json +70 -55
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +53 -30
- package/src/definitions/model/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +2 -2
- package/src/definitions/model/definitions/types/compilation.types.d.ts +10 -0
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/getters/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +1 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +0 -52
- package/chunks/builder-B6dWSIdD.js +0 -12289
- package/chunks/coloring-B1XAfg6b.js +0 -664
- package/chunks/events-WZut5Ow6.js +0 -4
- package/chunks/grouping-type-On4s9Thj.js +0 -3
- package/chunks/requirements-DYjZCFyf.js +0 -6
- package/chunks/standalone-0ashe9w1.js +0 -411
- package/chunks/standalone-B7jax8wa.js +0 -339
- package/chunks/standalone-BK0VYU-l.js +0 -463
- package/chunks/standalone-BZV5vOwA.js +0 -6
- package/chunks/standalone-BhDrWj4p.js +0 -1980
- package/chunks/standalone-BvaKdky9.js +0 -344
- package/chunks/standalone-BwtM31-f.js +0 -2
- package/chunks/standalone-CC1VUjO32.js +0 -299
- package/chunks/standalone-CoLrAxRV.js +0 -13198
- package/chunks/standalone-DCtRoTWg.js +0 -675
- package/chunks/standalone-DUDFTBqL.js +0 -833
- package/chunks/standalone-DhZkX9Td.js +0 -2
- package/chunks/standalone-DtLElfuM.js +0 -512
- package/chunks/standalone-G9Q4Uczu.js +0 -726
- package/chunks/standalone-_DeX21JJ.js +0 -383
- package/chunks/standalone-gFhKZh8m.js +0 -179
- package/chunks/standalone-tDNy-SFH.js +0 -281
- package/chunks/ui-DQWtv2iM.js +0 -63551
- package/chunks/useFieldName-BvdcoJRl.js +0 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { gt as t } from "./visualization-filters-Cc4KU-l-.js";
|
|
3
|
+
var n = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.SaveLocalVSpec = "VSPEC/SAVE_LOCAL_VSPEC", e.UpdateVSpec = "VSPEC/UPDATE", e.UpdateVSpecPartial = "VSPEC/UPDATE_PARTIAL", e.ColumnVisibility = "VSPEC/COLUMN_VISIBILITY", e.ColumnEnabled = "VSPEC/COLUMN_ENABLED", e;
|
|
5
|
+
}({}), r = /* @__PURE__ */ e(((e, n) => {
|
|
6
|
+
var r = t();
|
|
7
|
+
function i(e, t) {
|
|
8
|
+
return r(e, t);
|
|
9
|
+
}
|
|
10
|
+
n.exports = i;
|
|
11
|
+
}));
|
|
12
|
+
export { n, r as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ function(e) {
|
|
2
|
+
return e.None = "none", e.Diverging = "diverging", e.Silhouette = "silhouette", e.Expand = "expand", e.Wiggle = "wiggle", e;
|
|
3
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.Auto = "auto", e.Manual = "manual", e.Data = "data", e.PerMeasure = "perMeasure", e;
|
|
5
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.Measure = "measure", e.Dimension = "dimension", e.DimensionAndMeasure = "dimensionAndMeasure", e;
|
|
7
|
+
}({});
|
|
8
|
+
export { t as n, e as r, n as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { b as D, g as O, v as k, w as A } from "./operations-
|
|
1
|
+
import { r as e } from "./visualization-filters-Cc4KU-l-.js";
|
|
2
|
+
import { A as t, C as n, E as r, S as i, T as a, U as o, _ as s, a as c, c as l, d as u, f as d, g as f, h as p, i as m, k as h, n as g, o as _, r as v, s as y, t as b, u as x, v as S, x as C, y as w } from "./shared-Bn4N5QcZ.js";
|
|
3
|
+
import { gd as T, of as E } from "./handlers-TOT-7INo.js";
|
|
4
|
+
import { b as D, g as O, v as k, w as A } from "./operations-Dh4v1Ovt.js";
|
|
5
5
|
e();
|
|
6
6
|
var j = async (e) => {
|
|
7
7
|
let j = T(e);
|
|
@@ -13,37 +13,37 @@ var j = async (e) => {
|
|
|
13
13
|
}],
|
|
14
14
|
success: !1
|
|
15
15
|
};
|
|
16
|
-
let M =
|
|
16
|
+
let M = o.safeParse(e.definition);
|
|
17
17
|
if (!M.success) return {
|
|
18
|
-
issues:
|
|
18
|
+
issues: a(M.error, e.definition),
|
|
19
19
|
success: !1
|
|
20
20
|
};
|
|
21
21
|
let N = E.safeParse(e.baseVSpec);
|
|
22
22
|
if (!N.success) return {
|
|
23
|
-
issues: [
|
|
23
|
+
issues: [u("invalid_structure", ["baseVSpec"], "Base line vSpec is invalid.")],
|
|
24
24
|
success: !1
|
|
25
25
|
};
|
|
26
26
|
let P = N.data;
|
|
27
|
-
if (!
|
|
27
|
+
if (!S(P, [
|
|
28
28
|
"dimensions",
|
|
29
29
|
"measures",
|
|
30
30
|
"supportingMeasures",
|
|
31
31
|
"sortingMeasures"
|
|
32
32
|
])) return {
|
|
33
|
-
issues: [
|
|
33
|
+
issues: [u("non_fresh_base_vspec", ["baseVSpec"], "Line definitions require a fresh base vSpec.")],
|
|
34
34
|
success: !1
|
|
35
35
|
};
|
|
36
36
|
let F = M.data, I = [...F.data.dimensions, ...F.data.measures], L = [
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
...
|
|
37
|
+
...h(F.data.dimensions, e.availableFields, ["data", "dimensions"], "dimension"),
|
|
38
|
+
...h(F.data.measures, e.availableFields, ["data", "measures"], "measure"),
|
|
39
|
+
...n([{
|
|
40
40
|
items: F.data.dimensions,
|
|
41
41
|
path: ["data", "dimensions"]
|
|
42
42
|
}, {
|
|
43
43
|
items: F.data.measures,
|
|
44
44
|
path: ["data", "measures"]
|
|
45
45
|
}]),
|
|
46
|
-
...
|
|
46
|
+
...t(F.filterGroup, e.availableFields),
|
|
47
47
|
...C(F.sorting, I.map((e) => e.ref)),
|
|
48
48
|
...i(F.presentation?.coloring, F.data.dimensions.map((e) => e.ref), F.data.measures.map((e) => e.ref))
|
|
49
49
|
];
|
|
@@ -52,7 +52,7 @@ var j = async (e) => {
|
|
|
52
52
|
success: !1
|
|
53
53
|
};
|
|
54
54
|
let R = {
|
|
55
|
-
state:
|
|
55
|
+
state: x(e, P),
|
|
56
56
|
success: !0
|
|
57
57
|
};
|
|
58
58
|
for (let [e, t] of F.data.dimensions.entries()) {
|
|
@@ -60,7 +60,7 @@ var j = async (e) => {
|
|
|
60
60
|
issues: [R.issue],
|
|
61
61
|
success: !1
|
|
62
62
|
};
|
|
63
|
-
R = await
|
|
63
|
+
R = await b(R.state, t, "dimension", O.ADD_DIMENSION, { key: t.fieldKey }, [
|
|
64
64
|
"data",
|
|
65
65
|
"dimensions",
|
|
66
66
|
e
|
|
@@ -71,16 +71,16 @@ var j = async (e) => {
|
|
|
71
71
|
issues: [R.issue],
|
|
72
72
|
success: !1
|
|
73
73
|
};
|
|
74
|
-
R = await
|
|
74
|
+
R = await b(R.state, n, "measure", O.ADD_MEASURE, r(n, e.availableFields), [
|
|
75
75
|
"data",
|
|
76
76
|
"measures",
|
|
77
77
|
t
|
|
78
78
|
]);
|
|
79
79
|
}
|
|
80
|
-
if ("issue" in R || (R = await
|
|
80
|
+
if ("issue" in R || (R = await v(R.state, F.data.dimensions, O.UPDATE_DIMENSION, ["data", "dimensions"]), "issue" in R) || (R = await y(R.state, F.data.dimensions, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in R) || (R = await c(R.state, F.data.dimensions, {
|
|
81
81
|
formatString: "setDimensionFormatString",
|
|
82
82
|
formatType: "setDimensionFormatType"
|
|
83
|
-
}, ["data", "dimensions"]), "issue" in R) || (R = await
|
|
83
|
+
}, ["data", "dimensions"]), "issue" in R) || (R = await c(R.state, F.data.measures, {
|
|
84
84
|
currency: "setMeasureCurrency",
|
|
85
85
|
currencyIsPrefix: "setMeasureCurrencyIsPrefix",
|
|
86
86
|
formatString: "setMeasureFormatString",
|
|
@@ -97,18 +97,18 @@ var j = async (e) => {
|
|
|
97
97
|
secondaryAxis: e.axis === "secondary"
|
|
98
98
|
}
|
|
99
99
|
}] : []);
|
|
100
|
-
if (R = await
|
|
100
|
+
if (R = await p(R.state, B, ["data", "measures"]), "issue" in R) return {
|
|
101
101
|
issues: [R.issue],
|
|
102
102
|
success: !1
|
|
103
103
|
};
|
|
104
104
|
let V = R.state;
|
|
105
|
-
if (R = await
|
|
105
|
+
if (R = await p(V, F.data.measures.flatMap((e) => e.dataPointShape === void 0 ? [] : [{
|
|
106
106
|
name: O.SET_MEASURE_SHAPE,
|
|
107
107
|
payload: {
|
|
108
108
|
...w(V.resolvedRefs[e.ref]),
|
|
109
109
|
shape: e.dataPointShape
|
|
110
110
|
}
|
|
111
|
-
}]), ["data", "measures"]), "issue" in R || (R = await
|
|
111
|
+
}]), ["data", "measures"]), "issue" in R || (R = await m(R.state, F.filterGroup), "issue" in R) || (R = await _(R.state, F.sorting, O.CHANGE_SORT_ORDER_AND_DIRECTION, O.TOGGLE_SORTING_ITEM), "issue" in R)) return {
|
|
112
112
|
issues: [R.issue],
|
|
113
113
|
success: !1
|
|
114
114
|
};
|
|
@@ -117,7 +117,7 @@ var j = async (e) => {
|
|
|
117
117
|
name: O.SET_QUERY_LIMIT,
|
|
118
118
|
payload: F.limiting.queryLimit
|
|
119
119
|
});
|
|
120
|
-
let U = F.presentation, W =
|
|
120
|
+
let U = F.presentation, W = s(U?.axes);
|
|
121
121
|
if (W) return {
|
|
122
122
|
issues: [W],
|
|
123
123
|
success: !1
|
|
@@ -125,7 +125,7 @@ var j = async (e) => {
|
|
|
125
125
|
if (U?.orientation !== void 0 && H.push({
|
|
126
126
|
name: O.SET_ORIENTATION,
|
|
127
127
|
payload: U.orientation
|
|
128
|
-
}), U?.legend && H.push(...
|
|
128
|
+
}), U?.legend && H.push(...d(R.state.vSpec, U.legend)), U?.dataLabels) {
|
|
129
129
|
let e = U.dataLabels, t = R.state;
|
|
130
130
|
F.data.measures.forEach((n) => {
|
|
131
131
|
let r = w(t.resolvedRefs[n.ref]);
|
|
@@ -175,7 +175,7 @@ var j = async (e) => {
|
|
|
175
175
|
axisName: e,
|
|
176
176
|
showAxisLine: t.lineVisible
|
|
177
177
|
}
|
|
178
|
-
}), H.push(...
|
|
178
|
+
}), H.push(...l(e, t)), "scale" in t && t.scale !== void 0 && H.push({
|
|
179
179
|
name: k.SET_AXIS_SCALE,
|
|
180
180
|
payload: {
|
|
181
181
|
axisName: e,
|
|
@@ -187,12 +187,12 @@ var j = async (e) => {
|
|
|
187
187
|
return G && H.push({
|
|
188
188
|
name: D.SET_MEASURE_AXIS_BANDS,
|
|
189
189
|
payload: { bands: G }
|
|
190
|
-
}), R = await
|
|
190
|
+
}), R = await p(R.state, H, ["presentation"]), "issue" in R ? {
|
|
191
191
|
issues: [R.issue],
|
|
192
192
|
success: !1
|
|
193
|
-
} : (R = await
|
|
193
|
+
} : (R = await g(R.state, F.presentation?.coloring), "issue" in R ? {
|
|
194
194
|
issues: [R.issue],
|
|
195
195
|
success: !1
|
|
196
|
-
} :
|
|
196
|
+
} : f(R.state, E));
|
|
197
197
|
};
|
|
198
198
|
export { j as compileLineVisualizationDefinition };
|