@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,37 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
3
|
+
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
4
|
+
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
5
|
+
}, s = function(e) {
|
|
6
|
+
if (!e || r.call(e) !== "[object Object]") return !1;
|
|
7
|
+
var t = n.call(e, "constructor"), i = e.constructor && e.constructor.prototype && n.call(e.constructor.prototype, "isPrototypeOf");
|
|
8
|
+
if (e.constructor && !t && !i) return !1;
|
|
9
|
+
for (var a in e);
|
|
10
|
+
return a === void 0 || n.call(e, a);
|
|
11
|
+
}, c = function(e, t) {
|
|
12
|
+
i && t.name === "__proto__" ? i(e, t.name, {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
configurable: !0,
|
|
15
|
+
value: t.newValue,
|
|
16
|
+
writable: !0
|
|
17
|
+
}) : e[t.name] = t.newValue;
|
|
18
|
+
}, l = function(e, t) {
|
|
19
|
+
if (t === "__proto__") {
|
|
20
|
+
if (!n.call(e, t)) return;
|
|
21
|
+
if (a) return a(e, t).value;
|
|
22
|
+
}
|
|
23
|
+
return e[t];
|
|
24
|
+
};
|
|
25
|
+
t.exports = function e() {
|
|
26
|
+
var t, n, r, i, a, u, d = arguments[0], f = 1, p = arguments.length, m = !1;
|
|
27
|
+
for (typeof d == "boolean" && (m = d, d = arguments[1] || {}, f = 2), (d == null || typeof d != "object" && typeof d != "function") && (d = {}); f < p; ++f) if (t = arguments[f], t != null) for (n in t) r = l(d, n), i = l(t, n), d !== i && (m && i && (s(i) || (a = o(i))) ? (a ? (a = !1, u = r && o(r) ? r : []) : u = r && s(r) ? r : {}, c(d, {
|
|
28
|
+
name: n,
|
|
29
|
+
newValue: e(m, u, i)
|
|
30
|
+
})) : i !== void 0 && c(d, {
|
|
31
|
+
name: n,
|
|
32
|
+
newValue: i
|
|
33
|
+
}));
|
|
34
|
+
return d;
|
|
35
|
+
};
|
|
36
|
+
}));
|
|
37
|
+
export { t };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { a as e } from "./isEqual-BDxAhUo8.js";
|
|
2
|
+
import { D as t, U as n, d as r, g as i, h as a, t as o, u as s, v as c, w as l } from "./shared-CBvcC5YV.js";
|
|
3
|
+
import { bd as u, bf as d } from "./handlers-VTBfIZYZ.js";
|
|
4
|
+
import { l as f } from "./operations-CTNUX6Sy.js";
|
|
5
|
+
e();
|
|
6
|
+
var p = async (e) => {
|
|
7
|
+
let p = u(e);
|
|
8
|
+
if (p) return {
|
|
9
|
+
issues: [{
|
|
10
|
+
code: "invalid_structure",
|
|
11
|
+
message: p,
|
|
12
|
+
path: []
|
|
13
|
+
}],
|
|
14
|
+
success: !1
|
|
15
|
+
};
|
|
16
|
+
let m = n.safeParse(e.definition);
|
|
17
|
+
if (!m.success) return {
|
|
18
|
+
issues: l(m.error, e.definition),
|
|
19
|
+
success: !1
|
|
20
|
+
};
|
|
21
|
+
let h = d.safeParse(e.baseVSpec);
|
|
22
|
+
if (!h.success) return {
|
|
23
|
+
issues: [r("invalid_structure", ["baseVSpec"], "Base filter vSpec is invalid.")],
|
|
24
|
+
success: !1
|
|
25
|
+
};
|
|
26
|
+
let g = h.data;
|
|
27
|
+
if (!c(g, [
|
|
28
|
+
"dimensions",
|
|
29
|
+
"measures",
|
|
30
|
+
"supportingMeasures",
|
|
31
|
+
"sortingMeasures"
|
|
32
|
+
])) return {
|
|
33
|
+
issues: [r("non_fresh_base_vspec", ["baseVSpec"], "Filter definitions require a fresh base vSpec.")],
|
|
34
|
+
success: !1
|
|
35
|
+
};
|
|
36
|
+
let _ = m.data, v = t(_.data.field, e.availableFields, ["data", "field"], "dimension");
|
|
37
|
+
if (v.length) return {
|
|
38
|
+
issues: v,
|
|
39
|
+
success: !1
|
|
40
|
+
};
|
|
41
|
+
let y = await o(s(e, g), _.data.field, "dimension", f.ADD_FILTER_DIMENSION, {
|
|
42
|
+
key: _.data.field.fieldKey,
|
|
43
|
+
role: "filter-dimension"
|
|
44
|
+
}, ["data", "field"]);
|
|
45
|
+
if ("issue" in y) return {
|
|
46
|
+
issues: [y.issue],
|
|
47
|
+
success: !1
|
|
48
|
+
};
|
|
49
|
+
let b = [], x = _.presentation;
|
|
50
|
+
return x?.mode !== void 0 && b.push({
|
|
51
|
+
name: f.SET_FILTER_MODE,
|
|
52
|
+
payload: x.mode
|
|
53
|
+
}), x?.quickSelect !== void 0 && b.push({
|
|
54
|
+
name: f.SET_FILTER_QUICK_SELECT,
|
|
55
|
+
payload: x.quickSelect
|
|
56
|
+
}), x?.responsive !== void 0 && b.push({
|
|
57
|
+
name: f.SET_FILTER_RESPONSIVE,
|
|
58
|
+
payload: x.responsive
|
|
59
|
+
}), x?.searchable !== void 0 && b.push({
|
|
60
|
+
name: f.SET_FILTER_SEARCHABLE,
|
|
61
|
+
payload: x.searchable
|
|
62
|
+
}), x?.showProgressBar !== void 0 && b.push({
|
|
63
|
+
name: f.SET_FILTER_SHOW_PROGRESS_BAR,
|
|
64
|
+
payload: x.showProgressBar
|
|
65
|
+
}), y = await a(y.state, b, ["presentation"]), "issue" in y ? {
|
|
66
|
+
issues: [y.issue],
|
|
67
|
+
success: !1
|
|
68
|
+
} : i(y.state, d);
|
|
69
|
+
};
|
|
70
|
+
export { p as compileFilterVisualizationDefinition };
|