@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,14 +1,14 @@
1
- import { _c as e, r as t, us as n, wc as r } from "./visualization-filters-D7i6oh1Z.js";
2
- import { A as i, C as a, E as o, O as s, P as c, T as l, d as u, g as d, h as f, i as p, o as m, p as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./shared-C_2F90xq.js";
3
- import { Qp as S, jp as C } from "./handlers-C6CZ0XJA.js";
4
- import { p as w } from "./operations-DKQWuLL7.js";
5
- t();
1
+ import { _s as e, jc as t, r as n, wc as r } from "./visualization-filters-BwS0xUqs.js";
2
+ import { C as i, D as a, F as o, T as s, d as c, g as l, h as u, i as d, j as f, k as p, o as m, p as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./shared-DyqxOie0.js";
3
+ import { Np as S, em as C } from "./handlers-C63NVo7i.js";
4
+ import { p as w } from "./operations-COl9wgqi.js";
5
+ n();
6
6
  var T = {
7
- all: n.ShowAll,
8
- auto: n.Auto,
9
- horizontal: n.ShowHorizontal,
10
- none: n.NoBorders,
11
- vertical: n.ShowVertical
7
+ all: e.ShowAll,
8
+ auto: e.Auto,
9
+ horizontal: e.ShowHorizontal,
10
+ none: e.NoBorders,
11
+ vertical: e.ShowVertical
12
12
  }, E = (e) => e.flatMap(([e, t]) => t === void 0 ? [] : [{
13
13
  name: e,
14
14
  payload: t
@@ -115,19 +115,19 @@ var T = {
115
115
  ])),
116
116
  path: ["data", "measures"]
117
117
  }
118
- ], L = (t) => {
119
- if (!(!("structure" in t) || t.structure === void 0)) switch (t.structure) {
120
- case "normal": return e.Normal;
121
- case "expandable": return e.Hierarchical;
122
- case "pivot": return e.Pivot;
118
+ ], L = (e) => {
119
+ if (!(!("structure" in e) || e.structure === void 0)) switch (e.structure) {
120
+ case "normal": return r.Normal;
121
+ case "expandable": return r.Hierarchical;
122
+ case "pivot": return r.Pivot;
123
123
  }
124
- }, R = (e, t) => f(e, t.flatMap((t) => t.role !== "dimension" || t.showNullValues === void 0 ? [] : [{
124
+ }, R = (e, t) => u(e, t.flatMap((t) => t.role !== "dimension" || t.showNullValues === void 0 ? [] : [{
125
125
  name: w.SET_COLUMN_SHOW_NULL_VALUES,
126
126
  payload: {
127
127
  ...x(e.resolvedRefs[t.ref]),
128
128
  showNullValues: t.showNullValues
129
129
  }
130
- }]), ["data"]), z = (e, t, n) => {
130
+ }]), ["data"]), z = (e, n, r) => {
131
131
  let i = [
132
132
  "formatType",
133
133
  "formatString",
@@ -135,15 +135,15 @@ var T = {
135
135
  "currencyIsPrefix",
136
136
  "negativeType"
137
137
  ];
138
- return f(e, t.flatMap((t) => {
139
- let a = e.availableFields.find((e) => e.key === t.fieldKey), o = a ? r(a) : t.fieldKey;
138
+ return u(e, n.flatMap((n) => {
139
+ let a = e.availableFields.find((e) => e.key === n.fieldKey), o = a ? t(a) : n.fieldKey;
140
140
  return i.flatMap((e) => {
141
- let r = t.format?.[e], i = n[e];
142
- return r !== void 0 && i ? [h(i, o, t.ref, t.path, e, r, t.role)] : [];
141
+ let t = n.format?.[e], i = r[e];
142
+ return t !== void 0 && i ? [h(i, o, n.ref, n.path, e, t, n.role)] : [];
143
143
  });
144
144
  }), ["data"]);
145
145
  }, B = async (e) => {
146
- let t = C(e);
146
+ let t = S(e);
147
147
  if (t) return {
148
148
  issues: [{
149
149
  code: "invalid_structure",
@@ -152,14 +152,14 @@ var T = {
152
152
  }],
153
153
  success: !1
154
154
  };
155
- let n = c.safeParse(e.definition);
155
+ let n = o.safeParse(e.definition);
156
156
  if (!n.success) return {
157
- issues: l(n.error, e.definition),
157
+ issues: s(n.error, e.definition),
158
158
  success: !1
159
159
  };
160
- let r = S.safeParse(e.baseVSpec);
160
+ let r = C.safeParse(e.baseVSpec);
161
161
  if (!r.success) return {
162
- issues: [u("invalid_structure", ["baseVSpec"], "Base table vSpec is invalid.", { details: { issues: r.error.issues } })],
162
+ issues: [c("invalid_structure", ["baseVSpec"], "Base table vSpec is invalid.", { details: { issues: r.error.issues } })],
163
163
  success: !1
164
164
  };
165
165
  let h = r.data;
@@ -170,13 +170,13 @@ var T = {
170
170
  "supportingMeasures",
171
171
  "sortingMeasures"
172
172
  ])) return {
173
- issues: [u("non_fresh_base_vspec", ["baseVSpec"], "Table definitions require a fresh base vSpec.")],
173
+ issues: [c("non_fresh_base_vspec", ["baseVSpec"], "Table definitions require a fresh base vSpec.")],
174
174
  success: !1
175
175
  };
176
176
  let x = n.data, T = I(x.data), E = T.flatMap((e) => e.items), D = [
177
- ...E.flatMap((t) => s(t, e.availableFields, t.path, t.role)),
178
- ...a(T),
179
- ...i(x.filterGroup, e.availableFields),
177
+ ...E.flatMap((t) => p(t, e.availableFields, t.path, t.role)),
178
+ ...i(T),
179
+ ...f(x.filterGroup, e.availableFields),
180
180
  ...b(x.sorting, E.map((e) => e.ref))
181
181
  ];
182
182
  if (D.length) return {
@@ -187,7 +187,7 @@ var T = {
187
187
  state: v(e, h),
188
188
  success: !0
189
189
  }, k = L(x.data);
190
- k !== void 0 && (O = await f(O.state, [{
190
+ k !== void 0 && (O = await u(O.state, [{
191
191
  name: w.SET_TABLE_DATA_STRUCTURE,
192
192
  payload: k
193
193
  }], ["data", "structure"]));
@@ -196,7 +196,7 @@ var T = {
196
196
  issues: [O.issue],
197
197
  success: !1
198
198
  };
199
- O = await _(O.state, t, t.role, w.ADD_COLUMN, t.role === "measure" ? o(t, e.availableFields, { columnType: t.role }) : {
199
+ O = await _(O.state, t, t.role, w.ADD_COLUMN, t.role === "measure" ? a(t, e.availableFields, { columnType: t.role }) : {
200
200
  columnType: t.role,
201
201
  key: t.fieldKey,
202
202
  topDimension: t.topDimension
@@ -208,15 +208,15 @@ var T = {
208
208
  formatString: w.SET_COLUMN_FORMAT_STRING,
209
209
  formatType: w.SET_COLUMN_FORMAT_TYPE,
210
210
  negativeType: w.SET_COLUMN_NEGATIVE_TYPE
211
- }), "issue" in O) || (O = await f(O.state, N(x.presentation), ["presentation"]), "issue" in O) || (O = await p(O.state, x.filterGroup), "issue" in O) || (O = await m(O.state, x.sorting, w.CHANGE_SORT_ORDER_AND_DIRECTION, w.TOGGLE_SORTING_ITEM), "issue" in O) || (O = await f(O.state, x.limiting?.queryLimit === void 0 ? [] : [{
211
+ }), "issue" in O) || (O = await u(O.state, N(x.presentation), ["presentation"]), "issue" in O) || (O = await d(O.state, x.filterGroup), "issue" in O) || (O = await m(O.state, x.sorting, w.CHANGE_SORT_ORDER_AND_DIRECTION, w.TOGGLE_SORTING_ITEM), "issue" in O) || (O = await u(O.state, x.limiting?.queryLimit === void 0 ? [] : [{
212
212
  name: w.SET_QUERY_LIMIT,
213
213
  payload: x.limiting.queryLimit
214
214
  }], ["limiting"]), "issue" in O) ? {
215
215
  issues: [O.issue],
216
216
  success: !1
217
- } : (O = await f(O.state, P(x.totals), ["totals"]), "issue" in O ? {
217
+ } : (O = await u(O.state, P(x.totals), ["totals"]), "issue" in O ? {
218
218
  issues: [O.issue],
219
219
  success: !1
220
- } : d(O.state, S));
220
+ } : l(O.state, C));
221
221
  };
222
222
  export { B as compileTableVisualizationDefinition };
@@ -1,5 +1,5 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { F as t, ci as n } from "./utils-DganVptf.js";
2
+ import { I as t, li as n } from "./utils-BdJrEeIQ.js";
3
3
  var r = /* @__PURE__ */ e(n()), i = (e) => {
4
4
  let n = t(), i = (0, r.useMemo)(() => n.reduce((e, t) => (e[t.key] = t.name, e), {}), e ?? [n]);
5
5
  return (e) => i[e];