@astrato-io/visualizations 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +129 -4
  3. package/VISUALIZATION_DEFINITIONS.md +3 -1
  4. package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
  5. package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
  6. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  7. package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
  8. package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
  9. package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
  10. package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
  11. package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
  12. package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
  13. package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
  14. package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
  15. package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
  16. package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
  17. package/chunks/defaults-CMFqXvaJ.js +3 -0
  18. package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
  19. package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
  20. package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
  21. package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
  22. package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
  23. package/chunks/handlers-CyYFSfhM.js +15393 -0
  24. package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
  25. package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
  26. package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
  27. package/chunks/line.compiler-B-4H55_T.js +203 -0
  28. package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
  29. package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
  30. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  31. package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
  32. package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
  33. package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
  34. package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
  35. package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
  36. package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
  37. package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
  38. package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
  39. package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
  40. package/chunks/standalone-B3hRGgYi.js +773 -0
  41. package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
  42. package/chunks/standalone-BPTT8XEu.js +424 -0
  43. package/chunks/standalone-BgAeHROc.js +2 -0
  44. package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
  45. package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
  46. package/chunks/standalone-C0If-V6O.js +773 -0
  47. package/chunks/standalone-C1TOyflX.js +287 -0
  48. package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
  49. package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
  50. package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
  51. package/chunks/standalone-CNf-oA2U.js +355 -0
  52. package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
  53. package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
  54. package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
  55. package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
  56. package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
  57. package/chunks/standalone-Dbn3jSH6.js +690 -0
  58. package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
  59. package/chunks/standalone-DwCIA0UG.js +1057 -0
  60. package/chunks/standalone-Dz13tl3P.js +357 -0
  61. package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
  62. package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
  63. package/chunks/standalone-ejTz66P3.js +2 -0
  64. package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
  65. package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
  66. package/chunks/standalone-vGGR6Vcn.js +6 -0
  67. package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
  68. package/chunks/theme-MYp6Rj1J.js +232 -0
  69. package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
  70. package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
  71. package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
  72. package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
  73. package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +115 -32
  77. package/docs/operations/combo.md +50 -17
  78. package/docs/operations/date-picker.md +4 -4
  79. package/docs/operations/distribution-gauge.md +18 -16
  80. package/docs/operations/dot.md +107 -24
  81. package/docs/operations/filter.md +10 -8
  82. package/docs/operations/gauge.md +20 -18
  83. package/docs/operations/heatMap.md +73 -21
  84. package/docs/operations/histogram.md +45 -12
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +11 -11
  88. package/docs/operations/line.md +57 -24
  89. package/docs/operations/map.md +16 -16
  90. package/docs/operations/number.md +10 -9
  91. package/docs/operations/pie.md +23 -21
  92. package/docs/operations/radar.md +13 -11
  93. package/docs/operations/sankey.md +19 -17
  94. package/docs/operations/scatter.md +111 -28
  95. package/docs/operations/shape.md +5 -5
  96. package/docs/operations/simpleTextObject.md +4 -4
  97. package/docs/operations/slider.md +1 -1
  98. package/docs/operations/table.md +27 -25
  99. package/docs/operations/tree.md +5 -3
  100. package/docs/operations/treemap.md +70 -18
  101. package/docs/operations/waterfall.md +40 -7
  102. package/docs/operations/word-cloud.md +69 -17
  103. package/getters.js +2 -2
  104. package/index.js +474 -525
  105. package/metadata.js +2 -2
  106. package/operations.js +24 -17
  107. package/package.json +71 -72
  108. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
  110. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
  112. package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
  113. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  115. package/src/index.d.ts +1 -1
  116. package/src/operations/index.d.ts +11 -1
  117. package/src/types.d.ts +166 -1
  118. package/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
  119. package/chunks/category-axis-D1OVyMrr.js +0 -20
  120. package/chunks/color-rules-DYJL4fIW.js +0 -15
  121. package/chunks/color-settings-DJFoFTip.js +0 -5
  122. package/chunks/defaults-B5_8S-J-.js +0 -3
  123. package/chunks/handlers-C63NVo7i.js +0 -15433
  124. package/chunks/line.compiler-DCv3h42f.js +0 -198
  125. package/chunks/standalone-06i1wmIX.js +0 -6
  126. package/chunks/standalone-B6zUvxNQ.js +0 -357
  127. package/chunks/standalone-Be5APcVv.js +0 -762
  128. package/chunks/standalone-BuXpKMnc.js +0 -2
  129. package/chunks/standalone-CUGt2FUF.js +0 -2
  130. package/chunks/standalone-CnF2OYLQ.js +0 -355
  131. package/chunks/standalone-CznEEiq3.js +0 -422
  132. package/chunks/standalone-DcuE8KBa.js +0 -287
  133. package/chunks/standalone-pCrzBiTy.js +0 -773
  134. package/chunks/standalone-qrZaimgC.js +0 -689
  135. package/chunks/standalone-yqDJ8h3K.js +0 -1012
@@ -1,41 +1,41 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cc as n, Ec as r, Hc as i, N as a, Na as o, Pi as s, Uo as c, fa as l, fc as u, fs as d, ln as f, os as p, ri as m } from "./visualization-filters-BwS0xUqs.js";
3
- import { Br as h, I as g, Mt as _, P as v, s as y } from "./utils-BdJrEeIQ.js";
4
- import { v_ as ee } from "./handlers-C63NVo7i.js";
5
- import "./logger-Bc-DqDM_.js";
6
- import { $t as b, Cn as x, L as S, Mt as te, Pt as ne, R as C, Rt as w, Sn as T, Tn as E, _ as re, bt as D, i as ie, jn as O, ln as k } from "./escobar-cQ1eQ64G.js";
7
- import { t as ae } from "./coloring-BOiP0rmn.js";
2
+ import { $c as n, Ls as r, Sa as i, Ua as a, Ui as o, V as s, Xc as c, _n as l, di as u, hl as d, js as f, ms as p, zc as m } from "./visualization-filters-B9qik5_K.js";
3
+ import { I as h, Mt as g, P as _, Ur as v, s as y } from "./utils-CUKgR7it.js";
4
+ import { x_ as ee } from "./handlers-CyYFSfhM.js";
5
+ import "./logger-Cioob-QV.js";
6
+ import { Cn as b, En as x, F as S, Ft as te, Mn as C, P as w, _ as T, _t as E, en as D, i as ne, jt as re, kt as ie, un as O, wn as k } from "./escobar-CMvphKSK.js";
7
+ import { t as ae } from "./coloring-Cd6p0GQJ.js";
8
8
  import { t as oe } from "./set-coloring-datafield-B3uIS1Pe.js";
9
- import { t as se } from "./_createAggregator-CFmH6gUN.js";
10
- import { t as A } from "./range-CMJ5yc5Z.js";
9
+ import { t as se } from "./_createAggregator-BA8_iU9q.js";
10
+ import { t as A } from "./range-Dmwp9kVB.js";
11
11
  var j = (e, t, n) => {
12
- let r = e.dimensions.filter((e) => m(e)), a = e.measures.filter((e) => m(e)), o = i(r[0]?.dataItem), s = i(r[1]?.dataItem), c = {
12
+ let r = e.dimensions.filter((e) => u(e)), i = e.measures.filter((e) => u(e)), a = d(r[0]?.dataItem), o = d(r[1]?.dataItem), s = {
13
13
  key: "defaultCollection",
14
14
  data: { extract: [{
15
- field: o,
15
+ field: a,
16
16
  props: {
17
- score: { field: i(a[0]?.dataItem) },
18
- attribute: { field: s || o },
19
- ...s ? { stackedDimension: { field: o } } : {}
17
+ score: { field: d(i[0]?.dataItem) },
18
+ attribute: { field: o || a },
19
+ ...o ? { stackedDimension: { field: a } } : {}
20
20
  }
21
21
  }] }
22
22
  };
23
23
  return {
24
24
  ...n,
25
- collections: [c]
25
+ collections: [s]
26
26
  };
27
27
  }, M = (e, t, n) => {
28
28
  let r = {
29
29
  key: "defaultCollection",
30
- data: { extract: e.measures.filter((e) => m(e)).map((e) => {
31
- let t = i(e.dataItem);
30
+ data: { extract: e.measures.filter((e) => u(e)).map((e) => {
31
+ let t = d(e.dataItem);
32
32
  return {
33
33
  field: t,
34
34
  props: {
35
35
  score: { field: t },
36
36
  attribute: e.label,
37
37
  color: t,
38
- label: f(e) || e.label || e.dataItem.name
38
+ label: l(e) || e.label || e.dataItem.name
39
39
  },
40
40
  getValue: () => e.label
41
41
  };
@@ -45,100 +45,100 @@ var j = (e, t, n) => {
45
45
  ...n,
46
46
  collections: [r]
47
47
  };
48
- }, N = (e, ...t) => e.dimensions.filter((e) => m(e)).length ? j(e, ...t) : M(e, ...t), P = (e, t, n, a, o, c) => {
49
- let l = i(e.dimensions.filter((e) => m(e))[1]?.dataItem), u = new ae(e, t, o?.[0]?.itemsNotAffectedByFiltering), d = e.coloring?.color == null && e.coloring?.type === r.Single, f = {
50
- type: O.Radar,
51
- key: `${O.Radar}`,
52
- layout: { displayOrder: b.VisualizationElement },
48
+ }, N = (e, ...t) => e.dimensions.filter((e) => u(e)).length ? j(e, ...t) : M(e, ...t), P = (e, t, r, i, a, s) => {
49
+ let c = d(e.dimensions.filter((e) => u(e))[1]?.dataItem), l = new ae(e, t, a?.[0]?.itemsNotAffectedByFiltering), f = e.coloring?.color == null && e.coloring?.type === n.Single, p = {
50
+ type: C.Radar,
51
+ key: `${C.Radar}`,
52
+ layout: { displayOrder: D.VisualizationElement },
53
53
  data: { collection: "defaultCollection" },
54
54
  settings: {
55
55
  dimensionAxis: e.dimensionAxis,
56
56
  measureAxis: e.measureAxis,
57
57
  gridType: e.gridType,
58
58
  lineType: e.lineType,
59
- isDefaultColor: d,
60
- isSingleDimension: !l,
59
+ isDefaultColor: f,
60
+ isSingleDimension: !c,
61
61
  scale: "attributes",
62
- categoricalOpacity: e.coloring?.categoricalColorTransparency ?? s.categoricalColorTransparency,
62
+ categoricalOpacity: e.coloring?.categoricalColorTransparency ?? o.categoricalColorTransparency,
63
63
  pointStyles: e.pointStyles,
64
- fill: u.getColorDefinition({
65
- overwriteSources: [u.MAIN_FIELD],
64
+ fill: l.getColorDefinition({
65
+ overwriteSources: [l.MAIN_FIELD],
66
66
  ref: "color"
67
67
  })
68
68
  },
69
- brush: k(F(e), c, { valuePickerMode: c?.valuePickerMode })
69
+ brush: O(F(e), s, { valuePickerMode: s?.valuePickerMode })
70
70
  };
71
71
  return {
72
- ...n,
73
- components: [...n.components, f]
72
+ ...r,
73
+ components: [...r.components, p]
74
74
  };
75
75
  };
76
76
  function F(e) {
77
- let t = [], n = e.dimensions.filter((e) => m(e));
77
+ let t = [], n = e.dimensions.filter((e) => u(e));
78
78
  return n[0] && t.push(""), n[1] && t.push("attribute"), t;
79
79
  }
80
80
  var I = (e, t, n) => {
81
- let r = e.dimensions.filter((e) => m(e)), a = e.measures.filter((e) => m(e)), o = i(r[0]?.dataItem), s = i(r[1]?.dataItem), c = i(a[0]?.dataItem);
81
+ let r = e.dimensions.filter((e) => u(e)), i = e.measures.filter((e) => u(e)), a = d(r[0]?.dataItem), o = d(r[1]?.dataItem), s = d(i[0]?.dataItem);
82
82
  return {
83
83
  ...n,
84
84
  scales: {
85
85
  ...n.scales,
86
86
  ...z(e, t, n),
87
87
  values: {
88
- data: { field: c },
88
+ data: { field: s },
89
89
  include: [0],
90
90
  nice: !0
91
91
  },
92
- attributes: { data: { extract: { field: s || o } } }
92
+ attributes: { data: { extract: { field: o || a } } }
93
93
  }
94
94
  };
95
95
  }, L = (e, t, n) => {
96
- let r = e.measures.filter((e) => m(e));
96
+ let r = e.measures.filter((e) => u(e));
97
97
  return {
98
98
  ...n,
99
99
  scales: {
100
100
  ...n.scales,
101
101
  ...B(e, t),
102
102
  values: {
103
- data: { fields: r.map((e) => i(e.dataItem)) },
103
+ data: { fields: r.map((e) => d(e.dataItem)) },
104
104
  include: [0],
105
105
  nice: !0
106
106
  },
107
107
  attributes: {
108
- type: E.Band,
109
- data: r.map((e) => f(e) || e.label || e.dataItem.name)
108
+ type: x.Band,
109
+ data: r.map((e) => l(e) || e.label || e.dataItem.name)
110
110
  }
111
111
  }
112
112
  };
113
- }, R = (e, ...t) => e.dimensions.filter((e) => m(e)).length ? I(e, ...t) : L(e, ...t);
114
- function z(e, t, n) {
115
- let a = i(e.dimensions.filter((e) => m(e))[0]?.dataItem);
116
- switch (te(n, 0, { color: { field: a } }), e.coloring?.type) {
117
- case r.Single: return { [r.Single]: {
118
- data: { extract: { field: a } },
119
- type: E.CategoricalColor,
113
+ }, R = (e, ...t) => e.dimensions.filter((e) => u(e)).length ? I(e, ...t) : L(e, ...t);
114
+ function z(e, t, r) {
115
+ let i = d(e.dimensions.filter((e) => u(e))[0]?.dataItem);
116
+ switch (ie(r, 0, { color: { field: i } }), e.coloring?.type) {
117
+ case n.Single: return { [n.Single]: {
118
+ data: { extract: { field: i } },
119
+ type: x.CategoricalColor,
120
120
  range: [e?.coloring?.color ?? t.colors.brandColors[0]]
121
121
  } };
122
- case r.Categorical: return { [r.Categorical]: w(oe(e, a), t, a, {
123
- customPalette: e.coloring.customPalette ?? s.customPalette,
122
+ case n.Categorical: return { [n.Categorical]: te(oe(e, i), t, i, {
123
+ customPalette: e.coloring.customPalette ?? o.customPalette,
124
124
  palette: e.coloring.palette,
125
125
  sortOrder: e.coloring.sortOrder
126
- }, n.collections) };
126
+ }, r.collections) };
127
127
  }
128
128
  return {};
129
129
  }
130
130
  function B(e, t) {
131
- let n = e.measures.filter((e) => m(e));
132
- return { [r.Single]: {
133
- data: { items: n.map((e) => {
134
- let t = f(e) || e.label || e.dataItem.name;
131
+ let r = e.measures.filter((e) => u(e));
132
+ return { [n.Single]: {
133
+ data: { items: r.map((e) => {
134
+ let t = l(e) || e.label || e.dataItem.name;
135
135
  return {
136
- value: i(e.dataItem),
136
+ value: d(e.dataItem),
137
137
  label: t
138
138
  };
139
139
  }) },
140
- type: E.CategoricalColor,
141
- range: Array(n.length).fill(e?.coloring?.color ?? t.colors.brandColors[0]),
140
+ type: x.CategoricalColor,
141
+ range: Array(r.length).fill(e?.coloring?.color ?? t.colors.brandColors[0]),
142
142
  value: (e) => `${e.datum.value.value}`,
143
143
  label: (e) => `${e.datum.value.label}`
144
144
  } };
@@ -167,8 +167,8 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
167
167
  evenCustomBackgroundColor: null,
168
168
  oddCustomBackgroundColor: null
169
169
  },
170
- gridType: d.Circles,
171
- lineType: p.Straight,
170
+ gridType: r.Circles,
171
+ lineType: f.Straight,
172
172
  isSingleDimension: !1,
173
173
  scale: "attributes",
174
174
  pointStyles: {
@@ -180,17 +180,17 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
180
180
  } }, ce = (e, t, n, r, i, a) => {
181
181
  if (!e.dimensionAxis.showLabel) return n;
182
182
  let o = {
183
- type: O.Labels,
183
+ type: C.Labels,
184
184
  key: "radar-labels",
185
185
  animations: { enabled: !1 },
186
- layout: { displayOrder: b.Labels },
186
+ layout: { displayOrder: D.Labels },
187
187
  settings: { sources: [{
188
- component: `${O.Radar}`,
188
+ component: `${C.Radar}`,
189
189
  selector: `.${H}`,
190
190
  strategy: {
191
191
  type: "slice",
192
192
  settings: {
193
- fontSize: T.dataPoint.valueFontSize,
193
+ fontSize: b.dataPoint.valueFontSize,
194
194
  fontFamily: t.fonts.general.fontFamily,
195
195
  labels: [{
196
196
  linkData: ({ data: e }) => e,
@@ -203,14 +203,14 @@ var V = .9, H = "attributesLines", U = "dataPoint", W = "white", G = "rgba(128,
203
203
  }
204
204
  }
205
205
  }] },
206
- brush: k([""], a, { valuePickerMode: a?.valuePickerMode })
206
+ brush: O([""], a, { valuePickerMode: a?.valuePickerMode })
207
207
  };
208
208
  return {
209
209
  ...n,
210
210
  components: [...n.components, o]
211
211
  };
212
212
  }, le = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
213
- var n = a(), r = se(), i = Object.prototype.hasOwnProperty;
213
+ var n = s(), r = se(), i = Object.prototype.hasOwnProperty;
214
214
  t.exports = r(function(e, t, r) {
215
215
  i.call(e, r) ? e[r].push(t) : n(e, r, [t]);
216
216
  });
@@ -249,14 +249,14 @@ function fe(e) {
249
249
  function J(e, t) {
250
250
  let n = [], { cp1: r, cp2: i } = pe(e), a = "M ";
251
251
  e.forEach(({ x: o, y: s, ...c }, l) => {
252
- if (a += `${o} ${s} `, t.lineType === p.Curve) {
252
+ if (a += `${o} ${s} `, t.lineType === f.Curve) {
253
253
  let t = (l + 1) % e.length;
254
254
  a += `C ${i[l].x} ${i[l].y}, ${r[t].x} ${r[t].y}, `;
255
255
  }
256
256
  if (!t.isGrid && "tooltip" in c) {
257
257
  let { fill: e, pointStyles: r } = t;
258
258
  n.push({
259
- type: x.Circle,
259
+ type: k.Circle,
260
260
  tag: U,
261
261
  cx: o,
262
262
  cy: s,
@@ -268,10 +268,10 @@ function J(e, t) {
268
268
  data: c?.data
269
269
  });
270
270
  }
271
- }), t.lineType === p.Curve && (a += `${e[0].x} ${e[0].y}`);
271
+ }), t.lineType === f.Curve && (a += `${e[0].x} ${e[0].y}`);
272
272
  let o, s;
273
273
  t.isGrid ? (o = t.lineStroke, s = t.lineStrokeWidth) : (o = me(t.fill), s = 1), n.push({
274
- type: x.Path,
274
+ type: k.Path,
275
275
  d: `${a}Z`,
276
276
  stroke: o,
277
277
  strokeWidth: s,
@@ -286,7 +286,7 @@ function J(e, t) {
286
286
  l = e ? .4 : n ?? 1;
287
287
  }
288
288
  return n.push({
289
- type: x.Path,
289
+ type: k.Path,
290
290
  d: `${a}Z`,
291
291
  fill: c,
292
292
  opacity: l,
@@ -315,17 +315,17 @@ function me(e) {
315
315
  }
316
316
  var Y = /* @__PURE__ */ e(A());
317
317
  function he(e, t, n) {
318
- let r = [];
319
- return t.gridType === d.Lines ? r.push(..._e(e, t.measureAxis)) : r.push(...ge({
318
+ let i = [];
319
+ return t.gridType === r.Lines ? i.push(..._e(e, t.measureAxis)) : i.push(...ge({
320
320
  center: e.center,
321
321
  radius: e.radius,
322
322
  domain: e.domain
323
- }, t.measureAxis)), r.push(...ve(e, t.dimensionAxis, n)), r;
323
+ }, t.measureAxis)), i.push(...ve(e, t.dimensionAxis, n)), i;
324
324
  }
325
325
  function ge({ center: e, radius: t, domain: n }, r) {
326
326
  let i = Z(r);
327
327
  return X(r.rangeLayers, n).reverse().filter((e) => e > 0).map((a, o) => ({
328
- type: x.Circle,
328
+ type: k.Circle,
329
329
  cx: e.x,
330
330
  cy: e.y,
331
331
  r: t * a / n,
@@ -360,7 +360,7 @@ function ve(e, t, n) {
360
360
  return c.forEach(({ x: e, y: r }, s) => {
361
361
  let c = n[o[s]].source;
362
362
  l.push({
363
- type: x.Line,
363
+ type: k.Line,
364
364
  x1: i.x,
365
365
  y1: i.y,
366
366
  x2: e,
@@ -368,7 +368,7 @@ function ve(e, t, n) {
368
368
  stroke: t.lineColor ?? "black",
369
369
  strokeWidth: +!!t.showLine
370
370
  }), l.push({
371
- type: x.Rect,
371
+ type: k.Rect,
372
372
  tag: H,
373
373
  data: {
374
374
  label: o[s],
@@ -414,11 +414,11 @@ var ye = {
414
414
  ],
415
415
  defaultSettings: K,
416
416
  render({ data: e }) {
417
- let { chart: t, resolver: n } = this;
418
- if (!t || !n) return [];
417
+ let { chart: t, resolver: r } = this;
418
+ if (!t || !r) return [];
419
419
  let { width: i, height: a } = this.rect, o = ue(i, a), s = de(i, a), c = t.scale("attributes"), l = t.scale("values");
420
420
  if (!c || !l) return [];
421
- let u = c.ticks().length, d = c.domain(), f = l.domain()[1], p = this.settings.settings, { items: m } = n.resolve({
421
+ let u = c.ticks().length, d = c.domain(), f = l.domain()[1], p = this.settings.settings, { items: m } = r.resolve({
422
422
  data: e,
423
423
  settings: p
424
424
  }), h = p.isSingleDimension ? [m] : Object.values((0, le.default)(m, "data.value")), g = q({
@@ -427,8 +427,8 @@ var ye = {
427
427
  radius: s
428
428
  }), _ = [];
429
429
  return h.forEach((e) => {
430
- let n = e[0];
431
- if (!n) return;
430
+ let r = e[0];
431
+ if (!r) return;
432
432
  let i = e.map((e) => {
433
433
  let t = d.findIndex((t) => t === e.data.attribute.value), n = e.data.score.value / f;
434
434
  return {
@@ -442,12 +442,12 @@ var ye = {
442
442
  };
443
443
  }), a = {
444
444
  isGrid: !1,
445
- fill: n.fill,
445
+ fill: r.fill,
446
446
  isDefaultColor: p.isDefaultColor ?? !1,
447
- opacity: t.scale(r.Categorical) ? p.categoricalOpacity ?? null : null,
447
+ opacity: t.scale(n.Categorical) ? p.categoricalOpacity ?? null : null,
448
448
  pointStyles: {
449
449
  ...p.pointStyles,
450
- color: p.pointStyles.color ?? n.fill
450
+ color: p.pointStyles.color ?? r.fill
451
451
  },
452
452
  lineType: p.lineType
453
453
  };
@@ -462,22 +462,22 @@ var ye = {
462
462
  }
463
463
  };
464
464
  function be(e) {
465
- e.component(O.Radar, ye);
465
+ e.component(C.Radar, ye);
466
466
  }
467
- var xe = (e, t, n) => S(e, t, S(e, t, n, {
467
+ var xe = (e, t, n) => w(e, t, w(e, t, n, {
468
468
  filter: Se,
469
469
  placement: {
470
470
  type: "bounds",
471
471
  area: "target"
472
472
  },
473
- extract: C(e, t, we, $)
473
+ extract: S(e, t, we, $)
474
474
  }, "points-tooltip"), {
475
475
  filter: Ce,
476
476
  placement: {
477
477
  type: "slice",
478
478
  area: "target"
479
479
  },
480
- extract: C(e, t, Q, $)
480
+ extract: S(e, t, Q, $)
481
481
  }, "attributes-lines-tooltip");
482
482
  function Se(e) {
483
483
  let t = e.find((e) => e.tag === U);
@@ -490,8 +490,8 @@ function Ce(e) {
490
490
  }
491
491
  var we = (e, t, { formatter: n }, r, i, a, o) => {
492
492
  if (t.tag === "dataPoint" && t.desc?.tooltip) {
493
- let r = e.filter((e) => m(e)), { label: i, value: a } = t.desc.tooltip, s = a;
494
- return !o && r[0]?.formatter ? s = n(r[0].formatter)(s) : o && (s = n(D(r[0]?.formatter))(s)), [{
493
+ let r = e.filter((e) => u(e)), { label: i, value: a } = t.desc.tooltip, s = a;
494
+ return !o && r[0]?.formatter ? s = n(r[0].formatter)(s) : o && (s = n(E(r[0]?.formatter))(s)), [{
495
495
  value: s,
496
496
  label: i
497
497
  }];
@@ -499,10 +499,10 @@ var we = (e, t, { formatter: n }, r, i, a, o) => {
499
499
  return [];
500
500
  }, Q = (e, t, { formatter: n }, r, i, a, o) => {
501
501
  if (t.tag === "attributesLines" && t.desc?.tooltip) {
502
- let r = e.filter((e) => m(e));
502
+ let r = e.filter((e) => u(e));
503
503
  return t.desc.tooltip.values.map(({ label: e, value: t }) => {
504
504
  let i = t;
505
- return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(D(r[0]?.formatter))(i)), {
505
+ return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(E(r[0]?.formatter))(i)), {
506
506
  value: i,
507
507
  label: e
508
508
  };
@@ -511,7 +511,7 @@ var we = (e, t, { formatter: n }, r, i, a, o) => {
511
511
  return [];
512
512
  };
513
513
  function $(e, t) {
514
- let n = e.filter((e) => m(e));
514
+ let n = e.filter((e) => u(e));
515
515
  if (!n.length) return "";
516
516
  if (n.length === 1) return n[0].label ?? "";
517
517
  let r = t.desc?.tooltip;
@@ -519,7 +519,7 @@ function $(e, t) {
519
519
  }
520
520
  var Te = (e, t, n) => {
521
521
  let r = {
522
- type: O.Axis,
522
+ type: C.Axis,
523
523
  key: "radar-axis",
524
524
  scale: "values",
525
525
  settings: {
@@ -529,28 +529,28 @@ var Te = (e, t, n) => {
529
529
  },
530
530
  line: {
531
531
  show: e.measureAxis.showAxis,
532
- stroke: e.measureAxis.axisColor ?? o.mainDarkNavy,
532
+ stroke: e.measureAxis.axisColor ?? a.mainDarkNavy,
533
533
  strokeDasharray: "none"
534
534
  },
535
535
  labels: {
536
536
  show: e.measureAxis.showAxisLabels,
537
- fill: e.measureAxis.axisLabelsColor ?? o.mainDarkNavy
537
+ fill: e.measureAxis.axisLabelsColor ?? a.mainDarkNavy
538
538
  },
539
539
  ticks: {
540
540
  show: e.measureAxis.showAxisTicks,
541
- stroke: e.measureAxis.axisTicksColor ?? o.mainDarkNavy
541
+ stroke: e.measureAxis.axisTicksColor ?? a.mainDarkNavy
542
542
  }
543
543
  },
544
544
  layout: {
545
- dock: c.Center,
546
- displayOrder: b.CustomComponent
545
+ dock: p.Center,
546
+ displayOrder: D.CustomComponent
547
547
  }
548
548
  };
549
549
  return {
550
550
  ...n,
551
551
  components: [...n.components, r]
552
552
  };
553
- }, Ee = class extends re {
553
+ }, Ee = class extends T {
554
554
  constructor() {
555
555
  super([
556
556
  N,
@@ -559,20 +559,20 @@ var Te = (e, t, n) => {
559
559
  ce,
560
560
  Te,
561
561
  xe,
562
- ne
562
+ re
563
563
  ]);
564
564
  }
565
- }, De = h(), Oe = new Ee(), ke = [be], Ae = _(({ vSpec: e, vTheme: t, data: r, elementSize: i, vizProperties: a }) => {
566
- let o = v(), { activeKey: s } = y(), c = g();
567
- if (!e || !r || !i || !u(e)) return null;
568
- let d = {
565
+ }, De = v(), Oe = new Ee(), ke = [be], Ae = g(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: a }) => {
566
+ let o = _(), { activeKey: s } = y(), l = h();
567
+ if (!e || !n || !r || !m(e)) return null;
568
+ let u = {
569
569
  ...a,
570
570
  valuePickerMode: !!s
571
- }, f = t || l, p = Oe.compile(e, f, r, i, d, n.Radar, o, c);
572
- return p ? /* @__PURE__ */ (0, De.jsx)(ie, {
573
- config: d,
574
- definition: p,
575
- size: i,
571
+ }, d = t || i, f = Oe.compile(e, d, n, r, u, c.Radar, o, l);
572
+ return f ? /* @__PURE__ */ (0, De.jsx)(ne, {
573
+ config: u,
574
+ definition: f,
575
+ size: r,
576
576
  vSpec: e,
577
577
  escobarPlugins: ke
578
578
  }) : null;