@astrato-io/visualizations 0.6.4 → 0.6.5

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 (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -1,12 +1,9 @@
1
- import { La as e, Xs as t, Ya as n, ds as r } from "./interfaces-VUY4_yVO.js";
2
- import { hn as i } from "./event-bus-KiSiCJrC.js";
3
- import { t as a } from "./gauge-target-type-BkKXAqkX.js";
4
- import { Au as o, Dd as s, Kd as c, Lu as l, Mu as u, Od as d, Pd as ee, Pu as te, Sd as ne, _d as re, ad as ie, bd as ae, cd as oe, dd as se, fd as ce, jd as f, kd as le, nd as ue, td as de, ud as fe, yd as pe } from "./src-Dun_jXtz.js";
5
- import { C as me, S as p, _ as m, b as he, f as ge, v as _e, x as ve } from "./src-C0LgoUWY.js";
6
- import { $ as ye, A as be, B as xe, C as Se, F as Ce, G as we, H as Te, I as Ee, J as De, K as Oe, L as h, M as ke, N as Ae, P as je, Q as Me, R as Ne, S as Pe, U as g, V as Fe, W as Ie, X as Le, Y as Re, Z as ze, _ as Be, a as Ve, c as He, d as _, et as Ue, f as We, g as v, h as y, i as Ge, j as b, k as Ke, n as qe, nt as Je, o as Ye, q as Xe, r as Ze, rt as Qe, s as $e, t as x, tt as et, u as S, v as C, w, x as tt, y as T, z as E } from "./shared-CKDL4hx9.js";
7
- import { a as nt, i as D, o as O, r as rt, t as it } from "./data-item-resolution-1lvYB5ln.js";
1
+ import { Fa as e, Wc as t, Ys as n, a as r, qa as i } from "./isEqual-BDxAhUo8.js";
2
+ import { $ as a, A as o, B as s, C as c, D as l, F as u, G as d, H as f, I as p, J as m, K as ee, L as h, M as te, N as ne, O as re, P as ie, Q as ae, R as oe, S as se, T as ce, U as le, V as ue, W as de, X as fe, Y as g, Z as pe, _ as me, a as he, at as ge, c as _e, d as _, et as ve, f as ye, g as v, h as y, i as be, it as xe, k as Se, n as Ce, nt as we, o as Te, ot as Ee, q as De, r as Oe, rt as ke, s as Ae, t as b, tt as je, u as x, v as S, w as C, x as Me, y as w, z as Ne } from "./shared-CBvcC5YV.js";
3
+ import { Cf as Pe, Dd as Fe, Ef as Ie, Md as Le, Sf as Re, Td as ze, Vf as Be, Xd as T, Zd as Ve, _f as He, af as Ue, bd as E, ef as We, ff as Ge, hf as Ke, kd as qe, kf as Je, mf as Ye, of as Xe, rf as Ze, sf as Qe, wf as $e, wm as et, zm as tt } from "./handlers-VTBfIZYZ.js";
4
+ import { C as D, S as O, _ as nt, b as rt, f as it, v as at, x as ot } from "./operations-CTNUX6Sy.js";
8
5
  import { z as k } from "zod";
9
- var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).compileAppFilterBarVisualizationDefinition(e), ot = async (e) => (await import("./bar.compiler-oqaPzIut.js")).compileBarVisualizationDefinition(e), st = async (e) => (await import("./filter.compiler-CuLtc_02.js")).compileFilterVisualizationDefinition(e), ct = async (e) => (await import("./line.compiler-BpA_6Tc7.js")).compileLineVisualizationDefinition(e), lt = async (e) => (await import("./number.compiler-DbkWcG4S.js")).compileNumberVisualizationDefinition(e), ut = async (e) => (await import("./table.compiler-BrXkm4Fz.js")).compileTableVisualizationDefinition(e), dt = (e, ...t) => e, A = {
6
+ var st = (e, ...t) => e, A = {
10
7
  horsepower: "[Cars].[Horsepower]",
11
8
  latestLaunch: "[Cars].[Latest Launch]",
12
9
  manufacturer: "[Cars].[Manufacturer]",
@@ -58,7 +55,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
58
55
  title: "Horsepower",
59
56
  titleVisible: !0
60
57
  }
61
- }, ft = {
58
+ }, ct = {
62
59
  dimension: {
63
60
  labelsVisible: !0,
64
61
  title: "Manufacturer",
@@ -74,7 +71,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
74
71
  title: "Model",
75
72
  titleVisible: !0
76
73
  }
77
- }, pt = {
74
+ }, lt = {
78
75
  dimension: {
79
76
  labelsVisible: !0,
80
77
  title: "Manufacturer",
@@ -85,7 +82,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
85
82
  title: "Sales",
86
83
  titleVisible: !0
87
84
  }
88
- }, mt = {
85
+ }, ut = {
89
86
  dimension: {
90
87
  labelsVisible: !0,
91
88
  title: "Horsepower",
@@ -96,7 +93,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
96
93
  title: "Count",
97
94
  titleVisible: !0
98
95
  }
99
- }, ht = {
96
+ }, dt = {
100
97
  primaryMeasure: {
101
98
  labelsVisible: !0,
102
99
  title: "Sales",
@@ -107,7 +104,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
107
104
  title: "Horsepower",
108
105
  titleVisible: !0
109
106
  }
110
- }, gt = {
107
+ }, ft = {
111
108
  dimension: {
112
109
  labelsVisible: !0,
113
110
  title: "Measure",
@@ -123,7 +120,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
123
120
  "filters",
124
121
  "measures",
125
122
  "value-formatting"
126
- ], _t = dt([
123
+ ], pt = st([
127
124
  {
128
125
  additionalExamples: [{
129
126
  definition: {
@@ -264,7 +261,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
264
261
  filterGroup: P,
265
262
  limiting: { queryLimit: 100 },
266
263
  presentation: {
267
- axes: pt,
264
+ axes: lt,
268
265
  dataLabels: { visible: !0 },
269
266
  legend: F,
270
267
  orientation: "vertical"
@@ -334,7 +331,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
334
331
  },
335
332
  filterGroup: P,
336
333
  presentation: {
337
- axes: pt,
334
+ axes: lt,
338
335
  legend: F,
339
336
  orientation: "horizontal"
340
337
  },
@@ -398,7 +395,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
398
395
  filterGroup: P,
399
396
  limiting: { queryLimit: 100 },
400
397
  presentation: {
401
- axes: ft,
398
+ axes: ct,
402
399
  legend: F
403
400
  },
404
401
  sorting: [{
@@ -433,7 +430,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
433
430
  data: { dimensions: [j("horsepower", A.horsepower)] },
434
431
  filterGroup: P,
435
432
  presentation: {
436
- axes: mt,
433
+ axes: ut,
437
434
  legend: F,
438
435
  orientation: "vertical"
439
436
  },
@@ -759,7 +756,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
759
756
  },
760
757
  filterGroup: P,
761
758
  presentation: {
762
- axes: ht,
759
+ axes: dt,
763
760
  legend: F
764
761
  },
765
762
  type: "scatter",
@@ -940,7 +937,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
940
937
  }] },
941
938
  filterGroup: P,
942
939
  presentation: {
943
- axes: gt,
940
+ axes: ft,
944
941
  dataLabels: { visible: !0 },
945
942
  orientation: "vertical"
946
943
  },
@@ -1214,134 +1211,215 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1214
1211
  type: "slider"
1215
1212
  }
1216
1213
  ]), z = (e) => {
1217
- let t = _t.find((t) => t.type === e);
1214
+ let t = pt.find((t) => t.type === e);
1218
1215
  if (!t) throw Error(`Missing visualization definition documentation for ${e}`);
1219
1216
  return t;
1220
1217
  }, B = (e, t) => k.toJSONSchema(e.meta({ title: t }), {
1221
1218
  reused: "inline",
1222
1219
  target: "draft-2020-12"
1223
- }), V = z("bar"), vt = {
1224
- compile: ot,
1225
- documentation: V.documentation,
1226
- examples: [V.example, ...(V.additionalExamples ?? []).map(({ definition: e }) => e)],
1227
- jsonSchema: B(Je, `${V.documentation.title} definition`),
1228
- schema: Je,
1229
- supportedFeatures: V.supportedFeatures,
1220
+ }), V = {
1221
+ "astrato-app-filter-bar": Ee,
1222
+ bar: xe,
1223
+ combo: de,
1224
+ dot: ee,
1225
+ scatter: a,
1226
+ histogram: g,
1227
+ heatMap: m,
1228
+ radar: pe,
1229
+ gauge: De,
1230
+ "distribution-gauge": d,
1231
+ pie: fe,
1232
+ tree: ve,
1233
+ treemap: je,
1234
+ sankey: ae,
1235
+ waterfall: we,
1236
+ "word-cloud": ke,
1237
+ "date-picker": u,
1238
+ iframe: p,
1239
+ image: h,
1240
+ shape: oe,
1241
+ simpleTextObject: s,
1242
+ "atomic-input": ie,
1243
+ slider: Ne,
1244
+ line: f,
1245
+ table: ne,
1246
+ number: ue,
1247
+ filter: le
1248
+ }, mt = new Map(Object.entries(V)), ht = (e, t = 1) => t === 1 ? mt.get(e) : void 0, H = () => Object.keys(V), gt = (e) => {
1249
+ let t = E(e);
1250
+ if (t) return {
1251
+ code: "invalid_structure",
1252
+ message: t,
1253
+ path: []
1254
+ };
1255
+ if (typeof e != "object" || !e || Array.isArray(e)) return {
1256
+ code: "invalid_structure",
1257
+ message: "Visualization definition must be an object.",
1258
+ path: []
1259
+ };
1260
+ let n = "version" in e ? e.version : void 0;
1261
+ if (n !== 1) return {
1262
+ allowedValues: [1],
1263
+ code: "unsupported_version",
1264
+ message: `Visualization definition version "${String(n)}" is not supported.`,
1265
+ path: ["version"]
1266
+ };
1267
+ let r = "type" in e ? e.type : void 0;
1268
+ if (!(typeof r == "string" && ht(r, n))) return {
1269
+ allowedValues: H(),
1270
+ code: "unsupported_visualization",
1271
+ message: `Visualization type "${String(r)}" is not supported.`,
1272
+ path: ["type"]
1273
+ };
1274
+ }, _t = (e) => {
1275
+ let t = gt(e);
1276
+ if (t) return {
1277
+ issues: [t],
1278
+ success: !1
1279
+ };
1280
+ let n = ht(e.type, e.version);
1281
+ if (!n) return {
1282
+ issues: [{
1283
+ allowedValues: H(),
1284
+ code: "unsupported_visualization",
1285
+ message: "Visualization definition descriptor is not available.",
1286
+ path: ["type"]
1287
+ }],
1288
+ success: !1
1289
+ };
1290
+ let r = n.safeParse(e);
1291
+ return r.success ? {
1292
+ definition: r.data,
1293
+ issues: [],
1294
+ success: !0
1295
+ } : {
1296
+ issues: C(r.error, e),
1297
+ success: !1
1298
+ };
1299
+ }, vt = async (e) => (await import("./app-filter-bar.compiler-BGJ7HAbr.js")).compileAppFilterBarVisualizationDefinition(e), yt = async (e) => (await import("./bar.compiler-CT0ZbQKc.js")).compileBarVisualizationDefinition(e), bt = async (e) => (await import("./filter.compiler-DBsyRBJt.js")).compileFilterVisualizationDefinition(e), xt = async (e) => (await import("./line.compiler-CzdM5Ld0.js")).compileLineVisualizationDefinition(e), St = async (e) => (await import("./number.compiler-G-R7y16P.js")).compileNumberVisualizationDefinition(e), Ct = async (e) => (await import("./table.compiler-tb914oj3.js")).compileTableVisualizationDefinition(e), U = z("bar"), wt = {
1300
+ compile: yt,
1301
+ documentation: U.documentation,
1302
+ examples: [U.example, ...(U.additionalExamples ?? []).map(({ definition: e }) => e)],
1303
+ jsonSchema: B(V.bar, `${U.documentation.title} definition`),
1304
+ schema: V.bar,
1305
+ supportedFeatures: U.supportedFeatures,
1230
1306
  type: "bar",
1231
1307
  version: 1
1232
- }, H = z("astrato-app-filter-bar"), yt = {
1233
- compile: at,
1234
- documentation: H.documentation,
1235
- examples: [H.example],
1236
- jsonSchema: B(xe, `${H.documentation.title} definition`),
1237
- schema: xe,
1238
- supportedFeatures: H.supportedFeatures,
1308
+ }, W = z("astrato-app-filter-bar"), Tt = {
1309
+ compile: vt,
1310
+ documentation: W.documentation,
1311
+ examples: [W.example],
1312
+ jsonSchema: B(V["astrato-app-filter-bar"], `${W.documentation.title} definition`),
1313
+ schema: V["astrato-app-filter-bar"],
1314
+ supportedFeatures: W.supportedFeatures,
1239
1315
  type: "astrato-app-filter-bar",
1240
1316
  version: 1
1241
- }, U = r(), bt = {
1317
+ };
1318
+ r();
1319
+ var G = t(), Et = {
1242
1320
  combo: {
1243
- coloringType: t.PerEachMeasure,
1321
+ coloringType: n.PerEachMeasure,
1244
1322
  queryLimit: !0,
1245
- schema: Te,
1323
+ schema: de,
1246
1324
  sorting: !0,
1247
1325
  type: "combo",
1248
- vSpecSchema: ee
1326
+ vSpecSchema: Je
1249
1327
  },
1250
1328
  "distribution-gauge": {
1251
- coloringType: t.PerEachMeasure,
1329
+ coloringType: n.PerEachMeasure,
1252
1330
  measureRole: () => e.GAUGE_VALUE,
1253
- schema: g,
1331
+ schema: d,
1254
1332
  type: "distribution-gauge",
1255
- vSpecSchema: d
1333
+ vSpecSchema: Pe
1256
1334
  },
1257
1335
  dot: {
1258
- coloringType: t.Categorical,
1259
- schema: Ie,
1336
+ coloringType: n.Categorical,
1337
+ schema: ee,
1260
1338
  type: "dot",
1261
- vSpecSchema: s
1339
+ vSpecSchema: Re
1262
1340
  },
1263
1341
  gauge: {
1264
- coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? t.Categorical : t.PerEachMeasure,
1342
+ coloringType: (e) => (e.data.dimensions?.length ?? 0) > 0 ? n.Categorical : n.PerEachMeasure,
1265
1343
  measureRole: (t, n) => (n.data.dimensions?.length ?? 0) > 0 && t === 1 ? e.GAUGE_TARGET : e.GAUGE_VALUE,
1266
- schema: we,
1344
+ schema: De,
1267
1345
  type: "gauge",
1268
- vSpecSchema: le
1346
+ vSpecSchema: $e
1269
1347
  },
1270
1348
  heatMap: {
1271
- coloringType: t.Gradient,
1272
- dimensionRole: (e) => e === 0 ? n.HEAT_MAP_HORIZONTAL : n.HEAT_MAP_VERTICAL,
1349
+ coloringType: n.Gradient,
1350
+ dimensionRole: (e) => e === 0 ? i.HEAT_MAP_HORIZONTAL : i.HEAT_MAP_VERTICAL,
1273
1351
  measureRole: (t) => t === 0 ? e.HEAT_MAP_COLOR : e.HEAT_MAP_SIZE,
1274
1352
  queryLimit: !0,
1275
- schema: Oe,
1353
+ schema: m,
1276
1354
  sorting: !0,
1277
1355
  type: "heatMap",
1278
- vSpecSchema: ne
1356
+ vSpecSchema: He
1279
1357
  },
1280
1358
  histogram: {
1281
- coloringType: t.Single,
1282
- schema: Xe,
1359
+ coloringType: n.Single,
1360
+ schema: g,
1283
1361
  type: "histogram",
1284
- vSpecSchema: ae
1362
+ vSpecSchema: Ke
1285
1363
  },
1286
1364
  pie: {
1287
- coloringType: t.Categorical,
1365
+ coloringType: n.Categorical,
1288
1366
  measureRole: (t) => t === 0 ? e.PIE_CHART_SLICE : e.PIE_CHART_LENGTH,
1289
1367
  queryLimit: !0,
1290
- schema: De,
1368
+ schema: fe,
1291
1369
  sorting: !0,
1292
1370
  type: "pie",
1293
- vSpecSchema: ce
1371
+ vSpecSchema: Qe
1294
1372
  },
1295
1373
  radar: {
1296
- conditionalColoringFallbackType: t.Single,
1297
- schema: Re,
1374
+ conditionalColoringFallbackType: n.Single,
1375
+ schema: pe,
1298
1376
  type: "radar",
1299
- vSpecSchema: se
1377
+ vSpecSchema: Xe
1300
1378
  },
1301
1379
  sankey: {
1302
- schema: Le,
1380
+ schema: ae,
1303
1381
  type: "sankey",
1304
- vSpecSchema: fe
1382
+ vSpecSchema: Ue
1305
1383
  },
1306
1384
  scatter: {
1307
- coloringType: t.Categorical,
1308
- dimensionRole: (e) => e === 0 ? n.SCATTER_DIMENSION : n.SCATTER_IMAGE,
1385
+ coloringType: n.Categorical,
1386
+ dimensionRole: (e) => e === 0 ? i.SCATTER_DIMENSION : i.SCATTER_IMAGE,
1309
1387
  measureRole: (t) => [
1310
1388
  e.SCATTER_HORIZONTAL,
1311
1389
  e.SCATTER_VERTICAL,
1312
1390
  e.SCATTER_SIZE
1313
1391
  ][t],
1314
1392
  queryLimit: !0,
1315
- schema: ze,
1393
+ schema: a,
1316
1394
  sorting: !0,
1317
1395
  type: "scatter",
1318
- vSpecSchema: oe
1396
+ vSpecSchema: Ze
1319
1397
  },
1320
1398
  tree: {
1321
1399
  queryLimit: !0,
1322
- schema: Me,
1400
+ schema: ve,
1323
1401
  sorting: !0,
1324
1402
  type: "tree",
1325
- vSpecSchema: l
1403
+ vSpecSchema: Le
1326
1404
  },
1327
1405
  treemap: {
1328
- schema: ye,
1406
+ schema: je,
1329
1407
  type: "treemap",
1330
- vSpecSchema: te
1408
+ vSpecSchema: qe
1331
1409
  },
1332
1410
  waterfall: {
1333
- schema: Ue,
1411
+ schema: we,
1334
1412
  type: "waterfall",
1335
- vSpecSchema: u
1413
+ vSpecSchema: Fe
1336
1414
  },
1337
1415
  "word-cloud": {
1338
- conditionalColoringFallbackType: t.Single,
1339
- schema: et,
1416
+ conditionalColoringFallbackType: n.Single,
1417
+ schema: ke,
1340
1418
  type: "word-cloud",
1341
- vSpecSchema: o
1419
+ vSpecSchema: ze
1342
1420
  }
1343
- }, xt = (e, t) => {
1344
- let n = [], r = t.presentation, i = Be(r?.axes);
1421
+ }, Dt = (e, t) => {
1422
+ let n = [], r = t.presentation, i = me(r?.axes);
1345
1423
  if (i) return Promise.resolve({
1346
1424
  issue: i,
1347
1425
  success: !1
@@ -1349,7 +1427,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1349
1427
  r?.orientation !== void 0 && n.push({
1350
1428
  name: "setOrientation",
1351
1429
  payload: r.orientation
1352
- }), r?.legend && n.push(...We(e.vSpec, r.legend)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
1430
+ }), r?.legend && n.push(...ye(e.vSpec, r.legend)), Object.entries(r?.axes ?? {}).forEach(([e, t]) => {
1353
1431
  t.titleVisible !== void 0 && n.push({
1354
1432
  name: "setShowAxisTitle",
1355
1433
  payload: {
@@ -1380,8 +1458,8 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1380
1458
  axisName: e,
1381
1459
  showAxisLine: t.lineVisible
1382
1460
  }
1383
- }), n.push(...He(e, t)), "scale" in t && t.scale !== void 0 && n.push({
1384
- name: _e.SET_AXIS_SCALE,
1461
+ }), n.push(..._e(e, t)), "scale" in t && t.scale !== void 0 && n.push({
1462
+ name: at.SET_AXIS_SCALE,
1385
1463
  payload: {
1386
1464
  axisName: e,
1387
1465
  scale: t.scale
@@ -1390,26 +1468,26 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1390
1468
  });
1391
1469
  let a = r?.axes?.primaryMeasure?.bands;
1392
1470
  return a && n.push({
1393
- name: he.SET_MEASURE_AXIS_BANDS,
1471
+ name: rt.SET_MEASURE_AXIS_BANDS,
1394
1472
  payload: { bands: a }
1395
1473
  }), (t.data.measures ?? []).forEach((i) => {
1396
1474
  let a = i.dataLabels ?? (t.type !== "combo" || i.seriesType === "bar" ? r?.dataLabels : void 0);
1397
1475
  a && n.push({
1398
1476
  name: "setMeasureDataLabelsShow",
1399
1477
  payload: {
1400
- ...T(e.resolvedRefs[i.ref]),
1478
+ ...w(e.resolvedRefs[i.ref]),
1401
1479
  show: a.visible
1402
1480
  }
1403
1481
  });
1404
1482
  }), y(e, n, ["presentation"]);
1405
- }, St = (e, t) => {
1483
+ }, Ot = (e, t) => {
1406
1484
  let n = [];
1407
1485
  if (t.type === "combo") {
1408
1486
  (t.data.measures ?? []).forEach((t) => {
1409
1487
  t.seriesType && n.push({
1410
- name: ge.SET_MEASURE_GRAPH_TYPE,
1488
+ name: it.SET_MEASURE_GRAPH_TYPE,
1411
1489
  payload: {
1412
- ...T(e.resolvedRefs[t.ref]),
1490
+ ...w(e.resolvedRefs[t.ref]),
1413
1491
  graphType: t.seriesType
1414
1492
  }
1415
1493
  });
@@ -1417,16 +1495,16 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1417
1495
  let r = t.data.measures ?? [], i = r.find((e) => e.seriesType === "bar"), a = r.find((e) => e.seriesType === "bar" && e.axis)?.axis;
1418
1496
  r.forEach((t) => {
1419
1497
  t.seriesType !== "bar" && t.axis && n.push({
1420
- name: m.CHANGE_MEASURE_AXIS,
1498
+ name: nt.CHANGE_MEASURE_AXIS,
1421
1499
  payload: {
1422
- ...T(e.resolvedRefs[t.ref]),
1500
+ ...w(e.resolvedRefs[t.ref]),
1423
1501
  secondaryAxis: t.axis === "secondary"
1424
1502
  }
1425
1503
  });
1426
1504
  }), i && a && n.push({
1427
- name: m.CHANGE_MEASURE_AXIS,
1505
+ name: nt.CHANGE_MEASURE_AXIS,
1428
1506
  payload: {
1429
- ...T(e.resolvedRefs[i.ref]),
1507
+ ...w(e.resolvedRefs[i.ref]),
1430
1508
  secondaryAxis: a === "secondary"
1431
1509
  }
1432
1510
  });
@@ -1434,34 +1512,34 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1434
1512
  if (t.type === "gauge" || t.type === "distribution-gauge") {
1435
1513
  let e = t.type === "distribution-gauge";
1436
1514
  e && n.push({
1437
- name: ve.SET_GAUGE_COMPARISON_MODE,
1515
+ name: ot.SET_GAUGE_COMPARISON_MODE,
1438
1516
  payload: !0
1439
1517
  }), t.presentation?.displayMode && n.push({
1440
- name: e ? ve.SET_GAUGE_BAR_MODE : me.SET_GAUGE_BAR_MODE,
1518
+ name: e ? ot.SET_GAUGE_BAR_MODE : D.SET_GAUGE_BAR_MODE,
1441
1519
  payload: t.presentation.displayMode === "bar"
1442
1520
  }), !e && (t.data.dimensions?.length ?? 0) > 0 && (t.data.measures?.length ?? 0) > 1 && n.push({
1443
- name: me.SET_GAUGE_TARGET_TYPE,
1444
- payload: a.Data
1521
+ name: D.SET_GAUGE_TARGET_TYPE,
1522
+ payload: tt.Data
1445
1523
  });
1446
1524
  }
1447
1525
  if (t.type === "tree" && t.presentation?.layout) {
1448
1526
  let e = t.presentation.layout;
1449
1527
  e.compact !== void 0 && n.push({
1450
- name: p.SET_TREE_COMPACT,
1528
+ name: O.SET_TREE_COMPACT,
1451
1529
  payload: e.compact
1452
1530
  }), e.forceAutoFit !== void 0 && n.push({
1453
- name: p.SET_TREE_FORCE_AUTO_FIT,
1531
+ name: O.SET_TREE_FORCE_AUTO_FIT,
1454
1532
  payload: e.forceAutoFit
1455
1533
  }), e.direction !== void 0 && n.push({
1456
- name: p.SET_TREE_DIRECTION_ORIGIN,
1534
+ name: O.SET_TREE_DIRECTION_ORIGIN,
1457
1535
  payload: e.direction
1458
1536
  }), e.initialExpandedLevels !== void 0 && n.push({
1459
- name: p.SET_TREE_INITIAL_EXPANDED_LEVELS,
1537
+ name: O.SET_TREE_INITIAL_EXPANDED_LEVELS,
1460
1538
  payload: e.initialExpandedLevels
1461
1539
  });
1462
1540
  }
1463
1541
  return y(e, n, ["presentation"]);
1464
- }, Ct = (e, t, n) => {
1542
+ }, kt = (e, t, n) => {
1465
1543
  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);
1466
1544
  return !s || r || !a && !o ? Promise.resolve({
1467
1545
  state: e,
@@ -1470,19 +1548,28 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1470
1548
  name: "setColoringType",
1471
1549
  payload: typeof s == "function" ? s(t) : s
1472
1550
  }], a ? ["presentation", "legend"] : ["presentation", "coloring"]);
1473
- }, wt = async (e, t) => {
1474
- let n = bt[t], r = n.schema.safeParse(e.definition);
1475
- if (!r.success) return {
1476
- issues: w(r.error, e.definition),
1551
+ }, At = async (e, t) => {
1552
+ let n = Et[t], r = E(e);
1553
+ if (r) return {
1554
+ issues: [{
1555
+ code: "invalid_structure",
1556
+ message: r,
1557
+ path: []
1558
+ }],
1477
1559
  success: !1
1478
1560
  };
1479
- let i = n.vSpecSchema.safeParse(e.baseVSpec);
1561
+ let i = n.schema.safeParse(e.definition);
1480
1562
  if (!i.success) return {
1481
- issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: i.error.issues } })],
1563
+ issues: C(i.error, e.definition),
1564
+ success: !1
1565
+ };
1566
+ let a = n.vSpecSchema.safeParse(e.baseVSpec);
1567
+ if (!a.success) return {
1568
+ issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
1482
1569
  success: !1
1483
1570
  };
1484
- let a = i.data;
1485
- if (!C(a, [
1571
+ let s = a.data;
1572
+ if (!S(s, [
1486
1573
  "dimensions",
1487
1574
  "measures",
1488
1575
  "supportingMeasures",
@@ -1491,45 +1578,45 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1491
1578
  issues: [_("non_fresh_base_vspec", ["baseVSpec"], `${t} definitions require a fresh base vSpec.`)],
1492
1579
  success: !1
1493
1580
  };
1494
- let o = r.data, s = o.data.dimensions ?? [], c = o.data.measures ?? [], l = [...s, ...c].map((e) => e.ref), u = [
1495
- ...D(s, e.availableFields, ["data", "dimensions"], "dimension"),
1496
- ...D(c, e.availableFields, ["data", "measures"], "measure"),
1497
- ...Se([{
1498
- items: s,
1581
+ let l = i.data, u = l.data.dimensions ?? [], d = l.data.measures ?? [], f = [...u, ...d].map((e) => e.ref), p = [
1582
+ ...re(u, e.availableFields, ["data", "dimensions"], "dimension"),
1583
+ ...re(d, e.availableFields, ["data", "measures"], "measure"),
1584
+ ...c([{
1585
+ items: u,
1499
1586
  path: ["data", "dimensions"]
1500
1587
  }, {
1501
- items: c,
1588
+ items: d,
1502
1589
  path: ["data", "measures"]
1503
1590
  }]),
1504
- ...nt(o.filterGroup, e.availableFields),
1505
- ...tt(o.sorting, l),
1506
- ...Pe(o.presentation?.coloring, s.map((e) => e.ref), c.map((e) => e.ref)),
1507
- ...t === "histogram" && s[0] ? O(s[0], e.availableFields, [
1591
+ ...Se(l.filterGroup, e.availableFields),
1592
+ ...Me(l.sorting, f),
1593
+ ...se(l.presentation?.coloring, u.map((e) => e.ref), d.map((e) => e.ref)),
1594
+ ...t === "histogram" && u[0] ? o(u[0], e.availableFields, [
1508
1595
  "data",
1509
1596
  "dimensions",
1510
1597
  0
1511
1598
  ], [
1512
- U.FieldType.DECIMAL,
1513
- U.FieldType.FLOAT,
1514
- U.FieldType.INT,
1515
- U.FieldType.REAL
1599
+ G.FieldType.DECIMAL,
1600
+ G.FieldType.FLOAT,
1601
+ G.FieldType.INT,
1602
+ G.FieldType.REAL
1516
1603
  ], "a histogram dimension") : []
1517
1604
  ];
1518
- if (u.length > 0) return {
1519
- issues: u,
1605
+ if (p.length > 0) return {
1606
+ issues: p,
1520
1607
  success: !1
1521
1608
  };
1522
- let d = {
1523
- state: S(e, a),
1609
+ let m = {
1610
+ state: x(e, s),
1524
1611
  success: !0
1525
1612
  };
1526
- for (let [e, t] of s.entries()) {
1527
- if ("issue" in d) return {
1528
- issues: [d.issue],
1613
+ for (let [e, t] of u.entries()) {
1614
+ if ("issue" in m) return {
1615
+ issues: [m.issue],
1529
1616
  success: !1
1530
1617
  };
1531
- let r = n.dimensionRole?.(e, o);
1532
- d = await x(d.state, t, "dimension", "addDimension", {
1618
+ let r = n.dimensionRole?.(e, l);
1619
+ m = await b(m.state, t, "dimension", "addDimension", {
1533
1620
  key: t.fieldKey,
1534
1621
  ...r ? { role: r } : {}
1535
1622
  }, [
@@ -1538,41 +1625,41 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1538
1625
  e
1539
1626
  ]);
1540
1627
  }
1541
- for (let [t, r] of c.entries()) {
1542
- if ("issue" in d) return {
1543
- issues: [d.issue],
1628
+ for (let [t, r] of d.entries()) {
1629
+ if ("issue" in m) return {
1630
+ issues: [m.issue],
1544
1631
  success: !1
1545
1632
  };
1546
- let i = n.measureRole?.(t, o);
1547
- d = await x(d.state, r, "measure", "addMeasure", it(r, e.availableFields, i ? { role: i } : {}), [
1633
+ let i = n.measureRole?.(t, l);
1634
+ m = await b(m.state, r, "measure", "addMeasure", ce(r, e.availableFields, i ? { role: i } : {}), [
1548
1635
  "data",
1549
1636
  "measures",
1550
1637
  t
1551
1638
  ]);
1552
1639
  }
1553
- return "issue" in d || (d = await Ze(d.state, s, "updateDimension", ["data", "dimensions"]), "issue" in d) || (d = await St(d.state, o), "issue" in d) || (d = await Ct(d.state, o, n), "issue" in d) || (d = await $e(d.state, s, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in d) || (d = await Ve(d.state, s, {
1640
+ return "issue" in m || (m = await Oe(m.state, u, "updateDimension", ["data", "dimensions"]), "issue" in m) || (m = await Ot(m.state, l), "issue" in m) || (m = await kt(m.state, l, n), "issue" in m) || (m = await Ae(m.state, u, "setDimensionTemporalGrouping", ["data", "dimensions"]), "issue" in m) || (m = await he(m.state, u, {
1554
1641
  formatString: "setDimensionFormatString",
1555
1642
  formatType: "setDimensionFormatType"
1556
- }, ["data", "dimensions"]), "issue" in d) || (d = await Ve(d.state, c, {
1643
+ }, ["data", "dimensions"]), "issue" in m) || (m = await he(m.state, d, {
1557
1644
  currency: "setMeasureCurrency",
1558
1645
  currencyIsPrefix: "setMeasureCurrencyIsPrefix",
1559
1646
  formatString: "setMeasureFormatString",
1560
1647
  formatType: "setMeasureFormatType",
1561
1648
  negativeType: "setMeasureNegativeType"
1562
- }, ["data", "measures"]), "issue" in d) || (d = await Ge(d.state, o.filterGroup), "issue" in d) || n.sorting && (d = await Ye(d.state, o.sorting, "changeSortOrderAndDirection", "toggleSortingItem"), "issue" in d) || n.queryLimit && o.limiting?.queryLimit !== void 0 && (d = await y(d.state, [{
1649
+ }, ["data", "measures"]), "issue" in m) || (m = await be(m.state, l.filterGroup), "issue" in m) || n.sorting && (m = await Te(m.state, l.sorting, "changeSortOrderAndDirection", "toggleSortingItem"), "issue" in m) || n.queryLimit && l.limiting?.queryLimit !== void 0 && (m = await y(m.state, [{
1563
1650
  name: "setQueryLimit",
1564
- payload: o.limiting.queryLimit
1565
- }], ["limiting"]), "issue" in d) || (d = await xt(d.state, o), "issue" in d) ? {
1566
- issues: [d.issue],
1651
+ payload: l.limiting.queryLimit
1652
+ }], ["limiting"]), "issue" in m) || (m = await Dt(m.state, l), "issue" in m) ? {
1653
+ issues: [m.issue],
1567
1654
  success: !1
1568
- } : (d = await qe(d.state, o.presentation?.coloring), "issue" in d ? {
1569
- issues: [d.issue],
1655
+ } : (m = await Ce(m.state, l.presentation?.coloring), "issue" in m ? {
1656
+ issues: [m.issue],
1570
1657
  success: !1
1571
- } : v(d.state, n.vSpecSchema));
1572
- }, W = (e) => {
1658
+ } : v(m.state, n.vSpecSchema));
1659
+ }, K = (e) => {
1573
1660
  let t = z(e.type);
1574
1661
  return {
1575
- compile: (t) => wt(t, e.type),
1662
+ compile: (t) => At(t, e.type),
1576
1663
  documentation: t.documentation,
1577
1664
  examples: [t.example, ...(t.additionalExamples ?? []).map(({ definition: e }) => e)],
1578
1665
  jsonSchema: B(e.schema, `${t.documentation.title} definition`),
@@ -1581,98 +1668,98 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1581
1668
  type: e.type,
1582
1669
  version: 1
1583
1670
  };
1584
- }, Tt = [
1585
- W({
1586
- schema: Te,
1671
+ }, jt = [
1672
+ K({
1673
+ schema: V.combo,
1587
1674
  type: "combo"
1588
1675
  }),
1589
- W({
1590
- schema: Ie,
1676
+ K({
1677
+ schema: V.dot,
1591
1678
  type: "dot"
1592
1679
  }),
1593
- W({
1594
- schema: ze,
1680
+ K({
1681
+ schema: V.scatter,
1595
1682
  type: "scatter"
1596
1683
  }),
1597
- W({
1598
- schema: Xe,
1684
+ K({
1685
+ schema: V.histogram,
1599
1686
  type: "histogram"
1600
1687
  }),
1601
- W({
1602
- schema: Oe,
1688
+ K({
1689
+ schema: V.heatMap,
1603
1690
  type: "heatMap"
1604
1691
  }),
1605
- W({
1606
- schema: Re,
1692
+ K({
1693
+ schema: V.radar,
1607
1694
  type: "radar"
1608
1695
  }),
1609
- W({
1610
- schema: we,
1696
+ K({
1697
+ schema: V.gauge,
1611
1698
  type: "gauge"
1612
1699
  }),
1613
- W({
1614
- schema: g,
1700
+ K({
1701
+ schema: V["distribution-gauge"],
1615
1702
  type: "distribution-gauge"
1616
1703
  }),
1617
- W({
1618
- schema: De,
1704
+ K({
1705
+ schema: V.pie,
1619
1706
  type: "pie"
1620
1707
  }),
1621
- W({
1622
- schema: Me,
1708
+ K({
1709
+ schema: V.tree,
1623
1710
  type: "tree"
1624
1711
  }),
1625
- W({
1626
- schema: ye,
1712
+ K({
1713
+ schema: V.treemap,
1627
1714
  type: "treemap"
1628
1715
  }),
1629
- W({
1630
- schema: Le,
1716
+ K({
1717
+ schema: V.sankey,
1631
1718
  type: "sankey"
1632
1719
  }),
1633
- W({
1634
- schema: Ue,
1720
+ K({
1721
+ schema: V.waterfall,
1635
1722
  type: "waterfall"
1636
1723
  }),
1637
- W({
1638
- schema: et,
1724
+ K({
1725
+ schema: V["word-cloud"],
1639
1726
  type: "word-cloud"
1640
1727
  })
1641
- ], G = z("filter"), Et = {
1642
- compile: st,
1643
- documentation: G.documentation,
1644
- examples: [G.example],
1645
- jsonSchema: B(Fe, `${G.documentation.title} definition`),
1646
- schema: Fe,
1647
- supportedFeatures: G.supportedFeatures,
1728
+ ], q = z("filter"), Mt = {
1729
+ compile: bt,
1730
+ documentation: q.documentation,
1731
+ examples: [q.example],
1732
+ jsonSchema: B(V.filter, `${q.documentation.title} definition`),
1733
+ schema: V.filter,
1734
+ supportedFeatures: q.supportedFeatures,
1648
1735
  type: "filter",
1649
1736
  version: 1
1650
- }, K = z("line"), Dt = {
1651
- compile: ct,
1652
- documentation: K.documentation,
1653
- examples: [K.example, ...(K.additionalExamples ?? []).map(({ definition: e }) => e)],
1654
- jsonSchema: B(E, `${K.documentation.title} definition`),
1655
- schema: E,
1656
- supportedFeatures: K.supportedFeatures,
1737
+ }, J = z("line"), Nt = {
1738
+ compile: xt,
1739
+ documentation: J.documentation,
1740
+ examples: [J.example, ...(J.additionalExamples ?? []).map(({ definition: e }) => e)],
1741
+ jsonSchema: B(V.line, `${J.documentation.title} definition`),
1742
+ schema: V.line,
1743
+ supportedFeatures: J.supportedFeatures,
1657
1744
  type: "line",
1658
1745
  version: 1
1659
- }, q = z("number"), Ot = {
1660
- compile: lt,
1661
- documentation: q.documentation,
1662
- examples: [q.example],
1663
- jsonSchema: B(Ne, `${q.documentation.title} definition`),
1664
- schema: Ne,
1665
- supportedFeatures: q.supportedFeatures,
1746
+ }, Y = z("number"), Pt = {
1747
+ compile: St,
1748
+ documentation: Y.documentation,
1749
+ examples: [Y.example],
1750
+ jsonSchema: B(V.number, `${Y.documentation.title} definition`),
1751
+ schema: V.number,
1752
+ supportedFeatures: Y.supportedFeatures,
1666
1753
  type: "number",
1667
1754
  version: 1
1668
- }, J = (e, t) => Object.entries(e).flatMap(([e, n]) => n === void 0 || !t[e] ? [] : [{
1755
+ }, X = (e, t) => Object.entries(e).flatMap(([e, n]) => n === void 0 || !t[e] ? [] : [{
1669
1756
  name: t[e],
1670
1757
  payload: n
1671
- }]), kt = {
1758
+ }]), Ft = {
1672
1759
  "atomic-input": {
1673
1760
  createRequests: (e) => {
1674
1761
  let t = e.customLabel;
1675
- return [...J(e, {
1762
+ return [...X(e, {
1676
1763
  hideLabel: "setAtomicInputHideLabel",
1677
1764
  inputType: "setAtomicInputType",
1678
1765
  placeholder: "setAtomicInputPlaceholder",
@@ -1686,21 +1773,21 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1686
1773
  payload: t.text
1687
1774
  }]] : []];
1688
1775
  },
1689
- schema: b,
1776
+ schema: ie,
1690
1777
  type: "atomic-input",
1691
- vSpecSchema: c
1778
+ vSpecSchema: Be
1692
1779
  },
1693
1780
  iframe: {
1694
1781
  createRequests: (e) => [{
1695
1782
  name: "setIframeUrl",
1696
1783
  payload: e.url
1697
1784
  }],
1698
- schema: Ae,
1785
+ schema: p,
1699
1786
  type: "iframe",
1700
- vSpecSchema: pe
1787
+ vSpecSchema: Ye
1701
1788
  },
1702
1789
  image: {
1703
- createRequests: (e) => J(e, {
1790
+ createRequests: (e) => X(e, {
1704
1791
  blur: "setImageBlur",
1705
1792
  fit: "setImageFit",
1706
1793
  opacity: "setImageOpacity",
@@ -1708,12 +1795,12 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1708
1795
  shadow: "setImageShadow",
1709
1796
  source: "setImageSource"
1710
1797
  }),
1711
- schema: je,
1798
+ schema: h,
1712
1799
  type: "image",
1713
- vSpecSchema: re
1800
+ vSpecSchema: Ge
1714
1801
  },
1715
1802
  shape: {
1716
- createRequests: (e) => J(e, {
1803
+ createRequests: (e) => X(e, {
1717
1804
  backgroundColor: "setShapeBackgroundColor",
1718
1805
  backgroundType: "setShapeBackgroundType",
1719
1806
  borderEnabled: "setShapeBorderEnabled",
@@ -1728,9 +1815,9 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1728
1815
  shape: "setShapeType",
1729
1816
  strokeColor: "setShapeBorderColor"
1730
1817
  }),
1731
- schema: Ce,
1818
+ schema: oe,
1732
1819
  type: "shape",
1733
- vSpecSchema: ie
1820
+ vSpecSchema: We
1734
1821
  },
1735
1822
  simpleTextObject: {
1736
1823
  createRequests: (e) => [...e.content === void 0 ? [] : [{
@@ -1739,7 +1826,7 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1739
1826
  textContent: e.content,
1740
1827
  representation: e.representation
1741
1828
  }
1742
- }], ...J(e, {
1829
+ }], ...X(e, {
1743
1830
  align: "setTextHorizontalAlign",
1744
1831
  fontFamily: "setTextFontFamily",
1745
1832
  fontSize: "setTextFontSize",
@@ -1749,56 +1836,74 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1749
1836
  textColor: "setTextColor",
1750
1837
  wordWrap: "setTextWordWrap"
1751
1838
  })],
1752
- schema: h,
1839
+ schema: s,
1753
1840
  type: "simpleTextObject",
1754
- vSpecSchema: ue
1841
+ vSpecSchema: Ve
1755
1842
  }
1756
- }, Y = async (e, t) => {
1757
- let n = kt[t], r = n.schema.safeParse(e.definition);
1758
- if (!r.success) return {
1759
- issues: w(r.error, e.definition),
1843
+ }, Z = async (e, t) => {
1844
+ let n = Ft[t], r = E(e);
1845
+ if (r) return {
1846
+ issues: [{
1847
+ code: "invalid_structure",
1848
+ message: r,
1849
+ path: []
1850
+ }],
1760
1851
  success: !1
1761
1852
  };
1762
- let i = n.vSpecSchema.safeParse(e.baseVSpec);
1853
+ let i = n.schema.safeParse(e.definition);
1763
1854
  if (!i.success) return {
1764
- issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: i.error.issues } })],
1855
+ issues: C(i.error, e.definition),
1856
+ success: !1
1857
+ };
1858
+ let a = n.vSpecSchema.safeParse(e.baseVSpec);
1859
+ if (!a.success) return {
1860
+ issues: [_("invalid_structure", ["baseVSpec"], `Base ${t} vSpec is invalid.`, { details: { issues: a.error.issues } })],
1765
1861
  success: !1
1766
1862
  };
1767
- let a = S(e, i.data), o = r.data.settings, s = await y(a, n.createRequests(o), ["settings"]);
1768
- return "issue" in s ? {
1769
- issues: [s.issue],
1863
+ let o = x(e, a.data), s = i.data.settings, c = await y(o, n.createRequests(s), ["settings"]);
1864
+ return "issue" in c ? {
1865
+ issues: [c.issue],
1770
1866
  success: !1
1771
- } : v(s.state, n.vSpecSchema);
1772
- }, At = async (e) => {
1773
- let t = ke.safeParse(e.definition);
1774
- if (!t.success) return {
1775
- issues: w(t.error, e.definition),
1867
+ } : v(c.state, n.vSpecSchema);
1868
+ }, It = async (e) => {
1869
+ let t = E(e);
1870
+ if (t) return {
1871
+ issues: [{
1872
+ code: "invalid_structure",
1873
+ message: t,
1874
+ path: []
1875
+ }],
1776
1876
  success: !1
1777
1877
  };
1778
- let n = f.safeParse(e.baseVSpec);
1878
+ let n = u.safeParse(e.definition);
1779
1879
  if (!n.success) return {
1780
- issues: [_("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: n.error.issues } })],
1880
+ issues: C(n.error, e.definition),
1781
1881
  success: !1
1782
1882
  };
1783
- let r = n.data;
1784
- if (!C(r, ["dimensions", "measures"])) return {
1883
+ let r = Ie.safeParse(e.baseVSpec);
1884
+ if (!r.success) return {
1885
+ issues: [_("invalid_structure", ["baseVSpec"], "Base date-picker vSpec is invalid.", { details: { issues: r.error.issues } })],
1886
+ success: !1
1887
+ };
1888
+ let i = r.data;
1889
+ if (!S(i, ["dimensions", "measures"])) return {
1785
1890
  issues: [_("non_fresh_base_vspec", ["baseVSpec"], "Date-picker definitions require a fresh vSpec.")],
1786
1891
  success: !1
1787
1892
  };
1788
- let i = t.data, a = [...rt(i.data.field, e.availableFields, ["data", "field"], "dimension"), ...O(i.data.field, e.availableFields, ["data", "field"], [
1789
- U.FieldType.DATE,
1790
- U.FieldType.TIMESTAMP,
1791
- U.FieldType.TIMESTAMP_TZ
1893
+ let a = n.data, s = [...l(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...o(a.data.field, e.availableFields, ["data", "field"], [
1894
+ G.FieldType.DATE,
1895
+ G.FieldType.TIMESTAMP,
1896
+ G.FieldType.TIMESTAMP_TZ
1792
1897
  ], "a date-picker field")];
1793
- if (a.length > 0) return {
1794
- issues: a,
1898
+ if (s.length > 0) return {
1899
+ issues: s,
1795
1900
  success: !1
1796
1901
  };
1797
- let o = await x(S(e, r), i.data.field, "dimension", "addDatePickerDimension", { key: i.data.field.fieldKey }, ["data", "field"]);
1798
- return "issue" in o ? {
1799
- issues: [o.issue],
1902
+ let c = await b(x(e, i), a.data.field, "dimension", "addDatePickerDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
1903
+ return "issue" in c ? {
1904
+ issues: [c.issue],
1800
1905
  success: !1
1801
- } : (o = await y(o.state, J(i.settings ?? {}, {
1906
+ } : (c = await y(c.state, X(a.settings ?? {}, {
1802
1907
  endDateLabel: "setDatePickerEndDateLabel",
1803
1908
  pickerState: "setDatePickerState",
1804
1909
  pickerType: "setDatePickerType",
@@ -1807,58 +1912,67 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1807
1912
  startDateLabel: "setDatePickerStartDateLabel",
1808
1913
  timePickerVisibility: "setDatePickerTimePickerVisibility",
1809
1914
  weekStart: "setDatePickerWeekStart"
1810
- }), ["settings"]), "issue" in o ? {
1811
- issues: [o.issue],
1915
+ }), ["settings"]), "issue" in c ? {
1916
+ issues: [c.issue],
1812
1917
  success: !1
1813
- } : v(o.state, f));
1814
- }, jt = async (e) => {
1815
- let t = Ee.safeParse(e.definition);
1816
- if (!t.success) return {
1817
- issues: w(t.error, e.definition),
1918
+ } : v(c.state, Ie));
1919
+ }, Lt = async (e) => {
1920
+ let t = E(e);
1921
+ if (t) return {
1922
+ issues: [{
1923
+ code: "invalid_structure",
1924
+ message: t,
1925
+ path: []
1926
+ }],
1818
1927
  success: !1
1819
1928
  };
1820
- let n = de.safeParse(e.baseVSpec);
1929
+ let n = Ne.safeParse(e.definition);
1821
1930
  if (!n.success) return {
1822
- issues: [_("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: n.error.issues } })],
1931
+ issues: C(n.error, e.definition),
1932
+ success: !1
1933
+ };
1934
+ let r = T.safeParse(e.baseVSpec);
1935
+ if (!r.success) return {
1936
+ issues: [_("invalid_structure", ["baseVSpec"], "Base slider vSpec is invalid.", { details: { issues: r.error.issues } })],
1823
1937
  success: !1
1824
1938
  };
1825
- let r = n.data;
1826
- if (!C(r, ["dimensions", "measures"])) return {
1939
+ let i = r.data;
1940
+ if (!S(i, ["dimensions", "measures"])) return {
1827
1941
  issues: [_("non_fresh_base_vspec", ["baseVSpec"], "Slider definitions require a fresh vSpec.")],
1828
1942
  success: !1
1829
1943
  };
1830
- let i = t.data, a = [...rt(i.data.field, e.availableFields, ["data", "field"], "dimension"), ...O(i.data.field, e.availableFields, ["data", "field"], [
1831
- U.FieldType.DATE,
1832
- U.FieldType.DECIMAL,
1833
- U.FieldType.FLOAT,
1834
- U.FieldType.INT,
1835
- U.FieldType.REAL,
1836
- U.FieldType.TIMESTAMP,
1837
- U.FieldType.TIMESTAMP_TZ
1944
+ let a = n.data, s = [...l(a.data.field, e.availableFields, ["data", "field"], "dimension"), ...o(a.data.field, e.availableFields, ["data", "field"], [
1945
+ G.FieldType.DATE,
1946
+ G.FieldType.DECIMAL,
1947
+ G.FieldType.FLOAT,
1948
+ G.FieldType.INT,
1949
+ G.FieldType.REAL,
1950
+ G.FieldType.TIMESTAMP,
1951
+ G.FieldType.TIMESTAMP_TZ
1838
1952
  ], "a slider field")];
1839
- if (a.length > 0) return {
1840
- issues: a,
1953
+ if (s.length > 0) return {
1954
+ issues: s,
1841
1955
  success: !1
1842
1956
  };
1843
- let o = await x(S(e, r), i.data.field, "dimension", "addSliderDimension", { key: i.data.field.fieldKey }, ["data", "field"]);
1844
- if ("issue" in o) return {
1845
- issues: [o.issue],
1957
+ let c = await b(x(e, i), a.data.field, "dimension", "addSliderDimension", { key: a.data.field.fieldKey }, ["data", "field"]);
1958
+ if ("issue" in c) return {
1959
+ issues: [c.issue],
1846
1960
  success: !1
1847
1961
  };
1848
- let s = i.settings ?? {};
1849
- return o = await y(o.state, [...s.range === void 0 ? [] : [{
1962
+ let u = a.settings ?? {};
1963
+ return c = await y(c.state, [...u.range === void 0 ? [] : [{
1850
1964
  name: "setSliderManualRangeEnabled",
1851
1965
  payload: !0
1852
- }], ...J(s, {
1966
+ }], ...X(u, {
1853
1967
  layout: "setSliderLayout",
1854
1968
  quickSelect: "setSliderQuickSelect",
1855
1969
  range: "setSliderRange",
1856
1970
  step: "setSliderStep"
1857
- })], ["settings"]), "issue" in o ? {
1858
- issues: [o.issue],
1971
+ })], ["settings"]), "issue" in c ? {
1972
+ issues: [c.issue],
1859
1973
  success: !1
1860
- } : v(o.state, de);
1861
- }, X = (e) => {
1974
+ } : v(c.state, T);
1975
+ }, Q = (e) => {
1862
1976
  let t = z(e.type);
1863
1977
  return {
1864
1978
  compile: e.compile,
@@ -1870,121 +1984,85 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
1870
1984
  type: e.type,
1871
1985
  version: 1
1872
1986
  };
1873
- }, Mt = [
1874
- X({
1875
- compile: At,
1876
- schema: ke,
1987
+ }, Rt = [
1988
+ Q({
1989
+ compile: It,
1990
+ schema: V["date-picker"],
1877
1991
  type: "date-picker"
1878
1992
  }),
1879
- X({
1880
- compile: (e) => Y(e, "iframe"),
1881
- schema: Ae,
1993
+ Q({
1994
+ compile: (e) => Z(e, "iframe"),
1995
+ schema: V.iframe,
1882
1996
  type: "iframe"
1883
1997
  }),
1884
- X({
1885
- compile: (e) => Y(e, "image"),
1886
- schema: je,
1998
+ Q({
1999
+ compile: (e) => Z(e, "image"),
2000
+ schema: V.image,
1887
2001
  type: "image"
1888
2002
  }),
1889
- X({
1890
- compile: (e) => Y(e, "shape"),
1891
- schema: Ce,
2003
+ Q({
2004
+ compile: (e) => Z(e, "shape"),
2005
+ schema: V.shape,
1892
2006
  type: "shape"
1893
2007
  }),
1894
- X({
1895
- compile: (e) => Y(e, "simpleTextObject"),
1896
- schema: h,
2008
+ Q({
2009
+ compile: (e) => Z(e, "simpleTextObject"),
2010
+ schema: V.simpleTextObject,
1897
2011
  type: "simpleTextObject"
1898
2012
  }),
1899
- X({
1900
- compile: (e) => Y(e, "atomic-input"),
1901
- schema: b,
2013
+ Q({
2014
+ compile: (e) => Z(e, "atomic-input"),
2015
+ schema: V["atomic-input"],
1902
2016
  type: "atomic-input"
1903
2017
  }),
1904
- X({
1905
- compile: jt,
1906
- schema: Ee,
2018
+ Q({
2019
+ compile: Lt,
2020
+ schema: V.slider,
1907
2021
  type: "slider"
1908
2022
  })
1909
- ], Z = z("table"), Nt = {
1910
- compile: ut,
1911
- documentation: Z.documentation,
1912
- examples: [Z.example, ...(Z.additionalExamples ?? []).map(({ definition: e }) => e)],
1913
- jsonSchema: B(be, `${Z.documentation.title} definition`),
1914
- schema: be,
1915
- supportedFeatures: Z.supportedFeatures,
2023
+ ], $ = z("table"), zt = {
2024
+ compile: Ct,
2025
+ documentation: $.documentation,
2026
+ examples: [$.example, ...($.additionalExamples ?? []).map(({ definition: e }) => e)],
2027
+ jsonSchema: B(V.table, `${$.documentation.title} definition`),
2028
+ schema: V.table,
2029
+ supportedFeatures: $.supportedFeatures,
1916
2030
  type: "table",
1917
2031
  version: 1
1918
- }, Pt = (e, t) => `${t}:${e}`, Ft = [
1919
- yt,
1920
- vt,
1921
- ...Tt,
1922
- ...Mt,
1923
- Dt,
2032
+ }, Bt = (e, t) => `${t}:${e}`, Vt = [
2033
+ Tt,
2034
+ wt,
2035
+ ...jt,
2036
+ ...Rt,
1924
2037
  Nt,
1925
- Ot,
1926
- Et
1927
- ], It = new Map(Ft.map((e) => [Pt(e.type, e.version), e])), Q = (e, t = 1) => It.get(Pt(e, t)), Lt = () => [...It.values()].map(({ documentation: e, examples: t, jsonSchema: n, supportedFeatures: r, type: i, version: a }) => ({
2038
+ zt,
2039
+ Pt,
2040
+ Mt
2041
+ ], Ht = new Map(Vt.map((e) => [Bt(e.type, e.version), e])), Ut = (e, t = 1) => Ht.get(Bt(e, t)), Wt = () => [...Ht.values()].map(({ documentation: e, examples: t, jsonSchema: n, supportedFeatures: r, type: i, version: a }) => ({
1928
2042
  documentation: e,
1929
2043
  examples: t,
1930
2044
  jsonSchema: n,
1931
2045
  supportedFeatures: r,
1932
2046
  type: i,
1933
2047
  version: a
1934
- })), $ = () => Ft.map((e) => e.type), Rt = (e) => {
1935
- if (typeof e != "object" || !e || Array.isArray(e)) return {
1936
- code: "invalid_structure",
1937
- message: "Visualization definition must be an object.",
1938
- path: []
1939
- };
1940
- let t = "version" in e ? e.version : void 0;
1941
- if (t !== 1) return {
1942
- allowedValues: [1],
1943
- code: "unsupported_version",
1944
- message: `Visualization definition version "${String(t)}" is not supported.`,
1945
- path: ["version"]
1946
- };
1947
- let n = "type" in e ? e.type : void 0;
1948
- if (!(typeof n == "string" && Q(n, t))) return {
1949
- allowedValues: $(),
1950
- code: "unsupported_visualization",
1951
- message: `Visualization type "${String(n)}" is not supported.`,
1952
- path: ["type"]
1953
- };
1954
- }, zt = (e) => {
1955
- let t = Rt(e);
2048
+ })), Gt = async (e) => {
2049
+ let t = E(e);
1956
2050
  if (t) return {
1957
- issues: [t],
1958
- success: !1
1959
- };
1960
- let n = Q(e.type, e.version);
1961
- if (!n) return {
1962
2051
  issues: [{
1963
- allowedValues: $(),
1964
- code: "unsupported_visualization",
1965
- message: "Visualization definition descriptor is not available.",
1966
- path: ["type"]
2052
+ code: "invalid_structure",
2053
+ message: t,
2054
+ path: []
1967
2055
  }],
1968
2056
  success: !1
1969
2057
  };
1970
- let r = n.schema.safeParse(e);
1971
- return r.success ? {
1972
- definition: r.data,
1973
- issues: [],
1974
- success: !0
1975
- } : {
1976
- issues: w(r.error, e),
1977
- success: !1
1978
- };
1979
- }, Bt = async (e) => {
1980
- let t = Rt(e.definition);
1981
- if (t) return {
1982
- issues: [t],
2058
+ let n = gt(e.definition);
2059
+ if (n) return {
2060
+ issues: [n],
1983
2061
  success: !1
1984
2062
  };
1985
- let n = e.definition, r = Q(n.type, n.version), a = k.array(Qe).safeParse(e.availableFields);
2063
+ let r = e.definition, i = Ut(r.type, r.version), a = k.array(ge).safeParse(e.availableFields);
1986
2064
  if (!a.success) return {
1987
- issues: w(a.error, e.availableFields, ["availableFields"]),
2065
+ issues: C(a.error, e.availableFields, ["availableFields"]),
1988
2066
  success: !1
1989
2067
  };
1990
2068
  let o = /* @__PURE__ */ new Map(), s = a.data.flatMap((e, t) => {
@@ -2004,21 +2082,21 @@ var at = async (e) => (await import("./app-filter-bar.compiler-j_CVoWTa.js")).co
2004
2082
  issues: s,
2005
2083
  success: !1
2006
2084
  };
2007
- let c = Ke(a.data), l = k.array(i).safeParse(c);
2008
- return l.success ? r ? r.compile({
2085
+ let c = te(a.data), l = k.array(et).safeParse(c);
2086
+ return l.success ? i ? i.compile({
2009
2087
  ...e,
2010
2088
  availableFields: a.data
2011
2089
  }) : {
2012
2090
  issues: [{
2013
- allowedValues: $(),
2091
+ allowedValues: H(),
2014
2092
  code: "unsupported_visualization",
2015
2093
  message: "Visualization definition descriptor is not available.",
2016
2094
  path: ["type"]
2017
2095
  }],
2018
2096
  success: !1
2019
2097
  } : {
2020
- issues: w(l.error, c, ["availableFields"]),
2098
+ issues: C(l.error, c, ["availableFields"]),
2021
2099
  success: !1
2022
2100
  };
2023
2101
  };
2024
- export { Lt as i, zt as n, Q as r, Bt as t };
2102
+ export { _t as i, Ut as n, Wt as r, Gt as t };