@astrato-io/visualizations 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +148 -5
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +9 -146
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
  7. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
  10. package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
  15. package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
  16. package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
  17. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
  18. package/chunks/defaults-CMFqXvaJ.js +3 -0
  19. package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
  20. package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
  21. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
  22. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
  23. package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
  24. package/chunks/handlers-CyYFSfhM.js +15393 -0
  25. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
  26. package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
  27. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
  28. package/chunks/line.compiler-B-4H55_T.js +203 -0
  29. package/chunks/linear-Bq_r9l5S.js +264 -0
  30. package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
  31. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  32. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
  33. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  34. package/chunks/measure-format-default-B_kuGSzi.js +26 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
  36. package/chunks/number.compiler-D7nMcEMv.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
  38. package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
  42. package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
  43. package/chunks/standalone-B3hRGgYi.js +773 -0
  44. package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
  45. package/chunks/standalone-BPTT8XEu.js +424 -0
  46. package/chunks/standalone-BgAeHROc.js +2 -0
  47. package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
  48. package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
  49. package/chunks/standalone-C0If-V6O.js +773 -0
  50. package/chunks/standalone-C1TOyflX.js +287 -0
  51. package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
  52. package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
  53. package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
  54. package/chunks/standalone-CNf-oA2U.js +355 -0
  55. package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
  56. package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
  57. package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
  58. package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
  59. package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
  60. package/chunks/standalone-Dbn3jSH6.js +690 -0
  61. package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
  62. package/chunks/standalone-DwCIA0UG.js +1057 -0
  63. package/chunks/standalone-Dz13tl3P.js +357 -0
  64. package/chunks/standalone-H9GFzFk_.js +8377 -0
  65. package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
  66. package/chunks/standalone-ejTz66P3.js +2 -0
  67. package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
  68. package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
  69. package/chunks/standalone-vGGR6Vcn.js +6 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
  71. package/chunks/theme-MYp6Rj1J.js +232 -0
  72. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
  73. package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
  74. package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
  75. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
  76. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
  77. package/definitions.js +2 -2
  78. package/docs/operations/astrato-app-filter-bar.md +1 -1
  79. package/docs/operations/bar.md +144 -32
  80. package/docs/operations/combo.md +79 -17
  81. package/docs/operations/date-picker.md +4 -4
  82. package/docs/operations/distribution-gauge.md +18 -16
  83. package/docs/operations/dot.md +107 -24
  84. package/docs/operations/filter.md +10 -8
  85. package/docs/operations/gauge.md +20 -18
  86. package/docs/operations/heatMap.md +73 -21
  87. package/docs/operations/histogram.md +45 -12
  88. package/docs/operations/iframe.md +1 -1
  89. package/docs/operations/image.md +1 -1
  90. package/docs/operations/index.md +12 -11
  91. package/docs/operations/line.md +86 -24
  92. package/docs/operations/map.md +5274 -0
  93. package/docs/operations/number.md +10 -9
  94. package/docs/operations/pie.md +23 -21
  95. package/docs/operations/radar.md +13 -11
  96. package/docs/operations/sankey.md +19 -17
  97. package/docs/operations/scatter.md +111 -28
  98. package/docs/operations/shape.md +5 -5
  99. package/docs/operations/simpleTextObject.md +4 -4
  100. package/docs/operations/slider.md +1 -1
  101. package/docs/operations/table.md +27 -25
  102. package/docs/operations/tree.md +5 -3
  103. package/docs/operations/treemap.md +70 -18
  104. package/docs/operations/waterfall.md +40 -7
  105. package/docs/operations/word-cloud.md +69 -17
  106. package/getters.js +3 -3
  107. package/index.js +585 -612
  108. package/metadata.js +2 -2
  109. package/operations.js +25 -18
  110. package/package.json +74 -70
  111. package/src/definitions/index.d.ts +1 -7
  112. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  113. package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
  115. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  116. package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
  117. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  118. package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
  119. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  120. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +11 -1
  123. package/src/types.d.ts +166 -1
  124. package/src/visualization-catalog.d.ts +3 -0
  125. package/styles.css +1 -1
  126. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  127. package/chunks/color-rules-DYJL4fIW.js +0 -15
  128. package/chunks/color-settings-DJFoFTip.js +0 -5
  129. package/chunks/defaults-Dtk7fg3C.js +0 -3
  130. package/chunks/handlers-C6CZ0XJA.js +0 -15399
  131. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  132. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  133. package/chunks/standalone-4MsKiqs0.js +0 -355
  134. package/chunks/standalone-B794g9pE.js +0 -1012
  135. package/chunks/standalone-BA2YXyJS.js +0 -422
  136. package/chunks/standalone-BgumbdaJ2.js +0 -357
  137. package/chunks/standalone-Blh4qejk.js +0 -689
  138. package/chunks/standalone-CXY4FpF7.js +0 -773
  139. package/chunks/standalone-DH0xTEes.js +0 -2
  140. package/chunks/standalone-DcnHjNnC.js +0 -2
  141. package/chunks/standalone-DrHdGkY7.js +0 -762
  142. package/chunks/standalone-c_rROMtx.js +0 -287
  143. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,11 +1,13 @@
1
- import { Cc as e, Tc as t, Za as n, r, ul as i, yc as a, za as o } from "./visualization-filters-D7i6oh1Z.js";
2
- import { $ as s, A as c, B as l, C as u, E as d, F as f, G as ee, H as p, I as m, J as te, K as ne, L as re, N as ie, O as ae, P as oe, Q as se, R as ce, S as le, T as h, U as ue, V as de, W as fe, X as pe, Y as me, Z as he, _ as ge, a as _e, at as ve, c as ye, ct as be, d as g, et as xe, f as Se, g as _, h as v, i as Ce, it as we, j as y, k as Te, n as Ee, nt as De, o as Oe, ot as ke, q as Ae, r as je, rt as Me, s as Ne, st as Pe, t as b, tt as Fe, u as x, v as S, w as Ie, x as Le, y as C, z as Re } from "./shared-C_2F90xq.js";
3
- import { Dm as ze, Fp as Be, Hp as Ve, Im as He, Lp as Ue, Mm as We, Nm as Ge, Pm as Ke, Sm as qe, Tm as Je, Zm as Ye, _m as Xe, gm as Ze, hm as Qe, jp as w, o_ as $e, om as et, pm as tt, sm as nt, um as rt, wm as it, zm as at, zp as ot } from "./handlers-C6CZ0XJA.js";
4
- import { n as st } from "./label-format-type-C46pzgx7.js";
5
- import { C as ct, S as T, _ as lt, b as ut, f as dt, v as ft, x as pt } from "./operations-DKQWuLL7.js";
6
- import { n as mt } from "./bar-layout-C_UgRlVl.js";
7
- import { z as E } from "zod";
8
- var D = (e) => [{
1
+ import { $c as e, Jl as t, To as n, al as r, d as i, po as a, rl as o } from "./visualization-filters-B9qik5_K.js";
2
+ import { $ as s, A as c, B as l, C as u, D as ee, F as d, G as te, H as f, I as p, J as ne, K as re, L as ie, M as m, P as ae, Q as oe, R as se, S as ce, T as h, U as le, V as ue, W as de, X as fe, Y as pe, Z as me, _ as he, a as ge, at as _e, c as ve, ct as ye, d as g, et as be, f as xe, g as _, h as v, i as Se, it as Ce, j as we, k as Te, lt as Ee, n as De, nt as Oe, o as ke, ot as Ae, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as y, tt as Ie, u as b, v as x, w as Le, x as Re, y as S, z as ze } from "./shared-DoEN9nNM.js";
3
+ import { Am as Be, Bm as Ve, Dm as He, Fp as C, Gm as Ue, Hm as We, Kp as Ge, Mm as Ke, Rm as qe, Up as Je, Vp as Ye, _m as Xe, bm as Ze, dm as Qe, ih as $e, km as et, mm as tt, p_ as nt, um as rt, xm as it, ym as at, zm as ot, zp as st } from "./handlers-CyYFSfhM.js";
4
+ import { n as ct } from "./label-format-type-C46pzgx7.js";
5
+ import { A as lt, D as ut, E as dt, M as w, N as ft, _ as pt, b as mt, g as ht, h as gt, j as _t, u as vt, w as yt } from "./operations-CgfehCad.js";
6
+ import { n as bt } from "./bar-layout-OFhxn2Go.js";
7
+ import { n as xt, t as St } from "./measure-axis-label-format-COy8U_dd.js";
8
+ import { t as Ct } from "./measure-format-default-B_kuGSzi.js";
9
+ import { z as T } from "zod";
10
+ var E = (e) => [{
9
11
  ref: `${e}Latitude`,
10
12
  fieldKey: "[Locations].[Latitude]",
11
13
  aggregation: "AVG",
@@ -15,11 +17,11 @@ var D = (e) => [{
15
17
  fieldKey: "[Locations].[Longitude]",
16
18
  aggregation: "AVG",
17
19
  role: "secondGeo"
18
- }], O = {
20
+ }], D = {
19
21
  type: "map",
20
22
  ref: "basemap",
21
23
  presentation: { mapType: "openStreetMap" }
22
- }, ht = {
24
+ }, wt = {
23
25
  type: "map",
24
26
  documentation: {
25
27
  title: "Map",
@@ -52,13 +54,13 @@ var D = (e) => [{
52
54
  ref: "location",
53
55
  fieldKey: "[Locations].[Name]"
54
56
  }],
55
- measures: D("location")
57
+ measures: E("location")
56
58
  },
57
59
  presentation: {
58
60
  color: "#2563EB",
59
61
  sizing: { size: 12 }
60
62
  }
61
- }, O]
63
+ }, D]
62
64
  },
63
65
  additionalExamples: [
64
66
  {
@@ -75,7 +77,7 @@ var D = (e) => [{
75
77
  ref: "location",
76
78
  fieldKey: "[Locations].[Name]"
77
79
  }],
78
- measures: D("density")
80
+ measures: E("density")
79
81
  },
80
82
  presentation: {
81
83
  heat: {
@@ -87,7 +89,7 @@ var D = (e) => [{
87
89
  value: 1
88
90
  }
89
91
  }
90
- }, O]
92
+ }, D]
91
93
  }
92
94
  },
93
95
  {
@@ -109,7 +111,7 @@ var D = (e) => [{
109
111
  fieldKey: "[Locations].[Destination]"
110
112
  }],
111
113
  measures: [
112
- ...D("origin"),
114
+ ...E("origin"),
113
115
  {
114
116
  ref: "destinationLatitude",
115
117
  fieldKey: "[Locations].[Destination Latitude]",
@@ -128,7 +130,7 @@ var D = (e) => [{
128
130
  useGeodesicLines: !0,
129
131
  arrow: { show: !0 }
130
132
  }
131
- }, O]
133
+ }, D]
132
134
  }
133
135
  },
134
136
  {
@@ -156,7 +158,7 @@ var D = (e) => [{
156
158
  opacity: 60,
157
159
  strokeEnabled: !0
158
160
  }
159
- }, O]
161
+ }, D]
160
162
  }
161
163
  },
162
164
  {
@@ -175,7 +177,7 @@ var D = (e) => [{
175
177
  bottomRightLongitude: 21
176
178
  },
177
179
  opacity: 60
178
- }, O],
180
+ }, D],
179
181
  view: {
180
182
  latitude: 51.5,
181
183
  longitude: 20.5,
@@ -193,29 +195,25 @@ var D = (e) => [{
193
195
  "data-labels",
194
196
  "object-settings"
195
197
  ]
196
- }, gt = (e, ...t) => e, k = {
198
+ }, Tt = (e, ...t) => e, O = {
197
199
  horsepower: "[Cars].[Horsepower]",
198
200
  latestLaunch: "[Cars].[Latest Launch]",
199
201
  manufacturer: "[Cars].[Manufacturer]",
200
202
  model: "[Cars].[Model]",
201
203
  sales: "[Cars].[Sales In Thousands]"
202
- }, A = (e, t) => ({
204
+ }, k = (e, t) => ({
203
205
  fieldKey: t,
204
206
  ref: e
205
- }), j = (e, t) => ({
207
+ }), A = (e, t) => ({
206
208
  fieldKey: t,
207
209
  ref: e
208
- }), M = (e, t = k.sales, n = "SUM") => ({
210
+ }), j = (e, t = O.sales, n = "SUM") => ({
209
211
  aggregation: n,
210
212
  fieldKey: t,
211
- format: {
212
- formatType: "number2Decimal",
213
- negativeType: "parenthesis"
214
- },
215
213
  ref: e
216
- }), N = {
214
+ }), M = {
217
215
  filters: [{
218
- fieldKey: k.manufacturer,
216
+ fieldKey: O.manufacturer,
219
217
  operator: "inList",
220
218
  values: [
221
219
  "Acura",
@@ -224,18 +222,18 @@ var D = (e) => [{
224
222
  ]
225
223
  }],
226
224
  operator: "and"
227
- }, _t = {
228
- fieldKey: k.latestLaunch,
225
+ }, Et = {
226
+ fieldKey: O.latestLaunch,
229
227
  ref: "launchMonth",
230
228
  temporalGrouping: {
231
229
  dateLevel: "month",
232
230
  mode: "level"
233
231
  }
234
- }, P = {
232
+ }, N = {
235
233
  position: "right",
236
234
  title: "Cars comparison",
237
235
  visible: !0
238
- }, F = {
236
+ }, P = {
239
237
  dimension: {
240
238
  labelsVisible: !0,
241
239
  title: "Manufacturer",
@@ -251,7 +249,7 @@ var D = (e) => [{
251
249
  title: "Horsepower",
252
250
  titleVisible: !0
253
251
  }
254
- }, vt = {
252
+ }, Dt = {
255
253
  dimension: {
256
254
  labelsVisible: !0,
257
255
  title: "Manufacturer",
@@ -267,7 +265,7 @@ var D = (e) => [{
267
265
  title: "Model",
268
266
  titleVisible: !0
269
267
  }
270
- }, yt = {
268
+ }, Ot = {
271
269
  dimension: {
272
270
  labelsVisible: !0,
273
271
  title: "Manufacturer",
@@ -278,7 +276,7 @@ var D = (e) => [{
278
276
  title: "Sales",
279
277
  titleVisible: !0
280
278
  }
281
- }, bt = {
279
+ }, kt = {
282
280
  dimension: {
283
281
  labelsVisible: !0,
284
282
  title: "Horsepower",
@@ -289,7 +287,7 @@ var D = (e) => [{
289
287
  title: "Count",
290
288
  titleVisible: !0
291
289
  }
292
- }, xt = {
290
+ }, At = {
293
291
  primaryMeasure: {
294
292
  labelsVisible: !0,
295
293
  title: "Sales",
@@ -300,7 +298,7 @@ var D = (e) => [{
300
298
  title: "Horsepower",
301
299
  titleVisible: !0
302
300
  }
303
- }, St = {
301
+ }, jt = {
304
302
  dimension: {
305
303
  labelsVisible: !0,
306
304
  title: "Measure",
@@ -311,19 +309,19 @@ var D = (e) => [{
311
309
  title: "Value",
312
310
  titleVisible: !0
313
311
  }
314
- }, I = "presentation.axes.primaryMeasure.bands shades the plot between two primary measure axis values; start and end are measure values, and the bands replace any on the base vSpec.", Ct = (e) => `Set range on ${e} to fix its min, max, or both, for example to give several charts one shared scale. To keep an auto-fitted axis anchored at zero, leave both unset and put startsAtZero inside range, not on the axis itself: "primaryMeasure": { "range": { "startsAtZero": true } }.`, L = `${Ct("a measure axis")} Set inverted on a measure axis to reverse its values, for example to put rank 1 at the top.`, wt = `${Ct("the primary measure axis")} Set inverted on the primary measure axis to reverse its values.`, R = [
312
+ }, F = "presentation.axes.primaryMeasure.bands shades the plot between two primary measure axis values; start and end are measure values, and the bands replace any on the base vSpec.", Mt = (e) => `Set range on ${e} to fix its min, max, or both, for example to give several charts one shared scale. To keep an auto-fitted axis anchored at zero, leave both unset and put startsAtZero inside range, not on the axis itself: "primaryMeasure": { "range": { "startsAtZero": true } }.`, I = `${Mt("a measure axis")} Set inverted on a measure axis to reverse its values, for example to put rank 1 at the top.`, L = `${Mt("the primary measure axis")} Set inverted on the primary measure axis to reverse its values.`, R = [
315
313
  "dimensions",
316
314
  "filters",
317
315
  "measures",
318
316
  "value-formatting"
319
- ], Tt = gt([
320
- ht,
317
+ ], Nt = Tt([
318
+ wt,
321
319
  {
322
320
  additionalExamples: [{
323
321
  definition: {
324
322
  data: {
325
- dimensions: [A("manufacturer", k.manufacturer)],
326
- measures: [M("sales")]
323
+ dimensions: [k("manufacturer", O.manufacturer)],
324
+ measures: [j("sales")]
327
325
  },
328
326
  presentation: { coloring: {
329
327
  overwrites: [{
@@ -351,8 +349,8 @@ var D = (e) => [{
351
349
  "Sorting and Top N refer to definition-local refs, not generated data-item IDs.",
352
350
  "Every dimension and measure must resolve to an available field with a compatible role.",
353
351
  "Set axis per measure to plot it against the primary or the secondary measure axis.",
352
+ F,
354
353
  I,
355
- L,
356
354
  "Set scale to log on a measure axis to draw it logarithmically, with gridlines at powers of ten. Zero and negative values are drawn at the floor of a log axis.",
357
355
  "Several measures on one dimension are drawn side by side unless presentation.layout is stacked. A second dimension is a series, stacked unless presentation.layout is groups. One dimension with one measure ignores layout.",
358
356
  "Data label placements are tried in order; inside labels sit at the end of the bar. Set dataLabels.textColor to fix the label color in every placement."
@@ -364,18 +362,18 @@ var D = (e) => [{
364
362
  example: {
365
363
  data: {
366
364
  dimensions: [{
367
- ...A("manufacturer", k.manufacturer),
365
+ ...k("manufacturer", O.manufacturer),
368
366
  showNullValues: !1
369
367
  }],
370
368
  measures: [{
371
- ...M("sales"),
369
+ ...j("sales"),
372
370
  dataLabels: {
373
371
  placements: ["outside", "inside"],
374
372
  visible: !0
375
373
  }
376
374
  }]
377
375
  },
378
- filterGroup: N,
376
+ filterGroup: M,
379
377
  limiting: {
380
378
  queryLimit: 100,
381
379
  topN: {
@@ -387,9 +385,9 @@ var D = (e) => [{
387
385
  },
388
386
  presentation: {
389
387
  axes: {
390
- ...F,
388
+ ...P,
391
389
  primaryMeasure: {
392
- ...F.primaryMeasure,
390
+ ...P.primaryMeasure,
393
391
  bands: [{
394
392
  color: "#E6E6E6",
395
393
  end: 15e4,
@@ -398,7 +396,7 @@ var D = (e) => [{
398
396
  }]
399
397
  }
400
398
  },
401
- legend: P,
399
+ legend: N,
402
400
  orientation: "vertical"
403
401
  },
404
402
  sorting: [{
@@ -436,8 +434,8 @@ var D = (e) => [{
436
434
  "Data labels apply only to bar series.",
437
435
  "Sorting refers to definition-local refs, not generated data-item IDs.",
438
436
  "Set axis per measure to plot it against the primary or the secondary measure axis. Bar series share one axis: state it on any bar measure, and every bar measure that states one must state the same axis.",
437
+ F,
439
438
  I,
440
- L,
441
439
  "Set scale to log on a measure axis to draw it logarithmically, with gridlines at powers of ten. Zero and negative values are drawn at the floor of a log axis."
442
440
  ],
443
441
  dataRequirements: ["Exactly one dimension.", "Between one and ten measures."],
@@ -446,23 +444,23 @@ var D = (e) => [{
446
444
  },
447
445
  example: {
448
446
  data: {
449
- dimensions: [A("manufacturer", k.manufacturer)],
447
+ dimensions: [k("manufacturer", O.manufacturer)],
450
448
  measures: [{
451
- ...M("sales"),
449
+ ...j("sales"),
452
450
  dataLabels: { visible: !0 },
453
451
  seriesType: "bar"
454
452
  }, {
455
- ...M("horsepower", k.horsepower, "AVG"),
453
+ ...j("horsepower", O.horsepower, "AVG"),
456
454
  axis: "secondary",
457
455
  seriesType: "line"
458
456
  }]
459
457
  },
460
- filterGroup: N,
458
+ filterGroup: M,
461
459
  limiting: { queryLimit: 100 },
462
460
  presentation: {
463
- axes: yt,
461
+ axes: Ot,
464
462
  dataLabels: { visible: !0 },
465
- legend: P,
463
+ legend: N,
466
464
  orientation: "vertical"
467
465
  },
468
466
  sorting: [{
@@ -497,13 +495,13 @@ var D = (e) => [{
497
495
  },
498
496
  example: {
499
497
  data: {
500
- dimensions: [A("manufacturer", k.manufacturer)],
501
- measures: [M("sales"), M("averageSales", k.sales, "AVG")]
498
+ dimensions: [k("manufacturer", O.manufacturer)],
499
+ measures: [j("sales"), j("averageSales", O.sales, "AVG")]
502
500
  },
503
- filterGroup: N,
501
+ filterGroup: M,
504
502
  presentation: {
505
503
  displayMode: "bar",
506
- legend: P
504
+ legend: N
507
505
  },
508
506
  type: "distribution-gauge",
509
507
  version: 1
@@ -518,20 +516,20 @@ var D = (e) => [{
518
516
  },
519
517
  {
520
518
  documentation: {
521
- constraints: ["Dimension order is significant and maps to the two dot-chart dimension roles.", wt],
519
+ constraints: ["Dimension order is significant and maps to the two dot-chart dimension roles.", L],
522
520
  dataRequirements: ["Exactly two dimensions.", "Exactly one measure."],
523
521
  summary: "Dot comparison using two categorical dimensions and one measure.",
524
522
  title: "Dot chart"
525
523
  },
526
524
  example: {
527
525
  data: {
528
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
529
- measures: [M("sales")]
526
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
527
+ measures: [j("sales")]
530
528
  },
531
- filterGroup: N,
529
+ filterGroup: M,
532
530
  presentation: {
533
- axes: yt,
534
- legend: P,
531
+ axes: Ot,
532
+ legend: N,
535
533
  orientation: "horizontal"
536
534
  },
537
535
  type: "dot",
@@ -560,13 +558,13 @@ var D = (e) => [{
560
558
  },
561
559
  example: {
562
560
  data: {
563
- dimensions: [A("manufacturer", k.manufacturer)],
564
- measures: [M("sales"), M("targetSales", k.sales, "AVG")]
561
+ dimensions: [k("manufacturer", O.manufacturer)],
562
+ measures: [j("sales"), j("targetSales", O.sales, "AVG")]
565
563
  },
566
- filterGroup: N,
564
+ filterGroup: M,
567
565
  presentation: {
568
566
  displayMode: "radial",
569
- legend: P
567
+ legend: N
570
568
  },
571
569
  type: "gauge",
572
570
  version: 1
@@ -588,14 +586,14 @@ var D = (e) => [{
588
586
  },
589
587
  example: {
590
588
  data: {
591
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
592
- measures: [M("sales"), M("horsepower", k.horsepower, "AVG")]
589
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
590
+ measures: [j("sales"), j("horsepower", O.horsepower, "AVG")]
593
591
  },
594
- filterGroup: N,
592
+ filterGroup: M,
595
593
  limiting: { queryLimit: 100 },
596
594
  presentation: {
597
- axes: vt,
598
- legend: P
595
+ axes: Dt,
596
+ legend: N
599
597
  },
600
598
  sorting: [{
601
599
  by: "sales",
@@ -618,19 +616,19 @@ var D = (e) => [{
618
616
  documentation: {
619
617
  constraints: [
620
618
  "The compiler creates the canonical generated count measure; callers do not provide measures.",
621
- I,
622
- wt
619
+ F,
620
+ L
623
621
  ],
624
622
  dataRequirements: ["Exactly one numeric dimension.", "No caller-supplied measures."],
625
623
  summary: "Distribution of a numeric field into generated bins and counts.",
626
624
  title: "Histogram"
627
625
  },
628
626
  example: {
629
- data: { dimensions: [A("horsepower", k.horsepower)] },
630
- filterGroup: N,
627
+ data: { dimensions: [k("horsepower", O.horsepower)] },
628
+ filterGroup: M,
631
629
  presentation: {
632
- axes: bt,
633
- legend: P,
630
+ axes: kt,
631
+ legend: N,
634
632
  orientation: "vertical"
635
633
  },
636
634
  type: "histogram",
@@ -652,9 +650,9 @@ var D = (e) => [{
652
650
  additionalExamples: [{
653
651
  definition: {
654
652
  data: {
655
- dimensions: [A("manufacturer", k.manufacturer)],
653
+ dimensions: [k("manufacturer", O.manufacturer)],
656
654
  measures: [{
657
- ...M("sales"),
655
+ ...j("sales"),
658
656
  dataPointShape: "circle"
659
657
  }]
660
658
  },
@@ -673,9 +671,9 @@ var D = (e) => [{
673
671
  }, {
674
672
  definition: {
675
673
  data: {
676
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
674
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
677
675
  measures: [{
678
- ...M("sales"),
676
+ ...j("sales"),
679
677
  dataPointShape: "circle"
680
678
  }]
681
679
  },
@@ -692,9 +690,10 @@ var D = (e) => [{
692
690
  documentation: {
693
691
  constraints: [
694
692
  "Each measure may select the primary or secondary axis using its axis property.",
695
- "Visible data labels require dataPointShape on every measure.",
693
+ "Clicking a point, the line near a point or an axis label selects its axis value. Set presentation.selectOnClick to false to turn this off; when it is omitted, a selectOnClick already set on the base vSpec is kept.",
694
+ "Data labels are off unless presentation.dataLabels.visible is true. Visible labels require dataPointShape on every measure.",
695
+ F,
696
696
  I,
697
- L,
698
697
  "Set scale to log on a measure axis to draw it logarithmically, with gridlines at powers of ten. Zero and negative values are drawn at the floor of a log axis.",
699
698
  "Value colors in presentation.coloring require at least two dimensions; measure color rules are not supported.",
700
699
  "For a trend over time, use a date field as the dimension with temporalGrouping, such as month, and sort by its ref in ascending order. Omit its format to show readable dates."
@@ -705,32 +704,28 @@ var D = (e) => [{
705
704
  },
706
705
  example: {
707
706
  data: {
708
- dimensions: [_t],
707
+ dimensions: [Et],
709
708
  measures: [{
710
- ...M("sales"),
709
+ ...j("sales"),
711
710
  axis: "primary",
712
711
  dataPointShape: "circle"
713
712
  }, {
714
- ...M("horsepower", k.horsepower, "AVG"),
713
+ ...j("horsepower", O.horsepower, "AVG"),
715
714
  axis: "secondary",
716
715
  dataPointShape: "square"
717
716
  }]
718
717
  },
719
- filterGroup: N,
718
+ filterGroup: M,
720
719
  limiting: { queryLimit: 100 },
721
720
  presentation: {
722
721
  axes: {
723
- ...F,
722
+ ...P,
724
723
  dimension: {
725
- ...F.dimension,
724
+ ...P.dimension,
726
725
  title: "Launch month"
727
726
  }
728
727
  },
729
- dataLabels: {
730
- density: "medium",
731
- visible: !0
732
- },
733
- legend: P,
728
+ legend: N,
734
729
  orientation: "vertical"
735
730
  },
736
731
  sorting: [{
@@ -773,11 +768,11 @@ var D = (e) => [{
773
768
  },
774
769
  example: {
775
770
  data: {
776
- dimensions: [A("manufacturer", k.manufacturer)],
777
- measures: [M("sales")]
771
+ dimensions: [k("manufacturer", O.manufacturer)],
772
+ measures: [j("sales")]
778
773
  },
779
- filterGroup: N,
780
- presentation: { legend: P },
774
+ filterGroup: M,
775
+ presentation: { legend: N },
781
776
  type: "radar",
782
777
  version: 1
783
778
  },
@@ -792,8 +787,8 @@ var D = (e) => [{
792
787
  additionalExamples: [{
793
788
  definition: {
794
789
  data: {
795
- dimensions: [A("manufacturer", k.manufacturer)],
796
- measures: [M("sales")]
790
+ dimensions: [k("manufacturer", O.manufacturer)],
791
+ measures: [j("sales")]
797
792
  },
798
793
  presentation: { coloring: { overwrites: [
799
794
  {
@@ -822,12 +817,12 @@ var D = (e) => [{
822
817
  },
823
818
  example: {
824
819
  data: {
825
- dimensions: [A("manufacturer", k.manufacturer)],
826
- measures: [M("sales")]
820
+ dimensions: [k("manufacturer", O.manufacturer)],
821
+ measures: [j("sales")]
827
822
  },
828
- filterGroup: N,
823
+ filterGroup: M,
829
824
  limiting: { queryLimit: 100 },
830
- presentation: { legend: P },
825
+ presentation: { legend: N },
831
826
  sorting: [{
832
827
  by: "sales",
833
828
  direction: "desc"
@@ -853,10 +848,10 @@ var D = (e) => [{
853
848
  },
854
849
  example: {
855
850
  data: {
856
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
857
- measures: [M("sales")]
851
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
852
+ measures: [j("sales")]
858
853
  },
859
- filterGroup: N,
854
+ filterGroup: M,
860
855
  limiting: { queryLimit: 100 },
861
856
  presentation: { layout: {
862
857
  compact: !0,
@@ -888,11 +883,11 @@ var D = (e) => [{
888
883
  },
889
884
  example: {
890
885
  data: {
891
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
892
- measures: [M("sales")]
886
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
887
+ measures: [j("sales")]
893
888
  },
894
- filterGroup: N,
895
- presentation: { legend: P },
889
+ filterGroup: M,
890
+ presentation: { legend: N },
896
891
  type: "treemap",
897
892
  version: 1
898
893
  },
@@ -907,8 +902,8 @@ var D = (e) => [{
907
902
  additionalExamples: [{
908
903
  definition: {
909
904
  data: {
910
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
911
- measures: [M("sales")]
905
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
906
+ measures: [j("sales")]
912
907
  },
913
908
  presentation: { coloring: { overwrites: [{
914
909
  color: "#CA8A04",
@@ -928,10 +923,10 @@ var D = (e) => [{
928
923
  },
929
924
  example: {
930
925
  data: {
931
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
932
- measures: [M("sales")]
926
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
927
+ measures: [j("sales")]
933
928
  },
934
- filterGroup: N,
929
+ filterGroup: M,
935
930
  type: "sankey",
936
931
  version: 1
937
932
  },
@@ -945,7 +940,7 @@ var D = (e) => [{
945
940
  "The optional second dimension receives the image role.",
946
941
  "Roles come from item order only; a ref is a label and does not select a role.",
947
942
  "With a size measure, points scale between the setPointSize and setMaxPointSize operation values.",
948
- L
943
+ I
949
944
  ],
950
945
  dataRequirements: ["One or two dimensions.", "Two or three measures."],
951
946
  summary: "Relationship chart using horizontal and vertical measures with optional size and image roles.",
@@ -953,17 +948,17 @@ var D = (e) => [{
953
948
  },
954
949
  example: {
955
950
  data: {
956
- dimensions: [A("manufacturer", k.manufacturer)],
951
+ dimensions: [k("manufacturer", O.manufacturer)],
957
952
  measures: [
958
- M("sales"),
959
- M("horsepower", k.horsepower, "AVG"),
960
- M("size", k.sales, "AVG")
953
+ j("sales"),
954
+ j("horsepower", O.horsepower, "AVG"),
955
+ j("size", O.sales, "AVG")
961
956
  ]
962
957
  },
963
- filterGroup: N,
958
+ filterGroup: M,
964
959
  presentation: {
965
- axes: xt,
966
- legend: P
960
+ axes: At,
961
+ legend: N
967
962
  },
968
963
  type: "scatter",
969
964
  version: 1
@@ -983,11 +978,11 @@ var D = (e) => [{
983
978
  additionalExamples: [{
984
979
  definition: {
985
980
  data: {
986
- dimensions: [A("manufacturer", k.manufacturer), A("model", k.model)],
987
- measures: [M("sales")],
981
+ dimensions: [k("manufacturer", O.manufacturer), k("model", O.model)],
982
+ measures: [j("sales")],
988
983
  structure: "expandable"
989
984
  },
990
- filterGroup: N,
985
+ filterGroup: M,
991
986
  limiting: { queryLimit: 100 },
992
987
  sorting: [{
993
988
  by: "sales",
@@ -1000,12 +995,12 @@ var D = (e) => [{
1000
995
  }, {
1001
996
  definition: {
1002
997
  data: {
1003
- columnDimensions: [A("model", k.model)],
1004
- measures: [M("sales")],
1005
- rowDimensions: [A("manufacturer", k.manufacturer)],
998
+ columnDimensions: [k("model", O.model)],
999
+ measures: [j("sales")],
1000
+ rowDimensions: [k("manufacturer", O.manufacturer)],
1006
1001
  structure: "pivot"
1007
1002
  },
1008
- filterGroup: N,
1003
+ filterGroup: M,
1009
1004
  limiting: { queryLimit: 100 },
1010
1005
  sorting: [{
1011
1006
  by: "sales",
@@ -1037,26 +1032,27 @@ var D = (e) => [{
1037
1032
  data: {
1038
1033
  columns: [
1039
1034
  {
1040
- ...A("manufacturer", k.manufacturer),
1035
+ ...k("manufacturer", O.manufacturer),
1041
1036
  role: "dimension"
1042
1037
  },
1043
1038
  {
1044
- ...A("model", k.model),
1039
+ ...k("model", O.model),
1045
1040
  role: "dimension"
1046
1041
  },
1047
1042
  {
1048
- ...A("latestLaunch", k.latestLaunch),
1043
+ ...k("latestLaunch", O.latestLaunch),
1049
1044
  format: { formatType: "ddmmmyyyy" },
1050
1045
  role: "dimension"
1051
1046
  },
1052
1047
  {
1053
- ...M("sales"),
1048
+ ...j("sales"),
1049
+ format: { formatType: "numberNoDecimal" },
1054
1050
  role: "measure"
1055
1051
  }
1056
1052
  ],
1057
1053
  structure: "normal"
1058
1054
  },
1059
- filterGroup: N,
1055
+ filterGroup: M,
1060
1056
  limiting: { queryLimit: 100 },
1061
1057
  presentation: {
1062
1058
  background: {
@@ -1132,8 +1128,8 @@ var D = (e) => [{
1132
1128
  constraints: [
1133
1129
  "Without a dimension, measure order defines the waterfall sequence. With one dimension, the first measure supplies the opening total, each dimension value contributes the second measure minus the first, and the second measure supplies the closing total.",
1134
1130
  "Comparison totals sum the returned rows, rather than requesting a separate aggregate total. Use two numeric measures with comparable units.",
1135
- wt,
1136
- I
1131
+ L,
1132
+ F
1137
1133
  ],
1138
1134
  dataRequirements: ["No dimensions and between one and one hundred measures, or exactly one dimension and exactly two measures."],
1139
1135
  summary: "Sequential contribution chart, or a comparison of two measures across one dimension.",
@@ -1142,8 +1138,8 @@ var D = (e) => [{
1142
1138
  additionalExamples: [{
1143
1139
  definition: {
1144
1140
  data: {
1145
- dimensions: [A("manufacturer", k.manufacturer)],
1146
- measures: [M("totalSales"), M("averageSales", k.sales, "AVG")]
1141
+ dimensions: [k("manufacturer", O.manufacturer)],
1142
+ measures: [j("totalSales"), j("averageSales", O.sales, "AVG")]
1147
1143
  },
1148
1144
  presentation: {
1149
1145
  axes: {
@@ -1165,15 +1161,15 @@ var D = (e) => [{
1165
1161
  }],
1166
1162
  example: {
1167
1163
  data: { measures: [{
1168
- ...M("sales"),
1164
+ ...j("sales"),
1169
1165
  dataLabels: { visible: !0 }
1170
1166
  }, {
1171
- ...M("horsepower", k.horsepower, "AVG"),
1167
+ ...j("horsepower", O.horsepower, "AVG"),
1172
1168
  dataLabels: { visible: !0 }
1173
1169
  }] },
1174
- filterGroup: N,
1170
+ filterGroup: M,
1175
1171
  presentation: {
1176
- axes: St,
1172
+ axes: jt,
1177
1173
  dataLabels: { visible: !0 },
1178
1174
  orientation: "vertical"
1179
1175
  },
@@ -1202,10 +1198,10 @@ var D = (e) => [{
1202
1198
  },
1203
1199
  example: {
1204
1200
  data: {
1205
- dimensions: [A("manufacturer", k.manufacturer)],
1206
- measures: [M("sales")]
1201
+ dimensions: [k("manufacturer", O.manufacturer)],
1202
+ measures: [j("sales")]
1207
1203
  },
1208
- filterGroup: N,
1204
+ filterGroup: M,
1209
1205
  type: "word-cloud",
1210
1206
  version: 1
1211
1207
  },
@@ -1220,7 +1216,7 @@ var D = (e) => [{
1220
1216
  title: "Date picker"
1221
1217
  },
1222
1218
  example: {
1223
- data: { field: j("latestLaunch", k.latestLaunch) },
1219
+ data: { field: A("latestLaunch", O.latestLaunch) },
1224
1220
  settings: {
1225
1221
  endDateLabel: "To",
1226
1222
  pickerState: "expanded",
@@ -1244,7 +1240,7 @@ var D = (e) => [{
1244
1240
  title: "Filter"
1245
1241
  },
1246
1242
  example: {
1247
- data: { field: j("manufacturer", k.manufacturer) },
1243
+ data: { field: A("manufacturer", O.manufacturer) },
1248
1244
  presentation: {
1249
1245
  mode: "listbox",
1250
1246
  quickSelect: !0,
@@ -1300,14 +1296,14 @@ var D = (e) => [{
1300
1296
  {
1301
1297
  additionalExamples: [{
1302
1298
  definition: {
1303
- data: { measure: M("sales") },
1299
+ data: { measure: j("sales") },
1304
1300
  filterGroup: {
1305
1301
  filters: [{
1306
- fieldKey: k.model,
1302
+ fieldKey: O.model,
1307
1303
  operator: "contains",
1308
1304
  value: "Sport"
1309
1305
  }, {
1310
- fieldKey: k.horsepower,
1306
+ fieldKey: O.horsepower,
1311
1307
  operator: "greaterThanOrEqualTo",
1312
1308
  value: "200"
1313
1309
  }],
@@ -1329,8 +1325,8 @@ var D = (e) => [{
1329
1325
  title: "Number"
1330
1326
  },
1331
1327
  example: {
1332
- data: { measure: M("sales") },
1333
- filterGroup: N,
1328
+ data: { measure: j("sales") },
1329
+ filterGroup: M,
1334
1330
  type: "number",
1335
1331
  version: 1
1336
1332
  },
@@ -1453,7 +1449,7 @@ var D = (e) => [{
1453
1449
  title: "Slider"
1454
1450
  },
1455
1451
  example: {
1456
- data: { field: j("horsepower", k.horsepower) },
1452
+ data: { field: A("horsepower", O.horsepower) },
1457
1453
  settings: {
1458
1454
  layout: "multi",
1459
1455
  quickSelect: !0,
@@ -1470,43 +1466,43 @@ var D = (e) => [{
1470
1466
  type: "slider"
1471
1467
  }
1472
1468
  ]), z = (e) => {
1473
- let t = Tt.find((t) => t.type === e);
1469
+ let t = Nt.find((t) => t.type === e);
1474
1470
  if (!t) throw Error(`Missing visualization definition documentation for ${e}`);
1475
1471
  return t;
1476
- }, B = (e, t) => E.toJSONSchema(e.meta({ title: t }), {
1472
+ }, B = (e, t) => T.toJSONSchema(e.meta({ title: t }), {
1477
1473
  reused: "inline",
1478
1474
  target: "draft-2020-12"
1479
1475
  }), V = {
1480
- "astrato-app-filter-bar": be,
1481
- bar: ke,
1482
- combo: ne,
1483
- dot: te,
1484
- scatter: Fe,
1485
- histogram: he,
1486
- heatMap: pe,
1487
- radar: s,
1488
- gauge: me,
1489
- "distribution-gauge": Ae,
1490
- pie: se,
1491
- tree: De,
1492
- treemap: Me,
1493
- sankey: xe,
1494
- waterfall: we,
1495
- "word-cloud": ve,
1496
- "date-picker": m,
1497
- iframe: re,
1498
- image: ce,
1499
- shape: Re,
1500
- simpleTextObject: de,
1501
- "atomic-input": f,
1502
- slider: l,
1503
- line: fe,
1504
- map: ue,
1505
- table: oe,
1506
- number: p,
1507
- filter: ee
1508
- }, Et = new Map(Object.entries(V)), Dt = (e, t = 1) => t === 1 ? Et.get(e) : void 0, Ot = () => Object.keys(V), kt = (e) => {
1509
- let t = w(e);
1476
+ "astrato-app-filter-bar": Ee,
1477
+ bar: Fe,
1478
+ combo: je,
1479
+ dot: pe,
1480
+ scatter: Oe,
1481
+ histogram: oe,
1482
+ heatMap: me,
1483
+ radar: be,
1484
+ gauge: fe,
1485
+ "distribution-gauge": ne,
1486
+ pie: s,
1487
+ tree: Ne,
1488
+ treemap: Ce,
1489
+ sankey: Ie,
1490
+ waterfall: _e,
1491
+ "word-cloud": Ae,
1492
+ "date-picker": ie,
1493
+ iframe: se,
1494
+ image: ze,
1495
+ shape: l,
1496
+ simpleTextObject: f,
1497
+ "atomic-input": p,
1498
+ slider: ue,
1499
+ line: te,
1500
+ map: de,
1501
+ table: d,
1502
+ number: le,
1503
+ filter: re
1504
+ }, Pt = new Map(Object.entries(V)), Ft = (e, t = 1) => t === 1 ? Pt.get(e) : void 0, It = () => Object.keys(V), Lt = (e) => {
1505
+ let t = C(e);
1510
1506
  if (t) return {
1511
1507
  code: "invalid_structure",
1512
1508
  message: t,
@@ -1525,22 +1521,22 @@ var D = (e) => [{
1525
1521
  path: ["version"]
1526
1522
  };
1527
1523
  let r = "type" in e ? e.type : void 0;
1528
- if (!(typeof r == "string" && Dt(r, n))) return {
1529
- allowedValues: Ot(),
1524
+ if (!(typeof r == "string" && Ft(r, n))) return {
1525
+ allowedValues: It(),
1530
1526
  code: "unsupported_visualization",
1531
1527
  message: `Visualization type "${String(r)}" is not supported.`,
1532
1528
  path: ["type"]
1533
1529
  };
1534
- }, At = (e) => {
1535
- let t = kt(e);
1530
+ }, Rt = (e) => {
1531
+ let t = Lt(e);
1536
1532
  if (t) return {
1537
1533
  issues: [t],
1538
1534
  success: !1
1539
1535
  };
1540
- let n = Dt(e.type, e.version);
1536
+ let n = Ft(e.type, e.version);
1541
1537
  if (!n) return {
1542
1538
  issues: [{
1543
- allowedValues: Ot(),
1539
+ allowedValues: It(),
1544
1540
  code: "unsupported_visualization",
1545
1541
  message: "Visualization definition descriptor is not available.",
1546
1542
  path: ["type"]
@@ -1556,31 +1552,31 @@ var D = (e) => [{
1556
1552
  issues: h(r.error, e),
1557
1553
  success: !1
1558
1554
  };
1559
- }, jt = async (e) => (await import("./app-filter-bar.compiler-CVir0wkl.js")).compileAppFilterBarVisualizationDefinition(e), Mt = async (e) => (await import("./bar.compiler-DYuFdi9J.js")).compileBarVisualizationDefinition(e), Nt = async (e) => (await import("./filter.compiler-CXeZznks.js")).compileFilterVisualizationDefinition(e), Pt = async (e) => (await import("./line.compiler-DmHpmQCC.js")).compileLineVisualizationDefinition(e), Ft = async (e) => (await import("./number.compiler-DQdg6zTy.js")).compileNumberVisualizationDefinition(e), It = async (e) => (await import("./map.compiler-Q_Y1Pvat.js")).compileMapVisualizationDefinition(e), Lt = async (e) => (await import("./table.compiler-COaHE9VD.js")).compileTableVisualizationDefinition(e), H = i(), Rt = [
1555
+ }, zt = async (e) => (await import("./app-filter-bar.compiler--T4Qz3Wu.js")).compileAppFilterBarVisualizationDefinition(e), Bt = async (e) => (await import("./bar.compiler-hWZBYYvV.js")).compileBarVisualizationDefinition(e), Vt = async (e) => (await import("./filter.compiler-DOGFweJz.js")).compileFilterVisualizationDefinition(e), Ht = async (e) => (await import("./line.compiler-B-4H55_T.js")).compileLineVisualizationDefinition(e), Ut = async (e) => (await import("./number.compiler-D7nMcEMv.js")).compileNumberVisualizationDefinition(e), Wt = async (e) => (await import("./map.compiler-Cv5V6EhF.js")).compileMapVisualizationDefinition(e), Gt = async (e) => (await import("./table.compiler-mS4UvhLT.js")).compileTableVisualizationDefinition(e), H = t(), Kt = [
1560
1556
  H.FieldType.DATE,
1561
1557
  H.FieldType.TIMESTAMP,
1562
1558
  H.FieldType.TIMESTAMP_TZ
1563
- ], zt = ["none", "inherit"], Bt = [
1559
+ ], qt = ["none", "inherit"], Jt = [
1564
1560
  "dimensions",
1565
1561
  "rowDimensions",
1566
1562
  "columnDimensions",
1567
1563
  "columns"
1568
- ], Vt = (n) => {
1569
- if (n?.kind === "field") return {
1570
- dataType: n.dataType,
1564
+ ], Yt = (e) => {
1565
+ if (e?.kind === "field") return {
1566
+ dataType: e.dataType,
1571
1567
  hasOwnFormat: !1,
1572
1568
  label: "field"
1573
1569
  };
1574
- if (n?.kind !== "dimension") return;
1575
- let [r] = ie([n]);
1570
+ if (e?.kind !== "dimension") return;
1571
+ let [t] = ae([e]);
1576
1572
  return {
1577
- dataType: t(r),
1578
- hasOwnFormat: !!e(r),
1573
+ dataType: r(t),
1574
+ hasOwnFormat: !!o(t),
1579
1575
  label: "dimension"
1580
1576
  };
1581
- }, Ht = (e) => {
1577
+ }, Xt = (e) => {
1582
1578
  let t = "data" in e ? e.data : void 0;
1583
- return Bt.flatMap((e) => {
1579
+ return Jt.flatMap((e) => {
1584
1580
  let n = t?.[e];
1585
1581
  return Array.isArray(n) ? n.flatMap((t, n) => e === "columns" && t.role !== "dimension" ? [] : [{
1586
1582
  dimension: t,
@@ -1591,9 +1587,9 @@ var D = (e) => [{
1591
1587
  ]
1592
1588
  }]) : [];
1593
1589
  });
1594
- }, Ut = (e, t) => Ht(e).flatMap(({ dimension: e, path: n }) => {
1595
- let r = e.format?.formatType, i = Vt(t.find((t) => t.fieldKey === e.fieldKey));
1596
- if (r === void 0 || !zt.includes(r) || e.temporalGrouping?.mode === "part" || i?.dataType === void 0 || !Rt.includes(i.dataType) || r === "inherit" && i.hasOwnFormat) return [];
1590
+ }, Zt = (e, t) => Xt(e).flatMap(({ dimension: e, path: n }) => {
1591
+ let r = e.format?.formatType, i = Yt(t.find((t) => t.fieldKey === e.fieldKey));
1592
+ if (r === void 0 || !qt.includes(r) || e.temporalGrouping?.mode === "part" || i?.dataType === void 0 || !Kt.includes(i.dataType) || r === "inherit" && i.hasOwnFormat) return [];
1597
1593
  let a = [
1598
1594
  ...n,
1599
1595
  "format",
@@ -1607,20 +1603,20 @@ var D = (e) => [{
1607
1603
  received: r,
1608
1604
  ref: e.ref
1609
1605
  },
1610
- message: `${Ie(a)}: ${o} such as 1672531200000 instead of dates. ${s}`,
1606
+ message: `${Le(a)}: ${o} such as 1672531200000 instead of dates. ${s}`,
1611
1607
  path: a
1612
1608
  }];
1613
- }), Wt = (e) => {
1614
- if (e.type !== "bar" || !mt(e)) return [];
1609
+ }), Qt = (e) => {
1610
+ if (e.type !== "bar" || !bt(e)) return [];
1615
1611
  let t = ["presentation", "layout"];
1616
1612
  return [{
1617
1613
  code: "inapplicable_layout",
1618
1614
  details: { received: e.presentation?.layout },
1619
- message: `${Ie(t)}: one dimension with one measure draws plain bars, so the layout is ignored. Omit layout, or add a measure or a series dimension.`,
1615
+ message: `${Le(t)}: one dimension with one measure draws plain bars, so the layout is ignored. Omit layout, or add a measure or a series dimension.`,
1620
1616
  path: t
1621
1617
  }];
1622
- }, Gt = (e, t) => [...Wt(e), ...Ut(e, t)], U = z("bar"), Kt = {
1623
- compile: Mt,
1618
+ }, $t = (e, t) => [...Qt(e), ...Zt(e, t)], U = z("bar"), en = {
1619
+ compile: Bt,
1624
1620
  documentation: U.documentation,
1625
1621
  examples: [U.example, ...(U.additionalExamples ?? []).map(({ definition: e }) => e)],
1626
1622
  jsonSchema: B(V.bar, `${U.documentation.title} definition`),
@@ -1628,8 +1624,8 @@ var D = (e) => [{
1628
1624
  supportedFeatures: U.supportedFeatures,
1629
1625
  type: "bar",
1630
1626
  version: 1
1631
- }, W = z("astrato-app-filter-bar"), qt = {
1632
- compile: jt,
1627
+ }, W = z("astrato-app-filter-bar"), tn = {
1628
+ compile: zt,
1633
1629
  documentation: W.documentation,
1634
1630
  examples: [W.example],
1635
1631
  jsonSchema: B(V["astrato-app-filter-bar"], `${W.documentation.title} definition`),
@@ -1638,179 +1634,184 @@ var D = (e) => [{
1638
1634
  type: "astrato-app-filter-bar",
1639
1635
  version: 1
1640
1636
  };
1641
- r();
1642
- var Jt = {
1637
+ i();
1638
+ var nn = {
1643
1639
  combo: {
1644
- coloringType: a.PerEachMeasure,
1640
+ coloringType: e.PerEachMeasure,
1641
+ measureAxes: pt.rangeAxes,
1645
1642
  queryLimit: !0,
1646
- schema: ne,
1643
+ schema: je,
1647
1644
  sorting: !0,
1648
1645
  type: "combo",
1649
- vSpecSchema: at
1646
+ vSpecSchema: Ue
1650
1647
  },
1651
1648
  "distribution-gauge": {
1652
- coloringType: a.PerEachMeasure,
1653
- measureRole: () => o.GAUGE_VALUE,
1654
- schema: Ae,
1649
+ coloringType: e.PerEachMeasure,
1650
+ measureRole: () => a.GAUGE_VALUE,
1651
+ schema: ne,
1655
1652
  type: "distribution-gauge",
1656
- vSpecSchema: Ge
1653
+ vSpecSchema: ot
1657
1654
  },
1658
1655
  dot: {
1659
- coloringType: a.Categorical,
1660
- schema: te,
1656
+ coloringType: e.Categorical,
1657
+ measureAxes: gt.rangeAxes,
1658
+ schema: pe,
1661
1659
  type: "dot",
1662
- vSpecSchema: We
1660
+ vSpecSchema: qe
1663
1661
  },
1664
1662
  gauge: {
1665
- coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? a.Categorical : a.PerEachMeasure,
1666
- measureRole: (e, t) => (t.data.dimensions?.length ?? 0) > 0 && e === 1 ? o.GAUGE_TARGET : o.GAUGE_VALUE,
1667
- schema: me,
1663
+ coloringType: (t) => (t.data.dimensions?.length ?? 0) > 0 ? e.Categorical : e.PerEachMeasure,
1664
+ measureRole: (e, t) => (t.data.dimensions?.length ?? 0) > 0 && e === 1 ? a.GAUGE_TARGET : a.GAUGE_VALUE,
1665
+ schema: fe,
1668
1666
  type: "gauge",
1669
- vSpecSchema: Ke
1667
+ vSpecSchema: Ve
1670
1668
  },
1671
1669
  heatMap: {
1672
- coloringType: a.Gradient,
1670
+ coloringType: e.Gradient,
1673
1671
  dimensionRole: (e) => e === 0 ? n.HEAT_MAP_HORIZONTAL : n.HEAT_MAP_VERTICAL,
1674
- measureRole: (e) => e === 0 ? o.HEAT_MAP_COLOR : o.HEAT_MAP_SIZE,
1672
+ measureRole: (e) => e === 0 ? a.HEAT_MAP_COLOR : a.HEAT_MAP_SIZE,
1675
1673
  queryLimit: !0,
1676
- schema: pe,
1674
+ schema: me,
1677
1675
  sorting: !0,
1678
1676
  type: "heatMap",
1679
- vSpecSchema: ze
1677
+ vSpecSchema: Ke
1680
1678
  },
1681
1679
  histogram: {
1682
- coloringType: a.Single,
1683
- schema: he,
1680
+ coloringType: e.Single,
1681
+ measureAxes: ut.rangeAxes,
1682
+ schema: oe,
1684
1683
  type: "histogram",
1685
- vSpecSchema: Je
1684
+ vSpecSchema: Be
1686
1685
  },
1687
1686
  pie: {
1688
- coloringType: a.Categorical,
1689
- measureRole: (e) => e === 0 ? o.PIE_CHART_SLICE : o.PIE_CHART_LENGTH,
1687
+ coloringType: e.Categorical,
1688
+ measureRole: (e) => e === 0 ? a.PIE_CHART_SLICE : a.PIE_CHART_LENGTH,
1690
1689
  queryLimit: !0,
1691
- schema: se,
1690
+ schema: s,
1692
1691
  sorting: !0,
1693
1692
  type: "pie",
1694
- vSpecSchema: Xe
1693
+ vSpecSchema: it
1695
1694
  },
1696
1695
  radar: {
1697
- conditionalColoringFallbackType: a.Single,
1698
- schema: s,
1696
+ conditionalColoringFallbackType: e.Single,
1697
+ schema: be,
1699
1698
  type: "radar",
1700
1699
  vSpecSchema: Ze
1701
1700
  },
1702
1701
  sankey: {
1703
- schema: xe,
1702
+ schema: Ie,
1704
1703
  type: "sankey",
1705
- vSpecSchema: Qe
1704
+ vSpecSchema: at
1706
1705
  },
1707
1706
  scatter: {
1708
- coloringType: a.Categorical,
1707
+ coloringType: e.Categorical,
1709
1708
  dimensionRole: (e) => e === 0 ? n.SCATTER_DIMENSION : n.SCATTER_IMAGE,
1709
+ measureAxes: vt.rangeAxes,
1710
1710
  measureRole: (e) => [
1711
- o.SCATTER_HORIZONTAL,
1712
- o.SCATTER_VERTICAL,
1713
- o.SCATTER_SIZE
1711
+ a.SCATTER_HORIZONTAL,
1712
+ a.SCATTER_VERTICAL,
1713
+ a.SCATTER_SIZE
1714
1714
  ][e],
1715
1715
  queryLimit: !0,
1716
- schema: Fe,
1716
+ schema: Oe,
1717
1717
  sorting: !0,
1718
1718
  type: "scatter",
1719
- vSpecSchema: tt
1719
+ vSpecSchema: Xe
1720
1720
  },
1721
1721
  tree: {
1722
1722
  queryLimit: !0,
1723
- schema: De,
1723
+ schema: Ne,
1724
1724
  sorting: !0,
1725
1725
  type: "tree",
1726
- vSpecSchema: Ve
1726
+ vSpecSchema: Ge
1727
1727
  },
1728
1728
  treemap: {
1729
- schema: Me,
1729
+ schema: Ce,
1730
1730
  type: "treemap",
1731
- vSpecSchema: ot
1731
+ vSpecSchema: Je
1732
1732
  },
1733
1733
  waterfall: {
1734
- schema: we,
1734
+ measureAxes: mt.rangeAxes,
1735
+ schema: _e,
1735
1736
  type: "waterfall",
1736
- vSpecSchema: Ue
1737
+ vSpecSchema: Ye
1737
1738
  },
1738
1739
  "word-cloud": {
1739
- conditionalColoringFallbackType: a.Single,
1740
- schema: ve,
1740
+ conditionalColoringFallbackType: e.Single,
1741
+ schema: Ae,
1741
1742
  type: "word-cloud",
1742
- vSpecSchema: Be
1743
+ vSpecSchema: st
1743
1744
  }
1744
- }, Yt = (e, t) => {
1745
- let n = [], r = t.presentation, i = ge(r?.axes);
1746
- if (i) return Promise.resolve({
1747
- issue: i,
1745
+ }, rn = (e, t, n) => {
1746
+ let r = [], i = t.presentation, a = he(i?.axes);
1747
+ if (a) return Promise.resolve({
1748
+ issue: a,
1748
1749
  success: !1
1749
1750
  });
1750
- r?.orientation !== void 0 && n.push({
1751
+ i?.orientation !== void 0 && r.push({
1751
1752
  name: "setOrientation",
1752
- payload: r.orientation
1753
- }), r?.legend && n.push(...Se(e.vSpec, r.legend)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
1754
- t.titleVisible !== void 0 && n.push({
1753
+ payload: i.orientation
1754
+ }), t.type === "combo" && r.push(...xt(i)), n.measureAxes && r.push(...St(i, e.input.baseVSpec, n.measureAxes)), i?.legend && r.push(...xe(e.vSpec, i.legend)), Object.entries(i?.axes ?? {}).forEach(([e, t]) => {
1755
+ t.titleVisible !== void 0 && r.push({
1755
1756
  name: "setShowAxisTitle",
1756
1757
  payload: {
1757
1758
  axisName: e,
1758
1759
  showAxisName: t.titleVisible
1759
1760
  }
1760
- }), t.title !== void 0 && n.push({
1761
+ }), t.title !== void 0 && r.push({
1761
1762
  name: "setAxisTitle",
1762
1763
  payload: {
1763
1764
  axisName: e,
1764
1765
  axisTitle: t.title
1765
1766
  }
1766
- }), t.labelsVisible !== void 0 && n.push({
1767
+ }), t.labelsVisible !== void 0 && r.push({
1767
1768
  name: "setShowAxisLabels",
1768
1769
  payload: {
1769
1770
  axisName: e,
1770
1771
  showLabels: t.labelsVisible
1771
1772
  }
1772
- }), t.ticksVisible !== void 0 && n.push({
1773
+ }), t.ticksVisible !== void 0 && r.push({
1773
1774
  name: "setShowAxisTicks",
1774
1775
  payload: {
1775
1776
  axisName: e,
1776
1777
  showAxisTicks: t.ticksVisible
1777
1778
  }
1778
- }), t.lineVisible !== void 0 && n.push({
1779
+ }), t.lineVisible !== void 0 && r.push({
1779
1780
  name: "setShowAxisLine",
1780
1781
  payload: {
1781
1782
  axisName: e,
1782
1783
  showAxisLine: t.lineVisible
1783
1784
  }
1784
- }), n.push(...ye(e, t)), "scale" in t && t.scale !== void 0 && n.push({
1785
- name: ft.SET_AXIS_SCALE,
1785
+ }), r.push(...ve(e, t)), "scale" in t && t.scale !== void 0 && r.push({
1786
+ name: dt.SET_AXIS_SCALE,
1786
1787
  payload: {
1787
1788
  axisName: e,
1788
1789
  scale: t.scale
1789
1790
  }
1790
1791
  });
1791
1792
  });
1792
- let a = r?.axes?.primaryMeasure?.bands;
1793
- return a && n.push({
1794
- name: ut.SET_MEASURE_AXIS_BANDS,
1795
- payload: { bands: a }
1796
- }), (t.data.measures ?? []).forEach((i) => {
1797
- let a = i.dataLabels ?? (t.type !== "combo" || i.seriesType === "bar" ? r?.dataLabels : void 0);
1798
- a && n.push({
1793
+ let o = i?.axes?.primaryMeasure?.bands;
1794
+ return o && r.push({
1795
+ name: lt.SET_MEASURE_AXIS_BANDS,
1796
+ payload: { bands: o }
1797
+ }), (t.data.measures ?? []).forEach((n) => {
1798
+ let a = n.dataLabels ?? (t.type !== "combo" || n.seriesType === "bar" ? i?.dataLabels : void 0);
1799
+ a && r.push({
1799
1800
  name: "setMeasureDataLabelsShow",
1800
1801
  payload: {
1801
- ...C(e.resolvedRefs[i.ref]),
1802
+ ...S(e.resolvedRefs[n.ref]),
1802
1803
  show: a.visible
1803
1804
  }
1804
1805
  });
1805
- }), v(e, n, ["presentation"]);
1806
- }, Xt = (e, t) => {
1806
+ }), v(e, r, ["presentation"]);
1807
+ }, an = (e, t) => {
1807
1808
  let n = [];
1808
1809
  if (t.type === "combo") {
1809
1810
  (t.data.measures ?? []).forEach((t) => {
1810
1811
  t.seriesType && n.push({
1811
- name: dt.SET_MEASURE_GRAPH_TYPE,
1812
+ name: ht.SET_MEASURE_GRAPH_TYPE,
1812
1813
  payload: {
1813
- ...C(e.resolvedRefs[t.ref]),
1814
+ ...S(e.resolvedRefs[t.ref]),
1814
1815
  graphType: t.seriesType
1815
1816
  }
1816
1817
  });
@@ -1818,16 +1819,16 @@ var Jt = {
1818
1819
  let r = t.data.measures ?? [], i = r.find((e) => e.seriesType === "bar"), a = r.find((e) => e.seriesType === "bar" && e.axis)?.axis;
1819
1820
  r.forEach((t) => {
1820
1821
  t.seriesType !== "bar" && t.axis && n.push({
1821
- name: lt.CHANGE_MEASURE_AXIS,
1822
+ name: yt.CHANGE_MEASURE_AXIS,
1822
1823
  payload: {
1823
- ...C(e.resolvedRefs[t.ref]),
1824
+ ...S(e.resolvedRefs[t.ref]),
1824
1825
  secondaryAxis: t.axis === "secondary"
1825
1826
  }
1826
1827
  });
1827
1828
  }), i && a && n.push({
1828
- name: lt.CHANGE_MEASURE_AXIS,
1829
+ name: yt.CHANGE_MEASURE_AXIS,
1829
1830
  payload: {
1830
- ...C(e.resolvedRefs[i.ref]),
1831
+ ...S(e.resolvedRefs[i.ref]),
1831
1832
  secondaryAxis: a === "secondary"
1832
1833
  }
1833
1834
  });
@@ -1835,34 +1836,34 @@ var Jt = {
1835
1836
  if (t.type === "gauge" || t.type === "distribution-gauge") {
1836
1837
  let e = t.type === "distribution-gauge";
1837
1838
  e && n.push({
1838
- name: pt.SET_GAUGE_COMPARISON_MODE,
1839
+ name: _t.SET_GAUGE_COMPARISON_MODE,
1839
1840
  payload: !0
1840
1841
  }), t.presentation?.displayMode && n.push({
1841
- name: e ? pt.SET_GAUGE_BAR_MODE : ct.SET_GAUGE_BAR_MODE,
1842
+ name: e ? _t.SET_GAUGE_BAR_MODE : ft.SET_GAUGE_BAR_MODE,
1842
1843
  payload: t.presentation.displayMode === "bar"
1843
1844
  }), !e && (t.data.dimensions?.length ?? 0) > 0 && (t.data.measures?.length ?? 0) > 1 && n.push({
1844
- name: ct.SET_GAUGE_TARGET_TYPE,
1845
- payload: st.Data
1845
+ name: ft.SET_GAUGE_TARGET_TYPE,
1846
+ payload: ct.Data
1846
1847
  });
1847
1848
  }
1848
1849
  if (t.type === "tree" && t.presentation?.layout) {
1849
1850
  let e = t.presentation.layout;
1850
1851
  e.compact !== void 0 && n.push({
1851
- name: T.SET_TREE_COMPACT,
1852
+ name: w.SET_TREE_COMPACT,
1852
1853
  payload: e.compact
1853
1854
  }), e.forceAutoFit !== void 0 && n.push({
1854
- name: T.SET_TREE_FORCE_AUTO_FIT,
1855
+ name: w.SET_TREE_FORCE_AUTO_FIT,
1855
1856
  payload: e.forceAutoFit
1856
1857
  }), e.direction !== void 0 && n.push({
1857
- name: T.SET_TREE_DIRECTION_ORIGIN,
1858
+ name: w.SET_TREE_DIRECTION_ORIGIN,
1858
1859
  payload: e.direction
1859
1860
  }), e.initialExpandedLevels !== void 0 && n.push({
1860
- name: T.SET_TREE_INITIAL_EXPANDED_LEVELS,
1861
+ name: w.SET_TREE_INITIAL_EXPANDED_LEVELS,
1861
1862
  payload: e.initialExpandedLevels
1862
1863
  });
1863
1864
  }
1864
1865
  return v(e, n, ["presentation"]);
1865
- }, Zt = (e, t, n) => {
1866
+ }, on = (e, t, n) => {
1866
1867
  let r = "coloring" in e.vSpec && e.vSpec.coloring !== void 0, i = t.presentation?.legend, a = !!i && Object.keys(i).length > 0 && i.visible !== !1, o = t.presentation?.coloring !== void 0, s = n.coloringType ?? (o ? n.conditionalColoringFallbackType : void 0);
1867
1868
  return !s || r || !a && !o ? Promise.resolve({
1868
1869
  state: e,
@@ -1871,8 +1872,8 @@ var Jt = {
1871
1872
  name: "setColoringType",
1872
1873
  payload: typeof s == "function" ? s(t) : s
1873
1874
  }], a ? ["presentation", "legend"] : ["presentation", "coloring"]);
1874
- }, Qt = async (e, t) => {
1875
- let n = Jt[t], r = w(e);
1875
+ }, sn = async (e, t) => {
1876
+ let n = nn[t], r = C(e);
1876
1877
  if (r) return {
1877
1878
  issues: [{
1878
1879
  code: "invalid_structure",
@@ -1892,7 +1893,7 @@ var Jt = {
1892
1893
  success: !1
1893
1894
  };
1894
1895
  let o = a.data;
1895
- if (!S(o, [
1896
+ if (!x(o, [
1896
1897
  "dimensions",
1897
1898
  "measures",
1898
1899
  "supportingMeasures",
@@ -1901,20 +1902,20 @@ var Jt = {
1901
1902
  issues: [g("non_fresh_base_vspec", ["baseVSpec"], `${t} definitions require a fresh base vSpec.`)],
1902
1903
  success: !1
1903
1904
  };
1904
- let s = i.data, l = s.data.dimensions ?? [], f = s.data.measures ?? [], ee = [...l, ...f].map((e) => e.ref), p = [
1905
- ...Te(l, e.availableFields, ["data", "dimensions"], "dimension"),
1906
- ...Te(f, e.availableFields, ["data", "measures"], "measure"),
1905
+ let s = i.data, l = s.data.dimensions ?? [], d = s.data.measures ?? [], te = [...l, ...d].map((e) => e.ref), f = [
1906
+ ...c(l, e.availableFields, ["data", "dimensions"], "dimension"),
1907
+ ...c(d, e.availableFields, ["data", "measures"], "measure"),
1907
1908
  ...u([{
1908
1909
  items: l,
1909
1910
  path: ["data", "dimensions"]
1910
1911
  }, {
1911
- items: f,
1912
+ items: d,
1912
1913
  path: ["data", "measures"]
1913
1914
  }]),
1914
- ...c(s.filterGroup, e.availableFields),
1915
- ...Le(s.sorting, ee),
1916
- ...le(s.presentation?.coloring, l.map((e) => e.ref), f.map((e) => e.ref)),
1917
- ...t === "histogram" && l[0] ? y(l[0], e.availableFields, [
1915
+ ...we(s.filterGroup, e.availableFields),
1916
+ ...Re(s.sorting, te),
1917
+ ...ce(s.presentation?.coloring, l.map((e) => e.ref), d.map((e) => e.ref)),
1918
+ ...t === "histogram" && l[0] ? m(l[0], e.availableFields, [
1918
1919
  "data",
1919
1920
  "dimensions",
1920
1921
  0
@@ -1925,21 +1926,21 @@ var Jt = {
1925
1926
  H.FieldType.REAL
1926
1927
  ], "a histogram dimension") : []
1927
1928
  ];
1928
- if (p.length > 0) return {
1929
- issues: p,
1929
+ if (f.length > 0) return {
1930
+ issues: f,
1930
1931
  success: !1
1931
1932
  };
1932
- let m = {
1933
- state: x(e, o),
1933
+ let p = {
1934
+ state: b(e, o),
1934
1935
  success: !0
1935
1936
  };
1936
1937
  for (let [e, t] of l.entries()) {
1937
- if ("issue" in m) return {
1938
- issues: [m.issue],
1938
+ if ("issue" in p) return {
1939
+ issues: [p.issue],
1939
1940
  success: !1
1940
1941
  };
1941
1942
  let r = n.dimensionRole?.(e, s);
1942
- m = await b(m.state, t, "dimension", "addDimension", {
1943
+ p = await y(p.state, t, "dimension", "addDimension", {
1943
1944
  key: t.fieldKey,
1944
1945
  ...r ? { role: r } : {}
1945
1946
  }, [
@@ -1948,41 +1949,41 @@ var Jt = {
1948
1949
  e
1949
1950
  ]);
1950
1951
  }
1951
- for (let [t, r] of f.entries()) {
1952
- if ("issue" in m) return {
1953
- issues: [m.issue],
1952
+ for (let [t, r] of d.entries()) {
1953
+ if ("issue" in p) return {
1954
+ issues: [p.issue],
1954
1955
  success: !1
1955
1956
  };
1956
1957
  let i = n.measureRole?.(t, s);
1957
- m = await b(m.state, r, "measure", "addMeasure", d(r, e.availableFields, i ? { role: i } : {}), [
1958
+ p = await y(p.state, r, "measure", "addMeasure", ee(r, e.availableFields, i ? { role: i } : {}), [
1958
1959
  "data",
1959
1960
  "measures",
1960
1961
  t
1961
1962
  ]);
1962
1963
  }
1963
- return "issue" in m || (m = await je(m.state, l, "updateDimension", ["data", "dimensions"]), "issue" in m) || (m = await Xt(m.state, s), "issue" in m) || (m = await Zt(m.state, s, n), "issue" in m) || (m = await Ne(m.state, l, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in m) || (m = await _e(m.state, l, {
1964
+ return "issue" in p || (p = await Me(p.state, l, "updateDimension", ["data", "dimensions"]), "issue" in p) || (p = await an(p.state, s), "issue" in p) || (p = await on(p.state, s, n), "issue" in p) || (p = await Pe(p.state, l, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in p) || (p = await ge(p.state, l, {
1964
1965
  formatString: "setDimensionFormatString",
1965
1966
  formatType: "setDimensionFormatType"
1966
- }, ["data", "dimensions"]), "issue" in m) || (m = await _e(m.state, f, {
1967
+ }, ["data", "dimensions"]), "issue" in p) || (p = await ge(p.state, d, {
1967
1968
  currency: "setMeasureCurrency",
1968
1969
  currencyIsPrefix: "setMeasureCurrencyIsPrefix",
1969
1970
  formatString: "setMeasureFormatString",
1970
1971
  formatType: "setMeasureFormatType",
1971
1972
  negativeType: "setMeasureNegativeType"
1972
- }, ["data", "measures"]), "issue" in m) || (m = await Ce(m.state, s.filterGroup), "issue" in m) || n.sorting && (m = await Oe(m.state, s.sorting, "changeSortOrderAndDirection", "toggleSortingItem"), "issue" in m) || n.queryLimit && s.limiting?.queryLimit !== void 0 && (m = await v(m.state, [{
1973
+ }, ["data", "measures"]), "issue" in p) || (p = await Ct(p.state, d, ["data", "measures"]), "issue" in p) || (p = await Se(p.state, s.filterGroup), "issue" in p) || n.sorting && (p = await ke(p.state, s.sorting, "changeSortOrderAndDirection", "toggleSortingItem"), "issue" in p) || n.queryLimit && s.limiting?.queryLimit !== void 0 && (p = await v(p.state, [{
1973
1974
  name: "setQueryLimit",
1974
1975
  payload: s.limiting.queryLimit
1975
- }], ["limiting"]), "issue" in m) || (m = await Yt(m.state, s), "issue" in m) ? {
1976
- issues: [m.issue],
1976
+ }], ["limiting"]), "issue" in p) || (p = await rn(p.state, s, n), "issue" in p) ? {
1977
+ issues: [p.issue],
1977
1978
  success: !1
1978
- } : (m = await Ee(m.state, s.presentation?.coloring), "issue" in m ? {
1979
- issues: [m.issue],
1979
+ } : (p = await De(p.state, s.presentation?.coloring), "issue" in p ? {
1980
+ issues: [p.issue],
1980
1981
  success: !1
1981
- } : _(m.state, n.vSpecSchema));
1982
+ } : _(p.state, n.vSpecSchema));
1982
1983
  }, G = (e) => {
1983
1984
  let t = z(e.type);
1984
1985
  return {
1985
- compile: (t) => Qt(t, e.type),
1986
+ compile: (t) => sn(t, e.type),
1986
1987
  documentation: t.documentation,
1987
1988
  examples: [t.example, ...(t.additionalExamples ?? []).map(({ definition: e }) => e)],
1988
1989
  jsonSchema: B(e.schema, `${t.documentation.title} definition`),
@@ -1991,7 +1992,7 @@ var Jt = {
1991
1992
  type: e.type,
1992
1993
  version: 1
1993
1994
  };
1994
- }, $t = [
1995
+ }, cn = [
1995
1996
  G({
1996
1997
  schema: V.combo,
1997
1998
  type: "combo"
@@ -2048,8 +2049,8 @@ var Jt = {
2048
2049
  schema: V["word-cloud"],
2049
2050
  type: "word-cloud"
2050
2051
  })
2051
- ], K = z("filter"), en = {
2052
- compile: Nt,
2052
+ ], K = z("filter"), ln = {
2053
+ compile: Vt,
2053
2054
  documentation: K.documentation,
2054
2055
  examples: [K.example],
2055
2056
  jsonSchema: B(V.filter, `${K.documentation.title} definition`),
@@ -2057,8 +2058,8 @@ var Jt = {
2057
2058
  supportedFeatures: K.supportedFeatures,
2058
2059
  type: "filter",
2059
2060
  version: 1
2060
- }, q = z("line"), tn = {
2061
- compile: Pt,
2061
+ }, q = z("line"), un = {
2062
+ compile: Ht,
2062
2063
  documentation: q.documentation,
2063
2064
  examples: [q.example, ...(q.additionalExamples ?? []).map(({ definition: e }) => e)],
2064
2065
  jsonSchema: B(V.line, `${q.documentation.title} definition`),
@@ -2066,8 +2067,8 @@ var Jt = {
2066
2067
  supportedFeatures: q.supportedFeatures,
2067
2068
  type: "line",
2068
2069
  version: 1
2069
- }, J = z("map"), nn = {
2070
- compile: It,
2070
+ }, J = z("map"), dn = {
2071
+ compile: Wt,
2071
2072
  documentation: J.documentation,
2072
2073
  examples: [J.example, ...(J.additionalExamples ?? []).map(({ definition: e }) => e)],
2073
2074
  jsonSchema: B(V.map, "Map definition"),
@@ -2075,8 +2076,8 @@ var Jt = {
2075
2076
  supportedFeatures: J.supportedFeatures,
2076
2077
  type: "map",
2077
2078
  version: 1
2078
- }, Y = z("number"), rn = {
2079
- compile: Ft,
2079
+ }, Y = z("number"), fn = {
2080
+ compile: Ut,
2080
2081
  documentation: Y.documentation,
2081
2082
  examples: [Y.example],
2082
2083
  jsonSchema: B(V.number, `${Y.documentation.title} definition`),
@@ -2087,7 +2088,7 @@ var Jt = {
2087
2088
  }, X = (e, t) => Object.entries(e).flatMap(([e, n]) => n === void 0 || !t[e] ? [] : [{
2088
2089
  name: t[e],
2089
2090
  payload: n
2090
- }]), an = {
2091
+ }]), pn = {
2091
2092
  "atomic-input": {
2092
2093
  createRequests: (e) => {
2093
2094
  let t = e.customLabel;
@@ -2105,18 +2106,18 @@ var Jt = {
2105
2106
  payload: t.text
2106
2107
  }]] : []];
2107
2108
  },
2108
- schema: f,
2109
+ schema: p,
2109
2110
  type: "atomic-input",
2110
- vSpecSchema: Ye
2111
+ vSpecSchema: $e
2111
2112
  },
2112
2113
  iframe: {
2113
2114
  createRequests: (e) => [{
2114
2115
  name: "setIframeUrl",
2115
2116
  payload: e.url
2116
2117
  }],
2117
- schema: re,
2118
+ schema: se,
2118
2119
  type: "iframe",
2119
- vSpecSchema: it
2120
+ vSpecSchema: et
2120
2121
  },
2121
2122
  image: {
2122
2123
  createRequests: (e) => X(e, {
@@ -2127,9 +2128,9 @@ var Jt = {
2127
2128
  shadow: "setImageShadow",
2128
2129
  source: "setImageSource"
2129
2130
  }),
2130
- schema: ce,
2131
+ schema: ze,
2131
2132
  type: "image",
2132
- vSpecSchema: qe
2133
+ vSpecSchema: He
2133
2134
  },
2134
2135
  shape: {
2135
2136
  createRequests: (e) => X(e, {
@@ -2147,9 +2148,9 @@ var Jt = {
2147
2148
  shape: "setShapeType",
2148
2149
  strokeColor: "setShapeBorderColor"
2149
2150
  }),
2150
- schema: Re,
2151
+ schema: l,
2151
2152
  type: "shape",
2152
- vSpecSchema: rt
2153
+ vSpecSchema: tt
2153
2154
  },
2154
2155
  simpleTextObject: {
2155
2156
  createRequests: (e) => [...e.content === void 0 ? [] : [{
@@ -2168,12 +2169,12 @@ var Jt = {
2168
2169
  textColor: "setTextColor",
2169
2170
  wordWrap: "setTextWordWrap"
2170
2171
  })],
2171
- schema: de,
2172
+ schema: f,
2172
2173
  type: "simpleTextObject",
2173
- vSpecSchema: nt
2174
+ vSpecSchema: Qe
2174
2175
  }
2175
2176
  }, Z = async (e, t) => {
2176
- let n = an[t], r = w(e);
2177
+ let n = pn[t], r = C(e);
2177
2178
  if (r) return {
2178
2179
  issues: [{
2179
2180
  code: "invalid_structure",
@@ -2192,13 +2193,13 @@ var Jt = {
2192
2193
  issues: [g("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
2193
2194
  success: !1
2194
2195
  };
2195
- let o = x(e, a.data), s = i.data.settings, c = await v(o, n.createRequests(s), ["settings"]);
2196
+ let o = b(e, a.data), s = i.data.settings, c = await v(o, n.createRequests(s), ["settings"]);
2196
2197
  return "issue" in c ? {
2197
2198
  issues: [c.issue],
2198
2199
  success: !1
2199
2200
  } : _(c.state, n.vSpecSchema);
2200
- }, on = async (e) => {
2201
- let t = w(e);
2201
+ }, mn = async (e) => {
2202
+ let t = C(e);
2202
2203
  if (t) return {
2203
2204
  issues: [{
2204
2205
  code: "invalid_structure",
@@ -2207,22 +2208,22 @@ var Jt = {
2207
2208
  }],
2208
2209
  success: !1
2209
2210
  };
2210
- let n = m.safeParse(e.definition);
2211
+ let n = ie.safeParse(e.definition);
2211
2212
  if (!n.success) return {
2212
2213
  issues: h(n.error, e.definition),
2213
2214
  success: !1
2214
2215
  };
2215
- let r = He.safeParse(e.baseVSpec);
2216
+ let r = We.safeParse(e.baseVSpec);
2216
2217
  if (!r.success) return {
2217
2218
  issues: [g("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
2218
2219
  success: !1
2219
2220
  };
2220
2221
  let i = r.data;
2221
- if (!S(i, ["dimensions", "measures"])) return {
2222
+ if (!x(i, ["dimensions", "measures"])) return {
2222
2223
  issues: [g("non_fresh_base_vspec", ["baseVSpec"], "Date-picker definitions require a fresh vSpec.")],
2223
2224
  success: !1
2224
2225
  };
2225
- let a = n.data, o = [...ae(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...y(a.data.field, e.availableFields, ["data", "field"], [
2226
+ let a = n.data, o = [...Te(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...m(a.data.field, e.availableFields, ["data", "field"], [
2226
2227
  H.FieldType.DATE,
2227
2228
  H.FieldType.TIMESTAMP,
2228
2229
  H.FieldType.TIMESTAMP_TZ
@@ -2231,7 +2232,7 @@ var Jt = {
2231
2232
  issues: o,
2232
2233
  success: !1
2233
2234
  };
2234
- let s = await b(x(e, i), a.data.field, "dimension", "addDatePickerDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
2235
+ let s = await y(b(e, i), a.data.field, "dimension", "addDatePickerDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
2235
2236
  if ("issue" in s) return {
2236
2237
  issues: [s.issue],
2237
2238
  success: !1
@@ -2252,9 +2253,9 @@ var Jt = {
2252
2253
  }), ["settings"]), "issue" in s ? {
2253
2254
  issues: [s.issue],
2254
2255
  success: !1
2255
- } : _(s.state, He);
2256
- }, sn = async (e) => {
2257
- let t = w(e);
2256
+ } : _(s.state, We);
2257
+ }, hn = async (e) => {
2258
+ let t = C(e);
2258
2259
  if (t) return {
2259
2260
  issues: [{
2260
2261
  code: "invalid_structure",
@@ -2263,22 +2264,22 @@ var Jt = {
2263
2264
  }],
2264
2265
  success: !1
2265
2266
  };
2266
- let n = l.safeParse(e.definition);
2267
+ let n = ue.safeParse(e.definition);
2267
2268
  if (!n.success) return {
2268
2269
  issues: h(n.error, e.definition),
2269
2270
  success: !1
2270
2271
  };
2271
- let r = et.safeParse(e.baseVSpec);
2272
+ let r = rt.safeParse(e.baseVSpec);
2272
2273
  if (!r.success) return {
2273
2274
  issues: [g("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
2274
2275
  success: !1
2275
2276
  };
2276
2277
  let i = r.data;
2277
- if (!S(i, ["dimensions", "measures"])) return {
2278
+ if (!x(i, ["dimensions", "measures"])) return {
2278
2279
  issues: [g("non_fresh_base_vspec", ["baseVSpec"], "Slider definitions require a fresh vSpec.")],
2279
2280
  success: !1
2280
2281
  };
2281
- let a = n.data, o = [...ae(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...y(a.data.field, e.availableFields, ["data", "field"], [
2282
+ let a = n.data, o = [...Te(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...m(a.data.field, e.availableFields, ["data", "field"], [
2282
2283
  H.FieldType.DATE,
2283
2284
  H.FieldType.DECIMAL,
2284
2285
  H.FieldType.FLOAT,
@@ -2291,7 +2292,7 @@ var Jt = {
2291
2292
  issues: o,
2292
2293
  success: !1
2293
2294
  };
2294
- let s = await b(x(e, i), a.data.field, "dimension", "addSliderDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
2295
+ let s = await y(b(e, i), a.data.field, "dimension", "addSliderDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
2295
2296
  if ("issue" in s) return {
2296
2297
  issues: [s.issue],
2297
2298
  success: !1
@@ -2308,7 +2309,7 @@ var Jt = {
2308
2309
  })], ["settings"]), "issue" in s ? {
2309
2310
  issues: [s.issue],
2310
2311
  success: !1
2311
- } : _(s.state, et);
2312
+ } : _(s.state, rt);
2312
2313
  }, Q = (e) => {
2313
2314
  let t = z(e.type);
2314
2315
  return {
@@ -2321,9 +2322,9 @@ var Jt = {
2321
2322
  type: e.type,
2322
2323
  version: 1
2323
2324
  };
2324
- }, cn = [
2325
+ }, gn = [
2325
2326
  Q({
2326
- compile: on,
2327
+ compile: mn,
2327
2328
  schema: V["date-picker"],
2328
2329
  type: "date-picker"
2329
2330
  }),
@@ -2353,12 +2354,12 @@ var Jt = {
2353
2354
  type: "atomic-input"
2354
2355
  }),
2355
2356
  Q({
2356
- compile: sn,
2357
+ compile: hn,
2357
2358
  schema: V.slider,
2358
2359
  type: "slider"
2359
2360
  })
2360
- ], $ = z("table"), ln = {
2361
- compile: Lt,
2361
+ ], $ = z("table"), _n = {
2362
+ compile: Gt,
2362
2363
  documentation: $.documentation,
2363
2364
  examples: [$.example, ...($.additionalExamples ?? []).map(({ definition: e }) => e)],
2364
2365
  jsonSchema: B(V.table, `${$.documentation.title} definition`),
@@ -2366,25 +2367,25 @@ var Jt = {
2366
2367
  supportedFeatures: $.supportedFeatures,
2367
2368
  type: "table",
2368
2369
  version: 1
2369
- }, un = (e, t) => `${t}:${e}`, dn = [
2370
- qt,
2371
- Kt,
2372
- ...$t,
2373
- ...cn,
2370
+ }, vn = (e, t) => `${t}:${e}`, yn = [
2374
2371
  tn,
2375
- nn,
2376
- ln,
2377
- rn,
2378
- en
2379
- ], fn = new Map(dn.map((e) => [un(e.type, e.version), e])), pn = (e, t = 1) => fn.get(un(e, t)), mn = () => [...fn.values()].map(({ documentation: e, examples: t, jsonSchema: n, supportedFeatures: r, type: i, version: a }) => ({
2372
+ en,
2373
+ ...cn,
2374
+ ...gn,
2375
+ un,
2376
+ dn,
2377
+ _n,
2378
+ fn,
2379
+ ln
2380
+ ], bn = new Map(yn.map((e) => [vn(e.type, e.version), e])), xn = (e, t = 1) => bn.get(vn(e, t)), Sn = () => [...bn.values()].map(({ documentation: e, examples: t, jsonSchema: n, supportedFeatures: r, type: i, version: a }) => ({
2380
2381
  documentation: e,
2381
2382
  examples: t,
2382
2383
  jsonSchema: n,
2383
2384
  supportedFeatures: r,
2384
2385
  type: i,
2385
2386
  version: a
2386
- })), hn = async (e) => {
2387
- let t = w(e);
2387
+ })), Cn = async (e) => {
2388
+ let t = C(e);
2388
2389
  if (t) return {
2389
2390
  issues: [{
2390
2391
  code: "invalid_structure",
@@ -2393,12 +2394,12 @@ var Jt = {
2393
2394
  }],
2394
2395
  success: !1
2395
2396
  };
2396
- let n = kt(e.definition);
2397
+ let n = Lt(e.definition);
2397
2398
  if (n) return {
2398
2399
  issues: [n],
2399
2400
  success: !1
2400
2401
  };
2401
- let r = e.definition, i = pn(r.type, r.version), a = E.array(Pe).safeParse(e.availableFields);
2402
+ let r = e.definition, i = xn(r.type, r.version), a = T.array(ye).safeParse(e.availableFields);
2402
2403
  if (!a.success) return {
2403
2404
  issues: h(a.error, e.availableFields, ["availableFields"]),
2404
2405
  success: !1
@@ -2420,14 +2421,14 @@ var Jt = {
2420
2421
  issues: s,
2421
2422
  success: !1
2422
2423
  };
2423
- let c = ie(a.data), l = E.array($e).safeParse(c);
2424
+ let c = ae(a.data), l = T.array(nt).safeParse(c);
2424
2425
  if (!l.success) return {
2425
2426
  issues: h(l.error, c, ["availableFields"]),
2426
2427
  success: !1
2427
2428
  };
2428
2429
  if (!i) return {
2429
2430
  issues: [{
2430
- allowedValues: Ot(),
2431
+ allowedValues: It(),
2431
2432
  code: "unsupported_visualization",
2432
2433
  message: "Visualization definition descriptor is not available.",
2433
2434
  path: ["type"]
@@ -2439,10 +2440,10 @@ var Jt = {
2439
2440
  availableFields: a.data
2440
2441
  });
2441
2442
  if (!u.success) return u;
2442
- let d = Gt(r, a.data);
2443
- return d.length > 0 ? {
2443
+ let ee = $t(r, a.data);
2444
+ return ee.length > 0 ? {
2444
2445
  ...u,
2445
- warnings: d
2446
+ warnings: ee
2446
2447
  } : u;
2447
2448
  };
2448
- export { At as i, pn as n, mn as r, hn as t };
2449
+ export { Rt as i, xn as n, Sn as r, Cn as t };