@astrato-io/visualizations 0.10.0 → 0.10.1

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 (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
package/definitions.js CHANGED
@@ -1,3 +1,3 @@
1
- import { M as e } from "./chunks/shared-UitWpq1J.js";
2
- import { i as t, n, r, t as i } from "./chunks/definitions-C4grxhye.js";
1
+ import { M as e } from "./chunks/shared-C_2F90xq.js";
2
+ import { i as t, n, r, t as i } from "./chunks/definitions-CT304NDn.js";
3
3
  export { i as compileVisualizationDefinition, e as createVisualizationAvailableFields, n as getVisualizationDefinitionDescriptor, r as listVisualizationDefinitionDescriptors, t as validateVisualizationDefinition };
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `astrato-app-filter-bar` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `bar` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `combo` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `date-picker` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `distribution-gauge` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `dot` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `filter` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `gauge` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `heatMap` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `histogram` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `iframe` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `image` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Visualization operations reference
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  Read the page for your visualization type to find every operation exposed by its standalone metadata, including its description and complete JSON payload schema. These files are included in the installed package under `docs/operations/`; you can read them without importing JavaScript or loading a chart.
8
8
 
@@ -30,7 +30,7 @@ This reference describes the standalone operation catalog, rather than the small
30
30
  | [`histogram`](./histogram.md) | chart | 53 |
31
31
  | [`iframe`](./iframe.md) | object | 1 |
32
32
  | [`image`](./image.md) | object | 6 |
33
- | [`line`](./line.md) | chart | 150 |
33
+ | [`line`](./line.md) | chart | 151 |
34
34
  | [`number`](./number.md) | object | 72 |
35
35
  | [`pie`](./pie.md) | chart | 121 |
36
36
  | [`radar`](./radar.md) | chart | 81 |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `line` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -137,6 +137,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
137
137
  - [`setQueryLimit`](#setquerylimit)
138
138
  - [`setQueryTimeout`](#setquerytimeout)
139
139
  - [`setResultFilter`](#setresultfilter)
140
+ - [`setSelectOnClick`](#setselectonclick)
140
141
  - [`setShowAxisLabels`](#setshowaxislabels)
141
142
  - [`setShowAxisLine`](#setshowaxisline)
142
143
  - [`setShowAxisTicks`](#setshowaxisticks)
@@ -5758,6 +5759,23 @@ Set one result filter after aggregation. Adds if none, replaces if one, fails if
5758
5759
  }
5759
5760
  ```
5760
5761
 
5762
+ ## `setSelectOnClick`
5763
+
5764
+ Select on click
5765
+
5766
+ Let a click on a point, the line or an axis label select that axis value, as a bar does. Off by default
5767
+
5768
+ **Payload schema**
5769
+
5770
+ ```json
5771
+ {
5772
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5773
+ "description": "Select the axis value when a point, the line or an axis label is clicked",
5774
+ "title": "Line chart select on click schema",
5775
+ "type": "boolean"
5776
+ }
5777
+ ```
5778
+
5761
5779
  ## `setShowAxisLabels`
5762
5780
 
5763
5781
  Show axis labels
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `number` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `pie` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `radar` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `sankey` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `scatter` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `shape` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `simpleTextObject` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `slider` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `table` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `tree` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `treemap` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `waterfall` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `word-cloud` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
package/getters.js CHANGED
@@ -1,6 +1,6 @@
1
- import { r as e } from "./chunks/operations-DZoY50VX.js";
1
+ import { r as e } from "./chunks/operations-DKQWuLL7.js";
2
2
  import { n as t, t as n } from "./chunks/lookup-BWllin0q.js";
3
- import { t as r } from "./chunks/metadata-Bb9pTXrq.js";
3
+ import { t as r } from "./chunks/metadata-BQm_TXI1.js";
4
4
  var i = (e) => typeof e == "object" && !!e && "id" in e && typeof e.id == "string" && "name" in e && typeof e.name == "string", a = (a) => {
5
5
  let o = a.registry ? t(a.instance.type, a.registry) : void 0, s = new Set((o?.getters ?? r(o?.type ?? n(a.instance.type))).names);
6
6
  if (a.getterRequests.forEach((e) => {
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { o as e } from "./chunks/rolldown-runtime-DleVn1XH.js";
2
- import { Cs as t, Qc as n, Qn as r, al as i, el as a, gc as o, nl as s, oa as c } from "./chunks/visualization-filters-CzvFHE6M.js";
2
+ import { $c as t, Qn as n, _c as r, ol as i, rl as a, sa as o, tl as s, ws as c } from "./chunks/visualization-filters-D7i6oh1Z.js";
3
3
  import { n as l } from "./chunks/lookup-BWllin0q.js";
4
- import "./chunks/defaults-cyNhn37t.js";
5
- import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/requirements-NHNrR8Ie.js";
6
- import { l as g, t as _, u as v } from "./chunks/logger-CKRjhSHQ.js";
7
- import { i as y, n as b, t as ee } from "./chunks/extend-preset-D-l9u_we.js";
4
+ import "./chunks/defaults-Dtk7fg3C.js";
5
+ import { a as u, i as d, n as f, o as p, r as m, t as h } from "./chunks/requirements-e8Fe96ag.js";
6
+ import { l as g, t as _, u as v } from "./chunks/logger-DdZpR7xZ.js";
7
+ import { i as y, n as b, t as ee } from "./chunks/extend-preset-D9-JP92b.js";
8
8
  import { BehaviorSubject as x, Observable as S, Subject as C, filter as w, of as te } from "rxjs";
9
9
  var T = (e, t, n) => {
10
10
  let r = e.createElement(t);
@@ -159,32 +159,32 @@ var T = (e, t, n) => {
159
159
  return r.addEventListener("loading", f), r.addEventListener("loadingdone", p), d(!0), f(), () => {
160
160
  a = !1, o = void 0, clearTimeout(s), c.clear(), l.clear(), r.removeEventListener("loading", f), r.removeEventListener("loadingdone", p);
161
161
  };
162
- }, pe = oe(c.fonts.general.fontFamily ?? ""), me = (e) => ({
163
- ...c,
162
+ }, pe = oe(o.fonts.general.fontFamily ?? ""), me = (e) => ({
163
+ ...o,
164
164
  fonts: {
165
- ...c.fonts,
165
+ ...o.fonts,
166
166
  general: {
167
- ...c.fonts.general,
167
+ ...o.fonts.general,
168
168
  fontFamily: e
169
169
  },
170
170
  title: {
171
- ...c.fonts.title,
171
+ ...o.fonts.title,
172
172
  fontFamily: e
173
173
  }
174
174
  },
175
175
  navigation: {
176
- ...c.navigation,
176
+ ...o.navigation,
177
177
  activeItem: {
178
- ...c.navigation.activeItem,
178
+ ...o.navigation.activeItem,
179
179
  font: {
180
- ...c.navigation.activeItem.font,
180
+ ...o.navigation.activeItem.font,
181
181
  fontFamily: e
182
182
  }
183
183
  },
184
184
  item: {
185
- ...c.navigation.item,
185
+ ...o.navigation.item,
186
186
  font: {
187
- ...c.navigation.item.font,
187
+ ...o.navigation.item.font,
188
188
  fontFamily: e
189
189
  }
190
190
  }
@@ -272,21 +272,21 @@ var T = (e, t, n) => {
272
272
  } });
273
273
  return n.set(e, i), i;
274
274
  }, Me = (e) => e.hostServices ?? e.services, Ne = (e) => !!(e && typeof e == "object" && "then" in e && typeof e.then == "function"), Pe = (e) => B(e) ? {
275
- ...r,
275
+ ...n,
276
276
  ...e,
277
277
  calendar: {
278
- ...r.calendar,
278
+ ...n.calendar,
279
279
  ...B(e.calendar) ? e.calendar : {}
280
280
  },
281
281
  formats: {
282
- ...r.formats,
282
+ ...n.formats,
283
283
  ...B(e.formats) ? e.formats : {}
284
284
  },
285
285
  number: {
286
- ...r.number,
286
+ ...n.number,
287
287
  ...B(e.number) ? e.number : {}
288
288
  }
289
- } : r, Fe = (e) => B(e) && "response" in e ? e.response : e, G = 1e3, Ie = 1e5, Le = (e, t) => {
289
+ } : n, Fe = (e) => B(e) && "response" in e ? e.response : e, G = 1e3, Ie = 1e5, Le = (e, t) => {
290
290
  if (e !== void 0 && (!Number.isInteger(e) || e < 1)) throw RangeError(`limit must be a positive integer, received ${e}.`);
291
291
  return Math.min(e ?? t?.limit ?? G, Ie);
292
292
  }, Re = Symbol("exportQueryChanged"), ze = async (e, t) => {
@@ -323,8 +323,8 @@ var T = (e, t, n) => {
323
323
  let t = K(e);
324
324
  return t ? n.includes(t) : !1;
325
325
  }) : e;
326
- }, J = ({ client: e, fontFamily: n = pe, hostBrush: r, instance: i, logger: a, onVSpecChange: o, onGroupedDimensionsChange: s }) => {
327
- let c = i, l = i.groupId ?? "default", u = i.id, d = new C(), f = /* @__PURE__ */ new Map(), p = new C(), m = new C(), h = new C(), _ = new x(null), v = new x({ vSpec: i.vSpec }), y = new x(me(n)), b = new x({}), ee = new C(), T = new C(), E = new x([]), D = Me(e), O = D?.engine, k = O?.fields, A = D?.data, j = D?.model, M = D?.selections, N = c.dataBinding?.fieldMetadata, P, F, ne, re, I, ie, L = !1, ae = /* @__PURE__ */ new Set(), oe = () => {
326
+ }, J = ({ client: e, fontFamily: t = pe, hostBrush: n, instance: r, logger: i, onVSpecChange: a, onGroupedDimensionsChange: o }) => {
327
+ let s = r, l = r.groupId ?? "default", u = r.id, d = new C(), f = /* @__PURE__ */ new Map(), p = new C(), m = new C(), h = new C(), _ = new x(null), v = new x({ vSpec: r.vSpec }), y = new x(me(t)), b = new x({}), ee = new C(), T = new C(), E = new x([]), D = Me(e), O = D?.engine, k = O?.fields, A = D?.data, j = D?.model, M = D?.selections, N = s.dataBinding?.fieldMetadata, P, F, ne, re, I, ie, L = !1, ae = /* @__PURE__ */ new Set(), oe = () => {
328
328
  ae.forEach((e) => e());
329
329
  }, se, ce, R, le, ue = (e) => {
330
330
  let t = k?.getGroupedDimensions?.(e);
@@ -334,12 +334,12 @@ var T = (e, t, n) => {
334
334
  if (P && F === void 0) return P;
335
335
  let t = ue(e);
336
336
  return P ? F?.every((e) => t[e] === P?.[e]) ? (P = void 0, F = void 0, t) : P : t;
337
- }, z = () => ({ vSpec: c.vSpec }), fe = (e) => {
337
+ }, z = () => ({ vSpec: s.vSpec }), fe = (e) => {
338
338
  let t = B(e) ? e : z();
339
- return "vSpec" in t && B(t.vSpec) && (c = {
340
- ...c,
339
+ return "vSpec" in t && B(t.vSpec) && (s = {
340
+ ...s,
341
341
  vSpec: t.vSpec
342
- }, o?.(t.vSpec)), v.next(t), t;
342
+ }, a?.(t.vSpec)), v.next(t), t;
343
343
  }, V = (e, t, n) => {
344
344
  let r = {
345
345
  type: e,
@@ -363,7 +363,7 @@ var T = (e, t, n) => {
363
363
  return Ae.includes(e) && f.set(e, {
364
364
  ...r,
365
365
  replay: !0
366
- }), d.next(r), e === "grouped-dimension-level-changed" && ge(t) && s?.({ ...t }), r;
366
+ }), d.next(r), e === "grouped-dimension-level-changed" && ge(t) && o?.({ ...t }), r;
367
367
  }, H = (e) => {
368
368
  let t = (t) => Te(t, e);
369
369
  return new S((e) => {
@@ -373,7 +373,7 @@ var T = (e, t, n) => {
373
373
  }, Ce = (e) => {
374
374
  V(g.HOST_BRUSH, { fields: e });
375
375
  };
376
- r?.length && Ce(r);
376
+ n?.length && Ce(n);
377
377
  let G = () => {
378
378
  if (!M) throw Error("Standalone visualization selection service is not configured. Provide hostServices.selections.");
379
379
  return M;
@@ -382,7 +382,7 @@ var T = (e, t, n) => {
382
382
  t.next(we(_e(e))), n?.();
383
383
  });
384
384
  }, Ke = Ge(M?.onActiveSelectionChange, J), qe = Ge(M?.onActiveSelectionChangeApplied, Y, () => {
385
- c.type !== "filter" && V(ke);
385
+ s.type !== "filter" && V(ke);
386
386
  }), Je = Ge(M?.onActiveSelectionChangePending, X), Ye = [
387
387
  Ke,
388
388
  qe,
@@ -551,12 +551,12 @@ var T = (e, t, n) => {
551
551
  animable: !0,
552
552
  isPrintMode: !1
553
553
  }, it = (e) => {
554
- let t = { ...c.dataBinding ?? {} }, n = t.queryContext;
554
+ let t = { ...s.dataBinding ?? {} }, n = t.queryContext;
555
555
  return delete t.fieldMetadata, delete t.queryContext, {
556
556
  ...t,
557
557
  context: {
558
558
  ...typeof n == "object" && n && !Array.isArray(n) ? n : {},
559
- objectType: c.type
559
+ objectType: s.type
560
560
  },
561
561
  query: e
562
562
  };
@@ -584,7 +584,7 @@ var T = (e, t, n) => {
584
584
  return e;
585
585
  }, $ = {
586
586
  getAssociatedViews: async (e) => {
587
- if (O?.getAssociatedViews) return O.getAssociatedViews(e, c.dataBinding);
587
+ if (O?.getAssociatedViews) return O.getAssociatedViews(e, s.dataBinding);
588
588
  let t = O?.areViewsConnected ? $.getFields() : [];
589
589
  if (t.length > 0) {
590
590
  let n = K(t.find((t) => Be(t) === e));
@@ -651,7 +651,7 @@ var T = (e, t, n) => {
651
651
  calculationsInProgress: new C(),
652
652
  getObject: () => ({
653
653
  id: u,
654
- type: c.type,
654
+ type: s.type,
655
655
  properties: z(),
656
656
  meta: {}
657
657
  }),
@@ -734,15 +734,15 @@ var T = (e, t, n) => {
734
734
  get chartRequirementsManifest() {
735
735
  return le;
736
736
  },
737
- genericError: (e) => (a?.error && a.error("[astrato-visualizations] visualization reported an error", {
737
+ genericError: (e) => (i?.error && i.error("[astrato-visualizations] visualization reported an error", {
738
738
  instanceId: u,
739
739
  message: e,
740
- type: c.type
740
+ type: s.type
741
741
  }), V("generic-error", { message: e })),
742
742
  showToast: () => void 0,
743
743
  showComponentToast: (e) => (_.next(e), V("component-toast", e)),
744
744
  hideToast: () => (_.next(null), V("component-toast-hidden")),
745
- availableFonts: Ee(n),
745
+ availableFonts: Ee(t),
746
746
  logger: Oe,
747
747
  emitEvent: V,
748
748
  getEvents: H,
@@ -751,7 +751,7 @@ var T = (e, t, n) => {
751
751
  objectId: u,
752
752
  object: {
753
753
  id: u,
754
- type: c.type,
754
+ type: s.type,
755
755
  properties: z(),
756
756
  meta: {}
757
757
  },
@@ -764,26 +764,26 @@ var T = (e, t, n) => {
764
764
  getObjectRegistryURL: async () => null
765
765
  }, pt = async () => {
766
766
  if (L) return null;
767
- let e, n, r;
767
+ let e, t, n;
768
768
  do {
769
- e = I, n = ie;
770
- let t = () => void 0, i = new Promise((e) => {
771
- t = () => e(Re), ae.add(t);
769
+ e = I, t = ie;
770
+ let r = () => void 0, i = new Promise((e) => {
771
+ r = () => e(Re), ae.add(r);
772
772
  });
773
773
  try {
774
- r = await Promise.race([e, i]);
774
+ n = await Promise.race([e, i]);
775
775
  } finally {
776
- ae.delete(t);
776
+ ae.delete(r);
777
777
  }
778
- } while (!L && (r === Re || e !== I));
779
- return L || !B(r) ? null : t({
780
- instanceId: i.id,
781
- query: r,
782
- config: n
778
+ } while (!L && (n === Re || e !== I));
779
+ return L || !B(n) ? null : c({
780
+ instanceId: r.id,
781
+ query: n,
782
+ config: t
783
783
  });
784
784
  };
785
785
  return {
786
- instanceId: i.id,
786
+ instanceId: r.id,
787
787
  groupId: l,
788
788
  vBackendAPI: je(ft),
789
789
  getExportQuery: pt,
@@ -816,14 +816,14 @@ var T = (e, t, n) => {
816
816
  });
817
817
  },
818
818
  updateInstance: (e) => {
819
- let t = e.dataBinding !== c.dataBinding;
820
- c = e, t && (N = e.dataBinding?.fieldMetadata, P = void 0, F = void 0), v.next(z());
819
+ let t = e.dataBinding !== s.dataBinding;
820
+ s = e, t && (N = e.dataBinding?.fieldMetadata, P = void 0, F = void 0), v.next(z());
821
821
  },
822
822
  updateVSpec: (e) => {
823
823
  (ne?.store)?.getState?.().updateVSpec?.(e, u);
824
824
  },
825
825
  refreshTheme: () => {
826
- L || y.next(me(n));
826
+ L || y.next(me(t));
827
827
  },
828
828
  destroy: () => {
829
829
  L = !0, oe(), re?.(), d.complete(), p.complete(), m.complete(), h.complete(), _.complete(), v.complete(), y.complete(), b.complete(), ee.complete(), T.complete(), Ye.forEach((e) => e.unsubscribe()), E.complete(), We.complete(), J.complete(), Y.complete(), X.complete();
@@ -838,13 +838,13 @@ var T = (e, t, n) => {
838
838
  requirements: t.requirements ?? h(e.type),
839
839
  ...n ? {} : { reason: `Visualization ${e.type} vSpec does not currently satisfy the required data items.` }
840
840
  };
841
- }, X = /* @__PURE__ */ e(_(), 1), We = (e) => (n(e) && (e.columns = []), a(e) && (e.dimensions = []), s(e) && (e.measures = []), i(e) && (e.referencedData = {}), e), Ge = (e, t) => ee(We((0, X.default)({}, t.createDefaultVSpec(), b(void 0, e).vSpec)), t.type), Ke = (e, t) => {
841
+ }, X = /* @__PURE__ */ e(_(), 1), We = (e) => (t(e) && (e.columns = []), s(e) && (e.dimensions = []), a(e) && (e.measures = []), i(e) && (e.referencedData = {}), e), Ge = (e, t) => ee(We((0, X.default)({}, t.createDefaultVSpec(), b(void 0, e).vSpec)), t.type), Ke = (e, t) => {
842
842
  if (e.vSpec) {
843
843
  if (e.type === "table") {
844
844
  let t = e.vSpec;
845
845
  return {
846
846
  ...t,
847
- dataStructure: t.dataStructure ?? o.Normal
847
+ dataStructure: t.dataStructure ?? r.Normal
848
848
  };
849
849
  }
850
850
  return e.vSpec;
package/metadata.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as e, r as t, t as n } from "./chunks/metadata-Bb9pTXrq.js";
2
- import { a as r, t as i } from "./chunks/requirements-NHNrR8Ie.js";
1
+ import { n as e, r as t, t as n } from "./chunks/metadata-BQm_TXI1.js";
2
+ import { a as r, t as i } from "./chunks/requirements-e8Fe96ag.js";
3
3
  var a = (r) => ({
4
4
  type: r.type,
5
5
  family: r.family,
package/operations.js CHANGED
@@ -1,9 +1,9 @@
1
- import { Bs as e } from "./chunks/visualization-filters-CzvFHE6M.js";
2
- import { M as t, N as n } from "./chunks/shared-UitWpq1J.js";
3
- import { t as r } from "./chunks/operations-DZoY50VX.js";
4
- import "./chunks/definitions-C4grxhye.js";
1
+ import { Vs as e } from "./chunks/visualization-filters-D7i6oh1Z.js";
2
+ import { M as t, N as n } from "./chunks/shared-C_2F90xq.js";
3
+ import { t as r } from "./chunks/operations-DKQWuLL7.js";
4
+ import "./chunks/definitions-CT304NDn.js";
5
5
  import { n as i, t as a } from "./chunks/lookup-BWllin0q.js";
6
- import { n as o } from "./chunks/metadata-Bb9pTXrq.js";
6
+ import { n as o } from "./chunks/metadata-BQm_TXI1.js";
7
7
  var s = /* @__PURE__ */ new WeakMap(), c = (e, t) => {
8
8
  let n = s.get(e);
9
9
  n || (n = /* @__PURE__ */ new Map(), s.set(e, n));