vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,1372 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Lt as i, M as a, Nt as o, Pt as s, S as c, Ut as l, Wt as ee, X as u, Yt as te, Zt as ne, b as re, ht as ie, i as ae, lt as oe, nt as d, q as se, t as ce, w as le } from "./lib-Dql7cqyA.js";
3
- import { n as ue } from "./useHints-Dq_w2E8B.js";
4
- import { t as de } from "./useConfig-CyCVHo81.js";
5
- import { t as fe } from "./usePrinter-DISD7q5m.js";
6
- import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as he } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as _e } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ve } from "./img-DhGApYG0.js";
11
- import { n as ye } from "./Title-CPHi-evi.js";
12
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
14
- import { t as Ce } from "./DefGrad-DVBqDjhO.js";
15
- import { t as we } from "./BaseLegendToggle-__JnV08B.js";
16
- import { t as Te } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as De } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Oe } from "./Legend-X4kF4PvW.js";
20
- import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
21
- import { t as Ae } from "./vue_ui_radar-jafTED5j.js";
22
- import { Fragment as f, Teleport as je, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Le, onMounted as Re, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as ze, shallowRef as Be, toDisplayString as D, toRefs as Ve, unref as O, watch as He, withCtx as k } from "vue";
23
- //#region src/components/vue-ui-radar.vue
24
- var Ue = /* @__PURE__ */ e({ default: () => bt }), We = ["id"], Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
25
- "xmlns",
26
- "aria-describedby",
27
- "viewBox"
28
- ], Ye = ["width", "height"], Xe = { key: 1 }, Ze = [
29
- "x1",
30
- "y1",
31
- "x2",
32
- "y2",
33
- "stroke",
34
- "stroke-width"
35
- ], Qe = {
36
- key: 0,
37
- style: { "pointer-events": "none" }
38
- }, $e = [
39
- "d",
40
- "stroke",
41
- "stroke-width"
42
- ], et = [
43
- "d",
44
- "stroke",
45
- "stroke-width"
46
- ], tt = { key: 2 }, nt = [
47
- "x",
48
- "y",
49
- "text-anchor",
50
- "font-size",
51
- "fill",
52
- "onMouseenter",
53
- "onMouseleave",
54
- "onClick"
55
- ], rt = [
56
- "points",
57
- "stroke",
58
- "stroke-width"
59
- ], it = [
60
- "points",
61
- "stroke",
62
- "stroke-width",
63
- "fill"
64
- ], at = [
65
- "d",
66
- "stroke",
67
- "stroke-width",
68
- "stroke-dasharray"
69
- ], ot = { key: 4 }, st = [
70
- "onMouseenter",
71
- "onMouseleave",
72
- "onClick"
73
- ], ct = [
74
- "cx",
75
- "cy",
76
- "r"
77
- ], lt = [
78
- "cx",
79
- "cy",
80
- "fill",
81
- "r",
82
- "stroke"
83
- ], ut = {
84
- key: 0,
85
- style: {
86
- position: "absolute",
87
- top: "100%",
88
- left: "0",
89
- width: "100%"
90
- },
91
- "data-dom-to-png-ignore": "",
92
- "aria-hidden": "true"
93
- }, dt = {
94
- key: 5,
95
- class: "vue-data-ui-watermark"
96
- }, ft = ["id"], pt = ["onClick"], mt = { class: "vue-data-ui-legend-item" }, ht = [
97
- "stroke",
98
- "stroke-width",
99
- "stroke-dasharray"
100
- ], gt = {
101
- key: 0,
102
- style: {
103
- "max-width": "200px",
104
- margin: "0 auto"
105
- }
106
- }, _t = {
107
- class: "vue-ui-radar-tooltip-datalabel",
108
- style: { width: "100%" }
109
- }, vt = { class: "vue-ui-radar-tooltip-datalabel-name" }, yt = { key: 0 }, bt = /*#__PURE__*/ be({
110
- __name: "vue-ui-radar",
111
- props: {
112
- config: {
113
- type: Object,
114
- default() {
115
- return {};
116
- }
117
- },
118
- dataset: {
119
- type: Object,
120
- default() {
121
- return {};
122
- }
123
- }
124
- },
125
- emits: ["selectLegend", "copyAlt"],
126
- setup(e, { expose: be, emit: Ue }) {
127
- let bt = v(() => import("./Tooltip-hhrkQ3Lk.js")), xt = v(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), St = v(() => import("./vue-ui-sparkbar-D1M7-naP.js").then((e) => e.n)), Ct = v(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), wt = v(() => import("./DataTable-COIO9gi4.js")), Tt = v(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Et = v(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Dt = v(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Ot = v(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_radar: kt } = de(), { isThemeValid: At, warnInvalidTheme: jt } = ge(), A = e, Mt = p(() => !!A.dataset && Object.keys(A.dataset).length), j = w(se()), M = w(!1), Nt = w(""), Pt = w(0), N = w(null), Ft = w(null), It = w(null), Lt = w(null), Rt = w(null), zt = w(0), Bt = w(0), Vt = w(0), Ht = w(!1), Ut = w(null), Wt = w(null), P = w(null), Gt = w({
128
- x: 0,
129
- y: 0
130
- }), Kt = w("pointer"), qt = w(!1), F = w(en());
131
- ue({
132
- config: () => F.value,
133
- dataset: () => A.dataset,
134
- component: "VueUiRadar",
135
- rules: [
136
- {
137
- test: (e) => e?.categories && e.categories.length === 0,
138
- message: [
139
- "👀 There are no categories in your dataset. Consider:",
140
- "",
141
- "▶️ Adding categories..."
142
- ]
143
- },
144
- {
145
- test: (e) => e?.series && e.series.length === 0,
146
- message: [
147
- "👀 There are no series in your dataset. Consider:",
148
- "",
149
- "▶️ Adding series..."
150
- ]
151
- },
152
- {
153
- test: (e) => e?.categories && e.categories.length > 3,
154
- message: [
155
- "👀 The number of categories > 3, the chart might become hard to read. Consider:",
156
- "",
157
- "▶️ Using several instances of the component to display related categories.",
158
- "",
159
- "▶️ Adding filters to allow users to choose a maximum number of categories."
160
- ]
161
- },
162
- {
163
- test: (e) => e?.series && e.series.length > 12,
164
- message: [
165
- "👀 The number of series is > 12. Consider:",
166
- "",
167
- "▶️ Using several instances of the component to distribute the series.",
168
- "",
169
- "▶️ Using filters to let users choose a maximum number of series to display.",
170
- ""
171
- ]
172
- }
173
- ]
174
- });
175
- let I = p(() => F.value.userOptions.useCursorPointer), Jt = p(() => ne({
176
- defaultConfig: {
177
- userOptions: { show: !1 },
178
- table: { show: !1 },
179
- useCssAnimation: !1,
180
- style: { chart: {
181
- backgroundColor: "#99999930",
182
- layout: {
183
- grid: { stroke: "#6A6A6A90" },
184
- labels: { dataLabels: { show: !1 } },
185
- outerPolygon: { stroke: "#6A6A6A" }
186
- },
187
- legend: { backgroundColor: "transparent" }
188
- } }
189
- },
190
- userConfig: F.value.skeletonConfig ?? {}
191
- })), { loading: Yt, FINAL_DATASET: L } = pe({
192
- ...Ve(A),
193
- FINAL_CONFIG: F,
194
- prepareConfig: en,
195
- callback: () => {
196
- Promise.resolve().then(async () => {
197
- await Ie(), H.value.showTable = F.value.table.show;
198
- });
199
- },
200
- skeletonDataset: A.config?.skeletonDataset ?? {
201
- categories: [{
202
- name: "_",
203
- color: "#6A6A6A"
204
- }],
205
- series: [
206
- {
207
- name: "_",
208
- values: [.6],
209
- target: 1
210
- },
211
- {
212
- name: "_",
213
- values: [.6],
214
- target: 1
215
- },
216
- {
217
- name: "_",
218
- values: [.6],
219
- target: 1
220
- },
221
- {
222
- name: "_",
223
- values: [.6],
224
- target: 1
225
- },
226
- {
227
- name: "_",
228
- values: [.6],
229
- target: 1
230
- },
231
- {
232
- name: "_",
233
- values: [.6],
234
- target: 1
235
- }
236
- ]
237
- },
238
- skeletonConfig: ne({
239
- defaultConfig: F.value,
240
- userConfig: Jt.value
241
- })
242
- }), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Ee({ config: F.value }), { svgRef: R } = De({ config: F.value.style.chart.title });
243
- function $t(e) {
244
- return {
245
- ...e,
246
- style: {
247
- ...e.style,
248
- chart: {
249
- ...e.style.chart,
250
- layout: {
251
- ...e.style.chart.layout,
252
- grid: {
253
- rotate: 0,
254
- ...e.style.chart.layout.grid
255
- },
256
- labels: {
257
- ...e.style.chart.layout.labels,
258
- dataLabels: {
259
- offset: 0,
260
- ...e.style.chart.layout.labels.dataLabels
261
- }
262
- }
263
- }
264
- }
265
- }
266
- };
267
- }
268
- function en() {
269
- let e = $t(he({
270
- userConfig: A.config,
271
- defaultConfig: kt
272
- })), t = e.theme;
273
- if (!t) return e;
274
- if (!At.value(e)) return jt(e), e;
275
- let n = he({
276
- userConfig: Ae[t] || A.config,
277
- defaultConfig: e
278
- }), r = he({
279
- userConfig: A.config,
280
- defaultConfig: n
281
- });
282
- return {
283
- ...r,
284
- customPalette: r.customPalette.length ? r.customPalette : te[t] || i
285
- };
286
- }
287
- He(() => A.config, (e) => {
288
- F.value = en(), Xt.value = !F.value.userOptions.showOnChartHover, tn(), zt.value += 1, Bt.value += 1, Vt.value += 1, H.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.chart.tooltip ? F.value.style.chart.tooltip.show : !1;
289
- }, { deep: !0 });
290
- let z = Be(null), B = Be(null), V = p(() => F.value.debug);
291
- function tn() {
292
- if (s(A.dataset) && d({
293
- componentName: "VueUiRadar",
294
- type: "dataset",
295
- debug: V.value
296
- }), F.value.responsive) {
297
- let e = xe(() => {
298
- let { width: e, height: t } = Se({
299
- chart: N.value,
300
- title: F.value.style.chart.title.text ? Ft.value : null,
301
- legend: F.value.style.chart.legend.show ? It.value : null,
302
- source: Lt.value,
303
- noTitle: Rt.value
304
- });
305
- requestAnimationFrame(() => {
306
- U.value.width = e, U.value.height = t, An();
307
- });
308
- });
309
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = N.value.parentNode, z.value.observe(B.value);
310
- }
311
- An();
312
- }
313
- Re(() => {
314
- Ht.value = !0, tn();
315
- }), Le(() => {
316
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
317
- });
318
- let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = fe({
319
- elementId: `vue-ui-radar_${j.value}`,
320
- fileName: F.value.style.chart.title.text || "vue-ui-radar",
321
- options: F.value.userOptions.print
322
- }), sn = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), cn = p(() => le(F.value.customPalette)), H = w({
323
- dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
324
- showTable: F.value.table.show,
325
- showTooltip: F.value.style.chart.tooltip.show
326
- }), ln = p(() => ({ style: {
327
- backgroundColor: "#FFFFFF00",
328
- animation: {
329
- show: F.value.style.chart.tooltip.animation.show,
330
- animationFrames: F.value.style.chart.tooltip.animation.animationFrames
331
- },
332
- labels: {
333
- fontSize: F.value.style.chart.tooltip.fontSize,
334
- name: { color: F.value.style.chart.tooltip.color }
335
- },
336
- gutter: {
337
- backgroundColor: "#CCCCCC",
338
- opacity: 30
339
- }
340
- } })), U = w({
341
- height: 312,
342
- width: 512
343
- }), un = Ue, W = w([]), G = w(null), K = w(!1);
344
- function dn() {
345
- W.value.length ? W.value = [] : X.value.forEach((e, t) => {
346
- W.value.push(t);
347
- }), fn();
348
- }
349
- function fn() {
350
- un("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
351
- name: e.name,
352
- color: e.color,
353
- proportion: e.totalProportion
354
- })));
355
- }
356
- function pn(e) {
357
- K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
358
- K.value = !1, G.value = null;
359
- }, 500)) : (W.value.push(e), setTimeout(() => {
360
- K.value = !1;
361
- }, 500)), fn();
362
- }
363
- function mn() {
364
- return X.value.map((e) => ({
365
- name: e.name,
366
- color: e.color,
367
- proportion: e.totalProportion
368
- }));
369
- }
370
- function hn() {
371
- let e = L.value;
372
- if ([null, void 0].includes(e?.categories)) {
373
- d({
374
- componentName: "VueUiRadar",
375
- type: "dataset",
376
- debug: V.value
377
- }), d({
378
- componentName: "VueUiRadar",
379
- type: "datasetAttribute",
380
- property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
381
- debug: V.value
382
- });
383
- return;
384
- }
385
- e.categories.length === 0 ? d({
386
- componentName: "VueUiRadar",
387
- type: "datasetAttributeEmpty",
388
- property: "categories",
389
- debug: V.value
390
- }) : V.value && e.categories.forEach((e, t) => {
391
- ie({
392
- datasetObject: e,
393
- requiredAttributes: ["name"]
394
- }).forEach((e) => {
395
- d({
396
- componentName: "VueUiRadar",
397
- type: "datasetAttribute",
398
- property: `category.${e} at index ${t}`,
399
- index: t
400
- });
401
- });
402
- }), [null, void 0].includes(e?.series) ? d({
403
- componentName: "VueUiRadar",
404
- type: "datasetAttribute",
405
- property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
406
- debug: V.value
407
- }) : V.value && e.series.forEach((e, t) => {
408
- ie({
409
- datasetObject: e,
410
- requiredAttributes: [
411
- "name",
412
- "values",
413
- "target"
414
- ]
415
- }).forEach((e) => {
416
- d({
417
- componentName: "VueUiRadar",
418
- type: "datasetSerieAttribute",
419
- key: "series",
420
- property: e,
421
- index: t
422
- });
423
- });
424
- });
425
- }
426
- He(() => L.value, () => hn(), {
427
- deep: !0,
428
- immediate: !0
429
- });
430
- let q = p(() => {
431
- let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = cn.value ?? i;
432
- return e.map((e, n) => ({
433
- name: e?.name ?? "",
434
- categoryId: `radar_category_${j.value}_${n}`,
435
- color: c(e?.color) || t[n] || i[n % i.length],
436
- prefix: e?.prefix ?? "",
437
- suffix: e?.suffix ?? ""
438
- }));
439
- }), J = p(() => L.value.series.map((e, t) => ({
440
- ...e,
441
- color: c(e.color) || cn.value[t] || i[t] || i[t % i.length],
442
- serieId: `radar_serie_${j.value}_${t}`,
443
- formatter: e.formatter || null,
444
- absoluteIndex: t
445
- })));
446
- function gn(e) {
447
- return J.value.length ? X.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRadar - There are no series to show."), null);
448
- }
449
- function _n(e) {
450
- let t = gn(e);
451
- t !== null && W.value.includes(t.absoluteIndex) && pn(t.absoluteIndex);
452
- }
453
- function vn(e) {
454
- let t = gn(e);
455
- t !== null && (W.value.includes(t.absoluteIndex) || pn(t.absoluteIndex));
456
- }
457
- let yn = p(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
458
- function bn(e) {
459
- return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || yn.value || 1;
460
- }
461
- let xn = p(() => J.value.map((e, t) => {
462
- let n = En.value.coordinates[t];
463
- return jn({
464
- centerX: U.value.width / 2,
465
- centerY: U.value.height / 2,
466
- apexX: n.x,
467
- apexY: n.y,
468
- proportion: (e.target || 0) / bn(e)
469
- });
470
- })), Sn = p(() => J.value.length), Cn = p(() => Math.min(U.value.width, U.value.height) / 3), wn = p(() => {
471
- let e = Number(F.value.style.chart.layout.plots.radius ?? 0);
472
- return Math.max(Number.isFinite(e) ? e * 2.5 : 0, 10);
473
- }), Tn = p(() => {
474
- let e = Number(F.value.style.chart.layout.grid.rotation ?? 0);
475
- return Number.isFinite(e) ? e * Math.PI / 180 : 0;
476
- }), En = p(() => a({
477
- plot: {
478
- x: U.value.width / 2,
479
- y: U.value.height / 2
480
- },
481
- radius: Cn.value,
482
- sides: Sn.value,
483
- rotation: Tn.value
484
- })), Dn = p(() => {
485
- let e = [];
486
- for (let t = 0; t < Cn.value; t += Cn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
487
- return e;
488
- }), Y = p(() => En.value.coordinates.map((e, t) => {
489
- let n = J.value[t], r = J.value[t].values.map((t) => jn({
490
- centerX: U.value.width / 2,
491
- centerY: U.value.height / 2,
492
- apexX: e.x,
493
- apexY: e.y,
494
- proportion: t / bn(n)
495
- }));
496
- return {
497
- ...e,
498
- ...n,
499
- plots: r
500
- };
501
- }).map((e) => ({
502
- ...e,
503
- labelX: On(e).x,
504
- labelY: On(e).y,
505
- labelAnchor: On(e).anchor
506
- })));
507
- function On({ x: e, y: t }) {
508
- let n = U.value.width / 2, r = U.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(F.value.style.chart.layout.labels.dataLabels.offset ?? 0), c = 20 + (Number.isFinite(s) ? s : 0);
509
- if (!o) return {
510
- x: e,
511
- y: t,
512
- anchor: "middle"
513
- };
514
- let l = i / o, ee = a / o, u = "middle";
515
- return l > .01 ? u = "start" : l < -.01 && (u = "end"), {
516
- x: e + l * c,
517
- y: t + ee * c,
518
- anchor: u
519
- };
520
- }
521
- let kn = p({
522
- get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
523
- set: (e) => e
524
- }), { autoSizeLabels: An } = ke({
525
- svgRef: R,
526
- fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
527
- minFontSize: 6,
528
- sizeRef: kn,
529
- labelClass: ".vue-ui-radar-apex-label"
530
- });
531
- function jn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
532
- return {
533
- x: e + (n - e) * i,
534
- y: t + (r - t) * i
535
- };
536
- }
537
- let X = p(() => {
538
- let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || yn.value)));
539
- return q.value.map((t, n) => {
540
- let r = re(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
541
- return {
542
- ...t,
543
- absoluteIndex: n,
544
- totalProportion: r,
545
- shape: "circle",
546
- opacity: W.value.includes(n) ? .5 : 1,
547
- segregate: () => pn(n),
548
- isSegregated: W.value.includes(n),
549
- display: `${t.name}: ${u({
550
- v: (r ?? 0) * 100,
551
- s: "%",
552
- r: F.value.style.chart.legend.roundingPercentage
553
- })}`
554
- };
555
- });
556
- }), Mn = p(() => ({
557
- cy: "radar-div-legend",
558
- backgroundColor: F.value.style.chart.legend.backgroundColor,
559
- color: F.value.style.chart.legend.color,
560
- fontSize: F.value.style.chart.legend.fontSize,
561
- paddingBottom: 12,
562
- fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
563
- })), Z = p(() => {
564
- let e = [
565
- {
566
- name: F.value.translations.datapoint,
567
- color: ""
568
- },
569
- {
570
- name: F.value.translations.target,
571
- color: ""
572
- },
573
- ...X.value
574
- ];
575
- return {
576
- head: e,
577
- body: L.value.series.map((e) => [
578
- e.name,
579
- ae(e.formatter, e.target, u({
580
- p: e.prefix,
581
- v: e.target,
582
- s: e.suffix,
583
- r: F.value.table.td.roundingValue
584
- })),
585
- ...e.values.map((t, n) => `${ae(e.formatter, t, u({
586
- p: q.value[n]?.prefix ?? "",
587
- v: t,
588
- s: q.value[n]?.suffix ?? "",
589
- r: F.value.table.td.roundingValue
590
- }))} (${isNaN(t / e.target) ? "" : u({
591
- v: t / e.target * 100,
592
- s: "%",
593
- r: F.value.table.td.roundingPercentage
594
- })})`)
595
- ]),
596
- config: {
597
- th: {
598
- backgroundColor: F.value.table.th.backgroundColor,
599
- color: F.value.table.th.color,
600
- outline: F.value.table.th.outline
601
- },
602
- td: {
603
- backgroundColor: F.value.table.td.backgroundColor,
604
- color: F.value.table.td.color,
605
- outline: F.value.table.td.outline
606
- },
607
- breakpoint: F.value.table.responsiveBreakpoint
608
- },
609
- colNames: e
610
- };
611
- }), Q = w(null), Nn = w([]), Pn = w(null);
612
- function Fn(e, t) {
613
- M.value = !1, Q.value = null, P.value = null, Kt.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
614
- datapoint: e,
615
- seriesIndex: t
616
- });
617
- }
618
- function In(e, t) {
619
- F.value.events.datapointClick && F.value.events.datapointClick({
620
- datapoint: e,
621
- seriesIndex: t
622
- });
623
- }
624
- function Ln(e, t, r = "pointer") {
625
- F.value.events.datapointEnter && F.value.events.datapointEnter({
626
- datapoint: e,
627
- seriesIndex: t
628
- }), Kt.value = r, P.value = t;
629
- let i = q.value.slice();
630
- Nn.value = [], Q.value = t, M.value = !0, Pn.value = {
631
- datapoint: e,
632
- seriesIndex: t,
633
- series: {
634
- categories: i,
635
- datapoints: J.value,
636
- radar: Y.value
637
- },
638
- config: F.value
639
- };
640
- let a = F.value.style.chart.tooltip.customFormat;
641
- if (n(a) && oe(() => a({
642
- seriesIndex: t,
643
- datapoint: e,
644
- series: {
645
- categories: i,
646
- datapoints: J.value,
647
- radar: Y.value
648
- },
649
- config: F.value
650
- }))) {
651
- Nt.value = a({
652
- seriesIndex: t,
653
- datapoint: e,
654
- series: {
655
- categories: i,
656
- datapoints: J.value,
657
- radar: Y.value
658
- },
659
- config: F.value
660
- });
661
- return;
662
- }
663
- Nt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
664
- for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
665
- let n = i[t], r = e.values[t], a = isNaN(r / e.target) ? 0 : r / e.target * 100, o = ae(e.formatter, r, u({
666
- p: q.value[t].prefix,
667
- v: r,
668
- s: q.value[t].suffix,
669
- r: F.value.style.chart.tooltip.roundingValue
670
- }), { datapoint: e }), s = u({
671
- v: a,
672
- s: "%",
673
- r: F.value.style.chart.tooltip.roundingPercentage
674
- }), c = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
675
- Nn.value.push({
676
- name: n?.name ?? `#${t + 1}`,
677
- value: e.values[t] / e.target * 100,
678
- color: n?.color,
679
- suffix: c,
680
- prefix: "",
681
- rounding: F.value.style.chart.tooltip.roundingPercentage,
682
- formatter: e.formatter
683
- });
684
- }
685
- }
686
- function Rn(e = null) {
687
- Ie(() => {
688
- let n = [
689
- [F.value.style.chart.title.text],
690
- [F.value.style.chart.title.subtitle.text],
691
- [""]
692
- ], i = [
693
- [""],
694
- [F.value.translations.target],
695
- ...X.value.flatMap((e) => [[e.name], ["%"]])
696
- ], a = L.value.series.map((e, t) => [
697
- e.name,
698
- e.target,
699
- ...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
700
- ]), o = n.concat([i]).concat(a), s = r(o);
701
- e ? e(s) : t({
702
- csvContent: s,
703
- title: F.value.style.chart.title.text || "vue-ui-radar"
704
- });
705
- });
706
- }
707
- let $ = w(!1);
708
- function zn(e) {
709
- $.value = e, Pt.value += 1;
710
- }
711
- function Bn() {
712
- H.value.showTable = !H.value.showTable;
713
- }
714
- function Vn() {
715
- H.value.showTooltip = !H.value.showTooltip;
716
- }
717
- let Hn = w(!1);
718
- function Un() {
719
- Hn.value = !Hn.value;
720
- }
721
- async function Wn({ scale: e = 2 } = {}) {
722
- if (!N.value) return;
723
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
724
- domElement: N.value,
725
- base64: !0,
726
- img: !0,
727
- scale: e
728
- });
729
- return {
730
- imageUri: i,
731
- base64: a,
732
- title: F.value.style.chart.title.text,
733
- width: t,
734
- height: n,
735
- aspectRatio: r
736
- };
737
- }
738
- let Gn = p(() => {
739
- let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
740
- return {
741
- component: e ? Ot : Ct,
742
- title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
743
- props: e ? {
744
- backgroundColor: F.value.table.th.backgroundColor,
745
- color: F.value.table.th.color,
746
- headerColor: F.value.table.th.color,
747
- headerBg: F.value.table.th.backgroundColor,
748
- isFullscreen: $.value,
749
- fullscreenParent: N.value,
750
- forcedWidth: Math.min(800, window.innerWidth * .8),
751
- isCursorPointer: I.value
752
- } : {
753
- hideDetails: !0,
754
- config: {
755
- open: t,
756
- maxHeight: 1e4,
757
- body: {
758
- backgroundColor: F.value.style.chart.backgroundColor,
759
- color: F.value.style.chart.color
760
- },
761
- head: {
762
- backgroundColor: F.value.style.chart.backgroundColor,
763
- color: F.value.style.chart.color
764
- }
765
- }
766
- }
767
- };
768
- });
769
- He(() => H.value.showTable, (e) => {
770
- F.value.table.show || (e && F.value.table.useDialog && Ut.value ? Ut.value.open() : "close" in Ut.value && Ut.value.close());
771
- });
772
- function Kn() {
773
- H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
774
- }
775
- let qn = p(() => X.value.map((e) => ({
776
- ...e,
777
- name: e.display
778
- }))), Jn = p(() => F.value.style.chart.backgroundColor), Yn = p(() => F.value.style.chart.legend), Xn = p(() => F.value.style.chart.title), { isCallbackImaging: Zn, isCallbackSvg: Qn, generateSvg: $n, onGenerateImage: er } = _e({
779
- svg: R,
780
- title: Xn,
781
- legend: Yn,
782
- legendItems: qn,
783
- backgroundColor: Jn,
784
- getSvgCallback: () => F.value.userOptions.callbacks.svg,
785
- generateImage: on
786
- });
787
- async function tr() {
788
- if (un("copyAlt", {
789
- config: F.value,
790
- dataset: Y.value
791
- }), !F.value.userOptions.callbacks.altCopy) {
792
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
793
- return;
794
- }
795
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
796
- config: F.value,
797
- dataset: Y.value
798
- }));
799
- }
800
- function nr() {
801
- P.value = null, qt.value = !0;
802
- }
803
- function rr() {
804
- P.value = null, Kt.value = "pointer", M.value = !1, Q.value = null, qt.value = !1;
805
- }
806
- function ir(e) {
807
- if (!Number.isFinite(e) || !R.value) return;
808
- let t = Y.value[e];
809
- if (!t) return;
810
- let n = R.value.getBoundingClientRect();
811
- Gt.value = {
812
- x: n.left + t.labelX / U.value.width * n.width,
813
- y: n.top + t.labelY / U.value.height * n.height
814
- };
815
- }
816
- function ar(e) {
817
- if (!R.value || Hn.value || document.activeElement !== R.value || !Y.value.length) return;
818
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
819
- if (!t && !n && !r && !i) return;
820
- if (e.preventDefault(), e.stopPropagation(), i) {
821
- P.value = null, Kt.value = "pointer", M.value = !1, Q.value = null;
822
- return;
823
- }
824
- if (r) {
825
- if (P.value === null) return;
826
- let e = Y.value[P.value];
827
- if (!e) return;
828
- In(e, P.value);
829
- return;
830
- }
831
- let a = P.value;
832
- a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
833
- let o = Y.value[a];
834
- o && (P.value = a, ir(a), Ln(o, a, "keyboard"));
835
- }
836
- let or = p(() => ({
837
- headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
838
- rows: Z.value?.body ?? []
839
- }));
840
- return be({
841
- getData: mn,
842
- getImage: Wn,
843
- generatePdf: an,
844
- generateCsv: Rn,
845
- generateImage: on,
846
- generateSvg: $n,
847
- hideSeries: vn,
848
- showSeries: _n,
849
- toggleTable: Bn,
850
- toggleTooltip: Vn,
851
- toggleAnnotator: Un,
852
- toggleFullscreen: zn,
853
- copyAlt: tr
854
- }), (e, t) => (C(), g("div", {
855
- class: b(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
856
- ref_key: "radarChart",
857
- ref: N,
858
- id: `vue-ui-radar_${j.value}`,
859
- style: S(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
860
- onMouseenter: t[2] ||= () => O(Zt)(!0),
861
- onMouseleave: t[3] ||= () => O(Zt)(!1)
862
- }, [
863
- _("div", {
864
- id: `chart-instructions-${j.value}`,
865
- class: "sr-only"
866
- }, [_("p", null, D(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
867
- or.value?.rows?.length ? (C(), m(Te, {
868
- key: 0,
869
- uid: j.value,
870
- head: or.value.headers,
871
- body: or.value.rows,
872
- notice: F.value.a11y.translations.tableAvailable,
873
- caption: F.value.a11y.translations.tableCaption
874
- }, null, 8, [
875
- "uid",
876
- "head",
877
- "body",
878
- "notice",
879
- "caption"
880
- ])) : h("", !0),
881
- F.value.userOptions.buttons.annotator ? (C(), m(O(Tt), {
882
- key: 1,
883
- svgRef: O(R),
884
- backgroundColor: F.value.style.chart.backgroundColor,
885
- color: F.value.style.chart.color,
886
- active: Hn.value,
887
- isCursorPointer: I.value,
888
- onClose: Un
889
- }, {
890
- "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
891
- "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
892
- "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
893
- "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
894
- "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
895
- "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
896
- _: 3
897
- }, 8, [
898
- "svgRef",
899
- "backgroundColor",
900
- "color",
901
- "active",
902
- "isCursorPointer"
903
- ])) : h("", !0),
904
- sn.value ? (C(), g("div", {
905
- key: 2,
906
- ref_key: "noTitle",
907
- ref: Rt,
908
- class: "vue-data-ui-no-title-space",
909
- style: "height:36px; width: 100%;background:transparent"
910
- }, null, 512)) : h("", !0),
911
- F.value.style.chart.title.text ? (C(), g("div", {
912
- key: 3,
913
- ref_key: "chartTitle",
914
- ref: Ft,
915
- style: "width:100%;background:transparent;padding-bottom:12px"
916
- }, [(C(), m(ye, {
917
- key: `title_${zt.value}`,
918
- config: {
919
- title: {
920
- cy: "radar-div-title",
921
- ...F.value.style.chart.title
922
- },
923
- subtitle: {
924
- cy: "radar-div-subtitle",
925
- ...F.value.style.chart.title.subtitle
926
- }
927
- }
928
- }, null, 8, ["config"]))], 512)) : h("", !0),
929
- _("div", { id: `legend-top-${j.value}` }, null, 8, Ke),
930
- F.value.userOptions.show && Mt.value && (O(Qt) || O(Xt)) ? (C(), m(O(Et), {
931
- ref_key: "userOptionsRef",
932
- ref: Wt,
933
- key: `user_options_${Pt.value}`,
934
- backgroundColor: F.value.style.chart.backgroundColor,
935
- color: F.value.style.chart.color,
936
- isImaging: O(rn),
937
- isPrinting: O(nn),
938
- uid: j.value,
939
- hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
940
- hasPdf: F.value.userOptions.buttons.pdf,
941
- hasImg: F.value.userOptions.buttons.img,
942
- hasSvg: F.value.userOptions.buttons.svg,
943
- hasXls: F.value.userOptions.buttons.csv,
944
- hasTable: F.value.userOptions.buttons.table,
945
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
946
- hasAltCopy: F.value.userOptions.buttons.altCopy,
947
- isFullscreen: $.value,
948
- isTooltip: H.value.showTooltip,
949
- titles: { ...F.value.userOptions.buttonTitles },
950
- chartElement: N.value,
951
- position: F.value.userOptions.position,
952
- hasAnnotator: F.value.userOptions.buttons.annotator,
953
- isAnnotation: Hn.value,
954
- callbacks: F.value.userOptions.callbacks,
955
- printScale: F.value.userOptions.print.scale,
956
- tableDialog: F.value.table.useDialog,
957
- isCursorPointer: I.value,
958
- onToggleFullscreen: zn,
959
- onGeneratePdf: O(an),
960
- onGenerateCsv: Rn,
961
- onGenerateImage: O(er),
962
- onGenerateSvg: O($n),
963
- onToggleTable: Bn,
964
- onToggleTooltip: Vn,
965
- onToggleAnnotator: Un,
966
- onCopyAlt: tr,
967
- style: S({ visibility: O(Qt) ? O(Xt) ? "visible" : "hidden" : "visible" })
968
- }, Me({ _: 2 }, [
969
- e.$slots.menuIcon ? {
970
- name: "menuIcon",
971
- fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
972
- isOpen: t,
973
- color: n
974
- })), void 0, !0)]),
975
- key: "0"
976
- } : void 0,
977
- e.$slots.optionTooltip ? {
978
- name: "optionTooltip",
979
- fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
980
- key: "1"
981
- } : void 0,
982
- e.$slots.optionPdf ? {
983
- name: "optionPdf",
984
- fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
985
- key: "2"
986
- } : void 0,
987
- e.$slots.optionCsv ? {
988
- name: "optionCsv",
989
- fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
990
- key: "3"
991
- } : void 0,
992
- e.$slots.optionImg ? {
993
- name: "optionImg",
994
- fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
995
- key: "4"
996
- } : void 0,
997
- e.$slots.optionSvg ? {
998
- name: "optionSvg",
999
- fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1000
- key: "5"
1001
- } : void 0,
1002
- e.$slots.optionTable ? {
1003
- name: "optionTable",
1004
- fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1005
- key: "6"
1006
- } : void 0,
1007
- e.$slots.optionFullscreen ? {
1008
- name: "optionFullscreen",
1009
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1010
- toggleFullscreen: t,
1011
- isFullscreen: n
1012
- })), void 0, !0)]),
1013
- key: "7"
1014
- } : void 0,
1015
- e.$slots.optionAnnotator ? {
1016
- name: "optionAnnotator",
1017
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1018
- toggleAnnotator: t,
1019
- isAnnotator: n
1020
- })), void 0, !0)]),
1021
- key: "8"
1022
- } : void 0,
1023
- e.$slots.optionAltCopy ? {
1024
- name: "optionAltCopy",
1025
- fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1026
- key: "9"
1027
- } : void 0,
1028
- e.$slots["custom-menu-before"] ? {
1029
- name: "custom-menu-before",
1030
- fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1031
- key: "10"
1032
- } : void 0,
1033
- e.$slots["custom-menu-after"] ? {
1034
- name: "custom-menu-after",
1035
- fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1036
- key: "11"
1037
- } : void 0
1038
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : h("", !0),
1039
- _("div", qe, [(C(), g("svg", {
1040
- ref_key: "svgRef",
1041
- ref: R,
1042
- xmlns: O(ce),
1043
- "aria-describedby": `chart-instructions-${j.value}`,
1044
- class: b({
1045
- "vue-data-ui-fullscreen--on": $.value,
1046
- "vue-data-ui-fulscreen--off": !$.value
1047
- }),
1048
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
1049
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
1050
- tabindex: "0",
1051
- onFocus: nr,
1052
- onBlur: rr,
1053
- onKeydown: ar
1054
- }, [
1055
- Pe(O(Dt)),
1056
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1057
- key: 0,
1058
- x: 0,
1059
- y: 0,
1060
- width: U.value.width <= 0 ? 10 : U.value.width,
1061
- height: U.value.height <= 0 ? 10 : U.value.height,
1062
- style: { pointerEvents: "none" }
1063
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : h("", !0),
1064
- _("defs", null, [(C(!0), g(f, null, T(q.value, (e, t) => (C(), m(Ce, {
1065
- t: "radial",
1066
- cx: "50%",
1067
- cy: "50%",
1068
- r: "50%",
1069
- fx: "50%",
1070
- fy: "50%",
1071
- id: `radar_gradient_${j.value}_${t}`,
1072
- key: `radar_gradient_${j.value}_${t}`,
1073
- stops: [[
1074
- "0%",
1075
- O(l)(O(ee)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
1076
- 1
1077
- ], [
1078
- "100%",
1079
- O(l)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
1080
- 1
1081
- ]]
1082
- }, null, 8, ["id", "stops"]))), 128))]),
1083
- F.value.style.chart.layout.grid.show ? (C(), g("g", Xe, [(C(!0), g(f, null, T(Y.value, (e) => (C(), g("line", {
1084
- x1: U.value.width / 2,
1085
- y1: U.value.height / 2,
1086
- x2: e.x,
1087
- y2: e.y,
1088
- stroke: F.value.style.chart.layout.grid.stroke,
1089
- "stroke-width": F.value.style.chart.layout.grid.strokeWidth,
1090
- style: { "pointer-events": "none" }
1091
- }, null, 8, Ze))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (C(), g("g", Qe, [(C(!0), g(f, null, T(Dn.value, (e) => (C(), g("path", {
1092
- d: O(a)({
1093
- plot: {
1094
- x: U.value.width / 2,
1095
- y: U.value.height / 2
1096
- },
1097
- radius: e,
1098
- sides: Sn.value,
1099
- rotation: Tn.value
1100
- }).path,
1101
- fill: "none",
1102
- stroke: F.value.style.chart.layout.grid.stroke,
1103
- "stroke-width": F.value.style.chart.layout.grid.strokeWidth
1104
- }, null, 8, $e))), 256))])) : h("", !0)])) : h("", !0),
1105
- _("path", {
1106
- d: En.value.path,
1107
- fill: "none",
1108
- stroke: F.value.style.chart.layout.outerPolygon.stroke,
1109
- "stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
1110
- "stroke-linejoin": "round",
1111
- "stroke-linecap": "round",
1112
- style: { "pointer-events": "none" }
1113
- }, null, 8, et),
1114
- F.value.style.chart.layout.labels.dataLabels.show ? (C(), g("g", tt, [(C(!0), g(f, null, T(Y.value, (e, t) => (C(), g("text", {
1115
- class: "vue-ui-radar-apex-label",
1116
- x: e.labelX,
1117
- y: e.labelY,
1118
- "text-anchor": e.labelAnchor,
1119
- "dominant-baseline": "middle",
1120
- "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1121
- fill: F.value.style.chart.layout.labels.dataLabels.color,
1122
- onMouseenter: (n) => Ln(e, t, "pointer"),
1123
- onMouseleave: (n) => Fn(e, t),
1124
- onClick: (n) => In(e, t)
1125
- }, D(e.name), 41, nt))), 256))])) : h("", !0),
1126
- (C(!0), g(f, null, T(q.value, (e, t) => (C(), g("g", null, [_("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (C(), g("polygon", {
1127
- key: 0,
1128
- points: O(o)(Y.value.map((e) => e.plots[t]), !1, !0),
1129
- stroke: F.value.style.chart.backgroundColor,
1130
- "stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
1131
- fill: "none",
1132
- class: b({
1133
- "animated-out": W.value.includes(t) && F.value.useCssAnimation,
1134
- "animated-in": K.value && G.value === t && F.value.useCssAnimation
1135
- }),
1136
- style: { "pointer-events": "none" }
1137
- }, null, 10, rt)) : h("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (C(), g("polygon", {
1138
- key: 1,
1139
- points: O(o)(Y.value.map((e) => e.plots[t]), !1, !0),
1140
- stroke: e.color,
1141
- "stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
1142
- fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${j.value}_${t})` : O(l)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
1143
- class: b({
1144
- "animated-out": W.value.includes(t) && F.value.useCssAnimation,
1145
- "animated-in": K.value && G.value === t && F.value.useCssAnimation
1146
- }),
1147
- style: { "pointer-events": "none" }
1148
- }, null, 10, it)) : h("", !0)])]))), 256)),
1149
- F.value.style.chart.layout.targetReference.show ? (C(), g("path", {
1150
- key: 3,
1151
- class: "vue-ui-radar-target-polygon",
1152
- d: `M${O(o)(xn.value, !1, !0)}Z`,
1153
- fill: "none",
1154
- stroke: F.value.style.chart.layout.targetReference.stroke,
1155
- "stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
1156
- "stroke-linejoin": "round",
1157
- "stroke-linecap": "round",
1158
- "stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray,
1159
- style: { "pointer-events": "none" }
1160
- }, null, 8, at)) : h("", !0),
1161
- F.value.style.chart.layout.plots.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(Y.value, (e, t) => (C(), g("g", { key: `radar-category-${t}` }, [(C(!0), g(f, null, T(e.plots, (n, r) => (C(), g("g", {
1162
- key: `radar-plot-${t}-${r}`,
1163
- onMouseenter: (n) => !W.value.includes(r) && Ln(e, t, "pointer"),
1164
- onMouseleave: (n) => !W.value.includes(r) && Fn(e, t),
1165
- onClick: (n) => !W.value.includes(r) && In(e, t)
1166
- }, [_("circle", {
1167
- cx: n.x,
1168
- cy: n.y,
1169
- r: wn.value,
1170
- fill: "transparent",
1171
- stroke: "transparent",
1172
- style: S({ pointerEvents: W.value.includes(r) ? "none" : "all" })
1173
- }, null, 12, ct), _("circle", {
1174
- cx: n.x,
1175
- cy: n.y,
1176
- fill: W.value.includes(r) ? "transparent" : q.value[r] ? q.value[r].color : "transparent",
1177
- r: Q.value !== null && Q.value === t ? F.value.style.chart.layout.plots.radius * 1.6 : F.value.style.chart.layout.plots.radius,
1178
- stroke: W.value.includes(r) ? "transparent" : F.value.style.chart.backgroundColor,
1179
- "stroke-width": .5,
1180
- class: b({
1181
- "animated-out": W.value.includes(r) && F.value.useCssAnimation,
1182
- "animated-in": K.value && G.value === r && F.value.useCssAnimation
1183
- }),
1184
- style: { "pointer-events": "none" }
1185
- }, null, 10, lt)], 40, st))), 128))]))), 128))])) : h("", !0),
1186
- E(e.$slots, "svg", { svg: {
1187
- ...U.value,
1188
- outerPolygon: En.value,
1189
- isPrintingImg: O(nn) || O(rn) || O(Zn),
1190
- isPrintingSvg: O(Qn)
1191
- } }, void 0, !0)
1192
- ], 46, Je)), e.$slots.hint ? (C(), g("div", ut, [E(e.$slots, "hint", x(y({
1193
- hint: F.value.a11y.translations.keyboardNavigation,
1194
- isVisible: qt.value
1195
- })), void 0, !0)])) : h("", !0)]),
1196
- e.$slots.watermark ? (C(), g("div", dt, [E(e.$slots, "watermark", x(y({ isPrinting: O(nn) || O(rn) || O(Zn) || O(Qn) })), void 0, !0)])) : h("", !0),
1197
- _("div", { id: `legend-bottom-${j.value}` }, null, 8, ft),
1198
- Ht.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(je, {
1199
- key: 6,
1200
- to: F.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1201
- }, [_("div", {
1202
- ref_key: "chartLegend",
1203
- ref: It
1204
- }, [E(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (C(), m(Oe, {
1205
- key: `legend_${Vt.value}`,
1206
- legendSet: X.value,
1207
- config: Mn.value,
1208
- isCursorPointer: I.value,
1209
- onClickMarker: t[0] ||= ({ i: e }) => pn(e)
1210
- }, Me({
1211
- item: k(({ legend: e, index: t }) => [O(Yt) ? h("", !0) : (C(), g("div", {
1212
- key: 0,
1213
- onClick: (t) => e.segregate(),
1214
- style: S(`opacity:${W.value.includes(t) ? .5 : 1}`)
1215
- }, D(e.display), 13, pt))]),
1216
- legendToggle: k(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !O(Yt) ? (C(), m(we, {
1217
- key: 0,
1218
- backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
1219
- color: F.value.style.chart.legend.selectAllToggle.color,
1220
- fontSize: F.value.style.chart.legend.fontSize,
1221
- checked: W.value.length > 0,
1222
- isCursorPointer: I.value,
1223
- onToggle: dn
1224
- }, null, 8, [
1225
- "backgroundColor",
1226
- "color",
1227
- "fontSize",
1228
- "checked",
1229
- "isCursorPointer"
1230
- ])) : h("", !0)]),
1231
- _: 2
1232
- }, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
1233
- name: "after",
1234
- fn: k(() => [_("div", mt, [_("div", { style: S({
1235
- display: "flex",
1236
- height: F.value.style.chart.legend.fontSize
1237
- }) }, [(C(), g("svg", {
1238
- style: S({ width: F.value.style.chart.legend.fontSize * 2 }),
1239
- viewBox: "0 0 16 8"
1240
- }, [_("line", {
1241
- x1: "0",
1242
- x2: "16",
1243
- y1: "4",
1244
- y2: "4",
1245
- stroke: F.value.style.chart.layout.targetReference.stroke,
1246
- "stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
1247
- "stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
1248
- "stroke-linecap": "round"
1249
- }, null, 8, ht)], 4))], 4), _("span", null, D(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
1250
- key: "0"
1251
- } : void 0]), 1032, [
1252
- "legendSet",
1253
- "config",
1254
- "isCursorPointer"
1255
- ])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
1256
- e.$slots.source ? (C(), g("div", {
1257
- key: 7,
1258
- ref_key: "source",
1259
- ref: Lt,
1260
- dir: "auto"
1261
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1262
- Pe(O(bt), {
1263
- teleportTo: F.value.style.chart.tooltip.teleportTo,
1264
- show: H.value.showTooltip && M.value,
1265
- backgroundColor: F.value.style.chart.tooltip.backgroundColor,
1266
- color: F.value.style.chart.tooltip.color,
1267
- borderRadius: F.value.style.chart.tooltip.borderRadius,
1268
- borderColor: F.value.style.chart.tooltip.borderColor,
1269
- borderWidth: F.value.style.chart.tooltip.borderWidth,
1270
- backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
1271
- fontSize: F.value.style.chart.tooltip.fontSize,
1272
- position: F.value.style.chart.tooltip.position,
1273
- offsetX: F.value.style.chart.tooltip.offsetX,
1274
- offsetY: F.value.style.chart.tooltip.offsetY,
1275
- parent: N.value,
1276
- content: Nt.value,
1277
- isFullscreen: $.value,
1278
- isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
1279
- smooth: F.value.style.chart.tooltip.smooth,
1280
- backdropFilter: F.value.style.chart.tooltip.backdropFilter,
1281
- smoothForce: F.value.style.chart.tooltip.smoothForce,
1282
- smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
1283
- isA11yMode: Kt.value === "keyboard",
1284
- a11yPosition: Gt.value
1285
- }, {
1286
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Pn.value })), void 0, !0)]),
1287
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Pn.value })), void 0, !0)]),
1288
- "tooltip-after": k(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (C(), g("div", gt, [Pe(O(St), {
1289
- dataset: Nn.value,
1290
- config: ln.value,
1291
- backgroundOpacity: 0
1292
- }, {
1293
- "data-label": k(({ bar: e }) => [_("div", _t, [_("span", vt, D(e.name + (F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? (C(), g("span", yt, D(e.suffix), 1)) : h("", !0)])]),
1294
- _: 1
1295
- }, 8, ["dataset", "config"])])) : h("", !0), E(e.$slots, "tooltip-after", x(y({ ...Pn.value })), void 0, !0)]),
1296
- _: 3
1297
- }, 8, [
1298
- "teleportTo",
1299
- "show",
1300
- "backgroundColor",
1301
- "color",
1302
- "borderRadius",
1303
- "borderColor",
1304
- "borderWidth",
1305
- "backgroundOpacity",
1306
- "fontSize",
1307
- "position",
1308
- "offsetX",
1309
- "offsetY",
1310
- "parent",
1311
- "content",
1312
- "isFullscreen",
1313
- "isCustom",
1314
- "smooth",
1315
- "backdropFilter",
1316
- "smoothForce",
1317
- "smoothSnapThreshold",
1318
- "isA11yMode",
1319
- "a11yPosition"
1320
- ]),
1321
- Mt.value && F.value.userOptions.buttons.table ? (C(), m(ze(Gn.value.component), Fe({ key: 8 }, Gn.value.props, {
1322
- ref_key: "tableUnit",
1323
- ref: Ut,
1324
- onClose: Kn
1325
- }), Me({
1326
- content: k(() => [(C(), m(O(wt), {
1327
- key: `table_${Bt.value}`,
1328
- colNames: Z.value.colNames,
1329
- head: Z.value.head,
1330
- body: Z.value.body,
1331
- config: Z.value.config,
1332
- title: F.value.table.useDialog ? "" : Gn.value.title,
1333
- withCloseButton: !F.value.table.useDialog,
1334
- isCursorPointer: I.value,
1335
- onClose: Kn
1336
- }, {
1337
- th: k(({ th: e }) => [Ne(D(e.name), 1)]),
1338
- td: k(({ td: e }) => [Ne(D(e), 1)]),
1339
- _: 1
1340
- }, 8, [
1341
- "colNames",
1342
- "head",
1343
- "body",
1344
- "config",
1345
- "title",
1346
- "withCloseButton",
1347
- "isCursorPointer"
1348
- ]))]),
1349
- _: 2
1350
- }, [F.value.table.useDialog ? {
1351
- name: "title",
1352
- fn: k(() => [Ne(D(Gn.value.title), 1)]),
1353
- key: "0"
1354
- } : void 0, F.value.table.useDialog ? {
1355
- name: "actions",
1356
- fn: k(() => [_("button", {
1357
- tabindex: "0",
1358
- class: "vue-ui-user-options-button",
1359
- onClick: t[1] ||= (e) => Rn(F.value.userOptions.callbacks.csv),
1360
- style: S({ cursor: I.value ? "pointer" : "default" })
1361
- }, [Pe(O(xt), {
1362
- name: "fileCsv",
1363
- stroke: Gn.value.props.color
1364
- }, null, 8, ["stroke"])], 4)]),
1365
- key: "1"
1366
- } : void 0]), 1040)) : h("", !0),
1367
- E(e.$slots, "skeleton", {}, () => [O(Yt) ? (C(), m(me, { key: 0 })) : h("", !0)], !0)
1368
- ], 46, We));
1369
- }
1370
- }, [["__scopeId", "data-v-3095c6cc"]]);
1371
- //#endregion
1372
- export { Ue as n, bt as t };