@astrato-io/visualizations 0.10.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,9 +1,11 @@
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";
1
+ import { Ac as e, Ec as t, Mc as n, Wa as r, bl as i, no as a, r as o } from "./visualization-filters-BwS0xUqs.js";
2
+ import { $ as s, A as c, B as l, C as u, D as d, F as f, G as ee, H as p, I as m, J as te, K as ne, L as re, M as h, P as ie, Q as ae, R as oe, S as se, T as g, U as ce, V as le, W as ue, X as de, Y as fe, Z as pe, _ as me, a as he, at as ge, c as _e, ct as ve, d as _, et as ye, f as be, g as v, h as y, i as xe, it as Se, j as Ce, k as we, lt 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-DyqxOie0.js";
3
+ import { $m as ze, Dm as Be, Em as Ve, Fm as He, Im as Ue, Lp as We, Np as w, Pm as Ge, Rm as Ke, Vm as qe, Vp as Je, Wp as Ye, _m as Xe, c_ as Ze, cm as Qe, fm as $e, hm as et, km as tt, lm as nt, vm as rt, wm as it, ym as at, zp as ot } from "./handlers-C63NVo7i.js";
4
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";
5
+ import { C as T, S as ct, _ as lt, f as ut, w as dt, x as ft, y as pt } from "./operations-COl9wgqi.js";
6
+ import { n as mt } from "./bar-layout-BNou0dZF.js";
7
+ import { t as ht } from "./category-axis-D1OVyMrr.js";
8
+ import { t as gt } from "./measure-format-default-B6ghxih7.js";
7
9
  import { z as E } from "zod";
8
10
  var D = (e) => [{
9
11
  ref: `${e}Latitude`,
@@ -19,7 +21,7 @@ var D = (e) => [{
19
21
  type: "map",
20
22
  ref: "basemap",
21
23
  presentation: { mapType: "openStreetMap" }
22
- }, ht = {
24
+ }, _t = {
23
25
  type: "map",
24
26
  documentation: {
25
27
  title: "Map",
@@ -193,7 +195,7 @@ var D = (e) => [{
193
195
  "data-labels",
194
196
  "object-settings"
195
197
  ]
196
- }, gt = (e, ...t) => e, k = {
198
+ }, vt = (e, ...t) => e, k = {
197
199
  horsepower: "[Cars].[Horsepower]",
198
200
  latestLaunch: "[Cars].[Latest Launch]",
199
201
  manufacturer: "[Cars].[Manufacturer]",
@@ -208,10 +210,6 @@ var D = (e) => [{
208
210
  }), M = (e, t = k.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
214
  }), N = {
217
215
  filters: [{
@@ -224,7 +222,7 @@ var D = (e) => [{
224
222
  ]
225
223
  }],
226
224
  operator: "and"
227
- }, _t = {
225
+ }, yt = {
228
226
  fieldKey: k.latestLaunch,
229
227
  ref: "launchMonth",
230
228
  temporalGrouping: {
@@ -251,7 +249,7 @@ var D = (e) => [{
251
249
  title: "Horsepower",
252
250
  titleVisible: !0
253
251
  }
254
- }, vt = {
252
+ }, bt = {
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
+ }, xt = {
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
+ }, St = {
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
+ }, Ct = {
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
+ }, wt = {
304
302
  dimension: {
305
303
  labelsVisible: !0,
306
304
  title: "Measure",
@@ -311,13 +309,13 @@ 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
+ }, 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.", Tt = (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 = `${Tt("a measure axis")} Set inverted on a measure axis to reverse its values, for example to put rank 1 at the top.`, Et = `${Tt("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
+ ], Dt = vt([
318
+ _t,
321
319
  {
322
320
  additionalExamples: [{
323
321
  definition: {
@@ -460,7 +458,7 @@ var D = (e) => [{
460
458
  filterGroup: N,
461
459
  limiting: { queryLimit: 100 },
462
460
  presentation: {
463
- axes: yt,
461
+ axes: xt,
464
462
  dataLabels: { visible: !0 },
465
463
  legend: P,
466
464
  orientation: "vertical"
@@ -518,7 +516,7 @@ 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.", Et],
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"
@@ -530,7 +528,7 @@ var D = (e) => [{
530
528
  },
531
529
  filterGroup: N,
532
530
  presentation: {
533
- axes: yt,
531
+ axes: xt,
534
532
  legend: P,
535
533
  orientation: "horizontal"
536
534
  },
@@ -594,7 +592,7 @@ var D = (e) => [{
594
592
  filterGroup: N,
595
593
  limiting: { queryLimit: 100 },
596
594
  presentation: {
597
- axes: vt,
595
+ axes: bt,
598
596
  legend: P
599
597
  },
600
598
  sorting: [{
@@ -619,7 +617,7 @@ var D = (e) => [{
619
617
  constraints: [
620
618
  "The compiler creates the canonical generated count measure; callers do not provide measures.",
621
619
  I,
622
- wt
620
+ Et
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.",
@@ -629,7 +627,7 @@ var D = (e) => [{
629
627
  data: { dimensions: [A("horsepower", k.horsepower)] },
630
628
  filterGroup: N,
631
629
  presentation: {
632
- axes: bt,
630
+ axes: St,
633
631
  legend: P,
634
632
  orientation: "vertical"
635
633
  },
@@ -692,7 +690,7 @@ 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
+ "Data labels are off unless presentation.dataLabels.visible is true. Visible labels require dataPointShape on every measure.",
696
694
  I,
697
695
  L,
698
696
  "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.",
@@ -705,7 +703,7 @@ var D = (e) => [{
705
703
  },
706
704
  example: {
707
705
  data: {
708
- dimensions: [_t],
706
+ dimensions: [yt],
709
707
  measures: [{
710
708
  ...M("sales"),
711
709
  axis: "primary",
@@ -726,10 +724,6 @@ var D = (e) => [{
726
724
  title: "Launch month"
727
725
  }
728
726
  },
729
- dataLabels: {
730
- density: "medium",
731
- visible: !0
732
- },
733
727
  legend: P,
734
728
  orientation: "vertical"
735
729
  },
@@ -962,7 +956,7 @@ var D = (e) => [{
962
956
  },
963
957
  filterGroup: N,
964
958
  presentation: {
965
- axes: xt,
959
+ axes: Ct,
966
960
  legend: P
967
961
  },
968
962
  type: "scatter",
@@ -1051,6 +1045,7 @@ var D = (e) => [{
1051
1045
  },
1052
1046
  {
1053
1047
  ...M("sales"),
1048
+ format: { formatType: "numberNoDecimal" },
1054
1049
  role: "measure"
1055
1050
  }
1056
1051
  ],
@@ -1132,7 +1127,7 @@ var D = (e) => [{
1132
1127
  constraints: [
1133
1128
  "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
1129
  "Comparison totals sum the returned rows, rather than requesting a separate aggregate total. Use two numeric measures with comparable units.",
1135
- wt,
1130
+ Et,
1136
1131
  I
1137
1132
  ],
1138
1133
  dataRequirements: ["No dimensions and between one and one hundred measures, or exactly one dimension and exactly two measures."],
@@ -1173,7 +1168,7 @@ var D = (e) => [{
1173
1168
  }] },
1174
1169
  filterGroup: N,
1175
1170
  presentation: {
1176
- axes: St,
1171
+ axes: wt,
1177
1172
  dataLabels: { visible: !0 },
1178
1173
  orientation: "vertical"
1179
1174
  },
@@ -1470,42 +1465,42 @@ var D = (e) => [{
1470
1465
  type: "slider"
1471
1466
  }
1472
1467
  ]), z = (e) => {
1473
- let t = Tt.find((t) => t.type === e);
1468
+ let t = Dt.find((t) => t.type === e);
1474
1469
  if (!t) throw Error(`Missing visualization definition documentation for ${e}`);
1475
1470
  return t;
1476
1471
  }, B = (e, t) => E.toJSONSchema(e.meta({ title: t }), {
1477
1472
  reused: "inline",
1478
1473
  target: "draft-2020-12"
1479
1474
  }), V = {
1480
- "astrato-app-filter-bar": be,
1481
- bar: ke,
1482
- combo: ne,
1483
- dot: te,
1484
- scatter: Fe,
1485
- histogram: he,
1475
+ "astrato-app-filter-bar": Te,
1476
+ bar: Pe,
1477
+ combo: Ae,
1478
+ dot: fe,
1479
+ scatter: De,
1480
+ histogram: ae,
1486
1481
  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,
1482
+ radar: ye,
1483
+ gauge: de,
1484
+ "distribution-gauge": te,
1485
+ pie: s,
1486
+ tree: Me,
1487
+ treemap: Se,
1488
+ sankey: Fe,
1489
+ waterfall: ge,
1490
+ "word-cloud": ke,
1491
+ "date-picker": re,
1492
+ iframe: oe,
1493
+ image: Re,
1494
+ shape: l,
1495
+ simpleTextObject: p,
1496
+ "atomic-input": m,
1497
+ slider: le,
1498
+ line: ee,
1504
1499
  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) => {
1500
+ table: f,
1501
+ number: ce,
1502
+ filter: ne
1503
+ }, Ot = new Map(Object.entries(V)), kt = (e, t = 1) => t === 1 ? Ot.get(e) : void 0, At = () => Object.keys(V), jt = (e) => {
1509
1504
  let t = w(e);
1510
1505
  if (t) return {
1511
1506
  code: "invalid_structure",
@@ -1525,22 +1520,22 @@ var D = (e) => [{
1525
1520
  path: ["version"]
1526
1521
  };
1527
1522
  let r = "type" in e ? e.type : void 0;
1528
- if (!(typeof r == "string" && Dt(r, n))) return {
1529
- allowedValues: Ot(),
1523
+ if (!(typeof r == "string" && kt(r, n))) return {
1524
+ allowedValues: At(),
1530
1525
  code: "unsupported_visualization",
1531
1526
  message: `Visualization type "${String(r)}" is not supported.`,
1532
1527
  path: ["type"]
1533
1528
  };
1534
- }, At = (e) => {
1535
- let t = kt(e);
1529
+ }, Mt = (e) => {
1530
+ let t = jt(e);
1536
1531
  if (t) return {
1537
1532
  issues: [t],
1538
1533
  success: !1
1539
1534
  };
1540
- let n = Dt(e.type, e.version);
1535
+ let n = kt(e.type, e.version);
1541
1536
  if (!n) return {
1542
1537
  issues: [{
1543
- allowedValues: Ot(),
1538
+ allowedValues: At(),
1544
1539
  code: "unsupported_visualization",
1545
1540
  message: "Visualization definition descriptor is not available.",
1546
1541
  path: ["type"]
@@ -1553,34 +1548,34 @@ var D = (e) => [{
1553
1548
  issues: [],
1554
1549
  success: !0
1555
1550
  } : {
1556
- issues: h(r.error, e),
1551
+ issues: g(r.error, e),
1557
1552
  success: !1
1558
1553
  };
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 = [
1554
+ }, Nt = async (e) => (await import("./app-filter-bar.compiler-BY5-T16I.js")).compileAppFilterBarVisualizationDefinition(e), Pt = async (e) => (await import("./bar.compiler-BkhO7sDd.js")).compileBarVisualizationDefinition(e), Ft = async (e) => (await import("./filter.compiler-CI7dDNM1.js")).compileFilterVisualizationDefinition(e), It = async (e) => (await import("./line.compiler-DCv3h42f.js")).compileLineVisualizationDefinition(e), Lt = async (e) => (await import("./number.compiler-kV4lobCZ.js")).compileNumberVisualizationDefinition(e), Rt = async (e) => (await import("./map.compiler-CRO6XpdI.js")).compileMapVisualizationDefinition(e), zt = async (e) => (await import("./table.compiler-CMH_dtYs.js")).compileTableVisualizationDefinition(e), H = i(), Bt = [
1560
1555
  H.FieldType.DATE,
1561
1556
  H.FieldType.TIMESTAMP,
1562
1557
  H.FieldType.TIMESTAMP_TZ
1563
- ], zt = ["none", "inherit"], Bt = [
1558
+ ], Vt = ["none", "inherit"], Ht = [
1564
1559
  "dimensions",
1565
1560
  "rowDimensions",
1566
1561
  "columnDimensions",
1567
1562
  "columns"
1568
- ], Vt = (n) => {
1569
- if (n?.kind === "field") return {
1570
- dataType: n.dataType,
1563
+ ], Ut = (t) => {
1564
+ if (t?.kind === "field") return {
1565
+ dataType: t.dataType,
1571
1566
  hasOwnFormat: !1,
1572
1567
  label: "field"
1573
1568
  };
1574
- if (n?.kind !== "dimension") return;
1575
- let [r] = ie([n]);
1569
+ if (t?.kind !== "dimension") return;
1570
+ let [r] = ie([t]);
1576
1571
  return {
1577
- dataType: t(r),
1572
+ dataType: n(r),
1578
1573
  hasOwnFormat: !!e(r),
1579
1574
  label: "dimension"
1580
1575
  };
1581
- }, Ht = (e) => {
1576
+ }, Wt = (e) => {
1582
1577
  let t = "data" in e ? e.data : void 0;
1583
- return Bt.flatMap((e) => {
1578
+ return Ht.flatMap((e) => {
1584
1579
  let n = t?.[e];
1585
1580
  return Array.isArray(n) ? n.flatMap((t, n) => e === "columns" && t.role !== "dimension" ? [] : [{
1586
1581
  dimension: t,
@@ -1591,9 +1586,9 @@ var D = (e) => [{
1591
1586
  ]
1592
1587
  }]) : [];
1593
1588
  });
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 [];
1589
+ }, Gt = (e, t) => Wt(e).flatMap(({ dimension: e, path: n }) => {
1590
+ let r = e.format?.formatType, i = Ut(t.find((t) => t.fieldKey === e.fieldKey));
1591
+ if (r === void 0 || !Vt.includes(r) || e.temporalGrouping?.mode === "part" || i?.dataType === void 0 || !Bt.includes(i.dataType) || r === "inherit" && i.hasOwnFormat) return [];
1597
1592
  let a = [
1598
1593
  ...n,
1599
1594
  "format",
@@ -1610,7 +1605,7 @@ var D = (e) => [{
1610
1605
  message: `${Ie(a)}: ${o} such as 1672531200000 instead of dates. ${s}`,
1611
1606
  path: a
1612
1607
  }];
1613
- }), Wt = (e) => {
1608
+ }), Kt = (e) => {
1614
1609
  if (e.type !== "bar" || !mt(e)) return [];
1615
1610
  let t = ["presentation", "layout"];
1616
1611
  return [{
@@ -1619,8 +1614,8 @@ var D = (e) => [{
1619
1614
  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.`,
1620
1615
  path: t
1621
1616
  }];
1622
- }, Gt = (e, t) => [...Wt(e), ...Ut(e, t)], U = z("bar"), Kt = {
1623
- compile: Mt,
1617
+ }, qt = (e, t) => [...Kt(e), ...Gt(e, t)], U = z("bar"), Jt = {
1618
+ compile: Pt,
1624
1619
  documentation: U.documentation,
1625
1620
  examples: [U.example, ...(U.additionalExamples ?? []).map(({ definition: e }) => e)],
1626
1621
  jsonSchema: B(V.bar, `${U.documentation.title} definition`),
@@ -1628,8 +1623,8 @@ var D = (e) => [{
1628
1623
  supportedFeatures: U.supportedFeatures,
1629
1624
  type: "bar",
1630
1625
  version: 1
1631
- }, W = z("astrato-app-filter-bar"), qt = {
1632
- compile: jt,
1626
+ }, W = z("astrato-app-filter-bar"), Yt = {
1627
+ compile: Nt,
1633
1628
  documentation: W.documentation,
1634
1629
  examples: [W.example],
1635
1630
  jsonSchema: B(V["astrato-app-filter-bar"], `${W.documentation.title} definition`),
@@ -1638,111 +1633,111 @@ var D = (e) => [{
1638
1633
  type: "astrato-app-filter-bar",
1639
1634
  version: 1
1640
1635
  };
1641
- r();
1642
- var Jt = {
1636
+ o();
1637
+ var Xt = {
1643
1638
  combo: {
1644
- coloringType: a.PerEachMeasure,
1639
+ coloringType: t.PerEachMeasure,
1645
1640
  queryLimit: !0,
1646
- schema: ne,
1641
+ schema: Ae,
1647
1642
  sorting: !0,
1648
1643
  type: "combo",
1649
- vSpecSchema: at
1644
+ vSpecSchema: qe
1650
1645
  },
1651
1646
  "distribution-gauge": {
1652
- coloringType: a.PerEachMeasure,
1653
- measureRole: () => o.GAUGE_VALUE,
1654
- schema: Ae,
1647
+ coloringType: t.PerEachMeasure,
1648
+ measureRole: () => r.GAUGE_VALUE,
1649
+ schema: te,
1655
1650
  type: "distribution-gauge",
1656
- vSpecSchema: Ge
1651
+ vSpecSchema: He
1657
1652
  },
1658
1653
  dot: {
1659
- coloringType: a.Categorical,
1660
- schema: te,
1654
+ coloringType: t.Categorical,
1655
+ schema: fe,
1661
1656
  type: "dot",
1662
- vSpecSchema: We
1657
+ vSpecSchema: Ge
1663
1658
  },
1664
1659
  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,
1660
+ coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? t.Categorical : t.PerEachMeasure,
1661
+ measureRole: (e, t) => (t.data.dimensions?.length ?? 0) > 0 && e === 1 ? r.GAUGE_TARGET : r.GAUGE_VALUE,
1662
+ schema: de,
1668
1663
  type: "gauge",
1669
- vSpecSchema: Ke
1664
+ vSpecSchema: Ue
1670
1665
  },
1671
1666
  heatMap: {
1672
- coloringType: a.Gradient,
1673
- 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,
1667
+ coloringType: t.Gradient,
1668
+ dimensionRole: (e) => e === 0 ? a.HEAT_MAP_HORIZONTAL : a.HEAT_MAP_VERTICAL,
1669
+ measureRole: (e) => e === 0 ? r.HEAT_MAP_COLOR : r.HEAT_MAP_SIZE,
1675
1670
  queryLimit: !0,
1676
1671
  schema: pe,
1677
1672
  sorting: !0,
1678
1673
  type: "heatMap",
1679
- vSpecSchema: ze
1674
+ vSpecSchema: tt
1680
1675
  },
1681
1676
  histogram: {
1682
- coloringType: a.Single,
1683
- schema: he,
1677
+ coloringType: t.Single,
1678
+ schema: ae,
1684
1679
  type: "histogram",
1685
- vSpecSchema: Je
1680
+ vSpecSchema: Be
1686
1681
  },
1687
1682
  pie: {
1688
- coloringType: a.Categorical,
1689
- measureRole: (e) => e === 0 ? o.PIE_CHART_SLICE : o.PIE_CHART_LENGTH,
1683
+ coloringType: t.Categorical,
1684
+ measureRole: (e) => e === 0 ? r.PIE_CHART_SLICE : r.PIE_CHART_LENGTH,
1690
1685
  queryLimit: !0,
1691
- schema: se,
1686
+ schema: s,
1692
1687
  sorting: !0,
1693
1688
  type: "pie",
1694
- vSpecSchema: Xe
1689
+ vSpecSchema: at
1695
1690
  },
1696
1691
  radar: {
1697
- conditionalColoringFallbackType: a.Single,
1698
- schema: s,
1692
+ conditionalColoringFallbackType: t.Single,
1693
+ schema: ye,
1699
1694
  type: "radar",
1700
- vSpecSchema: Ze
1695
+ vSpecSchema: rt
1701
1696
  },
1702
1697
  sankey: {
1703
- schema: xe,
1698
+ schema: Fe,
1704
1699
  type: "sankey",
1705
- vSpecSchema: Qe
1700
+ vSpecSchema: Xe
1706
1701
  },
1707
1702
  scatter: {
1708
- coloringType: a.Categorical,
1709
- dimensionRole: (e) => e === 0 ? n.SCATTER_DIMENSION : n.SCATTER_IMAGE,
1703
+ coloringType: t.Categorical,
1704
+ dimensionRole: (e) => e === 0 ? a.SCATTER_DIMENSION : a.SCATTER_IMAGE,
1710
1705
  measureRole: (e) => [
1711
- o.SCATTER_HORIZONTAL,
1712
- o.SCATTER_VERTICAL,
1713
- o.SCATTER_SIZE
1706
+ r.SCATTER_HORIZONTAL,
1707
+ r.SCATTER_VERTICAL,
1708
+ r.SCATTER_SIZE
1714
1709
  ][e],
1715
1710
  queryLimit: !0,
1716
- schema: Fe,
1711
+ schema: De,
1717
1712
  sorting: !0,
1718
1713
  type: "scatter",
1719
- vSpecSchema: tt
1714
+ vSpecSchema: et
1720
1715
  },
1721
1716
  tree: {
1722
1717
  queryLimit: !0,
1723
- schema: De,
1718
+ schema: Me,
1724
1719
  sorting: !0,
1725
1720
  type: "tree",
1726
- vSpecSchema: Ve
1721
+ vSpecSchema: Ye
1727
1722
  },
1728
1723
  treemap: {
1729
- schema: Me,
1724
+ schema: Se,
1730
1725
  type: "treemap",
1731
- vSpecSchema: ot
1726
+ vSpecSchema: Je
1732
1727
  },
1733
1728
  waterfall: {
1734
- schema: we,
1729
+ schema: ge,
1735
1730
  type: "waterfall",
1736
- vSpecSchema: Ue
1731
+ vSpecSchema: ot
1737
1732
  },
1738
1733
  "word-cloud": {
1739
- conditionalColoringFallbackType: a.Single,
1740
- schema: ve,
1734
+ conditionalColoringFallbackType: t.Single,
1735
+ schema: ke,
1741
1736
  type: "word-cloud",
1742
- vSpecSchema: Be
1737
+ vSpecSchema: We
1743
1738
  }
1744
- }, Yt = (e, t) => {
1745
- let n = [], r = t.presentation, i = ge(r?.axes);
1739
+ }, Zt = (e, t) => {
1740
+ let n = [], r = t.presentation, i = me(r?.axes);
1746
1741
  if (i) return Promise.resolve({
1747
1742
  issue: i,
1748
1743
  success: !1
@@ -1750,7 +1745,7 @@ var Jt = {
1750
1745
  r?.orientation !== void 0 && n.push({
1751
1746
  name: "setOrientation",
1752
1747
  payload: r.orientation
1753
- }), r?.legend && n.push(...Se(e.vSpec, r.legend)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
1748
+ }), t.type === "combo" && n.push(...ht(r)), r?.legend && n.push(...be(e.vSpec, r.legend)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
1754
1749
  t.titleVisible !== void 0 && n.push({
1755
1750
  name: "setShowAxisTitle",
1756
1751
  payload: {
@@ -1781,8 +1776,8 @@ var Jt = {
1781
1776
  axisName: e,
1782
1777
  showAxisLine: t.lineVisible
1783
1778
  }
1784
- }), n.push(...ye(e, t)), "scale" in t && t.scale !== void 0 && n.push({
1785
- name: ft.SET_AXIS_SCALE,
1779
+ }), n.push(..._e(e, t)), "scale" in t && t.scale !== void 0 && n.push({
1780
+ name: pt.SET_AXIS_SCALE,
1786
1781
  payload: {
1787
1782
  axisName: e,
1788
1783
  scale: t.scale
@@ -1791,7 +1786,7 @@ var Jt = {
1791
1786
  });
1792
1787
  let a = r?.axes?.primaryMeasure?.bands;
1793
1788
  return a && n.push({
1794
- name: ut.SET_MEASURE_AXIS_BANDS,
1789
+ name: ft.SET_MEASURE_AXIS_BANDS,
1795
1790
  payload: { bands: a }
1796
1791
  }), (t.data.measures ?? []).forEach((i) => {
1797
1792
  let a = i.dataLabels ?? (t.type !== "combo" || i.seriesType === "bar" ? r?.dataLabels : void 0);
@@ -1802,13 +1797,13 @@ var Jt = {
1802
1797
  show: a.visible
1803
1798
  }
1804
1799
  });
1805
- }), v(e, n, ["presentation"]);
1806
- }, Xt = (e, t) => {
1800
+ }), y(e, n, ["presentation"]);
1801
+ }, Qt = (e, t) => {
1807
1802
  let n = [];
1808
1803
  if (t.type === "combo") {
1809
1804
  (t.data.measures ?? []).forEach((t) => {
1810
1805
  t.seriesType && n.push({
1811
- name: dt.SET_MEASURE_GRAPH_TYPE,
1806
+ name: ut.SET_MEASURE_GRAPH_TYPE,
1812
1807
  payload: {
1813
1808
  ...C(e.resolvedRefs[t.ref]),
1814
1809
  graphType: t.seriesType
@@ -1835,13 +1830,13 @@ var Jt = {
1835
1830
  if (t.type === "gauge" || t.type === "distribution-gauge") {
1836
1831
  let e = t.type === "distribution-gauge";
1837
1832
  e && n.push({
1838
- name: pt.SET_GAUGE_COMPARISON_MODE,
1833
+ name: ct.SET_GAUGE_COMPARISON_MODE,
1839
1834
  payload: !0
1840
1835
  }), t.presentation?.displayMode && n.push({
1841
- name: e ? pt.SET_GAUGE_BAR_MODE : ct.SET_GAUGE_BAR_MODE,
1836
+ name: e ? ct.SET_GAUGE_BAR_MODE : dt.SET_GAUGE_BAR_MODE,
1842
1837
  payload: t.presentation.displayMode === "bar"
1843
1838
  }), !e && (t.data.dimensions?.length ?? 0) > 0 && (t.data.measures?.length ?? 0) > 1 && n.push({
1844
- name: ct.SET_GAUGE_TARGET_TYPE,
1839
+ name: dt.SET_GAUGE_TARGET_TYPE,
1845
1840
  payload: st.Data
1846
1841
  });
1847
1842
  }
@@ -1861,18 +1856,18 @@ var Jt = {
1861
1856
  payload: e.initialExpandedLevels
1862
1857
  });
1863
1858
  }
1864
- return v(e, n, ["presentation"]);
1865
- }, Zt = (e, t, n) => {
1859
+ return y(e, n, ["presentation"]);
1860
+ }, $t = (e, t, n) => {
1866
1861
  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
1862
  return !s || r || !a && !o ? Promise.resolve({
1868
1863
  state: e,
1869
1864
  success: !0
1870
- }) : v(e, [{
1865
+ }) : y(e, [{
1871
1866
  name: "setColoringType",
1872
1867
  payload: typeof s == "function" ? s(t) : s
1873
1868
  }], a ? ["presentation", "legend"] : ["presentation", "coloring"]);
1874
- }, Qt = async (e, t) => {
1875
- let n = Jt[t], r = w(e);
1869
+ }, en = async (e, t) => {
1870
+ let n = Xt[t], r = w(e);
1876
1871
  if (r) return {
1877
1872
  issues: [{
1878
1873
  code: "invalid_structure",
@@ -1883,12 +1878,12 @@ var Jt = {
1883
1878
  };
1884
1879
  let i = n.schema.safeParse(e.definition);
1885
1880
  if (!i.success) return {
1886
- issues: h(i.error, e.definition),
1881
+ issues: g(i.error, e.definition),
1887
1882
  success: !1
1888
1883
  };
1889
1884
  let a = n.vSpecSchema.safeParse(e.baseVSpec);
1890
1885
  if (!a.success) return {
1891
- issues: [g("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
1886
+ issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
1892
1887
  success: !1
1893
1888
  };
1894
1889
  let o = a.data;
@@ -1898,12 +1893,12 @@ var Jt = {
1898
1893
  "supportingMeasures",
1899
1894
  "sortingMeasures"
1900
1895
  ])) return {
1901
- issues: [g("non_fresh_base_vspec", ["baseVSpec"], `${t} definitions require a fresh base vSpec.`)],
1896
+ issues: [_("non_fresh_base_vspec", ["baseVSpec"], `${t} definitions require a fresh base vSpec.`)],
1902
1897
  success: !1
1903
1898
  };
1904
1899
  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"),
1900
+ ...c(l, e.availableFields, ["data", "dimensions"], "dimension"),
1901
+ ...c(f, e.availableFields, ["data", "measures"], "measure"),
1907
1902
  ...u([{
1908
1903
  items: l,
1909
1904
  path: ["data", "dimensions"]
@@ -1911,10 +1906,10 @@ var Jt = {
1911
1906
  items: f,
1912
1907
  path: ["data", "measures"]
1913
1908
  }]),
1914
- ...c(s.filterGroup, e.availableFields),
1909
+ ...Ce(s.filterGroup, e.availableFields),
1915
1910
  ...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, [
1911
+ ...se(s.presentation?.coloring, l.map((e) => e.ref), f.map((e) => e.ref)),
1912
+ ...t === "histogram" && l[0] ? h(l[0], e.availableFields, [
1918
1913
  "data",
1919
1914
  "dimensions",
1920
1915
  0
@@ -1960,29 +1955,29 @@ var Jt = {
1960
1955
  t
1961
1956
  ]);
1962
1957
  }
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, {
1958
+ return "issue" in m || (m = await je(m.state, l, "updateDimension", ["data", "dimensions"]), "issue" in m) || (m = await Qt(m.state, s), "issue" in m) || (m = await $t(m.state, s, n), "issue" in m) || (m = await Ne(m.state, l, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in m) || (m = await he(m.state, l, {
1964
1959
  formatString: "setDimensionFormatString",
1965
1960
  formatType: "setDimensionFormatType"
1966
- }, ["data", "dimensions"]), "issue" in m) || (m = await _e(m.state, f, {
1961
+ }, ["data", "dimensions"]), "issue" in m) || (m = await he(m.state, f, {
1967
1962
  currency: "setMeasureCurrency",
1968
1963
  currencyIsPrefix: "setMeasureCurrencyIsPrefix",
1969
1964
  formatString: "setMeasureFormatString",
1970
1965
  formatType: "setMeasureFormatType",
1971
1966
  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, [{
1967
+ }, ["data", "measures"]), "issue" in m) || (m = await gt(m.state, f, ["data", "measures"]), "issue" in m) || (m = await xe(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 y(m.state, [{
1973
1968
  name: "setQueryLimit",
1974
1969
  payload: s.limiting.queryLimit
1975
- }], ["limiting"]), "issue" in m) || (m = await Yt(m.state, s), "issue" in m) ? {
1970
+ }], ["limiting"]), "issue" in m) || (m = await Zt(m.state, s), "issue" in m) ? {
1976
1971
  issues: [m.issue],
1977
1972
  success: !1
1978
1973
  } : (m = await Ee(m.state, s.presentation?.coloring), "issue" in m ? {
1979
1974
  issues: [m.issue],
1980
1975
  success: !1
1981
- } : _(m.state, n.vSpecSchema));
1976
+ } : v(m.state, n.vSpecSchema));
1982
1977
  }, G = (e) => {
1983
1978
  let t = z(e.type);
1984
1979
  return {
1985
- compile: (t) => Qt(t, e.type),
1980
+ compile: (t) => en(t, e.type),
1986
1981
  documentation: t.documentation,
1987
1982
  examples: [t.example, ...(t.additionalExamples ?? []).map(({ definition: e }) => e)],
1988
1983
  jsonSchema: B(e.schema, `${t.documentation.title} definition`),
@@ -1991,7 +1986,7 @@ var Jt = {
1991
1986
  type: e.type,
1992
1987
  version: 1
1993
1988
  };
1994
- }, $t = [
1989
+ }, tn = [
1995
1990
  G({
1996
1991
  schema: V.combo,
1997
1992
  type: "combo"
@@ -2048,8 +2043,8 @@ var Jt = {
2048
2043
  schema: V["word-cloud"],
2049
2044
  type: "word-cloud"
2050
2045
  })
2051
- ], K = z("filter"), en = {
2052
- compile: Nt,
2046
+ ], K = z("filter"), nn = {
2047
+ compile: Ft,
2053
2048
  documentation: K.documentation,
2054
2049
  examples: [K.example],
2055
2050
  jsonSchema: B(V.filter, `${K.documentation.title} definition`),
@@ -2057,8 +2052,8 @@ var Jt = {
2057
2052
  supportedFeatures: K.supportedFeatures,
2058
2053
  type: "filter",
2059
2054
  version: 1
2060
- }, q = z("line"), tn = {
2061
- compile: Pt,
2055
+ }, q = z("line"), rn = {
2056
+ compile: It,
2062
2057
  documentation: q.documentation,
2063
2058
  examples: [q.example, ...(q.additionalExamples ?? []).map(({ definition: e }) => e)],
2064
2059
  jsonSchema: B(V.line, `${q.documentation.title} definition`),
@@ -2066,8 +2061,8 @@ var Jt = {
2066
2061
  supportedFeatures: q.supportedFeatures,
2067
2062
  type: "line",
2068
2063
  version: 1
2069
- }, J = z("map"), nn = {
2070
- compile: It,
2064
+ }, J = z("map"), an = {
2065
+ compile: Rt,
2071
2066
  documentation: J.documentation,
2072
2067
  examples: [J.example, ...(J.additionalExamples ?? []).map(({ definition: e }) => e)],
2073
2068
  jsonSchema: B(V.map, "Map definition"),
@@ -2075,8 +2070,8 @@ var Jt = {
2075
2070
  supportedFeatures: J.supportedFeatures,
2076
2071
  type: "map",
2077
2072
  version: 1
2078
- }, Y = z("number"), rn = {
2079
- compile: Ft,
2073
+ }, Y = z("number"), on = {
2074
+ compile: Lt,
2080
2075
  documentation: Y.documentation,
2081
2076
  examples: [Y.example],
2082
2077
  jsonSchema: B(V.number, `${Y.documentation.title} definition`),
@@ -2087,7 +2082,7 @@ var Jt = {
2087
2082
  }, X = (e, t) => Object.entries(e).flatMap(([e, n]) => n === void 0 || !t[e] ? [] : [{
2088
2083
  name: t[e],
2089
2084
  payload: n
2090
- }]), an = {
2085
+ }]), sn = {
2091
2086
  "atomic-input": {
2092
2087
  createRequests: (e) => {
2093
2088
  let t = e.customLabel;
@@ -2105,18 +2100,18 @@ var Jt = {
2105
2100
  payload: t.text
2106
2101
  }]] : []];
2107
2102
  },
2108
- schema: f,
2103
+ schema: m,
2109
2104
  type: "atomic-input",
2110
- vSpecSchema: Ye
2105
+ vSpecSchema: ze
2111
2106
  },
2112
2107
  iframe: {
2113
2108
  createRequests: (e) => [{
2114
2109
  name: "setIframeUrl",
2115
2110
  payload: e.url
2116
2111
  }],
2117
- schema: re,
2112
+ schema: oe,
2118
2113
  type: "iframe",
2119
- vSpecSchema: it
2114
+ vSpecSchema: Ve
2120
2115
  },
2121
2116
  image: {
2122
2117
  createRequests: (e) => X(e, {
@@ -2127,9 +2122,9 @@ var Jt = {
2127
2122
  shadow: "setImageShadow",
2128
2123
  source: "setImageSource"
2129
2124
  }),
2130
- schema: ce,
2125
+ schema: Re,
2131
2126
  type: "image",
2132
- vSpecSchema: qe
2127
+ vSpecSchema: it
2133
2128
  },
2134
2129
  shape: {
2135
2130
  createRequests: (e) => X(e, {
@@ -2147,9 +2142,9 @@ var Jt = {
2147
2142
  shape: "setShapeType",
2148
2143
  strokeColor: "setShapeBorderColor"
2149
2144
  }),
2150
- schema: Re,
2145
+ schema: l,
2151
2146
  type: "shape",
2152
- vSpecSchema: rt
2147
+ vSpecSchema: $e
2153
2148
  },
2154
2149
  simpleTextObject: {
2155
2150
  createRequests: (e) => [...e.content === void 0 ? [] : [{
@@ -2168,12 +2163,12 @@ var Jt = {
2168
2163
  textColor: "setTextColor",
2169
2164
  wordWrap: "setTextWordWrap"
2170
2165
  })],
2171
- schema: de,
2166
+ schema: p,
2172
2167
  type: "simpleTextObject",
2173
2168
  vSpecSchema: nt
2174
2169
  }
2175
2170
  }, Z = async (e, t) => {
2176
- let n = an[t], r = w(e);
2171
+ let n = sn[t], r = w(e);
2177
2172
  if (r) return {
2178
2173
  issues: [{
2179
2174
  code: "invalid_structure",
@@ -2184,20 +2179,20 @@ var Jt = {
2184
2179
  };
2185
2180
  let i = n.schema.safeParse(e.definition);
2186
2181
  if (!i.success) return {
2187
- issues: h(i.error, e.definition),
2182
+ issues: g(i.error, e.definition),
2188
2183
  success: !1
2189
2184
  };
2190
2185
  let a = n.vSpecSchema.safeParse(e.baseVSpec);
2191
2186
  if (!a.success) return {
2192
- issues: [g("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
2187
+ issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
2193
2188
  success: !1
2194
2189
  };
2195
- let o = x(e, a.data), s = i.data.settings, c = await v(o, n.createRequests(s), ["settings"]);
2190
+ let o = x(e, a.data), s = i.data.settings, c = await y(o, n.createRequests(s), ["settings"]);
2196
2191
  return "issue" in c ? {
2197
2192
  issues: [c.issue],
2198
2193
  success: !1
2199
- } : _(c.state, n.vSpecSchema);
2200
- }, on = async (e) => {
2194
+ } : v(c.state, n.vSpecSchema);
2195
+ }, cn = async (e) => {
2201
2196
  let t = w(e);
2202
2197
  if (t) return {
2203
2198
  issues: [{
@@ -2207,22 +2202,22 @@ var Jt = {
2207
2202
  }],
2208
2203
  success: !1
2209
2204
  };
2210
- let n = m.safeParse(e.definition);
2205
+ let n = re.safeParse(e.definition);
2211
2206
  if (!n.success) return {
2212
- issues: h(n.error, e.definition),
2207
+ issues: g(n.error, e.definition),
2213
2208
  success: !1
2214
2209
  };
2215
- let r = He.safeParse(e.baseVSpec);
2210
+ let r = Ke.safeParse(e.baseVSpec);
2216
2211
  if (!r.success) return {
2217
- issues: [g("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
2212
+ issues: [_("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
2218
2213
  success: !1
2219
2214
  };
2220
2215
  let i = r.data;
2221
2216
  if (!S(i, ["dimensions", "measures"])) return {
2222
- issues: [g("non_fresh_base_vspec", ["baseVSpec"], "Date-picker definitions require a fresh vSpec.")],
2217
+ issues: [_("non_fresh_base_vspec", ["baseVSpec"], "Date-picker definitions require a fresh vSpec.")],
2223
2218
  success: !1
2224
2219
  };
2225
- let a = n.data, o = [...ae(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...y(a.data.field, e.availableFields, ["data", "field"], [
2220
+ let a = n.data, o = [...we(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...h(a.data.field, e.availableFields, ["data", "field"], [
2226
2221
  H.FieldType.DATE,
2227
2222
  H.FieldType.TIMESTAMP,
2228
2223
  H.FieldType.TIMESTAMP_TZ
@@ -2237,7 +2232,7 @@ var Jt = {
2237
2232
  success: !1
2238
2233
  };
2239
2234
  let { pickerType: c, ...l } = a.settings ?? {};
2240
- return s = await v(s.state, X({
2235
+ return s = await y(s.state, X({
2241
2236
  pickerType: c,
2242
2237
  ...l
2243
2238
  }, {
@@ -2252,8 +2247,8 @@ var Jt = {
2252
2247
  }), ["settings"]), "issue" in s ? {
2253
2248
  issues: [s.issue],
2254
2249
  success: !1
2255
- } : _(s.state, He);
2256
- }, sn = async (e) => {
2250
+ } : v(s.state, Ke);
2251
+ }, ln = async (e) => {
2257
2252
  let t = w(e);
2258
2253
  if (t) return {
2259
2254
  issues: [{
@@ -2263,22 +2258,22 @@ var Jt = {
2263
2258
  }],
2264
2259
  success: !1
2265
2260
  };
2266
- let n = l.safeParse(e.definition);
2261
+ let n = le.safeParse(e.definition);
2267
2262
  if (!n.success) return {
2268
- issues: h(n.error, e.definition),
2263
+ issues: g(n.error, e.definition),
2269
2264
  success: !1
2270
2265
  };
2271
- let r = et.safeParse(e.baseVSpec);
2266
+ let r = Qe.safeParse(e.baseVSpec);
2272
2267
  if (!r.success) return {
2273
- issues: [g("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
2268
+ issues: [_("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
2274
2269
  success: !1
2275
2270
  };
2276
2271
  let i = r.data;
2277
2272
  if (!S(i, ["dimensions", "measures"])) return {
2278
- issues: [g("non_fresh_base_vspec", ["baseVSpec"], "Slider definitions require a fresh vSpec.")],
2273
+ issues: [_("non_fresh_base_vspec", ["baseVSpec"], "Slider definitions require a fresh vSpec.")],
2279
2274
  success: !1
2280
2275
  };
2281
- let a = n.data, o = [...ae(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...y(a.data.field, e.availableFields, ["data", "field"], [
2276
+ let a = n.data, o = [...we(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...h(a.data.field, e.availableFields, ["data", "field"], [
2282
2277
  H.FieldType.DATE,
2283
2278
  H.FieldType.DECIMAL,
2284
2279
  H.FieldType.FLOAT,
@@ -2297,7 +2292,7 @@ var Jt = {
2297
2292
  success: !1
2298
2293
  };
2299
2294
  let c = a.settings ?? {};
2300
- return s = await v(s.state, [...c.range === void 0 ? [] : [{
2295
+ return s = await y(s.state, [...c.range === void 0 ? [] : [{
2301
2296
  name: "setSliderManualRangeEnabled",
2302
2297
  payload: !0
2303
2298
  }], ...X(c, {
@@ -2308,7 +2303,7 @@ var Jt = {
2308
2303
  })], ["settings"]), "issue" in s ? {
2309
2304
  issues: [s.issue],
2310
2305
  success: !1
2311
- } : _(s.state, et);
2306
+ } : v(s.state, Qe);
2312
2307
  }, Q = (e) => {
2313
2308
  let t = z(e.type);
2314
2309
  return {
@@ -2321,9 +2316,9 @@ var Jt = {
2321
2316
  type: e.type,
2322
2317
  version: 1
2323
2318
  };
2324
- }, cn = [
2319
+ }, un = [
2325
2320
  Q({
2326
- compile: on,
2321
+ compile: cn,
2327
2322
  schema: V["date-picker"],
2328
2323
  type: "date-picker"
2329
2324
  }),
@@ -2353,12 +2348,12 @@ var Jt = {
2353
2348
  type: "atomic-input"
2354
2349
  }),
2355
2350
  Q({
2356
- compile: sn,
2351
+ compile: ln,
2357
2352
  schema: V.slider,
2358
2353
  type: "slider"
2359
2354
  })
2360
- ], $ = z("table"), ln = {
2361
- compile: Lt,
2355
+ ], $ = z("table"), dn = {
2356
+ compile: zt,
2362
2357
  documentation: $.documentation,
2363
2358
  examples: [$.example, ...($.additionalExamples ?? []).map(({ definition: e }) => e)],
2364
2359
  jsonSchema: B(V.table, `${$.documentation.title} definition`),
@@ -2366,24 +2361,24 @@ var Jt = {
2366
2361
  supportedFeatures: $.supportedFeatures,
2367
2362
  type: "table",
2368
2363
  version: 1
2369
- }, un = (e, t) => `${t}:${e}`, dn = [
2370
- qt,
2371
- Kt,
2372
- ...$t,
2373
- ...cn,
2374
- tn,
2375
- nn,
2376
- ln,
2364
+ }, fn = (e, t) => `${t}:${e}`, pn = [
2365
+ Yt,
2366
+ Jt,
2367
+ ...tn,
2368
+ ...un,
2377
2369
  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 }) => ({
2370
+ an,
2371
+ dn,
2372
+ on,
2373
+ nn
2374
+ ], mn = new Map(pn.map((e) => [fn(e.type, e.version), e])), hn = (e, t = 1) => mn.get(fn(e, t)), gn = () => [...mn.values()].map(({ documentation: e, examples: t, jsonSchema: n, supportedFeatures: r, type: i, version: a }) => ({
2380
2375
  documentation: e,
2381
2376
  examples: t,
2382
2377
  jsonSchema: n,
2383
2378
  supportedFeatures: r,
2384
2379
  type: i,
2385
2380
  version: a
2386
- })), hn = async (e) => {
2381
+ })), _n = async (e) => {
2387
2382
  let t = w(e);
2388
2383
  if (t) return {
2389
2384
  issues: [{
@@ -2393,14 +2388,14 @@ var Jt = {
2393
2388
  }],
2394
2389
  success: !1
2395
2390
  };
2396
- let n = kt(e.definition);
2391
+ let n = jt(e.definition);
2397
2392
  if (n) return {
2398
2393
  issues: [n],
2399
2394
  success: !1
2400
2395
  };
2401
- let r = e.definition, i = pn(r.type, r.version), a = E.array(Pe).safeParse(e.availableFields);
2396
+ let r = e.definition, i = hn(r.type, r.version), a = E.array(ve).safeParse(e.availableFields);
2402
2397
  if (!a.success) return {
2403
- issues: h(a.error, e.availableFields, ["availableFields"]),
2398
+ issues: g(a.error, e.availableFields, ["availableFields"]),
2404
2399
  success: !1
2405
2400
  };
2406
2401
  let o = /* @__PURE__ */ new Map(), s = a.data.flatMap((e, t) => {
@@ -2420,14 +2415,14 @@ var Jt = {
2420
2415
  issues: s,
2421
2416
  success: !1
2422
2417
  };
2423
- let c = ie(a.data), l = E.array($e).safeParse(c);
2418
+ let c = ie(a.data), l = E.array(Ze).safeParse(c);
2424
2419
  if (!l.success) return {
2425
- issues: h(l.error, c, ["availableFields"]),
2420
+ issues: g(l.error, c, ["availableFields"]),
2426
2421
  success: !1
2427
2422
  };
2428
2423
  if (!i) return {
2429
2424
  issues: [{
2430
- allowedValues: Ot(),
2425
+ allowedValues: At(),
2431
2426
  code: "unsupported_visualization",
2432
2427
  message: "Visualization definition descriptor is not available.",
2433
2428
  path: ["type"]
@@ -2439,10 +2434,10 @@ var Jt = {
2439
2434
  availableFields: a.data
2440
2435
  });
2441
2436
  if (!u.success) return u;
2442
- let d = Gt(r, a.data);
2437
+ let d = qt(r, a.data);
2443
2438
  return d.length > 0 ? {
2444
2439
  ...u,
2445
2440
  warnings: d
2446
2441
  } : u;
2447
2442
  };
2448
- export { At as i, pn as n, mn as r, hn as t };
2443
+ export { Mt as i, hn as n, gn as r, _n as t };