@astrato-io/visualizations 0.6.5 → 0.8.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.
Files changed (140) hide show
  1. package/README.md +8 -2
  2. package/THIRD_PARTY_NOTICES.md +2 -229
  3. package/VISUALIZATION_DEFINITIONS.md +68 -114
  4. package/chunks/Button-BrGKp9Nm.js +110 -0
  5. package/chunks/DefaultPropsProvider-BsfB7QTn.js +257 -0
  6. package/chunks/FieldTypeIcon-Drs6hSJF.js +22 -0
  7. package/chunks/{LinearProgress-B1FeWaen.js → LinearProgress-VtfFx2vJ.js} +55 -55
  8. package/chunks/MenuOption-ByRqhRdX.js +3934 -0
  9. package/chunks/Title-CO5dP1ma.js +1691 -0
  10. package/chunks/ToggleButton-KOBAimC1.js +112 -0
  11. package/chunks/{app-filter-bar.compiler-BGJ7HAbr.js → app-filter-bar.compiler-TwVTeoj5.js} +10 -10
  12. package/chunks/{bar.compiler-CT0ZbQKc.js → bar.compiler-DuQg8EUb.js} +84 -84
  13. package/chunks/builder-DEDvNq1k.js +201 -0
  14. package/chunks/{color-settings-ZIvgNTq1.js → color-rules-CN7TcGrC.js} +2 -6
  15. package/chunks/color-settings-3VRlf_Vw.js +6 -0
  16. package/chunks/colorManipulator-D8Pjy1pf.js +45 -0
  17. package/chunks/coloring-CncX_JRX.js +278 -0
  18. package/chunks/{definitions-D3OVqmXl.js → definitions-BPJQTx16.js} +490 -382
  19. package/chunks/{escobar-eDjtGpkC.js → escobar-DRhRMYRE.js} +6067 -4742
  20. package/chunks/event-bus-CrLB-Y8z.js +3 -0
  21. package/chunks/extend-preset-CUFNpmPe.js +4398 -0
  22. package/chunks/{filter.compiler-DBsyRBJt.js → filter.compiler-w27dlv0C.js} +12 -12
  23. package/chunks/{filtering-tqjAyJH5.js → filtering-cc7WqWpg.js} +391 -310
  24. package/chunks/{handlers-VTBfIZYZ.js → handlers-TOT-7INo.js} +3241 -3442
  25. package/chunks/icon-picker-styles-CoJmwTRi.js +2246 -0
  26. package/chunks/isEqual-B8loyPsC.js +12 -0
  27. package/chunks/label-format-type-weq1XfcX.js +8 -0
  28. package/chunks/{line.compiler-CzdM5Ld0.js → line.compiler-Ct1WhN2p.js} +27 -27
  29. package/chunks/logger-DpQtYQnX.js +1163 -0
  30. package/chunks/lookup-BWllin0q.js +36 -0
  31. package/chunks/{metadata-BGElBy5Z.js → metadata-WABZrt7Y.js} +1 -1
  32. package/chunks/{number.compiler-G-R7y16P.js → number.compiler-D8TPly-4.js} +13 -13
  33. package/chunks/{operations-CTNUX6Sy.js → operations-Dh4v1Ovt.js} +9314 -9283
  34. package/chunks/{range-CiwTbMig.js → range-Bi-7zT0k.js} +2 -2
  35. package/chunks/render-wrappers-OEmtaM8g.js +2 -0
  36. package/chunks/{registry-CsQQzukD.js → requirements-Dvd8jqYF.js} +218 -222
  37. package/chunks/responsive.styles-DSiOGD7u.js +82 -0
  38. package/chunks/{shared-CBvcC5YV.js → shared-Bn4N5QcZ.js} +424 -424
  39. package/chunks/src-77e3mC7i.js +391 -0
  40. package/chunks/standalone-B55oyW6c.js +689 -0
  41. package/chunks/{standalone-C3gg736V.js → standalone-BDhPQtzQ.js} +375 -341
  42. package/chunks/{standalone-BMIbT1b2.js → standalone-BGkmozIb.js} +992 -837
  43. package/chunks/standalone-BMTCb10X.js +179 -0
  44. package/chunks/standalone-BXKRE_Se.js +468 -0
  45. package/chunks/standalone-Bes8srx1.js +354 -0
  46. package/chunks/standalone-BjZp0QMe.js +2 -0
  47. package/chunks/{standalone-JuLF-OoH.js → standalone-BlMIwpEe.js} +634 -519
  48. package/chunks/{standalone-C_rYnZ0N.js → standalone-C8ZAEutO.js} +43 -42
  49. package/chunks/standalone-C8qAelL4.js +2 -0
  50. package/chunks/standalone-CJvIXsQE.js +743 -0
  51. package/chunks/standalone-CLmGb7nn2.js +355 -0
  52. package/chunks/standalone-CM5XcAN5.js +52327 -0
  53. package/chunks/standalone-CXNP6-xD.js +420 -0
  54. package/chunks/{standalone-vzBY6q0I2.js → standalone-D5Q5ngsD.js} +57 -55
  55. package/chunks/standalone-DLlyRIE6.js +287 -0
  56. package/chunks/standalone-DMcI1afI.js +396 -0
  57. package/chunks/{standalone-DC-aUgXC.js → standalone-DN4S1MjT.js} +1111 -1092
  58. package/chunks/standalone-DT0wKji7.js +6 -0
  59. package/chunks/standalone-DW6NT205.js +518 -0
  60. package/chunks/standalone-DYQIQH4c.js +2095 -0
  61. package/chunks/standalone-D__XCp-h.js +1003 -0
  62. package/chunks/standalone-XTgSsTAa.js +354 -0
  63. package/chunks/{standalone-v1oxfU20.js → standalone-XuGksArp.js} +20 -20
  64. package/chunks/{standalone-0M4HlmDW2.js → standalone-vBnBS2YC.js} +1047 -964
  65. package/chunks/{standalone-BtSHCp2U2.js → standalone-we5D5MIn.js} +173 -168
  66. package/chunks/{table.compiler-tb914oj3.js → table.compiler-DMeeHxb6.js} +29 -29
  67. package/chunks/useFieldName-Cjn9KCVp.js +7 -0
  68. package/chunks/useSlotProps-DLbQp4lc.js +166 -0
  69. package/chunks/{utils-Bg7K-t6K.js → utils-vdmi_2PK.js} +6271 -7804
  70. package/chunks/{view-Bn83C8d9.js → view-BuwQugKb.js} +2717 -3504
  71. package/chunks/{isEqual-BDxAhUo8.js → visualization-filters-Cc4KU-l-.js} +1887 -1946
  72. package/chunks/with-html-element-D0uY2zjI.js +7328 -0
  73. package/definitions.js +2 -2
  74. package/docs/operations/astrato-app-filter-bar.md +1 -1
  75. package/docs/operations/bar.md +31 -14
  76. package/docs/operations/combo.md +1 -1
  77. package/docs/operations/date-picker.md +3 -3
  78. package/docs/operations/distribution-gauge.md +13 -13
  79. package/docs/operations/dot.md +13 -13
  80. package/docs/operations/filter.md +1 -1
  81. package/docs/operations/gauge.md +13 -13
  82. package/docs/operations/heatMap.md +13 -13
  83. package/docs/operations/histogram.md +1 -1
  84. package/docs/operations/iframe.md +1 -1
  85. package/docs/operations/image.md +1 -1
  86. package/docs/operations/index.md +3 -3
  87. package/docs/operations/line.md +7 -7
  88. package/docs/operations/number.md +1 -1
  89. package/docs/operations/pie.md +13 -13
  90. package/docs/operations/radar.md +7 -7
  91. package/docs/operations/sankey.md +13 -13
  92. package/docs/operations/scatter.md +13 -13
  93. package/docs/operations/shape.md +1 -1
  94. package/docs/operations/simpleTextObject.md +1 -1
  95. package/docs/operations/slider.md +1 -1
  96. package/docs/operations/table.md +18 -1
  97. package/docs/operations/tree.md +51 -37
  98. package/docs/operations/treemap.md +63 -49
  99. package/docs/operations/waterfall.md +1 -1
  100. package/docs/operations/word-cloud.md +13 -13
  101. package/getters.js +7 -7
  102. package/index.js +419 -417
  103. package/metadata.js +17 -18
  104. package/operations.js +13 -13
  105. package/package.json +70 -55
  106. package/src/definitions/index.d.ts +1 -1
  107. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +53 -30
  108. package/src/definitions/model/definitions/index.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  110. package/src/definitions/model/definitions/schemas/object.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/types/compilation.types.d.ts +10 -0
  112. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  113. package/src/getters/index.d.ts +1 -1
  114. package/src/operations/index.d.ts +1 -1
  115. package/src/types.d.ts +1 -0
  116. package/chunks/ClickAwayListener-BbeNMAvj.js +0 -52
  117. package/chunks/builder-B6dWSIdD.js +0 -12289
  118. package/chunks/coloring-B1XAfg6b.js +0 -664
  119. package/chunks/events-WZut5Ow6.js +0 -4
  120. package/chunks/grouping-type-On4s9Thj.js +0 -3
  121. package/chunks/requirements-DYjZCFyf.js +0 -6
  122. package/chunks/standalone-0ashe9w1.js +0 -411
  123. package/chunks/standalone-B7jax8wa.js +0 -339
  124. package/chunks/standalone-BK0VYU-l.js +0 -463
  125. package/chunks/standalone-BZV5vOwA.js +0 -6
  126. package/chunks/standalone-BhDrWj4p.js +0 -1980
  127. package/chunks/standalone-BvaKdky9.js +0 -344
  128. package/chunks/standalone-BwtM31-f.js +0 -2
  129. package/chunks/standalone-CC1VUjO32.js +0 -299
  130. package/chunks/standalone-CoLrAxRV.js +0 -13198
  131. package/chunks/standalone-DCtRoTWg.js +0 -675
  132. package/chunks/standalone-DUDFTBqL.js +0 -833
  133. package/chunks/standalone-DhZkX9Td.js +0 -2
  134. package/chunks/standalone-DtLElfuM.js +0 -512
  135. package/chunks/standalone-G9Q4Uczu.js +0 -726
  136. package/chunks/standalone-_DeX21JJ.js +0 -383
  137. package/chunks/standalone-gFhKZh8m.js +0 -179
  138. package/chunks/standalone-tDNy-SFH.js +0 -281
  139. package/chunks/ui-DQWtv2iM.js +0 -63551
  140. package/chunks/useFieldName-BvdcoJRl.js +0 -7
@@ -1,252 +1,252 @@
1
- import { Mo as e, No as t, Wc as n, a as r, bs as i, ms as a, ps as o, rs as s, us as c, xs as l } from "./isEqual-BDxAhUo8.js";
2
- import { Df as u, Gp as ee, Jd as d, Kd as f, Pm as te, Qd as ne, Sm as re, Tm as ie, Ud as p, Vm as ae, Yd as oe, Zd as se, ep as ce, fp as le, jm as m, mp as ue, np as de, op as fe, pf as h, pm as pe, pp as me, rm as he, sm as ge, tp as _e, um as ve, zf as g } from "./handlers-VTBfIZYZ.js";
3
- import { T as _, d as ye, t as v, y } from "./operations-CTNUX6Sy.js";
4
- import { z as b } from "zod";
5
- var x = n(), be = b.object({
6
- orientation: b.enum(["horizontal", "vertical"]).optional(),
7
- selectionMode: b.enum([
1
+ import { Mo as e, Oo as t, Ro as n, Xa as r, Za as i, jo as a, r as o, vc as s, xo as c, zo as l } from "./visualization-filters-Cc4KU-l-.js";
2
+ import { Bp as u, Em as d, Kd as ee, Nm as te, Pf as f, Qp as p, Rd as m, Sf as ne, Ud as h, Vd as g, Wd as re, Xf as ie, Yf as ae, Zf as oe, _m as se, am as ce, bm as le, cf as _, cm as ue, cp as de, km as fe, lp as pe, nm as me, qd as he, sp as ge, tp as _e } from "./handlers-TOT-7INo.js";
3
+ import { T as ve, d as ye, t as be, y as v } from "./operations-Dh4v1Ovt.js";
4
+ import { z as y } from "zod";
5
+ var b = s(), xe = y.object({
6
+ orientation: y.enum(["horizontal", "vertical"]).optional(),
7
+ selectionMode: y.enum([
8
8
  "inherit",
9
9
  "auto",
10
10
  "manual"
11
11
  ]).optional(),
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(), xe = b.object({
18
- settings: be.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."), Se = S(ie.shape.dataType), Ce = S(re.shape.formatType), we = b.object({
22
- distinct: b.boolean().optional(),
23
- name: b.string().trim().min(1),
24
- resultType: b.string().optional()
25
- }).strict(), Te = b.object({
26
- aggregations: b.array(we).default([]),
27
- dataType: Se,
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(), Ee = T.extend({
40
- dimension: b.record(b.string(), b.unknown()),
41
- type: b.literal("dimension")
42
- }), De = T.extend({
43
- measure: b.object({ aggregation: b.string().min(1) }).passthrough(),
44
- type: b.literal("measure")
45
- }), Oe = T.extend({
46
- calculation: b.record(b.string(), b.unknown()),
47
- type: b.literal("calculation")
48
- }), ke = b.object({
49
- fieldKey: w,
50
- item: Ee,
51
- kind: b.literal("dimension"),
52
- name: b.string().min(1)
53
- }).strict(), Ae = b.object({
54
- fieldKey: w,
12
+ enableAddingNewFilters: y.boolean().optional(),
13
+ enableAssociativeFilter: y.boolean().optional(),
14
+ showClearAll: y.boolean().optional(),
15
+ showChartBreakdown: y.boolean().optional(),
16
+ selectableFieldKeys: y.array(y.string()).optional()
17
+ }).strict(), Se = y.object({
18
+ settings: xe.optional(),
19
+ type: y.literal("astrato-app-filter-bar"),
20
+ version: y.literal(1)
21
+ }).strict(), x = (e) => e, S = y.string().trim().min(1).max(100), C = y.string().min(1).refine((e) => e.trim().length > 0, "Field key cannot be blank."), Ce = x(le.shape.dataType), we = x(se.shape.formatType), Te = y.object({
22
+ distinct: y.boolean().optional(),
23
+ name: y.string().trim().min(1),
24
+ resultType: y.string().optional()
25
+ }).strict(), Ee = y.object({
26
+ aggregations: y.array(Te).default([]),
27
+ dataType: Ce,
28
+ fieldKey: C,
29
+ isManualData: y.boolean().optional(),
30
+ kind: y.literal("field").default("field"),
31
+ name: y.string().min(1),
32
+ view: y.string().min(1)
33
+ }).strict(), w = y.object({
34
+ description: y.string().optional(),
35
+ id: y.string().min(1).optional(),
36
+ key: C,
37
+ name: y.string().min(1),
38
+ views: y.array(y.string()).optional()
39
+ }).passthrough(), De = w.extend({
40
+ dimension: y.record(y.string(), y.unknown()),
41
+ type: y.literal("dimension")
42
+ }), Oe = w.extend({
43
+ measure: y.object({ aggregation: y.string().min(1) }).passthrough(),
44
+ type: y.literal("measure")
45
+ }), ke = w.extend({
46
+ calculation: y.record(y.string(), y.unknown()),
47
+ type: y.literal("calculation")
48
+ }), Ae = y.object({
49
+ fieldKey: C,
55
50
  item: De,
56
- kind: b.literal("measure"),
57
- name: b.string().min(1)
58
- }).strict(), je = b.object({
59
- fieldKey: w,
51
+ kind: y.literal("dimension"),
52
+ name: y.string().min(1)
53
+ }).strict(), je = y.object({
54
+ fieldKey: C,
60
55
  item: Oe,
61
- kind: b.literal("calculation"),
62
- name: b.string().min(1)
63
- }).strict(), E = b.union([
64
- Te,
65
- ke,
56
+ kind: y.literal("measure"),
57
+ name: y.string().min(1)
58
+ }).strict(), Me = y.object({
59
+ fieldKey: C,
60
+ item: ke,
61
+ kind: y.literal("calculation"),
62
+ name: y.string().min(1)
63
+ }).strict(), T = y.union([
64
+ Ee,
66
65
  Ae,
67
- je
66
+ je,
67
+ Me
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
- }), Me = b.object({
75
- currency: b.string().min(1).optional(),
76
- currencyIsPrefix: b.boolean().optional(),
77
- formatString: b.string().optional(),
78
- formatType: Ce.optional(),
79
- negativeType: S(re.shape.negativeType.unwrap()).optional()
80
- }).strict(), Ne = 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: Me.pick({
74
+ }), Ne = y.object({
75
+ currency: y.string().min(1).optional(),
76
+ currencyIsPrefix: y.boolean().optional(),
77
+ formatString: y.string().optional(),
78
+ formatType: we.optional(),
79
+ negativeType: x(se.shape.negativeType.unwrap()).optional()
80
+ }).strict(), Pe = y.discriminatedUnion("mode", [y.object({
81
+ dateLevel: x(y.enum(b.DateLevel)).describe("Year-aware bucket, such as month over time."),
82
+ mode: y.literal("level")
83
+ }).strict(), y.object({
84
+ datePart: x(y.enum(b.DatePart)).describe("Date part, such as month of year."),
85
+ mode: y.literal("part")
86
+ }).strict()]), E = y.object({
87
+ fieldKey: C,
88
+ format: Ne.pick({
89
89
  formatString: !0,
90
90
  formatType: !0
91
91
  }).optional(),
92
- ref: C,
93
- showNullValues: b.boolean().optional(),
94
- temporalGrouping: Ne.describe("Groups a date dimension. Applied before format; format must then suit the grouping.").optional()
95
- }).strict(), Pe = b.object({
96
- placements: b.array(S(b.enum(te))).min(1).optional(),
97
- visible: b.boolean()
98
- }).strict(), O = b.object({
99
- aggregation: b.string().trim().min(1).describe("Required for a raw field measure; omit for a predefined measure or calculation.").optional(),
100
- dataLabels: Pe.optional(),
101
- fieldKey: w,
102
- format: Me.optional(),
103
- ref: C
104
- }).strict(), Fe = b.object({
105
- fieldKey: w,
106
- operator: S(b.enum(fe)),
107
- value: b.string()
108
- }).strict(), Ie = b.object({
109
- fieldKey: w,
110
- operator: S(b.enum(de)),
111
- valueFrom: b.string(),
112
- valueTo: b.string()
113
- }).strict(), Le = b.object({
114
- fieldKey: w,
115
- operator: S(b.enum(ce)),
116
- values: b.array(b.string()).min(1)
117
- }).strict(), Re = b.object({
118
- fieldKey: w,
119
- operator: S(b.enum(_e))
120
- }).strict(), ze = b.union([
121
- Fe,
92
+ ref: S,
93
+ showNullValues: y.boolean().optional(),
94
+ temporalGrouping: Pe.describe("Groups a date dimension. Applied before format; format must then suit the grouping.").optional()
95
+ }).strict(), Fe = y.object({
96
+ placements: y.array(x(y.enum(fe))).min(1).optional(),
97
+ visible: y.boolean()
98
+ }).strict(), D = y.object({
99
+ aggregation: y.string().trim().min(1).describe("Required for a raw field measure; omit for a predefined measure or calculation.").optional(),
100
+ dataLabels: Fe.optional(),
101
+ fieldKey: C,
102
+ format: Ne.optional(),
103
+ ref: S
104
+ }).strict(), Ie = y.object({
105
+ fieldKey: C,
106
+ operator: x(y.enum(_e)),
107
+ value: y.string()
108
+ }).strict(), Le = y.object({
109
+ fieldKey: C,
110
+ operator: x(y.enum(oe)),
111
+ valueFrom: y.string(),
112
+ valueTo: y.string()
113
+ }).strict(), Re = y.object({
114
+ fieldKey: C,
115
+ operator: x(y.enum(ae)),
116
+ values: y.array(y.string()).min(1)
117
+ }).strict(), ze = y.object({
118
+ fieldKey: C,
119
+ operator: x(y.enum(ie))
120
+ }).strict(), Be = y.union([
122
121
  Ie,
123
122
  Le,
124
- Re
125
- ]), k = b.lazy(() => b.object({
126
- filters: b.array(b.union([ze, k])),
127
- operator: b.enum(["and", "or"])
128
- }).strict()), A = b.object({
129
- by: C,
130
- direction: S(he.shape.sortDirection),
131
- enabled: b.boolean().optional()
132
- }).strict(), Be = b.object({
133
- by: C,
134
- count: b.number().int().positive(),
135
- direction: S(he.shape.sortDirection),
136
- showOthers: b.boolean().optional()
137
- }).strict(), Ve = b.object({
138
- queryLimit: b.number().int().positive().optional(),
139
- topN: Be.optional()
140
- }).strict(), j = b.object({
141
- position: S(pe.shape.position).optional(),
142
- title: b.string().optional(),
143
- visible: b.boolean().optional()
144
- }).strict(), M = b.object({
145
- labelsVisible: b.boolean().optional(),
146
- lineVisible: b.boolean().optional(),
147
- ticksVisible: b.boolean().optional(),
148
- title: b.string().optional(),
149
- titleVisible: b.boolean().optional()
150
- }).strict(), He = b.union([b.object({
151
- max: b.number().optional(),
152
- min: b.number().optional().describe("Must be less than max when both are set")
153
- }).strict(), b.object({ startsAtZero: b.boolean() }).strict()]).describe("Fix min, max or both, or set startsAtZero on an axis fitted to the data"), Ue = b.array(ee).optional().describe("Shaded ranges drawn across the plot between two primary measure axis values"), We = le({}), Ge = le({ dimension: C.describe(`Alias of a dimension in data.dimensions. ${ue}`) }), Ke = me({ measure: C.describe("Alias of the measure in data.measures whose value is compared") }), qe = "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.", Je = b.array(Ke).min(1).describe("Colors bound to measure thresholds, eg. red when sales is below 100. The first matching rule wins."), N = (e) => b.object({
154
- overwrites: b.array(e.requiresOverwriteDimension ? Ge : We).min(1).describe(qe).optional(),
155
- ...e.rules ? { rules: Je.optional() } : {}
156
- }).strict(), Ye = {
157
- inverted: b.boolean().optional().describe("Reverse the direction of the axis values, eg. to put rank 1 at the top"),
158
- range: He.optional()
159
- }, Xe = { bands: Ue }, Ze = { scale: S(b.enum(ae)).optional() };
160
- M.extend({
161
- ...Ye,
162
- ...Xe,
123
+ Re,
124
+ ze
125
+ ]), O = y.lazy(() => y.object({
126
+ filters: y.array(y.union([Be, O])),
127
+ operator: y.enum(["and", "or"])
128
+ }).strict()), k = y.object({
129
+ by: S,
130
+ direction: x(p.shape.sortDirection),
131
+ enabled: y.boolean().optional()
132
+ }).strict(), Ve = y.object({
133
+ by: S,
134
+ count: y.number().int().positive(),
135
+ direction: x(p.shape.sortDirection),
136
+ showOthers: y.boolean().optional()
137
+ }).strict(), He = y.object({
138
+ queryLimit: y.number().int().positive().optional(),
139
+ topN: Ve.optional()
140
+ }).strict(), Ue = y.object({
141
+ position: x(ue.shape.position).optional(),
142
+ title: y.string().optional(),
143
+ visible: y.boolean().optional()
144
+ }).strict(), A = y.object({
145
+ labelsVisible: y.boolean().optional(),
146
+ lineVisible: y.boolean().optional(),
147
+ ticksVisible: y.boolean().optional(),
148
+ title: y.string().optional(),
149
+ titleVisible: y.boolean().optional()
150
+ }).strict(), We = y.union([y.object({
151
+ max: y.number().optional(),
152
+ min: y.number().optional().describe("Must be less than max when both are set")
153
+ }).strict(), y.object({ startsAtZero: y.boolean() }).strict()]).describe("Fix min, max or both, or set startsAtZero on an axis fitted to the data"), Ge = y.array(u).optional().describe("Shaded ranges drawn across the plot between two primary measure axis values"), Ke = ge({}), qe = ge({ dimension: S.describe(`Alias of a dimension in data.dimensions. ${pe}`) }), Je = de({ measure: S.describe("Alias of the measure in data.measures whose value is compared") }), Ye = "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.", Xe = y.array(Je).min(1).describe("Colors bound to measure thresholds, eg. red when sales is below 100. The first matching rule wins."), j = (e) => y.object({
154
+ overwrites: y.array(e.requiresOverwriteDimension ? qe : Ke).min(1).describe(Ye).optional(),
155
+ ...e.rules ? { rules: Xe.optional() } : {}
156
+ }).strict(), M = {
157
+ inverted: y.boolean().optional().describe("Reverse the direction of the axis values, eg. to put rank 1 at the top"),
158
+ range: We.optional()
159
+ }, N = { bands: Ge }, Ze = { scale: x(y.enum(te)).optional() };
160
+ A.extend({
161
+ ...M,
162
+ ...N,
163
163
  ...Ze
164
164
  }).strict();
165
165
  var P = ({ logScale: e = !1, primaryMeasureBands: t = !1, rangedMeasureAxes: n = [] } = {}) => {
166
- let r = (t, r) => M.extend({
167
- ...n.includes(t) ? Ye : {},
168
- ...r ? Xe : {},
166
+ let r = (t, r) => A.extend({
167
+ ...n.includes(t) ? M : {},
168
+ ...r ? N : {},
169
169
  ...e ? Ze : {}
170
170
  }).strict();
171
- return b.object({
172
- dimension: M.optional(),
171
+ return y.object({
172
+ dimension: A.optional(),
173
173
  primaryMeasure: r("primaryMeasure", t).optional(),
174
174
  secondaryMeasure: r("secondaryMeasure", !1).optional()
175
175
  }).strict();
176
176
  };
177
177
  P();
178
- var Qe = b.object({
178
+ var Qe = y.object({
179
179
  axes: P({
180
180
  logScale: !0,
181
181
  primaryMeasureBands: !0,
182
182
  rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"]
183
183
  }).optional(),
184
- legend: j.optional(),
185
- orientation: S(b.enum(t)).optional()
186
- }).strict(), $e = O.extend({ axis: b.enum(["primary", "secondary"]).optional() }), et = b.object({
187
- data: b.object({
188
- dimensions: b.array(D).min(1),
189
- measures: b.array($e).min(1)
184
+ legend: Ue.optional(),
185
+ orientation: x(y.enum(i)).optional()
186
+ }).strict(), $e = D.extend({ axis: y.enum(["primary", "secondary"]).optional() }), et = y.object({
187
+ data: y.object({
188
+ dimensions: y.array(E).min(1),
189
+ measures: y.array($e).min(1)
190
190
  }).strict(),
191
- filterGroup: k.optional(),
192
- limiting: Ve.optional(),
193
- presentation: Qe.extend({ coloring: N({ rules: !0 }).optional() }).optional(),
194
- sorting: b.array(A).optional(),
195
- type: b.literal("bar"),
196
- version: b.literal(1)
197
- }).strict(), tt = b.object({ visible: b.boolean() }).strict(), nt = (e, t) => b.array(e).min(t.min).max(t.max), F = (e, n) => {
198
- let r = {};
199
- if (n.dimensions.max > 0) {
200
- let e = nt(D, n.dimensions);
201
- r.dimensions = n.dimensions.min === 0 ? e.optional() : e;
191
+ filterGroup: O.optional(),
192
+ limiting: He.optional(),
193
+ presentation: Qe.extend({ coloring: j({ rules: !0 }).optional() }).optional(),
194
+ sorting: y.array(k).optional(),
195
+ type: y.literal("bar"),
196
+ version: y.literal(1)
197
+ }).strict(), tt = y.object({ visible: y.boolean() }).strict(), nt = (e, t) => y.array(e).min(t.min).max(t.max), F = (e, t) => {
198
+ let n = {};
199
+ if (t.dimensions.max > 0) {
200
+ let e = nt(E, t.dimensions);
201
+ n.dimensions = t.dimensions.min === 0 ? e.optional() : e;
202
202
  }
203
- if (n.measures.max > 0) {
204
- let e = n.dataLabels ? O.omit({ dataLabels: !0 }).extend({ dataLabels: tt.optional() }) : O.omit({ dataLabels: !0 }), t = n.comboSeriesTypes ? e.extend({ seriesType: b.enum([
203
+ if (t.measures.max > 0) {
204
+ let e = t.dataLabels ? D.omit({ dataLabels: !0 }).extend({ dataLabels: tt.optional() }) : D.omit({ dataLabels: !0 }), r = t.comboSeriesTypes ? e.extend({ seriesType: y.enum([
205
205
  "bar",
206
206
  "line",
207
207
  "point"
208
- ]).optional() }) : e, i = nt(n.measureAxis ? t.extend({ axis: b.enum(["primary", "secondary"]).optional() }) : t, n.measures);
209
- r.measures = n.measures.min === 0 ? i.optional() : i;
208
+ ]).optional() }) : e, i = nt(t.measureAxis ? r.extend({ axis: y.enum(["primary", "secondary"]).optional() }) : r, t.measures);
209
+ n.measures = t.measures.min === 0 ? i.optional() : i;
210
210
  }
211
- let i = {};
212
- if (n.axes) {
211
+ let r = {};
212
+ if (t.axes) {
213
213
  let e = P({
214
- logScale: n.measureAxisScale,
215
- primaryMeasureBands: n.measureAxisBands,
216
- rangedMeasureAxes: n.rangedMeasureAxes
214
+ logScale: t.measureAxisScale,
215
+ primaryMeasureBands: t.measureAxisBands,
216
+ rangedMeasureAxes: t.rangedMeasureAxes
217
217
  });
218
- i.axes = (n.secondaryDimensionAxis ? e.extend({ secondaryDimension: M.optional() }) : e).optional();
218
+ r.axes = (t.secondaryDimensionAxis ? e.extend({ secondaryDimension: A.optional() }) : e).optional();
219
219
  }
220
- n.conditionalColoring && (i.coloring = N(n.conditionalColoring).optional()), n.dataLabels && (i.dataLabels = tt.optional()), n.gaugeDisplayMode && (i.displayMode = b.enum(["bar", "radial"]).optional()), n.legend && (i.legend = j.optional()), n.orientation && (i.orientation = S(b.enum(t)).optional()), n.treeLayout && (i.layout = b.object({
221
- compact: b.boolean().optional(),
222
- direction: b.enum([
220
+ t.conditionalColoring && (r.coloring = j(t.conditionalColoring).optional()), t.dataLabels && (r.dataLabels = tt.optional()), t.gaugeDisplayMode && (r.displayMode = y.enum(["bar", "radial"]).optional()), t.legend && (r.legend = Ue.optional()), t.orientation && (r.orientation = x(y.enum(i)).optional()), t.treeLayout && (r.layout = y.object({
221
+ compact: y.boolean().optional(),
222
+ direction: y.enum([
223
223
  "bottom",
224
224
  "left",
225
225
  "right",
226
226
  "top"
227
227
  ]).optional(),
228
- forceAutoFit: b.boolean().optional(),
229
- initialExpandedLevels: b.number().int().min(0).optional()
228
+ forceAutoFit: y.boolean().optional(),
229
+ initialExpandedLevels: y.number().int().min(0).optional()
230
230
  }).strict().optional());
231
231
  let a = {
232
- data: b.object(r).strict(),
233
- filterGroup: k.optional(),
234
- type: b.literal(e),
235
- version: b.literal(1)
232
+ data: y.object(n).strict(),
233
+ filterGroup: O.optional(),
234
+ type: y.literal(e),
235
+ version: y.literal(1)
236
236
  };
237
- return n.queryLimit && (a.limiting = b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional()), Object.keys(i).length > 0 && (a.presentation = b.object(i).strict().optional()), n.sorting && (a.sorting = b.array(A).optional()), b.object(a).strict().superRefine((t, r) => {
238
- let i = t.data, a = n.validateCounts?.(i.dimensions?.length ?? 0, i.measures?.length ?? 0);
237
+ return t.queryLimit && (a.limiting = y.object({ queryLimit: y.number().int().positive().optional() }).strict().optional()), Object.keys(r).length > 0 && (a.presentation = y.object(r).strict().optional()), t.sorting && (a.sorting = y.array(k).optional()), y.object(a).strict().superRefine((n, r) => {
238
+ let i = n.data, a = t.validateCounts?.(i.dimensions?.length ?? 0, i.measures?.length ?? 0);
239
239
  a && r.addIssue({
240
240
  code: "custom",
241
241
  message: a,
242
242
  path: ["data"]
243
243
  });
244
- let o = n.conditionalColoring?.minDimensions ?? 0;
245
- t.presentation?.coloring && (i.dimensions?.length ?? 0) < o && r.addIssue({
244
+ let o = t.conditionalColoring?.minDimensions ?? 0;
245
+ n.presentation?.coloring && (i.dimensions?.length ?? 0) < o && r.addIssue({
246
246
  code: "custom",
247
247
  message: `${e} value colors require at least ${o} dimensions.`,
248
248
  path: ["presentation", "coloring"]
249
- }), n.validateDefinition?.(t, r);
249
+ }), t.validateDefinition?.(n, r);
250
250
  });
251
251
  }, rt = F("combo", {
252
252
  axes: !0,
@@ -473,41 +473,41 @@ var Qe = b.object({
473
473
  min: 1,
474
474
  max: 1
475
475
  }
476
- }), _t = b.enum(["dropdown", "listbox"]), vt = b.object({
476
+ }), _t = y.enum(["dropdown", "listbox"]), vt = y.object({
477
477
  mode: _t.optional(),
478
- quickSelect: b.boolean().optional(),
479
- responsive: b.boolean().optional(),
480
- searchable: b.boolean().optional(),
481
- showProgressBar: b.boolean().optional()
482
- }).strict(), yt = b.object({
483
- data: b.object({ field: D.omit({
478
+ quickSelect: y.boolean().optional(),
479
+ responsive: y.boolean().optional(),
480
+ searchable: y.boolean().optional(),
481
+ showProgressBar: y.boolean().optional()
482
+ }).strict(), yt = y.object({
483
+ data: y.object({ field: E.omit({
484
484
  format: !0,
485
485
  showNullValues: !0,
486
486
  temporalGrouping: !0
487
487
  }) }).strict(),
488
488
  presentation: vt.optional(),
489
- type: b.literal("filter"),
490
- version: b.literal(1)
491
- }).strict(), bt = O.omit({ dataLabels: !0 }).extend({
492
- axis: b.enum(["primary", "secondary"]).optional(),
493
- dataPointShape: S(ve.shape.dataPointShape)
494
- }), xt = b.object({
495
- density: ge.optional(),
496
- visible: b.boolean()
489
+ type: y.literal("filter"),
490
+ version: y.literal(1)
491
+ }).strict(), bt = D.omit({ dataLabels: !0 }).extend({
492
+ axis: y.enum(["primary", "secondary"]).optional(),
493
+ dataPointShape: x(ce.shape.dataPointShape)
494
+ }), xt = y.object({
495
+ density: me.optional(),
496
+ visible: y.boolean()
497
497
  }).strict(), St = Qe.extend({
498
- coloring: N({ rules: !1 }).optional(),
498
+ coloring: j({ rules: !1 }).optional(),
499
499
  dataLabels: xt.optional()
500
- }), Ct = b.object({
501
- data: b.object({
502
- dimensions: b.array(D).min(1),
503
- measures: b.array(bt).min(1)
500
+ }), Ct = y.object({
501
+ data: y.object({
502
+ dimensions: y.array(E).min(1),
503
+ measures: y.array(bt).min(1)
504
504
  }).strict(),
505
- filterGroup: k.optional(),
506
- limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
505
+ filterGroup: O.optional(),
506
+ limiting: y.object({ queryLimit: y.number().int().positive().optional() }).strict().optional(),
507
507
  presentation: St.optional(),
508
- sorting: b.array(A).optional(),
509
- type: b.literal("line"),
510
- version: b.literal(1)
508
+ sorting: y.array(k).optional(),
509
+ type: y.literal("line"),
510
+ version: y.literal(1)
511
511
  }).strict().superRefine((e, t) => {
512
512
  e.presentation?.coloring && e.data.dimensions.length < 2 && t.addIssue({
513
513
  code: "custom",
@@ -525,12 +525,12 @@ var Qe = b.object({
525
525
  ]
526
526
  });
527
527
  });
528
- }), wt = b.object({
529
- data: b.object({ measure: O.omit({ dataLabels: !0 }) }).strict(),
530
- filterGroup: k.optional(),
531
- type: b.literal("number"),
532
- version: b.literal(1)
533
- }).strict(), Tt = S(u.pick({
528
+ }), wt = y.object({
529
+ data: y.object({ measure: D.omit({ dataLabels: !0 }) }).strict(),
530
+ filterGroup: O.optional(),
531
+ type: y.literal("number"),
532
+ version: y.literal(1)
533
+ }).strict(), Tt = x(ne.pick({
534
534
  endDateLabel: !0,
535
535
  pickerState: !0,
536
536
  pickerType: !0,
@@ -539,32 +539,32 @@ var Qe = b.object({
539
539
  startDateLabel: !0,
540
540
  timePickerVisibility: !0,
541
541
  weekStart: !0
542
- }).partial()), Et = b.object({
543
- data: b.object({ field: D.omit({
542
+ }).partial()), Et = y.object({
543
+ data: y.object({ field: E.omit({
544
544
  format: !0,
545
545
  showNullValues: !0,
546
546
  temporalGrouping: !0
547
547
  }) }).strict(),
548
548
  settings: Tt.optional(),
549
- type: b.literal("date-picker"),
550
- version: b.literal(1)
551
- }).strict(), Dt = b.object({
552
- settings: b.object({ url: b.string().url().nullable() }).strict(),
553
- type: b.literal("iframe"),
554
- version: b.literal(1)
555
- }).strict(), Ot = b.object({
556
- settings: S(b.object({
557
- blur: h.shape.blur.optional(),
558
- fit: h.shape.image.unwrap().shape.imageFit.optional(),
559
- opacity: h.shape.opacity.optional(),
560
- saturation: h.shape.saturation.optional(),
561
- shadow: h.shape.shadow.optional(),
549
+ type: y.literal("date-picker"),
550
+ version: y.literal(1)
551
+ }).strict(), Dt = y.object({
552
+ settings: y.object({ url: y.string().url().nullable() }).strict(),
553
+ type: y.literal("iframe"),
554
+ version: y.literal(1)
555
+ }).strict(), Ot = y.object({
556
+ settings: x(y.object({
557
+ blur: _.shape.blur.optional(),
558
+ fit: _.shape.image.unwrap().shape.imageFit.optional(),
559
+ opacity: _.shape.opacity.optional(),
560
+ saturation: _.shape.saturation.optional(),
561
+ shadow: _.shape.shadow.optional(),
562
562
  source: ye.optional()
563
563
  }).strict()),
564
- type: b.literal("image"),
565
- version: b.literal(1)
566
- }).strict(), kt = b.object({
567
- settings: S(ne.pick({
564
+ type: y.literal("image"),
565
+ version: y.literal(1)
566
+ }).strict(), kt = y.object({
567
+ settings: x(he.pick({
568
568
  backgroundColor: !0,
569
569
  backgroundType: !0,
570
570
  borderEnabled: !0,
@@ -579,12 +579,12 @@ var Qe = b.object({
579
579
  shape: !0,
580
580
  strokeColor: !0
581
581
  }).partial().strict()),
582
- type: b.literal("shape"),
583
- version: b.literal(1)
584
- }).strict(), I = se.shape.simpleTextObjectSettings, At = b.object({
585
- settings: S(b.object({
582
+ type: y.literal("shape"),
583
+ version: y.literal(1)
584
+ }).strict(), I = ee.shape.simpleTextObjectSettings, At = y.object({
585
+ settings: x(y.object({
586
586
  align: I.shape.align.optional(),
587
- content: b.string().optional(),
587
+ content: y.string().optional(),
588
588
  fontFamily: I.shape.fontFamily.optional(),
589
589
  fontSize: I.shape.fontSize.optional(),
590
590
  position: I.shape.position.optional(),
@@ -593,140 +593,140 @@ var Qe = b.object({
593
593
  textColor: I.shape.textColor.optional(),
594
594
  wordWrap: I.shape.wordWrap.optional()
595
595
  }).strict()),
596
- type: b.literal("simpleTextObject"),
597
- version: b.literal(1)
598
- }).strict(), jt = b.object({
599
- settings: S(b.object({
600
- customLabel: g.shape.commonSettings.shape.customLabel.optional(),
601
- hideLabel: g.shape.commonSettings.shape.hideLabel.optional(),
602
- inputType: g.shape.type.optional(),
603
- placeholder: g.shape.commonSettings.shape.placeholder.optional(),
604
- responsive: g.shape.commonSettings.shape.responsive.optional(),
605
- variableId: g.shape.commonSettings.shape.variableId.optional()
596
+ type: y.literal("simpleTextObject"),
597
+ version: y.literal(1)
598
+ }).strict(), jt = y.object({
599
+ settings: x(y.object({
600
+ customLabel: f.shape.commonSettings.shape.customLabel.optional(),
601
+ hideLabel: f.shape.commonSettings.shape.hideLabel.optional(),
602
+ inputType: f.shape.type.optional(),
603
+ placeholder: f.shape.commonSettings.shape.placeholder.optional(),
604
+ responsive: f.shape.commonSettings.shape.responsive.optional(),
605
+ variableId: f.shape.commonSettings.shape.variableId.optional()
606
606
  }).strict()),
607
- type: b.literal("atomic-input"),
608
- version: b.literal(1)
609
- }).strict(), Mt = b.object({
610
- data: b.object({ field: D.omit({
607
+ type: y.literal("atomic-input"),
608
+ version: y.literal(1)
609
+ }).strict(), Mt = y.object({
610
+ data: y.object({ field: E.omit({
611
611
  format: !0,
612
612
  showNullValues: !0,
613
613
  temporalGrouping: !0
614
614
  }) }).strict(),
615
- settings: S(oe.pick({
615
+ settings: x(re.pick({
616
616
  layout: !0,
617
617
  quickSelect: !0,
618
618
  range: !0,
619
619
  step: !0
620
620
  }).partial()).optional(),
621
- type: b.literal("slider"),
622
- version: b.literal(1)
623
- }).strict(), Nt = D.extend({ role: b.literal("dimension") }), L = O.omit({ dataLabels: !0 }), Pt = L.extend({ role: b.literal("measure") }), Ft = b.object({
624
- columns: b.array(b.discriminatedUnion("role", [Nt, Pt])).min(1),
625
- structure: b.literal("normal").optional()
626
- }).strict(), It = b.object({
627
- dimensions: b.array(D).min(1),
628
- measures: b.array(L).min(1),
629
- structure: b.literal("expandable")
630
- }).strict(), Lt = b.object({
631
- columnDimensions: b.array(D).min(1),
632
- measures: b.array(L).min(1),
633
- rowDimensions: b.array(D).min(1),
634
- structure: b.literal("pivot")
635
- }).strict(), Rt = b.union([
621
+ type: y.literal("slider"),
622
+ version: y.literal(1)
623
+ }).strict(), Nt = E.extend({ role: y.literal("dimension") }), L = D.omit({ dataLabels: !0 }), Pt = L.extend({ role: y.literal("measure") }), Ft = y.object({
624
+ columns: y.array(y.discriminatedUnion("role", [Nt, Pt])).min(1),
625
+ structure: y.literal("normal").optional()
626
+ }).strict(), It = y.object({
627
+ dimensions: y.array(E).min(1),
628
+ measures: y.array(L).min(1),
629
+ structure: y.literal("expandable")
630
+ }).strict(), Lt = y.object({
631
+ columnDimensions: y.array(E).min(1),
632
+ measures: y.array(L).min(1),
633
+ rowDimensions: y.array(E).min(1),
634
+ structure: y.literal("pivot")
635
+ }).strict(), Rt = y.union([
636
636
  Ft,
637
637
  It,
638
638
  Lt
639
- ]), zt = b.object({
640
- applyTo: p.shape.applyTo,
641
- enabled: p.shape.enabled,
642
- showRecordsCount: p.shape.showRecordsCount,
643
- style: b.object({
644
- backgroundColor: d.shape.backgroundColor.optional(),
645
- fontColor: d.shape.fontColor.optional(),
646
- fontStyle: f.optional(),
647
- position: d.shape.position.optional(),
648
- responsiveHeight: d.shape.responsive
639
+ ]), zt = y.object({
640
+ applyTo: m.shape.applyTo,
641
+ enabled: m.shape.enabled,
642
+ showRecordsCount: m.shape.showRecordsCount,
643
+ style: y.object({
644
+ backgroundColor: h.shape.backgroundColor.optional(),
645
+ fontColor: h.shape.fontColor.optional(),
646
+ fontStyle: g.optional(),
647
+ position: h.shape.position.optional(),
648
+ responsiveHeight: h.shape.responsive
649
649
  }).strict().optional()
650
- }).strict(), Bt = b.object({
651
- background: b.object({
652
- color: m.optional(),
653
- evenColor: m.optional(),
654
- oddColor: m.optional(),
655
- type: b.enum([
650
+ }).strict(), Bt = y.object({
651
+ background: y.object({
652
+ color: d.optional(),
653
+ evenColor: d.optional(),
654
+ oddColor: d.optional(),
655
+ type: y.enum([
656
656
  "none",
657
657
  "single",
658
658
  "zebra"
659
659
  ])
660
660
  }).strict().optional(),
661
- body: b.object({
662
- fontColor: m.optional(),
663
- fontFamily: b.string().trim().min(1).optional(),
664
- fontSize: b.number().positive().optional(),
665
- fontStyle: f.optional(),
666
- horizontalAlign: b.enum([
661
+ body: y.object({
662
+ fontColor: d.optional(),
663
+ fontFamily: y.string().trim().min(1).optional(),
664
+ fontSize: y.number().positive().optional(),
665
+ fontStyle: g.optional(),
666
+ horizontalAlign: y.enum([
667
667
  "auto",
668
668
  "center",
669
669
  "left",
670
670
  "right"
671
671
  ]).optional(),
672
- verticalAlign: b.enum([
672
+ verticalAlign: y.enum([
673
673
  "auto",
674
674
  "bottom",
675
675
  "middle",
676
676
  "top"
677
677
  ]).optional()
678
678
  }).strict().optional(),
679
- borders: b.object({
680
- color: m.optional(),
681
- dividerColor: m.optional(),
682
- dividers: b.enum([
679
+ borders: y.object({
680
+ color: d.optional(),
681
+ dividerColor: d.optional(),
682
+ dividers: y.enum([
683
683
  "all",
684
684
  "auto",
685
685
  "horizontal",
686
686
  "none",
687
687
  "vertical"
688
688
  ]).optional(),
689
- enabled: b.boolean(),
690
- lineStyle: b.enum([
689
+ enabled: y.boolean(),
690
+ lineStyle: y.enum([
691
691
  "dashed",
692
692
  "dotted",
693
693
  "line"
694
694
  ]).optional(),
695
- radius: b.number().nonnegative().optional(),
696
- strokeWidth: b.number().nonnegative().optional()
695
+ radius: y.number().nonnegative().optional(),
696
+ strokeWidth: y.number().nonnegative().optional()
697
697
  }).strict().optional(),
698
- header: b.object({
699
- backgroundColor: m.optional(),
700
- borderColor: m.optional(),
701
- fontColor: m.optional(),
702
- fontFamily: b.string().trim().min(1).optional(),
703
- fontSize: b.number().positive().optional(),
704
- fontStyle: f.optional(),
705
- responsiveHeight: b.boolean().optional()
698
+ header: y.object({
699
+ backgroundColor: d.optional(),
700
+ borderColor: d.optional(),
701
+ fontColor: d.optional(),
702
+ fontFamily: y.string().trim().min(1).optional(),
703
+ fontSize: y.number().positive().optional(),
704
+ fontStyle: g.optional(),
705
+ responsiveHeight: y.boolean().optional()
706
706
  }).strict().optional(),
707
- highlight: b.object({
708
- backgroundColor: m.optional(),
709
- mode: b.enum([
707
+ highlight: y.object({
708
+ backgroundColor: d.optional(),
709
+ mode: y.enum([
710
710
  "column",
711
711
  "none",
712
712
  "row",
713
713
  "row-and-column"
714
714
  ]),
715
- textColor: m.optional()
715
+ textColor: d.optional()
716
716
  }).strict().optional(),
717
- layout: b.object({
718
- columnWidthBehavior: b.enum(["responsive", "static"]).optional(),
719
- rowHeight: b.number().positive().optional()
717
+ layout: y.object({
718
+ columnWidthBehavior: y.enum(["responsive", "static"]).optional(),
719
+ rowHeight: y.number().positive().optional()
720
720
  }).strict().optional()
721
- }).strict(), Vt = b.object({
721
+ }).strict(), Vt = y.object({
722
722
  data: Rt,
723
- filterGroup: k.optional(),
724
- limiting: b.object({ queryLimit: b.number().int().positive().optional() }).strict().optional(),
723
+ filterGroup: O.optional(),
724
+ limiting: y.object({ queryLimit: y.number().int().positive().optional() }).strict().optional(),
725
725
  presentation: Bt.optional(),
726
- sorting: b.array(A).optional(),
726
+ sorting: y.array(k).optional(),
727
727
  totals: zt.optional(),
728
- type: b.literal("table"),
729
- version: b.literal(1)
728
+ type: y.literal("table"),
729
+ version: y.literal(1)
730
730
  }).strict(), R = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ht = (e) => {
731
731
  let t = e.fieldKey ?? e.key;
732
732
  return typeof t == "string" ? t : void 0;
@@ -746,7 +746,7 @@ var Qe = b.object({
746
746
  }, Wt = (e, t) => {
747
747
  let n = e.type;
748
748
  if (!(n === "dimension" && R(e.dimension) || n === "measure" && R(e.measure) || n === "calculation" && R(e.calculation))) return;
749
- let r = E.safeParse({
749
+ let r = T.safeParse({
750
750
  fieldKey: e.key,
751
751
  item: e,
752
752
  kind: n,
@@ -756,11 +756,11 @@ var Qe = b.object({
756
756
  return r.data;
757
757
  }, Gt = (e, t) => {
758
758
  if (!R(e)) throw Error(`Available field at index ${t} must be an object.`);
759
- let n = E.safeParse(e);
759
+ let n = T.safeParse(e);
760
760
  if (n.success) return n.data;
761
761
  let r = Wt(e, t);
762
762
  if (r) return r;
763
- let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = E.safeParse({
763
+ let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = T.safeParse({
764
764
  aggregations: i.map((e) => R(e) ? {
765
765
  distinct: e.distinct,
766
766
  name: e.name ?? e.funcName,
@@ -785,29 +785,29 @@ var Qe = b.object({
785
785
  }, qt = (e) => e.kind === "field" ? [...new Set(e.aggregations.flatMap((e) => [e.name, ...e.distinct ? [`${e.name}_DISTINCT`] : []]))] : [], Jt = (e, t) => e.kind === "field" || t === "dimension" && e.kind === "dimension" || t === "measure" && (e.kind === "measure" || e.kind === "calculation"), Yt = (e) => {
786
786
  if (e.kind !== "dimension") return e.kind;
787
787
  }, z = (e) => ({
788
- ...c(e.item),
788
+ ...t(e.item),
789
789
  id: e.item.id ?? e.fieldKey
790
- }), B = (e) => e.map((e) => e.kind === "dimension" ? a(z(e)) : e.kind === "measure" || e.kind === "calculation" ? o(z(e)) : {
791
- aggregators: i(e.aggregations.map((e) => ({
790
+ }), B = (t) => t.map((t) => t.kind === "dimension" ? e(z(t)) : t.kind === "measure" || t.kind === "calculation" ? a(z(t)) : {
791
+ aggregators: n(t.aggregations.map((e) => ({
792
792
  distinct: e.distinct ?? !1,
793
793
  name: e.name,
794
794
  resultType: e.resultType
795
795
  }))),
796
- dataType: e.dataType,
797
- isManualData: e.isManualData,
798
- key: e.fieldKey,
799
- name: e.name,
800
- view: e.view,
801
- views: [e.view]
796
+ dataType: t.dataType,
797
+ isManualData: t.isManualData,
798
+ key: t.fieldKey,
799
+ name: t.name,
800
+ view: t.view,
801
+ views: [t.view]
802
802
  }), V = (e, t) => {
803
803
  let n = Math.min(e.length, t.length), r = 0;
804
804
  for (; r < n && e[r].toLocaleLowerCase() === t[r].toLocaleLowerCase();) r += 1;
805
805
  return r;
806
806
  }, Xt = (e, t) => [...t].sort((t, n) => V(e, n.fieldKey) - V(e, t.fieldKey) || t.fieldKey.localeCompare(n.fieldKey)).slice(0, 5).map((e) => e.fieldKey), Zt = [
807
- x.FieldType.DATE,
808
- x.FieldType.TIME,
809
- x.FieldType.TIMESTAMP,
810
- x.FieldType.TIMESTAMP_TZ
807
+ b.FieldType.DATE,
808
+ b.FieldType.TIME,
809
+ b.FieldType.TIMESTAMP,
810
+ b.FieldType.TIMESTAMP_TZ
811
811
  ], H = (e, t, n, r) => ({
812
812
  ...r ? { allowedValues: r } : {},
813
813
  code: e,
@@ -855,18 +855,18 @@ var Qe = b.object({
855
855
  } catch {
856
856
  return String(e);
857
857
  }
858
- }, an = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e), on = (e) => {
858
+ }, q = (e, t) => t.reduce((e, t) => typeof e == "object" && e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, e), an = (e) => {
859
859
  if (e.code === "invalid_value") return e.values;
860
860
  if (e.code !== "invalid_union" || e.errors.length === 0) return;
861
- let t = e.errors.map((e) => e.length === 1 && e[0].path.length === 0 ? on(e[0]) : void 0);
861
+ let t = e.errors.map((e) => e.length === 1 && e[0].path.length === 0 ? an(e[0]) : void 0);
862
862
  return t.every((e) => e !== void 0) ? [...new Set(t.flat())] : void 0;
863
- }, sn = (e, t, n = []) => {
864
- let r = (e, i) => {
865
- let a = [...i, ...e.path.filter((e) => typeof e != "symbol")];
863
+ }, on = (e) => e.filter((e) => typeof e != "symbol"), sn = (e, t, n = []) => {
864
+ 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, ...on(e.path)]) !== void 0, i = (e, a) => {
865
+ let o = [...a, ...on(e.path)];
866
866
  if (e.code === "unrecognized_keys") return e.keys.map((r) => {
867
867
  let i = [
868
868
  ...n,
869
- ...a,
869
+ ...o,
870
870
  r
871
871
  ];
872
872
  return {
@@ -874,51 +874,51 @@ var Qe = b.object({
874
874
  path: i,
875
875
  message: `${G(i)}: Unrecognized key.`,
876
876
  details: {
877
- received: an(t, [...a, r]),
877
+ received: q(t, [...o, r]),
878
878
  zodCode: e.code
879
879
  }
880
880
  };
881
881
  });
882
- let o = [...n, ...a], s = an(t, a), c = on(e), l = {
883
- received: s,
882
+ let s = [...n, ...o], c = q(t, o), l = an(e), u = {
883
+ received: c,
884
884
  zodCode: e.code
885
- }, u = c ? `Unsupported value ${K(s)}. Allowed values: ${c.map(K).join(", ")}.` : `${e.message}. Received: ${K(s)}.`;
886
- if (e.code === "invalid_union" && !c && e.errors.length > 0) {
887
- let t = e.errors.filter((e) => !e.some((e) => e.code === "unrecognized_keys"));
888
- if (t.length === 1) return t[0].flatMap((e) => r(e, a));
889
- let n = e.errors.map((e) => e.flatMap((e) => r(e, a)));
890
- l.alternatives = n, u = `Value does not match any allowed shape. ${n.map((e, t) => `Alternative ${t + 1}: ${e.map((e) => e.message).join(" ")}`).join(" ")}`;
885
+ }, d = l ? `Unsupported value ${K(c)}. Allowed values: ${l.map(K).join(", ")}.` : `${e.message}. Received: ${K(c)}.`;
886
+ if (e.code === "invalid_union" && !l && e.errors.length > 0) {
887
+ let t = e.errors, n = t.filter((e) => !e.some((e) => r(e, o))), a = n.length > 0 ? n : t, s = a.length === 1 ? a : a.filter((e) => !e.some((e) => e.code === "unrecognized_keys"));
888
+ if (s.length === 1) return s[0].flatMap((e) => i(e, o));
889
+ let c = e.errors.map((e) => e.flatMap((e) => i(e, o)));
890
+ u.alternatives = c, d = `Value does not match any allowed shape. ${c.map((e, t) => `Alternative ${t + 1}: ${e.map((e) => e.message).join(" ")}`).join(" ")}`;
891
891
  }
892
892
  return [{
893
893
  code: "invalid_structure",
894
- path: o,
895
- message: `${G(o)}: ${u}`,
896
- details: l,
897
- ...c ? { allowedValues: c } : {}
894
+ path: s,
895
+ message: `${G(s)}: ${d}`,
896
+ details: u,
897
+ ...l ? { allowedValues: l } : {}
898
898
  }];
899
899
  };
900
- return e.issues.flatMap((e) => r(e, []));
900
+ return e.issues.flatMap((e) => i(e, []));
901
901
  };
902
- r();
903
- var cn = (t, n) => {
904
- let r = "legend" in t && !!t.legend, i = n.position !== void 0 || n.title !== void 0, a = [];
905
- return n.visible !== void 0 && (n.visible || i || r) ? a.push({
902
+ o();
903
+ var cn = (e, t) => {
904
+ let n = "legend" in e && !!e.legend, i = t.position !== void 0 || t.title !== void 0, a = [];
905
+ return t.visible !== void 0 && (t.visible || i || n) ? a.push({
906
906
  name: "setLegendEnabled",
907
- payload: n.visible
908
- }) : n.visible === void 0 && i && !r && a.push({
907
+ payload: t.visible
908
+ }) : t.visible === void 0 && i && !n && a.push({
909
909
  name: "setLegendEnabled",
910
910
  payload: !0
911
- }), n.position === void 0 ? (n.visible === !0 || i && !r) && a.push({
911
+ }), t.position === void 0 ? (t.visible === !0 || i && !n) && a.push({
912
912
  name: "setLegendPosition",
913
- payload: e.Right
913
+ payload: r.Right
914
914
  }) : a.push({
915
915
  name: "setLegendPosition",
916
- payload: n.position
917
- }), n.title !== void 0 && a.push({
916
+ payload: t.position
917
+ }), t.title !== void 0 && a.push({
918
918
  name: "setLegendTitle",
919
- payload: n.title
919
+ payload: t.title
920
920
  }), a;
921
- }, q = (e, t, n, r = {}) => ({
921
+ }, J = (e, t, n, r = {}) => ({
922
922
  code: e,
923
923
  message: n,
924
924
  path: t,
@@ -926,7 +926,7 @@ var cn = (t, n) => {
926
926
  }), ln = (e, t, n, r, i, a) => ({
927
927
  name: e,
928
928
  payload: {
929
- ...J(t),
929
+ ...Y(t),
930
930
  [i]: a
931
931
  },
932
932
  definitionContext: {
@@ -955,14 +955,14 @@ var cn = (t, n) => {
955
955
  ref: n,
956
956
  kind: o
957
957
  }
958
- }), J = (e) => ({
958
+ }), Y = (e) => ({
959
959
  dataItemInternalKey: e.dataItemInternalKey,
960
960
  dataItemUniqueSignature: e.dataItemUniqueSignature
961
961
  }), dn = (e) => {
962
962
  let t = [], n = /* @__PURE__ */ new Set();
963
963
  return e.forEach(({ items: e, path: r }) => {
964
964
  e.forEach((e, i) => {
965
- n.has(e.ref) && t.push(q("duplicate_alias", [
965
+ n.has(e.ref) && t.push(J("duplicate_alias", [
966
966
  ...r,
967
967
  i,
968
968
  "ref"
@@ -980,7 +980,7 @@ var cn = (t, n) => {
980
980
  }), mn = (e, t, n, r, i) => ({
981
981
  name: e,
982
982
  payload: {
983
- ...J(t),
983
+ ...Y(t),
984
984
  ...i
985
985
  },
986
986
  definitionContext: {
@@ -995,24 +995,24 @@ var cn = (t, n) => {
995
995
  } : "valueFrom" in e ? {
996
996
  valueFrom: e.valueFrom,
997
997
  valueTo: e.valueTo
998
- } : {}, Y = (e) => ({
999
- filters: e.filters.map((e) => "filters" in e ? Y(e) : {
998
+ } : {}, X = (e) => ({
999
+ filters: e.filters.map((e) => "filters" in e ? X(e) : {
1000
1000
  fieldKey: e.fieldKey,
1001
1001
  operator: e.operator,
1002
1002
  values: hn(e)
1003
1003
  }),
1004
1004
  operator: e.operator
1005
- }), gn = (e, t) => (e ?? []).flatMap((e, n) => t.includes(e.by) ? [] : [q("unknown_alias", [
1005
+ }), gn = (e, t) => (e ?? []).flatMap((e, n) => t.includes(e.by) ? [] : [J("unknown_alias", [
1006
1006
  "sorting",
1007
1007
  n,
1008
1008
  "by"
1009
- ], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), X = ["presentation", "coloring"], _n = (e, t, n) => [...(e?.overwrites ?? []).flatMap(({ dimension: e }, n) => e === void 0 || t.includes(e) ? [] : [q("unknown_alias", [
1010
- ...X,
1009
+ ], `Reference "${e.by}" does not exist.`, { allowedValues: t })]), Z = ["presentation", "coloring"], _n = (e, t, n) => [...(e?.overwrites ?? []).flatMap(({ dimension: e }, n) => e === void 0 || t.includes(e) ? [] : [J("unknown_alias", [
1010
+ ...Z,
1011
1011
  "overwrites",
1012
1012
  n,
1013
1013
  "dimension"
1014
- ], `Dimension reference "${e}" does not exist.`, { allowedValues: t })]), ...(e?.rules ?? []).flatMap(({ measure: e }, t) => n.includes(e) ? [] : [q("unknown_alias", [
1015
- ...X,
1014
+ ], `Dimension reference "${e}" does not exist.`, { allowedValues: t })]), ...(e?.rules ?? []).flatMap(({ measure: e }, t) => n.includes(e) ? [] : [J("unknown_alias", [
1015
+ ...Z,
1016
1016
  "rules",
1017
1017
  t,
1018
1018
  "measure"
@@ -1023,16 +1023,16 @@ var cn = (t, n) => {
1023
1023
  success: !0,
1024
1024
  vSpec: n.data
1025
1025
  } : {
1026
- issues: [q("invalid_compiled_vspec", [], "Compiled vSpec failed final validation.", { details: { issues: n.error.issues } })],
1026
+ issues: [J("invalid_compiled_vspec", [], "Compiled vSpec failed final validation.", { details: { issues: n.error.issues } })],
1027
1027
  success: !1
1028
1028
  };
1029
- }, Z = (e) => "startsAtZero" in e ? {} : e, yn = (e) => {
1030
- let { max: t, min: n } = Z(e);
1031
- return n !== void 0 && t !== void 0 ? s.MinMax : n === void 0 ? t === void 0 ? s.Auto : s.Max : s.Min;
1029
+ }, Q = (e) => "startsAtZero" in e ? {} : e, yn = (e) => {
1030
+ let { max: t, min: n } = Q(e);
1031
+ return n !== void 0 && t !== void 0 ? c.MinMax : n === void 0 ? t === void 0 ? c.Auto : c.Max : c.Min;
1032
1032
  }, bn = (e) => {
1033
1033
  for (let [t, n] of Object.entries(e ?? {})) {
1034
- let { max: e, min: r } = n?.range ? Z(n.range) : {};
1035
- if (r !== void 0 && e !== void 0 && r >= e) return q("invalid_structure", [
1034
+ let { max: e, min: r } = n?.range ? Q(n.range) : {};
1035
+ if (r !== void 0 && e !== void 0 && r >= e) return J("invalid_structure", [
1036
1036
  "presentation",
1037
1037
  "axes",
1038
1038
  t,
@@ -1043,7 +1043,7 @@ var cn = (t, n) => {
1043
1043
  }, xn = (e, t) => {
1044
1044
  let n = [];
1045
1045
  t.inverted !== void 0 && n.push({
1046
- name: y.SET_INVERT_AXIS,
1046
+ name: v.SET_INVERT_AXIS,
1047
1047
  payload: {
1048
1048
  axisName: e,
1049
1049
  invertAxis: t.inverted
@@ -1052,27 +1052,27 @@ var cn = (t, n) => {
1052
1052
  let { range: r } = t;
1053
1053
  if (r) {
1054
1054
  n.push({
1055
- name: y.SET_AXIS_RANGE_OPTION,
1055
+ name: v.SET_AXIS_RANGE_OPTION,
1056
1056
  payload: {
1057
1057
  axisName: e,
1058
1058
  axisRangeOption: yn(r)
1059
1059
  }
1060
1060
  });
1061
- let { max: t, min: i } = Z(r);
1061
+ let { max: t, min: i } = Q(r);
1062
1062
  i !== void 0 && n.push({
1063
- name: y.SET_AXIS_RANGE_MIN,
1063
+ name: v.SET_AXIS_RANGE_MIN,
1064
1064
  payload: {
1065
1065
  axisName: e,
1066
1066
  minValue: i
1067
1067
  }
1068
1068
  }), t !== void 0 && n.push({
1069
- name: y.SET_AXIS_RANGE_MAX,
1069
+ name: v.SET_AXIS_RANGE_MAX,
1070
1070
  payload: {
1071
1071
  axisName: e,
1072
1072
  maxValue: t
1073
1073
  }
1074
1074
  }), "startsAtZero" in r && n.push({
1075
- name: y.SET_AXIS_STARTS_AT_ZERO,
1075
+ name: v.SET_AXIS_STARTS_AT_ZERO,
1076
1076
  payload: {
1077
1077
  axisName: e,
1078
1078
  startsAtZero: r.startsAtZero
@@ -1080,7 +1080,7 @@ var cn = (t, n) => {
1080
1080
  });
1081
1081
  }
1082
1082
  return n;
1083
- }, Q = (e) => {
1083
+ }, Sn = (e) => {
1084
1084
  let t = Object.entries(e).find(([, e]) => e.success === !1);
1085
1085
  return t ? {
1086
1086
  id: t[0],
@@ -1090,11 +1090,11 @@ var cn = (t, n) => {
1090
1090
  let r = t.map((e, t) => ({
1091
1091
  ...e,
1092
1092
  id: e.id ?? `definition:${t}`
1093
- })), i = await v(e.vSpec, e.availableFields, r.map(({ id: e, name: t, payload: n }) => ({
1093
+ })), i = await be(e.vSpec, e.availableFields, r.map(({ id: e, name: t, payload: n }) => ({
1094
1094
  id: e,
1095
1095
  name: t,
1096
1096
  payload: n
1097
- })), e.input.variables ?? [], [], e.input.theme), a = Q(i.results);
1097
+ })), e.input.variables ?? [], [], e.input.theme), a = Sn(i.results);
1098
1098
  if (!a) return {
1099
1099
  state: {
1100
1100
  ...e,
@@ -1102,9 +1102,9 @@ var cn = (t, n) => {
1102
1102
  },
1103
1103
  success: !0
1104
1104
  };
1105
- let o = r.find((e) => e.id === a.id), s = o?.definitionContext, c = s?.path ?? n, l = o?.name ?? a.id, u = a.result.error ?? "Operation failed.", ee = s ? `Cannot apply ${K(s.received)} to ${s.kind} ${K(s.ref)}` : "Operation failed";
1105
+ let o = r.find((e) => e.id === a.id), s = o?.definitionContext, c = s?.path ?? n, l = o?.name ?? a.id, u = a.result.error ?? "Operation failed.", d = s ? `Cannot apply ${K(s.received)} to ${s.kind} ${K(s.ref)}` : "Operation failed";
1106
1106
  return {
1107
- issue: q("operation_failed", c, `${G(c)}: ${ee} (operation "${l}"): ${u}`, { details: {
1107
+ issue: J("operation_failed", c, `${G(c)}: ${d} (operation "${l}"): ${u}`, { details: {
1108
1108
  error: a.result.error,
1109
1109
  operationId: a.id,
1110
1110
  operationName: l,
@@ -1116,7 +1116,7 @@ var cn = (t, n) => {
1116
1116
  } }),
1117
1117
  success: !1
1118
1118
  };
1119
- }, Sn = (e, t) => {
1119
+ }, Cn = (e, t) => {
1120
1120
  if (!e || typeof e.data != "object" || e.data === null || !("dataItem" in e.data)) return;
1121
1121
  let n = e.data.dataItem;
1122
1122
  if (!(typeof n != "object" || !n || !("internalKey" in n) || typeof n.internalKey != "string" || !("uniqueSignature" in n) || typeof n.uniqueSignature != "string")) return {
@@ -1124,14 +1124,14 @@ var cn = (t, n) => {
1124
1124
  dataItemUniqueSignature: n.uniqueSignature,
1125
1125
  kind: t
1126
1126
  };
1127
- }, Cn = async (e, t, n, r, i, a) => {
1128
- let o = `${n}:${t.ref}`, s = await v(e.vSpec, e.availableFields, [{
1127
+ }, wn = async (e, t, n, r, i, a) => {
1128
+ let o = `${n}:${t.ref}`, s = await be(e.vSpec, e.availableFields, [{
1129
1129
  id: o,
1130
1130
  name: r,
1131
1131
  payload: i
1132
- }], e.input.variables ?? [], [], e.input.theme), c = Q(s.results), l = Sn(s.results[o], n);
1132
+ }], e.input.variables ?? [], [], e.input.theme), c = Sn(s.results), l = Cn(s.results[o], n);
1133
1133
  return c || !l ? {
1134
- issue: q("operation_failed", a, c?.result.error ?? `${n} operation did not return the created data-item identity.`),
1134
+ issue: J("operation_failed", a, c?.result.error ?? `${n} operation did not return the created data-item identity.`),
1135
1135
  success: !1
1136
1136
  } : {
1137
1137
  state: {
@@ -1144,7 +1144,7 @@ var cn = (t, n) => {
1144
1144
  },
1145
1145
  success: !0
1146
1146
  };
1147
- }, wn = (e, t, n, r) => {
1147
+ }, Tn = (e, t, n, r) => {
1148
1148
  let i = [
1149
1149
  "formatType",
1150
1150
  "formatString",
@@ -1159,20 +1159,20 @@ var cn = (t, n) => {
1159
1159
  return i !== void 0 && s ? [ln(s, o, t.ref, t.path ?? [...r, a], e, i)] : [];
1160
1160
  });
1161
1161
  }), r);
1162
- }, Tn = (e, t, n, r) => $(e, t.flatMap((t, i) => t.temporalGrouping ? [mn(n, e.resolvedRefs[t.ref], t.ref, t.path ?? [...r, i], t.temporalGrouping)] : []), r), En = (e, t, n, r) => $(e, t.flatMap((t) => t.showNullValues === void 0 ? [] : [{
1162
+ }, En = (e, t, n, r) => $(e, t.flatMap((t, i) => t.temporalGrouping ? [mn(n, e.resolvedRefs[t.ref], t.ref, t.path ?? [...r, i], t.temporalGrouping)] : []), r), Dn = (e, t, n, r) => $(e, t.flatMap((t) => t.showNullValues === void 0 ? [] : [{
1163
1163
  name: n,
1164
1164
  payload: {
1165
- ...J(e.resolvedRefs[t.ref]),
1165
+ ...Y(e.resolvedRefs[t.ref]),
1166
1166
  changes: { showNullValues: t.showNullValues }
1167
1167
  }
1168
- }]), r), Dn = (e, t) => t ? $(e, [{
1168
+ }]), r), On = (e, t) => t ? $(e, [{
1169
1169
  id: "filterGroup",
1170
1170
  name: "setStaticFilterGroup",
1171
- payload: Y(t)
1171
+ payload: X(t)
1172
1172
  }], ["filterGroup"]) : Promise.resolve({
1173
1173
  state: e,
1174
1174
  success: !0
1175
- }), On = (e, t, n, r) => {
1175
+ }), kn = (e, t, n, r) => {
1176
1176
  if (!t?.length) return Promise.resolve({
1177
1177
  state: e,
1178
1178
  success: !0
@@ -1187,7 +1187,7 @@ var cn = (t, n) => {
1187
1187
  }))].map((e, t) => {
1188
1188
  let n = `${e.dataItemInternalKey}:${e.dataItemUniqueSignature}`, r = o.get(n), s = i.find((e) => `${e.dataItem.internalKey}:${e.dataItem.uniqueSignature}` === n);
1189
1189
  return {
1190
- ...J(e),
1190
+ ...Y(e),
1191
1191
  newIndex: t,
1192
1192
  sortDirection: (r ? a.get(r)?.direction : void 0) ?? s?.sortDirection ?? "asc"
1193
1193
  };
@@ -1195,24 +1195,24 @@ var cn = (t, n) => {
1195
1195
  }, ...t.map((t) => ({
1196
1196
  name: r,
1197
1197
  payload: {
1198
- ...J(e.resolvedRefs[t.by]),
1198
+ ...Y(e.resolvedRefs[t.by]),
1199
1199
  enabled: t.enabled ?? !0
1200
1200
  }
1201
1201
  }))], ["sorting"]);
1202
- }, kn = (e, t) => {
1202
+ }, An = (e, t) => {
1203
1203
  let n = [];
1204
1204
  return t?.overwrites && n.push({
1205
- name: _.SET_COLORING_OVERWRITES,
1205
+ name: ve.SET_COLORING_OVERWRITES,
1206
1206
  payload: { overwrites: t.overwrites.map(({ dimension: t, ...n }) => t === void 0 ? n : {
1207
1207
  ...n,
1208
- dimension: J(e.resolvedRefs[t])
1208
+ dimension: Y(e.resolvedRefs[t])
1209
1209
  }) }
1210
1210
  }), t?.rules && n.push({
1211
- name: _.SET_COLORING_RULES,
1211
+ name: ve.SET_COLORING_RULES,
1212
1212
  payload: { rules: t.rules.map(({ measure: t, ...n }) => ({
1213
1213
  ...n,
1214
- measure: J(e.resolvedRefs[t])
1214
+ measure: Y(e.resolvedRefs[t])
1215
1215
  })) }
1216
- }), $(e, n, X);
1216
+ }), $(e, n, Z);
1217
1217
  };
1218
- export { at as $, nn as A, At as B, dn as C, W as D, $t as E, Et as F, ut as G, Ct as H, Dt as I, st as J, it as K, Ot as L, B as M, Vt as N, tn as O, jt as P, mt as Q, kt as R, _n as S, en as T, yt as U, wt as V, rt as W, dt as X, ot as Y, ct as Z, bn as _, wn as a, E as at, Y as b, xn as c, q as d, ft as et, cn as f, vn as g, $ as h, Dn as i, et as it, Kt as j, rn as k, ln as l, mn as m, kn as n, ht as nt, On as o, xe as ot, un as p, lt as q, En as r, gt as rt, Tn as s, Cn as t, pt as tt, pn as u, fn as v, sn as w, gn as x, J as y, Mt as z };
1218
+ export { mt as $, rn as A, Mt as B, dn as C, $t as D, en as E, jt as F, rt as G, wt as H, Et as I, lt as J, ut as K, Dt as L, Kt as M, B as N, W as O, Vt as P, ct as Q, Ot as R, _n as S, sn as T, Ct as U, At as V, yt as W, ot as X, st as Y, dt as Z, bn as _, Tn as a, et as at, X as b, xn as c, J as d, at as et, cn as f, vn as g, $ as h, On as i, gt as it, nn as j, tn as k, ln as l, mn as m, An as n, pt as nt, kn as o, T as ot, un as p, it as q, Dn as r, ht as rt, En as s, Se as st, wn as t, ft as tt, pn as u, fn as v, G as w, gn as x, Y as y, kt as z };