@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,18 +1,18 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Ko as n, No as r, Oa as i, Qo as a, Ta as o, Ti as s, Xs as c, Yn as l, pc as u, qs as d, ta as f } from "./interfaces-VUY4_yVO.js";
3
- import { I as p, P as m, Zt as h, o as g, wi as _ } from "./utils-Ba9T0TqC.js";
4
- import { Ft as v, Wt as y, X as b, Z as x, _t as S, ht as ee, i as te, in as ne, j as re, nn as ie, rt as ae, un as oe, xt as se } from "./escobar-BGqT1EsE.js";
5
- import { vt as ce } from "./_baseFlatten-DPXPOrea.js";
6
- import { t as le } from "./coloring-C16AUZEi.js";
2
+ import { Gn as n, Go as r, Ks as i, Mo as a, Qi as o, Sa as s, Si as c, Ta as l, Ys as u, Zo as d, fc as f } from "./isEqual-BDxAhUo8.js";
3
+ import { $t as p, Ei as m, I as h, P as g, o as _ } from "./utils-Bg7K-t6K.js";
4
+ import { Vt as v } from "./ui-DQWtv2iM.js";
5
+ import { Ft as y, Wt as b, X as x, Z as S, _t as ee, an as te, dn as ne, ht as re, i as ie, j as ae, rn as oe, rt as se, xt as ce } from "./escobar-eDjtGpkC.js";
6
+ import { t as le } from "./coloring-B1XAfg6b.js";
7
7
  import { t as ue } from "./set-coloring-datafield-B3uIS1Pe.js";
8
- import { t as de } from "./range-DrzdfBX4.js";
8
+ import { t as de } from "./range-CiwTbMig.js";
9
9
  var fe = (e, t, n) => {
10
- let r = e.dimensions.filter((e) => s(e)), i = e.measures.filter((e) => s(e)), a = u(r[0]?.dataItem), o = u(r[1]?.dataItem), c = {
10
+ let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), a = f(r[0]?.dataItem), o = f(r[1]?.dataItem), s = {
11
11
  key: "defaultCollection",
12
12
  data: { extract: [{
13
13
  field: a,
14
14
  props: {
15
- score: { field: u(i[0]?.dataItem) },
15
+ score: { field: f(i[0]?.dataItem) },
16
16
  attribute: { field: o || a },
17
17
  ...o ? { stackedDimension: { field: a } } : {}
18
18
  }
@@ -20,34 +20,34 @@ var fe = (e, t, n) => {
20
20
  };
21
21
  return {
22
22
  ...n,
23
- collections: [c]
23
+ collections: [s]
24
24
  };
25
- }, pe = (e, t, n) => {
26
- let r = {
25
+ }, pe = (e, t, r) => {
26
+ let i = {
27
27
  key: "defaultCollection",
28
- data: { extract: e.measures.filter((e) => s(e)).map((e) => {
29
- let t = u(e.dataItem);
28
+ data: { extract: e.measures.filter((e) => c(e)).map((e) => {
29
+ let t = f(e.dataItem);
30
30
  return {
31
31
  field: t,
32
32
  props: {
33
33
  score: { field: t },
34
34
  attribute: e.label,
35
35
  color: t,
36
- label: l(e) || e.label || e.dataItem.name
36
+ label: n(e) || e.label || e.dataItem.name
37
37
  },
38
38
  getValue: () => e.label
39
39
  };
40
40
  }) }
41
41
  };
42
42
  return {
43
- ...n,
44
- collections: [r]
43
+ ...r,
44
+ collections: [i]
45
45
  };
46
- }, me = (e, ...t) => e.dimensions.filter((e) => s(e)).length ? fe(e, ...t) : pe(e, ...t), he = (e, t, n, r, i, a) => {
47
- let o = u(e.dimensions.filter((e) => s(e))[1]?.dataItem), l = new le(e, t, i?.[0]?.itemsNotAffectedByFiltering), d = e.coloring.color == null && e.coloring.type === c.Single, p = {
48
- type: oe.Radar,
49
- key: `${oe.Radar}`,
50
- layout: { displayOrder: v.VisualizationElement },
46
+ }, me = (e, ...t) => e.dimensions.filter((e) => c(e)).length ? fe(e, ...t) : pe(e, ...t), he = (e, t, n, r, i, a) => {
47
+ let s = f(e.dimensions.filter((e) => c(e))[1]?.dataItem), l = new le(e, t, i?.[0]?.itemsNotAffectedByFiltering), d = e.coloring.color == null && e.coloring.type === u.Single, p = {
48
+ type: ne.Radar,
49
+ key: `${ne.Radar}`,
50
+ layout: { displayOrder: y.VisualizationElement },
51
51
  data: { collection: "defaultCollection" },
52
52
  settings: {
53
53
  dimensionAxis: e.dimensionAxis,
@@ -55,16 +55,16 @@ var fe = (e, t, n) => {
55
55
  gridType: e.gridType,
56
56
  lineType: e.lineType,
57
57
  isDefaultColor: d,
58
- isSingleDimension: !o,
58
+ isSingleDimension: !s,
59
59
  scale: "attributes",
60
- categoricalOpacity: e.coloring?.categoricalColorTransparency ?? f.categoricalColorTransparency,
60
+ categoricalOpacity: e.coloring?.categoricalColorTransparency ?? o.categoricalColorTransparency,
61
61
  pointStyles: e.pointStyles,
62
62
  fill: l.getColorDefinition({
63
63
  overwriteSources: [l.MAIN_FIELD],
64
64
  ref: "color"
65
65
  })
66
66
  },
67
- brush: y(ge(e), a, { valuePickerMode: a?.valuePickerMode })
67
+ brush: b(ge(e), a, { valuePickerMode: a?.valuePickerMode })
68
68
  };
69
69
  return {
70
70
  ...n,
@@ -72,70 +72,70 @@ var fe = (e, t, n) => {
72
72
  };
73
73
  };
74
74
  function ge(e) {
75
- let t = [], n = e.dimensions.filter((e) => s(e));
75
+ let t = [], n = e.dimensions.filter((e) => c(e));
76
76
  return n[0] && t.push(""), n[1] && t.push("attribute"), t;
77
77
  }
78
78
  var _e = (e, t, n) => {
79
- let r = e.dimensions.filter((e) => s(e)), i = e.measures.filter((e) => s(e)), a = u(r[0]?.dataItem), o = u(r[1]?.dataItem), c = u(i[0]?.dataItem);
79
+ let r = e.dimensions.filter((e) => c(e)), i = e.measures.filter((e) => c(e)), a = f(r[0]?.dataItem), o = f(r[1]?.dataItem), s = f(i[0]?.dataItem);
80
80
  return {
81
81
  ...n,
82
82
  scales: {
83
83
  ...n.scales,
84
84
  ...be(e, t, n),
85
85
  values: {
86
- data: { field: c },
86
+ data: { field: s },
87
87
  include: [0],
88
88
  nice: !0
89
89
  },
90
90
  attributes: { data: { extract: { field: o || a } } }
91
91
  }
92
92
  };
93
- }, ve = (e, t, n) => {
94
- let r = e.measures.filter((e) => s(e));
93
+ }, ve = (e, t, r) => {
94
+ let i = e.measures.filter((e) => c(e));
95
95
  return {
96
- ...n,
96
+ ...r,
97
97
  scales: {
98
- ...n.scales,
98
+ ...r.scales,
99
99
  ...xe(e, t),
100
100
  values: {
101
- data: { fields: r.map((e) => u(e.dataItem)) },
101
+ data: { fields: i.map((e) => f(e.dataItem)) },
102
102
  include: [0],
103
103
  nice: !0
104
104
  },
105
105
  attributes: {
106
- type: ne.Band,
107
- data: r.map((e) => l(e) || e.label || e.dataItem.name)
106
+ type: te.Band,
107
+ data: i.map((e) => n(e) || e.label || e.dataItem.name)
108
108
  }
109
109
  }
110
110
  };
111
- }, ye = (e, ...t) => e.dimensions.filter((e) => s(e)).length ? _e(e, ...t) : ve(e, ...t);
111
+ }, ye = (e, ...t) => e.dimensions.filter((e) => c(e)).length ? _e(e, ...t) : ve(e, ...t);
112
112
  function be(e, t, n) {
113
- let r = u(e.dimensions.filter((e) => s(e))[0]?.dataItem);
114
- switch (ee(n, 0, { color: { field: r } }), e.coloring?.type) {
115
- case c.Single: return { [c.Single]: {
113
+ let r = f(e.dimensions.filter((e) => c(e))[0]?.dataItem);
114
+ switch (re(n, 0, { color: { field: r } }), e.coloring?.type) {
115
+ case u.Single: return { [u.Single]: {
116
116
  data: { extract: { field: r } },
117
- type: ne.CategoricalColor,
117
+ type: te.CategoricalColor,
118
118
  range: [e?.coloring?.color ?? t.colors.brandColors[0]]
119
119
  } };
120
- case c.Categorical: return { [c.Categorical]: se(ue(e, r), t, r, {
121
- customPalette: e.coloring.customPalette ?? f.customPalette,
120
+ case u.Categorical: return { [u.Categorical]: ce(ue(e, r), t, r, {
121
+ customPalette: e.coloring.customPalette ?? o.customPalette,
122
122
  palette: e.coloring.palette,
123
123
  sortOrder: e.coloring.sortOrder
124
124
  }, n.collections) };
125
125
  }
126
126
  }
127
127
  function xe(e, t) {
128
- let n = e.measures.filter((e) => s(e));
129
- return { [c.Single]: {
130
- data: { items: n.map((e) => {
131
- let t = l(e) || e.label || e.dataItem.name;
128
+ let r = e.measures.filter((e) => c(e));
129
+ return { [u.Single]: {
130
+ data: { items: r.map((e) => {
131
+ let t = n(e) || e.label || e.dataItem.name;
132
132
  return {
133
- value: u(e.dataItem),
133
+ value: f(e.dataItem),
134
134
  label: t
135
135
  };
136
136
  }) },
137
- type: ne.CategoricalColor,
138
- range: Array(n.length).fill(e?.coloring?.color ?? t.colors.brandColors[0]),
137
+ type: te.CategoricalColor,
138
+ range: Array(r.length).fill(e?.coloring?.color ?? t.colors.brandColors[0]),
139
139
  value: (e) => `${e.datum.value.value}`,
140
140
  label: (e) => `${e.datum.value.label}`
141
141
  } };
@@ -164,8 +164,8 @@ var Se = .9, Ce = "attributesLines", we = "dataPoint", Te = "white", Ee = "rgba(
164
164
  evenCustomBackgroundColor: null,
165
165
  oddCustomBackgroundColor: null
166
166
  },
167
- gridType: a.Circles,
168
- lineType: n.Straight,
167
+ gridType: d.Circles,
168
+ lineType: r.Straight,
169
169
  isSingleDimension: !1,
170
170
  scale: "attributes",
171
171
  pointStyles: {
@@ -177,17 +177,17 @@ var Se = .9, Ce = "attributesLines", we = "dataPoint", Te = "white", Ee = "rgba(
177
177
  } }, Oe = (e, t, n, r, i, a) => {
178
178
  if (!e.dimensionAxis.showLabel) return n;
179
179
  let o = {
180
- type: oe.Labels,
180
+ type: ne.Labels,
181
181
  key: "radar-labels",
182
182
  animations: { enabled: !1 },
183
- layout: { displayOrder: v.Labels },
183
+ layout: { displayOrder: y.Labels },
184
184
  settings: { sources: [{
185
- component: `${oe.Radar}`,
185
+ component: `${ne.Radar}`,
186
186
  selector: `.${Ce}`,
187
187
  strategy: {
188
188
  type: "slice",
189
189
  settings: {
190
- fontSize: ce.dataPoint.valueFontSize,
190
+ fontSize: v.dataPoint.valueFontSize,
191
191
  fontFamily: t.fonts.general.fontFamily,
192
192
  labels: [{
193
193
  linkData: ({ data: e }) => e,
@@ -200,7 +200,7 @@ var Se = .9, Ce = "attributesLines", we = "dataPoint", Te = "white", Ee = "rgba(
200
200
  }
201
201
  }
202
202
  }] },
203
- brush: y([""], a, { valuePickerMode: a?.valuePickerMode })
203
+ brush: b([""], a, { valuePickerMode: a?.valuePickerMode })
204
204
  };
205
205
  return {
206
206
  ...n,
@@ -3537,31 +3537,31 @@ function Ne(e) {
3537
3537
  }), t;
3538
3538
  }
3539
3539
  function Pe(e, t) {
3540
- let r = [], { cp1: i, cp2: a } = Fe(e), o = "M ";
3540
+ let n = [], { cp1: i, cp2: a } = Fe(e), o = "M ";
3541
3541
  e.forEach(({ x: s, y: c, ...l }, u) => {
3542
- if (o += `${s} ${c} `, t.lineType === n.Curve) {
3542
+ if (o += `${s} ${c} `, t.lineType === r.Curve) {
3543
3543
  let t = (u + 1) % e.length;
3544
3544
  o += `C ${a[u].x} ${a[u].y}, ${i[t].x} ${i[t].y}, `;
3545
3545
  }
3546
3546
  if (!t.isGrid && "tooltip" in l) {
3547
- let { fill: e, pointStyles: n } = t;
3548
- r.push({
3549
- type: ie.Circle,
3547
+ let { fill: e, pointStyles: r } = t;
3548
+ n.push({
3549
+ type: oe.Circle,
3550
3550
  tag: we,
3551
3551
  cx: s,
3552
3552
  cy: c,
3553
- r: n.size / 2,
3554
- stroke: n.color ?? e,
3553
+ r: r.size / 2,
3554
+ stroke: r.color ?? e,
3555
3555
  strokeWidth: 1,
3556
- fill: n.color ?? e,
3556
+ fill: r.color ?? e,
3557
3557
  desc: { tooltip: l.tooltip },
3558
3558
  data: l?.data
3559
3559
  });
3560
3560
  }
3561
- }), t.lineType === n.Curve && (o += `${e[0].x} ${e[0].y}`);
3561
+ }), t.lineType === r.Curve && (o += `${e[0].x} ${e[0].y}`);
3562
3562
  let s, c;
3563
- t.isGrid ? (s = t.lineStroke, c = t.lineStrokeWidth) : (s = Ie(t.fill), c = 1), r.push({
3564
- type: ie.Path,
3563
+ t.isGrid ? (s = t.lineStroke, c = t.lineStrokeWidth) : (s = Ie(t.fill), c = 1), n.push({
3564
+ type: oe.Path,
3565
3565
  d: `${o}Z`,
3566
3566
  stroke: s,
3567
3567
  strokeWidth: c,
@@ -3575,13 +3575,13 @@ function Pe(e, t) {
3575
3575
  let { isDefaultColor: e, opacity: n } = t;
3576
3576
  u = e ? .4 : n ?? 1;
3577
3577
  }
3578
- return r.push({
3579
- type: ie.Path,
3578
+ return n.push({
3579
+ type: oe.Path,
3580
3580
  d: `${o}Z`,
3581
3581
  fill: l,
3582
3582
  opacity: u,
3583
3583
  tag: t.isGrid ? "gridarea" : "dataarea"
3584
- }), r;
3584
+ }), n;
3585
3585
  }
3586
3586
  function Fe(e) {
3587
3587
  let t = e.length, n = [], r = [];
@@ -3606,7 +3606,7 @@ function Ie(e) {
3606
3606
  var Le = /* @__PURE__ */ e(de());
3607
3607
  function Re(e, t, n) {
3608
3608
  let r = [];
3609
- return t.gridType === a.Lines ? r.push(...Be(e, t.measureAxis)) : r.push(...ze({
3609
+ return t.gridType === d.Lines ? r.push(...Be(e, t.measureAxis)) : r.push(...ze({
3610
3610
  center: e.center,
3611
3611
  radius: e.radius,
3612
3612
  domain: e.domain
@@ -3615,7 +3615,7 @@ function Re(e, t, n) {
3615
3615
  function ze({ center: e, radius: t, domain: n }, r) {
3616
3616
  let i = Ue(r);
3617
3617
  return He(r.rangeLayers, n).reverse().filter((e) => e > 0).map((a, o) => ({
3618
- type: ie.Circle,
3618
+ type: oe.Circle,
3619
3619
  cx: e.x,
3620
3620
  cy: e.y,
3621
3621
  r: t * a / n,
@@ -3649,7 +3649,7 @@ function Ve(e, t, n) {
3649
3649
  }), c = (0, Le.default)(r).map((e) => s(e)), l = [], u = 2 * Math.PI / r, d = 360 / r;
3650
3650
  return c.forEach(({ x: e, y: r }, s) => {
3651
3651
  l.push({
3652
- type: ie.Line,
3652
+ type: oe.Line,
3653
3653
  x1: i.x,
3654
3654
  y1: i.y,
3655
3655
  x2: e,
@@ -3657,7 +3657,7 @@ function Ve(e, t, n) {
3657
3657
  stroke: t.lineColor ?? "black",
3658
3658
  strokeWidth: +!!t.showLine
3659
3659
  }), l.push({
3660
- type: ie.Rect,
3660
+ type: oe.Rect,
3661
3661
  tag: Ce,
3662
3662
  data: {
3663
3663
  label: o[s],
@@ -3703,7 +3703,7 @@ var We = {
3703
3703
  ],
3704
3704
  defaultSettings: De,
3705
3705
  render({ data: e }) {
3706
- let { width: t, height: n } = this.rect, r = je(t, n), i = Me(t, n), a = this.chart.scale("attributes"), o = this.chart.scale("values"), s = a.ticks().length, l = a.domain(), u = o.domain()[1], d = this.settings.settings, { items: f } = this.resolver.resolve({
3706
+ let { width: t, height: n } = this.rect, r = je(t, n), i = Me(t, n), a = this.chart.scale("attributes"), o = this.chart.scale("values"), s = a.ticks().length, c = a.domain(), l = o.domain()[1], d = this.settings.settings, { items: f } = this.resolver.resolve({
3707
3707
  data: e,
3708
3708
  settings: d
3709
3709
  }), p = d.isSingleDimension ? [f] : Object.values((0, ke.groupBy)(f, "data.value")), m = Ae({
@@ -3713,7 +3713,7 @@ var We = {
3713
3713
  }), h = [];
3714
3714
  return p.forEach((e) => {
3715
3715
  let t = e.map((e) => {
3716
- let t = l.findIndex((t) => t === e.data.attribute.value), n = e.data.score.value / u;
3716
+ let t = c.findIndex((t) => t === e.data.attribute.value), n = e.data.score.value / l;
3717
3717
  return {
3718
3718
  ...m(t, n),
3719
3719
  tooltip: {
@@ -3727,14 +3727,14 @@ var We = {
3727
3727
  isGrid: !1,
3728
3728
  fill: e[0].fill,
3729
3729
  isDefaultColor: d.isDefaultColor,
3730
- opacity: this.chart.scale(c.Categorical) ? d?.categoricalOpacity : null,
3730
+ opacity: this.chart.scale(u.Categorical) ? d?.categoricalOpacity : null,
3731
3731
  pointStyles: d.pointStyles,
3732
3732
  lineType: d.lineType
3733
3733
  };
3734
3734
  h.push(...Pe(t, n));
3735
3735
  }), [...Re({
3736
3736
  center: r,
3737
- domain: u,
3737
+ domain: l,
3738
3738
  radius: i,
3739
3739
  attributesAmount: s,
3740
3740
  labels: a.labels()
@@ -3742,22 +3742,22 @@ var We = {
3742
3742
  }
3743
3743
  };
3744
3744
  function Ge(e) {
3745
- e.component(oe.Radar, We);
3745
+ e.component(ne.Radar, We);
3746
3746
  }
3747
- var Ke = (e, t, n) => b(e, t, b(e, t, n, {
3747
+ var Ke = (e, t, n) => x(e, t, x(e, t, n, {
3748
3748
  filter: qe,
3749
3749
  placement: {
3750
3750
  type: "bounds",
3751
3751
  area: "target"
3752
3752
  },
3753
- extract: x(e, t, Je, Xe)
3753
+ extract: S(e, t, Je, Xe)
3754
3754
  }, "points-tooltip"), {
3755
3755
  filter: C,
3756
3756
  placement: {
3757
3757
  type: "slice",
3758
3758
  area: "target"
3759
3759
  },
3760
- extract: x(e, t, Ye, Xe)
3760
+ extract: S(e, t, Ye, Xe)
3761
3761
  }, "attributes-lines-tooltip");
3762
3762
  function qe(e) {
3763
3763
  let t = e.find((e) => e.tag === we);
@@ -3770,19 +3770,19 @@ function C(e) {
3770
3770
  }
3771
3771
  var Je = (e, t, { formatter: n }, r, i, a, o) => {
3772
3772
  if (t.tag === "dataPoint") {
3773
- let r = e.filter((e) => s(e)), { label: i, value: a } = t.desc.tooltip, c = a;
3774
- return !o && r[0]?.formatter ? c = n(r[0].formatter)(c) : o && (c = n(ae(r[0].formatter))(c)), [{
3775
- value: c,
3773
+ let r = e.filter((e) => c(e)), { label: i, value: a } = t.desc.tooltip, s = a;
3774
+ return !o && r[0]?.formatter ? s = n(r[0].formatter)(s) : o && (s = n(se(r[0].formatter))(s)), [{
3775
+ value: s,
3776
3776
  label: i
3777
3777
  }];
3778
3778
  }
3779
3779
  return [];
3780
3780
  }, Ye = (e, t, { formatter: n }, r, i, a, o) => {
3781
3781
  if (t.tag === "attributesLines") {
3782
- let r = e.filter((e) => s(e));
3782
+ let r = e.filter((e) => c(e));
3783
3783
  return t.desc.tooltip.values.map(({ label: e, value: t }) => {
3784
3784
  let i = t;
3785
- return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(ae(r[0].formatter))(i)), {
3785
+ return !o && r[0]?.formatter ? i = n(r[0].formatter)(i) : o && (i = n(se(r[0].formatter))(i)), {
3786
3786
  value: i,
3787
3787
  label: e
3788
3788
  };
@@ -3791,12 +3791,12 @@ var Je = (e, t, { formatter: n }, r, i, a, o) => {
3791
3791
  return [];
3792
3792
  };
3793
3793
  function Xe(e, t) {
3794
- let n = e.filter((e) => s(e));
3794
+ let n = e.filter((e) => c(e));
3795
3795
  return n.length ? n.length === 1 ? n[0].label : t.desc.tooltip.title : "";
3796
3796
  }
3797
3797
  var Ze = (e, t, n) => {
3798
- let a = {
3799
- type: oe.Axis,
3798
+ let r = {
3799
+ type: ne.Axis,
3800
3800
  key: "radar-axis",
3801
3801
  scale: "values",
3802
3802
  settings: {
@@ -3806,28 +3806,28 @@ var Ze = (e, t, n) => {
3806
3806
  },
3807
3807
  line: {
3808
3808
  show: e.measureAxis.showAxis,
3809
- stroke: e.measureAxis.axisColor ?? i.mainDarkNavy,
3809
+ stroke: e.measureAxis.axisColor ?? l.mainDarkNavy,
3810
3810
  strokeDasharray: "none"
3811
3811
  },
3812
3812
  labels: {
3813
3813
  show: e.measureAxis.showAxisLabels,
3814
- fill: e.measureAxis.axisLabelsColor ?? i.mainDarkNavy
3814
+ fill: e.measureAxis.axisLabelsColor ?? l.mainDarkNavy
3815
3815
  },
3816
3816
  ticks: {
3817
3817
  show: e.measureAxis.showAxisTicks,
3818
- stroke: e.measureAxis.axisTicksColor ?? i.mainDarkNavy
3818
+ stroke: e.measureAxis.axisTicksColor ?? l.mainDarkNavy
3819
3819
  }
3820
3820
  },
3821
3821
  layout: {
3822
- dock: r.Center,
3823
- displayOrder: v.CustomComponent
3822
+ dock: a.Center,
3823
+ displayOrder: y.CustomComponent
3824
3824
  }
3825
3825
  };
3826
3826
  return {
3827
3827
  ...n,
3828
- components: [...n.components, a]
3828
+ components: [...n.components, r]
3829
3829
  };
3830
- }, Qe = class extends re {
3830
+ }, Qe = class extends ae {
3831
3831
  constructor() {
3832
3832
  super([
3833
3833
  me,
@@ -3836,16 +3836,16 @@ var Ze = (e, t, n) => {
3836
3836
  Oe,
3837
3837
  Ze,
3838
3838
  Ke,
3839
- S
3839
+ ee
3840
3840
  ]);
3841
3841
  }
3842
- }, $e = _(), et = new Qe(), tt = [Ge], nt = h(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
3843
- let a = m(), { activeKey: s } = g(), c = p(), l = {
3844
- ...i,
3845
- valuePickerMode: !!s
3846
- }, u = t || o, f = et.compile(e, u, n, r, l, d.Radar, a, c);
3847
- return f ? /* @__PURE__ */ (0, $e.jsx)(te, {
3848
- config: l,
3842
+ }, $e = m(), et = new Qe(), tt = [Ge], nt = p(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: a }) => {
3843
+ let o = g(), { activeKey: c } = _(), l = h(), u = {
3844
+ ...a,
3845
+ valuePickerMode: !!c
3846
+ }, d = t || s, f = et.compile(e, d, n, r, u, i.Radar, o, l);
3847
+ return f ? /* @__PURE__ */ (0, $e.jsx)(ie, {
3848
+ config: u,
3849
3849
  definition: f,
3850
3850
  size: r,
3851
3851
  vSpec: e,