@astrato-io/visualizations 0.7.0 → 0.9.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 (162) hide show
  1. package/README.md +1 -25
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +1191 -3
  98. package/metadata.js +15 -16
  99. package/operations.js +5 -5
  100. package/package.json +67 -102
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/getters/index.d.ts +3 -3
  110. package/src/index.d.ts +1 -1
  111. package/src/operations/index.d.ts +3 -3
  112. package/src/runtime/index.d.ts +2 -2
  113. package/src/types.d.ts +4 -8
  114. package/src/visualization-catalog.d.ts +26 -26
  115. package/src/web-components/index.d.ts +3 -3
  116. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  117. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  118. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  119. package/chunks/Title-CO5dP1ma.js +0 -1691
  120. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  121. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  122. package/chunks/registry-KervaxqJ.js +0 -31
  123. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  124. package/chunks/standalone-BXKRE_Se.js +0 -468
  125. package/chunks/standalone-BjZp0QMe.js +0 -2
  126. package/chunks/standalone-C8qAelL4.js +0 -2
  127. package/chunks/standalone-DT0wKji7.js +0 -6
  128. package/chunks/standalone-DYQIQH4c.js +0 -2095
  129. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  130. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  131. package/chunks/web-components-DqClFkgO.js +0 -1185
  132. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  133. package/render.js +0 -10
  134. package/src/charts/bar.d.ts +0 -1
  135. package/src/charts/combo.d.ts +0 -1
  136. package/src/charts/dot.d.ts +0 -1
  137. package/src/charts/gauge-distribution.d.ts +0 -1
  138. package/src/charts/gauge.d.ts +0 -1
  139. package/src/charts/heat-map.d.ts +0 -1
  140. package/src/charts/histogram.d.ts +0 -1
  141. package/src/charts/line.d.ts +0 -1
  142. package/src/charts/pie.d.ts +0 -1
  143. package/src/charts/radar.d.ts +0 -1
  144. package/src/charts/sankey.d.ts +0 -1
  145. package/src/charts/scatter.d.ts +0 -1
  146. package/src/charts/table.d.ts +0 -1
  147. package/src/charts/tree.d.ts +0 -1
  148. package/src/charts/treemap.d.ts +0 -1
  149. package/src/charts/waterfall.d.ts +0 -1
  150. package/src/charts/word-cloud.d.ts +0 -1
  151. package/src/objects/app-filter-bar.d.ts +0 -1
  152. package/src/objects/date-picker.d.ts +0 -1
  153. package/src/objects/filter.d.ts +0 -1
  154. package/src/objects/iframe.d.ts +0 -1
  155. package/src/objects/image.d.ts +0 -1
  156. package/src/objects/number.d.ts +0 -1
  157. package/src/objects/shape.d.ts +0 -1
  158. package/src/objects/slider.d.ts +0 -1
  159. package/src/objects/text.d.ts +0 -1
  160. package/src/registry/create-visualization-registry.d.ts +0 -5
  161. package/src/render/index.d.ts +0 -34
  162. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -1,240 +1,240 @@
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([
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-mVnsnvLP.js";
2
+ import { $f as u, Bd as d, Fm as ee, Gd as f, Hp as te, If as p, Jd as ne, Kd as re, Om as m, Qf as ie, Sm as ae, Ud as h, Yd as oe, Zf as se, dp as ce, em as le, im as ue, jm as de, lp as fe, rp as pe, sm as me, uf as g, um as he, up as ge, wf as _e, ym as ve } from "./handlers-CMbyj5y1.js";
3
+ import { T as ye, d as be, t as xe, y as _ } from "./operations-HSqnCRvv.js";
4
+ import { z as v } from "zod";
5
+ var y = s(), Se = v.object({
6
+ orientation: v.enum(["horizontal", "vertical"]).optional(),
7
+ selectionMode: v.enum([
8
8
  "inherit",
9
9
  "auto",
10
10
  "manual"
11
11
  ]).optional(),
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,
50
- item: De,
51
- kind: y.literal("dimension"),
52
- name: y.string().min(1)
53
- }).strict(), je = y.object({
54
- fieldKey: C,
12
+ enableAddingNewFilters: v.boolean().optional(),
13
+ enableAssociativeFilter: v.boolean().optional(),
14
+ showClearAll: v.boolean().optional(),
15
+ showChartBreakdown: v.boolean().optional(),
16
+ selectableFieldKeys: v.array(v.string()).optional()
17
+ }).strict(), Ce = v.object({
18
+ settings: Se.optional(),
19
+ type: v.literal("astrato-app-filter-bar"),
20
+ version: v.literal(1)
21
+ }).strict(), b = (e) => e, x = v.string().trim().min(1).max(100), S = v.string().min(1).refine((e) => e.trim().length > 0, "Field key cannot be blank."), we = b(ae.shape.dataType), Te = b(ve.shape.formatType), Ee = v.object({
22
+ distinct: v.boolean().optional(),
23
+ name: v.string().trim().min(1),
24
+ resultType: v.string().optional()
25
+ }).strict(), De = v.object({
26
+ aggregations: v.array(Ee).default([]),
27
+ dataType: we,
28
+ fieldKey: S,
29
+ isManualData: v.boolean().optional(),
30
+ kind: v.literal("field").default("field"),
31
+ name: v.string().min(1),
32
+ view: v.string().min(1)
33
+ }).strict(), C = v.object({
34
+ description: v.string().optional(),
35
+ id: v.string().min(1).optional(),
36
+ key: S,
37
+ name: v.string().min(1),
38
+ views: v.array(v.string()).optional()
39
+ }).passthrough(), Oe = C.extend({
40
+ dimension: v.record(v.string(), v.unknown()),
41
+ type: v.literal("dimension")
42
+ }), ke = C.extend({
43
+ measure: v.object({ aggregation: v.string().min(1) }).passthrough(),
44
+ type: v.literal("measure")
45
+ }), Ae = C.extend({
46
+ calculation: v.record(v.string(), v.unknown()),
47
+ type: v.literal("calculation")
48
+ }), je = v.object({
49
+ fieldKey: S,
55
50
  item: Oe,
56
- kind: y.literal("measure"),
57
- name: y.string().min(1)
58
- }).strict(), Me = y.object({
59
- fieldKey: C,
51
+ kind: v.literal("dimension"),
52
+ name: v.string().min(1)
53
+ }).strict(), Me = v.object({
54
+ fieldKey: S,
60
55
  item: ke,
61
- kind: y.literal("calculation"),
62
- name: y.string().min(1)
63
- }).strict(), T = y.union([
64
- Ee,
65
- Ae,
56
+ kind: v.literal("measure"),
57
+ name: v.string().min(1)
58
+ }).strict(), Ne = v.object({
59
+ fieldKey: S,
60
+ item: Ae,
61
+ kind: v.literal("calculation"),
62
+ name: v.string().min(1)
63
+ }).strict(), w = v.union([
64
+ De,
66
65
  je,
67
- Me
66
+ Me,
67
+ Ne
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
- }), 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({
74
+ }), Pe = v.object({
75
+ currency: v.string().min(1).optional(),
76
+ currencyIsPrefix: v.boolean().optional(),
77
+ formatString: v.string().optional(),
78
+ formatType: Te.optional(),
79
+ negativeType: b(ve.shape.negativeType.unwrap()).optional()
80
+ }).strict(), Fe = v.discriminatedUnion("mode", [v.object({
81
+ dateLevel: b(v.enum(y.DateLevel)).describe("Year-aware bucket, such as month over time."),
82
+ mode: v.literal("level")
83
+ }).strict(), v.object({
84
+ datePart: b(v.enum(y.DatePart)).describe("Date part, such as month of year."),
85
+ mode: v.literal("part")
86
+ }).strict()]), T = v.object({
87
+ fieldKey: S,
88
+ format: Pe.pick({
89
89
  formatString: !0,
90
90
  formatType: !0
91
91
  }).optional(),
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([
121
- Ie,
92
+ ref: x,
93
+ showNullValues: v.boolean().optional(),
94
+ temporalGrouping: Fe.describe("Groups a date dimension. Applied before format; format must then suit the grouping.").optional()
95
+ }).strict(), Ie = v.object({
96
+ placements: v.array(b(v.enum(de))).min(1).optional(),
97
+ visible: v.boolean()
98
+ }).strict(), E = v.object({
99
+ aggregation: v.string().trim().min(1).describe("Required for a raw field measure; omit for a predefined measure or calculation.").optional(),
100
+ dataLabels: Ie.optional(),
101
+ fieldKey: S,
102
+ format: Pe.optional(),
103
+ ref: x
104
+ }).strict(), Le = v.object({
105
+ fieldKey: S,
106
+ operator: b(v.enum(pe)),
107
+ value: v.string()
108
+ }).strict(), Re = v.object({
109
+ fieldKey: S,
110
+ operator: b(v.enum(u)),
111
+ valueFrom: v.string(),
112
+ valueTo: v.string()
113
+ }).strict(), ze = v.object({
114
+ fieldKey: S,
115
+ operator: b(v.enum(se)),
116
+ values: v.array(v.string()).min(1)
117
+ }).strict(), Be = v.object({
118
+ fieldKey: S,
119
+ operator: b(v.enum(ie))
120
+ }).strict(), Ve = v.union([
122
121
  Le,
123
122
  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
- ...Ze
123
+ ze,
124
+ Be
125
+ ]), D = v.lazy(() => v.object({
126
+ filters: v.array(v.union([Ve, D])),
127
+ operator: v.enum(["and", "or"])
128
+ }).strict()), O = v.object({
129
+ by: x,
130
+ direction: b(le.shape.sortDirection),
131
+ enabled: v.boolean().optional()
132
+ }).strict(), He = v.object({
133
+ by: x,
134
+ count: v.number().int().positive(),
135
+ direction: b(le.shape.sortDirection),
136
+ showOthers: v.boolean().optional()
137
+ }).strict(), Ue = v.object({
138
+ queryLimit: v.number().int().positive().optional(),
139
+ topN: He.optional()
140
+ }).strict(), We = v.object({
141
+ position: b(he.shape.position).optional(),
142
+ title: v.string().optional(),
143
+ visible: v.boolean().optional()
144
+ }).strict(), k = v.object({
145
+ labelsVisible: v.boolean().optional(),
146
+ lineVisible: v.boolean().optional(),
147
+ ticksVisible: v.boolean().optional(),
148
+ title: v.string().optional(),
149
+ titleVisible: v.boolean().optional()
150
+ }).strict(), Ge = v.union([v.object({
151
+ max: v.number().optional(),
152
+ min: v.number().optional().describe("Must be less than max when both are set")
153
+ }).strict(), v.object({ startsAtZero: v.boolean() }).strict()]).describe("Fix min, max or both, or set startsAtZero on an axis fitted to the data"), Ke = v.array(te).optional().describe("Shaded ranges drawn across the plot between two primary measure axis values"), qe = fe({}), Je = fe({ dimension: x.describe(`Alias of a dimension in data.dimensions. ${ce}`) }), Ye = ge({ measure: x.describe("Alias of the measure in data.measures whose value is compared") }), Xe = "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.", Ze = v.array(Ye).min(1).describe("Colors bound to measure thresholds, eg. red when sales is below 100. The first matching rule wins."), A = (e) => v.object({
154
+ overwrites: v.array(e.requiresOverwriteDimension ? Je : qe).min(1).describe(Xe).optional(),
155
+ ...e.rules ? { rules: Ze.optional() } : {}
156
+ }).strict(), Qe = {
157
+ inverted: v.boolean().optional().describe("Reverse the direction of the axis values, eg. to put rank 1 at the top"),
158
+ range: Ge.optional()
159
+ }, $e = { bands: Ke }, j = { scale: b(v.enum(ee)).optional() };
160
+ k.extend({
161
+ ...Qe,
162
+ ...$e,
163
+ ...j
164
164
  }).strict();
165
- var P = ({ logScale: e = !1, primaryMeasureBands: t = !1, rangedMeasureAxes: n = [] } = {}) => {
166
- let r = (t, r) => A.extend({
167
- ...n.includes(t) ? M : {},
168
- ...r ? N : {},
169
- ...e ? Ze : {}
165
+ var M = ({ logScale: e = !1, primaryMeasureBands: t = !1, rangedMeasureAxes: n = [] } = {}) => {
166
+ let r = (t, r) => k.extend({
167
+ ...n.includes(t) ? Qe : {},
168
+ ...r ? $e : {},
169
+ ...e ? j : {}
170
170
  }).strict();
171
- return y.object({
172
- dimension: A.optional(),
171
+ return v.object({
172
+ dimension: k.optional(),
173
173
  primaryMeasure: r("primaryMeasure", t).optional(),
174
174
  secondaryMeasure: r("secondaryMeasure", !1).optional()
175
175
  }).strict();
176
176
  };
177
- P();
178
- var Qe = y.object({
179
- axes: P({
177
+ M();
178
+ var et = v.object({
179
+ axes: M({
180
180
  logScale: !0,
181
181
  primaryMeasureBands: !0,
182
182
  rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"]
183
183
  }).optional(),
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)
184
+ legend: We.optional(),
185
+ orientation: b(v.enum(i)).optional()
186
+ }).strict(), tt = E.extend({ axis: v.enum(["primary", "secondary"]).optional() }), nt = v.object({
187
+ data: v.object({
188
+ dimensions: v.array(T).min(1),
189
+ measures: v.array(tt).min(1)
190
190
  }).strict(),
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) => {
191
+ filterGroup: D.optional(),
192
+ limiting: Ue.optional(),
193
+ presentation: et.extend({ coloring: A({ rules: !0 }).optional() }).optional(),
194
+ sorting: v.array(O).optional(),
195
+ type: v.literal("bar"),
196
+ version: v.literal(1)
197
+ }).strict(), N = v.object({ visible: v.boolean() }).strict(), rt = (e, t) => v.array(e).min(t.min).max(t.max), P = (e, t) => {
198
198
  let n = {};
199
199
  if (t.dimensions.max > 0) {
200
- let e = nt(E, t.dimensions);
200
+ let e = rt(T, t.dimensions);
201
201
  n.dimensions = t.dimensions.min === 0 ? e.optional() : e;
202
202
  }
203
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([
204
+ let e = t.dataLabels ? E.omit({ dataLabels: !0 }).extend({ dataLabels: N.optional() }) : E.omit({ dataLabels: !0 }), r = t.comboSeriesTypes ? e.extend({ seriesType: v.enum([
205
205
  "bar",
206
206
  "line",
207
207
  "point"
208
- ]).optional() }) : e, i = nt(t.measureAxis ? r.extend({ axis: y.enum(["primary", "secondary"]).optional() }) : r, t.measures);
208
+ ]).optional() }) : e, i = rt(t.measureAxis ? r.extend({ axis: v.enum(["primary", "secondary"]).optional() }) : r, t.measures);
209
209
  n.measures = t.measures.min === 0 ? i.optional() : i;
210
210
  }
211
211
  let r = {};
212
212
  if (t.axes) {
213
- let e = P({
213
+ let e = M({
214
214
  logScale: t.measureAxisScale,
215
215
  primaryMeasureBands: t.measureAxisBands,
216
216
  rangedMeasureAxes: t.rangedMeasureAxes
217
217
  });
218
- r.axes = (t.secondaryDimensionAxis ? e.extend({ secondaryDimension: A.optional() }) : e).optional();
218
+ r.axes = (t.secondaryDimensionAxis ? e.extend({ secondaryDimension: k.optional() }) : e).optional();
219
219
  }
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([
220
+ t.conditionalColoring && (r.coloring = A(t.conditionalColoring).optional()), t.dataLabels && (r.dataLabels = N.optional()), t.gaugeDisplayMode && (r.displayMode = v.enum(["bar", "radial"]).optional()), t.legend && (r.legend = We.optional()), t.orientation && (r.orientation = b(v.enum(i)).optional()), t.treeLayout && (r.layout = v.object({
221
+ compact: v.boolean().optional(),
222
+ direction: v.enum([
223
223
  "bottom",
224
224
  "left",
225
225
  "right",
226
226
  "top"
227
227
  ]).optional(),
228
- forceAutoFit: y.boolean().optional(),
229
- initialExpandedLevels: y.number().int().min(0).optional()
228
+ forceAutoFit: v.boolean().optional(),
229
+ initialExpandedLevels: v.number().int().min(0).optional()
230
230
  }).strict().optional());
231
231
  let a = {
232
- data: y.object(n).strict(),
233
- filterGroup: O.optional(),
234
- type: y.literal(e),
235
- version: y.literal(1)
232
+ data: v.object(n).strict(),
233
+ filterGroup: D.optional(),
234
+ type: v.literal(e),
235
+ version: v.literal(1)
236
236
  };
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) => {
237
+ return t.queryLimit && (a.limiting = v.object({ queryLimit: v.number().int().positive().optional() }).strict().optional()), Object.keys(r).length > 0 && (a.presentation = v.object(r).strict().optional()), t.sorting && (a.sorting = v.array(O).optional()), v.object(a).strict().superRefine((n, r) => {
238
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",
@@ -248,7 +248,7 @@ var Qe = y.object({
248
248
  path: ["presentation", "coloring"]
249
249
  }), t.validateDefinition?.(n, r);
250
250
  });
251
- }, rt = F("combo", {
251
+ }, it = P("combo", {
252
252
  axes: !0,
253
253
  comboSeriesTypes: !0,
254
254
  dataLabels: !0,
@@ -298,7 +298,7 @@ var Qe = y.object({
298
298
  });
299
299
  });
300
300
  }
301
- }), it = F("dot", {
301
+ }), at = P("dot", {
302
302
  conditionalColoring: { rules: !0 },
303
303
  axes: !0,
304
304
  dimensions: {
@@ -312,7 +312,7 @@ var Qe = y.object({
312
312
  },
313
313
  orientation: !0,
314
314
  rangedMeasureAxes: ["primaryMeasure"]
315
- }), at = F("scatter", {
315
+ }), ot = P("scatter", {
316
316
  conditionalColoring: { rules: !0 },
317
317
  axes: !0,
318
318
  dimensions: {
@@ -327,7 +327,7 @@ var Qe = y.object({
327
327
  queryLimit: !0,
328
328
  rangedMeasureAxes: ["primaryMeasure", "secondaryMeasure"],
329
329
  sorting: !0
330
- }), ot = F("histogram", {
330
+ }), st = P("histogram", {
331
331
  axes: !0,
332
332
  dimensions: {
333
333
  min: 1,
@@ -341,7 +341,7 @@ var Qe = y.object({
341
341
  },
342
342
  orientation: !0,
343
343
  rangedMeasureAxes: ["primaryMeasure"]
344
- }), st = F("heatMap", {
344
+ }), ct = P("heatMap", {
345
345
  conditionalColoring: { rules: !0 },
346
346
  axes: !0,
347
347
  dimensions: {
@@ -356,7 +356,7 @@ var Qe = y.object({
356
356
  queryLimit: !0,
357
357
  secondaryDimensionAxis: !0,
358
358
  sorting: !0
359
- }), ct = F("radar", {
359
+ }), lt = P("radar", {
360
360
  conditionalColoring: {
361
361
  minDimensions: 2,
362
362
  rules: !1
@@ -374,7 +374,7 @@ var Qe = y.object({
374
374
  if (e === 0 && t < 2) return "Radar charts without dimensions require at least two measures.";
375
375
  if (e > 0 && t > 1) return "Radar charts with dimensions support exactly one measure.";
376
376
  }
377
- }), lt = F("gauge", {
377
+ }), ut = P("gauge", {
378
378
  conditionalColoring: { rules: !0 },
379
379
  dimensions: {
380
380
  min: 0,
@@ -387,7 +387,7 @@ var Qe = y.object({
387
387
  max: 20
388
388
  },
389
389
  validateCounts: (e, t) => e === 1 && t > 2 ? "Gauge charts with a dimension support at most two measures." : void 0
390
- }), ut = F("distribution-gauge", {
390
+ }), dt = P("distribution-gauge", {
391
391
  conditionalColoring: { rules: !0 },
392
392
  dimensions: {
393
393
  min: 0,
@@ -399,7 +399,7 @@ var Qe = y.object({
399
399
  min: 1,
400
400
  max: 20
401
401
  }
402
- }), dt = F("pie", {
402
+ }), ft = P("pie", {
403
403
  conditionalColoring: { rules: !0 },
404
404
  dimensions: {
405
405
  min: 1,
@@ -412,7 +412,7 @@ var Qe = y.object({
412
412
  },
413
413
  queryLimit: !0,
414
414
  sorting: !0
415
- }), ft = F("tree", {
415
+ }), pt = P("tree", {
416
416
  dimensions: {
417
417
  min: 0,
418
418
  max: 10
@@ -425,7 +425,7 @@ var Qe = y.object({
425
425
  sorting: !0,
426
426
  treeLayout: !0,
427
427
  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
428
- }), pt = F("treemap", {
428
+ }), mt = P("treemap", {
429
429
  conditionalColoring: { rules: !0 },
430
430
  dimensions: {
431
431
  min: 1,
@@ -436,7 +436,7 @@ var Qe = y.object({
436
436
  min: 1,
437
437
  max: 1
438
438
  }
439
- }), mt = F("sankey", {
439
+ }), ht = P("sankey", {
440
440
  conditionalColoring: {
441
441
  requiresOverwriteDimension: !0,
442
442
  rules: !0
@@ -449,7 +449,7 @@ var Qe = y.object({
449
449
  min: 1,
450
450
  max: 1
451
451
  }
452
- }), ht = F("waterfall", {
452
+ }), gt = P("waterfall", {
453
453
  axes: !0,
454
454
  dataLabels: !0,
455
455
  dimensions: {
@@ -463,7 +463,7 @@ var Qe = y.object({
463
463
  },
464
464
  orientation: !0,
465
465
  rangedMeasureAxes: ["primaryMeasure"]
466
- }), gt = F("word-cloud", {
466
+ }), _t = P("word-cloud", {
467
467
  conditionalColoring: { rules: !0 },
468
468
  dimensions: {
469
469
  min: 1,
@@ -473,41 +473,41 @@ var Qe = y.object({
473
473
  min: 1,
474
474
  max: 1
475
475
  }
476
- }), _t = y.enum(["dropdown", "listbox"]), vt = y.object({
477
- mode: _t.optional(),
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({
476
+ }), vt = v.enum(["dropdown", "listbox"]), yt = v.object({
477
+ mode: vt.optional(),
478
+ quickSelect: v.boolean().optional(),
479
+ responsive: v.boolean().optional(),
480
+ searchable: v.boolean().optional(),
481
+ showProgressBar: v.boolean().optional()
482
+ }).strict(), bt = v.object({
483
+ data: v.object({ field: T.omit({
484
484
  format: !0,
485
485
  showNullValues: !0,
486
486
  temporalGrouping: !0
487
487
  }) }).strict(),
488
- presentation: vt.optional(),
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
- }).strict(), St = Qe.extend({
498
- coloring: j({ rules: !1 }).optional(),
499
- dataLabels: xt.optional()
500
- }), Ct = y.object({
501
- data: y.object({
502
- dimensions: y.array(E).min(1),
503
- measures: y.array(bt).min(1)
488
+ presentation: yt.optional(),
489
+ type: v.literal("filter"),
490
+ version: v.literal(1)
491
+ }).strict(), xt = E.omit({ dataLabels: !0 }).extend({
492
+ axis: v.enum(["primary", "secondary"]).optional(),
493
+ dataPointShape: b(me.shape.dataPointShape)
494
+ }), St = v.object({
495
+ density: ue.optional(),
496
+ visible: v.boolean()
497
+ }).strict(), Ct = et.extend({
498
+ coloring: A({ rules: !1 }).optional(),
499
+ dataLabels: St.optional()
500
+ }), wt = v.object({
501
+ data: v.object({
502
+ dimensions: v.array(T).min(1),
503
+ measures: v.array(xt).min(1)
504
504
  }).strict(),
505
- filterGroup: O.optional(),
506
- limiting: y.object({ queryLimit: y.number().int().positive().optional() }).strict().optional(),
507
- presentation: St.optional(),
508
- sorting: y.array(k).optional(),
509
- type: y.literal("line"),
510
- version: y.literal(1)
505
+ filterGroup: D.optional(),
506
+ limiting: v.object({ queryLimit: v.number().int().positive().optional() }).strict().optional(),
507
+ presentation: Ct.optional(),
508
+ sorting: v.array(O).optional(),
509
+ type: v.literal("line"),
510
+ version: v.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 = y.object({
525
525
  ]
526
526
  });
527
527
  });
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({
528
+ }), Tt = v.object({
529
+ data: v.object({ measure: E.omit({ dataLabels: !0 }) }).strict(),
530
+ filterGroup: D.optional(),
531
+ type: v.literal("number"),
532
+ version: v.literal(1)
533
+ }).strict(), Et = b(_e.pick({
534
534
  endDateLabel: !0,
535
535
  pickerState: !0,
536
536
  pickerType: !0,
@@ -539,32 +539,32 @@ var Qe = y.object({
539
539
  startDateLabel: !0,
540
540
  timePickerVisibility: !0,
541
541
  weekStart: !0
542
- }).partial()), Et = y.object({
543
- data: y.object({ field: E.omit({
542
+ }).partial()), Dt = v.object({
543
+ data: v.object({ field: T.omit({
544
544
  format: !0,
545
545
  showNullValues: !0,
546
546
  temporalGrouping: !0
547
547
  }) }).strict(),
548
- settings: Tt.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
- source: ye.optional()
548
+ settings: Et.optional(),
549
+ type: v.literal("date-picker"),
550
+ version: v.literal(1)
551
+ }).strict(), Ot = v.object({
552
+ settings: v.object({ url: v.string().url().nullable() }).strict(),
553
+ type: v.literal("iframe"),
554
+ version: v.literal(1)
555
+ }).strict(), kt = v.object({
556
+ settings: b(v.object({
557
+ blur: g.shape.blur.optional(),
558
+ fit: g.shape.image.unwrap().shape.imageFit.optional(),
559
+ opacity: g.shape.opacity.optional(),
560
+ saturation: g.shape.saturation.optional(),
561
+ shadow: g.shape.shadow.optional(),
562
+ source: be.optional()
563
563
  }).strict()),
564
- type: y.literal("image"),
565
- version: y.literal(1)
566
- }).strict(), kt = y.object({
567
- settings: x(he.pick({
564
+ type: v.literal("image"),
565
+ version: v.literal(1)
566
+ }).strict(), At = v.object({
567
+ settings: b(oe.pick({
568
568
  backgroundColor: !0,
569
569
  backgroundType: !0,
570
570
  borderEnabled: !0,
@@ -579,160 +579,160 @@ var Qe = y.object({
579
579
  shape: !0,
580
580
  strokeColor: !0
581
581
  }).partial().strict()),
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
- align: I.shape.align.optional(),
587
- content: y.string().optional(),
588
- fontFamily: I.shape.fontFamily.optional(),
589
- fontSize: I.shape.fontSize.optional(),
590
- position: I.shape.position.optional(),
591
- representation: I.shape.representation.optional(),
592
- responsive: I.shape.responsive.optional(),
593
- textColor: I.shape.textColor.optional(),
594
- wordWrap: I.shape.wordWrap.optional()
582
+ type: v.literal("shape"),
583
+ version: v.literal(1)
584
+ }).strict(), F = ne.shape.simpleTextObjectSettings, jt = v.object({
585
+ settings: b(v.object({
586
+ align: F.shape.align.optional(),
587
+ content: v.string().optional(),
588
+ fontFamily: F.shape.fontFamily.optional(),
589
+ fontSize: F.shape.fontSize.optional(),
590
+ position: F.shape.position.optional(),
591
+ representation: F.shape.representation.optional(),
592
+ responsive: F.shape.responsive.optional(),
593
+ textColor: F.shape.textColor.optional(),
594
+ wordWrap: F.shape.wordWrap.optional()
595
595
  }).strict()),
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()
596
+ type: v.literal("simpleTextObject"),
597
+ version: v.literal(1)
598
+ }).strict(), Mt = v.object({
599
+ settings: b(v.object({
600
+ customLabel: p.shape.commonSettings.shape.customLabel.optional(),
601
+ hideLabel: p.shape.commonSettings.shape.hideLabel.optional(),
602
+ inputType: p.shape.type.optional(),
603
+ placeholder: p.shape.commonSettings.shape.placeholder.optional(),
604
+ responsive: p.shape.commonSettings.shape.responsive.optional(),
605
+ variableId: p.shape.commonSettings.shape.variableId.optional()
606
606
  }).strict()),
607
- type: y.literal("atomic-input"),
608
- version: y.literal(1)
609
- }).strict(), Mt = y.object({
610
- data: y.object({ field: E.omit({
607
+ type: v.literal("atomic-input"),
608
+ version: v.literal(1)
609
+ }).strict(), Nt = v.object({
610
+ data: v.object({ field: T.omit({
611
611
  format: !0,
612
612
  showNullValues: !0,
613
613
  temporalGrouping: !0
614
614
  }) }).strict(),
615
- settings: x(re.pick({
615
+ settings: b(re.pick({
616
616
  layout: !0,
617
617
  quickSelect: !0,
618
618
  range: !0,
619
619
  step: !0
620
620
  }).partial()).optional(),
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
- Ft,
621
+ type: v.literal("slider"),
622
+ version: v.literal(1)
623
+ }).strict(), Pt = T.extend({ role: v.literal("dimension") }), I = E.omit({ dataLabels: !0 }), Ft = I.extend({ role: v.literal("measure") }), It = v.object({
624
+ columns: v.array(v.discriminatedUnion("role", [Pt, Ft])).min(1),
625
+ structure: v.literal("normal").optional()
626
+ }).strict(), Lt = v.object({
627
+ dimensions: v.array(T).min(1),
628
+ measures: v.array(I).min(1),
629
+ structure: v.literal("expandable")
630
+ }).strict(), Rt = v.object({
631
+ columnDimensions: v.array(T).min(1),
632
+ measures: v.array(I).min(1),
633
+ rowDimensions: v.array(T).min(1),
634
+ structure: v.literal("pivot")
635
+ }).strict(), zt = v.union([
637
636
  It,
638
- Lt
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
637
+ Lt,
638
+ Rt
639
+ ]), Bt = v.object({
640
+ applyTo: d.shape.applyTo,
641
+ enabled: d.shape.enabled,
642
+ showRecordsCount: d.shape.showRecordsCount,
643
+ style: v.object({
644
+ backgroundColor: f.shape.backgroundColor.optional(),
645
+ fontColor: f.shape.fontColor.optional(),
646
+ fontStyle: h.optional(),
647
+ position: f.shape.position.optional(),
648
+ responsiveHeight: f.shape.responsive
649
649
  }).strict().optional()
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([
650
+ }).strict(), Vt = v.object({
651
+ background: v.object({
652
+ color: m.optional(),
653
+ evenColor: m.optional(),
654
+ oddColor: m.optional(),
655
+ type: v.enum([
656
656
  "none",
657
657
  "single",
658
658
  "zebra"
659
659
  ])
660
660
  }).strict().optional(),
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([
661
+ body: v.object({
662
+ fontColor: m.optional(),
663
+ fontFamily: v.string().trim().min(1).optional(),
664
+ fontSize: v.number().positive().optional(),
665
+ fontStyle: h.optional(),
666
+ horizontalAlign: v.enum([
667
667
  "auto",
668
668
  "center",
669
669
  "left",
670
670
  "right"
671
671
  ]).optional(),
672
- verticalAlign: y.enum([
672
+ verticalAlign: v.enum([
673
673
  "auto",
674
674
  "bottom",
675
675
  "middle",
676
676
  "top"
677
677
  ]).optional()
678
678
  }).strict().optional(),
679
- borders: y.object({
680
- color: d.optional(),
681
- dividerColor: d.optional(),
682
- dividers: y.enum([
679
+ borders: v.object({
680
+ color: m.optional(),
681
+ dividerColor: m.optional(),
682
+ dividers: v.enum([
683
683
  "all",
684
684
  "auto",
685
685
  "horizontal",
686
686
  "none",
687
687
  "vertical"
688
688
  ]).optional(),
689
- enabled: y.boolean(),
690
- lineStyle: y.enum([
689
+ enabled: v.boolean(),
690
+ lineStyle: v.enum([
691
691
  "dashed",
692
692
  "dotted",
693
693
  "line"
694
694
  ]).optional(),
695
- radius: y.number().nonnegative().optional(),
696
- strokeWidth: y.number().nonnegative().optional()
695
+ radius: v.number().nonnegative().optional(),
696
+ strokeWidth: v.number().nonnegative().optional()
697
697
  }).strict().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()
698
+ header: v.object({
699
+ backgroundColor: m.optional(),
700
+ borderColor: m.optional(),
701
+ fontColor: m.optional(),
702
+ fontFamily: v.string().trim().min(1).optional(),
703
+ fontSize: v.number().positive().optional(),
704
+ fontStyle: h.optional(),
705
+ responsiveHeight: v.boolean().optional()
706
706
  }).strict().optional(),
707
- highlight: y.object({
708
- backgroundColor: d.optional(),
709
- mode: y.enum([
707
+ highlight: v.object({
708
+ backgroundColor: m.optional(),
709
+ mode: v.enum([
710
710
  "column",
711
711
  "none",
712
712
  "row",
713
713
  "row-and-column"
714
714
  ]),
715
- textColor: d.optional()
715
+ textColor: m.optional()
716
716
  }).strict().optional(),
717
- layout: y.object({
718
- columnWidthBehavior: y.enum(["responsive", "static"]).optional(),
719
- rowHeight: y.number().positive().optional()
717
+ layout: v.object({
718
+ columnWidthBehavior: v.enum(["responsive", "static"]).optional(),
719
+ rowHeight: v.number().positive().optional()
720
720
  }).strict().optional()
721
- }).strict(), Vt = y.object({
722
- data: Rt,
723
- filterGroup: O.optional(),
724
- limiting: y.object({ queryLimit: y.number().int().positive().optional() }).strict().optional(),
725
- presentation: Bt.optional(),
726
- sorting: y.array(k).optional(),
727
- totals: zt.optional(),
728
- type: y.literal("table"),
729
- version: y.literal(1)
730
- }).strict(), R = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ht = (e) => {
721
+ }).strict(), Ht = v.object({
722
+ data: zt,
723
+ filterGroup: D.optional(),
724
+ limiting: v.object({ queryLimit: v.number().int().positive().optional() }).strict().optional(),
725
+ presentation: Vt.optional(),
726
+ sorting: v.array(O).optional(),
727
+ totals: Bt.optional(),
728
+ type: v.literal("table"),
729
+ version: v.literal(1)
730
+ }).strict(), L = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ut = (e) => {
731
731
  let t = e.fieldKey ?? e.key;
732
732
  return typeof t == "string" ? t : void 0;
733
- }, Ut = (e) => {
733
+ }, Wt = (e) => {
734
734
  if (Array.isArray(e)) return e;
735
- if (!R(e)) throw Error("Available field metadata must be an array or an object.");
735
+ if (!L(e)) throw Error("Available field metadata must be an array or an object.");
736
736
  return [
737
737
  "fields",
738
738
  "dimensions",
@@ -743,10 +743,10 @@ var Qe = y.object({
743
743
  if (!Array.isArray(n)) throw Error(`Available field metadata "${t}" must be an array.`);
744
744
  return n;
745
745
  });
746
- }, Wt = (e, t) => {
746
+ }, Gt = (e, t) => {
747
747
  let n = e.type;
748
- if (!(n === "dimension" && R(e.dimension) || n === "measure" && R(e.measure) || n === "calculation" && R(e.calculation))) return;
749
- let r = T.safeParse({
748
+ if (!(n === "dimension" && L(e.dimension) || n === "measure" && L(e.measure) || n === "calculation" && L(e.calculation))) return;
749
+ let r = w.safeParse({
750
750
  fieldKey: e.key,
751
751
  item: e,
752
752
  kind: n,
@@ -754,20 +754,20 @@ var Qe = y.object({
754
754
  });
755
755
  if (!r.success) throw Error(`Invalid available semantic item at index ${t}: ${r.error.message}`);
756
756
  return r.data;
757
- }, Gt = (e, t) => {
758
- if (!R(e)) throw Error(`Available field at index ${t} must be an object.`);
759
- let n = T.safeParse(e);
757
+ }, Kt = (e, t) => {
758
+ if (!L(e)) throw Error(`Available field at index ${t} must be an object.`);
759
+ let n = w.safeParse(e);
760
760
  if (n.success) return n.data;
761
- let r = Wt(e, t);
761
+ let r = Gt(e, t);
762
762
  if (r) return r;
763
- let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = T.safeParse({
764
- aggregations: i.map((e) => R(e) ? {
763
+ let i = Array.isArray(e.aggregations) ? e.aggregations : Array.isArray(e.aggregators) ? e.aggregators : [], a = w.safeParse({
764
+ aggregations: i.map((e) => L(e) ? {
765
765
  distinct: e.distinct,
766
766
  name: e.name ?? e.funcName,
767
767
  resultType: e.resultType
768
768
  } : e),
769
769
  dataType: e.dataType,
770
- fieldKey: Ht(e),
770
+ fieldKey: Ut(e),
771
771
  isManualData: e.isManualData,
772
772
  kind: "field",
773
773
  name: e.name,
@@ -775,19 +775,19 @@ var Qe = y.object({
775
775
  });
776
776
  if (!a.success) throw Error(`Invalid available field at index ${t}: ${a.error.message}`);
777
777
  return a.data;
778
- }, Kt = (e) => {
779
- let t = Ut(e).map(Gt), n = /* @__PURE__ */ new Map();
778
+ }, qt = (e) => {
779
+ let t = Wt(e).map(Kt), n = /* @__PURE__ */ new Map();
780
780
  return t.forEach((e, t) => {
781
781
  let r = n.get(e.fieldKey);
782
782
  if (r !== void 0) throw Error(`Duplicate available field key "${e.fieldKey}" at indexes ${r} and ${t}.`);
783
783
  n.set(e.fieldKey, t);
784
784
  }), t;
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) => {
785
+ }, Jt = (e) => e.kind === "field" ? [...new Set(e.aggregations.flatMap((e) => [e.name, ...e.distinct ? [`${e.name}_DISTINCT`] : []]))] : [], Yt = (e, t) => e.kind === "field" || t === "dimension" && e.kind === "dimension" || t === "measure" && (e.kind === "measure" || e.kind === "calculation"), Xt = (e) => {
786
786
  if (e.kind !== "dimension") return e.kind;
787
- }, z = (e) => ({
787
+ }, R = (e) => ({
788
788
  ...t(e.item),
789
789
  id: e.item.id ?? e.fieldKey
790
- }), B = (t) => t.map((t) => t.kind === "dimension" ? e(z(t)) : t.kind === "measure" || t.kind === "calculation" ? a(z(t)) : {
790
+ }), z = (t) => t.map((t) => t.kind === "dimension" ? e(R(t)) : t.kind === "measure" || t.kind === "calculation" ? a(R(t)) : {
791
791
  aggregators: n(t.aggregations.map((e) => ({
792
792
  distinct: e.distinct ?? !1,
793
793
  name: e.name,
@@ -799,28 +799,28 @@ var Qe = y.object({
799
799
  name: t.name,
800
800
  view: t.view,
801
801
  views: [t.view]
802
- }), V = (e, t) => {
802
+ }), B = (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
- }, 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
- b.FieldType.DATE,
808
- b.FieldType.TIME,
809
- b.FieldType.TIMESTAMP,
810
- b.FieldType.TIMESTAMP_TZ
811
- ], H = (e, t, n, r) => ({
806
+ }, Zt = (e, t) => [...t].sort((t, n) => B(e, n.fieldKey) - B(e, t.fieldKey) || t.fieldKey.localeCompare(n.fieldKey)).slice(0, 5).map((e) => e.fieldKey), Qt = [
807
+ y.FieldType.DATE,
808
+ y.FieldType.TIME,
809
+ y.FieldType.TIMESTAMP,
810
+ y.FieldType.TIMESTAMP_TZ
811
+ ], V = (e, t, n, r) => ({
812
812
  ...r ? { allowedValues: r } : {},
813
813
  code: e,
814
814
  message: n,
815
815
  path: t
816
- }), U = (e) => qt(e).filter((e) => !!l(e)), Qt = (e, t) => {
816
+ }), H = (e) => Jt(e).filter((e) => !!l(e)), U = (e, t) => {
817
817
  let n = t.find((t) => t.fieldKey === e.fieldKey);
818
- return n?.kind === "field" ? U(n).find((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) : void 0;
818
+ return n?.kind === "field" ? H(n).find((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) : void 0;
819
819
  }, $t = (e, t) => {
820
820
  let n = t.find((t) => t.fieldKey === e.fieldKey);
821
- return n?.kind === "measure" ? n.item.measure.aggregation : Qt(e, t);
821
+ return n?.kind === "measure" ? n.item.measure.aggregation : U(e, t);
822
822
  }, en = (e, t, n = {}) => {
823
- let r = t.find((t) => t.fieldKey === e.fieldKey), i = r ? Yt(r) : void 0, a = Qt(e, t);
823
+ let r = t.find((t) => t.fieldKey === e.fieldKey), i = r ? Xt(r) : void 0, a = U(e, t);
824
824
  return {
825
825
  ...n,
826
826
  key: e.fieldKey,
@@ -829,15 +829,15 @@ var Qe = y.object({
829
829
  };
830
830
  }, W = (e, t, n, r) => {
831
831
  let i = t.find((t) => t.fieldKey === e.fieldKey);
832
- if (!i) return [H("unknown_field_key", [...n, "fieldKey"], `Field key "${e.fieldKey}" is not available.`, Xt(e.fieldKey, t))];
833
- if (!Jt(i, r)) return [H("invalid_field_role", [...n, "fieldKey"], `Available item "${e.fieldKey}" of kind "${i.kind}" cannot be used as a ${r}.`)];
834
- if (r !== "measure") return e.temporalGrouping ? nn(e, t, n, Zt, "a temporally grouped dimension") : [];
835
- if (i.kind !== "field") return e.aggregation === void 0 ? [] : [H("invalid_aggregation", [...n, "aggregation"], `Aggregation must be omitted for semantic ${i.kind} "${e.fieldKey}".`)];
836
- let a = U(i);
837
- 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)];
832
+ if (!i) return [V("unknown_field_key", [...n, "fieldKey"], `Field key "${e.fieldKey}" is not available.`, Zt(e.fieldKey, t))];
833
+ if (!Yt(i, r)) return [V("invalid_field_role", [...n, "fieldKey"], `Available item "${e.fieldKey}" of kind "${i.kind}" cannot be used as a ${r}.`)];
834
+ if (r !== "measure") return e.temporalGrouping ? nn(e, t, n, Qt, "a temporally grouped dimension") : [];
835
+ if (i.kind !== "field") return e.aggregation === void 0 ? [] : [V("invalid_aggregation", [...n, "aggregation"], `Aggregation must be omitted for semantic ${i.kind} "${e.fieldKey}".`)];
836
+ let a = H(i);
837
+ return e.aggregation ? a.some((t) => t.toLocaleUpperCase() === e.aggregation?.toLocaleUpperCase()) ? [] : [V("invalid_aggregation", [...n, "aggregation"], `Aggregation "${e.aggregation}" is not available for field key "${e.fieldKey}".`, a)] : [V("invalid_aggregation", [...n, "aggregation"], `Aggregation is required for raw field "${e.fieldKey}" when it is used as a measure.`, a)];
838
838
  }, tn = (e, t, n, r) => e.flatMap((e, i) => W(e, t, [...n, i], r)), nn = (e, t, n, r, i) => {
839
839
  let a = t.find((t) => t.fieldKey === e.fieldKey);
840
- 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])];
840
+ return a?.kind !== "field" || r.includes(a.dataType) ? [] : [V("invalid_field_role", [...n, "fieldKey"], `Raw field "${e.fieldKey}" has data type "${a.dataType}" and cannot be used as ${i}.`, [...r])];
841
841
  }, rn = (e, t, n = ["filterGroup"]) => e ? e.filters.flatMap((e, r) => {
842
842
  let i = [
843
843
  ...n,
@@ -973,7 +973,7 @@ var cn = (e, t) => {
973
973
  let n = e, r = n.referencedData;
974
974
  return t.every((e) => !Array.isArray(n[e]) || n[e].length === 0) && (typeof r != "object" || !r || Object.keys(r).length === 0);
975
975
  }, pn = (e, t) => ({
976
- availableFields: B(e.availableFields),
976
+ availableFields: z(e.availableFields),
977
977
  input: e,
978
978
  resolvedRefs: {},
979
979
  vSpec: t
@@ -1043,7 +1043,7 @@ var cn = (e, t) => {
1043
1043
  }, xn = (e, t) => {
1044
1044
  let n = [];
1045
1045
  t.inverted !== void 0 && n.push({
1046
- name: v.SET_INVERT_AXIS,
1046
+ name: _.SET_INVERT_AXIS,
1047
1047
  payload: {
1048
1048
  axisName: e,
1049
1049
  invertAxis: t.inverted
@@ -1052,7 +1052,7 @@ var cn = (e, t) => {
1052
1052
  let { range: r } = t;
1053
1053
  if (r) {
1054
1054
  n.push({
1055
- name: v.SET_AXIS_RANGE_OPTION,
1055
+ name: _.SET_AXIS_RANGE_OPTION,
1056
1056
  payload: {
1057
1057
  axisName: e,
1058
1058
  axisRangeOption: yn(r)
@@ -1060,19 +1060,19 @@ var cn = (e, t) => {
1060
1060
  });
1061
1061
  let { max: t, min: i } = Q(r);
1062
1062
  i !== void 0 && n.push({
1063
- name: v.SET_AXIS_RANGE_MIN,
1063
+ name: _.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: v.SET_AXIS_RANGE_MAX,
1069
+ name: _.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: v.SET_AXIS_STARTS_AT_ZERO,
1075
+ name: _.SET_AXIS_STARTS_AT_ZERO,
1076
1076
  payload: {
1077
1077
  axisName: e,
1078
1078
  startsAtZero: r.startsAtZero
@@ -1090,7 +1090,7 @@ var cn = (e, t) => {
1090
1090
  let r = t.map((e, t) => ({
1091
1091
  ...e,
1092
1092
  id: e.id ?? `definition:${t}`
1093
- })), i = await be(e.vSpec, e.availableFields, r.map(({ id: e, name: t, payload: n }) => ({
1093
+ })), i = await xe(e.vSpec, e.availableFields, r.map(({ id: e, name: t, payload: n }) => ({
1094
1094
  id: e,
1095
1095
  name: t,
1096
1096
  payload: n
@@ -1125,7 +1125,7 @@ var cn = (e, t) => {
1125
1125
  kind: t
1126
1126
  };
1127
1127
  }, wn = async (e, t, n, r, i, a) => {
1128
- let o = `${n}:${t.ref}`, s = await be(e.vSpec, e.availableFields, [{
1128
+ let o = `${n}:${t.ref}`, s = await xe(e.vSpec, e.availableFields, [{
1129
1129
  id: o,
1130
1130
  name: r,
1131
1131
  payload: i
@@ -1202,17 +1202,17 @@ var cn = (e, t) => {
1202
1202
  }, An = (e, t) => {
1203
1203
  let n = [];
1204
1204
  return t?.overwrites && n.push({
1205
- name: ve.SET_COLORING_OVERWRITES,
1205
+ name: ye.SET_COLORING_OVERWRITES,
1206
1206
  payload: { overwrites: t.overwrites.map(({ dimension: t, ...n }) => t === void 0 ? n : {
1207
1207
  ...n,
1208
1208
  dimension: Y(e.resolvedRefs[t])
1209
1209
  }) }
1210
1210
  }), t?.rules && n.push({
1211
- name: ve.SET_COLORING_RULES,
1211
+ name: ye.SET_COLORING_RULES,
1212
1212
  payload: { rules: t.rules.map(({ measure: t, ...n }) => ({
1213
1213
  ...n,
1214
1214
  measure: Y(e.resolvedRefs[t])
1215
1215
  })) }
1216
1216
  }), $(e, n, Z);
1217
1217
  };
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 };
1218
+ export { ht as $, rn as A, Nt as B, dn as C, $t as D, en as E, Mt as F, it as G, Tt as H, Dt as I, ut as J, dt as K, Ot as L, qt as M, z as N, W as O, Ht as P, lt as Q, kt as R, _n as S, sn as T, wt as U, jt as V, bt as W, st as X, ct as Y, ft as Z, bn as _, Tn as a, nt as at, X as b, xn as c, J as d, ot as et, cn as f, vn as g, $ as h, On as i, _t as it, nn as j, tn as k, ln as l, mn as m, An as n, mt as nt, kn as o, w as ot, un as p, at as q, Dn as r, gt as rt, En as s, Ce as st, wn as t, pt as tt, pn as u, fn as v, G as w, gn as x, Y as y, At as z };