@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,7 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ei as t, F as n } from "./utils-vdmi_2PK.js";
|
|
3
|
-
var r = /* @__PURE__ */ e(t()), i = (e) => {
|
|
4
|
-
let t = n(), i = (0, r.useMemo)(() => t.reduce((e, t) => (e[t.key] = t.name, e), {}), e ?? [t]);
|
|
5
|
-
return (e) => i[e];
|
|
6
|
-
};
|
|
7
|
-
export { i as t };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Bt as t, Ei as n, Vt as r, ln as i, rt as a, un as o } from "./utils-vdmi_2PK.js";
|
|
3
|
-
import { d as s } from "./DefaultPropsProvider-BsfB7QTn.js";
|
|
4
|
-
function c(e) {
|
|
5
|
-
return e && e.ownerDocument || document;
|
|
6
|
-
}
|
|
7
|
-
function l(e, t) {
|
|
8
|
-
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
9
|
-
}
|
|
10
|
-
var u = /* @__PURE__ */ e(n());
|
|
11
|
-
function d({ controlled: e, default: t, name: n, state: r = "value" }) {
|
|
12
|
-
let { current: i } = u.useRef(e !== void 0), [a, o] = u.useState(t);
|
|
13
|
-
return [i ? e : a, u.useCallback((e) => {
|
|
14
|
-
i || o(e);
|
|
15
|
-
}, [])];
|
|
16
|
-
}
|
|
17
|
-
function f(e) {
|
|
18
|
-
let t = u.useRef(e);
|
|
19
|
-
return a(() => {
|
|
20
|
-
t.current = e;
|
|
21
|
-
}), u.useRef((...e) => (0, t.current)(...e)).current;
|
|
22
|
-
}
|
|
23
|
-
function p(...e) {
|
|
24
|
-
return u.useMemo(() => e.every((e) => e == null) ? null : (t) => {
|
|
25
|
-
e.forEach((e) => {
|
|
26
|
-
l(e, t);
|
|
27
|
-
});
|
|
28
|
-
}, e);
|
|
29
|
-
}
|
|
30
|
-
var m = {};
|
|
31
|
-
function h(e, t) {
|
|
32
|
-
let n = u.useRef(m);
|
|
33
|
-
return n.current === m && (n.current = e(t)), n;
|
|
34
|
-
}
|
|
35
|
-
var g = [];
|
|
36
|
-
function _(e) {
|
|
37
|
-
u.useEffect(e, g);
|
|
38
|
-
}
|
|
39
|
-
var v = class e {
|
|
40
|
-
constructor() {
|
|
41
|
-
this.currentId = null, this.clear = () => {
|
|
42
|
-
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
43
|
-
}, this.disposeEffect = () => this.clear;
|
|
44
|
-
}
|
|
45
|
-
static create() {
|
|
46
|
-
return new e();
|
|
47
|
-
}
|
|
48
|
-
start(e, t) {
|
|
49
|
-
this.clear(), this.currentId = setTimeout(() => {
|
|
50
|
-
this.currentId = null, t();
|
|
51
|
-
}, e);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
function y() {
|
|
55
|
-
let e = h(v.create).current;
|
|
56
|
-
return _(e.disposeEffect), e;
|
|
57
|
-
}
|
|
58
|
-
var b = !0, x = !1, S = new v(), C = {
|
|
59
|
-
text: !0,
|
|
60
|
-
search: !0,
|
|
61
|
-
url: !0,
|
|
62
|
-
tel: !0,
|
|
63
|
-
email: !0,
|
|
64
|
-
password: !0,
|
|
65
|
-
number: !0,
|
|
66
|
-
date: !0,
|
|
67
|
-
month: !0,
|
|
68
|
-
week: !0,
|
|
69
|
-
time: !0,
|
|
70
|
-
datetime: !0,
|
|
71
|
-
"datetime-local": !0
|
|
72
|
-
};
|
|
73
|
-
function w(e) {
|
|
74
|
-
let { type: t, tagName: n } = e;
|
|
75
|
-
return !!(n === "INPUT" && C[t] && !e.readOnly || n === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
76
|
-
}
|
|
77
|
-
function T(e) {
|
|
78
|
-
e.metaKey || e.altKey || e.ctrlKey || (b = !0);
|
|
79
|
-
}
|
|
80
|
-
function E() {
|
|
81
|
-
b = !1;
|
|
82
|
-
}
|
|
83
|
-
function D() {
|
|
84
|
-
this.visibilityState === "hidden" && x && (b = !0);
|
|
85
|
-
}
|
|
86
|
-
function O(e) {
|
|
87
|
-
e.addEventListener("keydown", T, !0), e.addEventListener("mousedown", E, !0), e.addEventListener("pointerdown", E, !0), e.addEventListener("touchstart", E, !0), e.addEventListener("visibilitychange", D, !0);
|
|
88
|
-
}
|
|
89
|
-
function k(e) {
|
|
90
|
-
let { target: t } = e;
|
|
91
|
-
try {
|
|
92
|
-
return t.matches(":focus-visible");
|
|
93
|
-
} catch {}
|
|
94
|
-
return b || w(t);
|
|
95
|
-
}
|
|
96
|
-
function A() {
|
|
97
|
-
let e = u.useCallback((e) => {
|
|
98
|
-
e != null && O(e.ownerDocument);
|
|
99
|
-
}, []), t = u.useRef(!1);
|
|
100
|
-
function n() {
|
|
101
|
-
return t.current ? (x = !0, S.start(100, () => {
|
|
102
|
-
x = !1;
|
|
103
|
-
}), t.current = !1, !0) : !1;
|
|
104
|
-
}
|
|
105
|
-
function r(e) {
|
|
106
|
-
return k(e) ? (t.current = !0, !0) : !1;
|
|
107
|
-
}
|
|
108
|
-
return {
|
|
109
|
-
isFocusVisibleRef: t,
|
|
110
|
-
onFocus: r,
|
|
111
|
-
onBlur: n,
|
|
112
|
-
ref: e
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function j(e) {
|
|
116
|
-
return typeof e == "string";
|
|
117
|
-
}
|
|
118
|
-
o();
|
|
119
|
-
function M(e, t, n) {
|
|
120
|
-
return e === void 0 || j(e) ? t : i({}, t, { ownerState: i({}, t.ownerState, n) });
|
|
121
|
-
}
|
|
122
|
-
function N(e, t = []) {
|
|
123
|
-
if (e === void 0) return {};
|
|
124
|
-
let n = {};
|
|
125
|
-
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !t.includes(n)).forEach((t) => {
|
|
126
|
-
n[t] = e[t];
|
|
127
|
-
}), n;
|
|
128
|
-
}
|
|
129
|
-
function P(e) {
|
|
130
|
-
if (e === void 0) return {};
|
|
131
|
-
let t = {};
|
|
132
|
-
return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((n) => {
|
|
133
|
-
t[n] = e[n];
|
|
134
|
-
}), t;
|
|
135
|
-
}
|
|
136
|
-
o();
|
|
137
|
-
function F(e) {
|
|
138
|
-
let { getSlotProps: t, additionalProps: n, externalSlotProps: r, externalForwardedProps: a, className: o } = e;
|
|
139
|
-
if (!t) {
|
|
140
|
-
let e = s(n?.className, o, a?.className, r?.className), t = i({}, n?.style, a?.style, r?.style), c = i({}, n, a, r);
|
|
141
|
-
return e.length > 0 && (c.className = e), Object.keys(t).length > 0 && (c.style = t), {
|
|
142
|
-
props: c,
|
|
143
|
-
internalRef: void 0
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
let c = N(i({}, a, r)), l = P(r), u = P(a), d = t(c), f = s(d?.className, n?.className, o, a?.className, r?.className), p = i({}, d?.style, n?.style, a?.style, r?.style), m = i({}, d, n, u, l);
|
|
147
|
-
return f.length > 0 && (m.className = f), Object.keys(p).length > 0 && (m.style = p), {
|
|
148
|
-
props: m,
|
|
149
|
-
internalRef: d.ref
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function I(e, t, n) {
|
|
153
|
-
return typeof e == "function" ? e(t, n) : e;
|
|
154
|
-
}
|
|
155
|
-
o(), r();
|
|
156
|
-
var L = [
|
|
157
|
-
"elementType",
|
|
158
|
-
"externalSlotProps",
|
|
159
|
-
"ownerState",
|
|
160
|
-
"skipResolvingSlotProps"
|
|
161
|
-
];
|
|
162
|
-
function R(e) {
|
|
163
|
-
let { elementType: n, externalSlotProps: r, ownerState: a, skipResolvingSlotProps: o = !1 } = e, s = t(e, L), c = o ? {} : I(r, a), { props: l, internalRef: u } = F(i({}, s, { externalSlotProps: c }));
|
|
164
|
-
return M(n, i({}, l, { ref: p(u, c?.ref, e.additionalProps?.ref) }), a);
|
|
165
|
-
}
|
|
166
|
-
export { A as a, p as c, l as d, c as f, j as i, f as l, N as n, v as o, M as r, y as s, R as t, d as u };
|