@astrato-io/visualizations 0.0.0-stage → 0.6.5
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 +8477 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
- package/chunks/LinearProgress-B1FeWaen.js +253 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
- package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
- package/chunks/builder-B6dWSIdD.js +12289 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-B1XAfg6b.js +664 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/definitions-D3OVqmXl.js +2102 -0
- package/chunks/escobar-eDjtGpkC.js +34606 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-DBsyRBJt.js +70 -0
- package/chunks/filtering-tqjAyJH5.js +1072 -0
- package/chunks/grouping-type-On4s9Thj.js +3 -0
- package/chunks/handlers-VTBfIZYZ.js +13072 -0
- package/chunks/isEqual-BDxAhUo8.js +7514 -0
- package/chunks/line.compiler-CzdM5Ld0.js +198 -0
- package/chunks/metadata-BGElBy5Z.js +28 -0
- package/chunks/number.compiler-G-R7y16P.js +53 -0
- package/chunks/operations-CTNUX6Sy.js +26249 -0
- package/chunks/range-CiwTbMig.js +22 -0
- package/chunks/registry-CsQQzukD.js +920 -0
- package/chunks/requirements-DYjZCFyf.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CBvcC5YV.js +1218 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/standalone-0M4HlmDW2.js +3944 -0
- package/chunks/standalone-0ashe9w1.js +411 -0
- package/chunks/standalone-B7jax8wa.js +339 -0
- package/chunks/standalone-BK0VYU-l.js +463 -0
- package/chunks/standalone-BMIbT1b2.js +4619 -0
- package/chunks/standalone-BZV5vOwA.js +6 -0
- package/chunks/standalone-BhDrWj4p.js +1980 -0
- package/chunks/standalone-BtSHCp2U2.js +673 -0
- package/chunks/standalone-BvaKdky9.js +344 -0
- package/chunks/standalone-BwtM31-f.js +2 -0
- package/chunks/standalone-C3gg736V.js +1129 -0
- package/chunks/standalone-CC1VUjO32.js +299 -0
- package/chunks/standalone-C_rYnZ0N.js +741 -0
- package/chunks/standalone-CoLrAxRV.js +13198 -0
- package/chunks/standalone-DC-aUgXC.js +3855 -0
- package/chunks/standalone-DCtRoTWg.js +675 -0
- package/chunks/standalone-DUDFTBqL.js +833 -0
- package/chunks/standalone-DhZkX9Td.js +2 -0
- package/chunks/standalone-DtLElfuM.js +512 -0
- package/chunks/standalone-G9Q4Uczu.js +726 -0
- package/chunks/standalone-JuLF-OoH.js +1762 -0
- package/chunks/standalone-_DeX21JJ.js +383 -0
- package/chunks/standalone-gFhKZh8m.js +179 -0
- package/chunks/standalone-tDNy-SFH.js +281 -0
- package/chunks/standalone-v1oxfU20.js +68 -0
- package/chunks/standalone-vzBY6q0I2.js +140 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-tb914oj3.js +222 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/ui-DQWtv2iM.js +63551 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-BvdcoJRl.js +7 -0
- package/chunks/utils-Bg7K-t6K.js +32379 -0
- package/chunks/view-Bn83C8d9.js +12466 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +6968 -0
- package/docs/operations/combo.md +5804 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3082 -0
- package/docs/operations/dot.md +5570 -0
- package/docs/operations/filter.md +1483 -0
- package/docs/operations/gauge.md +3316 -0
- package/docs/operations/heatMap.md +5944 -0
- package/docs/operations/histogram.md +1856 -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 +6391 -0
- package/docs/operations/number.md +3903 -0
- package/docs/operations/pie.md +5956 -0
- package/docs/operations/radar.md +4566 -0
- package/docs/operations/sankey.md +3088 -0
- package/docs/operations/scatter.md +5969 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +699 -0
- package/docs/operations/slider.md +220 -0
- package/docs/operations/table.md +8800 -0
- package/docs/operations/tree.md +2867 -0
- package/docs/operations/treemap.md +3527 -0
- package/docs/operations/waterfall.md +2928 -0
- package/docs/operations/word-cloud.md +3000 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +185 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/model/definitions/available-fields.d.ts +35 -0
- package/src/definitions/model/definitions/compilers/compile.d.ts +7 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
- package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
- package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
- package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
- package/src/definitions/model/definitions/index.d.ts +23 -0
- package/src/definitions/model/definitions/registry/compile.d.ts +2 -0
- package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
- package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
- package/src/definitions/model/definitions/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +303 -0
- package/src/definitions/model/definitions/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +72 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +21 -0
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +215 -0
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +458 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +36 -0
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -0
- package/src/definitions/model/definitions/types/descriptor.types.d.ts +39 -0
- package/src/definitions/model/definitions/types/index.d.ts +3 -0
- package/src/definitions/model/definitions/validation.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,52 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Ei as t, Yi as n } from "./utils-Bg7K-t6K.js";
|
|
3
|
+
import { gn as r, hn as i, ln as a, vn as o } from "./ui-DQWtv2iM.js";
|
|
4
|
+
var s = /* @__PURE__ */ e(n()), c = t();
|
|
5
|
+
function l(e) {
|
|
6
|
+
return e.substring(2).toLowerCase();
|
|
7
|
+
}
|
|
8
|
+
function u(e, t) {
|
|
9
|
+
return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
|
|
10
|
+
}
|
|
11
|
+
function d(e) {
|
|
12
|
+
let { children: t, disableReactTree: n = !1, mouseEvent: d = "onClick", onClickAway: f, touchEvent: p = "onTouchEnd" } = e, m = s.useRef(!1), h = s.useRef(null), g = s.useRef(!1), _ = s.useRef(!1);
|
|
13
|
+
s.useEffect(() => (setTimeout(() => {
|
|
14
|
+
g.current = !0;
|
|
15
|
+
}, 0), () => {
|
|
16
|
+
g.current = !1;
|
|
17
|
+
}), []);
|
|
18
|
+
let v = i(a(t), h), y = r((e) => {
|
|
19
|
+
let t = _.current;
|
|
20
|
+
_.current = !1;
|
|
21
|
+
let r = o(h.current);
|
|
22
|
+
if (!g.current || !h.current || "clientX" in e && u(e, r)) return;
|
|
23
|
+
if (m.current) {
|
|
24
|
+
m.current = !1;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let i;
|
|
28
|
+
i = e.composedPath ? e.composedPath().indexOf(h.current) > -1 : !r.documentElement.contains(e.target) || h.current.contains(e.target), !i && (n || !t) && f(e);
|
|
29
|
+
}), b = (e) => (n) => {
|
|
30
|
+
_.current = !0;
|
|
31
|
+
let r = t.props[e];
|
|
32
|
+
r && r(n);
|
|
33
|
+
}, x = { ref: v };
|
|
34
|
+
return p !== !1 && (x[p] = b(p)), s.useEffect(() => {
|
|
35
|
+
if (p !== !1) {
|
|
36
|
+
let e = l(p), t = o(h.current), n = () => {
|
|
37
|
+
m.current = !0;
|
|
38
|
+
};
|
|
39
|
+
return t.addEventListener(e, y), t.addEventListener("touchmove", n), () => {
|
|
40
|
+
t.removeEventListener(e, y), t.removeEventListener("touchmove", n);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}, [y, p]), d !== !1 && (x[d] = b(d)), s.useEffect(() => {
|
|
44
|
+
if (d !== !1) {
|
|
45
|
+
let e = l(d), t = o(h.current);
|
|
46
|
+
return t.addEventListener(e, y), () => {
|
|
47
|
+
t.removeEventListener(e, y);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, [y, d]), /*#__PURE__*/ (0, c.jsx)(s.Fragment, { children: /*#__PURE__*/ s.cloneElement(t, x) });
|
|
51
|
+
}
|
|
52
|
+
export { d as t };
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Ei as t, Q as n, Ut as r, Wt as i, Xt as a, Yi as o, Yt as s, Zt as c, fn as l, pn as u, tt as d } from "./utils-Bg7K-t6K.js";
|
|
3
|
+
import { Cn as f, Sn as p, in as m, nn as h, pn as g, rn as _, xn as v } from "./ui-DQWtv2iM.js";
|
|
4
|
+
var y = /* @__PURE__ */ e(o());
|
|
5
|
+
u(), i();
|
|
6
|
+
var b = n();
|
|
7
|
+
function x(e) {
|
|
8
|
+
return p("MuiLinearProgress", e);
|
|
9
|
+
}
|
|
10
|
+
var S = v("MuiLinearProgress", [
|
|
11
|
+
"root",
|
|
12
|
+
"colorPrimary",
|
|
13
|
+
"colorSecondary",
|
|
14
|
+
"determinate",
|
|
15
|
+
"indeterminate",
|
|
16
|
+
"buffer",
|
|
17
|
+
"query",
|
|
18
|
+
"dashed",
|
|
19
|
+
"dashedColorPrimary",
|
|
20
|
+
"dashedColorSecondary",
|
|
21
|
+
"bar",
|
|
22
|
+
"barColorPrimary",
|
|
23
|
+
"barColorSecondary",
|
|
24
|
+
"bar1Indeterminate",
|
|
25
|
+
"bar1Determinate",
|
|
26
|
+
"bar1Buffer",
|
|
27
|
+
"bar2Indeterminate",
|
|
28
|
+
"bar2Buffer"
|
|
29
|
+
]);
|
|
30
|
+
a();
|
|
31
|
+
var C = t(), w = [
|
|
32
|
+
"className",
|
|
33
|
+
"color",
|
|
34
|
+
"value",
|
|
35
|
+
"valueBuffer",
|
|
36
|
+
"variant"
|
|
37
|
+
], T = (e) => e, E, D, O, k, A, j, M = 4, N = c(E ||= T`
|
|
38
|
+
0% {
|
|
39
|
+
left: -35%;
|
|
40
|
+
right: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
60% {
|
|
44
|
+
left: 100%;
|
|
45
|
+
right: -90%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
left: 100%;
|
|
50
|
+
right: -90%;
|
|
51
|
+
}
|
|
52
|
+
`), P = c(D ||= T`
|
|
53
|
+
0% {
|
|
54
|
+
left: -200%;
|
|
55
|
+
right: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
60% {
|
|
59
|
+
left: 107%;
|
|
60
|
+
right: -8%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
100% {
|
|
64
|
+
left: 107%;
|
|
65
|
+
right: -8%;
|
|
66
|
+
}
|
|
67
|
+
`), F = c(O ||= T`
|
|
68
|
+
0% {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
background-position: 0 -23px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
60% {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
background-position: 0 -23px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
100% {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
background-position: -200px -23px;
|
|
81
|
+
}
|
|
82
|
+
`), I = (e) => {
|
|
83
|
+
let { classes: t, variant: n, color: r } = e;
|
|
84
|
+
return g({
|
|
85
|
+
root: [
|
|
86
|
+
"root",
|
|
87
|
+
`color${_(r)}`,
|
|
88
|
+
n
|
|
89
|
+
],
|
|
90
|
+
dashed: ["dashed", `dashedColor${_(r)}`],
|
|
91
|
+
bar1: [
|
|
92
|
+
"bar",
|
|
93
|
+
`barColor${_(r)}`,
|
|
94
|
+
(n === "indeterminate" || n === "query") && "bar1Indeterminate",
|
|
95
|
+
n === "determinate" && "bar1Determinate",
|
|
96
|
+
n === "buffer" && "bar1Buffer"
|
|
97
|
+
],
|
|
98
|
+
bar2: [
|
|
99
|
+
"bar",
|
|
100
|
+
n !== "buffer" && `barColor${_(r)}`,
|
|
101
|
+
n === "buffer" && `color${_(r)}`,
|
|
102
|
+
(n === "indeterminate" || n === "query") && "bar2Indeterminate",
|
|
103
|
+
n === "buffer" && "bar2Buffer"
|
|
104
|
+
]
|
|
105
|
+
}, x, t);
|
|
106
|
+
}, L = (e, t) => t === "inherit" ? "currentColor" : e.vars ? e.vars.palette.LinearProgress[`${t}Bg`] : e.palette.mode === "light" ? (0, b.lighten)(e.palette[t].main, .62) : (0, b.darken)(e.palette[t].main, .5), R = m("span", {
|
|
107
|
+
name: "MuiLinearProgress",
|
|
108
|
+
slot: "Root",
|
|
109
|
+
overridesResolver: (e, t) => {
|
|
110
|
+
let { ownerState: n } = e;
|
|
111
|
+
return [
|
|
112
|
+
t.root,
|
|
113
|
+
t[`color${_(n.color)}`],
|
|
114
|
+
t[n.variant]
|
|
115
|
+
];
|
|
116
|
+
}
|
|
117
|
+
})(({ ownerState: e, theme: t }) => l({
|
|
118
|
+
position: "relative",
|
|
119
|
+
overflow: "hidden",
|
|
120
|
+
display: "block",
|
|
121
|
+
height: 4,
|
|
122
|
+
zIndex: 0,
|
|
123
|
+
"@media print": { colorAdjust: "exact" },
|
|
124
|
+
backgroundColor: L(t, e.color)
|
|
125
|
+
}, e.color === "inherit" && e.variant !== "buffer" && {
|
|
126
|
+
backgroundColor: "none",
|
|
127
|
+
"&::before": {
|
|
128
|
+
content: "\"\"",
|
|
129
|
+
position: "absolute",
|
|
130
|
+
left: 0,
|
|
131
|
+
top: 0,
|
|
132
|
+
right: 0,
|
|
133
|
+
bottom: 0,
|
|
134
|
+
backgroundColor: "currentColor",
|
|
135
|
+
opacity: .3
|
|
136
|
+
}
|
|
137
|
+
}, e.variant === "buffer" && { backgroundColor: "transparent" }, e.variant === "query" && { transform: "rotate(180deg)" })), z = m("span", {
|
|
138
|
+
name: "MuiLinearProgress",
|
|
139
|
+
slot: "Dashed",
|
|
140
|
+
overridesResolver: (e, t) => {
|
|
141
|
+
let { ownerState: n } = e;
|
|
142
|
+
return [t.dashed, t[`dashedColor${_(n.color)}`]];
|
|
143
|
+
}
|
|
144
|
+
})(({ ownerState: e, theme: t }) => {
|
|
145
|
+
let n = L(t, e.color);
|
|
146
|
+
return l({
|
|
147
|
+
position: "absolute",
|
|
148
|
+
marginTop: 0,
|
|
149
|
+
height: "100%",
|
|
150
|
+
width: "100%"
|
|
151
|
+
}, e.color === "inherit" && { opacity: .3 }, {
|
|
152
|
+
backgroundImage: `radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,
|
|
153
|
+
backgroundSize: "10px 10px",
|
|
154
|
+
backgroundPosition: "0 -23px"
|
|
155
|
+
});
|
|
156
|
+
}, s(k ||= T`
|
|
157
|
+
animation: ${0} 3s infinite linear;
|
|
158
|
+
`, F)), B = m("span", {
|
|
159
|
+
name: "MuiLinearProgress",
|
|
160
|
+
slot: "Bar1",
|
|
161
|
+
overridesResolver: (e, t) => {
|
|
162
|
+
let { ownerState: n } = e;
|
|
163
|
+
return [
|
|
164
|
+
t.bar,
|
|
165
|
+
t[`barColor${_(n.color)}`],
|
|
166
|
+
(n.variant === "indeterminate" || n.variant === "query") && t.bar1Indeterminate,
|
|
167
|
+
n.variant === "determinate" && t.bar1Determinate,
|
|
168
|
+
n.variant === "buffer" && t.bar1Buffer
|
|
169
|
+
];
|
|
170
|
+
}
|
|
171
|
+
})(({ ownerState: e, theme: t }) => l({
|
|
172
|
+
width: "100%",
|
|
173
|
+
position: "absolute",
|
|
174
|
+
left: 0,
|
|
175
|
+
bottom: 0,
|
|
176
|
+
top: 0,
|
|
177
|
+
transition: "transform 0.2s linear",
|
|
178
|
+
transformOrigin: "left",
|
|
179
|
+
backgroundColor: e.color === "inherit" ? "currentColor" : (t.vars || t).palette[e.color].main
|
|
180
|
+
}, e.variant === "determinate" && { transition: `transform .${M}s linear` }, e.variant === "buffer" && {
|
|
181
|
+
zIndex: 1,
|
|
182
|
+
transition: `transform .${M}s linear`
|
|
183
|
+
}), ({ ownerState: e }) => (e.variant === "indeterminate" || e.variant === "query") && s(A ||= T`
|
|
184
|
+
width: auto;
|
|
185
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
186
|
+
`, N)), V = m("span", {
|
|
187
|
+
name: "MuiLinearProgress",
|
|
188
|
+
slot: "Bar2",
|
|
189
|
+
overridesResolver: (e, t) => {
|
|
190
|
+
let { ownerState: n } = e;
|
|
191
|
+
return [
|
|
192
|
+
t.bar,
|
|
193
|
+
t[`barColor${_(n.color)}`],
|
|
194
|
+
(n.variant === "indeterminate" || n.variant === "query") && t.bar2Indeterminate,
|
|
195
|
+
n.variant === "buffer" && t.bar2Buffer
|
|
196
|
+
];
|
|
197
|
+
}
|
|
198
|
+
})(({ ownerState: e, theme: t }) => l({
|
|
199
|
+
width: "100%",
|
|
200
|
+
position: "absolute",
|
|
201
|
+
left: 0,
|
|
202
|
+
bottom: 0,
|
|
203
|
+
top: 0,
|
|
204
|
+
transition: "transform 0.2s linear",
|
|
205
|
+
transformOrigin: "left"
|
|
206
|
+
}, e.variant !== "buffer" && { backgroundColor: e.color === "inherit" ? "currentColor" : (t.vars || t).palette[e.color].main }, e.color === "inherit" && { opacity: .3 }, e.variant === "buffer" && {
|
|
207
|
+
backgroundColor: L(t, e.color),
|
|
208
|
+
transition: `transform .${M}s linear`
|
|
209
|
+
}), ({ ownerState: e }) => (e.variant === "indeterminate" || e.variant === "query") && s(j ||= T`
|
|
210
|
+
width: auto;
|
|
211
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
212
|
+
`, P)), H = /*#__PURE__*/ y.forwardRef(function(e, t) {
|
|
213
|
+
let n = h({
|
|
214
|
+
props: e,
|
|
215
|
+
name: "MuiLinearProgress"
|
|
216
|
+
}), { className: i, color: a = "primary", value: o, valueBuffer: s, variant: c = "indeterminate" } = n, u = r(n, w), p = l({}, n, {
|
|
217
|
+
color: a,
|
|
218
|
+
variant: c
|
|
219
|
+
}), m = I(p), g = d(), _ = {}, v = {
|
|
220
|
+
bar1: {},
|
|
221
|
+
bar2: {}
|
|
222
|
+
};
|
|
223
|
+
if ((c === "determinate" || c === "buffer") && o !== void 0) {
|
|
224
|
+
_["aria-valuenow"] = Math.round(o), _["aria-valuemin"] = 0, _["aria-valuemax"] = 100;
|
|
225
|
+
let e = o - 100;
|
|
226
|
+
g && (e = -e), v.bar1.transform = `translateX(${e}%)`;
|
|
227
|
+
}
|
|
228
|
+
if (c === "buffer" && s !== void 0) {
|
|
229
|
+
let e = (s || 0) - 100;
|
|
230
|
+
g && (e = -e), v.bar2.transform = `translateX(${e}%)`;
|
|
231
|
+
}
|
|
232
|
+
return /*#__PURE__*/ (0, C.jsxs)(R, l({
|
|
233
|
+
className: f(m.root, i),
|
|
234
|
+
ownerState: p,
|
|
235
|
+
role: "progressbar"
|
|
236
|
+
}, _, { ref: t }, u, { children: [
|
|
237
|
+
c === "buffer" ? /*#__PURE__*/ (0, C.jsx)(z, {
|
|
238
|
+
className: m.dashed,
|
|
239
|
+
ownerState: p
|
|
240
|
+
}) : null,
|
|
241
|
+
/*#__PURE__*/ (0, C.jsx)(B, {
|
|
242
|
+
className: m.bar1,
|
|
243
|
+
ownerState: p,
|
|
244
|
+
style: v.bar1
|
|
245
|
+
}),
|
|
246
|
+
c === "determinate" ? null : /*#__PURE__*/ (0, C.jsx)(V, {
|
|
247
|
+
className: m.bar2,
|
|
248
|
+
ownerState: p,
|
|
249
|
+
style: v.bar2
|
|
250
|
+
})
|
|
251
|
+
] }));
|
|
252
|
+
});
|
|
253
|
+
export { S as n, H as t };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
var t = 0, n = e.children, r = n && n.length;
|
|
3
|
+
if (!r) t = 1;
|
|
4
|
+
else for (; --r >= 0;) t += n[r].value;
|
|
5
|
+
e.value = t;
|
|
6
|
+
}
|
|
7
|
+
function t() {
|
|
8
|
+
return this.eachAfter(e);
|
|
9
|
+
}
|
|
10
|
+
function n(e, t) {
|
|
11
|
+
let n = -1;
|
|
12
|
+
for (let r of this) e.call(t, r, ++n, this);
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
function r(e, t) {
|
|
16
|
+
for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
function i(e, t) {
|
|
20
|
+
for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
|
|
21
|
+
for (; n = i.pop();) e.call(t, n, ++c, this);
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
function a(e, t) {
|
|
25
|
+
let n = -1;
|
|
26
|
+
for (let r of this) if (e.call(t, r, ++n, this)) return r;
|
|
27
|
+
}
|
|
28
|
+
function o(e) {
|
|
29
|
+
return this.eachAfter(function(t) {
|
|
30
|
+
for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
|
|
31
|
+
t.value = n;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function s(e) {
|
|
35
|
+
return this.eachBefore(function(t) {
|
|
36
|
+
t.children && t.children.sort(e);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function c(e) {
|
|
40
|
+
for (var t = this, n = l(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
|
|
41
|
+
for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
function l(e, t) {
|
|
45
|
+
if (e === t) return e;
|
|
46
|
+
var n = e.ancestors(), r = t.ancestors(), i = null;
|
|
47
|
+
for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
|
|
48
|
+
return i;
|
|
49
|
+
}
|
|
50
|
+
function u() {
|
|
51
|
+
for (var e = this, t = [e]; e = e.parent;) t.push(e);
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
function d() {
|
|
55
|
+
return Array.from(this);
|
|
56
|
+
}
|
|
57
|
+
function f() {
|
|
58
|
+
var e = [];
|
|
59
|
+
return this.eachBefore(function(t) {
|
|
60
|
+
t.children || e.push(t);
|
|
61
|
+
}), e;
|
|
62
|
+
}
|
|
63
|
+
function p() {
|
|
64
|
+
var e = this, t = [];
|
|
65
|
+
return e.each(function(n) {
|
|
66
|
+
n !== e && t.push({
|
|
67
|
+
source: n.parent,
|
|
68
|
+
target: n
|
|
69
|
+
});
|
|
70
|
+
}), t;
|
|
71
|
+
}
|
|
72
|
+
function* m() {
|
|
73
|
+
var e = this, t, n = [e], r, i, a;
|
|
74
|
+
do
|
|
75
|
+
for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
|
|
76
|
+
while (n.length);
|
|
77
|
+
}
|
|
78
|
+
function h(e, t) {
|
|
79
|
+
e instanceof Map ? (e = [void 0, e], t === void 0 && (t = v)) : t === void 0 && (t = _);
|
|
80
|
+
for (var n = new x(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new x(o[s])), a.parent = r, a.depth = r.depth + 1;
|
|
81
|
+
return n.eachBefore(b);
|
|
82
|
+
}
|
|
83
|
+
function g() {
|
|
84
|
+
return h(this).eachBefore(y);
|
|
85
|
+
}
|
|
86
|
+
function _(e) {
|
|
87
|
+
return e.children;
|
|
88
|
+
}
|
|
89
|
+
function v(e) {
|
|
90
|
+
return Array.isArray(e) ? e[1] : null;
|
|
91
|
+
}
|
|
92
|
+
function y(e) {
|
|
93
|
+
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
94
|
+
}
|
|
95
|
+
function b(e) {
|
|
96
|
+
var t = 0;
|
|
97
|
+
do
|
|
98
|
+
e.height = t;
|
|
99
|
+
while ((e = e.parent) && e.height < ++t);
|
|
100
|
+
}
|
|
101
|
+
function x(e) {
|
|
102
|
+
this.data = e, this.depth = this.height = 0, this.parent = null;
|
|
103
|
+
}
|
|
104
|
+
x.prototype = h.prototype = {
|
|
105
|
+
constructor: x,
|
|
106
|
+
count: t,
|
|
107
|
+
each: n,
|
|
108
|
+
eachAfter: i,
|
|
109
|
+
eachBefore: r,
|
|
110
|
+
find: a,
|
|
111
|
+
sum: o,
|
|
112
|
+
sort: s,
|
|
113
|
+
path: c,
|
|
114
|
+
ancestors: u,
|
|
115
|
+
descendants: d,
|
|
116
|
+
leaves: f,
|
|
117
|
+
links: p,
|
|
118
|
+
copy: g,
|
|
119
|
+
[Symbol.iterator]: m
|
|
120
|
+
};
|
|
121
|
+
function S(e) {
|
|
122
|
+
return e == null ? null : C(e);
|
|
123
|
+
}
|
|
124
|
+
function C(e) {
|
|
125
|
+
if (typeof e != "function") throw Error();
|
|
126
|
+
return e;
|
|
127
|
+
}
|
|
128
|
+
export { h as a, b as i, C as n, x as r, S as t };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { d as e, g as t, h as n, ot as r, u as i, v as a, w as o } from "./shared-CBvcC5YV.js";
|
|
2
|
+
import { Gf as s, bd as c } from "./handlers-VTBfIZYZ.js";
|
|
3
|
+
import { m as l } from "./operations-CTNUX6Sy.js";
|
|
4
|
+
var u = async (u) => {
|
|
5
|
+
let d = c(u);
|
|
6
|
+
if (d) return {
|
|
7
|
+
issues: [{
|
|
8
|
+
code: "invalid_structure",
|
|
9
|
+
message: d,
|
|
10
|
+
path: []
|
|
11
|
+
}],
|
|
12
|
+
success: !1
|
|
13
|
+
};
|
|
14
|
+
let f = r.safeParse(u.definition);
|
|
15
|
+
if (!f.success) return {
|
|
16
|
+
issues: o(f.error, u.definition),
|
|
17
|
+
success: !1
|
|
18
|
+
};
|
|
19
|
+
let p = s.safeParse(u.baseVSpec);
|
|
20
|
+
if (!p.success) return {
|
|
21
|
+
issues: [e("invalid_structure", ["baseVSpec"], "Base app filter bar vSpec is invalid.")],
|
|
22
|
+
success: !1
|
|
23
|
+
};
|
|
24
|
+
let m = p.data;
|
|
25
|
+
if (!a(m, [])) return {
|
|
26
|
+
issues: [e("non_fresh_base_vspec", ["baseVSpec"], "App filter bar definitions require a fresh base vSpec.")],
|
|
27
|
+
success: !1
|
|
28
|
+
};
|
|
29
|
+
let h = f.data.settings ?? {}, g = [
|
|
30
|
+
...h.orientation === void 0 ? [] : [{
|
|
31
|
+
name: l.SET_ORIENTATION,
|
|
32
|
+
payload: h.orientation
|
|
33
|
+
}],
|
|
34
|
+
...h.selectionMode === void 0 ? [] : [{
|
|
35
|
+
name: l.SET_SELECTION_MODE,
|
|
36
|
+
payload: h.selectionMode
|
|
37
|
+
}],
|
|
38
|
+
...h.enableAddingNewFilters === void 0 ? [] : [{
|
|
39
|
+
name: l.SET_ADDING_FILTERS_ENABLED,
|
|
40
|
+
payload: h.enableAddingNewFilters
|
|
41
|
+
}],
|
|
42
|
+
...h.enableAssociativeFilter === void 0 ? [] : [{
|
|
43
|
+
name: l.SET_ASSOCIATIVE_FILTER_ENABLED,
|
|
44
|
+
payload: h.enableAssociativeFilter
|
|
45
|
+
}],
|
|
46
|
+
...h.showClearAll === void 0 ? [] : [{
|
|
47
|
+
name: l.SET_CLEAR_ALL_ENABLED,
|
|
48
|
+
payload: h.showClearAll
|
|
49
|
+
}],
|
|
50
|
+
...h.showChartBreakdown === void 0 ? [] : [{
|
|
51
|
+
name: l.SET_CHART_BREAKDOWN_ENABLED,
|
|
52
|
+
payload: h.showChartBreakdown
|
|
53
|
+
}],
|
|
54
|
+
...h.selectableFieldKeys === void 0 ? [] : [{
|
|
55
|
+
name: l.SET_SELECTABLE_FIELD_KEYS,
|
|
56
|
+
payload: h.selectableFieldKeys
|
|
57
|
+
}]
|
|
58
|
+
], _ = await n(i(u, m), g, ["settings"]);
|
|
59
|
+
return "issue" in _ ? {
|
|
60
|
+
issues: [_.issue],
|
|
61
|
+
success: !1
|
|
62
|
+
} : t(_.state, s);
|
|
63
|
+
};
|
|
64
|
+
export { u as compileAppFilterBarVisualizationDefinition };
|