@astrato-io/visualizations 0.6.4 → 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 +0 -0
- package/THIRD_PARTY_NOTICES.md +94 -4
- package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
- package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
- package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
- package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
- package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
- package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
- package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
- package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
- package/chunks/filter.compiler-DBsyRBJt.js +70 -0
- package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
- package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
- 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-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
- package/chunks/number.compiler-G-R7y16P.js +53 -0
- package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
- package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
- package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
- package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
- package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
- package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
- package/chunks/standalone-0ashe9w1.js +411 -0
- package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
- package/chunks/standalone-BK0VYU-l.js +463 -0
- package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
- package/chunks/standalone-BZV5vOwA.js +6 -0
- package/chunks/standalone-BhDrWj4p.js +1980 -0
- package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
- package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
- package/chunks/standalone-BwtM31-f.js +2 -0
- package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
- package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
- package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
- package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
- package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
- package/chunks/standalone-DCtRoTWg.js +675 -0
- package/chunks/standalone-DUDFTBqL.js +833 -0
- package/chunks/standalone-DhZkX9Td.js +2 -0
- package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
- package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
- package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
- package/chunks/standalone-_DeX21JJ.js +383 -0
- package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
- package/chunks/standalone-tDNy-SFH.js +281 -0
- package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
- package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
- package/chunks/table.compiler-tb914oj3.js +222 -0
- package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
- package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
- package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
- package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
- package/definitions.js +3 -3
- package/docs/operations/astrato-app-filter-bar.md +17 -17
- package/docs/operations/bar.md +989 -1071
- package/docs/operations/combo.md +717 -738
- package/docs/operations/date-picker.md +25 -25
- package/docs/operations/distribution-gauge.md +471 -607
- package/docs/operations/dot.md +787 -879
- package/docs/operations/filter.md +139 -163
- package/docs/operations/gauge.md +491 -627
- package/docs/operations/heatMap.md +834 -916
- package/docs/operations/histogram.md +166 -180
- package/docs/operations/iframe.md +5 -5
- package/docs/operations/image.md +16 -16
- package/docs/operations/index.md +12 -12
- package/docs/operations/line.md +811 -888
- package/docs/operations/number.md +470 -536
- package/docs/operations/pie.md +825 -958
- package/docs/operations/radar.md +599 -679
- package/docs/operations/sankey.md +462 -584
- package/docs/operations/scatter.md +823 -929
- package/docs/operations/shape.md +34 -34
- package/docs/operations/simpleTextObject.md +18 -25
- package/docs/operations/slider.md +33 -43
- package/docs/operations/table.md +1160 -1150
- package/docs/operations/tree.md +354 -361
- package/docs/operations/treemap.md +545 -637
- package/docs/operations/waterfall.md +369 -379
- package/docs/operations/word-cloud.md +512 -583
- package/getters.js +3 -3
- package/index.js +51 -51
- package/metadata.js +3 -3
- package/operations.js +7 -7
- package/package.json +80 -86
- package/src/definitions/index.d.ts +2 -2
- package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
- package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
- 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/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
- 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/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
- package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
- package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
- package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
- package/src/definitions/model/definitions/types/index.d.ts +3 -0
- package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
- package/chunks/Radio-Ciu-F4CU.js +0 -957
- package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
- package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
- package/chunks/bar.compiler-oqaPzIut.js +0 -370
- package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
- package/chunks/event-bus-KiSiCJrC.js +0 -2683
- package/chunks/filter.compiler-CuLtc_02.js +0 -60
- package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
- package/chunks/interfaces-VUY4_yVO.js +0 -8742
- package/chunks/line-settings-DfYTUyPz.js +0 -4
- package/chunks/line.compiler-BpA_6Tc7.js +0 -188
- package/chunks/number.compiler-DbkWcG4S.js +0 -44
- package/chunks/pie-uv42Eqal.js +0 -10
- package/chunks/src-Dun_jXtz.js +0 -10295
- package/chunks/standalone-87YV_m9n.js +0 -687
- package/chunks/standalone-BLVAWLNJ.js +0 -385
- package/chunks/standalone-BPomtAVs.js +0 -2
- package/chunks/standalone-BXyBcUOQ.js +0 -2
- package/chunks/standalone-BllF4rDp.js +0 -383
- package/chunks/standalone-BqWyrnZI.js +0 -281
- package/chunks/standalone-DQxxNwF8.js +0 -675
- package/chunks/standalone-DS9T0FZ-.js +0 -830
- package/chunks/standalone-DzixzZAL.js +0 -411
- package/chunks/standalone-QJ1kKMnO.js +0 -6
- package/chunks/table.compiler-BrXkm4Fz.js +0 -213
- package/chunks/toInteger-DVZr-D1j.js +0 -11
- package/chunks/treemap-x_zmJoG7.js +0 -23
- package/chunks/types-dVVCsDWD.js +0 -4
- package/chunks/view-CLqWMV7Z.js +0 -156
- package/src/definitions/shared/index.d.ts +0 -5
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
- package/src/definitions/shared/lib/registry/index.d.ts +0 -3
- package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
- package/src/definitions/shared/lib/types/index.d.ts +0 -3
- package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
- /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
- /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
package/chunks/view-CLqWMV7Z.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Oa as t, Wc as n, Wn as r, ds as i, hc as a, yn as o } from "./interfaces-VUY4_yVO.js";
|
|
3
|
-
import { G as s, Ki as c, Ui as l, Zt as u, c as d, d as f, hn as p, l as m, s as h, v as g, wi as _, xn as v } from "./utils-Ba9T0TqC.js";
|
|
4
|
-
import { f as y, h as b, m as x, p as S } from "./src-Cum_2NLV.js";
|
|
5
|
-
import { u as C } from "./src-DvX5LU9T.js";
|
|
6
|
-
import { t as w } from "./LinearProgress-CUZ0D8_t.js";
|
|
7
|
-
var T = /* @__PURE__ */ e(c()), E = i(), D = (e) => {
|
|
8
|
-
let t = m(), n = g(), r = e.dimensions[0];
|
|
9
|
-
if (!r) return null;
|
|
10
|
-
let { dateLevel: i, datePart: a } = r, { fieldKey: o } = n(r.dataItem), s = (e) => e.dateLevel === i && e.datePart === a && e.fieldKey === o && (e.operator === E.FilterOperator.Between || e.operator === E.FilterOperator.NotBetween || e.operator === E.FilterOperator.Equals && e.dynamicDateRange), c = {
|
|
11
|
-
dateLevel: i,
|
|
12
|
-
datePart: a,
|
|
13
|
-
fieldKey: o,
|
|
14
|
-
operator: E.FilterOperator.Between,
|
|
15
|
-
values: []
|
|
16
|
-
}, l = t.applied.find(s), u = t.pending.find(s);
|
|
17
|
-
return {
|
|
18
|
-
applied: {
|
|
19
|
-
...c,
|
|
20
|
-
...l
|
|
21
|
-
},
|
|
22
|
-
pending: {
|
|
23
|
-
...c,
|
|
24
|
-
...l,
|
|
25
|
-
...u
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}, O = /* @__PURE__ */ e(o()), k = 864e5, A = (e) => e - e % k, j = (e, t, n) => {
|
|
29
|
-
let r = v(), [i, a] = (0, T.useState)([]);
|
|
30
|
-
(0, T.useEffect)(() => {
|
|
31
|
-
let i = !0;
|
|
32
|
-
return (async () => {
|
|
33
|
-
if (!e) {
|
|
34
|
-
a([]);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
let o = [{
|
|
38
|
-
columnIdx: 0,
|
|
39
|
-
direction: "desc"
|
|
40
|
-
}], s = {
|
|
41
|
-
dimensions: [{
|
|
42
|
-
fieldKey: e,
|
|
43
|
-
dateLevel: E.DateLevel.Day
|
|
44
|
-
}],
|
|
45
|
-
...M(n, r.engine),
|
|
46
|
-
limit: t,
|
|
47
|
-
measures: [],
|
|
48
|
-
orders: o
|
|
49
|
-
}, { data: c } = await r.engine.getData(s);
|
|
50
|
-
i && a(Object.values(c));
|
|
51
|
-
})(), () => {
|
|
52
|
-
i = !1, a([]);
|
|
53
|
-
};
|
|
54
|
-
}, [
|
|
55
|
-
e,
|
|
56
|
-
t,
|
|
57
|
-
JSON.stringify(n?.staticFilters?.filterGroup),
|
|
58
|
-
JSON.stringify(n?.staticFilters?.filters)
|
|
59
|
-
]);
|
|
60
|
-
let { min: o, max: s, valuesDict: c } = i.reduce((e, t) => {
|
|
61
|
-
e.valuesDict[A(t[0])] = !0;
|
|
62
|
-
let n = t[0];
|
|
63
|
-
return n !== null && (e.min = Math.min(n, e.min ?? n), e.max = Math.max(n, e.max ?? n)), e;
|
|
64
|
-
}, {
|
|
65
|
-
valuesDict: {},
|
|
66
|
-
min: void 0,
|
|
67
|
-
max: void 0
|
|
68
|
-
});
|
|
69
|
-
return {
|
|
70
|
-
min: o,
|
|
71
|
-
max: s,
|
|
72
|
-
isDateAvailable: (e) => {
|
|
73
|
-
let t = A(e.valueOf());
|
|
74
|
-
return c[t] && t >= o && t <= s;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}, M = (e, t) => {
|
|
78
|
-
if (!e) return { filters: [] };
|
|
79
|
-
let n = l(e, t), r = e.staticFilters.filterGroup;
|
|
80
|
-
if (r) {
|
|
81
|
-
let i = S(r, n, e.referencedData), a = i && x(i, e, t);
|
|
82
|
-
return a ? {
|
|
83
|
-
filters: [],
|
|
84
|
-
filterGroup: a
|
|
85
|
-
} : { filters: [] };
|
|
86
|
-
}
|
|
87
|
-
return { filters: b(y(e.staticFilters.filters, n, e.referencedData), e, t) };
|
|
88
|
-
}, N = _(), P = s({ loader: {
|
|
89
|
-
minWidth: 100,
|
|
90
|
-
background: t.grey3,
|
|
91
|
-
height: 2,
|
|
92
|
-
"& .MuiLinearProgress-bar": { background: t.mainDarkNavy }
|
|
93
|
-
} }), F = ({ data: e, options: t, vSpec: r, settings: i, responsive: a }) => {
|
|
94
|
-
let o = P(), s = g(), c = e?.applied?.operator === E.FilterOperator.NotBetween || e?.pending?.operator === E.FilterOperator.NotBetween, { field: l, fieldKey: u } = s(e?.applied), f = c ? E.FilterOperator.NotBetween : E.FilterOperator.Between, p = e?.applied?.operator, m = e?.pending?.operator;
|
|
95
|
-
(p === E.FilterOperator.Equals && m === E.FilterOperator.Equals || m === E.FilterOperator.Equals) && (f = E.FilterOperator.Equals);
|
|
96
|
-
let [_] = h(l ? [{
|
|
97
|
-
dataItem: {
|
|
98
|
-
...l,
|
|
99
|
-
dataType: i?.type ?? E.FieldType.STRING,
|
|
100
|
-
internalKey: "",
|
|
101
|
-
type: n.Dimension,
|
|
102
|
-
uniqueSignature: ""
|
|
103
|
-
},
|
|
104
|
-
dateLevel: e?.applied.dateLevel,
|
|
105
|
-
datePart: e?.applied.datePart,
|
|
106
|
-
operator: f
|
|
107
|
-
}] : [], {
|
|
108
|
-
disabled: !i?.type,
|
|
109
|
-
state: i?.quickSelect ? E.SelectionState.APPLIED : E.SelectionState.PENDING,
|
|
110
|
-
commitHistory: i?.quickSelect
|
|
111
|
-
}), v = _ ?? d, y = v.state.pending?.[0] ?? v.state.applied?.[0] ?? null, b = v.state.pending?.[1] ?? v.state.applied?.[1] ?? null, { min: x, max: S, isDateAvailable: T } = j(u, i?.queryLimit, r);
|
|
112
|
-
if (x === void 0 && S === void 0 && l) return /* @__PURE__ */ (0, N.jsx)(w, {
|
|
113
|
-
className: o.loader,
|
|
114
|
-
variant: "indeterminate"
|
|
115
|
-
});
|
|
116
|
-
let D = "Add a Date field";
|
|
117
|
-
return l && (D = l.name), (0, O.default)(t.startDateLabel) || (D = t.startDateLabel), /* @__PURE__ */ (0, N.jsx)(C, {
|
|
118
|
-
options: {
|
|
119
|
-
...t,
|
|
120
|
-
placeholder: D
|
|
121
|
-
},
|
|
122
|
-
settings: {
|
|
123
|
-
minDate: x || Date.now(),
|
|
124
|
-
maxDate: S || Date.now(),
|
|
125
|
-
isDateAvailable: T,
|
|
126
|
-
endDate: b,
|
|
127
|
-
startDate: y,
|
|
128
|
-
selection: v
|
|
129
|
-
},
|
|
130
|
-
responsive: a
|
|
131
|
-
});
|
|
132
|
-
}, I = u(({ vSpec: e }) => {
|
|
133
|
-
let t = f();
|
|
134
|
-
if ((0, T.useEffect)(() => {
|
|
135
|
-
e?.dimensions && t();
|
|
136
|
-
}, [e]), e?.dimensions === void 0) return null;
|
|
137
|
-
let n = e.dimensions[0], i = D(e), o = n?.formatter?.format?.timezone ?? void 0, s = e.datePickerSettings?.queryLimit ?? r(e);
|
|
138
|
-
return /* @__PURE__ */ (0, N.jsx)(F, {
|
|
139
|
-
data: i,
|
|
140
|
-
options: {
|
|
141
|
-
...e?.datePickerSettings,
|
|
142
|
-
format: (e) => String(p(n?.formatter?.format, e)),
|
|
143
|
-
timezone: o,
|
|
144
|
-
startDateLabel: e.datePickerSettings?.startDateLabel,
|
|
145
|
-
endDateLabel: e.datePickerSettings?.endDateLabel
|
|
146
|
-
},
|
|
147
|
-
responsive: e?.datePickerSettings?.responsive,
|
|
148
|
-
vSpec: e,
|
|
149
|
-
settings: {
|
|
150
|
-
type: a(n?.dataItem),
|
|
151
|
-
queryLimit: s,
|
|
152
|
-
quickSelect: e?.datePickerSettings?.quickSelect
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
export { F as n, I as t };
|