@astrato-io/visualizations 0.10.1 → 0.11.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 +11 -1
- package/README.md +19 -1
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +6 -145
- package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
- package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
- package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
- package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
- package/chunks/category-axis-D1OVyMrr.js +20 -0
- package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
- package/chunks/defaults-B5_8S-J-.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
- package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
- package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
- package/chunks/line.compiler-DCv3h42f.js +198 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
- package/chunks/measure-format-default-B6ghxih7.js +22 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
- package/chunks/number.compiler-kV4lobCZ.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
- package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
- package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
- package/chunks/standalone-06i1wmIX.js +6 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
- package/chunks/standalone-B6zUvxNQ.js +357 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
- package/chunks/standalone-Be5APcVv.js +762 -0
- package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
- package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
- package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
- package/chunks/standalone-BuXpKMnc.js +2 -0
- package/chunks/standalone-CIjNYyya.js +8378 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
- package/chunks/standalone-CUGt2FUF.js +2 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
- package/chunks/standalone-CnF2OYLQ.js +355 -0
- package/chunks/standalone-CznEEiq3.js +422 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
- package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
- package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
- package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
- package/chunks/standalone-DcuE8KBa.js +287 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
- package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
- package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
- package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
- package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
- package/chunks/standalone-qrZaimgC.js +689 -0
- package/chunks/standalone-yqDJ8h3K.js +1012 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
- package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +30 -1
- package/docs/operations/combo.md +30 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +5 -4
- package/docs/operations/line.md +30 -1
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +3 -3
- package/index.js +524 -500
- package/metadata.js +2 -2
- package/operations.js +6 -6
- package/package.json +73 -68
- 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 +2 -2
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- 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-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,244 +1,249 @@
|
|
|
1
|
-
import { As as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { z as
|
|
5
|
-
var
|
|
6
|
-
orientation:
|
|
7
|
-
selectionMode:
|
|
1
|
+
import { As as e, Es as t, Ls as n, Rs as r, Ts as i, Uo as a, Wo as o, bl as s, ks as c, r as l, vs as u } from "./visualization-filters-BwS0xUqs.js";
|
|
2
|
+
import { Bg as d, Fh as ee, Gh as te, Jg as ne, Kh as re, Nh as ie, Ph as ae, S_ as oe, Tm as f, Wg as se, Zg as ce, Zm as p, _h as le, fh as ue, gh as de, h_ as m, hh as fe, ih as pe, im as h, l_ as me, lh as he, lm as ge, mh as _e, o_ as ve, oh as ye, om as g, qh as be, sm as xe, tm as _, uh as Se, um as Ce, v_ as we, vh as Te, wg as Ee, yh as v, zh as De, zm as Oe } from "./handlers-C63NVo7i.js";
|
|
3
|
+
import { E as ke, b as y, d as Ae, t as je } from "./operations-COl9wgqi.js";
|
|
4
|
+
import { z as b } from "zod";
|
|
5
|
+
var x = s(), Me = 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(),
|
|
18
|
-
settings:
|
|
19
|
-
type:
|
|
20
|
-
version:
|
|
21
|
-
}).strict(),
|
|
22
|
-
distinct:
|
|
23
|
-
name:
|
|
24
|
-
resultType:
|
|
25
|
-
}).strict(),
|
|
26
|
-
aggregations:
|
|
27
|
-
dataType:
|
|
28
|
-
fieldKey:
|
|
29
|
-
isManualData:
|
|
30
|
-
kind:
|
|
31
|
-
name:
|
|
32
|
-
view:
|
|
33
|
-
}).strict(),
|
|
34
|
-
description:
|
|
35
|
-
id:
|
|
36
|
-
key:
|
|
37
|
-
name:
|
|
38
|
-
views:
|
|
39
|
-
}).passthrough(),
|
|
40
|
-
dimension:
|
|
41
|
-
type:
|
|
42
|
-
}),
|
|
43
|
-
measure:
|
|
44
|
-
type:
|
|
45
|
-
}),
|
|
46
|
-
calculation:
|
|
47
|
-
type:
|
|
48
|
-
}),
|
|
49
|
-
fieldKey:
|
|
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(), Ne = b.object({
|
|
18
|
+
settings: Me.optional(),
|
|
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."), Pe = S(me.shape.dataType), Fe = S(ve.shape.formatType), Ie = b.object({
|
|
22
|
+
distinct: b.boolean().optional(),
|
|
23
|
+
name: b.string().trim().min(1),
|
|
24
|
+
resultType: b.string().optional()
|
|
25
|
+
}).strict(), Le = b.object({
|
|
26
|
+
aggregations: b.array(Ie).default([]),
|
|
27
|
+
dataType: Pe,
|
|
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(), Re = T.extend({
|
|
40
|
+
dimension: b.record(b.string(), b.unknown()),
|
|
41
|
+
type: b.literal("dimension")
|
|
42
|
+
}), ze = T.extend({
|
|
43
|
+
measure: b.object({ aggregation: b.string().min(1) }).passthrough(),
|
|
44
|
+
type: b.literal("measure")
|
|
45
|
+
}), Be = T.extend({
|
|
46
|
+
calculation: b.record(b.string(), b.unknown()),
|
|
47
|
+
type: b.literal("calculation")
|
|
48
|
+
}), Ve = b.object({
|
|
49
|
+
fieldKey: w,
|
|
50
|
+
item: Re,
|
|
51
|
+
kind: b.literal("dimension"),
|
|
52
|
+
name: b.string().min(1)
|
|
53
|
+
}).strict(), He = b.object({
|
|
54
|
+
fieldKey: w,
|
|
50
55
|
item: ze,
|
|
51
|
-
kind:
|
|
52
|
-
name:
|
|
53
|
-
}).strict(), Ue =
|
|
54
|
-
fieldKey:
|
|
56
|
+
kind: b.literal("measure"),
|
|
57
|
+
name: b.string().min(1)
|
|
58
|
+
}).strict(), Ue = b.object({
|
|
59
|
+
fieldKey: w,
|
|
55
60
|
item: Be,
|
|
56
|
-
kind:
|
|
57
|
-
name:
|
|
58
|
-
}).strict(),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
kind: y.literal("calculation"),
|
|
62
|
-
name: y.string().min(1)
|
|
63
|
-
}).strict(), T = y.union([
|
|
64
|
-
Re,
|
|
61
|
+
kind: b.literal("calculation"),
|
|
62
|
+
name: b.string().min(1)
|
|
63
|
+
}).strict(), E = b.union([
|
|
64
|
+
Le,
|
|
65
|
+
Ve,
|
|
65
66
|
He,
|
|
66
|
-
Ue
|
|
67
|
-
We
|
|
67
|
+
Ue
|
|
68
68
|
]).superRefine((e, t) => {
|
|
69
69
|
e.kind !== "field" && e.item.key !== e.fieldKey && t.addIssue({
|
|
70
70
|
code: "custom",
|
|
71
71
|
message: "Semantic item key must match fieldKey.",
|
|
72
72
|
path: ["item", "key"]
|
|
73
73
|
});
|
|
74
|
-
}),
|
|
75
|
-
currency:
|
|
76
|
-
currencyIsPrefix:
|
|
77
|
-
formatString:
|
|
78
|
-
formatType:
|
|
79
|
-
negativeType:
|
|
80
|
-
}).strict(),
|
|
81
|
-
dateLevel:
|
|
82
|
-
mode:
|
|
83
|
-
}).strict(),
|
|
84
|
-
datePart:
|
|
85
|
-
mode:
|
|
86
|
-
}).strict()]),
|
|
87
|
-
fieldKey:
|
|
88
|
-
format:
|
|
74
|
+
}), We = b.object({
|
|
75
|
+
currency: b.string().min(1).optional(),
|
|
76
|
+
currencyIsPrefix: b.boolean().optional(),
|
|
77
|
+
formatString: b.string().optional(),
|
|
78
|
+
formatType: Fe.optional(),
|
|
79
|
+
negativeType: S(ve.shape.negativeType.unwrap()).optional()
|
|
80
|
+
}).strict(), Ge = 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
|
+
format: We.pick({
|
|
89
89
|
formatString: !0,
|
|
90
90
|
formatType: !0
|
|
91
91
|
}).optional(),
|
|
92
|
-
ref:
|
|
93
|
-
showNullValues:
|
|
94
|
-
temporalGrouping:
|
|
95
|
-
}).strict(),
|
|
96
|
-
placements:
|
|
97
|
-
textColor:
|
|
98
|
-
visible:
|
|
99
|
-
}).strict(),
|
|
100
|
-
aggregation:
|
|
101
|
-
dataLabels:
|
|
102
|
-
fieldKey:
|
|
103
|
-
format:
|
|
104
|
-
ref:
|
|
105
|
-
}).strict(),
|
|
106
|
-
fieldKey:
|
|
107
|
-
operator:
|
|
108
|
-
value:
|
|
109
|
-
}).strict(),
|
|
110
|
-
fieldKey:
|
|
111
|
-
operator:
|
|
112
|
-
valueFrom:
|
|
113
|
-
valueTo:
|
|
114
|
-
}).strict(),
|
|
115
|
-
fieldKey:
|
|
116
|
-
operator:
|
|
117
|
-
values:
|
|
118
|
-
}).strict(),
|
|
119
|
-
fieldKey:
|
|
120
|
-
operator:
|
|
121
|
-
}).strict(),
|
|
92
|
+
ref: C,
|
|
93
|
+
showNullValues: b.boolean().optional(),
|
|
94
|
+
temporalGrouping: Ge.describe("Groups a date dimension. Applied before format; format must then suit the grouping.").optional()
|
|
95
|
+
}).strict(), Ke = b.object({
|
|
96
|
+
placements: b.array(S(b.enum(we))).min(1).describe("Positions tried in order. Inside labels sit at the end of the bar.").optional(),
|
|
97
|
+
textColor: m.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
|
+
dataLabels: Ke.optional(),
|
|
102
|
+
fieldKey: w,
|
|
103
|
+
format: We.optional(),
|
|
104
|
+
ref: C
|
|
105
|
+
}).strict(), qe = b.object({
|
|
106
|
+
fieldKey: w,
|
|
107
|
+
operator: S(b.enum(De)),
|
|
108
|
+
value: b.string()
|
|
109
|
+
}).strict(), Je = b.object({
|
|
110
|
+
fieldKey: w,
|
|
111
|
+
operator: S(b.enum(ee)),
|
|
112
|
+
valueFrom: b.string(),
|
|
113
|
+
valueTo: b.string()
|
|
114
|
+
}).strict(), Ye = b.object({
|
|
115
|
+
fieldKey: w,
|
|
116
|
+
operator: S(b.enum(ie)),
|
|
117
|
+
values: b.array(b.string()).min(1)
|
|
118
|
+
}).strict(), Xe = b.object({
|
|
119
|
+
fieldKey: w,
|
|
120
|
+
operator: S(b.enum(ae))
|
|
121
|
+
}).strict(), Ze = b.union([
|
|
122
|
+
qe,
|
|
122
123
|
Je,
|
|
123
124
|
Ye,
|
|
124
|
-
Xe
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
125
|
+
Xe
|
|
126
|
+
]), k = b.lazy(() => b.object({
|
|
127
|
+
filters: b.array(b.union([Ze, k])),
|
|
128
|
+
operator: b.enum(["and", "or"])
|
|
129
|
+
}).strict()), A = b.object({
|
|
130
|
+
by: C,
|
|
131
|
+
direction: S(d.shape.sortDirection),
|
|
132
|
+
enabled: b.boolean().optional()
|
|
133
|
+
}).strict(), Qe = b.object({
|
|
134
|
+
by: C,
|
|
135
|
+
count: b.number().int().positive(),
|
|
136
|
+
direction: S(d.shape.sortDirection),
|
|
137
|
+
showOthers: b.boolean().optional()
|
|
138
|
+
}).strict(), $e = b.object({
|
|
139
|
+
queryLimit: b.number().int().positive().optional(),
|
|
140
|
+
topN: Qe.optional()
|
|
141
|
+
}).strict(), et = b.object({
|
|
142
|
+
position: S(ce.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(), tt = 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(), nt = 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"), rt = b.array(Ee).optional().describe("Shaded ranges drawn across the plot between two primary measure axis values"), it = te({}), at = te({ dimension: C.describe(`Alias of a dimension in data.dimensions. ${be}`) }), ot = re({ measure: C.describe("Alias of the measure in data.measures whose value is compared") }), st = "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.", ct = b.array(ot).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 ? at : it).min(1).describe(st).optional(),
|
|
156
159
|
...e.rules ? { rules: ct.optional() } : {}
|
|
157
160
|
}).strict(), lt = {
|
|
158
|
-
inverted:
|
|
161
|
+
inverted: b.boolean().optional().describe("Reverse the direction of the axis values, eg. to put rank 1 at the top"),
|
|
159
162
|
range: nt.optional()
|
|
160
|
-
},
|
|
161
|
-
|
|
163
|
+
}, ut = { bands: rt }, dt = { scale: S(b.enum(oe)).optional() };
|
|
164
|
+
j.extend({
|
|
162
165
|
...lt,
|
|
163
|
-
...
|
|
164
|
-
...
|
|
166
|
+
...ut,
|
|
167
|
+
...dt
|
|
165
168
|
}).strict();
|
|
166
|
-
var N = ({
|
|
167
|
-
let
|
|
168
|
-
...
|
|
169
|
-
...
|
|
170
|
-
...
|
|
169
|
+
var N = ({ dimensionLabelWrap: e = !1, logScale: t = !1, primaryMeasureBands: n = !1, rangedMeasureAxes: r = [] } = {}) => {
|
|
170
|
+
let i = (e, n) => j.extend({
|
|
171
|
+
...r.includes(e) ? lt : {},
|
|
172
|
+
...n ? ut : {},
|
|
173
|
+
...t ? dt : {}
|
|
171
174
|
}).strict();
|
|
172
|
-
return
|
|
173
|
-
dimension:
|
|
174
|
-
primaryMeasure:
|
|
175
|
-
secondaryMeasure:
|
|
175
|
+
return b.object({
|
|
176
|
+
dimension: (e ? tt : j).optional(),
|
|
177
|
+
primaryMeasure: i("primaryMeasure", n).optional(),
|
|
178
|
+
secondaryMeasure: i("secondaryMeasure", !1).optional()
|
|
176
179
|
}).strict();
|
|
177
180
|
};
|
|
178
181
|
N();
|
|
179
|
-
var
|
|
182
|
+
var ft = b.object({
|
|
180
183
|
axes: N({
|
|
184
|
+
dimensionLabelWrap: !0,
|
|
181
185
|
logScale: !0,
|
|
182
186
|
primaryMeasureBands: !0,
|
|
183
187
|
rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"]
|
|
184
188
|
}).optional(),
|
|
185
|
-
legend:
|
|
186
|
-
orientation:
|
|
187
|
-
}).strict(),
|
|
188
|
-
data:
|
|
189
|
-
dimensions:
|
|
190
|
-
measures:
|
|
189
|
+
legend: et.optional(),
|
|
190
|
+
orientation: S(b.enum(o)).optional()
|
|
191
|
+
}).strict(), pt = S(b.enum([i.Groups, i.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."), mt = O.extend({ axis: b.enum(["primary", "secondary"]).optional() }), ht = b.object({
|
|
192
|
+
data: b.object({
|
|
193
|
+
dimensions: b.array(D),
|
|
194
|
+
measures: b.array(mt).min(1)
|
|
191
195
|
}).strict(),
|
|
192
|
-
filterGroup:
|
|
193
|
-
limiting:
|
|
194
|
-
presentation:
|
|
195
|
-
coloring:
|
|
196
|
-
layout:
|
|
196
|
+
filterGroup: k.optional(),
|
|
197
|
+
limiting: $e.optional(),
|
|
198
|
+
presentation: ft.extend({
|
|
199
|
+
coloring: M({ rules: !0 }).optional(),
|
|
200
|
+
layout: pt.optional()
|
|
197
201
|
}).optional(),
|
|
198
|
-
sorting:
|
|
199
|
-
type:
|
|
200
|
-
version:
|
|
201
|
-
}).strict(),
|
|
202
|
+
sorting: b.array(A).optional(),
|
|
203
|
+
type: b.literal("bar"),
|
|
204
|
+
version: b.literal(1)
|
|
205
|
+
}).strict(), gt = b.object({ visible: b.boolean() }).strict(), _t = (e, t) => b.array(e).min(t.min).max(t.max), P = (e, t) => {
|
|
202
206
|
let n = {};
|
|
203
207
|
if (t.dimensions.max > 0) {
|
|
204
|
-
let e =
|
|
208
|
+
let e = _t(D, t.dimensions);
|
|
205
209
|
n.dimensions = t.dimensions.min === 0 ? e.optional() : e;
|
|
206
210
|
}
|
|
207
211
|
if (t.measures.max > 0) {
|
|
208
|
-
let e = t.dataLabels ?
|
|
212
|
+
let e = t.dataLabels ? O.omit({ dataLabels: !0 }).extend({ dataLabels: gt.optional() }) : O.omit({ dataLabels: !0 }), r = t.comboSeriesTypes ? e.extend({ seriesType: b.enum([
|
|
209
213
|
"bar",
|
|
210
214
|
"line",
|
|
211
215
|
"point"
|
|
212
|
-
]).optional() }) : e, i =
|
|
216
|
+
]).optional() }) : e, i = _t(t.measureAxis ? r.extend({ axis: b.enum(["primary", "secondary"]).optional() }) : r, t.measures);
|
|
213
217
|
n.measures = t.measures.min === 0 ? i.optional() : i;
|
|
214
218
|
}
|
|
215
|
-
let
|
|
219
|
+
let r = {};
|
|
216
220
|
if (t.axes) {
|
|
217
221
|
let e = N({
|
|
222
|
+
dimensionLabelWrap: t.dimensionLabelWrap,
|
|
218
223
|
logScale: t.measureAxisScale,
|
|
219
224
|
primaryMeasureBands: t.measureAxisBands,
|
|
220
225
|
rangedMeasureAxes: t.rangedMeasureAxes
|
|
221
226
|
});
|
|
222
|
-
|
|
227
|
+
r.axes = (t.secondaryDimensionAxis ? e.extend({ secondaryDimension: j.optional() }) : e).optional();
|
|
223
228
|
}
|
|
224
|
-
t.conditionalColoring && (
|
|
225
|
-
compact:
|
|
226
|
-
direction:
|
|
229
|
+
t.conditionalColoring && (r.coloring = M(t.conditionalColoring).optional()), t.dataLabels && (r.dataLabels = gt.optional()), t.gaugeDisplayMode && (r.displayMode = b.enum(["bar", "radial"]).optional()), t.legend && (r.legend = et.optional()), t.orientation && (r.orientation = S(b.enum(o)).optional()), t.treeLayout && (r.layout = b.object({
|
|
230
|
+
compact: b.boolean().optional(),
|
|
231
|
+
direction: b.enum([
|
|
227
232
|
"bottom",
|
|
228
233
|
"left",
|
|
229
234
|
"right",
|
|
230
235
|
"top"
|
|
231
236
|
]).optional(),
|
|
232
|
-
forceAutoFit:
|
|
233
|
-
initialExpandedLevels:
|
|
237
|
+
forceAutoFit: b.boolean().optional(),
|
|
238
|
+
initialExpandedLevels: b.number().int().min(0).optional()
|
|
234
239
|
}).strict().optional());
|
|
235
|
-
let
|
|
236
|
-
data:
|
|
237
|
-
filterGroup:
|
|
238
|
-
type:
|
|
239
|
-
version:
|
|
240
|
+
let i = {
|
|
241
|
+
data: b.object(n).strict(),
|
|
242
|
+
filterGroup: k.optional(),
|
|
243
|
+
type: b.literal(e),
|
|
244
|
+
version: b.literal(1)
|
|
240
245
|
};
|
|
241
|
-
return t.queryLimit && (
|
|
246
|
+
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
247
|
let i = n.data, a = t.validateCounts?.(i.dimensions?.length ?? 0, i.measures?.length ?? 0);
|
|
243
248
|
a && r.addIssue({
|
|
244
249
|
code: "custom",
|
|
@@ -252,8 +257,9 @@ var dt = y.object({
|
|
|
252
257
|
path: ["presentation", "coloring"]
|
|
253
258
|
}), t.validateDefinition?.(n, r);
|
|
254
259
|
});
|
|
255
|
-
},
|
|
260
|
+
}, vt = P("combo", {
|
|
256
261
|
axes: !0,
|
|
262
|
+
dimensionLabelWrap: !0,
|
|
257
263
|
comboSeriesTypes: !0,
|
|
258
264
|
dataLabels: !0,
|
|
259
265
|
dimensions: {
|
|
@@ -302,7 +308,7 @@ var dt = y.object({
|
|
|
302
308
|
});
|
|
303
309
|
});
|
|
304
310
|
}
|
|
305
|
-
}),
|
|
311
|
+
}), yt = P("dot", {
|
|
306
312
|
conditionalColoring: { rules: !0 },
|
|
307
313
|
axes: !0,
|
|
308
314
|
dimensions: {
|
|
@@ -316,7 +322,7 @@ var dt = y.object({
|
|
|
316
322
|
},
|
|
317
323
|
orientation: !0,
|
|
318
324
|
rangedMeasureAxes: ["primaryMeasure"]
|
|
319
|
-
}),
|
|
325
|
+
}), bt = P("scatter", {
|
|
320
326
|
conditionalColoring: { rules: !0 },
|
|
321
327
|
axes: !0,
|
|
322
328
|
dimensions: {
|
|
@@ -331,7 +337,7 @@ var dt = y.object({
|
|
|
331
337
|
queryLimit: !0,
|
|
332
338
|
rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"],
|
|
333
339
|
sorting: !0
|
|
334
|
-
}),
|
|
340
|
+
}), xt = P("histogram", {
|
|
335
341
|
axes: !0,
|
|
336
342
|
dimensions: {
|
|
337
343
|
min: 1,
|
|
@@ -345,7 +351,7 @@ var dt = y.object({
|
|
|
345
351
|
},
|
|
346
352
|
orientation: !0,
|
|
347
353
|
rangedMeasureAxes: ["primaryMeasure"]
|
|
348
|
-
}),
|
|
354
|
+
}), St = P("heatMap", {
|
|
349
355
|
conditionalColoring: { rules: !0 },
|
|
350
356
|
axes: !0,
|
|
351
357
|
dimensions: {
|
|
@@ -360,7 +366,7 @@ var dt = y.object({
|
|
|
360
366
|
queryLimit: !0,
|
|
361
367
|
secondaryDimensionAxis: !0,
|
|
362
368
|
sorting: !0
|
|
363
|
-
}),
|
|
369
|
+
}), Ct = P("radar", {
|
|
364
370
|
conditionalColoring: {
|
|
365
371
|
minDimensions: 2,
|
|
366
372
|
rules: !1
|
|
@@ -378,7 +384,7 @@ var dt = y.object({
|
|
|
378
384
|
if (e === 0 && t < 2) return "Radar charts without dimensions require at least two measures.";
|
|
379
385
|
if (e > 0 && t > 1) return "Radar charts with dimensions support exactly one measure.";
|
|
380
386
|
}
|
|
381
|
-
}),
|
|
387
|
+
}), wt = P("gauge", {
|
|
382
388
|
conditionalColoring: { rules: !0 },
|
|
383
389
|
dimensions: {
|
|
384
390
|
min: 0,
|
|
@@ -391,7 +397,7 @@ var dt = y.object({
|
|
|
391
397
|
max: 20
|
|
392
398
|
},
|
|
393
399
|
validateCounts: (e, t) => e === 1 && t > 2 ? "Gauge charts with a dimension support at most two measures." : void 0
|
|
394
|
-
}),
|
|
400
|
+
}), Tt = P("distribution-gauge", {
|
|
395
401
|
conditionalColoring: { rules: !0 },
|
|
396
402
|
dimensions: {
|
|
397
403
|
min: 0,
|
|
@@ -403,7 +409,7 @@ var dt = y.object({
|
|
|
403
409
|
min: 1,
|
|
404
410
|
max: 20
|
|
405
411
|
}
|
|
406
|
-
}),
|
|
412
|
+
}), Et = P("pie", {
|
|
407
413
|
conditionalColoring: { rules: !0 },
|
|
408
414
|
dimensions: {
|
|
409
415
|
min: 1,
|
|
@@ -416,7 +422,7 @@ var dt = y.object({
|
|
|
416
422
|
},
|
|
417
423
|
queryLimit: !0,
|
|
418
424
|
sorting: !0
|
|
419
|
-
}),
|
|
425
|
+
}), Dt = P("tree", {
|
|
420
426
|
dimensions: {
|
|
421
427
|
min: 0,
|
|
422
428
|
max: 10
|
|
@@ -429,7 +435,7 @@ var dt = y.object({
|
|
|
429
435
|
sorting: !0,
|
|
430
436
|
treeLayout: !0,
|
|
431
437
|
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
|
-
}),
|
|
438
|
+
}), Ot = P("treemap", {
|
|
433
439
|
conditionalColoring: { rules: !0 },
|
|
434
440
|
dimensions: {
|
|
435
441
|
min: 1,
|
|
@@ -440,7 +446,7 @@ var dt = y.object({
|
|
|
440
446
|
min: 1,
|
|
441
447
|
max: 1
|
|
442
448
|
}
|
|
443
|
-
}),
|
|
449
|
+
}), kt = P("sankey", {
|
|
444
450
|
conditionalColoring: {
|
|
445
451
|
requiresOverwriteDimension: !0,
|
|
446
452
|
rules: !0
|
|
@@ -453,7 +459,7 @@ var dt = y.object({
|
|
|
453
459
|
min: 1,
|
|
454
460
|
max: 1
|
|
455
461
|
}
|
|
456
|
-
}),
|
|
462
|
+
}), At = P("waterfall", {
|
|
457
463
|
axes: !0,
|
|
458
464
|
dataLabels: !0,
|
|
459
465
|
dimensions: {
|
|
@@ -468,7 +474,7 @@ var dt = y.object({
|
|
|
468
474
|
orientation: !0,
|
|
469
475
|
rangedMeasureAxes: ["primaryMeasure"],
|
|
470
476
|
validateCounts: (e, t) => e === 1 && t !== 2 ? "Waterfall charts with a dimension require exactly two measures." : void 0
|
|
471
|
-
}),
|
|
477
|
+
}), jt = P("word-cloud", {
|
|
472
478
|
conditionalColoring: { rules: !0 },
|
|
473
479
|
dimensions: {
|
|
474
480
|
min: 1,
|
|
@@ -478,41 +484,41 @@ var dt = y.object({
|
|
|
478
484
|
min: 1,
|
|
479
485
|
max: 1
|
|
480
486
|
}
|
|
481
|
-
}),
|
|
482
|
-
mode:
|
|
483
|
-
quickSelect:
|
|
484
|
-
responsive:
|
|
485
|
-
searchable:
|
|
486
|
-
showProgressBar:
|
|
487
|
-
}).strict(),
|
|
488
|
-
data:
|
|
487
|
+
}), Mt = b.enum(["dropdown", "listbox"]), Nt = b.object({
|
|
488
|
+
mode: Mt.optional(),
|
|
489
|
+
quickSelect: b.boolean().optional(),
|
|
490
|
+
responsive: b.boolean().optional(),
|
|
491
|
+
searchable: b.boolean().optional(),
|
|
492
|
+
showProgressBar: b.boolean().optional()
|
|
493
|
+
}).strict(), Pt = b.object({
|
|
494
|
+
data: b.object({ field: D.omit({
|
|
489
495
|
format: !0,
|
|
490
496
|
showNullValues: !0,
|
|
491
497
|
temporalGrouping: !0
|
|
492
498
|
}) }).strict(),
|
|
493
|
-
presentation:
|
|
494
|
-
type:
|
|
495
|
-
version:
|
|
496
|
-
}).strict(),
|
|
497
|
-
axis:
|
|
498
|
-
dataPointShape:
|
|
499
|
-
}),
|
|
500
|
-
density:
|
|
501
|
-
visible:
|
|
502
|
-
}).strict(),
|
|
503
|
-
coloring:
|
|
504
|
-
dataLabels:
|
|
505
|
-
}),
|
|
506
|
-
data:
|
|
507
|
-
dimensions:
|
|
508
|
-
measures:
|
|
499
|
+
presentation: Nt.optional(),
|
|
500
|
+
type: b.literal("filter"),
|
|
501
|
+
version: b.literal(1)
|
|
502
|
+
}).strict(), Ft = O.omit({ dataLabels: !0 }).extend({
|
|
503
|
+
axis: b.enum(["primary", "secondary"]).optional(),
|
|
504
|
+
dataPointShape: S(ne.shape.dataPointShape)
|
|
505
|
+
}), It = b.object({
|
|
506
|
+
density: se.optional(),
|
|
507
|
+
visible: b.boolean()
|
|
508
|
+
}).strict(), Lt = ft.extend({
|
|
509
|
+
coloring: M({ rules: !1 }).optional(),
|
|
510
|
+
dataLabels: It.describe("Value labels on every line point. Omit to show none.").optional()
|
|
511
|
+
}), Rt = b.object({
|
|
512
|
+
data: b.object({
|
|
513
|
+
dimensions: b.array(D).min(1),
|
|
514
|
+
measures: b.array(Ft).min(1)
|
|
509
515
|
}).strict(),
|
|
510
|
-
filterGroup:
|
|
511
|
-
limiting:
|
|
512
|
-
presentation:
|
|
513
|
-
sorting:
|
|
514
|
-
type:
|
|
515
|
-
version:
|
|
516
|
+
filterGroup: k.optional(),
|
|
517
|
+
limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
|
|
518
|
+
presentation: Lt.optional(),
|
|
519
|
+
sorting: b.array(A).optional(),
|
|
520
|
+
type: b.literal("line"),
|
|
521
|
+
version: b.literal(1)
|
|
516
522
|
}).strict().superRefine((e, t) => {
|
|
517
523
|
e.presentation?.coloring && e.data.dimensions.length < 2 && t.addIssue({
|
|
518
524
|
code: "custom",
|
|
@@ -530,121 +536,121 @@ var dt = y.object({
|
|
|
530
536
|
]
|
|
531
537
|
});
|
|
532
538
|
});
|
|
533
|
-
}),
|
|
539
|
+
}), zt = D.pick({
|
|
534
540
|
fieldKey: !0,
|
|
535
541
|
ref: !0
|
|
536
|
-
}),
|
|
542
|
+
}), Bt = O.pick({
|
|
537
543
|
aggregation: !0,
|
|
538
544
|
fieldKey: !0,
|
|
539
545
|
ref: !0
|
|
540
|
-
}),
|
|
546
|
+
}), Vt = Bt.extend({ role: b.enum([
|
|
541
547
|
"geo",
|
|
542
548
|
"secondGeo",
|
|
543
549
|
"thirdGeo",
|
|
544
550
|
"fourthGeo",
|
|
545
551
|
"size",
|
|
546
552
|
"measure"
|
|
547
|
-
]) }), F =
|
|
553
|
+
]) }), F = b.enum([
|
|
548
554
|
"latLng",
|
|
549
555
|
"geoPoint",
|
|
550
556
|
"geoHash"
|
|
551
|
-
]), I =
|
|
552
|
-
name:
|
|
553
|
-
ref:
|
|
554
|
-
visible:
|
|
555
|
-
}),
|
|
556
|
-
dimensions:
|
|
557
|
-
measures:
|
|
558
|
-
supportingMeasures:
|
|
557
|
+
]), I = b.object({
|
|
558
|
+
name: b.string().trim().min(1).optional(),
|
|
559
|
+
ref: C.describe("Reference unique among all layers and data items; resolvedLayerRefs returns it as { kind: \"layer\", id }."),
|
|
560
|
+
visible: b.boolean().optional()
|
|
561
|
+
}), Ht = b.object({
|
|
562
|
+
dimensions: b.array(zt).length(1),
|
|
563
|
+
measures: b.array(Vt).min(1),
|
|
564
|
+
supportingMeasures: b.array(Bt).optional()
|
|
559
565
|
}).strict(), L = I.extend({
|
|
560
|
-
data:
|
|
561
|
-
filterGroup:
|
|
562
|
-
}),
|
|
563
|
-
color:
|
|
564
|
-
opacity:
|
|
565
|
-
}).strict(),
|
|
566
|
-
type:
|
|
567
|
-
presentation:
|
|
566
|
+
data: Ht,
|
|
567
|
+
filterGroup: k.optional()
|
|
568
|
+
}), Ut = ye.partial().strict(), R = b.object({
|
|
569
|
+
color: m.optional(),
|
|
570
|
+
opacity: de
|
|
571
|
+
}).strict(), Wt = I.extend({
|
|
572
|
+
type: b.literal("map"),
|
|
573
|
+
presentation: S(ue.pick({
|
|
568
574
|
mapType: !0,
|
|
569
575
|
opacity: !0,
|
|
570
576
|
apiKey: !0,
|
|
571
577
|
mapLanguage: !0,
|
|
572
578
|
politicalView: !0
|
|
573
579
|
}).extend({
|
|
574
|
-
layerType:
|
|
580
|
+
layerType: b.enum([
|
|
575
581
|
"default",
|
|
576
582
|
"humanitarian",
|
|
577
583
|
"cycle"
|
|
578
584
|
]),
|
|
579
|
-
layerStyle:
|
|
585
|
+
layerStyle: b.enum([
|
|
580
586
|
"default",
|
|
581
587
|
"greyscale",
|
|
582
588
|
"black",
|
|
583
589
|
"dark"
|
|
584
590
|
])
|
|
585
591
|
}).partial().strict()).optional()
|
|
586
|
-
}).strict(),
|
|
587
|
-
type:
|
|
588
|
-
image:
|
|
589
|
-
position:
|
|
590
|
-
opacity:
|
|
591
|
-
}).strict(), Gt = L.extend({
|
|
592
|
-
type: y.literal("point"),
|
|
593
|
-
locationType: F,
|
|
594
|
-
presentation: x(R.extend({
|
|
595
|
-
shape: ve.shape.shape,
|
|
596
|
-
sizing: Ht.optional(),
|
|
597
|
-
labelsVisible: y.boolean().optional()
|
|
598
|
-
}).strict()).optional()
|
|
592
|
+
}).strict(), Gt = I.extend({
|
|
593
|
+
type: b.literal("image"),
|
|
594
|
+
image: Se.shape.image.strict(),
|
|
595
|
+
position: Se.shape.position.strict(),
|
|
596
|
+
opacity: de
|
|
599
597
|
}).strict(), Kt = L.extend({
|
|
600
|
-
type:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
labelsVisible:
|
|
598
|
+
type: b.literal("point"),
|
|
599
|
+
locationType: F,
|
|
600
|
+
presentation: S(R.extend({
|
|
601
|
+
shape: Te.shape.shape,
|
|
602
|
+
sizing: Ut.optional(),
|
|
603
|
+
labelsVisible: b.boolean().optional()
|
|
606
604
|
}).strict()).optional()
|
|
607
605
|
}).strict(), qt = L.extend({
|
|
608
|
-
type:
|
|
606
|
+
type: b.literal("shape"),
|
|
607
|
+
presentation: S(R.extend({
|
|
608
|
+
strokeEnabled: v.shape.strokeEnabled,
|
|
609
|
+
strokeColor: v.shape.strokeColor,
|
|
610
|
+
strokeWidth: v.shape.strokeWidth,
|
|
611
|
+
labelsVisible: b.boolean().optional()
|
|
612
|
+
}).strict()).optional()
|
|
613
|
+
}).strict(), Jt = L.extend({
|
|
614
|
+
type: b.literal("heatMap"),
|
|
609
615
|
locationType: F,
|
|
610
|
-
presentation:
|
|
611
|
-
heat:
|
|
616
|
+
presentation: S(b.object({
|
|
617
|
+
heat: he.pick({
|
|
612
618
|
radius: !0,
|
|
613
619
|
maxZoom: !0,
|
|
614
620
|
blur: !0,
|
|
615
621
|
changeHeatWhenZooming: !0
|
|
616
622
|
}).partial().strict().optional(),
|
|
617
|
-
value:
|
|
623
|
+
value: fe.partial().strict().optional()
|
|
618
624
|
}).strict()).optional()
|
|
619
|
-
}).strict(),
|
|
620
|
-
type:
|
|
621
|
-
data:
|
|
625
|
+
}).strict(), Yt = L.extend({
|
|
626
|
+
type: b.literal("pointConnection"),
|
|
627
|
+
data: Ht.extend({ dimensions: b.array(zt).length(2) }).strict(),
|
|
622
628
|
locationType: F,
|
|
623
629
|
secondLocationType: F,
|
|
624
|
-
presentation:
|
|
625
|
-
sizing:
|
|
626
|
-
useGeodesicLines:
|
|
627
|
-
lineStyle:
|
|
628
|
-
arrow:
|
|
630
|
+
presentation: S(R.extend({
|
|
631
|
+
sizing: Ut.optional(),
|
|
632
|
+
useGeodesicLines: b.boolean().optional(),
|
|
633
|
+
lineStyle: le.shape.lineStyle.optional(),
|
|
634
|
+
arrow: pe.partial().strict().optional()
|
|
629
635
|
}).strict()).optional()
|
|
630
|
-
}).strict(),
|
|
631
|
-
Ut,
|
|
636
|
+
}).strict(), Xt = b.discriminatedUnion("type", [
|
|
632
637
|
Wt,
|
|
633
638
|
Gt,
|
|
634
639
|
Kt,
|
|
635
640
|
qt,
|
|
636
|
-
Jt
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
641
|
+
Jt,
|
|
642
|
+
Yt
|
|
643
|
+
]), Zt = b.object({
|
|
644
|
+
type: b.literal("map"),
|
|
645
|
+
version: b.literal(1),
|
|
646
|
+
layers: b.array(Xt).min(1).describe("Layers in stacking order, topmost first. Include a map layer explicitly when a basemap is wanted."),
|
|
647
|
+
view: S(_e.partial().strict()).optional()
|
|
648
|
+
}).strict(), Qt = b.object({
|
|
649
|
+
data: b.object({ measure: O.omit({ dataLabels: !0 }) }).strict(),
|
|
650
|
+
filterGroup: k.optional(),
|
|
651
|
+
type: b.literal("number"),
|
|
652
|
+
version: b.literal(1)
|
|
653
|
+
}).strict(), $t = S(Oe.pick({
|
|
648
654
|
endDateLabel: !0,
|
|
649
655
|
pickerState: !0,
|
|
650
656
|
pickerType: !0,
|
|
@@ -653,32 +659,32 @@ var dt = y.object({
|
|
|
653
659
|
startDateLabel: !0,
|
|
654
660
|
timePickerVisibility: !0,
|
|
655
661
|
weekStart: !0
|
|
656
|
-
}).partial()),
|
|
657
|
-
data:
|
|
662
|
+
}).partial()), en = b.object({
|
|
663
|
+
data: b.object({ field: D.omit({
|
|
658
664
|
format: !0,
|
|
659
665
|
showNullValues: !0,
|
|
660
666
|
temporalGrouping: !0
|
|
661
667
|
}) }).strict(),
|
|
662
|
-
settings:
|
|
663
|
-
type:
|
|
664
|
-
version:
|
|
665
|
-
}).strict(),
|
|
666
|
-
settings:
|
|
667
|
-
type:
|
|
668
|
-
version:
|
|
669
|
-
}).strict(),
|
|
670
|
-
settings:
|
|
668
|
+
settings: $t.optional(),
|
|
669
|
+
type: b.literal("date-picker"),
|
|
670
|
+
version: b.literal(1)
|
|
671
|
+
}).strict(), tn = b.object({
|
|
672
|
+
settings: b.object({ url: b.string().url().nullable() }).strict(),
|
|
673
|
+
type: b.literal("iframe"),
|
|
674
|
+
version: b.literal(1)
|
|
675
|
+
}).strict(), nn = b.object({
|
|
676
|
+
settings: S(b.object({
|
|
671
677
|
blur: f.shape.blur.optional(),
|
|
672
678
|
fit: f.shape.image.unwrap().shape.imageFit.optional(),
|
|
673
679
|
opacity: f.shape.opacity.optional(),
|
|
674
680
|
saturation: f.shape.saturation.optional(),
|
|
675
681
|
shadow: f.shape.shadow.optional(),
|
|
676
|
-
source:
|
|
682
|
+
source: Ae.optional()
|
|
677
683
|
}).strict()),
|
|
678
|
-
type:
|
|
679
|
-
version:
|
|
680
|
-
}).strict(),
|
|
681
|
-
settings:
|
|
684
|
+
type: b.literal("image"),
|
|
685
|
+
version: b.literal(1)
|
|
686
|
+
}).strict(), rn = b.object({
|
|
687
|
+
settings: S(Ce.pick({
|
|
682
688
|
backgroundColor: !0,
|
|
683
689
|
backgroundType: !0,
|
|
684
690
|
borderEnabled: !0,
|
|
@@ -693,12 +699,12 @@ var dt = y.object({
|
|
|
693
699
|
shape: !0,
|
|
694
700
|
strokeColor: !0
|
|
695
701
|
}).partial().strict()),
|
|
696
|
-
type:
|
|
697
|
-
version:
|
|
698
|
-
}).strict(), z =
|
|
699
|
-
settings:
|
|
702
|
+
type: b.literal("shape"),
|
|
703
|
+
version: b.literal(1)
|
|
704
|
+
}).strict(), z = ge.shape.simpleTextObjectSettings, an = b.object({
|
|
705
|
+
settings: S(b.object({
|
|
700
706
|
align: z.shape.align.optional(),
|
|
701
|
-
content:
|
|
707
|
+
content: b.string().optional(),
|
|
702
708
|
fontFamily: z.shape.fontFamily.optional(),
|
|
703
709
|
fontSize: z.shape.fontSize.optional(),
|
|
704
710
|
position: z.shape.position.optional(),
|
|
@@ -707,10 +713,10 @@ var dt = y.object({
|
|
|
707
713
|
textColor: z.shape.textColor.optional(),
|
|
708
714
|
wordWrap: z.shape.wordWrap.optional()
|
|
709
715
|
}).strict()),
|
|
710
|
-
type:
|
|
711
|
-
version:
|
|
712
|
-
}).strict(),
|
|
713
|
-
settings:
|
|
716
|
+
type: b.literal("simpleTextObject"),
|
|
717
|
+
version: b.literal(1)
|
|
718
|
+
}).strict(), on = b.object({
|
|
719
|
+
settings: S(b.object({
|
|
714
720
|
customLabel: p.shape.commonSettings.shape.customLabel.optional(),
|
|
715
721
|
hideLabel: p.shape.commonSettings.shape.hideLabel.optional(),
|
|
716
722
|
inputType: p.shape.type.optional(),
|
|
@@ -718,133 +724,133 @@ var dt = y.object({
|
|
|
718
724
|
responsive: p.shape.commonSettings.shape.responsive.optional(),
|
|
719
725
|
variableId: p.shape.commonSettings.shape.variableId.optional()
|
|
720
726
|
}).strict()),
|
|
721
|
-
type:
|
|
722
|
-
version:
|
|
723
|
-
}).strict(),
|
|
724
|
-
data:
|
|
727
|
+
type: b.literal("atomic-input"),
|
|
728
|
+
version: b.literal(1)
|
|
729
|
+
}).strict(), sn = b.object({
|
|
730
|
+
data: b.object({ field: D.omit({
|
|
725
731
|
format: !0,
|
|
726
732
|
showNullValues: !0,
|
|
727
733
|
temporalGrouping: !0
|
|
728
734
|
}) }).strict(),
|
|
729
|
-
settings:
|
|
735
|
+
settings: S(xe.pick({
|
|
730
736
|
layout: !0,
|
|
731
737
|
quickSelect: !0,
|
|
732
738
|
range: !0,
|
|
733
739
|
step: !0
|
|
734
740
|
}).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
|
-
ln,
|
|
741
|
+
type: b.literal("slider"),
|
|
742
|
+
version: b.literal(1)
|
|
743
|
+
}).strict(), cn = D.extend({ role: b.literal("dimension") }), B = O.omit({ dataLabels: !0 }), ln = B.extend({ role: b.literal("measure") }), un = b.object({
|
|
744
|
+
columns: b.array(b.discriminatedUnion("role", [cn, ln])).min(1),
|
|
745
|
+
structure: b.literal("normal").optional()
|
|
746
|
+
}).strict(), dn = b.object({
|
|
747
|
+
dimensions: b.array(D).min(1),
|
|
748
|
+
measures: b.array(B).min(1),
|
|
749
|
+
structure: b.literal("expandable")
|
|
750
|
+
}).strict(), fn = b.object({
|
|
751
|
+
columnDimensions: b.array(D).min(1),
|
|
752
|
+
measures: b.array(B).min(1),
|
|
753
|
+
rowDimensions: b.array(D).min(1),
|
|
754
|
+
structure: b.literal("pivot")
|
|
755
|
+
}).strict(), pn = b.union([
|
|
751
756
|
un,
|
|
752
|
-
dn
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
757
|
+
dn,
|
|
758
|
+
fn
|
|
759
|
+
]), mn = b.object({
|
|
760
|
+
applyTo: _.shape.applyTo,
|
|
761
|
+
enabled: _.shape.enabled,
|
|
762
|
+
showRecordsCount: _.shape.showRecordsCount,
|
|
763
|
+
style: b.object({
|
|
764
|
+
backgroundColor: g.shape.backgroundColor.optional(),
|
|
765
|
+
fontColor: g.shape.fontColor.optional(),
|
|
766
|
+
fontStyle: h.optional(),
|
|
767
|
+
position: g.shape.position.optional(),
|
|
768
|
+
responsiveHeight: g.shape.responsive
|
|
763
769
|
}).strict().optional()
|
|
764
|
-
}).strict(),
|
|
765
|
-
background:
|
|
766
|
-
color:
|
|
767
|
-
evenColor:
|
|
768
|
-
oddColor:
|
|
769
|
-
type:
|
|
770
|
+
}).strict(), hn = b.object({
|
|
771
|
+
background: b.object({
|
|
772
|
+
color: m.optional(),
|
|
773
|
+
evenColor: m.optional(),
|
|
774
|
+
oddColor: m.optional(),
|
|
775
|
+
type: b.enum([
|
|
770
776
|
"none",
|
|
771
777
|
"single",
|
|
772
778
|
"zebra"
|
|
773
779
|
])
|
|
774
780
|
}).strict().optional(),
|
|
775
|
-
body:
|
|
776
|
-
fontColor:
|
|
777
|
-
fontFamily:
|
|
778
|
-
fontSize:
|
|
779
|
-
fontStyle:
|
|
780
|
-
horizontalAlign:
|
|
781
|
+
body: b.object({
|
|
782
|
+
fontColor: m.optional(),
|
|
783
|
+
fontFamily: b.string().trim().min(1).optional(),
|
|
784
|
+
fontSize: b.number().positive().optional(),
|
|
785
|
+
fontStyle: h.optional(),
|
|
786
|
+
horizontalAlign: b.enum([
|
|
781
787
|
"auto",
|
|
782
788
|
"center",
|
|
783
789
|
"left",
|
|
784
790
|
"right"
|
|
785
791
|
]).optional(),
|
|
786
|
-
verticalAlign:
|
|
792
|
+
verticalAlign: b.enum([
|
|
787
793
|
"auto",
|
|
788
794
|
"bottom",
|
|
789
795
|
"middle",
|
|
790
796
|
"top"
|
|
791
797
|
]).optional()
|
|
792
798
|
}).strict().optional(),
|
|
793
|
-
borders:
|
|
794
|
-
color:
|
|
795
|
-
dividerColor:
|
|
796
|
-
dividers:
|
|
799
|
+
borders: b.object({
|
|
800
|
+
color: m.optional(),
|
|
801
|
+
dividerColor: m.optional(),
|
|
802
|
+
dividers: b.enum([
|
|
797
803
|
"all",
|
|
798
804
|
"auto",
|
|
799
805
|
"horizontal",
|
|
800
806
|
"none",
|
|
801
807
|
"vertical"
|
|
802
808
|
]).optional(),
|
|
803
|
-
enabled:
|
|
804
|
-
lineStyle:
|
|
809
|
+
enabled: b.boolean(),
|
|
810
|
+
lineStyle: b.enum([
|
|
805
811
|
"dashed",
|
|
806
812
|
"dotted",
|
|
807
813
|
"line"
|
|
808
814
|
]).optional(),
|
|
809
|
-
radius:
|
|
810
|
-
strokeWidth:
|
|
815
|
+
radius: b.number().nonnegative().optional(),
|
|
816
|
+
strokeWidth: b.number().nonnegative().optional()
|
|
811
817
|
}).strict().optional(),
|
|
812
|
-
header:
|
|
813
|
-
backgroundColor:
|
|
814
|
-
borderColor:
|
|
815
|
-
fontColor:
|
|
816
|
-
fontFamily:
|
|
817
|
-
fontSize:
|
|
818
|
-
fontStyle:
|
|
819
|
-
responsiveHeight:
|
|
818
|
+
header: b.object({
|
|
819
|
+
backgroundColor: m.optional(),
|
|
820
|
+
borderColor: m.optional(),
|
|
821
|
+
fontColor: m.optional(),
|
|
822
|
+
fontFamily: b.string().trim().min(1).optional(),
|
|
823
|
+
fontSize: b.number().positive().optional(),
|
|
824
|
+
fontStyle: h.optional(),
|
|
825
|
+
responsiveHeight: b.boolean().optional()
|
|
820
826
|
}).strict().optional(),
|
|
821
|
-
highlight:
|
|
822
|
-
backgroundColor:
|
|
823
|
-
mode:
|
|
827
|
+
highlight: b.object({
|
|
828
|
+
backgroundColor: m.optional(),
|
|
829
|
+
mode: b.enum([
|
|
824
830
|
"column",
|
|
825
831
|
"none",
|
|
826
832
|
"row",
|
|
827
833
|
"row-and-column"
|
|
828
834
|
]),
|
|
829
|
-
textColor:
|
|
835
|
+
textColor: m.optional()
|
|
830
836
|
}).strict().optional(),
|
|
831
|
-
layout:
|
|
832
|
-
columnWidthBehavior:
|
|
833
|
-
rowHeight:
|
|
837
|
+
layout: b.object({
|
|
838
|
+
columnWidthBehavior: b.enum(["responsive", "static"]).optional(),
|
|
839
|
+
rowHeight: b.number().positive().optional()
|
|
834
840
|
}).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),
|
|
841
|
+
}).strict(), gn = b.object({
|
|
842
|
+
data: pn,
|
|
843
|
+
filterGroup: k.optional(),
|
|
844
|
+
limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
|
|
845
|
+
presentation: hn.optional(),
|
|
846
|
+
sorting: b.array(A).optional(),
|
|
847
|
+
totals: mn.optional(),
|
|
848
|
+
type: b.literal("table"),
|
|
849
|
+
version: b.literal(1)
|
|
850
|
+
}).strict(), V = (e) => typeof e == "object" && !!e && !Array.isArray(e), _n = (e) => {
|
|
845
851
|
let t = e.fieldKey ?? e.key;
|
|
846
852
|
return typeof t == "string" ? t : void 0;
|
|
847
|
-
},
|
|
853
|
+
}, vn = (e) => {
|
|
848
854
|
if (Array.isArray(e)) return e;
|
|
849
855
|
if (!V(e)) throw Error("Available field metadata must be an array or an object.");
|
|
850
856
|
return [
|
|
@@ -857,10 +863,10 @@ var dt = y.object({
|
|
|
857
863
|
if (!Array.isArray(n)) throw Error(`Available field metadata "${t}" must be an array.`);
|
|
858
864
|
return n;
|
|
859
865
|
});
|
|
860
|
-
},
|
|
866
|
+
}, yn = (e, t) => {
|
|
861
867
|
let n = e.type;
|
|
862
868
|
if (!(n === "dimension" && V(e.dimension) || n === "measure" && V(e.measure) || n === "calculation" && V(e.calculation))) return;
|
|
863
|
-
let r =
|
|
869
|
+
let r = E.safeParse({
|
|
864
870
|
fieldKey: e.key,
|
|
865
871
|
item: e,
|
|
866
872
|
kind: n,
|
|
@@ -868,20 +874,20 @@ var dt = y.object({
|
|
|
868
874
|
});
|
|
869
875
|
if (!r.success) throw Error(`Invalid available semantic item at index ${t}: ${r.error.message}`);
|
|
870
876
|
return r.data;
|
|
871
|
-
},
|
|
877
|
+
}, bn = (e, t) => {
|
|
872
878
|
if (!V(e)) throw Error(`Available field at index ${t} must be an object.`);
|
|
873
|
-
let n =
|
|
879
|
+
let n = E.safeParse(e);
|
|
874
880
|
if (n.success) return n.data;
|
|
875
|
-
let r =
|
|
881
|
+
let r = yn(e, t);
|
|
876
882
|
if (r) return r;
|
|
877
|
-
let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a =
|
|
883
|
+
let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = E.safeParse({
|
|
878
884
|
aggregations: i.map((e) => V(e) ? {
|
|
879
885
|
distinct: e.distinct,
|
|
880
886
|
name: e.name ?? e.funcName,
|
|
881
887
|
resultType: e.resultType
|
|
882
888
|
} : e),
|
|
883
889
|
dataType: e.dataType,
|
|
884
|
-
fieldKey:
|
|
890
|
+
fieldKey: _n(e),
|
|
885
891
|
isManualData: e.isManualData,
|
|
886
892
|
kind: "field",
|
|
887
893
|
name: e.name,
|
|
@@ -889,52 +895,52 @@ var dt = y.object({
|
|
|
889
895
|
});
|
|
890
896
|
if (!a.success) throw Error(`Invalid available field at index ${t}: ${a.error.message}`);
|
|
891
897
|
return a.data;
|
|
892
|
-
},
|
|
893
|
-
let t =
|
|
898
|
+
}, xn = (e) => {
|
|
899
|
+
let t = vn(e).map(bn), n = /* @__PURE__ */ new Map();
|
|
894
900
|
return t.forEach((e, t) => {
|
|
895
901
|
let r = n.get(e.fieldKey);
|
|
896
902
|
if (r !== void 0) throw Error(`Duplicate available field key "${e.fieldKey}" at indexes ${r} and ${t}.`);
|
|
897
903
|
n.set(e.fieldKey, t);
|
|
898
904
|
}), t;
|
|
899
|
-
},
|
|
905
|
+
}, Sn = (e) => e.kind === "field" ? [...new Set(e.aggregations.flatMap((e) => [e.name, ...e.distinct ? [`${e.name}_DISTINCT`] : []]))] : [], Cn = (e, t) => e.kind === "field" || t === "dimension" && e.kind === "dimension" || t === "measure" && (e.kind === "measure" || e.kind === "calculation"), wn = (e) => {
|
|
900
906
|
if (e.kind !== "dimension") return e.kind;
|
|
901
|
-
},
|
|
902
|
-
...
|
|
907
|
+
}, Tn = (e) => ({
|
|
908
|
+
...t(e.item),
|
|
903
909
|
id: e.item.id ?? e.fieldKey
|
|
904
|
-
}),
|
|
905
|
-
aggregators:
|
|
910
|
+
}), En = (t) => t.map((t) => t.kind === "dimension" ? e(Tn(t)) : t.kind === "measure" || t.kind === "calculation" ? c(Tn(t)) : {
|
|
911
|
+
aggregators: n(t.aggregations.map((e) => ({
|
|
906
912
|
distinct: e.distinct ?? !1,
|
|
907
913
|
name: e.name,
|
|
908
914
|
resultType: e.resultType
|
|
909
915
|
}))),
|
|
910
|
-
dataType:
|
|
911
|
-
isManualData:
|
|
912
|
-
key:
|
|
913
|
-
name:
|
|
914
|
-
view:
|
|
915
|
-
views: [
|
|
916
|
-
}),
|
|
916
|
+
dataType: t.dataType,
|
|
917
|
+
isManualData: t.isManualData,
|
|
918
|
+
key: t.fieldKey,
|
|
919
|
+
name: t.name,
|
|
920
|
+
view: t.view,
|
|
921
|
+
views: [t.view]
|
|
922
|
+
}), Dn = (e, t) => {
|
|
917
923
|
let n = Math.min(e.length, t.length), r = 0;
|
|
918
924
|
for (; r < n && e[r].toLocaleLowerCase() === t[r].toLocaleLowerCase();) r += 1;
|
|
919
925
|
return r;
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
],
|
|
926
|
+
}, On = (e, t) => [...t].sort((t, n) => Dn(e, n.fieldKey) - Dn(e, t.fieldKey) || t.fieldKey.localeCompare(n.fieldKey)).slice(0, 5).map((e) => e.fieldKey), kn = [
|
|
927
|
+
x.FieldType.DATE,
|
|
928
|
+
x.FieldType.TIME,
|
|
929
|
+
x.FieldType.TIMESTAMP,
|
|
930
|
+
x.FieldType.TIMESTAMP_TZ
|
|
931
|
+
], H = (e, t, n, r) => ({
|
|
926
932
|
...r ? { allowedValues: r } : {},
|
|
927
933
|
code: e,
|
|
928
934
|
message: n,
|
|
929
935
|
path: t
|
|
930
|
-
}),
|
|
936
|
+
}), An = (e) => Sn(e).filter((e) => !!r(e)), U = (e, t) => {
|
|
931
937
|
let n = t.find((t) => t.fieldKey === e.fieldKey);
|
|
932
|
-
return n?.kind === "field" ?
|
|
933
|
-
},
|
|
938
|
+
return n?.kind === "field" ? An(n).find((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) : void 0;
|
|
939
|
+
}, jn = (e, t) => {
|
|
934
940
|
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 ?
|
|
941
|
+
return n?.kind === "measure" ? n.item.measure.aggregation : U(e, t);
|
|
942
|
+
}, Mn = (e, t, n = {}) => {
|
|
943
|
+
let r = t.find((t) => t.fieldKey === e.fieldKey), i = r ? wn(r) : void 0, a = U(e, t);
|
|
938
944
|
return {
|
|
939
945
|
...n,
|
|
940
946
|
key: e.fieldKey,
|
|
@@ -943,30 +949,30 @@ var dt = y.object({
|
|
|
943
949
|
};
|
|
944
950
|
}, W = (e, t, n, r) => {
|
|
945
951
|
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
|
-
},
|
|
952
|
+
if (!i) return [H("unknown_field_key", [...n, "fieldKey"], `Field key "${e.fieldKey}" is not available.`, On(e.fieldKey, t))];
|
|
953
|
+
if (!Cn(i, r)) return [H("invalid_field_role", [...n, "fieldKey"], `Available item "${e.fieldKey}" of kind "${i.kind}" cannot be used as a ${r}.`)];
|
|
954
|
+
if (r !== "measure") return e.temporalGrouping ? Pn(e, t, n, kn, "a temporally grouped dimension") : [];
|
|
955
|
+
if (i.kind !== "field") return e.aggregation === void 0 ? [] : [H("invalid_aggregation", [...n, "aggregation"], `Aggregation must be omitted for semantic ${i.kind} "${e.fieldKey}".`)];
|
|
956
|
+
let a = An(i);
|
|
957
|
+
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)];
|
|
958
|
+
}, Nn = (e, t, n, r) => e.flatMap((e, i) => W(e, t, [...n, i], r)), Pn = (e, t, n, r, i) => {
|
|
953
959
|
let a = t.find((t) => t.fieldKey === e.fieldKey);
|
|
954
|
-
return a?.kind !== "field" || r.includes(a.dataType) ? [] : [
|
|
955
|
-
},
|
|
960
|
+
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])];
|
|
961
|
+
}, Fn = (e, t, n = ["filterGroup"]) => e ? e.filters.flatMap((e, r) => {
|
|
956
962
|
let i = [
|
|
957
963
|
...n,
|
|
958
964
|
"filters",
|
|
959
965
|
r
|
|
960
966
|
];
|
|
961
|
-
if ("filters" in e) return
|
|
967
|
+
if ("filters" in e) return Fn(e, t, i);
|
|
962
968
|
let a = W({
|
|
963
969
|
fieldKey: e.fieldKey,
|
|
964
970
|
ref: `filter:${r}`
|
|
965
971
|
}, t, i, "dimension");
|
|
966
|
-
return a.length > 0 ? a :
|
|
967
|
-
}) : [],
|
|
972
|
+
return a.length > 0 ? a : In(e.fieldKey, t, i);
|
|
973
|
+
}) : [], In = (e, t, n) => {
|
|
968
974
|
let r = t.find((t) => t.fieldKey === e);
|
|
969
|
-
return r?.kind !== "field" || r.dataType === void 0 || r.dataType ===
|
|
975
|
+
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
976
|
}, 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
977
|
if (typeof e == "number" && !Number.isFinite(e)) return String(e);
|
|
972
978
|
try {
|
|
@@ -974,14 +980,14 @@ var dt = y.object({
|
|
|
974
980
|
} catch {
|
|
975
981
|
return String(e);
|
|
976
982
|
}
|
|
977
|
-
}, q = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e),
|
|
983
|
+
}, q = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e), Ln = (e) => {
|
|
978
984
|
if (e.code === "invalid_value") return e.values;
|
|
979
985
|
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 ?
|
|
986
|
+
let t = e.errors.map((e) => e.length === 1 && e[0].path.length === 0 ? Ln(e[0]) : void 0);
|
|
981
987
|
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, ...
|
|
988
|
+
}, Rn = (e) => e.filter((e) => typeof e != "symbol"), zn = (e, t, n = []) => {
|
|
989
|
+
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, ...Rn(e.path)]) !== void 0, i = (e, a) => {
|
|
990
|
+
let o = [...a, ...Rn(e.path)];
|
|
985
991
|
if (e.code === "unrecognized_keys") return e.keys.map((r) => {
|
|
986
992
|
let i = [
|
|
987
993
|
...n,
|
|
@@ -998,7 +1004,7 @@ var dt = y.object({
|
|
|
998
1004
|
}
|
|
999
1005
|
};
|
|
1000
1006
|
});
|
|
1001
|
-
let s = [...n, ...o], c = q(t, o), l =
|
|
1007
|
+
let s = [...n, ...o], c = q(t, o), l = Ln(e), u = {
|
|
1002
1008
|
received: c,
|
|
1003
1009
|
zodCode: e.code
|
|
1004
1010
|
}, d = l ? `Unsupported value ${K(c)}. Allowed values: ${l.map(K).join(", ")}.` : `${e.message}. Received: ${K(c)}.`;
|
|
@@ -1018,31 +1024,31 @@ var dt = y.object({
|
|
|
1018
1024
|
};
|
|
1019
1025
|
return e.issues.flatMap((e) => i(e, []));
|
|
1020
1026
|
};
|
|
1021
|
-
|
|
1022
|
-
var
|
|
1023
|
-
let
|
|
1024
|
-
return t.visible !== void 0 && (t.visible ||
|
|
1027
|
+
l();
|
|
1028
|
+
var Bn = (e, t) => {
|
|
1029
|
+
let n = "legend" in e && !!e.legend, r = t.position !== void 0 || t.title !== void 0, i = [];
|
|
1030
|
+
return t.visible !== void 0 && (t.visible || r || n) ? i.push({
|
|
1025
1031
|
name: "setLegendEnabled",
|
|
1026
1032
|
payload: t.visible
|
|
1027
|
-
}) : t.visible === void 0 &&
|
|
1033
|
+
}) : t.visible === void 0 && r && !n && i.push({
|
|
1028
1034
|
name: "setLegendEnabled",
|
|
1029
1035
|
payload: !0
|
|
1030
|
-
}), t.position === void 0 ? (t.visible === !0 ||
|
|
1036
|
+
}), t.position === void 0 ? (t.visible === !0 || r && !n) && i.push({
|
|
1031
1037
|
name: "setLegendPosition",
|
|
1032
|
-
payload:
|
|
1033
|
-
}) :
|
|
1038
|
+
payload: a.Right
|
|
1039
|
+
}) : i.push({
|
|
1034
1040
|
name: "setLegendPosition",
|
|
1035
1041
|
payload: t.position
|
|
1036
|
-
}), t.title !== void 0 &&
|
|
1042
|
+
}), t.title !== void 0 && i.push({
|
|
1037
1043
|
name: "setLegendTitle",
|
|
1038
1044
|
payload: t.title
|
|
1039
|
-
}),
|
|
1045
|
+
}), i;
|
|
1040
1046
|
}, J = (e, t, n, r = {}) => ({
|
|
1041
1047
|
code: e,
|
|
1042
1048
|
message: n,
|
|
1043
1049
|
path: t,
|
|
1044
1050
|
...r
|
|
1045
|
-
}),
|
|
1051
|
+
}), Vn = (e, t, n, r, i, a) => ({
|
|
1046
1052
|
name: e,
|
|
1047
1053
|
payload: {
|
|
1048
1054
|
...Y(t),
|
|
@@ -1058,7 +1064,7 @@ var zn = (e, t) => {
|
|
|
1058
1064
|
ref: n,
|
|
1059
1065
|
kind: t.kind
|
|
1060
1066
|
}
|
|
1061
|
-
}),
|
|
1067
|
+
}), Hn = (e, t, n, r, i, a, o) => ({
|
|
1062
1068
|
name: e,
|
|
1063
1069
|
payload: {
|
|
1064
1070
|
name: t,
|
|
@@ -1077,7 +1083,7 @@ var zn = (e, t) => {
|
|
|
1077
1083
|
}), Y = (e) => ({
|
|
1078
1084
|
dataItemInternalKey: e.dataItemInternalKey,
|
|
1079
1085
|
dataItemUniqueSignature: e.dataItemUniqueSignature
|
|
1080
|
-
}),
|
|
1086
|
+
}), Un = (e) => {
|
|
1081
1087
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
1082
1088
|
return e.forEach(({ items: e, path: r }) => {
|
|
1083
1089
|
e.forEach((e, i) => {
|
|
@@ -1088,15 +1094,15 @@ var zn = (e, t) => {
|
|
|
1088
1094
|
], `Reference "${e.ref}" is duplicated.`)), n.add(e.ref);
|
|
1089
1095
|
});
|
|
1090
1096
|
}), t;
|
|
1091
|
-
},
|
|
1097
|
+
}, Wn = (e, t) => {
|
|
1092
1098
|
let n = e, r = n.referencedData;
|
|
1093
1099
|
return t.every((e) => !Array.isArray(n[e]) || n[e].length === 0) && (typeof r != "object" || !r || Object.keys(r).length === 0);
|
|
1094
|
-
},
|
|
1095
|
-
availableFields:
|
|
1100
|
+
}, Gn = (e, t) => ({
|
|
1101
|
+
availableFields: En(e.availableFields),
|
|
1096
1102
|
input: e,
|
|
1097
1103
|
resolvedRefs: {},
|
|
1098
1104
|
vSpec: t
|
|
1099
|
-
}),
|
|
1105
|
+
}), Kn = (e, t, n, r, i) => ({
|
|
1100
1106
|
name: e,
|
|
1101
1107
|
payload: {
|
|
1102
1108
|
...Y(t),
|
|
@@ -1108,7 +1114,7 @@ var zn = (e, t) => {
|
|
|
1108
1114
|
ref: n,
|
|
1109
1115
|
kind: t.kind
|
|
1110
1116
|
}
|
|
1111
|
-
}),
|
|
1117
|
+
}), qn = (e) => "value" in e ? { value: e.value } : "values" in e ? {
|
|
1112
1118
|
secondValue: e.values.join(","),
|
|
1113
1119
|
value: ","
|
|
1114
1120
|
} : "valueFrom" in e ? {
|
|
@@ -1118,14 +1124,14 @@ var zn = (e, t) => {
|
|
|
1118
1124
|
filters: e.filters.map((e) => "filters" in e ? X(e) : {
|
|
1119
1125
|
fieldKey: e.fieldKey,
|
|
1120
1126
|
operator: e.operator,
|
|
1121
|
-
values:
|
|
1127
|
+
values: qn(e)
|
|
1122
1128
|
}),
|
|
1123
1129
|
operator: e.operator
|
|
1124
|
-
}),
|
|
1130
|
+
}), Jn = (e, t) => (e ?? []).flatMap((e, n) => t.includes(e.by) ? [] : [J("unknown_alias", [
|
|
1125
1131
|
"sorting",
|
|
1126
1132
|
n,
|
|
1127
1133
|
"by"
|
|
1128
|
-
], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), Z = ["presentation", "coloring"],
|
|
1134
|
+
], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), Z = ["presentation", "coloring"], Yn = (e, t, n) => [...(e?.overwrites ?? []).flatMap(({ dimension: e }, n) => e === void 0 || t.includes(e) ? [] : [J("unknown_alias", [
|
|
1129
1135
|
...Z,
|
|
1130
1136
|
"overwrites",
|
|
1131
1137
|
n,
|
|
@@ -1135,7 +1141,7 @@ var zn = (e, t) => {
|
|
|
1135
1141
|
"rules",
|
|
1136
1142
|
t,
|
|
1137
1143
|
"measure"
|
|
1138
|
-
], `Measure reference "${e}" does not exist.`, { allowedValues: n })])],
|
|
1144
|
+
], `Measure reference "${e}" does not exist.`, { allowedValues: n })])], Xn = (e, t) => {
|
|
1139
1145
|
let n = t.safeParse(e.vSpec);
|
|
1140
1146
|
return n.success ? {
|
|
1141
1147
|
resolvedRefs: e.resolvedRefs,
|
|
@@ -1145,10 +1151,10 @@ var zn = (e, t) => {
|
|
|
1145
1151
|
issues: [J("invalid_compiled_vspec", [], "Compiled vSpec failed final validation.", { details: { issues: n.error.issues } })],
|
|
1146
1152
|
success: !1
|
|
1147
1153
|
};
|
|
1148
|
-
}, Q = (e) => "startsAtZero" in e ? {} : e,
|
|
1154
|
+
}, Q = (e) => "startsAtZero" in e ? {} : e, Zn = (e) => {
|
|
1149
1155
|
let { max: t, min: n } = Q(e);
|
|
1150
|
-
return n !== void 0 && t !== void 0 ?
|
|
1151
|
-
},
|
|
1156
|
+
return n !== void 0 && t !== void 0 ? u.MinMax : n === void 0 ? t === void 0 ? u.Auto : u.Max : u.Min;
|
|
1157
|
+
}, Qn = (e) => {
|
|
1152
1158
|
for (let [t, n] of Object.entries(e ?? {})) {
|
|
1153
1159
|
let { max: e, min: r } = n?.range ? Q(n.range) : {};
|
|
1154
1160
|
if (r !== void 0 && e !== void 0 && r >= e) return J("invalid_structure", [
|
|
@@ -1159,10 +1165,10 @@ var zn = (e, t) => {
|
|
|
1159
1165
|
"min"
|
|
1160
1166
|
], `Axis range min (${r}) must be less than max (${e}).`);
|
|
1161
1167
|
}
|
|
1162
|
-
},
|
|
1168
|
+
}, $n = (e, t) => {
|
|
1163
1169
|
let n = [];
|
|
1164
1170
|
t.inverted !== void 0 && n.push({
|
|
1165
|
-
name:
|
|
1171
|
+
name: y.SET_INVERT_AXIS,
|
|
1166
1172
|
payload: {
|
|
1167
1173
|
axisName: e,
|
|
1168
1174
|
invertAxis: t.inverted
|
|
@@ -1171,27 +1177,27 @@ var zn = (e, t) => {
|
|
|
1171
1177
|
let { range: r } = t;
|
|
1172
1178
|
if (r) {
|
|
1173
1179
|
n.push({
|
|
1174
|
-
name:
|
|
1180
|
+
name: y.SET_AXIS_RANGE_OPTION,
|
|
1175
1181
|
payload: {
|
|
1176
1182
|
axisName: e,
|
|
1177
|
-
axisRangeOption:
|
|
1183
|
+
axisRangeOption: Zn(r)
|
|
1178
1184
|
}
|
|
1179
1185
|
});
|
|
1180
1186
|
let { max: t, min: i } = Q(r);
|
|
1181
1187
|
i !== void 0 && n.push({
|
|
1182
|
-
name:
|
|
1188
|
+
name: y.SET_AXIS_RANGE_MIN,
|
|
1183
1189
|
payload: {
|
|
1184
1190
|
axisName: e,
|
|
1185
1191
|
minValue: i
|
|
1186
1192
|
}
|
|
1187
1193
|
}), t !== void 0 && n.push({
|
|
1188
|
-
name:
|
|
1194
|
+
name: y.SET_AXIS_RANGE_MAX,
|
|
1189
1195
|
payload: {
|
|
1190
1196
|
axisName: e,
|
|
1191
1197
|
maxValue: t
|
|
1192
1198
|
}
|
|
1193
1199
|
}), "startsAtZero" in r && n.push({
|
|
1194
|
-
name:
|
|
1200
|
+
name: y.SET_AXIS_STARTS_AT_ZERO,
|
|
1195
1201
|
payload: {
|
|
1196
1202
|
axisName: e,
|
|
1197
1203
|
startsAtZero: r.startsAtZero
|
|
@@ -1199,7 +1205,7 @@ var zn = (e, t) => {
|
|
|
1199
1205
|
});
|
|
1200
1206
|
}
|
|
1201
1207
|
return n;
|
|
1202
|
-
},
|
|
1208
|
+
}, er = (e) => {
|
|
1203
1209
|
let t = Object.entries(e).find(([, e]) => e.success === !1);
|
|
1204
1210
|
return t ? {
|
|
1205
1211
|
id: t[0],
|
|
@@ -1209,11 +1215,11 @@ var zn = (e, t) => {
|
|
|
1209
1215
|
let r = t.map((e, t) => ({
|
|
1210
1216
|
...e,
|
|
1211
1217
|
id: e.id ?? `definition:${t}`
|
|
1212
|
-
})), i = await
|
|
1218
|
+
})), i = await je(e.vSpec, e.availableFields, r.map(({ id: e, name: t, payload: n }) => ({
|
|
1213
1219
|
id: e,
|
|
1214
1220
|
name: t,
|
|
1215
1221
|
payload: n
|
|
1216
|
-
})), e.input.variables ?? [], [], e.input.theme), a =
|
|
1222
|
+
})), e.input.variables ?? [], [], e.input.theme), a = er(i.results);
|
|
1217
1223
|
if (!a) return {
|
|
1218
1224
|
state: {
|
|
1219
1225
|
...e,
|
|
@@ -1235,7 +1241,7 @@ var zn = (e, t) => {
|
|
|
1235
1241
|
} }),
|
|
1236
1242
|
success: !1
|
|
1237
1243
|
};
|
|
1238
|
-
},
|
|
1244
|
+
}, tr = (e, t) => {
|
|
1239
1245
|
if (!e || typeof e.data != "object" || e.data === null || !("dataItem" in e.data)) return;
|
|
1240
1246
|
let n = e.data.dataItem;
|
|
1241
1247
|
if (!(typeof n != "object" || !n || !("internalKey" in n) || typeof n.internalKey != "string" || !("uniqueSignature" in n) || typeof n.uniqueSignature != "string")) return {
|
|
@@ -1243,12 +1249,12 @@ var zn = (e, t) => {
|
|
|
1243
1249
|
dataItemUniqueSignature: n.uniqueSignature,
|
|
1244
1250
|
kind: t
|
|
1245
1251
|
};
|
|
1246
|
-
},
|
|
1247
|
-
let o = `${n}:${t.ref}`, s = await
|
|
1252
|
+
}, nr = async (e, t, n, r, i, a) => {
|
|
1253
|
+
let o = `${n}:${t.ref}`, s = await je(e.vSpec, e.availableFields, [{
|
|
1248
1254
|
id: o,
|
|
1249
1255
|
name: r,
|
|
1250
1256
|
payload: i
|
|
1251
|
-
}], e.input.variables ?? [], [], e.input.theme), c =
|
|
1257
|
+
}], e.input.variables ?? [], [], e.input.theme), c = er(s.results), l = tr(s.results[o], n);
|
|
1252
1258
|
return c || !l ? {
|
|
1253
1259
|
issue: J("operation_failed", a, c?.result.error ?? `${n} operation did not return the created data-item identity.`),
|
|
1254
1260
|
success: !1
|
|
@@ -1263,7 +1269,7 @@ var zn = (e, t) => {
|
|
|
1263
1269
|
},
|
|
1264
1270
|
success: !0
|
|
1265
1271
|
};
|
|
1266
|
-
},
|
|
1272
|
+
}, rr = (e, t, n, r) => {
|
|
1267
1273
|
let i = [
|
|
1268
1274
|
"formatType",
|
|
1269
1275
|
"formatString",
|
|
@@ -1275,23 +1281,23 @@ var zn = (e, t) => {
|
|
|
1275
1281
|
let o = e.resolvedRefs[t.ref];
|
|
1276
1282
|
return i.flatMap((e) => {
|
|
1277
1283
|
let i = t.format?.[e], s = n[e];
|
|
1278
|
-
return i !== void 0 && s ? [
|
|
1284
|
+
return i !== void 0 && s ? [Vn(s, o, t.ref, t.path ?? [...r, a], e, i)] : [];
|
|
1279
1285
|
});
|
|
1280
1286
|
}), r);
|
|
1281
|
-
},
|
|
1287
|
+
}, ir = (e, t, n, r) => $(e, t.flatMap((t, i) => t.temporalGrouping ? [Kn(n, e.resolvedRefs[t.ref], t.ref, t.path ?? [...r, i], t.temporalGrouping)] : []), r), ar = (e, t, n, r) => $(e, t.flatMap((t) => t.showNullValues === void 0 ? [] : [{
|
|
1282
1288
|
name: n,
|
|
1283
1289
|
payload: {
|
|
1284
1290
|
...Y(e.resolvedRefs[t.ref]),
|
|
1285
1291
|
changes: { showNullValues: t.showNullValues }
|
|
1286
1292
|
}
|
|
1287
|
-
}]), r),
|
|
1293
|
+
}]), r), or = (e, t) => t ? $(e, [{
|
|
1288
1294
|
id: "filterGroup",
|
|
1289
1295
|
name: "setStaticFilterGroup",
|
|
1290
1296
|
payload: X(t)
|
|
1291
1297
|
}], ["filterGroup"]) : Promise.resolve({
|
|
1292
1298
|
state: e,
|
|
1293
1299
|
success: !0
|
|
1294
|
-
}),
|
|
1300
|
+
}), sr = (e, t, n, r) => {
|
|
1295
1301
|
if (!t?.length) return Promise.resolve({
|
|
1296
1302
|
state: e,
|
|
1297
1303
|
success: !0
|
|
@@ -1318,20 +1324,20 @@ var zn = (e, t) => {
|
|
|
1318
1324
|
enabled: t.enabled ?? !0
|
|
1319
1325
|
}
|
|
1320
1326
|
}))], ["sorting"]);
|
|
1321
|
-
},
|
|
1327
|
+
}, cr = (e, t) => {
|
|
1322
1328
|
let n = [];
|
|
1323
1329
|
return t?.overwrites && n.push({
|
|
1324
|
-
name:
|
|
1330
|
+
name: ke.SET_COLORING_OVERWRITES,
|
|
1325
1331
|
payload: { overwrites: t.overwrites.map(({ dimension: t, ...n }) => t === void 0 ? n : {
|
|
1326
1332
|
...n,
|
|
1327
1333
|
dimension: Y(e.resolvedRefs[t])
|
|
1328
1334
|
}) }
|
|
1329
1335
|
}), t?.rules && n.push({
|
|
1330
|
-
name:
|
|
1336
|
+
name: ke.SET_COLORING_RULES,
|
|
1331
1337
|
payload: { rules: t.rules.map(({ measure: t, ...n }) => ({
|
|
1332
1338
|
...n,
|
|
1333
1339
|
measure: Y(e.resolvedRefs[t])
|
|
1334
1340
|
})) }
|
|
1335
1341
|
}), $(e, n, Z);
|
|
1336
1342
|
};
|
|
1337
|
-
export {
|
|
1343
|
+
export { Et as $, Nn as A, rn as B, Un as C, Mn as D, U as E, gn as F, Rt as G, an as H, on as I, Tt as J, Pt as K, en as L, Pn as M, xn as N, jn as O, En as P, xt as Q, tn as R, Yn as S, zn as T, Qt as U, sn as V, Zt as W, wt as X, yt as Y, St as Z, Qn as _, rr as a, At as at, X as b, $n as c, E as ct, J as d, Ct as et, Bn as f, Xn as g, $ as h, or as i, Ot as it, Fn as j, W as k, Vn as l, Ne as lt, Kn as m, cr as n, bt as nt, sr as o, jt as ot, Hn as p, vt as q, ar as r, Dt as rt, ir as s, ht as st, nr as t, kt as tt, Gn as u, Wn as v, G as w, Jn as x, Y as y, nn as z };
|