@astrato-io/visualizations 0.10.1 → 0.12.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/CHANGELOG.md +30 -1
- package/README.md +148 -5
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +9 -146
- package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
- package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
- package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
- package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
- package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
- package/chunks/defaults-CMFqXvaJ.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
- package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
- package/chunks/handlers-CyYFSfhM.js +15393 -0
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
- package/chunks/line.compiler-B-4H55_T.js +203 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
- package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
- package/chunks/measure-format-default-B_kuGSzi.js +26 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
- package/chunks/number.compiler-D7nMcEMv.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
- package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
- package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
- package/chunks/standalone-B3hRGgYi.js +773 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
- package/chunks/standalone-BPTT8XEu.js +424 -0
- package/chunks/standalone-BgAeHROc.js +2 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
- package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
- package/chunks/standalone-C0If-V6O.js +773 -0
- package/chunks/standalone-C1TOyflX.js +287 -0
- package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
- package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
- package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
- package/chunks/standalone-CNf-oA2U.js +355 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
- package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
- package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
- package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
- package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
- package/chunks/standalone-Dbn3jSH6.js +690 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
- package/chunks/standalone-DwCIA0UG.js +1057 -0
- package/chunks/standalone-Dz13tl3P.js +357 -0
- package/chunks/standalone-H9GFzFk_.js +8377 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
- package/chunks/standalone-ejTz66P3.js +2 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
- package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
- package/chunks/standalone-vGGR6Vcn.js +6 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
- package/chunks/theme-MYp6Rj1J.js +232 -0
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
- package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +144 -32
- package/docs/operations/combo.md +79 -17
- package/docs/operations/date-picker.md +4 -4
- package/docs/operations/distribution-gauge.md +18 -16
- package/docs/operations/dot.md +107 -24
- package/docs/operations/filter.md +10 -8
- package/docs/operations/gauge.md +20 -18
- package/docs/operations/heatMap.md +73 -21
- package/docs/operations/histogram.md +45 -12
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +12 -11
- package/docs/operations/line.md +86 -24
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +10 -9
- package/docs/operations/pie.md +23 -21
- package/docs/operations/radar.md +13 -11
- package/docs/operations/sankey.md +19 -17
- package/docs/operations/scatter.md +111 -28
- package/docs/operations/shape.md +5 -5
- package/docs/operations/simpleTextObject.md +4 -4
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +27 -25
- package/docs/operations/tree.md +5 -3
- package/docs/operations/treemap.md +70 -18
- package/docs/operations/waterfall.md +40 -7
- package/docs/operations/word-cloud.md +69 -17
- package/getters.js +3 -3
- package/index.js +585 -612
- package/metadata.js +2 -2
- package/operations.js +25 -18
- package/package.json +74 -70
- package/src/definitions/index.d.ts +1 -7
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
- package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +11 -1
- package/src/types.d.ts +166 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/color-rules-DYJL4fIW.js +0 -15
- package/chunks/color-settings-DJFoFTip.js +0 -5
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- package/chunks/handlers-C6CZ0XJA.js +0 -15399
- package/chunks/line.compiler-DmHpmQCC.js +0 -198
- package/chunks/number.compiler-DQdg6zTy.js +0 -53
- package/chunks/standalone-4MsKiqs0.js +0 -355
- package/chunks/standalone-B794g9pE.js +0 -1012
- package/chunks/standalone-BA2YXyJS.js +0 -422
- package/chunks/standalone-BgumbdaJ2.js +0 -357
- package/chunks/standalone-Blh4qejk.js +0 -689
- package/chunks/standalone-CXY4FpF7.js +0 -773
- package/chunks/standalone-DH0xTEes.js +0 -2
- package/chunks/standalone-DcnHjNnC.js +0 -2
- package/chunks/standalone-DrHdGkY7.js +0 -762
- package/chunks/standalone-c_rROMtx.js +0 -287
- package/chunks/standalone-drcFLeN6.js +0 -6
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import { z as
|
|
5
|
-
var
|
|
6
|
-
orientation:
|
|
7
|
-
selectionMode:
|
|
1
|
+
import { $s as e, Gs as t, Jl as n, Qs as r, Wa as i, d as a, dc as o, hs as s, ms as c, nc as l, rc as u, uc as d } from "./visualization-filters-B9qik5_K.js";
|
|
2
|
+
import { $g as ee, Bh as te, Ch as ne, E_ as re, Gg as f, Om as p, Qh as ie, Rh as ae, Sh as oe, T_ as se, Um as ce, Wh as le, Xh as ue, Yg as de, Zh as fe, _h as pe, bh as me, cm as m, d_ as he, dh as ge, dm as _e, fm as ve, hh as ye, kg as be, lh as xe, lm as Se, m_ as Ce, mh as we, n_ as Te, nh as h, om as g, rm as _, wh as v, x_ as Ee, xh as De, yh as Oe, zh as ke } from "./handlers-CyYFSfhM.js";
|
|
3
|
+
import { F as Ae, k as y, m as je, t as Me } from "./operations-CgfehCad.js";
|
|
4
|
+
import { z as b } from "zod";
|
|
5
|
+
var x = n(), Ne = b.object({
|
|
6
|
+
orientation: b.enum(["horizontal", "vertical"]).optional(),
|
|
7
|
+
selectionMode: b.enum([
|
|
8
8
|
"inherit",
|
|
9
9
|
"auto",
|
|
10
10
|
"manual"
|
|
11
11
|
]).optional(),
|
|
12
|
-
enableAddingNewFilters:
|
|
13
|
-
enableAssociativeFilter:
|
|
14
|
-
showClearAll:
|
|
15
|
-
showChartBreakdown:
|
|
16
|
-
selectableFieldKeys:
|
|
17
|
-
}).strict(), Pe =
|
|
12
|
+
enableAddingNewFilters: b.boolean().optional(),
|
|
13
|
+
enableAssociativeFilter: b.boolean().optional(),
|
|
14
|
+
showClearAll: b.boolean().optional(),
|
|
15
|
+
showChartBreakdown: b.boolean().optional(),
|
|
16
|
+
selectableFieldKeys: b.array(b.string()).optional()
|
|
17
|
+
}).strict(), Pe = b.object({
|
|
18
18
|
settings: Ne.optional(),
|
|
19
|
-
type:
|
|
20
|
-
version:
|
|
21
|
-
}).strict(),
|
|
22
|
-
distinct:
|
|
23
|
-
name:
|
|
24
|
-
resultType:
|
|
25
|
-
}).strict(), Re =
|
|
26
|
-
aggregations:
|
|
19
|
+
type: b.literal("astrato-app-filter-bar"),
|
|
20
|
+
version: b.literal(1)
|
|
21
|
+
}).strict(), S = (e) => e, C = b.string().trim().min(1).max(100), w = b.string().min(1).refine((e) => e.trim().length > 0, "Field key cannot be blank."), Fe = S(Ce.shape.dataType), Ie = S(he.shape.formatType), Le = b.object({
|
|
22
|
+
distinct: b.boolean().optional(),
|
|
23
|
+
name: b.string().trim().min(1),
|
|
24
|
+
resultType: b.string().optional()
|
|
25
|
+
}).strict(), Re = b.object({
|
|
26
|
+
aggregations: b.array(Le).default([]),
|
|
27
27
|
dataType: Fe,
|
|
28
|
-
fieldKey:
|
|
29
|
-
isManualData:
|
|
30
|
-
kind:
|
|
31
|
-
name:
|
|
32
|
-
view:
|
|
33
|
-
}).strict(),
|
|
34
|
-
description:
|
|
35
|
-
id:
|
|
36
|
-
key:
|
|
37
|
-
name:
|
|
38
|
-
views:
|
|
39
|
-
}).passthrough(), ze =
|
|
40
|
-
dimension:
|
|
41
|
-
type:
|
|
42
|
-
}), Be =
|
|
43
|
-
measure:
|
|
44
|
-
type:
|
|
45
|
-
}), Ve =
|
|
46
|
-
calculation:
|
|
47
|
-
type:
|
|
48
|
-
}), He =
|
|
49
|
-
fieldKey:
|
|
28
|
+
fieldKey: w,
|
|
29
|
+
isManualData: b.boolean().optional(),
|
|
30
|
+
kind: b.literal("field").default("field"),
|
|
31
|
+
name: b.string().min(1),
|
|
32
|
+
view: b.string().min(1)
|
|
33
|
+
}).strict(), T = b.object({
|
|
34
|
+
description: b.string().optional(),
|
|
35
|
+
id: b.string().min(1).optional(),
|
|
36
|
+
key: w,
|
|
37
|
+
name: b.string().min(1),
|
|
38
|
+
views: b.array(b.string()).optional()
|
|
39
|
+
}).passthrough(), ze = T.extend({
|
|
40
|
+
dimension: b.record(b.string(), b.unknown()),
|
|
41
|
+
type: b.literal("dimension")
|
|
42
|
+
}), Be = T.extend({
|
|
43
|
+
measure: b.object({ aggregation: b.string().min(1) }).passthrough(),
|
|
44
|
+
type: b.literal("measure")
|
|
45
|
+
}), Ve = T.extend({
|
|
46
|
+
calculation: b.record(b.string(), b.unknown()),
|
|
47
|
+
type: b.literal("calculation")
|
|
48
|
+
}), He = b.object({
|
|
49
|
+
fieldKey: w,
|
|
50
50
|
item: ze,
|
|
51
|
-
kind:
|
|
52
|
-
name:
|
|
53
|
-
}).strict(), Ue =
|
|
54
|
-
fieldKey:
|
|
51
|
+
kind: b.literal("dimension"),
|
|
52
|
+
name: b.string().min(1)
|
|
53
|
+
}).strict(), Ue = b.object({
|
|
54
|
+
fieldKey: w,
|
|
55
55
|
item: Be,
|
|
56
|
-
kind:
|
|
57
|
-
name:
|
|
58
|
-
}).strict(), We =
|
|
59
|
-
fieldKey:
|
|
56
|
+
kind: b.literal("measure"),
|
|
57
|
+
name: b.string().min(1)
|
|
58
|
+
}).strict(), We = b.object({
|
|
59
|
+
fieldKey: w,
|
|
60
60
|
item: Ve,
|
|
61
|
-
kind:
|
|
62
|
-
name:
|
|
63
|
-
}).strict(),
|
|
61
|
+
kind: b.literal("calculation"),
|
|
62
|
+
name: b.string().min(1)
|
|
63
|
+
}).strict(), E = b.union([
|
|
64
64
|
Re,
|
|
65
65
|
He,
|
|
66
66
|
Ue,
|
|
@@ -71,174 +71,183 @@ var b = c(), Ne = y.object({
|
|
|
71
71
|
message: "Semantic item key must match fieldKey.",
|
|
72
72
|
path: ["item", "key"]
|
|
73
73
|
});
|
|
74
|
-
}), Ge =
|
|
75
|
-
currency:
|
|
76
|
-
currencyIsPrefix:
|
|
77
|
-
formatString:
|
|
74
|
+
}), Ge = b.object({
|
|
75
|
+
currency: b.string().min(1).optional(),
|
|
76
|
+
currencyIsPrefix: b.boolean().optional(),
|
|
77
|
+
formatString: b.string().optional(),
|
|
78
78
|
formatType: Ie.optional(),
|
|
79
|
-
negativeType:
|
|
80
|
-
}).strict(), Ke =
|
|
81
|
-
dateLevel:
|
|
82
|
-
mode:
|
|
83
|
-
}).strict(),
|
|
84
|
-
datePart:
|
|
85
|
-
mode:
|
|
86
|
-
}).strict()]),
|
|
87
|
-
fieldKey:
|
|
79
|
+
negativeType: S(he.shape.negativeType.unwrap()).optional()
|
|
80
|
+
}).strict(), Ke = b.discriminatedUnion("mode", [b.object({
|
|
81
|
+
dateLevel: S(b.enum(x.DateLevel)).describe("Year-aware bucket, such as month over time."),
|
|
82
|
+
mode: b.literal("level")
|
|
83
|
+
}).strict(), b.object({
|
|
84
|
+
datePart: S(b.enum(x.DatePart)).describe("Date part, such as month of year."),
|
|
85
|
+
mode: b.literal("part")
|
|
86
|
+
}).strict()]), D = b.object({
|
|
87
|
+
fieldKey: w,
|
|
88
88
|
format: Ge.pick({
|
|
89
89
|
formatString: !0,
|
|
90
90
|
formatType: !0
|
|
91
91
|
}).optional(),
|
|
92
|
-
ref:
|
|
93
|
-
showNullValues:
|
|
92
|
+
ref: C,
|
|
93
|
+
showNullValues: b.boolean().optional(),
|
|
94
94
|
temporalGrouping: Ke.describe("Groups a date dimension. Applied before format; format must then suit the grouping.").optional()
|
|
95
|
-
}).strict(), qe =
|
|
96
|
-
placements:
|
|
97
|
-
textColor:
|
|
98
|
-
visible:
|
|
99
|
-
}).strict(),
|
|
100
|
-
aggregation:
|
|
95
|
+
}).strict(), qe = b.object({
|
|
96
|
+
placements: b.array(S(b.enum(Ee))).min(1).describe("Positions tried in order. Inside labels sit at the end of the bar.").optional(),
|
|
97
|
+
textColor: i.describe("Label text color in every placement. Omit to keep the automatic contrast color.").optional(),
|
|
98
|
+
visible: b.boolean()
|
|
99
|
+
}).strict(), O = b.object({
|
|
100
|
+
aggregation: b.string().trim().min(1).describe("Required for a raw field measure; omit for a predefined measure or calculation.").optional(),
|
|
101
101
|
dataLabels: qe.optional(),
|
|
102
|
-
fieldKey:
|
|
102
|
+
fieldKey: w,
|
|
103
103
|
format: Ge.optional(),
|
|
104
|
-
ref:
|
|
105
|
-
}).strict(), Je =
|
|
106
|
-
fieldKey:
|
|
107
|
-
operator:
|
|
108
|
-
value:
|
|
109
|
-
}).strict(), Ye =
|
|
110
|
-
fieldKey:
|
|
111
|
-
operator:
|
|
112
|
-
valueFrom:
|
|
113
|
-
valueTo:
|
|
114
|
-
}).strict(), Xe =
|
|
115
|
-
fieldKey:
|
|
116
|
-
operator:
|
|
117
|
-
values:
|
|
118
|
-
}).strict(), Ze =
|
|
119
|
-
fieldKey:
|
|
120
|
-
operator:
|
|
121
|
-
}).strict(), Qe =
|
|
104
|
+
ref: C
|
|
105
|
+
}).strict(), Je = b.object({
|
|
106
|
+
fieldKey: w,
|
|
107
|
+
operator: S(b.enum(le)),
|
|
108
|
+
value: b.string()
|
|
109
|
+
}).strict(), Ye = b.object({
|
|
110
|
+
fieldKey: w,
|
|
111
|
+
operator: S(b.enum(te)),
|
|
112
|
+
valueFrom: b.string(),
|
|
113
|
+
valueTo: b.string()
|
|
114
|
+
}).strict(), Xe = b.object({
|
|
115
|
+
fieldKey: w,
|
|
116
|
+
operator: S(b.enum(ae)),
|
|
117
|
+
values: b.array(b.string()).min(1)
|
|
118
|
+
}).strict(), Ze = b.object({
|
|
119
|
+
fieldKey: w,
|
|
120
|
+
operator: S(b.enum(ke))
|
|
121
|
+
}).strict(), Qe = b.union([
|
|
122
122
|
Je,
|
|
123
123
|
Ye,
|
|
124
124
|
Xe,
|
|
125
125
|
Ze
|
|
126
|
-
]),
|
|
127
|
-
filters:
|
|
128
|
-
operator:
|
|
129
|
-
}).strict()),
|
|
130
|
-
by:
|
|
131
|
-
direction:
|
|
132
|
-
enabled:
|
|
133
|
-
}).strict(), $e =
|
|
134
|
-
by:
|
|
135
|
-
count:
|
|
136
|
-
direction:
|
|
137
|
-
showOthers:
|
|
138
|
-
}).strict(), et =
|
|
139
|
-
queryLimit:
|
|
126
|
+
]), k = b.lazy(() => b.object({
|
|
127
|
+
filters: b.array(b.union([Qe, k])),
|
|
128
|
+
operator: b.enum(["and", "or"])
|
|
129
|
+
}).strict()), A = b.object({
|
|
130
|
+
by: C,
|
|
131
|
+
direction: S(f.shape.sortDirection),
|
|
132
|
+
enabled: b.boolean().optional()
|
|
133
|
+
}).strict(), $e = b.object({
|
|
134
|
+
by: C,
|
|
135
|
+
count: b.number().int().positive(),
|
|
136
|
+
direction: S(f.shape.sortDirection),
|
|
137
|
+
showOthers: b.boolean().optional()
|
|
138
|
+
}).strict(), et = b.object({
|
|
139
|
+
queryLimit: b.number().int().positive().optional(),
|
|
140
140
|
topN: $e.optional()
|
|
141
|
-
}).strict(), tt =
|
|
142
|
-
position:
|
|
143
|
-
title:
|
|
144
|
-
visible:
|
|
145
|
-
}).strict(),
|
|
146
|
-
labelsVisible:
|
|
147
|
-
lineVisible:
|
|
148
|
-
ticksVisible:
|
|
149
|
-
title:
|
|
150
|
-
titleVisible:
|
|
151
|
-
}).strict(), nt =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}).strict(),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}).strict(), lt = {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
141
|
+
}).strict(), tt = b.object({
|
|
142
|
+
position: S(Te.shape.position).optional(),
|
|
143
|
+
title: b.string().optional(),
|
|
144
|
+
visible: b.boolean().optional()
|
|
145
|
+
}).strict(), j = b.object({
|
|
146
|
+
labelsVisible: b.boolean().optional(),
|
|
147
|
+
lineVisible: b.boolean().optional(),
|
|
148
|
+
ticksVisible: b.boolean().optional(),
|
|
149
|
+
title: b.string().optional(),
|
|
150
|
+
titleVisible: b.boolean().optional()
|
|
151
|
+
}).strict(), nt = j.extend({
|
|
152
|
+
labelWrap: b.boolean().describe("Wrap category labels onto several lines instead of tilting them. Helps a few long, multi-word names.").optional(),
|
|
153
|
+
labelWrapLines: b.number().int().min(1).max(10).describe("Most lines a wrapped category label uses; turns wrapping on. Defaults to 2.").optional()
|
|
154
|
+
}).strict(), rt = b.union([b.object({
|
|
155
|
+
max: b.number().optional(),
|
|
156
|
+
min: b.number().optional().describe("Must be less than max when both are set")
|
|
157
|
+
}).strict(), b.object({ startsAtZero: b.boolean() }).strict()]).describe("Fix min, max or both, or set startsAtZero on an axis fitted to the data"), it = b.array(be).optional().describe("Shaded ranges drawn across the plot between two primary measure axis values"), at = ue({}), ot = ue({ dimension: C.describe(`Alias of a dimension in data.dimensions. ${ie}`) }), st = fe({ measure: C.describe("Alias of the measure in data.measures whose value is compared") }), ct = "Colors bound to dimension values, eg. \"Happy\" is dark teal. The first matching entry wins, ahead of rules and the palette. For ordered bands, add one entry per band with colors taken along a ramp.", lt = b.array(st).min(1).describe("Colors bound to measure thresholds, eg. red when sales is below 100. The first matching rule wins."), M = (e) => b.object({
|
|
158
|
+
overwrites: b.array(e.requiresOverwriteDimension ? ot : at).min(1).describe(ct).optional(),
|
|
159
|
+
...e.rules ? { rules: lt.optional() } : {}
|
|
160
|
+
}).strict(), ut = {
|
|
161
|
+
inverted: b.boolean().optional().describe("Reverse the direction of the axis values, eg. to put rank 1 at the top"),
|
|
162
|
+
range: rt.optional()
|
|
163
|
+
}, dt = { labelFormat: S(b.enum(se)).optional().describe("Defaults to compact, which prints axis values as 40M or $1.5M. value prints them with the measure's format, eg. 40,000,000.00. Labels and tooltips always use the measure's format, and percent or date axes are never compacted.") }, ft = { bands: it }, pt = { scale: S(b.enum(re)).optional() };
|
|
164
|
+
j.extend({
|
|
165
|
+
...ut,
|
|
166
|
+
...dt,
|
|
167
|
+
...ft,
|
|
168
|
+
...pt
|
|
165
169
|
}).strict();
|
|
166
|
-
var N = ({
|
|
167
|
-
let
|
|
168
|
-
...
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
var N = ({ dimensionLabelWrap: e = !1, logScale: t = !1, primaryMeasureBands: n = !1, rangedMeasureAxes: r = [] } = {}) => {
|
|
171
|
+
let i = (e, n) => j.extend({
|
|
172
|
+
...r.includes(e) ? {
|
|
173
|
+
...ut,
|
|
174
|
+
...dt
|
|
175
|
+
} : {},
|
|
176
|
+
...n ? ft : {},
|
|
177
|
+
...t ? pt : {}
|
|
171
178
|
}).strict();
|
|
172
|
-
return
|
|
173
|
-
dimension:
|
|
174
|
-
primaryMeasure:
|
|
175
|
-
secondaryMeasure:
|
|
179
|
+
return b.object({
|
|
180
|
+
dimension: (e ? nt : j).optional(),
|
|
181
|
+
primaryMeasure: i("primaryMeasure", n).optional(),
|
|
182
|
+
secondaryMeasure: i("secondaryMeasure", !1).optional()
|
|
176
183
|
}).strict();
|
|
177
184
|
};
|
|
178
185
|
N();
|
|
179
|
-
var
|
|
186
|
+
var mt = b.object({
|
|
180
187
|
axes: N({
|
|
188
|
+
dimensionLabelWrap: !0,
|
|
181
189
|
logScale: !0,
|
|
182
190
|
primaryMeasureBands: !0,
|
|
183
191
|
rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"]
|
|
184
192
|
}).optional(),
|
|
185
193
|
legend: tt.optional(),
|
|
186
|
-
orientation:
|
|
187
|
-
}).strict(),
|
|
188
|
-
data:
|
|
189
|
-
dimensions:
|
|
190
|
-
measures:
|
|
194
|
+
orientation: S(b.enum(s)).optional()
|
|
195
|
+
}).strict(), ht = S(b.enum([r.Groups, r.Stacked])).describe("How several measures, or a series dimension, share a category: \"groups\" side by side, \"stacked\" into one bar. Ignored for one dimension with one measure. Defaults to groups for several measures on one dimension, otherwise stacked."), gt = O.extend({ axis: b.enum(["primary", "secondary"]).optional() }), _t = b.object({
|
|
196
|
+
data: b.object({
|
|
197
|
+
dimensions: b.array(D),
|
|
198
|
+
measures: b.array(gt).min(1)
|
|
191
199
|
}).strict(),
|
|
192
|
-
filterGroup:
|
|
200
|
+
filterGroup: k.optional(),
|
|
193
201
|
limiting: et.optional(),
|
|
194
|
-
presentation:
|
|
195
|
-
coloring:
|
|
196
|
-
layout:
|
|
202
|
+
presentation: mt.extend({
|
|
203
|
+
coloring: M({ rules: !0 }).optional(),
|
|
204
|
+
layout: ht.optional()
|
|
197
205
|
}).optional(),
|
|
198
|
-
sorting:
|
|
199
|
-
type:
|
|
200
|
-
version:
|
|
201
|
-
}).strict(),
|
|
206
|
+
sorting: b.array(A).optional(),
|
|
207
|
+
type: b.literal("bar"),
|
|
208
|
+
version: b.literal(1)
|
|
209
|
+
}).strict(), vt = b.object({ visible: b.boolean() }).strict(), yt = (e, t) => b.array(e).min(t.min).max(t.max), P = (e, t) => {
|
|
202
210
|
let n = {};
|
|
203
211
|
if (t.dimensions.max > 0) {
|
|
204
|
-
let e =
|
|
212
|
+
let e = yt(D, t.dimensions);
|
|
205
213
|
n.dimensions = t.dimensions.min === 0 ? e.optional() : e;
|
|
206
214
|
}
|
|
207
215
|
if (t.measures.max > 0) {
|
|
208
|
-
let e = t.dataLabels ?
|
|
216
|
+
let e = t.dataLabels ? O.omit({ dataLabels: !0 }).extend({ dataLabels: vt.optional() }) : O.omit({ dataLabels: !0 }), r = t.comboSeriesTypes ? e.extend({ seriesType: b.enum([
|
|
209
217
|
"bar",
|
|
210
218
|
"line",
|
|
211
219
|
"point"
|
|
212
|
-
]).optional() }) : e, i =
|
|
220
|
+
]).optional() }) : e, i = yt(t.measureAxis ? r.extend({ axis: b.enum(["primary", "secondary"]).optional() }) : r, t.measures);
|
|
213
221
|
n.measures = t.measures.min === 0 ? i.optional() : i;
|
|
214
222
|
}
|
|
215
|
-
let
|
|
223
|
+
let r = {};
|
|
216
224
|
if (t.axes) {
|
|
217
225
|
let e = N({
|
|
226
|
+
dimensionLabelWrap: t.dimensionLabelWrap,
|
|
218
227
|
logScale: t.measureAxisScale,
|
|
219
228
|
primaryMeasureBands: t.measureAxisBands,
|
|
220
229
|
rangedMeasureAxes: t.rangedMeasureAxes
|
|
221
230
|
});
|
|
222
|
-
|
|
231
|
+
r.axes = (t.secondaryDimensionAxis ? e.extend({ secondaryDimension: j.optional() }) : e).optional();
|
|
223
232
|
}
|
|
224
|
-
t.conditionalColoring && (
|
|
225
|
-
compact:
|
|
226
|
-
direction:
|
|
233
|
+
t.conditionalColoring && (r.coloring = M(t.conditionalColoring).optional()), t.dataLabels && (r.dataLabels = vt.optional()), t.gaugeDisplayMode && (r.displayMode = b.enum(["bar", "radial"]).optional()), t.legend && (r.legend = tt.optional()), t.orientation && (r.orientation = S(b.enum(s)).optional()), t.treeLayout && (r.layout = b.object({
|
|
234
|
+
compact: b.boolean().optional(),
|
|
235
|
+
direction: b.enum([
|
|
227
236
|
"bottom",
|
|
228
237
|
"left",
|
|
229
238
|
"right",
|
|
230
239
|
"top"
|
|
231
240
|
]).optional(),
|
|
232
|
-
forceAutoFit:
|
|
233
|
-
initialExpandedLevels:
|
|
241
|
+
forceAutoFit: b.boolean().optional(),
|
|
242
|
+
initialExpandedLevels: b.number().int().min(0).optional()
|
|
234
243
|
}).strict().optional());
|
|
235
|
-
let
|
|
236
|
-
data:
|
|
237
|
-
filterGroup:
|
|
238
|
-
type:
|
|
239
|
-
version:
|
|
244
|
+
let i = {
|
|
245
|
+
data: b.object(n).strict(),
|
|
246
|
+
filterGroup: k.optional(),
|
|
247
|
+
type: b.literal(e),
|
|
248
|
+
version: b.literal(1)
|
|
240
249
|
};
|
|
241
|
-
return t.queryLimit && (
|
|
250
|
+
return t.queryLimit && (i.limiting = b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional()), Object.keys(r).length > 0 && (i.presentation = b.object(r).strict().optional()), t.sorting && (i.sorting = b.array(A).optional()), b.object(i).strict().superRefine((n, r) => {
|
|
242
251
|
let i = n.data, a = t.validateCounts?.(i.dimensions?.length ?? 0, i.measures?.length ?? 0);
|
|
243
252
|
a && r.addIssue({
|
|
244
253
|
code: "custom",
|
|
@@ -252,8 +261,9 @@ var dt = y.object({
|
|
|
252
261
|
path: ["presentation", "coloring"]
|
|
253
262
|
}), t.validateDefinition?.(n, r);
|
|
254
263
|
});
|
|
255
|
-
},
|
|
264
|
+
}, bt = P("combo", {
|
|
256
265
|
axes: !0,
|
|
266
|
+
dimensionLabelWrap: !0,
|
|
257
267
|
comboSeriesTypes: !0,
|
|
258
268
|
dataLabels: !0,
|
|
259
269
|
dimensions: {
|
|
@@ -302,7 +312,7 @@ var dt = y.object({
|
|
|
302
312
|
});
|
|
303
313
|
});
|
|
304
314
|
}
|
|
305
|
-
}),
|
|
315
|
+
}), xt = P("dot", {
|
|
306
316
|
conditionalColoring: { rules: !0 },
|
|
307
317
|
axes: !0,
|
|
308
318
|
dimensions: {
|
|
@@ -316,7 +326,7 @@ var dt = y.object({
|
|
|
316
326
|
},
|
|
317
327
|
orientation: !0,
|
|
318
328
|
rangedMeasureAxes: ["primaryMeasure"]
|
|
319
|
-
}),
|
|
329
|
+
}), St = P("scatter", {
|
|
320
330
|
conditionalColoring: { rules: !0 },
|
|
321
331
|
axes: !0,
|
|
322
332
|
dimensions: {
|
|
@@ -331,7 +341,7 @@ var dt = y.object({
|
|
|
331
341
|
queryLimit: !0,
|
|
332
342
|
rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"],
|
|
333
343
|
sorting: !0
|
|
334
|
-
}),
|
|
344
|
+
}), Ct = P("histogram", {
|
|
335
345
|
axes: !0,
|
|
336
346
|
dimensions: {
|
|
337
347
|
min: 1,
|
|
@@ -345,7 +355,7 @@ var dt = y.object({
|
|
|
345
355
|
},
|
|
346
356
|
orientation: !0,
|
|
347
357
|
rangedMeasureAxes: ["primaryMeasure"]
|
|
348
|
-
}),
|
|
358
|
+
}), wt = P("heatMap", {
|
|
349
359
|
conditionalColoring: { rules: !0 },
|
|
350
360
|
axes: !0,
|
|
351
361
|
dimensions: {
|
|
@@ -360,7 +370,7 @@ var dt = y.object({
|
|
|
360
370
|
queryLimit: !0,
|
|
361
371
|
secondaryDimensionAxis: !0,
|
|
362
372
|
sorting: !0
|
|
363
|
-
}),
|
|
373
|
+
}), Tt = P("radar", {
|
|
364
374
|
conditionalColoring: {
|
|
365
375
|
minDimensions: 2,
|
|
366
376
|
rules: !1
|
|
@@ -378,7 +388,7 @@ var dt = y.object({
|
|
|
378
388
|
if (e === 0 && t < 2) return "Radar charts without dimensions require at least two measures.";
|
|
379
389
|
if (e > 0 && t > 1) return "Radar charts with dimensions support exactly one measure.";
|
|
380
390
|
}
|
|
381
|
-
}),
|
|
391
|
+
}), Et = P("gauge", {
|
|
382
392
|
conditionalColoring: { rules: !0 },
|
|
383
393
|
dimensions: {
|
|
384
394
|
min: 0,
|
|
@@ -391,7 +401,7 @@ var dt = y.object({
|
|
|
391
401
|
max: 20
|
|
392
402
|
},
|
|
393
403
|
validateCounts: (e, t) => e === 1 && t > 2 ? "Gauge charts with a dimension support at most two measures." : void 0
|
|
394
|
-
}),
|
|
404
|
+
}), Dt = P("distribution-gauge", {
|
|
395
405
|
conditionalColoring: { rules: !0 },
|
|
396
406
|
dimensions: {
|
|
397
407
|
min: 0,
|
|
@@ -403,7 +413,7 @@ var dt = y.object({
|
|
|
403
413
|
min: 1,
|
|
404
414
|
max: 20
|
|
405
415
|
}
|
|
406
|
-
}),
|
|
416
|
+
}), Ot = P("pie", {
|
|
407
417
|
conditionalColoring: { rules: !0 },
|
|
408
418
|
dimensions: {
|
|
409
419
|
min: 1,
|
|
@@ -416,7 +426,7 @@ var dt = y.object({
|
|
|
416
426
|
},
|
|
417
427
|
queryLimit: !0,
|
|
418
428
|
sorting: !0
|
|
419
|
-
}),
|
|
429
|
+
}), kt = P("tree", {
|
|
420
430
|
dimensions: {
|
|
421
431
|
min: 0,
|
|
422
432
|
max: 10
|
|
@@ -429,7 +439,7 @@ var dt = y.object({
|
|
|
429
439
|
sorting: !0,
|
|
430
440
|
treeLayout: !0,
|
|
431
441
|
validateCounts: (e, t) => e + t === 0 ? "Tree charts require at least one dimension or measure." : e > 0 && t > 1 ? "Tree charts with dimensions support at most one measure." : void 0
|
|
432
|
-
}),
|
|
442
|
+
}), At = P("treemap", {
|
|
433
443
|
conditionalColoring: { rules: !0 },
|
|
434
444
|
dimensions: {
|
|
435
445
|
min: 1,
|
|
@@ -440,7 +450,7 @@ var dt = y.object({
|
|
|
440
450
|
min: 1,
|
|
441
451
|
max: 1
|
|
442
452
|
}
|
|
443
|
-
}),
|
|
453
|
+
}), jt = P("sankey", {
|
|
444
454
|
conditionalColoring: {
|
|
445
455
|
requiresOverwriteDimension: !0,
|
|
446
456
|
rules: !0
|
|
@@ -453,7 +463,7 @@ var dt = y.object({
|
|
|
453
463
|
min: 1,
|
|
454
464
|
max: 1
|
|
455
465
|
}
|
|
456
|
-
}),
|
|
466
|
+
}), Mt = P("waterfall", {
|
|
457
467
|
axes: !0,
|
|
458
468
|
dataLabels: !0,
|
|
459
469
|
dimensions: {
|
|
@@ -468,7 +478,7 @@ var dt = y.object({
|
|
|
468
478
|
orientation: !0,
|
|
469
479
|
rangedMeasureAxes: ["primaryMeasure"],
|
|
470
480
|
validateCounts: (e, t) => e === 1 && t !== 2 ? "Waterfall charts with a dimension require exactly two measures." : void 0
|
|
471
|
-
}),
|
|
481
|
+
}), Nt = P("word-cloud", {
|
|
472
482
|
conditionalColoring: { rules: !0 },
|
|
473
483
|
dimensions: {
|
|
474
484
|
min: 1,
|
|
@@ -478,41 +488,42 @@ var dt = y.object({
|
|
|
478
488
|
min: 1,
|
|
479
489
|
max: 1
|
|
480
490
|
}
|
|
481
|
-
}),
|
|
482
|
-
mode:
|
|
483
|
-
quickSelect:
|
|
484
|
-
responsive:
|
|
485
|
-
searchable:
|
|
486
|
-
showProgressBar:
|
|
487
|
-
}).strict(),
|
|
488
|
-
data:
|
|
491
|
+
}), Pt = b.enum(["dropdown", "listbox"]), Ft = b.object({
|
|
492
|
+
mode: Pt.optional(),
|
|
493
|
+
quickSelect: b.boolean().optional(),
|
|
494
|
+
responsive: b.boolean().optional(),
|
|
495
|
+
searchable: b.boolean().optional(),
|
|
496
|
+
showProgressBar: b.boolean().optional()
|
|
497
|
+
}).strict(), It = b.object({
|
|
498
|
+
data: b.object({ field: D.omit({
|
|
489
499
|
format: !0,
|
|
490
500
|
showNullValues: !0,
|
|
491
501
|
temporalGrouping: !0
|
|
492
502
|
}) }).strict(),
|
|
493
|
-
presentation:
|
|
494
|
-
type:
|
|
495
|
-
version:
|
|
496
|
-
}).strict(),
|
|
497
|
-
axis:
|
|
498
|
-
dataPointShape:
|
|
499
|
-
}),
|
|
500
|
-
density:
|
|
501
|
-
visible:
|
|
502
|
-
}).strict(),
|
|
503
|
-
coloring:
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
503
|
+
presentation: Ft.optional(),
|
|
504
|
+
type: b.literal("filter"),
|
|
505
|
+
version: b.literal(1)
|
|
506
|
+
}).strict(), Lt = O.omit({ dataLabels: !0 }).extend({
|
|
507
|
+
axis: b.enum(["primary", "secondary"]).optional(),
|
|
508
|
+
dataPointShape: S(ee.shape.dataPointShape)
|
|
509
|
+
}), Rt = b.object({
|
|
510
|
+
density: de.optional(),
|
|
511
|
+
visible: b.boolean()
|
|
512
|
+
}).strict(), zt = mt.extend({
|
|
513
|
+
coloring: M({ rules: !1 }).optional(),
|
|
514
|
+
selectOnClick: b.boolean().describe("Select an axis value when a point, the nearby line or its axis label is clicked. Defaults to the base vSpec setting, or true.").optional(),
|
|
515
|
+
dataLabels: Rt.describe("Value labels on every line point. Omit to show none.").optional()
|
|
516
|
+
}), Bt = b.object({
|
|
517
|
+
data: b.object({
|
|
518
|
+
dimensions: b.array(D).min(1),
|
|
519
|
+
measures: b.array(Lt).min(1)
|
|
509
520
|
}).strict(),
|
|
510
|
-
filterGroup:
|
|
511
|
-
limiting:
|
|
512
|
-
presentation:
|
|
513
|
-
sorting:
|
|
514
|
-
type:
|
|
515
|
-
version:
|
|
521
|
+
filterGroup: k.optional(),
|
|
522
|
+
limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
|
|
523
|
+
presentation: zt.optional(),
|
|
524
|
+
sorting: b.array(A).optional(),
|
|
525
|
+
type: b.literal("line"),
|
|
526
|
+
version: b.literal(1)
|
|
516
527
|
}).strict().superRefine((e, t) => {
|
|
517
528
|
e.presentation?.coloring && e.data.dimensions.length < 2 && t.addIssue({
|
|
518
529
|
code: "custom",
|
|
@@ -530,121 +541,121 @@ var dt = y.object({
|
|
|
530
541
|
]
|
|
531
542
|
});
|
|
532
543
|
});
|
|
533
|
-
}),
|
|
544
|
+
}), Vt = D.pick({
|
|
534
545
|
fieldKey: !0,
|
|
535
546
|
ref: !0
|
|
536
|
-
}),
|
|
547
|
+
}), Ht = O.pick({
|
|
537
548
|
aggregation: !0,
|
|
538
549
|
fieldKey: !0,
|
|
539
550
|
ref: !0
|
|
540
|
-
}),
|
|
551
|
+
}), Ut = Ht.extend({ role: b.enum([
|
|
541
552
|
"geo",
|
|
542
553
|
"secondGeo",
|
|
543
554
|
"thirdGeo",
|
|
544
555
|
"fourthGeo",
|
|
545
556
|
"size",
|
|
546
557
|
"measure"
|
|
547
|
-
]) }), F =
|
|
558
|
+
]) }), F = b.enum([
|
|
548
559
|
"latLng",
|
|
549
560
|
"geoPoint",
|
|
550
561
|
"geoHash"
|
|
551
|
-
]), I =
|
|
552
|
-
name:
|
|
553
|
-
ref:
|
|
554
|
-
visible:
|
|
555
|
-
}),
|
|
556
|
-
dimensions:
|
|
557
|
-
measures:
|
|
558
|
-
supportingMeasures:
|
|
562
|
+
]), I = b.object({
|
|
563
|
+
name: b.string().trim().min(1).optional(),
|
|
564
|
+
ref: C.describe("Reference unique among all layers and data items; resolvedLayerRefs returns it as { kind: \"layer\", id }."),
|
|
565
|
+
visible: b.boolean().optional()
|
|
566
|
+
}), Wt = b.object({
|
|
567
|
+
dimensions: b.array(Vt).length(1),
|
|
568
|
+
measures: b.array(Ut).min(1),
|
|
569
|
+
supportingMeasures: b.array(Ht).optional()
|
|
559
570
|
}).strict(), L = I.extend({
|
|
560
|
-
data:
|
|
561
|
-
filterGroup:
|
|
562
|
-
}),
|
|
563
|
-
color:
|
|
564
|
-
opacity:
|
|
565
|
-
}).strict(),
|
|
566
|
-
type:
|
|
567
|
-
presentation:
|
|
571
|
+
data: Wt,
|
|
572
|
+
filterGroup: k.optional()
|
|
573
|
+
}), Gt = ge.partial().strict(), R = b.object({
|
|
574
|
+
color: i.optional(),
|
|
575
|
+
opacity: De
|
|
576
|
+
}).strict(), Kt = I.extend({
|
|
577
|
+
type: b.literal("map"),
|
|
578
|
+
presentation: S(pe.pick({
|
|
568
579
|
mapType: !0,
|
|
569
580
|
opacity: !0,
|
|
570
581
|
apiKey: !0,
|
|
571
582
|
mapLanguage: !0,
|
|
572
583
|
politicalView: !0
|
|
573
584
|
}).extend({
|
|
574
|
-
layerType:
|
|
585
|
+
layerType: b.enum([
|
|
575
586
|
"default",
|
|
576
587
|
"humanitarian",
|
|
577
588
|
"cycle"
|
|
578
589
|
]),
|
|
579
|
-
layerStyle:
|
|
590
|
+
layerStyle: b.enum([
|
|
580
591
|
"default",
|
|
581
592
|
"greyscale",
|
|
582
593
|
"black",
|
|
583
594
|
"dark"
|
|
584
595
|
])
|
|
585
596
|
}).partial().strict()).optional()
|
|
586
|
-
}).strict(),
|
|
587
|
-
type:
|
|
588
|
-
image:
|
|
589
|
-
position:
|
|
590
|
-
opacity:
|
|
591
|
-
}).strict(),
|
|
592
|
-
type:
|
|
597
|
+
}).strict(), qt = I.extend({
|
|
598
|
+
type: b.literal("image"),
|
|
599
|
+
image: ye.shape.image.strict(),
|
|
600
|
+
position: ye.shape.position.strict(),
|
|
601
|
+
opacity: De
|
|
602
|
+
}).strict(), Jt = L.extend({
|
|
603
|
+
type: b.literal("point"),
|
|
593
604
|
locationType: F,
|
|
594
|
-
presentation:
|
|
595
|
-
shape:
|
|
596
|
-
sizing:
|
|
597
|
-
labelsVisible:
|
|
605
|
+
presentation: S(R.extend({
|
|
606
|
+
shape: ne.shape.shape,
|
|
607
|
+
sizing: Gt.optional(),
|
|
608
|
+
labelsVisible: b.boolean().optional()
|
|
598
609
|
}).strict()).optional()
|
|
599
|
-
}).strict(),
|
|
600
|
-
type:
|
|
601
|
-
presentation:
|
|
602
|
-
strokeEnabled:
|
|
603
|
-
strokeColor:
|
|
604
|
-
strokeWidth:
|
|
605
|
-
labelsVisible:
|
|
610
|
+
}).strict(), Yt = L.extend({
|
|
611
|
+
type: b.literal("shape"),
|
|
612
|
+
presentation: S(R.extend({
|
|
613
|
+
strokeEnabled: v.shape.strokeEnabled,
|
|
614
|
+
strokeColor: v.shape.strokeColor,
|
|
615
|
+
strokeWidth: v.shape.strokeWidth,
|
|
616
|
+
labelsVisible: b.boolean().optional()
|
|
606
617
|
}).strict()).optional()
|
|
607
|
-
}).strict(),
|
|
608
|
-
type:
|
|
618
|
+
}).strict(), Xt = L.extend({
|
|
619
|
+
type: b.literal("heatMap"),
|
|
609
620
|
locationType: F,
|
|
610
|
-
presentation:
|
|
611
|
-
heat:
|
|
621
|
+
presentation: S(b.object({
|
|
622
|
+
heat: we.pick({
|
|
612
623
|
radius: !0,
|
|
613
624
|
maxZoom: !0,
|
|
614
625
|
blur: !0,
|
|
615
626
|
changeHeatWhenZooming: !0
|
|
616
627
|
}).partial().strict().optional(),
|
|
617
|
-
value:
|
|
628
|
+
value: me.partial().strict().optional()
|
|
618
629
|
}).strict()).optional()
|
|
619
|
-
}).strict(),
|
|
620
|
-
type:
|
|
621
|
-
data:
|
|
630
|
+
}).strict(), Zt = L.extend({
|
|
631
|
+
type: b.literal("pointConnection"),
|
|
632
|
+
data: Wt.extend({ dimensions: b.array(Vt).length(2) }).strict(),
|
|
622
633
|
locationType: F,
|
|
623
634
|
secondLocationType: F,
|
|
624
|
-
presentation:
|
|
625
|
-
sizing:
|
|
626
|
-
useGeodesicLines:
|
|
627
|
-
lineStyle:
|
|
628
|
-
arrow:
|
|
635
|
+
presentation: S(R.extend({
|
|
636
|
+
sizing: Gt.optional(),
|
|
637
|
+
useGeodesicLines: b.boolean().optional(),
|
|
638
|
+
lineStyle: oe.shape.lineStyle.optional(),
|
|
639
|
+
arrow: xe.partial().strict().optional()
|
|
629
640
|
}).strict()).optional()
|
|
630
|
-
}).strict(),
|
|
631
|
-
Ut,
|
|
632
|
-
Wt,
|
|
633
|
-
Gt,
|
|
641
|
+
}).strict(), Qt = b.discriminatedUnion("type", [
|
|
634
642
|
Kt,
|
|
635
643
|
qt,
|
|
636
|
-
Jt
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
Jt,
|
|
645
|
+
Yt,
|
|
646
|
+
Xt,
|
|
647
|
+
Zt
|
|
648
|
+
]), $t = b.object({
|
|
649
|
+
type: b.literal("map"),
|
|
650
|
+
version: b.literal(1),
|
|
651
|
+
layers: b.array(Qt).min(1).describe("Layers in stacking order, topmost first. Include a map layer explicitly when a basemap is wanted."),
|
|
652
|
+
view: S(Oe.partial().strict()).optional()
|
|
653
|
+
}).strict(), en = b.object({
|
|
654
|
+
data: b.object({ measure: O.omit({ dataLabels: !0 }) }).strict(),
|
|
655
|
+
filterGroup: k.optional(),
|
|
656
|
+
type: b.literal("number"),
|
|
657
|
+
version: b.literal(1)
|
|
658
|
+
}).strict(), tn = S(ce.pick({
|
|
648
659
|
endDateLabel: !0,
|
|
649
660
|
pickerState: !0,
|
|
650
661
|
pickerType: !0,
|
|
@@ -653,32 +664,32 @@ var dt = y.object({
|
|
|
653
664
|
startDateLabel: !0,
|
|
654
665
|
timePickerVisibility: !0,
|
|
655
666
|
weekStart: !0
|
|
656
|
-
}).partial()),
|
|
657
|
-
data:
|
|
667
|
+
}).partial()), nn = b.object({
|
|
668
|
+
data: b.object({ field: D.omit({
|
|
658
669
|
format: !0,
|
|
659
670
|
showNullValues: !0,
|
|
660
671
|
temporalGrouping: !0
|
|
661
672
|
}) }).strict(),
|
|
662
|
-
settings:
|
|
663
|
-
type:
|
|
664
|
-
version:
|
|
665
|
-
}).strict(),
|
|
666
|
-
settings:
|
|
667
|
-
type:
|
|
668
|
-
version:
|
|
669
|
-
}).strict(),
|
|
670
|
-
settings:
|
|
671
|
-
blur:
|
|
672
|
-
fit:
|
|
673
|
-
opacity:
|
|
674
|
-
saturation:
|
|
675
|
-
shadow:
|
|
673
|
+
settings: tn.optional(),
|
|
674
|
+
type: b.literal("date-picker"),
|
|
675
|
+
version: b.literal(1)
|
|
676
|
+
}).strict(), rn = b.object({
|
|
677
|
+
settings: b.object({ url: b.string().url().nullable() }).strict(),
|
|
678
|
+
type: b.literal("iframe"),
|
|
679
|
+
version: b.literal(1)
|
|
680
|
+
}).strict(), an = b.object({
|
|
681
|
+
settings: S(b.object({
|
|
682
|
+
blur: p.shape.blur.optional(),
|
|
683
|
+
fit: p.shape.image.unwrap().shape.imageFit.optional(),
|
|
684
|
+
opacity: p.shape.opacity.optional(),
|
|
685
|
+
saturation: p.shape.saturation.optional(),
|
|
686
|
+
shadow: p.shape.shadow.optional(),
|
|
676
687
|
source: je.optional()
|
|
677
688
|
}).strict()),
|
|
678
|
-
type:
|
|
679
|
-
version:
|
|
680
|
-
}).strict(),
|
|
681
|
-
settings:
|
|
689
|
+
type: b.literal("image"),
|
|
690
|
+
version: b.literal(1)
|
|
691
|
+
}).strict(), on = b.object({
|
|
692
|
+
settings: S(ve.pick({
|
|
682
693
|
backgroundColor: !0,
|
|
683
694
|
backgroundType: !0,
|
|
684
695
|
borderEnabled: !0,
|
|
@@ -693,12 +704,12 @@ var dt = y.object({
|
|
|
693
704
|
shape: !0,
|
|
694
705
|
strokeColor: !0
|
|
695
706
|
}).partial().strict()),
|
|
696
|
-
type:
|
|
697
|
-
version:
|
|
698
|
-
}).strict(), z =
|
|
699
|
-
settings:
|
|
707
|
+
type: b.literal("shape"),
|
|
708
|
+
version: b.literal(1)
|
|
709
|
+
}).strict(), z = _e.shape.simpleTextObjectSettings, sn = b.object({
|
|
710
|
+
settings: S(b.object({
|
|
700
711
|
align: z.shape.align.optional(),
|
|
701
|
-
content:
|
|
712
|
+
content: b.string().optional(),
|
|
702
713
|
fontFamily: z.shape.fontFamily.optional(),
|
|
703
714
|
fontSize: z.shape.fontSize.optional(),
|
|
704
715
|
position: z.shape.position.optional(),
|
|
@@ -707,144 +718,144 @@ var dt = y.object({
|
|
|
707
718
|
textColor: z.shape.textColor.optional(),
|
|
708
719
|
wordWrap: z.shape.wordWrap.optional()
|
|
709
720
|
}).strict()),
|
|
710
|
-
type:
|
|
711
|
-
version:
|
|
712
|
-
}).strict(),
|
|
713
|
-
settings:
|
|
714
|
-
customLabel:
|
|
715
|
-
hideLabel:
|
|
716
|
-
inputType:
|
|
717
|
-
placeholder:
|
|
718
|
-
responsive:
|
|
719
|
-
variableId:
|
|
721
|
+
type: b.literal("simpleTextObject"),
|
|
722
|
+
version: b.literal(1)
|
|
723
|
+
}).strict(), cn = b.object({
|
|
724
|
+
settings: S(b.object({
|
|
725
|
+
customLabel: h.shape.commonSettings.shape.customLabel.optional(),
|
|
726
|
+
hideLabel: h.shape.commonSettings.shape.hideLabel.optional(),
|
|
727
|
+
inputType: h.shape.type.optional(),
|
|
728
|
+
placeholder: h.shape.commonSettings.shape.placeholder.optional(),
|
|
729
|
+
responsive: h.shape.commonSettings.shape.responsive.optional(),
|
|
730
|
+
variableId: h.shape.commonSettings.shape.variableId.optional()
|
|
720
731
|
}).strict()),
|
|
721
|
-
type:
|
|
722
|
-
version:
|
|
723
|
-
}).strict(),
|
|
724
|
-
data:
|
|
732
|
+
type: b.literal("atomic-input"),
|
|
733
|
+
version: b.literal(1)
|
|
734
|
+
}).strict(), ln = b.object({
|
|
735
|
+
data: b.object({ field: D.omit({
|
|
725
736
|
format: !0,
|
|
726
737
|
showNullValues: !0,
|
|
727
738
|
temporalGrouping: !0
|
|
728
739
|
}) }).strict(),
|
|
729
|
-
settings:
|
|
740
|
+
settings: S(Se.pick({
|
|
730
741
|
layout: !0,
|
|
731
742
|
quickSelect: !0,
|
|
732
743
|
range: !0,
|
|
733
744
|
step: !0
|
|
734
745
|
}).partial()).optional(),
|
|
735
|
-
type:
|
|
736
|
-
version:
|
|
737
|
-
}).strict(),
|
|
738
|
-
columns:
|
|
739
|
-
structure:
|
|
740
|
-
}).strict(),
|
|
741
|
-
dimensions:
|
|
742
|
-
measures:
|
|
743
|
-
structure:
|
|
744
|
-
}).strict(),
|
|
745
|
-
columnDimensions:
|
|
746
|
-
measures:
|
|
747
|
-
rowDimensions:
|
|
748
|
-
structure:
|
|
749
|
-
}).strict(),
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
]),
|
|
754
|
-
applyTo:
|
|
755
|
-
enabled:
|
|
756
|
-
showRecordsCount:
|
|
757
|
-
style:
|
|
758
|
-
backgroundColor:
|
|
759
|
-
fontColor:
|
|
746
|
+
type: b.literal("slider"),
|
|
747
|
+
version: b.literal(1)
|
|
748
|
+
}).strict(), un = D.extend({ role: b.literal("dimension") }), B = O.omit({ dataLabels: !0 }), dn = B.extend({ role: b.literal("measure") }), fn = b.object({
|
|
749
|
+
columns: b.array(b.discriminatedUnion("role", [un, dn])).min(1),
|
|
750
|
+
structure: b.literal("normal").optional()
|
|
751
|
+
}).strict(), pn = b.object({
|
|
752
|
+
dimensions: b.array(D).min(1),
|
|
753
|
+
measures: b.array(B).min(1),
|
|
754
|
+
structure: b.literal("expandable")
|
|
755
|
+
}).strict(), mn = b.object({
|
|
756
|
+
columnDimensions: b.array(D).min(1),
|
|
757
|
+
measures: b.array(B).min(1),
|
|
758
|
+
rowDimensions: b.array(D).min(1),
|
|
759
|
+
structure: b.literal("pivot")
|
|
760
|
+
}).strict(), hn = b.union([
|
|
761
|
+
fn,
|
|
762
|
+
pn,
|
|
763
|
+
mn
|
|
764
|
+
]), gn = b.object({
|
|
765
|
+
applyTo: _.shape.applyTo,
|
|
766
|
+
enabled: _.shape.enabled,
|
|
767
|
+
showRecordsCount: _.shape.showRecordsCount,
|
|
768
|
+
style: b.object({
|
|
769
|
+
backgroundColor: m.shape.backgroundColor.optional(),
|
|
770
|
+
fontColor: m.shape.fontColor.optional(),
|
|
760
771
|
fontStyle: g.optional(),
|
|
761
|
-
position:
|
|
762
|
-
responsiveHeight:
|
|
772
|
+
position: m.shape.position.optional(),
|
|
773
|
+
responsiveHeight: m.shape.responsive
|
|
763
774
|
}).strict().optional()
|
|
764
|
-
}).strict(),
|
|
765
|
-
background:
|
|
766
|
-
color:
|
|
767
|
-
evenColor:
|
|
768
|
-
oddColor:
|
|
769
|
-
type:
|
|
775
|
+
}).strict(), _n = b.object({
|
|
776
|
+
background: b.object({
|
|
777
|
+
color: i.optional(),
|
|
778
|
+
evenColor: i.optional(),
|
|
779
|
+
oddColor: i.optional(),
|
|
780
|
+
type: b.enum([
|
|
770
781
|
"none",
|
|
771
782
|
"single",
|
|
772
783
|
"zebra"
|
|
773
784
|
])
|
|
774
785
|
}).strict().optional(),
|
|
775
|
-
body:
|
|
776
|
-
fontColor:
|
|
777
|
-
fontFamily:
|
|
778
|
-
fontSize:
|
|
786
|
+
body: b.object({
|
|
787
|
+
fontColor: i.optional(),
|
|
788
|
+
fontFamily: b.string().trim().min(1).optional(),
|
|
789
|
+
fontSize: b.number().positive().optional(),
|
|
779
790
|
fontStyle: g.optional(),
|
|
780
|
-
horizontalAlign:
|
|
791
|
+
horizontalAlign: b.enum([
|
|
781
792
|
"auto",
|
|
782
793
|
"center",
|
|
783
794
|
"left",
|
|
784
795
|
"right"
|
|
785
796
|
]).optional(),
|
|
786
|
-
verticalAlign:
|
|
797
|
+
verticalAlign: b.enum([
|
|
787
798
|
"auto",
|
|
788
799
|
"bottom",
|
|
789
800
|
"middle",
|
|
790
801
|
"top"
|
|
791
802
|
]).optional()
|
|
792
803
|
}).strict().optional(),
|
|
793
|
-
borders:
|
|
794
|
-
color:
|
|
795
|
-
dividerColor:
|
|
796
|
-
dividers:
|
|
804
|
+
borders: b.object({
|
|
805
|
+
color: i.optional(),
|
|
806
|
+
dividerColor: i.optional(),
|
|
807
|
+
dividers: b.enum([
|
|
797
808
|
"all",
|
|
798
809
|
"auto",
|
|
799
810
|
"horizontal",
|
|
800
811
|
"none",
|
|
801
812
|
"vertical"
|
|
802
813
|
]).optional(),
|
|
803
|
-
enabled:
|
|
804
|
-
lineStyle:
|
|
814
|
+
enabled: b.boolean(),
|
|
815
|
+
lineStyle: b.enum([
|
|
805
816
|
"dashed",
|
|
806
817
|
"dotted",
|
|
807
818
|
"line"
|
|
808
819
|
]).optional(),
|
|
809
|
-
radius:
|
|
810
|
-
strokeWidth:
|
|
820
|
+
radius: b.number().nonnegative().optional(),
|
|
821
|
+
strokeWidth: b.number().nonnegative().optional()
|
|
811
822
|
}).strict().optional(),
|
|
812
|
-
header:
|
|
813
|
-
backgroundColor:
|
|
814
|
-
borderColor:
|
|
815
|
-
fontColor:
|
|
816
|
-
fontFamily:
|
|
817
|
-
fontSize:
|
|
823
|
+
header: b.object({
|
|
824
|
+
backgroundColor: i.optional(),
|
|
825
|
+
borderColor: i.optional(),
|
|
826
|
+
fontColor: i.optional(),
|
|
827
|
+
fontFamily: b.string().trim().min(1).optional(),
|
|
828
|
+
fontSize: b.number().positive().optional(),
|
|
818
829
|
fontStyle: g.optional(),
|
|
819
|
-
responsiveHeight:
|
|
830
|
+
responsiveHeight: b.boolean().optional()
|
|
820
831
|
}).strict().optional(),
|
|
821
|
-
highlight:
|
|
822
|
-
backgroundColor:
|
|
823
|
-
mode:
|
|
832
|
+
highlight: b.object({
|
|
833
|
+
backgroundColor: i.optional(),
|
|
834
|
+
mode: b.enum([
|
|
824
835
|
"column",
|
|
825
836
|
"none",
|
|
826
837
|
"row",
|
|
827
838
|
"row-and-column"
|
|
828
839
|
]),
|
|
829
|
-
textColor:
|
|
840
|
+
textColor: i.optional()
|
|
830
841
|
}).strict().optional(),
|
|
831
|
-
layout:
|
|
832
|
-
columnWidthBehavior:
|
|
833
|
-
rowHeight:
|
|
842
|
+
layout: b.object({
|
|
843
|
+
columnWidthBehavior: b.enum(["responsive", "static"]).optional(),
|
|
844
|
+
rowHeight: b.number().positive().optional()
|
|
834
845
|
}).strict().optional()
|
|
835
|
-
}).strict(),
|
|
836
|
-
data:
|
|
837
|
-
filterGroup:
|
|
838
|
-
limiting:
|
|
839
|
-
presentation:
|
|
840
|
-
sorting:
|
|
841
|
-
totals:
|
|
842
|
-
type:
|
|
843
|
-
version:
|
|
844
|
-
}).strict(), V = (e) => typeof e == "object" && !!e && !Array.isArray(e),
|
|
846
|
+
}).strict(), vn = b.object({
|
|
847
|
+
data: hn,
|
|
848
|
+
filterGroup: k.optional(),
|
|
849
|
+
limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
|
|
850
|
+
presentation: _n.optional(),
|
|
851
|
+
sorting: b.array(A).optional(),
|
|
852
|
+
totals: gn.optional(),
|
|
853
|
+
type: b.literal("table"),
|
|
854
|
+
version: b.literal(1)
|
|
855
|
+
}).strict(), V = (e) => typeof e == "object" && !!e && !Array.isArray(e), yn = (e) => {
|
|
845
856
|
let t = e.fieldKey ?? e.key;
|
|
846
857
|
return typeof t == "string" ? t : void 0;
|
|
847
|
-
},
|
|
858
|
+
}, bn = (e) => {
|
|
848
859
|
if (Array.isArray(e)) return e;
|
|
849
860
|
if (!V(e)) throw Error("Available field metadata must be an array or an object.");
|
|
850
861
|
return [
|
|
@@ -857,10 +868,10 @@ var dt = y.object({
|
|
|
857
868
|
if (!Array.isArray(n)) throw Error(`Available field metadata "${t}" must be an array.`);
|
|
858
869
|
return n;
|
|
859
870
|
});
|
|
860
|
-
},
|
|
871
|
+
}, xn = (e, t) => {
|
|
861
872
|
let n = e.type;
|
|
862
873
|
if (!(n === "dimension" && V(e.dimension) || n === "measure" && V(e.measure) || n === "calculation" && V(e.calculation))) return;
|
|
863
|
-
let r =
|
|
874
|
+
let r = E.safeParse({
|
|
864
875
|
fieldKey: e.key,
|
|
865
876
|
item: e,
|
|
866
877
|
kind: n,
|
|
@@ -868,20 +879,20 @@ var dt = y.object({
|
|
|
868
879
|
});
|
|
869
880
|
if (!r.success) throw Error(`Invalid available semantic item at index ${t}: ${r.error.message}`);
|
|
870
881
|
return r.data;
|
|
871
|
-
},
|
|
882
|
+
}, Sn = (e, t) => {
|
|
872
883
|
if (!V(e)) throw Error(`Available field at index ${t} must be an object.`);
|
|
873
|
-
let n =
|
|
884
|
+
let n = E.safeParse(e);
|
|
874
885
|
if (n.success) return n.data;
|
|
875
|
-
let r =
|
|
886
|
+
let r = xn(e, t);
|
|
876
887
|
if (r) return r;
|
|
877
|
-
let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a =
|
|
888
|
+
let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = E.safeParse({
|
|
878
889
|
aggregations: i.map((e) => V(e) ? {
|
|
879
890
|
distinct: e.distinct,
|
|
880
891
|
name: e.name ?? e.funcName,
|
|
881
892
|
resultType: e.resultType
|
|
882
893
|
} : e),
|
|
883
894
|
dataType: e.dataType,
|
|
884
|
-
fieldKey:
|
|
895
|
+
fieldKey: yn(e),
|
|
885
896
|
isManualData: e.isManualData,
|
|
886
897
|
kind: "field",
|
|
887
898
|
name: e.name,
|
|
@@ -889,52 +900,52 @@ var dt = y.object({
|
|
|
889
900
|
});
|
|
890
901
|
if (!a.success) throw Error(`Invalid available field at index ${t}: ${a.error.message}`);
|
|
891
902
|
return a.data;
|
|
892
|
-
},
|
|
893
|
-
let t =
|
|
903
|
+
}, Cn = (e) => {
|
|
904
|
+
let t = bn(e).map(Sn), n = /* @__PURE__ */ new Map();
|
|
894
905
|
return t.forEach((e, t) => {
|
|
895
906
|
let r = n.get(e.fieldKey);
|
|
896
907
|
if (r !== void 0) throw Error(`Duplicate available field key "${e.fieldKey}" at indexes ${r} and ${t}.`);
|
|
897
908
|
n.set(e.fieldKey, t);
|
|
898
909
|
}), t;
|
|
899
|
-
},
|
|
910
|
+
}, wn = (e) => e.kind === "field" ? [...new Set(e.aggregations.flatMap((e) => [e.name, ...e.distinct ? [`${e.name}_DISTINCT`] : []]))] : [], Tn = (e, t) => e.kind === "field" || t === "dimension" && e.kind === "dimension" || t === "measure" && (e.kind === "measure" || e.kind === "calculation"), En = (e) => {
|
|
900
911
|
if (e.kind !== "dimension") return e.kind;
|
|
901
|
-
},
|
|
902
|
-
...
|
|
903
|
-
id:
|
|
904
|
-
}),
|
|
905
|
-
aggregators: e
|
|
912
|
+
}, Dn = (t) => ({
|
|
913
|
+
...e(t.item),
|
|
914
|
+
id: t.item.id ?? t.fieldKey
|
|
915
|
+
}), On = (e) => e.map((e) => e.kind === "dimension" ? u(Dn(e)) : e.kind === "measure" || e.kind === "calculation" ? l(Dn(e)) : {
|
|
916
|
+
aggregators: d(e.aggregations.map((e) => ({
|
|
906
917
|
distinct: e.distinct ?? !1,
|
|
907
918
|
name: e.name,
|
|
908
919
|
resultType: e.resultType
|
|
909
920
|
}))),
|
|
910
|
-
dataType:
|
|
911
|
-
isManualData:
|
|
912
|
-
key:
|
|
913
|
-
name:
|
|
914
|
-
view:
|
|
915
|
-
views: [
|
|
916
|
-
}),
|
|
921
|
+
dataType: e.dataType,
|
|
922
|
+
isManualData: e.isManualData,
|
|
923
|
+
key: e.fieldKey,
|
|
924
|
+
name: e.name,
|
|
925
|
+
view: e.view,
|
|
926
|
+
views: [e.view]
|
|
927
|
+
}), kn = (e, t) => {
|
|
917
928
|
let n = Math.min(e.length, t.length), r = 0;
|
|
918
929
|
for (; r < n && e[r].toLocaleLowerCase() === t[r].toLocaleLowerCase();) r += 1;
|
|
919
930
|
return r;
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
],
|
|
931
|
+
}, An = (e, t) => [...t].sort((t, n) => kn(e, n.fieldKey) - kn(e, t.fieldKey) || t.fieldKey.localeCompare(n.fieldKey)).slice(0, 5).map((e) => e.fieldKey), jn = [
|
|
932
|
+
x.FieldType.DATE,
|
|
933
|
+
x.FieldType.TIME,
|
|
934
|
+
x.FieldType.TIMESTAMP,
|
|
935
|
+
x.FieldType.TIMESTAMP_TZ
|
|
936
|
+
], H = (e, t, n, r) => ({
|
|
926
937
|
...r ? { allowedValues: r } : {},
|
|
927
938
|
code: e,
|
|
928
939
|
message: n,
|
|
929
940
|
path: t
|
|
930
|
-
}),
|
|
941
|
+
}), Mn = (e) => wn(e).filter((e) => !!o(e)), U = (e, t) => {
|
|
931
942
|
let n = t.find((t) => t.fieldKey === e.fieldKey);
|
|
932
|
-
return n?.kind === "field" ?
|
|
933
|
-
},
|
|
943
|
+
return n?.kind === "field" ? Mn(n).find((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) : void 0;
|
|
944
|
+
}, Nn = (e, t) => {
|
|
934
945
|
let n = t.find((t) => t.fieldKey === e.fieldKey);
|
|
935
|
-
return n?.kind === "measure" ? n.item.measure.aggregation :
|
|
936
|
-
},
|
|
937
|
-
let r = t.find((t) => t.fieldKey === e.fieldKey), i = r ?
|
|
946
|
+
return n?.kind === "measure" ? n.item.measure.aggregation : U(e, t);
|
|
947
|
+
}, Pn = (e, t, n = {}) => {
|
|
948
|
+
let r = t.find((t) => t.fieldKey === e.fieldKey), i = r ? En(r) : void 0, a = U(e, t);
|
|
938
949
|
return {
|
|
939
950
|
...n,
|
|
940
951
|
key: e.fieldKey,
|
|
@@ -943,30 +954,30 @@ var dt = y.object({
|
|
|
943
954
|
};
|
|
944
955
|
}, W = (e, t, n, r) => {
|
|
945
956
|
let i = t.find((t) => t.fieldKey === e.fieldKey);
|
|
946
|
-
if (!i) return [
|
|
947
|
-
if (!
|
|
948
|
-
if (r !== "measure") return e.temporalGrouping ?
|
|
949
|
-
if (i.kind !== "field") return e.aggregation === void 0 ? [] : [
|
|
950
|
-
let a =
|
|
951
|
-
return e.aggregation ? a.some((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) ? [] : [
|
|
952
|
-
},
|
|
957
|
+
if (!i) return [H("unknown_field_key", [...n, "fieldKey"], `Field key "${e.fieldKey}" is not available.`, An(e.fieldKey, t))];
|
|
958
|
+
if (!Tn(i, r)) return [H("invalid_field_role", [...n, "fieldKey"], `Available item "${e.fieldKey}" of kind "${i.kind}" cannot be used as a ${r}.`)];
|
|
959
|
+
if (r !== "measure") return e.temporalGrouping ? In(e, t, n, jn, "a temporally grouped dimension") : [];
|
|
960
|
+
if (i.kind !== "field") return e.aggregation === void 0 ? [] : [H("invalid_aggregation", [...n, "aggregation"], `Aggregation must be omitted for semantic ${i.kind} "${e.fieldKey}".`)];
|
|
961
|
+
let a = Mn(i);
|
|
962
|
+
return e.aggregation ? a.some((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) ? [] : [H("invalid_aggregation", [...n, "aggregation"], `Aggregation "${e.aggregation}" is not available for field key "${e.fieldKey}".`, a)] : [H("invalid_aggregation", [...n, "aggregation"], `Aggregation is required for raw field "${e.fieldKey}" when it is used as a measure.`, a)];
|
|
963
|
+
}, Fn = (e, t, n, r) => e.flatMap((e, i) => W(e, t, [...n, i], r)), In = (e, t, n, r, i) => {
|
|
953
964
|
let a = t.find((t) => t.fieldKey === e.fieldKey);
|
|
954
|
-
return a?.kind !== "field" || r.includes(a.dataType) ? [] : [
|
|
955
|
-
},
|
|
965
|
+
return a?.kind !== "field" || r.includes(a.dataType) ? [] : [H("invalid_field_role", [...n, "fieldKey"], `Raw field "${e.fieldKey}" has data type "${a.dataType}" and cannot be used as ${i}.`, [...r])];
|
|
966
|
+
}, Ln = (e, t, n = ["filterGroup"]) => e ? e.filters.flatMap((e, r) => {
|
|
956
967
|
let i = [
|
|
957
968
|
...n,
|
|
958
969
|
"filters",
|
|
959
970
|
r
|
|
960
971
|
];
|
|
961
|
-
if ("filters" in e) return
|
|
972
|
+
if ("filters" in e) return Ln(e, t, i);
|
|
962
973
|
let a = W({
|
|
963
974
|
fieldKey: e.fieldKey,
|
|
964
975
|
ref: `filter:${r}`
|
|
965
976
|
}, t, i, "dimension");
|
|
966
|
-
return a.length > 0 ? a :
|
|
967
|
-
}) : [],
|
|
977
|
+
return a.length > 0 ? a : Rn(e.fieldKey, t, i);
|
|
978
|
+
}) : [], Rn = (e, t, n) => {
|
|
968
979
|
let r = t.find((t) => t.fieldKey === e);
|
|
969
|
-
return r?.kind !== "field" || r.dataType === void 0 || r.dataType ===
|
|
980
|
+
return r?.kind !== "field" || r.dataType === void 0 || r.dataType === x.FieldType.STRING ? [] : [H("invalid_filter", [...n, "fieldKey"], `Static filters only support string fields, but "${e}" has data type "${r.dataType}". Filter a string field instead.`)];
|
|
970
981
|
}, G = (e) => e.reduce((e, t) => typeof t == "number" ? `${e}[${t}]` : /^[A-Za-z_$][\w$]*$/.test(t) ? e ? `${e}.${t}` : t : `${e}[${JSON.stringify(t)}]`, "") || "definition", K = (e) => {
|
|
971
982
|
if (typeof e == "number" && !Number.isFinite(e)) return String(e);
|
|
972
983
|
try {
|
|
@@ -974,14 +985,14 @@ var dt = y.object({
|
|
|
974
985
|
} catch {
|
|
975
986
|
return String(e);
|
|
976
987
|
}
|
|
977
|
-
}, q = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e),
|
|
988
|
+
}, q = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e), zn = (e) => {
|
|
978
989
|
if (e.code === "invalid_value") return e.values;
|
|
979
990
|
if (e.code !== "invalid_union" || e.errors.length === 0) return;
|
|
980
|
-
let t = e.errors.map((e) => e.length === 1 && e[0].path.length === 0 ?
|
|
991
|
+
let t = e.errors.map((e) => e.length === 1 && e[0].path.length === 0 ? zn(e[0]) : void 0);
|
|
981
992
|
return t.every((e) => e !== void 0) ? [...new Set(t.flat())] : void 0;
|
|
982
|
-
},
|
|
983
|
-
let r = (e, n) => e.code === "invalid_union" && e.path.length === 0 ? e.errors.length > 0 && e.errors.every((e) => e.some((e) => r(e, n))) : e.code === "invalid_value" && e.path.length === 1 && q(t, [...n, ...
|
|
984
|
-
let o = [...a, ...
|
|
993
|
+
}, Bn = (e) => e.filter((e) => typeof e != "symbol"), Vn = (e, t, n = []) => {
|
|
994
|
+
let r = (e, n) => e.code === "invalid_union" && e.path.length === 0 ? e.errors.length > 0 && e.errors.every((e) => e.some((e) => r(e, n))) : e.code === "invalid_value" && e.path.length === 1 && q(t, [...n, ...Bn(e.path)]) !== void 0, i = (e, a) => {
|
|
995
|
+
let o = [...a, ...Bn(e.path)];
|
|
985
996
|
if (e.code === "unrecognized_keys") return e.keys.map((r) => {
|
|
986
997
|
let i = [
|
|
987
998
|
...n,
|
|
@@ -998,7 +1009,7 @@ var dt = y.object({
|
|
|
998
1009
|
}
|
|
999
1010
|
};
|
|
1000
1011
|
});
|
|
1001
|
-
let s = [...n, ...o], c = q(t, o), l =
|
|
1012
|
+
let s = [...n, ...o], c = q(t, o), l = zn(e), u = {
|
|
1002
1013
|
received: c,
|
|
1003
1014
|
zodCode: e.code
|
|
1004
1015
|
}, d = l ? `Unsupported value ${K(c)}. Allowed values: ${l.map(K).join(", ")}.` : `${e.message}. Received: ${K(c)}.`;
|
|
@@ -1018,31 +1029,31 @@ var dt = y.object({
|
|
|
1018
1029
|
};
|
|
1019
1030
|
return e.issues.flatMap((e) => i(e, []));
|
|
1020
1031
|
};
|
|
1021
|
-
|
|
1022
|
-
var
|
|
1023
|
-
let
|
|
1024
|
-
return t.visible !== void 0 && (t.visible ||
|
|
1032
|
+
a();
|
|
1033
|
+
var Hn = (e, t) => {
|
|
1034
|
+
let n = "legend" in e && !!e.legend, r = t.position !== void 0 || t.title !== void 0, i = [];
|
|
1035
|
+
return t.visible !== void 0 && (t.visible || r || n) ? i.push({
|
|
1025
1036
|
name: "setLegendEnabled",
|
|
1026
1037
|
payload: t.visible
|
|
1027
|
-
}) : t.visible === void 0 &&
|
|
1038
|
+
}) : t.visible === void 0 && r && !n && i.push({
|
|
1028
1039
|
name: "setLegendEnabled",
|
|
1029
1040
|
payload: !0
|
|
1030
|
-
}), t.position === void 0 ? (t.visible === !0 ||
|
|
1041
|
+
}), t.position === void 0 ? (t.visible === !0 || r && !n) && i.push({
|
|
1031
1042
|
name: "setLegendPosition",
|
|
1032
|
-
payload:
|
|
1033
|
-
}) :
|
|
1043
|
+
payload: c.Right
|
|
1044
|
+
}) : i.push({
|
|
1034
1045
|
name: "setLegendPosition",
|
|
1035
1046
|
payload: t.position
|
|
1036
|
-
}), t.title !== void 0 &&
|
|
1047
|
+
}), t.title !== void 0 && i.push({
|
|
1037
1048
|
name: "setLegendTitle",
|
|
1038
1049
|
payload: t.title
|
|
1039
|
-
}),
|
|
1050
|
+
}), i;
|
|
1040
1051
|
}, J = (e, t, n, r = {}) => ({
|
|
1041
1052
|
code: e,
|
|
1042
1053
|
message: n,
|
|
1043
1054
|
path: t,
|
|
1044
1055
|
...r
|
|
1045
|
-
}),
|
|
1056
|
+
}), Un = (e, t, n, r, i, a) => ({
|
|
1046
1057
|
name: e,
|
|
1047
1058
|
payload: {
|
|
1048
1059
|
...Y(t),
|
|
@@ -1058,7 +1069,7 @@ var zn = (e, t) => {
|
|
|
1058
1069
|
ref: n,
|
|
1059
1070
|
kind: t.kind
|
|
1060
1071
|
}
|
|
1061
|
-
}),
|
|
1072
|
+
}), Wn = (e, t, n, r, i, a, o) => ({
|
|
1062
1073
|
name: e,
|
|
1063
1074
|
payload: {
|
|
1064
1075
|
name: t,
|
|
@@ -1077,7 +1088,7 @@ var zn = (e, t) => {
|
|
|
1077
1088
|
}), Y = (e) => ({
|
|
1078
1089
|
dataItemInternalKey: e.dataItemInternalKey,
|
|
1079
1090
|
dataItemUniqueSignature: e.dataItemUniqueSignature
|
|
1080
|
-
}),
|
|
1091
|
+
}), Gn = (e) => {
|
|
1081
1092
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
1082
1093
|
return e.forEach(({ items: e, path: r }) => {
|
|
1083
1094
|
e.forEach((e, i) => {
|
|
@@ -1088,15 +1099,15 @@ var zn = (e, t) => {
|
|
|
1088
1099
|
], `Reference "${e.ref}" is duplicated.`)), n.add(e.ref);
|
|
1089
1100
|
});
|
|
1090
1101
|
}), t;
|
|
1091
|
-
},
|
|
1102
|
+
}, Kn = (e, t) => {
|
|
1092
1103
|
let n = e, r = n.referencedData;
|
|
1093
1104
|
return t.every((e) => !Array.isArray(n[e]) || n[e].length === 0) && (typeof r != "object" || !r || Object.keys(r).length === 0);
|
|
1094
|
-
},
|
|
1095
|
-
availableFields:
|
|
1105
|
+
}, qn = (e, t) => ({
|
|
1106
|
+
availableFields: On(e.availableFields),
|
|
1096
1107
|
input: e,
|
|
1097
1108
|
resolvedRefs: {},
|
|
1098
1109
|
vSpec: t
|
|
1099
|
-
}),
|
|
1110
|
+
}), Jn = (e, t, n, r, i) => ({
|
|
1100
1111
|
name: e,
|
|
1101
1112
|
payload: {
|
|
1102
1113
|
...Y(t),
|
|
@@ -1108,7 +1119,7 @@ var zn = (e, t) => {
|
|
|
1108
1119
|
ref: n,
|
|
1109
1120
|
kind: t.kind
|
|
1110
1121
|
}
|
|
1111
|
-
}),
|
|
1122
|
+
}), Yn = (e) => "value" in e ? { value: e.value } : "values" in e ? {
|
|
1112
1123
|
secondValue: e.values.join(","),
|
|
1113
1124
|
value: ","
|
|
1114
1125
|
} : "valueFrom" in e ? {
|
|
@@ -1118,14 +1129,14 @@ var zn = (e, t) => {
|
|
|
1118
1129
|
filters: e.filters.map((e) => "filters" in e ? X(e) : {
|
|
1119
1130
|
fieldKey: e.fieldKey,
|
|
1120
1131
|
operator: e.operator,
|
|
1121
|
-
values:
|
|
1132
|
+
values: Yn(e)
|
|
1122
1133
|
}),
|
|
1123
1134
|
operator: e.operator
|
|
1124
|
-
}),
|
|
1135
|
+
}), Xn = (e, t) => (e ?? []).flatMap((e, n) => t.includes(e.by) ? [] : [J("unknown_alias", [
|
|
1125
1136
|
"sorting",
|
|
1126
1137
|
n,
|
|
1127
1138
|
"by"
|
|
1128
|
-
], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), Z = ["presentation", "coloring"],
|
|
1139
|
+
], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), Z = ["presentation", "coloring"], Zn = (e, t, n) => [...(e?.overwrites ?? []).flatMap(({ dimension: e }, n) => e === void 0 || t.includes(e) ? [] : [J("unknown_alias", [
|
|
1129
1140
|
...Z,
|
|
1130
1141
|
"overwrites",
|
|
1131
1142
|
n,
|
|
@@ -1135,7 +1146,7 @@ var zn = (e, t) => {
|
|
|
1135
1146
|
"rules",
|
|
1136
1147
|
t,
|
|
1137
1148
|
"measure"
|
|
1138
|
-
], `Measure reference "${e}" does not exist.`, { allowedValues: n })])],
|
|
1149
|
+
], `Measure reference "${e}" does not exist.`, { allowedValues: n })])], Qn = (e, t) => {
|
|
1139
1150
|
let n = t.safeParse(e.vSpec);
|
|
1140
1151
|
return n.success ? {
|
|
1141
1152
|
resolvedRefs: e.resolvedRefs,
|
|
@@ -1145,10 +1156,10 @@ var zn = (e, t) => {
|
|
|
1145
1156
|
issues: [J("invalid_compiled_vspec", [], "Compiled vSpec failed final validation.", { details: { issues: n.error.issues } })],
|
|
1146
1157
|
success: !1
|
|
1147
1158
|
};
|
|
1148
|
-
}, Q = (e) => "startsAtZero" in e ? {} : e,
|
|
1149
|
-
let { max:
|
|
1150
|
-
return
|
|
1151
|
-
},
|
|
1159
|
+
}, Q = (e) => "startsAtZero" in e ? {} : e, $n = (e) => {
|
|
1160
|
+
let { max: n, min: r } = Q(e);
|
|
1161
|
+
return r !== void 0 && n !== void 0 ? t.MinMax : r === void 0 ? n === void 0 ? t.Auto : t.Max : t.Min;
|
|
1162
|
+
}, er = (e) => {
|
|
1152
1163
|
for (let [t, n] of Object.entries(e ?? {})) {
|
|
1153
1164
|
let { max: e, min: r } = n?.range ? Q(n.range) : {};
|
|
1154
1165
|
if (r !== void 0 && e !== void 0 && r >= e) return J("invalid_structure", [
|
|
@@ -1159,10 +1170,10 @@ var zn = (e, t) => {
|
|
|
1159
1170
|
"min"
|
|
1160
1171
|
], `Axis range min (${r}) must be less than max (${e}).`);
|
|
1161
1172
|
}
|
|
1162
|
-
},
|
|
1173
|
+
}, tr = (e, t) => {
|
|
1163
1174
|
let n = [];
|
|
1164
1175
|
t.inverted !== void 0 && n.push({
|
|
1165
|
-
name:
|
|
1176
|
+
name: y.SET_INVERT_AXIS,
|
|
1166
1177
|
payload: {
|
|
1167
1178
|
axisName: e,
|
|
1168
1179
|
invertAxis: t.inverted
|
|
@@ -1171,27 +1182,27 @@ var zn = (e, t) => {
|
|
|
1171
1182
|
let { range: r } = t;
|
|
1172
1183
|
if (r) {
|
|
1173
1184
|
n.push({
|
|
1174
|
-
name:
|
|
1185
|
+
name: y.SET_AXIS_RANGE_OPTION,
|
|
1175
1186
|
payload: {
|
|
1176
1187
|
axisName: e,
|
|
1177
|
-
axisRangeOption:
|
|
1188
|
+
axisRangeOption: $n(r)
|
|
1178
1189
|
}
|
|
1179
1190
|
});
|
|
1180
1191
|
let { max: t, min: i } = Q(r);
|
|
1181
1192
|
i !== void 0 && n.push({
|
|
1182
|
-
name:
|
|
1193
|
+
name: y.SET_AXIS_RANGE_MIN,
|
|
1183
1194
|
payload: {
|
|
1184
1195
|
axisName: e,
|
|
1185
1196
|
minValue: i
|
|
1186
1197
|
}
|
|
1187
1198
|
}), t !== void 0 && n.push({
|
|
1188
|
-
name:
|
|
1199
|
+
name: y.SET_AXIS_RANGE_MAX,
|
|
1189
1200
|
payload: {
|
|
1190
1201
|
axisName: e,
|
|
1191
1202
|
maxValue: t
|
|
1192
1203
|
}
|
|
1193
1204
|
}), "startsAtZero" in r && n.push({
|
|
1194
|
-
name:
|
|
1205
|
+
name: y.SET_AXIS_STARTS_AT_ZERO,
|
|
1195
1206
|
payload: {
|
|
1196
1207
|
axisName: e,
|
|
1197
1208
|
startsAtZero: r.startsAtZero
|
|
@@ -1199,7 +1210,7 @@ var zn = (e, t) => {
|
|
|
1199
1210
|
});
|
|
1200
1211
|
}
|
|
1201
1212
|
return n;
|
|
1202
|
-
},
|
|
1213
|
+
}, nr = (e) => {
|
|
1203
1214
|
let t = Object.entries(e).find(([, e]) => e.success === !1);
|
|
1204
1215
|
return t ? {
|
|
1205
1216
|
id: t[0],
|
|
@@ -1213,7 +1224,7 @@ var zn = (e, t) => {
|
|
|
1213
1224
|
id: e,
|
|
1214
1225
|
name: t,
|
|
1215
1226
|
payload: n
|
|
1216
|
-
})), e.input.variables ?? [], [], e.input.theme), a =
|
|
1227
|
+
})), e.input.variables ?? [], [], e.input.theme), a = nr(i.results);
|
|
1217
1228
|
if (!a) return {
|
|
1218
1229
|
state: {
|
|
1219
1230
|
...e,
|
|
@@ -1235,7 +1246,7 @@ var zn = (e, t) => {
|
|
|
1235
1246
|
} }),
|
|
1236
1247
|
success: !1
|
|
1237
1248
|
};
|
|
1238
|
-
},
|
|
1249
|
+
}, rr = (e, t) => {
|
|
1239
1250
|
if (!e || typeof e.data != "object" || e.data === null || !("dataItem" in e.data)) return;
|
|
1240
1251
|
let n = e.data.dataItem;
|
|
1241
1252
|
if (!(typeof n != "object" || !n || !("internalKey" in n) || typeof n.internalKey != "string" || !("uniqueSignature" in n) || typeof n.uniqueSignature != "string")) return {
|
|
@@ -1243,12 +1254,12 @@ var zn = (e, t) => {
|
|
|
1243
1254
|
dataItemUniqueSignature: n.uniqueSignature,
|
|
1244
1255
|
kind: t
|
|
1245
1256
|
};
|
|
1246
|
-
},
|
|
1257
|
+
}, ir = async (e, t, n, r, i, a) => {
|
|
1247
1258
|
let o = `${n}:${t.ref}`, s = await Me(e.vSpec, e.availableFields, [{
|
|
1248
1259
|
id: o,
|
|
1249
1260
|
name: r,
|
|
1250
1261
|
payload: i
|
|
1251
|
-
}], e.input.variables ?? [], [], e.input.theme), c =
|
|
1262
|
+
}], e.input.variables ?? [], [], e.input.theme), c = nr(s.results), l = rr(s.results[o], n);
|
|
1252
1263
|
return c || !l ? {
|
|
1253
1264
|
issue: J("operation_failed", a, c?.result.error ?? `${n} operation did not return the created data-item identity.`),
|
|
1254
1265
|
success: !1
|
|
@@ -1263,7 +1274,7 @@ var zn = (e, t) => {
|
|
|
1263
1274
|
},
|
|
1264
1275
|
success: !0
|
|
1265
1276
|
};
|
|
1266
|
-
},
|
|
1277
|
+
}, ar = (e, t, n, r) => {
|
|
1267
1278
|
let i = [
|
|
1268
1279
|
"formatType",
|
|
1269
1280
|
"formatString",
|
|
@@ -1275,23 +1286,23 @@ var zn = (e, t) => {
|
|
|
1275
1286
|
let o = e.resolvedRefs[t.ref];
|
|
1276
1287
|
return i.flatMap((e) => {
|
|
1277
1288
|
let i = t.format?.[e], s = n[e];
|
|
1278
|
-
return i !== void 0 && s ? [
|
|
1289
|
+
return i !== void 0 && s ? [Un(s, o, t.ref, t.path ?? [...r, a], e, i)] : [];
|
|
1279
1290
|
});
|
|
1280
1291
|
}), r);
|
|
1281
|
-
},
|
|
1292
|
+
}, or = (e, t, n, r) => $(e, t.flatMap((t, i) => t.temporalGrouping ? [Jn(n, e.resolvedRefs[t.ref], t.ref, t.path ?? [...r, i], t.temporalGrouping)] : []), r), sr = (e, t, n, r) => $(e, t.flatMap((t) => t.showNullValues === void 0 ? [] : [{
|
|
1282
1293
|
name: n,
|
|
1283
1294
|
payload: {
|
|
1284
1295
|
...Y(e.resolvedRefs[t.ref]),
|
|
1285
1296
|
changes: { showNullValues: t.showNullValues }
|
|
1286
1297
|
}
|
|
1287
|
-
}]), r),
|
|
1298
|
+
}]), r), cr = (e, t) => t ? $(e, [{
|
|
1288
1299
|
id: "filterGroup",
|
|
1289
1300
|
name: "setStaticFilterGroup",
|
|
1290
1301
|
payload: X(t)
|
|
1291
1302
|
}], ["filterGroup"]) : Promise.resolve({
|
|
1292
1303
|
state: e,
|
|
1293
1304
|
success: !0
|
|
1294
|
-
}),
|
|
1305
|
+
}), lr = (e, t, n, r) => {
|
|
1295
1306
|
if (!t?.length) return Promise.resolve({
|
|
1296
1307
|
state: e,
|
|
1297
1308
|
success: !0
|
|
@@ -1318,7 +1329,7 @@ var zn = (e, t) => {
|
|
|
1318
1329
|
enabled: t.enabled ?? !0
|
|
1319
1330
|
}
|
|
1320
1331
|
}))], ["sorting"]);
|
|
1321
|
-
},
|
|
1332
|
+
}, ur = (e, t) => {
|
|
1322
1333
|
let n = [];
|
|
1323
1334
|
return t?.overwrites && n.push({
|
|
1324
1335
|
name: Ae.SET_COLORING_OVERWRITES,
|
|
@@ -1334,4 +1345,4 @@ var zn = (e, t) => {
|
|
|
1334
1345
|
})) }
|
|
1335
1346
|
}), $(e, n, Z);
|
|
1336
1347
|
};
|
|
1337
|
-
export {
|
|
1348
|
+
export { Ot as $, Fn as A, on as B, Gn as C, Pn as D, U as E, vn as F, Bt as G, sn as H, cn as I, Dt as J, It as K, nn as L, In as M, Cn as N, Nn as O, On as P, Ct as Q, rn as R, Zn as S, Vn as T, en as U, ln as V, $t as W, Et as X, xt as Y, wt as Z, er as _, ar as a, Mt as at, X as b, tr as c, E as ct, J as d, Tt as et, Hn as f, Qn as g, $ as h, cr as i, At as it, Ln as j, W as k, Un as l, Pe as lt, Jn as m, ur as n, St as nt, lr as o, Nt as ot, Wn as p, bt as q, sr as r, kt as rt, or as s, _t as st, ir as t, jt as tt, qn as u, Kn as v, G as w, Xn as x, Y as y, an as z };
|