@astrato-io/visualizations 0.0.0-stage → 0.6.4
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 +23 -0
- package/LICENSE +93 -0
- package/README.md +843 -2
- package/THIRD_PARTY_NOTICES.md +8387 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
- package/chunks/Radio-Ciu-F4CU.js +957 -0
- package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
- package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
- package/chunks/bar.compiler-oqaPzIut.js +370 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-C16AUZEi.js +663 -0
- package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/escobar-BGqT1EsE.js +34580 -0
- package/chunks/event-bus-KiSiCJrC.js +2683 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-CuLtc_02.js +60 -0
- package/chunks/filtering-Yq4DEa0t.js +953 -0
- package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
- package/chunks/grouping-type-BX_9Ix5q.js +3 -0
- package/chunks/interfaces-VUY4_yVO.js +8742 -0
- package/chunks/line-settings-DfYTUyPz.js +4 -0
- package/chunks/line.compiler-BpA_6Tc7.js +188 -0
- package/chunks/metadata-CPXdYoln.js +28 -0
- package/chunks/number.compiler-DbkWcG4S.js +44 -0
- package/chunks/pie-uv42Eqal.js +10 -0
- package/chunks/range-DrzdfBX4.js +22 -0
- package/chunks/registry-CExpGJ1N.js +920 -0
- package/chunks/requirements-DNhuShLS.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CKDL4hx9.js +1171 -0
- package/chunks/src-BC7cGcJ-.js +2024 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-C0LgoUWY.js +26105 -0
- package/chunks/src-Cum_2NLV.js +12145 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/src-Dun_jXtz.js +10295 -0
- package/chunks/src-DvX5LU9T.js +14742 -0
- package/chunks/standalone-87YV_m9n.js +687 -0
- package/chunks/standalone-BDCwI6Hn.js +4619 -0
- package/chunks/standalone-BH5NqDwp.js +1763 -0
- package/chunks/standalone-BLVAWLNJ.js +385 -0
- package/chunks/standalone-BPomtAVs.js +2 -0
- package/chunks/standalone-BXyBcUOQ.js +2 -0
- package/chunks/standalone-BYm1UjLr.js +140 -0
- package/chunks/standalone-BllF4rDp.js +383 -0
- package/chunks/standalone-BmfMt74U.js +726 -0
- package/chunks/standalone-BqWyrnZI.js +281 -0
- package/chunks/standalone-C85u7U6I.js +340 -0
- package/chunks/standalone-CCNtaJ7s.js +741 -0
- package/chunks/standalone-CDQnr6qT.js +345 -0
- package/chunks/standalone-CNyNHKVx.js +674 -0
- package/chunks/standalone-CY57qwZ-.js +1129 -0
- package/chunks/standalone-CZynjFG7.js +12979 -0
- package/chunks/standalone-D5vnf-9y.js +3943 -0
- package/chunks/standalone-DFPva_ku.js +299 -0
- package/chunks/standalone-DQxxNwF8.js +675 -0
- package/chunks/standalone-DS9T0FZ-.js +830 -0
- package/chunks/standalone-Dx3MLlrO.js +512 -0
- package/chunks/standalone-DzixzZAL.js +411 -0
- package/chunks/standalone-QJ1kKMnO.js +6 -0
- package/chunks/standalone-jiz0L2Dg.js +3855 -0
- package/chunks/standalone-lBm9hQ-q.js +179 -0
- package/chunks/standalone-rJ45Zfl1.js +68 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-BrXkm4Fz.js +213 -0
- package/chunks/toInteger-DVZr-D1j.js +11 -0
- package/chunks/treemap-x_zmJoG7.js +23 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/types-dVVCsDWD.js +4 -0
- package/chunks/ui-D1HQNIBy.js +54039 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-oqQ3bvnO.js +7 -0
- package/chunks/utils-Ba9T0TqC.js +31097 -0
- package/chunks/view-CLqWMV7Z.js +156 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +7050 -0
- package/docs/operations/combo.md +5825 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3218 -0
- package/docs/operations/dot.md +5662 -0
- package/docs/operations/filter.md +1507 -0
- package/docs/operations/gauge.md +3452 -0
- package/docs/operations/heatMap.md +6026 -0
- package/docs/operations/histogram.md +1870 -0
- package/docs/operations/iframe.md +56 -0
- package/docs/operations/image.md +177 -0
- package/docs/operations/index.md +46 -0
- package/docs/operations/line.md +6468 -0
- package/docs/operations/number.md +3969 -0
- package/docs/operations/pie.md +6089 -0
- package/docs/operations/radar.md +4646 -0
- package/docs/operations/sankey.md +3210 -0
- package/docs/operations/scatter.md +6075 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +706 -0
- package/docs/operations/slider.md +230 -0
- package/docs/operations/table.md +8790 -0
- package/docs/operations/tree.md +2874 -0
- package/docs/operations/treemap.md +3619 -0
- package/docs/operations/waterfall.md +2938 -0
- package/docs/operations/word-cloud.md +3071 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +191 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/shared/index.d.ts +5 -0
- package/src/definitions/shared/lib/available-fields.d.ts +36 -0
- package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
- package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
- package/src/definitions/shared/lib/registry/index.d.ts +3 -0
- package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
- package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
- package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
- package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
- package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
- package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
- package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
- package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
- package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
- package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
- package/src/definitions/shared/lib/types/index.d.ts +3 -0
- package/src/getters/index.d.ts +30 -0
- package/src/index.d.ts +4 -0
- package/src/metadata/index.d.ts +4 -0
- package/src/operations/index.d.ts +30 -0
- package/src/registry/index.d.ts +6 -0
- package/src/runtime/index.d.ts +2 -0
- package/src/types.d.ts +307 -0
- package/src/visualization-catalog.d.ts +82 -0
- package/src/web-components/index.d.ts +12 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Gt as t, Ht as n, Ki as r, Vt as i, Wt as a, at as o, dn as s, nt as c, tt as l, un as u, wi as d } from "./utils-Ba9T0TqC.js";
|
|
3
|
+
import { G as f, K as p, L as m, W as h, ht as g, it as _, mt as v, pt as y } from "./_baseFlatten-DPXPOrea.js";
|
|
4
|
+
a(), l();
|
|
5
|
+
function b(e, t = 0, n = 1) {
|
|
6
|
+
return c(e, t, n);
|
|
7
|
+
}
|
|
8
|
+
function x(e) {
|
|
9
|
+
e = e.slice(1);
|
|
10
|
+
let t = RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"), n = e.match(t);
|
|
11
|
+
return n && n[0].length === 1 && (n = n.map((e) => e + e)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
12
|
+
}
|
|
13
|
+
function S(e) {
|
|
14
|
+
if (e.type) return e;
|
|
15
|
+
if (e.charAt(0) === "#") return S(x(e));
|
|
16
|
+
let n = e.indexOf("("), r = e.substring(0, n);
|
|
17
|
+
if ([
|
|
18
|
+
"rgb",
|
|
19
|
+
"rgba",
|
|
20
|
+
"hsl",
|
|
21
|
+
"hsla",
|
|
22
|
+
"color"
|
|
23
|
+
].indexOf(r) === -1) throw Error(t(9, e));
|
|
24
|
+
let i = e.substring(n + 1, e.length - 1), a;
|
|
25
|
+
if (r === "color") {
|
|
26
|
+
if (i = i.split(" "), a = i.shift(), i.length === 4 && i[3].charAt(0) === "/" && (i[3] = i[3].slice(1)), [
|
|
27
|
+
"srgb",
|
|
28
|
+
"display-p3",
|
|
29
|
+
"a98-rgb",
|
|
30
|
+
"prophoto-rgb",
|
|
31
|
+
"rec-2020"
|
|
32
|
+
].indexOf(a) === -1) throw Error(t(10, a));
|
|
33
|
+
} else i = i.split(",");
|
|
34
|
+
return i = i.map((e) => parseFloat(e)), {
|
|
35
|
+
type: r,
|
|
36
|
+
values: i,
|
|
37
|
+
colorSpace: a
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function C(e) {
|
|
41
|
+
let { type: t, colorSpace: n } = e, { values: r } = e;
|
|
42
|
+
return t.indexOf("rgb") === -1 ? t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`) : r = r.map((e, t) => t < 3 ? parseInt(e, 10) : e), r = t.indexOf("color") === -1 ? `${r.join(", ")}` : `${n} ${r.join(" ")}`, `${t}(${r})`;
|
|
43
|
+
}
|
|
44
|
+
function w(e, t) {
|
|
45
|
+
return e = S(e), t = b(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, C(e);
|
|
46
|
+
}
|
|
47
|
+
var T = /* @__PURE__ */ e(r());
|
|
48
|
+
s(), n();
|
|
49
|
+
function E(e) {
|
|
50
|
+
return v("MuiToggleButton", e);
|
|
51
|
+
}
|
|
52
|
+
var D = y("MuiToggleButton", [
|
|
53
|
+
"root",
|
|
54
|
+
"disabled",
|
|
55
|
+
"selected",
|
|
56
|
+
"standard",
|
|
57
|
+
"primary",
|
|
58
|
+
"secondary",
|
|
59
|
+
"sizeSmall",
|
|
60
|
+
"sizeMedium",
|
|
61
|
+
"sizeLarge",
|
|
62
|
+
"fullWidth"
|
|
63
|
+
]), O = /*#__PURE__*/ T.createContext({}), k = /*#__PURE__*/ T.createContext(void 0);
|
|
64
|
+
function A(e, t) {
|
|
65
|
+
return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.indexOf(e) >= 0 : e === t;
|
|
66
|
+
}
|
|
67
|
+
var j = d(), M = ["value"], N = [
|
|
68
|
+
"children",
|
|
69
|
+
"className",
|
|
70
|
+
"color",
|
|
71
|
+
"disabled",
|
|
72
|
+
"disableFocusRipple",
|
|
73
|
+
"fullWidth",
|
|
74
|
+
"onChange",
|
|
75
|
+
"onClick",
|
|
76
|
+
"selected",
|
|
77
|
+
"size",
|
|
78
|
+
"value"
|
|
79
|
+
], P = (e) => {
|
|
80
|
+
let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
|
|
81
|
+
return _({ root: [
|
|
82
|
+
"root",
|
|
83
|
+
r && "selected",
|
|
84
|
+
i && "disabled",
|
|
85
|
+
n && "fullWidth",
|
|
86
|
+
`size${f(a)}`,
|
|
87
|
+
o
|
|
88
|
+
] }, E, t);
|
|
89
|
+
}, F = p(m, {
|
|
90
|
+
name: "MuiToggleButton",
|
|
91
|
+
slot: "Root",
|
|
92
|
+
overridesResolver: (e, t) => {
|
|
93
|
+
let { ownerState: n } = e;
|
|
94
|
+
return [t.root, t[`size${f(n.size)}`]];
|
|
95
|
+
}
|
|
96
|
+
})(({ theme: e, ownerState: t }) => {
|
|
97
|
+
let n = t.color === "standard" ? e.palette.text.primary : e.palette[t.color].main, r;
|
|
98
|
+
return e.vars && (n = t.color === "standard" ? e.vars.palette.text.primary : e.vars.palette[t.color].main, r = t.color === "standard" ? e.vars.palette.text.primaryChannel : e.vars.palette[t.color].mainChannel), u({}, e.typography.button, {
|
|
99
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
100
|
+
padding: 11,
|
|
101
|
+
border: `1px solid ${(e.vars || e).palette.divider}`,
|
|
102
|
+
color: (e.vars || e).palette.action.active
|
|
103
|
+
}, t.fullWidth && { width: "100%" }, {
|
|
104
|
+
[`&.${D.disabled}`]: {
|
|
105
|
+
color: (e.vars || e).palette.action.disabled,
|
|
106
|
+
border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
|
|
107
|
+
},
|
|
108
|
+
"&:hover": {
|
|
109
|
+
textDecoration: "none",
|
|
110
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : w(e.palette.text.primary, e.palette.action.hoverOpacity),
|
|
111
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
112
|
+
},
|
|
113
|
+
[`&.${D.selected}`]: {
|
|
114
|
+
color: n,
|
|
115
|
+
backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : w(n, e.palette.action.selectedOpacity),
|
|
116
|
+
"&:hover": {
|
|
117
|
+
backgroundColor: e.vars ? `rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : w(n, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
118
|
+
"@media (hover: none)": { backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : w(n, e.palette.action.selectedOpacity) }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}, t.size === "small" && {
|
|
122
|
+
padding: 7,
|
|
123
|
+
fontSize: e.typography.pxToRem(13)
|
|
124
|
+
}, t.size === "large" && {
|
|
125
|
+
padding: 15,
|
|
126
|
+
fontSize: e.typography.pxToRem(15)
|
|
127
|
+
});
|
|
128
|
+
}), I = /*#__PURE__*/ T.forwardRef(function(e, t) {
|
|
129
|
+
let n = T.useContext(O), { value: r } = n, a = i(n, M), s = T.useContext(k), c = h({
|
|
130
|
+
props: o(u({}, a, { selected: A(e.value, r) }), e),
|
|
131
|
+
name: "MuiToggleButton"
|
|
132
|
+
}), { children: l, className: d, color: f = "standard", disabled: p = !1, disableFocusRipple: m = !1, fullWidth: _ = !1, onChange: v, onClick: y, selected: b, size: x = "medium", value: S } = c, C = i(c, N), w = u({}, c, {
|
|
133
|
+
color: f,
|
|
134
|
+
disabled: p,
|
|
135
|
+
disableFocusRipple: m,
|
|
136
|
+
fullWidth: _,
|
|
137
|
+
size: x
|
|
138
|
+
}), E = P(w), D = (e) => {
|
|
139
|
+
y && (y(e, S), e.defaultPrevented) || v && v(e, S);
|
|
140
|
+
}, I = s || "";
|
|
141
|
+
return /*#__PURE__*/ (0, j.jsx)(F, u({
|
|
142
|
+
className: g(a.className, E.root, d, I),
|
|
143
|
+
disabled: p,
|
|
144
|
+
focusRipple: !m,
|
|
145
|
+
ref: t,
|
|
146
|
+
onClick: D,
|
|
147
|
+
onChange: v,
|
|
148
|
+
value: S,
|
|
149
|
+
ownerState: w,
|
|
150
|
+
"aria-pressed": b
|
|
151
|
+
}, C, { children: l }));
|
|
152
|
+
});
|
|
153
|
+
export { D as i, k as n, O as r, I as t };
|