vue-data-ui 3.22.3 → 3.22.4

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 (202) hide show
  1. package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
  93. package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +59 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
  162. package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend--t7Mbp9Z.js +0 -115
  181. package/dist/Slicer-CpBaahpI.js +0 -1144
  182. package/dist/exposedLib-BkRxoSB9.js +0 -19
  183. package/dist/img-CyjhDDaM.js +0 -74
  184. package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
  185. package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
  186. package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
  187. package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
  188. package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
  189. package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
  190. package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
  191. package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
  192. package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
  194. package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
  195. package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
  196. package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
  197. package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
  199. package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
  200. package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
  201. package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
  202. package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
@@ -1,1281 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { D as t, Et as n, Ft as r, G as i, H as a, It as ee, J as te, S as ne, Tt as re, Ut as ie, Vt as ae, X as o, ct as oe, gt as se, i as ce, it as le, kt as s, t as ue, v as de, x as fe, y as pe } from "./lib-NmjQazSn.js";
3
- import { t as me } from "./useConfig-Bf_EBbe3.js";
4
- import { t as he } from "./usePrinter-DRYgV-XS.js";
5
- import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ve } from "./useSvgExport-SVIsDot8.js";
7
- import { t as ye } from "./useNestedProp-C9viY7oU.js";
8
- import { t as be } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as xe } from "./img-CyjhDDaM.js";
10
- import { n as Se } from "./Title-Cxgd_JyY.js";
11
- import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { c as we } from "./canvas-lib-BOP_HS11.js";
13
- import { t as Te } from "./useResponsive-BfnK0KxU.js";
14
- import { t as Ee } from "./BaseLegendToggle-qL0O9ooF.js";
15
- import { t as De } from "./A11yDataTable-DdRsVULz.js";
16
- import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
17
- import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
18
- import { t as Ae } from "./Legend--t7Mbp9Z.js";
19
- import { t as je } from "./useAutoSizeLabelsInsideViewbox-DBv7sw1h.js";
20
- import { t as Me } from "./vue_ui_radar-jafTED5j.js";
21
- import { Fragment as c, Teleport as Ne, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Le, nextTick as Re, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as ze, onMounted as Be, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as C, toRefs as Ue, unref as w, watch as We, withCtx as T } from "vue";
22
- //#region src/components/vue-ui-radar.vue
23
- var Ge = /* @__PURE__ */ e({ default: () => Ct }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
24
- "xmlns",
25
- "aria-describedby",
26
- "viewBox"
27
- ], Ze = ["width", "height"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = { key: 1 }, nt = [
28
- "x1",
29
- "y1",
30
- "x2",
31
- "y2",
32
- "stroke",
33
- "stroke-width"
34
- ], rt = { key: 0 }, it = [
35
- "d",
36
- "stroke",
37
- "stroke-width"
38
- ], at = [
39
- "d",
40
- "stroke",
41
- "stroke-width"
42
- ], ot = { key: 2 }, st = [
43
- "x",
44
- "y",
45
- "text-anchor",
46
- "font-size",
47
- "fill",
48
- "onMouseenter",
49
- "onMouseleave",
50
- "onClick"
51
- ], ct = [
52
- "points",
53
- "stroke",
54
- "stroke-width"
55
- ], lt = [
56
- "points",
57
- "stroke",
58
- "stroke-width",
59
- "fill"
60
- ], ut = [
61
- "d",
62
- "stroke",
63
- "stroke-width",
64
- "stroke-dasharray"
65
- ], dt = { key: 4 }, ft = [
66
- "cx",
67
- "cy",
68
- "fill",
69
- "r",
70
- "stroke"
71
- ], pt = {
72
- key: 0,
73
- style: {
74
- position: "absolute",
75
- top: "100%",
76
- left: "0",
77
- width: "100%"
78
- },
79
- "data-dom-to-png-ignore": "",
80
- "aria-hidden": "true"
81
- }, mt = {
82
- key: 5,
83
- class: "vue-data-ui-watermark"
84
- }, ht = ["id"], gt = ["onClick"], _t = { class: "vue-data-ui-legend-item" }, vt = [
85
- "stroke",
86
- "stroke-width",
87
- "stroke-dasharray"
88
- ], yt = {
89
- key: 0,
90
- style: {
91
- "max-width": "200px",
92
- margin: "0 auto"
93
- }
94
- }, bt = {
95
- class: "vue-ui-radar-tooltip-datalabel",
96
- style: { width: "100%" }
97
- }, xt = { class: "vue-ui-radar-tooltip-datalabel-name" }, St = { key: 0 }, Ct = /*#__PURE__*/ Ce({
98
- __name: "vue-ui-radar",
99
- props: {
100
- config: {
101
- type: Object,
102
- default() {
103
- return {};
104
- }
105
- },
106
- dataset: {
107
- type: Object,
108
- default() {
109
- return {};
110
- }
111
- }
112
- },
113
- emits: ["selectLegend", "copyAlt"],
114
- setup(e, { expose: Ce, emit: Ge }) {
115
- let Ct = m(() => import("./Tooltip-BqdN_ZBE.js")), wt = m(() => import("./BaseIcon-CX_ChMz-.js").then((e) => e.n)), Tt = m(() => import("./vue-ui-sparkbar-CRH8b1fM.js").then((e) => e.n)), Et = m(() => import("./vue-ui-accordion-vYLqcJJd.js").then((e) => e.n)), Dt = m(() => import("./DataTable-KEMekOVu.js")), Ot = m(() => import("./PenAndPaper-DkZYRnrW.js").then((e) => e.t)), kt = m(() => import("./UserOptions-WIxTs7Xf.js").then((e) => e.n)), At = m(() => import("./PackageVersion-D-_GVhxY.js").then((e) => e.t)), jt = m(() => import("./BaseDraggableDialog-DLuXvUbs.js").then((e) => e.n)), { vue_ui_radar: Mt } = me(), { isThemeValid: Nt, warnInvalidTheme: Pt } = be(), E = e, Ft = l(() => !!E.dataset && Object.keys(E.dataset).length), D = b(a()), O = b(!1), It = b(""), Lt = b(0), k = b(null), Rt = b(null), zt = b(null), Bt = b(null), Vt = b(null), Ht = b(0), Ut = b(0), Wt = b(0), Gt = b(!1), A = b(null), Kt = b(null), qt = b(!1), Jt = b(!1), j = b(null), Yt = b({
116
- x: 0,
117
- y: 0
118
- }), M = b("pointer"), Xt = b(!1), N = b(nn()), P = l(() => N.value.userOptions.useCursorPointer), Zt = l(() => ie({
119
- defaultConfig: {
120
- userOptions: { show: !1 },
121
- table: { show: !1 },
122
- useCssAnimation: !1,
123
- style: { chart: {
124
- backgroundColor: "#99999930",
125
- layout: {
126
- grid: { stroke: "#6A6A6A90" },
127
- labels: { dataLabels: { show: !1 } },
128
- outerPolygon: { stroke: "#6A6A6A" }
129
- },
130
- legend: { backgroundColor: "transparent" }
131
- } }
132
- },
133
- userConfig: N.value.skeletonConfig ?? {}
134
- })), { loading: Qt, FINAL_DATASET: F } = ge({
135
- ...Ue(E),
136
- FINAL_CONFIG: N,
137
- prepareConfig: nn,
138
- callback: () => {
139
- Promise.resolve().then(async () => {
140
- await Re(), B.value.showTable = N.value.table.show;
141
- });
142
- },
143
- skeletonDataset: E.config?.skeletonDataset ?? {
144
- categories: [{
145
- name: "_",
146
- color: "#6A6A6A"
147
- }],
148
- series: [
149
- {
150
- name: "_",
151
- values: [.6],
152
- target: 1
153
- },
154
- {
155
- name: "_",
156
- values: [.6],
157
- target: 1
158
- },
159
- {
160
- name: "_",
161
- values: [.6],
162
- target: 1
163
- },
164
- {
165
- name: "_",
166
- values: [.6],
167
- target: 1
168
- },
169
- {
170
- name: "_",
171
- values: [.6],
172
- target: 1
173
- },
174
- {
175
- name: "_",
176
- values: [.6],
177
- target: 1
178
- }
179
- ]
180
- },
181
- skeletonConfig: ie({
182
- defaultConfig: N.value,
183
- userConfig: Zt.value
184
- })
185
- }), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Oe({ config: N.value }), { svgRef: I } = ke({ config: N.value.style.chart.title });
186
- function nn() {
187
- let e = ye({
188
- userConfig: E.config,
189
- defaultConfig: Mt
190
- }), t = e.theme;
191
- if (!t) return e;
192
- if (!Nt.value(e)) return Pt(e), e;
193
- let n = ye({
194
- userConfig: Me[t] || E.config,
195
- defaultConfig: e
196
- }), r = ye({
197
- userConfig: E.config,
198
- defaultConfig: n
199
- });
200
- return {
201
- ...r,
202
- customPalette: r.customPalette.length ? r.customPalette : ae[t] || s
203
- };
204
- }
205
- We(() => E.config, (e) => {
206
- N.value = nn(), $t.value = !N.value.userOptions.showOnChartHover, rn(), Ht.value += 1, Ut.value += 1, Wt.value += 1, B.value.dataLabels.show = N.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = N.value.table.show, B.value.showTooltip = N.value.style.chart.tooltip ? N.value.style.chart.tooltip.show : !1;
207
- }, { deep: !0 });
208
- let L = He(null), R = He(null), z = l(() => N.value.debug);
209
- function rn() {
210
- if (n(E.dataset) && o({
211
- componentName: "VueUiRadar",
212
- type: "dataset",
213
- debug: z.value
214
- }), N.value.responsive) {
215
- let e = we(() => {
216
- let { width: e, height: t } = Te({
217
- chart: k.value,
218
- title: N.value.style.chart.title.text ? Rt.value : null,
219
- legend: N.value.style.chart.legend.show ? zt.value : null,
220
- source: Bt.value,
221
- noTitle: Vt.value
222
- });
223
- requestAnimationFrame(() => {
224
- V.value.width = e, V.value.height = t, An();
225
- });
226
- });
227
- L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = k.value.parentNode, L.value.observe(R.value);
228
- }
229
- An();
230
- }
231
- Be(() => {
232
- Gt.value = !0, rn();
233
- }), ze(() => {
234
- L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
235
- });
236
- let { isPrinting: an, isImaging: on, generatePdf: sn, generateImage: cn } = he({
237
- elementId: `vue-ui-radar_${D.value}`,
238
- fileName: N.value.style.chart.title.text || "vue-ui-radar",
239
- options: N.value.userOptions.print
240
- }), ln = l(() => N.value.userOptions.show && !N.value.style.chart.title.text), un = l(() => fe(N.value.customPalette)), B = b({
241
- dataLabels: { show: N.value.style.chart.layout.labels.dataLabels.show },
242
- showTable: N.value.table.show,
243
- showTooltip: N.value.style.chart.tooltip.show
244
- }), dn = l(() => ({ style: {
245
- backgroundColor: "#FFFFFF00",
246
- animation: {
247
- show: N.value.style.chart.tooltip.animation.show,
248
- animationFrames: N.value.style.chart.tooltip.animation.animationFrames
249
- },
250
- labels: {
251
- fontSize: N.value.style.chart.tooltip.fontSize,
252
- name: { color: N.value.style.chart.tooltip.color }
253
- },
254
- gutter: {
255
- backgroundColor: "#CCCCCC",
256
- opacity: 30
257
- }
258
- } })), V = b({
259
- height: 312,
260
- width: 512
261
- }), fn = Ge, H = b([]), U = b(null), W = b(!1);
262
- function pn() {
263
- H.value.length ? H.value = [] : J.value.forEach((e, t) => {
264
- H.value.push(t);
265
- }), mn();
266
- }
267
- function mn() {
268
- fn("selectLegend", J.value.filter((e, t) => !H.value.includes(t)).map((e) => ({
269
- name: e.name,
270
- color: e.color,
271
- proportion: e.totalProportion
272
- })));
273
- }
274
- function hn(e) {
275
- W.value = !0, H.value.includes(e) ? (U.value = e, H.value = H.value.filter((t) => t !== e), setTimeout(() => {
276
- W.value = !1, U.value = null;
277
- }, 500)) : (H.value.push(e), setTimeout(() => {
278
- W.value = !1;
279
- }, 500)), mn();
280
- }
281
- function gn() {
282
- return J.value.map((e) => ({
283
- name: e.name,
284
- color: e.color,
285
- proportion: e.totalProportion
286
- }));
287
- }
288
- function _n() {
289
- let e = F.value;
290
- if ([null, void 0].includes(e?.categories)) {
291
- o({
292
- componentName: "VueUiRadar",
293
- type: "dataset",
294
- debug: z.value
295
- }), o({
296
- componentName: "VueUiRadar",
297
- type: "datasetAttribute",
298
- property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
299
- debug: z.value
300
- });
301
- return;
302
- }
303
- e.categories.length === 0 ? o({
304
- componentName: "VueUiRadar",
305
- type: "datasetAttributeEmpty",
306
- property: "categories",
307
- debug: z.value
308
- }) : e.categories.forEach((e, t) => {
309
- oe({
310
- datasetObject: e,
311
- requiredAttributes: ["name"]
312
- }).forEach((e) => {
313
- o({
314
- componentName: "VueUiRadar",
315
- type: "datasetAttribute",
316
- property: `category.${e} at index ${t}`,
317
- index: t,
318
- debug: z.value
319
- });
320
- });
321
- }), [null, void 0].includes(e?.series) ? o({
322
- componentName: "VueUiRadar",
323
- type: "datasetAttribute",
324
- property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
325
- debug: z.value
326
- }) : e.series.forEach((e, t) => {
327
- oe({
328
- datasetObject: e,
329
- requiredAttributes: [
330
- "name",
331
- "values",
332
- "target"
333
- ]
334
- }).forEach((e) => {
335
- o({
336
- componentName: "VueUiRadar",
337
- type: "datasetSerieAttribute",
338
- key: "series",
339
- property: e,
340
- index: t,
341
- debug: z.value
342
- });
343
- });
344
- });
345
- }
346
- We(() => F.value, () => _n(), {
347
- deep: !0,
348
- immediate: !0
349
- });
350
- let G = l(() => {
351
- let e = Array.isArray(F.value?.categories) ? F.value.categories : [], t = un.value ?? s;
352
- return e.map((e, n) => ({
353
- name: e?.name ?? "",
354
- categoryId: `radar_category_${D.value}_${n}`,
355
- color: pe(e?.color) || t[n] || s[n % s.length],
356
- prefix: e?.prefix ?? "",
357
- suffix: e?.suffix ?? ""
358
- }));
359
- }), K = l(() => F.value.series.map((e, t) => ({
360
- ...e,
361
- color: pe(e.color) || un.value[t] || s[t] || s[t % s.length],
362
- serieId: `radar_serie_${D.value}_${t}`,
363
- formatter: e.formatter || null,
364
- absoluteIndex: t
365
- })));
366
- function vn(e) {
367
- return K.value.length ? J.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
368
- }
369
- function yn(e) {
370
- let t = vn(e);
371
- t !== null && H.value.includes(t.absoluteIndex) && hn(t.absoluteIndex);
372
- }
373
- function bn(e) {
374
- let t = vn(e);
375
- t !== null && (H.value.includes(t.absoluteIndex) || hn(t.absoluteIndex));
376
- }
377
- let xn = l(() => Math.max(0, ...K.value.flatMap((e) => e.values)));
378
- function Sn(e) {
379
- return N.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || xn.value || 1;
380
- }
381
- let Cn = l(() => K.value.map((e, t) => {
382
- let n = En.value.coordinates[t];
383
- return jn({
384
- centerX: V.value.width / 2,
385
- centerY: V.value.height / 2,
386
- apexX: n.x,
387
- apexY: n.y,
388
- proportion: (e.target || 0) / Sn(e)
389
- });
390
- })), wn = l(() => K.value.length), Tn = l(() => Math.min(V.value.width, V.value.height) / 3), En = l(() => t({
391
- plot: {
392
- x: V.value.width / 2,
393
- y: V.value.height / 2
394
- },
395
- radius: Tn.value,
396
- sides: wn.value,
397
- rotation: 0
398
- })), Dn = l(() => {
399
- let e = [];
400
- for (let t = 0; t < Tn.value; t += Tn.value / N.value.style.chart.layout.grid.graduations) e.push(t);
401
- return e;
402
- }), q = l(() => En.value.coordinates.map((e, t) => {
403
- let n = K.value[t], r = K.value[t].values.map((t) => jn({
404
- centerX: V.value.width / 2,
405
- centerY: V.value.height / 2,
406
- apexX: e.x,
407
- apexY: e.y,
408
- proportion: t / Sn(n)
409
- }));
410
- return {
411
- ...e,
412
- ...n,
413
- plots: r
414
- };
415
- }).map((e) => ({
416
- ...e,
417
- labelX: On(e).x,
418
- labelY: On(e).y,
419
- labelAnchor: On(e).anchor
420
- })));
421
- function On({ x: e, y: t }) {
422
- let n = "middle";
423
- return e = Math.round(e), t = Math.round(t), e > V.value.width / 2 && (e += 12, n = "start"), e < V.value.width / 2 && (e -= 12, n = "end"), t > V.value.height / 2 + 1 && (t += 20), t < V.value.height / 2 - 1 && (t -= 12), t === V.value.height / 2 && (t += 4), {
424
- x: e,
425
- y: t,
426
- anchor: n
427
- };
428
- }
429
- let kn = l({
430
- get: () => N.value.style.chart.layout.labels.dataLabels.fontSize,
431
- set: (e) => e
432
- }), { autoSizeLabels: An } = je({
433
- svgRef: I,
434
- fontSize: N.value.style.chart.layout.labels.dataLabels.fontSize,
435
- minFontSize: 6,
436
- sizeRef: kn,
437
- labelClass: ".vue-ui-radar-apex-label"
438
- });
439
- function jn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
440
- return {
441
- x: e + (n - e) * i,
442
- y: t + (r - t) * i
443
- };
444
- }
445
- let J = l(() => {
446
- let e = K.value.map((e, t) => e.values.map((t) => t / (e.target || xn.value)));
447
- return G.value.map((t, n) => {
448
- let r = de(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / K.value.length);
449
- return {
450
- ...t,
451
- absoluteIndex: n,
452
- totalProportion: r,
453
- shape: "circle",
454
- opacity: H.value.includes(n) ? .5 : 1,
455
- segregate: () => hn(n),
456
- isSegregated: H.value.includes(n),
457
- display: `${t.name}: ${i({
458
- v: (r ?? 0) * 100,
459
- s: "%",
460
- r: N.value.style.chart.legend.roundingPercentage
461
- })}`
462
- };
463
- });
464
- }), Mn = l(() => ({
465
- cy: "radar-div-legend",
466
- backgroundColor: N.value.style.chart.legend.backgroundColor,
467
- color: N.value.style.chart.legend.color,
468
- fontSize: N.value.style.chart.legend.fontSize,
469
- paddingBottom: 12,
470
- fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
471
- })), Y = l(() => {
472
- let e = [
473
- {
474
- name: N.value.translations.datapoint,
475
- color: ""
476
- },
477
- {
478
- name: N.value.translations.target,
479
- color: ""
480
- },
481
- ...J.value
482
- ];
483
- return {
484
- head: e,
485
- body: F.value.series.map((e) => [
486
- e.name,
487
- ce(e.formatter, e.target, i({
488
- p: e.prefix,
489
- v: e.target,
490
- s: e.suffix,
491
- r: N.value.table.td.roundingValue
492
- })),
493
- ...e.values.map((t, n) => `${ce(e.formatter, t, i({
494
- p: G.value[n]?.prefix ?? "",
495
- v: t,
496
- s: G.value[n]?.suffix ?? "",
497
- r: N.value.table.td.roundingValue
498
- }))} (${isNaN(t / e.target) ? "" : i({
499
- v: t / e.target * 100,
500
- s: "%",
501
- r: N.value.table.td.roundingPercentage
502
- })})`)
503
- ]),
504
- config: {
505
- th: {
506
- backgroundColor: N.value.table.th.backgroundColor,
507
- color: N.value.table.th.color,
508
- outline: N.value.table.th.outline
509
- },
510
- td: {
511
- backgroundColor: N.value.table.td.backgroundColor,
512
- color: N.value.table.td.color,
513
- outline: N.value.table.td.outline
514
- },
515
- breakpoint: N.value.table.responsiveBreakpoint
516
- },
517
- colNames: e
518
- };
519
- }), X = b(null), Nn = b([]), Pn = b(null);
520
- function Fn(e, t) {
521
- O.value = !1, X.value = null, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
522
- datapoint: e,
523
- seriesIndex: t
524
- });
525
- }
526
- function In(e, t) {
527
- N.value.events.datapointClick && N.value.events.datapointClick({
528
- datapoint: e,
529
- seriesIndex: t
530
- });
531
- }
532
- function Ln(e, t, n = "pointer") {
533
- N.value.events.datapointEnter && N.value.events.datapointEnter({
534
- datapoint: e,
535
- seriesIndex: t
536
- }), M.value = n, j.value = t;
537
- let r = G.value.slice();
538
- Nn.value = [], X.value = t, O.value = !0, Pn.value = {
539
- datapoint: e,
540
- seriesIndex: t,
541
- series: {
542
- categories: r,
543
- datapoints: K.value,
544
- radar: q.value
545
- },
546
- config: N.value
547
- };
548
- let a = N.value.style.chart.tooltip.customFormat;
549
- if (se(a) && le(() => a({
550
- seriesIndex: t,
551
- datapoint: e,
552
- series: {
553
- categories: r,
554
- datapoints: K.value,
555
- radar: q.value
556
- },
557
- config: N.value
558
- }))) {
559
- It.value = a({
560
- seriesIndex: t,
561
- datapoint: e,
562
- series: {
563
- categories: r,
564
- datapoints: K.value,
565
- radar: q.value
566
- },
567
- config: N.value
568
- });
569
- return;
570
- }
571
- It.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
572
- for (let t = 0; t < e.values.length; t += 1) if (!H.value.includes(t)) {
573
- let n = r[t], a = e.values[t], ee = isNaN(a / e.target) ? 0 : a / e.target * 100, te = ce(e.formatter, a, i({
574
- p: G.value[t].prefix,
575
- v: a,
576
- s: G.value[t].suffix,
577
- r: N.value.style.chart.tooltip.roundingValue
578
- }), { datapoint: e }), ne = i({
579
- v: ee,
580
- s: "%",
581
- r: N.value.style.chart.tooltip.roundingPercentage
582
- }), re = N.value.style.chart.tooltip.showValue && N.value.style.chart.tooltip.showPercentage ? `${te} (${ne})` : N.value.style.chart.tooltip.showValue && !N.value.style.chart.tooltip.showPercentage ? te : !N.value.style.chart.tooltip.showValue && N.value.style.chart.tooltip.showPercentage ? `${ne}` : "";
583
- Nn.value.push({
584
- name: n?.name ?? `#${t + 1}`,
585
- value: e.values[t] / e.target * 100,
586
- color: n?.color,
587
- suffix: re,
588
- prefix: "",
589
- rounding: N.value.style.chart.tooltip.roundingPercentage,
590
- formatter: e.formatter
591
- });
592
- }
593
- }
594
- function Rn(e = null) {
595
- Re(() => {
596
- let t = [
597
- [N.value.style.chart.title.text],
598
- [N.value.style.chart.title.subtitle.text],
599
- [""]
600
- ], n = [
601
- [""],
602
- [N.value.translations.target],
603
- ...J.value.flatMap((e) => [[e.name], ["%"]])
604
- ], r = F.value.series.map((e, t) => [
605
- e.name,
606
- e.target,
607
- ...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
608
- ]), i = ne(t.concat([n]).concat(r));
609
- e ? e(i) : te({
610
- csvContent: i,
611
- title: N.value.style.chart.title.text || "vue-ui-radar"
612
- });
613
- });
614
- }
615
- let Z = b(!1);
616
- function zn(e) {
617
- Z.value = e, Lt.value += 1;
618
- }
619
- function Bn() {
620
- B.value.showTable = !B.value.showTable;
621
- }
622
- function Vn() {
623
- B.value.showTooltip = !B.value.showTooltip;
624
- }
625
- let Q = b(!1);
626
- function Hn() {
627
- Q.value = !Q.value;
628
- }
629
- async function Un({ scale: e = 2 } = {}) {
630
- if (!k.value) return;
631
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
632
- domElement: k.value,
633
- base64: !0,
634
- img: !0,
635
- scale: e
636
- });
637
- return {
638
- imageUri: i,
639
- base64: a,
640
- title: N.value.style.chart.title.text,
641
- width: t,
642
- height: n,
643
- aspectRatio: r
644
- };
645
- }
646
- let $ = l(() => {
647
- let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
648
- return {
649
- component: e ? jt : Et,
650
- title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
651
- props: e ? {
652
- backgroundColor: N.value.table.th.backgroundColor,
653
- color: N.value.table.th.color,
654
- headerColor: N.value.table.th.color,
655
- headerBg: N.value.table.th.backgroundColor,
656
- isFullscreen: Z.value,
657
- fullscreenParent: k.value,
658
- forcedWidth: Math.min(800, window.innerWidth * .8),
659
- isCursorPointer: P.value
660
- } : {
661
- hideDetails: !0,
662
- config: {
663
- open: t,
664
- maxHeight: 1e4,
665
- body: {
666
- backgroundColor: N.value.style.chart.backgroundColor,
667
- color: N.value.style.chart.color
668
- },
669
- head: {
670
- backgroundColor: N.value.style.chart.backgroundColor,
671
- color: N.value.style.chart.color
672
- }
673
- }
674
- }
675
- };
676
- });
677
- We(() => B.value.showTable, (e) => {
678
- N.value.table.show || (e && N.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
679
- });
680
- function Wn() {
681
- B.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
682
- }
683
- let Gn = l(() => J.value.map((e) => ({
684
- ...e,
685
- name: e.display
686
- }))), Kn = l(() => N.value.style.chart.backgroundColor), qn = l(() => N.value.style.chart.legend), { exportSvg: Jn, getSvg: Yn } = ve({
687
- svg: I,
688
- title: l(() => N.value.style.chart.title),
689
- legend: qn,
690
- legendItems: Gn,
691
- backgroundColor: Kn
692
- });
693
- async function Xn({ isCb: e }) {
694
- Jt.value = !0, await Re();
695
- try {
696
- if (e) {
697
- let { blob: e, url: t, text: n, dataUrl: r } = await Yn();
698
- await Promise.resolve(N.value.userOptions.callbacks.svg({
699
- blob: e,
700
- url: t,
701
- text: n,
702
- dataUrl: r
703
- }));
704
- } else await Promise.resolve(Jn());
705
- } finally {
706
- Jt.value = !1;
707
- }
708
- }
709
- function Zn(e) {
710
- if (e?.stage === "start") {
711
- qt.value = !0;
712
- return;
713
- }
714
- if (e?.stage === "end") {
715
- qt.value = !1;
716
- return;
717
- }
718
- cn();
719
- }
720
- async function Qn() {
721
- if (fn("copyAlt", {
722
- config: N.value,
723
- dataset: q.value
724
- }), !N.value.userOptions.callbacks.altCopy) {
725
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
726
- return;
727
- }
728
- await Promise.resolve(N.value.userOptions.callbacks.altCopy({
729
- config: N.value,
730
- dataset: q.value
731
- }));
732
- }
733
- function $n() {
734
- j.value = null, Xt.value = !0;
735
- }
736
- function er() {
737
- j.value = null, M.value = "pointer", O.value = !1, X.value = null, Xt.value = !1;
738
- }
739
- function tr(e) {
740
- if (!Number.isFinite(e) || !I.value) return;
741
- let t = q.value[e];
742
- if (!t) return;
743
- let n = I.value.getBoundingClientRect();
744
- Yt.value = {
745
- x: n.left + t.labelX / V.value.width * n.width,
746
- y: n.top + t.labelY / V.value.height * n.height
747
- };
748
- }
749
- function nr(e) {
750
- if (!I.value || Q.value || document.activeElement !== I.value || !q.value.length) return;
751
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
752
- if (!t && !n && !r && !i) return;
753
- if (e.preventDefault(), e.stopPropagation(), i) {
754
- j.value = null, M.value = "pointer", O.value = !1, X.value = null;
755
- return;
756
- }
757
- if (r) {
758
- if (j.value === null) return;
759
- let e = q.value[j.value];
760
- if (!e) return;
761
- In(e, j.value);
762
- return;
763
- }
764
- let a = j.value;
765
- a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1));
766
- let ee = q.value[a];
767
- ee && (j.value = a, tr(a), Ln(ee, a, "keyboard"));
768
- }
769
- let rr = l(() => ({
770
- headers: Y.value?.colNames?.map((e) => e.name ?? e) ?? [],
771
- rows: Y.value?.body ?? []
772
- }));
773
- return Ce({
774
- getData: gn,
775
- getImage: Un,
776
- generatePdf: sn,
777
- generateCsv: Rn,
778
- generateImage: cn,
779
- generateSvg: Xn,
780
- hideSeries: bn,
781
- showSeries: yn,
782
- toggleTable: Bn,
783
- toggleTooltip: Vn,
784
- toggleAnnotator: Hn,
785
- toggleFullscreen: zn,
786
- copyAlt: Qn
787
- }), (e, n) => (y(), f("div", {
788
- class: g(`vue-data-ui-component vue-ui-radar ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
789
- ref_key: "radarChart",
790
- ref: k,
791
- id: `vue-ui-radar_${D.value}`,
792
- style: v(`font-family:${N.value.style.fontFamily};width:100%; ${N.value.responsive ? "height: 100%;" : ""} text-align:center;background:${N.value.style.chart.backgroundColor}`),
793
- onMouseenter: n[2] ||= () => w(en)(!0),
794
- onMouseleave: n[3] ||= () => w(en)(!1)
795
- }, [
796
- p("div", {
797
- id: `chart-instructions-${D.value}`,
798
- class: "sr-only"
799
- }, [p("p", null, C(N.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
800
- rr.value?.rows?.length ? (y(), u(De, {
801
- key: 0,
802
- uid: D.value,
803
- head: rr.value.headers,
804
- body: rr.value.rows,
805
- notice: N.value.a11y.translations.tableAvailable,
806
- caption: N.value.a11y.translations.tableCaption
807
- }, null, 8, [
808
- "uid",
809
- "head",
810
- "body",
811
- "notice",
812
- "caption"
813
- ])) : d("", !0),
814
- N.value.userOptions.buttons.annotator ? (y(), u(w(Ot), {
815
- key: 1,
816
- svgRef: w(I),
817
- backgroundColor: N.value.style.chart.backgroundColor,
818
- color: N.value.style.chart.color,
819
- active: Q.value,
820
- isCursorPointer: P.value,
821
- onClose: Hn
822
- }, {
823
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
824
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
825
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
826
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
827
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
828
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
829
- _: 3
830
- }, 8, [
831
- "svgRef",
832
- "backgroundColor",
833
- "color",
834
- "active",
835
- "isCursorPointer"
836
- ])) : d("", !0),
837
- ln.value ? (y(), f("div", {
838
- key: 2,
839
- ref_key: "noTitle",
840
- ref: Vt,
841
- class: "vue-data-ui-no-title-space",
842
- style: "height:36px; width: 100%;background:transparent"
843
- }, null, 512)) : d("", !0),
844
- N.value.style.chart.title.text ? (y(), f("div", {
845
- key: 3,
846
- ref_key: "chartTitle",
847
- ref: Rt,
848
- style: "width:100%;background:transparent;padding-bottom:12px"
849
- }, [(y(), u(Se, {
850
- key: `title_${Ht.value}`,
851
- config: {
852
- title: {
853
- cy: "radar-div-title",
854
- ...N.value.style.chart.title
855
- },
856
- subtitle: {
857
- cy: "radar-div-subtitle",
858
- ...N.value.style.chart.title.subtitle
859
- }
860
- }
861
- }, null, 8, ["config"]))], 512)) : d("", !0),
862
- p("div", { id: `legend-top-${D.value}` }, null, 8, Je),
863
- N.value.userOptions.show && Ft.value && (w(tn) || w($t)) ? (y(), u(w(kt), {
864
- ref_key: "userOptionsRef",
865
- ref: Kt,
866
- key: `user_options_${Lt.value}`,
867
- backgroundColor: N.value.style.chart.backgroundColor,
868
- color: N.value.style.chart.color,
869
- isImaging: w(on),
870
- isPrinting: w(an),
871
- uid: D.value,
872
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
873
- hasPdf: N.value.userOptions.buttons.pdf,
874
- hasImg: N.value.userOptions.buttons.img,
875
- hasSvg: N.value.userOptions.buttons.svg,
876
- hasXls: N.value.userOptions.buttons.csv,
877
- hasTable: N.value.userOptions.buttons.table,
878
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
879
- hasAltCopy: N.value.userOptions.buttons.altCopy,
880
- isFullscreen: Z.value,
881
- isTooltip: B.value.showTooltip,
882
- titles: { ...N.value.userOptions.buttonTitles },
883
- chartElement: k.value,
884
- position: N.value.userOptions.position,
885
- hasAnnotator: N.value.userOptions.buttons.annotator,
886
- isAnnotation: Q.value,
887
- callbacks: N.value.userOptions.callbacks,
888
- printScale: N.value.userOptions.print.scale,
889
- tableDialog: N.value.table.useDialog,
890
- isCursorPointer: P.value,
891
- onToggleFullscreen: zn,
892
- onGeneratePdf: w(sn),
893
- onGenerateCsv: Rn,
894
- onGenerateImage: Zn,
895
- onGenerateSvg: Xn,
896
- onToggleTable: Bn,
897
- onToggleTooltip: Vn,
898
- onToggleAnnotator: Hn,
899
- onCopyAlt: Qn,
900
- style: v({ visibility: w(tn) ? w($t) ? "visible" : "hidden" : "visible" })
901
- }, Pe({ _: 2 }, [
902
- e.$slots.menuIcon ? {
903
- name: "menuIcon",
904
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
905
- isOpen: t,
906
- color: n
907
- })), void 0, !0)]),
908
- key: "0"
909
- } : void 0,
910
- e.$slots.optionTooltip ? {
911
- name: "optionTooltip",
912
- fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
913
- key: "1"
914
- } : void 0,
915
- e.$slots.optionPdf ? {
916
- name: "optionPdf",
917
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
918
- key: "2"
919
- } : void 0,
920
- e.$slots.optionCsv ? {
921
- name: "optionCsv",
922
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
923
- key: "3"
924
- } : void 0,
925
- e.$slots.optionImg ? {
926
- name: "optionImg",
927
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
928
- key: "4"
929
- } : void 0,
930
- e.$slots.optionSvg ? {
931
- name: "optionSvg",
932
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
933
- key: "5"
934
- } : void 0,
935
- e.$slots.optionTable ? {
936
- name: "optionTable",
937
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
938
- key: "6"
939
- } : void 0,
940
- e.$slots.optionFullscreen ? {
941
- name: "optionFullscreen",
942
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
943
- toggleFullscreen: t,
944
- isFullscreen: n
945
- })), void 0, !0)]),
946
- key: "7"
947
- } : void 0,
948
- e.$slots.optionAnnotator ? {
949
- name: "optionAnnotator",
950
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
951
- toggleAnnotator: t,
952
- isAnnotator: n
953
- })), void 0, !0)]),
954
- key: "8"
955
- } : void 0,
956
- e.$slots.optionAltCopy ? {
957
- name: "optionAltCopy",
958
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
959
- key: "9"
960
- } : void 0,
961
- e.$slots["custom-menu-before"] ? {
962
- name: "custom-menu-before",
963
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
964
- key: "10"
965
- } : void 0,
966
- e.$slots["custom-menu-after"] ? {
967
- name: "custom-menu-after",
968
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
969
- key: "11"
970
- } : void 0
971
- ]), 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.style".split("."))) : d("", !0),
972
- p("div", Ye, [(y(), f("svg", {
973
- ref_key: "svgRef",
974
- ref: I,
975
- xmlns: w(ue),
976
- "aria-describedby": `chart-instructions-${D.value}`,
977
- class: g({
978
- "vue-data-ui-fullscreen--on": Z.value,
979
- "vue-data-ui-fulscreen--off": !Z.value
980
- }),
981
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
982
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
983
- tabindex: "0",
984
- onFocus: $n,
985
- onBlur: er,
986
- onKeydown: nr
987
- }, [
988
- Ie(w(At)),
989
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
990
- key: 0,
991
- x: 0,
992
- y: 0,
993
- width: V.value.width <= 0 ? 10 : V.value.width,
994
- height: V.value.height <= 0 ? 10 : V.value.height,
995
- style: { pointerEvents: "none" }
996
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : d("", !0),
997
- p("defs", null, [(y(!0), f(c, null, x(G.value, (e, t) => (y(), f("radialGradient", {
998
- cx: "50%",
999
- cy: "50%",
1000
- r: "50%",
1001
- fx: "50%",
1002
- fy: "50%",
1003
- id: `radar_gradient_${D.value}_${t}`
1004
- }, [p("stop", {
1005
- offset: "0%",
1006
- "stop-color": w(r)(w(ee)(e.color, .05), N.value.style.chart.layout.dataPolygon.opacity)
1007
- }, null, 8, $e), p("stop", {
1008
- offset: "100%",
1009
- "stop-color": w(r)(e.color, N.value.style.chart.layout.dataPolygon.opacity)
1010
- }, null, 8, et)], 8, Qe))), 256))]),
1011
- N.value.style.chart.layout.grid.show ? (y(), f("g", tt, [(y(!0), f(c, null, x(q.value, (e) => (y(), f("line", {
1012
- x1: V.value.width / 2,
1013
- y1: V.value.height / 2,
1014
- x2: e.x,
1015
- y2: e.y,
1016
- stroke: N.value.style.chart.layout.grid.stroke,
1017
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1018
- }, null, 8, nt))), 256)), N.value.style.chart.layout.grid.graduations > 0 ? (y(), f("g", rt, [(y(!0), f(c, null, x(Dn.value, (e) => (y(), f("path", {
1019
- d: w(t)({
1020
- plot: {
1021
- x: V.value.width / 2,
1022
- y: V.value.height / 2
1023
- },
1024
- radius: e,
1025
- sides: wn.value,
1026
- rotation: 0
1027
- }).path,
1028
- fill: "none",
1029
- stroke: N.value.style.chart.layout.grid.stroke,
1030
- "stroke-width": N.value.style.chart.layout.grid.strokeWidth
1031
- }, null, 8, it))), 256))])) : d("", !0)])) : d("", !0),
1032
- p("path", {
1033
- d: En.value.path,
1034
- fill: "none",
1035
- stroke: N.value.style.chart.layout.outerPolygon.stroke,
1036
- "stroke-width": N.value.style.chart.layout.outerPolygon.strokeWidth,
1037
- "stroke-linejoin": "round",
1038
- "stroke-linecap": "round"
1039
- }, null, 8, at),
1040
- N.value.style.chart.layout.labels.dataLabels.show ? (y(), f("g", ot, [(y(!0), f(c, null, x(q.value, (e, t) => (y(), f("text", {
1041
- class: "vue-ui-radar-apex-label",
1042
- x: e.labelX,
1043
- y: e.labelY,
1044
- "text-anchor": e.labelAnchor,
1045
- "font-size": N.value.style.chart.layout.labels.dataLabels.fontSize,
1046
- fill: N.value.style.chart.layout.labels.dataLabels.color,
1047
- onMouseenter: (n) => Ln(e, t, "pointer"),
1048
- onMouseleave: (n) => Fn(e, t),
1049
- onClick: (n) => In(e, t)
1050
- }, C(e.name), 41, st))), 256))])) : d("", !0),
1051
- (y(!0), f(c, null, x(G.value, (e, t) => (y(), f("g", null, [p("g", null, [N.value.useCssAnimation || !N.value.useCssAnimation && !H.value.includes(t) ? (y(), f("polygon", {
1052
- key: 0,
1053
- points: w(re)(q.value.map((e) => e.plots[t]), !1, !0),
1054
- stroke: N.value.style.chart.backgroundColor,
1055
- "stroke-width": N.value.style.chart.layout.dataPolygon.strokeWidth + 1,
1056
- fill: "none",
1057
- class: g({
1058
- "animated-out": H.value.includes(t) && N.value.useCssAnimation,
1059
- "animated-in": W.value && U.value === t && N.value.useCssAnimation
1060
- })
1061
- }, null, 10, ct)) : d("", !0), N.value.useCssAnimation || !N.value.useCssAnimation && !H.value.includes(t) ? (y(), f("polygon", {
1062
- key: 1,
1063
- points: w(re)(q.value.map((e) => e.plots[t]), !1, !0),
1064
- stroke: e.color,
1065
- "stroke-width": N.value.style.chart.layout.dataPolygon.strokeWidth,
1066
- fill: N.value.style.chart.layout.dataPolygon.transparent ? "transparent" : N.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${D.value}_${t})` : w(r)(e.color, N.value.style.chart.layout.dataPolygon.opacity),
1067
- class: g({
1068
- "animated-out": H.value.includes(t) && N.value.useCssAnimation,
1069
- "animated-in": W.value && U.value === t && N.value.useCssAnimation
1070
- })
1071
- }, null, 10, lt)) : d("", !0)])]))), 256)),
1072
- N.value.style.chart.layout.targetReference.show ? (y(), f("path", {
1073
- key: 3,
1074
- class: "vue-ui-radar-target-polygon",
1075
- d: `M${w(re)(Cn.value, !1, !0)}Z`,
1076
- fill: "none",
1077
- stroke: N.value.style.chart.layout.targetReference.stroke,
1078
- "stroke-width": N.value.style.chart.layout.targetReference.strokeWidth,
1079
- "stroke-linejoin": "round",
1080
- "stroke-linecap": "round",
1081
- "stroke-dasharray": N.value.style.chart.layout.targetReference.strokeDasharray
1082
- }, null, 8, ut)) : d("", !0),
1083
- N.value.style.chart.layout.plots.show ? (y(), f("g", dt, [(y(!0), f(c, null, x(q.value, (e, t) => (y(), f("g", null, [(y(!0), f(c, null, x(e.plots, (e, n) => (y(), f("circle", {
1084
- cx: e.x,
1085
- cy: e.y,
1086
- fill: H.value.includes(n) ? "transparent" : G.value[n] ? G.value[n].color : "transparent",
1087
- r: X.value !== null && X.value === t ? N.value.style.chart.layout.plots.radius * 1.6 : N.value.style.chart.layout.plots.radius,
1088
- stroke: H.value.includes(n) ? "transparent" : N.value.style.chart.backgroundColor,
1089
- "stroke-width": .5,
1090
- class: g({
1091
- "animated-out": H.value.includes(n) && N.value.useCssAnimation,
1092
- "animated-in": W.value && U.value === n && N.value.useCssAnimation
1093
- })
1094
- }, null, 10, ft))), 256))]))), 256))])) : d("", !0),
1095
- S(e.$slots, "svg", { svg: {
1096
- ...V.value,
1097
- outerPolygon: En.value,
1098
- isPrintingImg: w(an) || w(on) || qt.value,
1099
- isPrintingSvg: Jt.value
1100
- } }, void 0, !0)
1101
- ], 46, Xe)), e.$slots.hint ? (y(), f("div", pt, [S(e.$slots, "hint", _(h({
1102
- hint: N.value.a11y.translations.keyboardNavigation,
1103
- isVisible: Xt.value
1104
- })), void 0, !0)])) : d("", !0)]),
1105
- e.$slots.watermark ? (y(), f("div", mt, [S(e.$slots, "watermark", _(h({ isPrinting: w(an) || w(on) || qt.value || Jt.value })), void 0, !0)])) : d("", !0),
1106
- p("div", { id: `legend-bottom-${D.value}` }, null, 8, ht),
1107
- Gt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ne, {
1108
- key: 6,
1109
- to: N.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1110
- }, [p("div", {
1111
- ref_key: "chartLegend",
1112
- ref: zt
1113
- }, [S(e.$slots, "legend", { legend: J.value }, () => [N.value.style.chart.legend.show ? (y(), u(Ae, {
1114
- key: `legend_${Wt.value}`,
1115
- legendSet: J.value,
1116
- config: Mn.value,
1117
- isCursorPointer: P.value,
1118
- onClickMarker: n[0] ||= ({ i: e }) => hn(e)
1119
- }, Pe({
1120
- item: T(({ legend: e, index: t }) => [w(Qt) ? d("", !0) : (y(), f("div", {
1121
- key: 0,
1122
- onClick: (t) => e.segregate(),
1123
- style: v(`opacity:${H.value.includes(t) ? .5 : 1}`)
1124
- }, C(e.display), 13, gt))]),
1125
- legendToggle: T(() => [J.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !w(Qt) ? (y(), u(Ee, {
1126
- key: 0,
1127
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1128
- color: N.value.style.chart.legend.selectAllToggle.color,
1129
- fontSize: N.value.style.chart.legend.fontSize,
1130
- checked: H.value.length > 0,
1131
- isCursorPointer: P.value,
1132
- onToggle: pn
1133
- }, null, 8, [
1134
- "backgroundColor",
1135
- "color",
1136
- "fontSize",
1137
- "checked",
1138
- "isCursorPointer"
1139
- ])) : d("", !0)]),
1140
- _: 2
1141
- }, [N.value.style.chart.layout.targetReference.show && N.value.style.chart.layout.targetReference.showInLegend ? {
1142
- name: "after",
1143
- fn: T(() => [p("div", _t, [p("div", { style: v({
1144
- display: "flex",
1145
- height: N.value.style.chart.legend.fontSize
1146
- }) }, [(y(), f("svg", {
1147
- style: v({ width: N.value.style.chart.legend.fontSize * 2 }),
1148
- viewBox: "0 0 16 8"
1149
- }, [p("line", {
1150
- x1: "0",
1151
- x2: "16",
1152
- y1: "4",
1153
- y2: "4",
1154
- stroke: N.value.style.chart.layout.targetReference.stroke,
1155
- "stroke-width": N.value.style.chart.layout.targetReference.strokeWidth * .7,
1156
- "stroke-dasharray": N.value.style.chart.layout.targetReference.strokeDasharray * .7,
1157
- "stroke-linecap": "round"
1158
- }, null, 8, vt)], 4))], 4), p("span", null, C(N.value.style.chart.layout.targetReference.legendLabel), 1)])]),
1159
- key: "0"
1160
- } : void 0]), 1032, [
1161
- "legendSet",
1162
- "config",
1163
- "isCursorPointer"
1164
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1165
- e.$slots.source ? (y(), f("div", {
1166
- key: 7,
1167
- ref_key: "source",
1168
- ref: Bt,
1169
- dir: "auto"
1170
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1171
- Ie(w(Ct), {
1172
- teleportTo: N.value.style.chart.tooltip.teleportTo,
1173
- show: B.value.showTooltip && O.value,
1174
- backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1175
- color: N.value.style.chart.tooltip.color,
1176
- borderRadius: N.value.style.chart.tooltip.borderRadius,
1177
- borderColor: N.value.style.chart.tooltip.borderColor,
1178
- borderWidth: N.value.style.chart.tooltip.borderWidth,
1179
- backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1180
- fontSize: N.value.style.chart.tooltip.fontSize,
1181
- position: N.value.style.chart.tooltip.position,
1182
- offsetX: N.value.style.chart.tooltip.offsetX,
1183
- offsetY: N.value.style.chart.tooltip.offsetY,
1184
- parent: k.value,
1185
- content: It.value,
1186
- isFullscreen: Z.value,
1187
- isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1188
- smooth: N.value.style.chart.tooltip.smooth,
1189
- backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1190
- smoothForce: N.value.style.chart.tooltip.smoothForce,
1191
- smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1192
- isA11yMode: M.value === "keyboard",
1193
- a11yPosition: Yt.value
1194
- }, {
1195
- "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Pn.value })), void 0, !0)]),
1196
- tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Pn.value })), void 0, !0)]),
1197
- "tooltip-after": T(() => [!["function"].includes(typeof N.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (y(), f("div", yt, [Ie(w(Tt), {
1198
- dataset: Nn.value,
1199
- config: dn.value,
1200
- backgroundOpacity: 0
1201
- }, {
1202
- "data-label": T(({ bar: e }) => [p("div", bt, [p("span", xt, C(e.name + (N.value.style.chart.tooltip.showValue || N.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), N.value.style.chart.tooltip.showValue || N.value.style.chart.tooltip.showPercentage ? (y(), f("span", St, C(e.suffix), 1)) : d("", !0)])]),
1203
- _: 1
1204
- }, 8, ["dataset", "config"])])) : d("", !0), S(e.$slots, "tooltip-after", _(h({ ...Pn.value })), void 0, !0)]),
1205
- _: 3
1206
- }, 8, [
1207
- "teleportTo",
1208
- "show",
1209
- "backgroundColor",
1210
- "color",
1211
- "borderRadius",
1212
- "borderColor",
1213
- "borderWidth",
1214
- "backgroundOpacity",
1215
- "fontSize",
1216
- "position",
1217
- "offsetX",
1218
- "offsetY",
1219
- "parent",
1220
- "content",
1221
- "isFullscreen",
1222
- "isCustom",
1223
- "smooth",
1224
- "backdropFilter",
1225
- "smoothForce",
1226
- "smoothSnapThreshold",
1227
- "isA11yMode",
1228
- "a11yPosition"
1229
- ]),
1230
- Ft.value && N.value.userOptions.buttons.table ? (y(), u(Ve($.value.component), Le({ key: 8 }, $.value.props, {
1231
- ref_key: "tableUnit",
1232
- ref: A,
1233
- onClose: Wn
1234
- }), Pe({
1235
- content: T(() => [(y(), u(w(Dt), {
1236
- key: `table_${Ut.value}`,
1237
- colNames: Y.value.colNames,
1238
- head: Y.value.head,
1239
- body: Y.value.body,
1240
- config: Y.value.config,
1241
- title: N.value.table.useDialog ? "" : $.value.title,
1242
- withCloseButton: !N.value.table.useDialog,
1243
- isCursorPointer: P.value,
1244
- onClose: Wn
1245
- }, {
1246
- th: T(({ th: e }) => [Fe(C(e.name), 1)]),
1247
- td: T(({ td: e }) => [Fe(C(e), 1)]),
1248
- _: 1
1249
- }, 8, [
1250
- "colNames",
1251
- "head",
1252
- "body",
1253
- "config",
1254
- "title",
1255
- "withCloseButton",
1256
- "isCursorPointer"
1257
- ]))]),
1258
- _: 2
1259
- }, [N.value.table.useDialog ? {
1260
- name: "title",
1261
- fn: T(() => [Fe(C($.value.title), 1)]),
1262
- key: "0"
1263
- } : void 0, N.value.table.useDialog ? {
1264
- name: "actions",
1265
- fn: T(() => [p("button", {
1266
- tabindex: "0",
1267
- class: "vue-ui-user-options-button",
1268
- onClick: n[1] ||= (e) => Rn(N.value.userOptions.callbacks.csv),
1269
- style: v({ cursor: P.value ? "pointer" : "default" })
1270
- }, [Ie(w(wt), {
1271
- name: "fileCsv",
1272
- stroke: $.value.props.color
1273
- }, null, 8, ["stroke"])], 4)]),
1274
- key: "1"
1275
- } : void 0]), 1040)) : d("", !0),
1276
- S(e.$slots, "skeleton", {}, () => [w(Qt) ? (y(), u(_e, { key: 0 })) : d("", !0)], !0)
1277
- ], 46, Ke));
1278
- }
1279
- }, [["__scopeId", "data-v-be7bab86"]]);
1280
- //#endregion
1281
- export { Ge as n, Ct as t };