@astrato-io/visualizations 0.8.0 → 0.10.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 +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- 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 +8 -8
- package/docs/operations/line.md +262 -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 +439 -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 +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- package/src/definitions/index.d.ts +1 -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 +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- 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/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- 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 +45 -41
- 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/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Bt as t, Ei as n, Vt as r, it as i, ln as a, ri as o, un as s } from "./utils-vdmi_2PK.js";
|
|
3
|
-
import { $t as c } from "./escobar-DRhRMYRE.js";
|
|
4
|
-
import { c as l, d as u, l as d, n as f, r as p, t as m, u as h } from "./DefaultPropsProvider-BsfB7QTn.js";
|
|
5
|
-
import { t as g } from "./colorManipulator-D8Pjy1pf.js";
|
|
6
|
-
var _ = /* @__PURE__ */ e(n());
|
|
7
|
-
s(), r();
|
|
8
|
-
function v(e) {
|
|
9
|
-
return h("MuiToggleButton", e);
|
|
10
|
-
}
|
|
11
|
-
var y = d("MuiToggleButton", [
|
|
12
|
-
"root",
|
|
13
|
-
"disabled",
|
|
14
|
-
"selected",
|
|
15
|
-
"standard",
|
|
16
|
-
"primary",
|
|
17
|
-
"secondary",
|
|
18
|
-
"sizeSmall",
|
|
19
|
-
"sizeMedium",
|
|
20
|
-
"sizeLarge",
|
|
21
|
-
"fullWidth"
|
|
22
|
-
]), b = /*#__PURE__*/ _.createContext({}), x = /*#__PURE__*/ _.createContext(void 0);
|
|
23
|
-
function S(e, t) {
|
|
24
|
-
return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.indexOf(e) >= 0 : e === t;
|
|
25
|
-
}
|
|
26
|
-
var C = o(), w = ["value"], T = [
|
|
27
|
-
"children",
|
|
28
|
-
"className",
|
|
29
|
-
"color",
|
|
30
|
-
"disabled",
|
|
31
|
-
"disableFocusRipple",
|
|
32
|
-
"fullWidth",
|
|
33
|
-
"onChange",
|
|
34
|
-
"onClick",
|
|
35
|
-
"selected",
|
|
36
|
-
"size",
|
|
37
|
-
"value"
|
|
38
|
-
], E = (e) => {
|
|
39
|
-
let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
|
|
40
|
-
return l({ root: [
|
|
41
|
-
"root",
|
|
42
|
-
r && "selected",
|
|
43
|
-
i && "disabled",
|
|
44
|
-
n && "fullWidth",
|
|
45
|
-
`size${f(a)}`,
|
|
46
|
-
o
|
|
47
|
-
] }, v, t);
|
|
48
|
-
}, D = p(c, {
|
|
49
|
-
name: "MuiToggleButton",
|
|
50
|
-
slot: "Root",
|
|
51
|
-
overridesResolver: (e, t) => {
|
|
52
|
-
let { ownerState: n } = e;
|
|
53
|
-
return [t.root, t[`size${f(n.size)}`]];
|
|
54
|
-
}
|
|
55
|
-
})(({ theme: e, ownerState: t }) => {
|
|
56
|
-
let n = t.color === "standard" ? e.palette.text.primary : e.palette[t.color].main, r;
|
|
57
|
-
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), a({}, e.typography.button, {
|
|
58
|
-
borderRadius: (e.vars || e).shape.borderRadius,
|
|
59
|
-
padding: 11,
|
|
60
|
-
border: `1px solid ${(e.vars || e).palette.divider}`,
|
|
61
|
-
color: (e.vars || e).palette.action.active
|
|
62
|
-
}, t.fullWidth && { width: "100%" }, {
|
|
63
|
-
[`&.${y.disabled}`]: {
|
|
64
|
-
color: (e.vars || e).palette.action.disabled,
|
|
65
|
-
border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
|
|
66
|
-
},
|
|
67
|
-
"&:hover": {
|
|
68
|
-
textDecoration: "none",
|
|
69
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : g(e.palette.text.primary, e.palette.action.hoverOpacity),
|
|
70
|
-
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
71
|
-
},
|
|
72
|
-
[`&.${y.selected}`]: {
|
|
73
|
-
color: n,
|
|
74
|
-
backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : g(n, e.palette.action.selectedOpacity),
|
|
75
|
-
"&:hover": {
|
|
76
|
-
backgroundColor: e.vars ? `rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : g(n, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
77
|
-
"@media (hover: none)": { backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : g(n, e.palette.action.selectedOpacity) }
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, t.size === "small" && {
|
|
81
|
-
padding: 7,
|
|
82
|
-
fontSize: e.typography.pxToRem(13)
|
|
83
|
-
}, t.size === "large" && {
|
|
84
|
-
padding: 15,
|
|
85
|
-
fontSize: e.typography.pxToRem(15)
|
|
86
|
-
});
|
|
87
|
-
}), O = /*#__PURE__*/ _.forwardRef(function(e, n) {
|
|
88
|
-
let r = _.useContext(b), { value: o } = r, s = t(r, w), c = _.useContext(x), l = m({
|
|
89
|
-
props: i(a({}, s, { selected: S(e.value, o) }), e),
|
|
90
|
-
name: "MuiToggleButton"
|
|
91
|
-
}), { children: d, className: f, color: p = "standard", disabled: h = !1, disableFocusRipple: g = !1, fullWidth: v = !1, onChange: y, onClick: O, selected: k, size: A = "medium", value: j } = l, M = t(l, T), N = a({}, l, {
|
|
92
|
-
color: p,
|
|
93
|
-
disabled: h,
|
|
94
|
-
disableFocusRipple: g,
|
|
95
|
-
fullWidth: v,
|
|
96
|
-
size: A
|
|
97
|
-
}), P = E(N), F = (e) => {
|
|
98
|
-
O && (O(e, j), e.defaultPrevented) || y && y(e, j);
|
|
99
|
-
}, I = c || "";
|
|
100
|
-
return /*#__PURE__*/ (0, C.jsx)(D, a({
|
|
101
|
-
className: u(s.className, P.root, f, I),
|
|
102
|
-
disabled: h,
|
|
103
|
-
focusRipple: !g,
|
|
104
|
-
ref: n,
|
|
105
|
-
onClick: F,
|
|
106
|
-
onChange: y,
|
|
107
|
-
value: j,
|
|
108
|
-
ownerState: N,
|
|
109
|
-
"aria-pressed": k
|
|
110
|
-
}, M, { children: d }));
|
|
111
|
-
});
|
|
112
|
-
export { y as i, x as n, b as r, O as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ function(e) {
|
|
2
|
-
return e.Equals = "equals", e.InList = "inList", e.NotInList = "notInList", e.Greater = "greater", e.Less = "less", e.GreaterEquals = "greater-equals", e.LessEquals = "less-equals", e.Between = "between", e.NotEquals = "not-equals", e;
|
|
3
|
-
}({}), t = /* @__PURE__ */ function(e) {
|
|
4
|
-
return e.Custom = "custom", e.Gradient = "gradient", e;
|
|
5
|
-
}({});
|
|
6
|
-
export { t as n, e as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ function(e) {
|
|
2
|
-
return e.ASC = "alpha-asc", e.DATA = "data", e;
|
|
3
|
-
}({}), t = /* @__PURE__ */ function(e) {
|
|
4
|
-
return e.SUPPORTING_MEASURE = "supporting-measure", e;
|
|
5
|
-
}({}), n = (e) => !!e && typeof e == "object" && "type" in e && e.type === "supporting-measure";
|
|
6
|
-
export { e as n, n as r, t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Ut as e, Wt as t, et as n, tt as r } from "./utils-vdmi_2PK.js";
|
|
2
|
-
e(), n();
|
|
3
|
-
function i(e, t = 0, n = 1) {
|
|
4
|
-
return r(e, t, n);
|
|
5
|
-
}
|
|
6
|
-
function a(e) {
|
|
7
|
-
e = e.slice(1);
|
|
8
|
-
let t = RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"), n = e.match(t);
|
|
9
|
-
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(", ")})` : "";
|
|
10
|
-
}
|
|
11
|
-
function o(e) {
|
|
12
|
-
if (e.type) return e;
|
|
13
|
-
if (e.charAt(0) === "#") return o(a(e));
|
|
14
|
-
let n = e.indexOf("("), r = e.substring(0, n);
|
|
15
|
-
if ([
|
|
16
|
-
"rgb",
|
|
17
|
-
"rgba",
|
|
18
|
-
"hsl",
|
|
19
|
-
"hsla",
|
|
20
|
-
"color"
|
|
21
|
-
].indexOf(r) === -1) throw Error(t(9, e));
|
|
22
|
-
let i = e.substring(n + 1, e.length - 1), s;
|
|
23
|
-
if (r === "color") {
|
|
24
|
-
if (i = i.split(" "), s = i.shift(), i.length === 4 && i[3].charAt(0) === "/" && (i[3] = i[3].slice(1)), [
|
|
25
|
-
"srgb",
|
|
26
|
-
"display-p3",
|
|
27
|
-
"a98-rgb",
|
|
28
|
-
"prophoto-rgb",
|
|
29
|
-
"rec-2020"
|
|
30
|
-
].indexOf(s) === -1) throw Error(t(10, s));
|
|
31
|
-
} else i = i.split(",");
|
|
32
|
-
return i = i.map((e) => parseFloat(e)), {
|
|
33
|
-
type: r,
|
|
34
|
-
values: i,
|
|
35
|
-
colorSpace: s
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function s(e) {
|
|
39
|
-
let { type: t, colorSpace: n } = e, { values: r } = e;
|
|
40
|
-
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})`;
|
|
41
|
-
}
|
|
42
|
-
function c(e, t) {
|
|
43
|
-
return e = o(e), t = i(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, s(e);
|
|
44
|
-
}
|
|
45
|
-
export { c as t };
|