vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  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/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -1,1368 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as ee, T as te, Wt as ne, Z as re, b as ie, dt as ae, i as s, kt as oe, n as se, ot as ce, r as le, t as ue, yt as de, zt as fe } from "./lib-JqW18y5I.js";
3
- import { t as pe } from "./useConfig-DYM3f6EI.js";
4
- import { t as me } from "./usePrinter-CqqHmnBI.js";
5
- import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as _e } from "./useSvgExport-SVIsDot8.js";
7
- import { t as ve } from "./useNestedProp-DIuuzG1r.js";
8
- import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as be } from "./img-DnP3eXuv.js";
10
- import { n as xe } from "./Title-CcNiYzEo.js";
11
- import { t as Se } from "./Shape-UpH0a4Ur.js";
12
- import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as we } from "./canvas-lib-BOP_HS11.js";
14
- import { t as Te } from "./useResponsive-BfnK0KxU.js";
15
- import { t as Ee } from "./DefGrad-DVBqDjhO.js";
16
- import { t as De } from "./BaseLegendToggle-DWtet-Hh.js";
17
- import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as je } from "./labelUtils-DBEh078l.js";
21
- import { t as Me } from "./Legend-ROt6ugzW.js";
22
- import { t as Ne } from "./vue_ui_waffle-DIARFc7g.js";
23
- import { Fragment as c, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as g, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as x, toRefs as Ke, unref as S, useSlots as qe, watch as C, withCtx as w } from "vue";
24
- //#region src/components/vue-ui-waffle.vue
25
- var Je = /* @__PURE__ */ e({ default: () => ht }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], et = ["id"], tt = [
30
- "x",
31
- "y",
32
- "height",
33
- "width"
34
- ], nt = ["height", "width"], rt = { key: 0 }, it = [
35
- "rx",
36
- "x",
37
- "y",
38
- "height",
39
- "width",
40
- "stroke",
41
- "stroke-width",
42
- "filter"
43
- ], at = [
44
- "rx",
45
- "x",
46
- "y",
47
- "height",
48
- "width",
49
- "fill",
50
- "stroke",
51
- "stroke-width",
52
- "filter"
53
- ], ot = { key: 1 }, st = [
54
- "rx",
55
- "x",
56
- "y",
57
- "height",
58
- "width",
59
- "fill",
60
- "filter"
61
- ], ct = [
62
- "textContent",
63
- "x",
64
- "y",
65
- "font-size",
66
- "fill",
67
- "filter"
68
- ], lt = [
69
- "x",
70
- "y",
71
- "height",
72
- "width",
73
- "onMouseover",
74
- "onMouseleave",
75
- "onClick"
76
- ], ut = {
77
- key: 0,
78
- style: {
79
- position: "absolute",
80
- top: "100%",
81
- left: "0",
82
- width: "100%"
83
- },
84
- "data-dom-to-png-ignore": "",
85
- "aria-hidden": "true"
86
- }, dt = {
87
- key: 5,
88
- class: "vue-data-ui-watermark"
89
- }, ft = ["id"], pt = ["onClick"], mt = ["innerHTML"], ht = /*#__PURE__*/ Ce({
90
- __name: "vue-ui-waffle",
91
- props: {
92
- config: {
93
- type: Object,
94
- default() {
95
- return {};
96
- }
97
- },
98
- dataset: {
99
- type: Array,
100
- default() {
101
- return [];
102
- }
103
- }
104
- },
105
- emits: ["selectLegend", "copyAlt"],
106
- setup(e, { expose: Ce, emit: Je }) {
107
- let ht = m(() => import("./Tooltip-CxOrWlFy.js")), gt = m(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), _t = m(() => import("./DataTable-BxpTMgfK.js")), vt = m(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), yt = m(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), bt = m(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), xt = m(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), St = m(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_waffle: Ct } = pe(), { isThemeValid: wt, warnInvalidTheme: Tt } = ye(), T = e, Et = qe(), Dt = l({
108
- get() {
109
- return !!T.dataset && T.dataset.length;
110
- },
111
- set(e) {
112
- return e;
113
- }
114
- }), E = v(n()), Ot = v(!1), kt = v(""), D = v(null), At = v(0), O = v(null), jt = v(null), Mt = v(null), Nt = v(null), Pt = v(null), Ft = v(0), It = v(0), Lt = v(0), Rt = v(!1), zt = v(null), Bt = v(null), Vt = v(!1), Ht = v(!1), k = v(null), Ut = v({
115
- x: 0,
116
- y: 0
117
- }), Wt = v("pointer"), Gt = v(!1), A = v($t()), j = l(() => A.value.userOptions.useCursorPointer), Kt = l(() => i({
118
- defaultConfig: {
119
- useCustomCells: !1,
120
- userOptions: { show: !1 },
121
- table: { show: !1 },
122
- style: { chart: {
123
- backgroundColor: "#99999930",
124
- layout: {
125
- labels: { captions: { show: !1 } },
126
- rect: { stroke: "#999999" }
127
- },
128
- legend: {
129
- backgroundColor: "transparent",
130
- showValue: !1,
131
- showPercentage: !1
132
- }
133
- } }
134
- },
135
- userConfig: A.value.skeletonConfig ?? {}
136
- })), { loading: qt, FINAL_DATASET: Jt, manualLoading: Yt } = he({
137
- ...Ke(T),
138
- FINAL_CONFIG: A,
139
- prepareConfig: $t,
140
- callback: () => {
141
- Promise.resolve().then(async () => {
142
- V.value = fn();
143
- });
144
- },
145
- skeletonDataset: T.config?.skeletonDataset ?? [
146
- {
147
- name: "",
148
- values: [1],
149
- color: "#AAAAAA"
150
- },
151
- {
152
- name: "",
153
- values: [1],
154
- color: "#BABABA"
155
- },
156
- {
157
- name: "",
158
- values: [1],
159
- color: "#CACACA"
160
- }
161
- ],
162
- skeletonConfig: i({
163
- defaultConfig: A.value,
164
- userConfig: Kt.value
165
- })
166
- }), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = ke({ config: A.value }), { svgRef: M } = Ae({ config: A.value.style.chart.title });
167
- function $t() {
168
- let e = ve({
169
- userConfig: T.config,
170
- defaultConfig: Ct
171
- }), t = e.theme;
172
- if (!t) return e;
173
- if (!wt.value(e)) return Tt(e), e;
174
- let n = ve({
175
- userConfig: Ne[t] || T.config,
176
- defaultConfig: e
177
- }), r = ve({
178
- userConfig: T.config,
179
- defaultConfig: n
180
- });
181
- return {
182
- ...r,
183
- customPalette: r.customPalette.length ? r.customPalette : ne[t] || a
184
- };
185
- }
186
- C(() => T.config, (e) => {
187
- qt.value || (A.value = $t()), Xt.value = !A.value.userOptions.showOnChartHover, tn(), Ft.value += 1, It.value += 1, Lt.value += 1, F.value.showTable = A.value.table.show, F.value.showTooltip = A.value.style.chart.tooltip.show;
188
- }, { deep: !0 });
189
- let N = Ge(null), P = Ge(null), en = l(() => !!A.value.debug);
190
- function tn() {
191
- if (oe(T.dataset) ? (t({
192
- componentName: "VueUiWaffle",
193
- type: "dataset",
194
- debug: en.value
195
- }), Dt.value = !1, Yt.value = !0) : T.dataset.forEach((e, n) => {
196
- ae({
197
- datasetObject: e,
198
- requiredAttributes: ["name", "values"]
199
- }).forEach((e) => {
200
- t({
201
- componentName: "VueUiWaffle",
202
- type: "datasetSerieAttribute",
203
- property: e,
204
- index: n,
205
- debug: en.value
206
- });
207
- });
208
- }), oe(T.dataset) || (Yt.value = A.value.loading), A.value.responsive) {
209
- let e = we(() => {
210
- let { width: e, height: t } = Te({
211
- chart: O.value,
212
- title: A.value.style.chart.title.text ? jt.value : null,
213
- legend: A.value.style.chart.legend.show ? Mt.value : null,
214
- source: Nt.value,
215
- noTitle: Pt.value
216
- });
217
- requestAnimationFrame(() => {
218
- I.value.width = e, I.value.height = t, L.value.width = e, L.value.height = t;
219
- });
220
- });
221
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(e), P.value = O.value.parentNode, N.value.observe(P.value);
222
- }
223
- }
224
- Ue(() => {
225
- Rt.value = !0, tn();
226
- }), He(() => {
227
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
228
- });
229
- let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = me({
230
- elementId: `vue-ui-waffle_${E.value}`,
231
- fileName: A.value.style.chart.title.text || "vue-ui-waffle",
232
- options: A.value.userOptions.print
233
- }), sn = l(() => A.value.userOptions.show && !A.value.style.chart.title.text), cn = l(() => ee(A.value.customPalette)), F = v({
234
- showTable: A.value.table.show,
235
- showTooltip: A.value.style.chart.tooltip.show
236
- });
237
- C(A, () => {
238
- F.value = {
239
- showTable: A.value.table.show,
240
- showTooltip: A.value.style.chart.tooltip.show
241
- };
242
- }, { immediate: !0 });
243
- let I = v({
244
- height: 512,
245
- width: 512
246
- }), L = v({
247
- top: 0,
248
- left: 0,
249
- height: 512,
250
- width: 512
251
- }), R = l(() => (L.value.width - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size), z = l(() => (L.value.height - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size), ln = l(() => Math.max(1e-4, L.value.width / A.value.style.chart.layout.grid.size)), un = l(() => Math.max(1e-4, L.value.height / A.value.style.chart.layout.grid.size));
252
- function dn(e) {
253
- let t = A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.size, n = e.reduce((e, t) => e + t, 0), r = e.map((e) => e / n * t), i = r.map(Math.floor), a = r.map((e) => e % 1), o = t - i.reduce((e, t) => e + t, 0);
254
- for (; o > 0;) {
255
- let e = a.indexOf(Math.max(...a));
256
- i[e] += 1, a[e] = 0, --o;
257
- }
258
- return i;
259
- }
260
- let B = v(!1);
261
- function fn() {
262
- return B.value = Jt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Jt.value.map((e, t) => ({
263
- ...e,
264
- color: ie(e.color) || cn.value[t] || a[t] || a[t % a.length],
265
- uid: `serie_${t}`,
266
- absoluteIndex: t
267
- }));
268
- }
269
- let pn = l(() => fn()), V = v(pn.value);
270
- C(() => T.dataset, (e) => {
271
- Array.isArray(e) && e.length > 0 && (Yt.value = !1);
272
- }, { immediate: !0 }), C(() => T.dataset, (e) => {
273
- V.value = fn();
274
- }, { deep: !0 });
275
- let mn = l(() => dn(V.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => B.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), hn = l(() => dn(V.value.map((e, t) => B.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), H = l(() => (Jt.value.forEach((e, n) => {
276
- [null, void 0].includes(e.values) && t({
277
- componentName: "VueUiWaffle",
278
- type: "datasetSerieAttribute",
279
- property: "values (number[])",
280
- index: n
281
- });
282
- }), V.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => ({
283
- absoluteIndex: e.absoluteIndex,
284
- uid: e.uid,
285
- name: e.name,
286
- color: e.color,
287
- value: (e.values || []).reduce((e, t) => e + t, 0),
288
- absoluteValues: e.values || [],
289
- proportion: mn.value[t]
290
- })))), U = l(() => V.value.map((e, t) => ({
291
- absoluteIndex: e.absoluteIndex,
292
- uid: e.uid,
293
- name: e.name,
294
- color: e.color,
295
- value: (e.values || []).reduce((e, t) => e + t, 0),
296
- absoluteValues: e.values || [],
297
- proportion: hn.value[t]
298
- })));
299
- function gn() {
300
- return U.value.map((e) => ({
301
- name: e.name,
302
- color: e.color,
303
- value: e.value,
304
- proportion: e.proportion
305
- }));
306
- }
307
- let _n = l(() => {
308
- let e = 0;
309
- return H.value.map((t, n) => {
310
- let r = e, i = r + t.proportion, a = [];
311
- for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
312
- return e = i, {
313
- ...t,
314
- start: r,
315
- rects: a
316
- };
317
- });
318
- }), W = l(() => _n.value.flatMap((e, t) => e.rects.map((n, r) => ({
319
- isFirst: r === 0,
320
- isLongEnough: n.length > 2,
321
- name: e.name,
322
- color: e.color,
323
- value: e.value,
324
- serieIndex: t,
325
- absoluteStartIndex: r < 3,
326
- serieId: e.uid,
327
- ...e
328
- }))).map((e, t) => ({
329
- ...e,
330
- isAbsoluteFirst: t % A.value.style.chart.layout.grid.size === 0
331
- }))), G = l(() => {
332
- let e = [];
333
- for (let t = 0; t < A.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < A.value.style.chart.layout.grid.size; n += 1) e.push({
334
- isStartOfLine: n === 0,
335
- position: A.value.style.chart.layout.grid.vertical ? t : n,
336
- x: (A.value.style.chart.layout.grid.vertical ? t : n) * (R.value + A.value.style.chart.layout.grid.spaceBetween),
337
- y: (A.value.style.chart.layout.grid.vertical ? n : t) * (z.value + A.value.style.chart.layout.grid.spaceBetween) + L.value.top
338
- });
339
- return e;
340
- }), K = v([]), vn = v(!1), yn = v(Object.create(null)), bn = v(Object.create(null)), xn = v(0);
341
- function Sn(e, t) {
342
- V.value = V.value.map((n) => n.uid === e ? {
343
- ...n,
344
- values: [t]
345
- } : n);
346
- }
347
- function Cn(e, t) {
348
- let n = t.find((t) => t.uid === e);
349
- return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
350
- }
351
- function wn(e) {
352
- yn.value[e] && (cancelAnimationFrame(yn.value[e]), delete yn.value[e]), bn.value[e] && (cancelAnimationFrame(bn.value[e]), delete bn.value[e]);
353
- }
354
- function Tn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
355
- wn(e), xn.value += 1, vn.value = !0;
356
- let i = t;
357
- return new Promise((a) => {
358
- function o() {
359
- if (r === "increase") {
360
- if (i >= n) {
361
- Sn(e, n), --xn.value, xn.value <= 0 && (vn.value = !1), delete yn.value[e], a();
362
- return;
363
- }
364
- i += n * .025, i > n && (i = n), Sn(e, i), yn.value[e] = requestAnimationFrame(o);
365
- } else {
366
- if (i <= t / 100) {
367
- Sn(e, 0), --xn.value, xn.value <= 0 && (vn.value = !1), delete bn.value[e], a();
368
- return;
369
- }
370
- i /= 1.15, Sn(e, i), bn.value[e] = requestAnimationFrame(o);
371
- }
372
- }
373
- o();
374
- });
375
- }
376
- function En() {
377
- V.value = pn.value;
378
- let e = K.value.length > 0;
379
- if (!A.value.useAnimation) {
380
- e ? K.value = [] : K.value = J.value.map((e) => e.uid);
381
- return;
382
- }
383
- e ? [...K.value].forEach((e) => {
384
- q(e, !0);
385
- }) : J.value.map((e) => e.uid).forEach((e) => {
386
- q(e, !0);
387
- });
388
- }
389
- function q(e, t = !1) {
390
- if (B.value && !t) return;
391
- let n = t || K.value.length < J.value.length - 1 && J.value.length > 1;
392
- if (!A.value.useAnimation) {
393
- K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
394
- return;
395
- }
396
- let r = Cn(e, pn.value), i = Cn(e, V.value);
397
- if (!(i === 0 && r === 0)) {
398
- if (K.value.includes(e)) {
399
- K.value = K.value.filter((t) => t !== e), Tn({
400
- seriesId: e,
401
- fromValue: i,
402
- toValue: r,
403
- mode: "increase"
404
- }).then(() => {
405
- zn("selectLegend", H.value.map((e) => ({
406
- name: e.name,
407
- color: e.color,
408
- value: e.value,
409
- proportion: e.proportion / A.value.style.chart.layout.grid.size ** 2
410
- })));
411
- });
412
- return;
413
- }
414
- n && Tn({
415
- seriesId: e,
416
- fromValue: i,
417
- toValue: 0,
418
- mode: "decrease"
419
- }).then(() => {
420
- K.value.includes(e) || K.value.push(e), Sn(e, 0), zn("selectLegend", H.value.map((e) => ({
421
- name: e.name,
422
- color: e.color,
423
- value: e.value,
424
- proportion: e.proportion / A.value.style.chart.layout.grid.size ** 2
425
- })));
426
- });
427
- }
428
- }
429
- function Dn(e) {
430
- return U.value.length ? U.value.find((t) => t.name === e) || (A.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (A.value.debug && console.warn("VueUiWaffle - There are no series to show."), null);
431
- }
432
- function On(e) {
433
- let t = Dn(e);
434
- t !== null && K.value.includes(t.uid) && q(t.uid);
435
- }
436
- function kn(e) {
437
- let t = Dn(e);
438
- t !== null && (K.value.includes(t.uid) || q(t.uid));
439
- }
440
- function An({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
441
- return je({
442
- config: i,
443
- val: e,
444
- percentage: t,
445
- showVal: n,
446
- showPercentage: r
447
- });
448
- }
449
- let J = l(() => V.value.map((e, t) => {
450
- let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / V.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
451
- return {
452
- name: e.name,
453
- color: e.color || cn[t] || a[t] || a[t % a.length],
454
- value: n,
455
- proportion: r,
456
- uid: e.uid,
457
- shape: "square"
458
- };
459
- }).map((e, t) => {
460
- let n = An({
461
- val: s(A.value.style.chart.layout.labels.dataLabels.formatter, e.value, r({
462
- p: A.value.style.chart.layout.labels.dataLabels.prefix,
463
- v: e.value,
464
- s: A.value.style.chart.layout.labels.dataLabels.suffix,
465
- r: A.value.style.chart.legend.roundingValue
466
- }), {
467
- datapoint: e,
468
- index: t
469
- }),
470
- percentage: isNaN(e.value / Y.value) ? "-" : r({
471
- v: e.value / Y.value * 100,
472
- s: "%",
473
- r: A.value.style.chart.legend.roundingPercentage
474
- }),
475
- showVal: A.value.style.chart.legend.showValue,
476
- showPercentage: A.value.style.chart.legend.showPercentage,
477
- config: A.value.style.chart.legend
478
- });
479
- return {
480
- ...e,
481
- opacity: K.value.includes(e.uid) ? .5 : 1,
482
- segregate: () => q(e.uid),
483
- isSegregated: K.value.includes(e.uid),
484
- display: `${e.name}${A.value.style.chart.legend.showPercentage || A.value.style.chart.legend.showValue ? ": " : ""}${n}`
485
- };
486
- })), jn = l(() => ({
487
- cy: "waffle-div-legend",
488
- backgroundColor: A.value.style.chart.legend.backgroundColor,
489
- color: A.value.style.chart.legend.color,
490
- fontSize: A.value.style.chart.legend.fontSize,
491
- paddingBottom: 12,
492
- fontWeight: A.value.style.chart.legend.bold ? "bold" : ""
493
- })), Y = l(() => H.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Mn = v(null), Nn = v(null), X = l(() => {
494
- let e = /* @__PURE__ */ new Map();
495
- return W.value.forEach((t, n) => {
496
- e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
497
- serieIndex: t.serieIndex,
498
- absoluteIndex: t.absoluteIndex,
499
- serieId: t.serieId,
500
- name: t.name,
501
- color: t.color,
502
- value: t.value,
503
- proportion: t.proportion,
504
- rectIndexes: [n]
505
- });
506
- }), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
507
- });
508
- function Pn(e) {
509
- return X.value.find((t) => t.serieIndex === e) || null;
510
- }
511
- function Fn(e) {
512
- let t = Pn(e);
513
- return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
514
- }
515
- function In(e) {
516
- let t = W.value[e];
517
- A.value.events.datapointClick && A.value.events.datapointClick({
518
- datapoint: t,
519
- seriesIndex: t.serieIndex
520
- });
521
- }
522
- function Ln(e) {
523
- let t = W.value[e];
524
- A.value.events.datapointLeave && A.value.events.datapointLeave({
525
- datapoint: t,
526
- seriesIndex: t.serieIndex
527
- }), Nn.value = null, Ot.value = !1, D.value = null, k.value = null, Wt.value = "pointer";
528
- }
529
- function Rn(e, t = "pointer") {
530
- if (K.value.length === T.dataset.length) return;
531
- let n = W.value[e];
532
- if (!n) return;
533
- Wt.value = t, k.value = n.serieIndex, Mn.value = {
534
- datapoint: n,
535
- seriesIndex: n.absoluteIndex,
536
- series: V.value,
537
- config: A.value
538
- }, A.value.events.datapointEnter && Nn.value !== n.serieIndex && A.value.events.datapointEnter({
539
- datapoint: n,
540
- seriesIndex: n.serieIndex
541
- }), Nn.value = n.serieIndex, Ot.value = !0, D.value = n.serieIndex;
542
- let i = A.value.style.chart.tooltip.customFormat;
543
- if (de(i) && ce(() => i({
544
- seriesIndex: n.absoluteIndex,
545
- datapoint: n,
546
- series: V.value,
547
- config: A.value
548
- }))) kt.value = i({
549
- seriesIndex: n.absoluteIndex,
550
- datapoint: n,
551
- series: V.value,
552
- config: A.value
553
- });
554
- else {
555
- let e = "";
556
- e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${Et.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${E.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${An({
557
- config: A.value.style.chart.tooltip,
558
- showVal: A.value.style.chart.tooltip.showValue,
559
- showPercentage: A.value.style.chart.tooltip.showPercentage,
560
- val: `<span>${s(A.value.style.chart.layout.labels.dataLabels.formatter, n.value, r({
561
- p: A.value.style.chart.layout.labels.dataLabels.prefix,
562
- v: n.value,
563
- s: A.value.style.chart.layout.labels.dataLabels.suffix,
564
- r: A.value.style.chart.tooltip.roundingValue
565
- }), {
566
- datapoint: n,
567
- seriesIndex: n.absoluteIndex,
568
- series: V.value
569
- })}</span>`,
570
- percentage: `<span>${r({
571
- v: B.value ? 1 / Jt.value.length * 100 : n.value / Y.value * 100,
572
- s: "%",
573
- r: A.value.style.chart.tooltip.roundingPercentage
574
- })}</span>`
575
- })}</b></div>`, kt.value = e;
576
- }
577
- }
578
- let zn = Je, Z = l(() => ({
579
- head: H.value.map((e) => ({
580
- name: e.name,
581
- color: e.color
582
- })),
583
- body: H.value.map((e) => e.value)
584
- }));
585
- function Bn(e) {
586
- return A.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== e ? `url(#blur_${E.value})` : "";
587
- }
588
- function Vn(e, t) {
589
- return A.value.style.chart.layout.labels.captions.show ? W.value.length && !vn.value && !A.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < A.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % A.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
590
- }
591
- function Hn(e, t = null) {
592
- let n = s(A.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, r({
593
- p: A.value.style.chart.layout.labels.dataLabels.prefix,
594
- v: W.value[e].value,
595
- s: A.value.style.chart.layout.labels.dataLabels.suffix,
596
- r: A.value.style.chart.layout.labels.captions.roundingValue
597
- }), {
598
- datapoint: W.value[e],
599
- position: t
600
- }), i = r({
601
- v: W.value[e].proportion,
602
- s: "%",
603
- r: A.value.style.chart.layout.labels.captions.roundingPercentage
604
- }), a = (A.value.style.chart.layout.labels.captions.serieNameAbbreviation ? se({
605
- source: W.value[e].name,
606
- length: A.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
607
- }) : W.value[e].name) + (A.value.style.chart.layout.labels.captions.showPercentage || A.value.style.chart.layout.labels.captions.showValue ? ":" : "");
608
- return `${A.value.style.chart.layout.labels.captions.showSerieName ? a : ""} ${An({
609
- val: n,
610
- percentage: i,
611
- showVal: A.value.style.chart.layout.labels.captions.showValue,
612
- showPercentage: A.value.style.chart.layout.labels.captions.showPercentage,
613
- config: A.value.style.chart.layout.labels.dataLabels
614
- })}`;
615
- }
616
- function Un(e = null) {
617
- ze(() => {
618
- let t = Z.value.head.map((e, t) => [
619
- [e.name],
620
- [Z.value.body[t]],
621
- [isNaN(Z.value.body[t] / Y.value) ? "-" : Z.value.body[t] / Y.value * 100]
622
- ]), n = te([
623
- [A.value.style.chart.title.text],
624
- [A.value.style.chart.title.subtitle.text],
625
- [
626
- [""],
627
- ["val"],
628
- ["%"]
629
- ]
630
- ].concat(t));
631
- e ? e(n) : re({
632
- csvContent: n,
633
- title: A.value.style.chart.title.text || "vue-ui-waffle"
634
- });
635
- });
636
- }
637
- let Q = l(() => ({
638
- head: [
639
- " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
640
- s(A.value.style.chart.layout.labels.dataLabels.formatter, Y.value, r({
641
- p: A.value.style.chart.layout.labels.dataLabels.prefix,
642
- v: Y.value,
643
- s: A.value.style.chart.layout.labels.dataLabels.suffix,
644
- r: A.value.table.td.roundingValue
645
- })),
646
- "100%"
647
- ],
648
- body: Z.value.head.map((e, t) => [
649
- {
650
- color: e.color,
651
- name: e.name
652
- },
653
- s(A.value.style.chart.layout.labels.dataLabels.formatter, Z.value.body[t], r({
654
- p: A.value.style.chart.layout.labels.dataLabels.prefix,
655
- v: Z.value.body[t],
656
- s: A.value.style.chart.layout.labels.dataLabels.suffix,
657
- r: A.value.table.td.roundingValue
658
- })),
659
- isNaN(Z.value.body[t] / Y.value) ? "-" : r({
660
- v: Z.value.body[t] / Y.value * 100,
661
- s: "%",
662
- r: A.value.table.td.roundingPercentage
663
- })
664
- ]),
665
- config: {
666
- th: {
667
- backgroundColor: A.value.table.th.backgroundColor,
668
- color: A.value.table.th.color,
669
- outline: A.value.table.th.outline
670
- },
671
- td: {
672
- backgroundColor: A.value.table.td.backgroundColor,
673
- color: A.value.table.td.color,
674
- outline: A.value.table.td.outline
675
- },
676
- shape: "square",
677
- breakpoint: A.value.table.responsiveBreakpoint
678
- },
679
- colNames: [
680
- A.value.table.columnNames.series,
681
- A.value.table.columnNames.value,
682
- A.value.table.columnNames.percentage
683
- ]
684
- })), $ = v(!1);
685
- function Wn(e) {
686
- $.value = e, At.value += 1;
687
- }
688
- function Gn() {
689
- F.value.showTable = !F.value.showTable;
690
- }
691
- function Kn() {
692
- F.value.showTooltip = !F.value.showTooltip;
693
- }
694
- let qn = v(!1);
695
- function Jn() {
696
- qn.value = !qn.value;
697
- }
698
- async function Yn({ scale: e = 2 } = {}) {
699
- if (!O.value) return;
700
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
701
- domElement: O.value,
702
- base64: !0,
703
- img: !0,
704
- scale: e
705
- });
706
- return {
707
- imageUri: i,
708
- base64: a,
709
- title: A.value.style.chart.title.text,
710
- width: t,
711
- height: n,
712
- aspectRatio: r
713
- };
714
- }
715
- let Xn = l(() => {
716
- let e = A.value.table.useDialog && !A.value.table.show, t = F.value.showTable;
717
- return {
718
- component: e ? St : vt,
719
- title: `${A.value.style.chart.title.text}${A.value.style.chart.title.subtitle.text ? `: ${A.value.style.chart.title.subtitle.text}` : ""}`,
720
- props: e ? {
721
- backgroundColor: A.value.table.th.backgroundColor,
722
- color: A.value.table.th.color,
723
- headerColor: A.value.table.th.color,
724
- headerBg: A.value.table.th.backgroundColor,
725
- isFullscreen: $.value,
726
- fullscreenParent: O.value,
727
- forcedWidth: Math.min(500, window.innerWidth * .8),
728
- isCursorPointer: j.value
729
- } : {
730
- hideDetails: !0,
731
- config: {
732
- open: t,
733
- maxHeight: 1e4,
734
- body: {
735
- backgroundColor: A.value.style.chart.backgroundColor,
736
- color: A.value.style.chart.color
737
- },
738
- head: {
739
- backgroundColor: A.value.style.chart.backgroundColor,
740
- color: A.value.style.chart.color
741
- }
742
- }
743
- }
744
- };
745
- });
746
- C(() => F.value.showTable, (e) => {
747
- A.value.table.show || (e && A.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
748
- });
749
- function Zn() {
750
- F.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
751
- }
752
- let Qn = l(() => J.value.map((e) => ({
753
- ...e,
754
- name: e.display
755
- }))), $n = l(() => A.value.style.chart.backgroundColor), er = l(() => A.value.style.chart.legend), { exportSvg: tr, getSvg: nr } = _e({
756
- svg: M,
757
- title: l(() => A.value.style.chart.title),
758
- legend: er,
759
- legendItems: Qn,
760
- backgroundColor: $n
761
- });
762
- async function rr({ isCb: e }) {
763
- Ht.value = !0, await ze();
764
- try {
765
- if (e) {
766
- let { blob: e, url: t, text: n, dataUrl: r } = await nr();
767
- await Promise.resolve(A.value.userOptions.callbacks.svg({
768
- blob: e,
769
- url: t,
770
- text: n,
771
- dataUrl: r
772
- }));
773
- } else await Promise.resolve(tr());
774
- } finally {
775
- Ht.value = !1;
776
- }
777
- }
778
- function ir(e) {
779
- if (e?.stage === "start") {
780
- Vt.value = !0;
781
- return;
782
- }
783
- if (e?.stage === "end") {
784
- Vt.value = !1;
785
- return;
786
- }
787
- on();
788
- }
789
- async function ar() {
790
- if (zn("copyAlt", {
791
- config: A.value,
792
- dataset: U.value
793
- }), !A.value.userOptions.callbacks.altCopy) {
794
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
795
- return;
796
- }
797
- await Promise.resolve(A.value.userOptions.callbacks.altCopy({
798
- config: A.value,
799
- dataset: U.value
800
- }));
801
- }
802
- function or() {
803
- k.value = null, Gt.value = !0;
804
- }
805
- function sr() {
806
- k.value = null, Wt.value = "pointer", Ot.value = !1, D.value = null, Nn.value = null, Gt.value = !1;
807
- }
808
- function cr(e) {
809
- if (!M.value || qn.value || document.activeElement !== M.value || !X.value.length || K.value.length === T.dataset.length) return;
810
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
811
- if (!t && !n && !r && !i) return;
812
- if (e.preventDefault(), e.stopPropagation(), i) {
813
- k.value = null, Wt.value = "pointer", Ot.value = !1, D.value = null, Nn.value = null;
814
- return;
815
- }
816
- if (r) {
817
- if (k.value === null) return;
818
- let e = Fn(k.value);
819
- if (e === null) return;
820
- In(e);
821
- return;
822
- }
823
- let a = X.value.findIndex((e) => e.serieIndex === k.value), o = null;
824
- if (o = a === -1 ? n ? X.value[0] : X.value[X.value.length - 1] : n ? X.value[(a + 1) % X.value.length] : X.value[(a - 1 + X.value.length) % X.value.length], !o) return;
825
- let ee = Fn(o.serieIndex);
826
- ee !== null && (lr(o.serieIndex), Rn(ee, "keyboard"));
827
- }
828
- function lr(e) {
829
- if (!Number.isFinite(e) || !M.value) return;
830
- let t = Pn(e);
831
- if (!t || !t.rectIndexes.length) return;
832
- let n = t.rectIndexes.map((e) => {
833
- let t = G.value[e];
834
- return t ? {
835
- x: t.x + A.value.style.chart.layout.grid.spaceBetween / 2 + ln.value / 2,
836
- y: t.y + A.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2
837
- } : null;
838
- }).filter(Boolean);
839
- if (!n.length) return;
840
- let r = Math.min(...n.map((e) => e.x)), i = Math.max(...n.map((e) => e.x)), a = Math.min(...n.map((e) => e.y)), o = Math.max(...n.map((e) => e.y)), ee = (r + i) / 2, te = (a + o) / 2, ne = M.value.getBoundingClientRect();
841
- Ut.value = {
842
- x: ne.left + ee / I.value.width * ne.width,
843
- y: ne.top + te / I.value.height * ne.height
844
- };
845
- }
846
- let ur = l(() => ({
847
- headers: Q.value?.colNames ?? [],
848
- rows: Q.value?.body ?? []
849
- }));
850
- return Ce({
851
- getData: gn,
852
- getImage: Yn,
853
- generatePdf: an,
854
- generateCsv: Un,
855
- generateImage: on,
856
- generateSvg: rr,
857
- hideSeries: kn,
858
- showSeries: On,
859
- toggleTable: Gn,
860
- toggleTooltip: Kn,
861
- toggleAnnotator: Jn,
862
- toggleFullscreen: Wn,
863
- copyAlt: ar
864
- }), (e, t) => (_(), f("div", {
865
- class: Be(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
866
- ref_key: "waffleChart",
867
- ref: O,
868
- id: `vue-ui-waffle_${E.value}`,
869
- style: Ve(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${A.value.style.chart.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
870
- onMouseenter: t[2] ||= () => S(Zt)(!0),
871
- onMouseleave: t[3] ||= () => S(Zt)(!1)
872
- }, [
873
- p("div", {
874
- id: `chart-instructions-${E.value}`,
875
- class: "sr-only"
876
- }, [p("p", null, x(A.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
877
- ur.value?.rows?.length ? (_(), u(Oe, {
878
- key: 0,
879
- uid: E.value,
880
- head: ur.value.headers,
881
- body: ur.value.rows,
882
- notice: A.value.a11y.translations.tableAvailable,
883
- caption: A.value.a11y.translations.tableCaption
884
- }, null, 8, [
885
- "uid",
886
- "head",
887
- "body",
888
- "notice",
889
- "caption"
890
- ])) : d("", !0),
891
- A.value.userOptions.buttons.annotator ? (_(), u(S(bt), {
892
- key: 1,
893
- svgRef: S(M),
894
- backgroundColor: A.value.style.chart.backgroundColor,
895
- color: A.value.style.chart.color,
896
- active: qn.value,
897
- isCursorPointer: j.value,
898
- onClose: Jn
899
- }, {
900
- "annotator-action-close": w(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
901
- "annotator-action-color": w(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
902
- "annotator-action-draw": w(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
903
- "annotator-action-undo": w(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
904
- "annotator-action-redo": w(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
905
- "annotator-action-delete": w(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
906
- _: 3
907
- }, 8, [
908
- "svgRef",
909
- "backgroundColor",
910
- "color",
911
- "active",
912
- "isCursorPointer"
913
- ])) : d("", !0),
914
- sn.value ? (_(), f("div", {
915
- key: 2,
916
- ref_key: "noTitle",
917
- ref: Pt,
918
- class: "vue-data-ui-no-title-space",
919
- style: "height:36px; width: 100%;background:transparent"
920
- }, null, 512)) : d("", !0),
921
- A.value.style.chart.title.text ? (_(), f("div", {
922
- key: 3,
923
- ref_key: "chartTitle",
924
- ref: jt,
925
- style: "width:100%;background:transparent;padding-bottom:12px"
926
- }, [(_(), u(xe, {
927
- key: `title_${Ft.value}`,
928
- config: {
929
- title: {
930
- cy: "waffle-title",
931
- ...A.value.style.chart.title
932
- },
933
- subtitle: {
934
- cy: "waffle-subtitle",
935
- ...A.value.style.chart.title.subtitle
936
- }
937
- }
938
- }, null, 8, ["config"]))], 512)) : d("", !0),
939
- p("div", { id: `legend-top-${E.value}` }, null, 8, Ze),
940
- A.value.userOptions.show && Dt.value && (S(Qt) || S(Xt)) ? (_(), u(S(yt), {
941
- ref_key: "userOptionsRef",
942
- ref: Bt,
943
- key: `user_options_${At.value}`,
944
- backgroundColor: A.value.style.chart.backgroundColor,
945
- color: A.value.style.chart.color,
946
- isPrinting: S(nn),
947
- isImaging: S(rn),
948
- uid: E.value,
949
- hasTooltip: A.value.userOptions.buttons.tooltip && A.value.style.chart.tooltip.show,
950
- hasPdf: A.value.userOptions.buttons.pdf,
951
- hasImg: A.value.userOptions.buttons.img,
952
- hasSvg: A.value.userOptions.buttons.svg,
953
- hasXls: A.value.userOptions.buttons.csv,
954
- hasTable: A.value.userOptions.buttons.table,
955
- hasFullscreen: A.value.userOptions.buttons.fullscreen,
956
- hasAltCopy: A.value.userOptions.buttons.altCopy,
957
- isFullscreen: $.value,
958
- isTooltip: F.value.showTooltip,
959
- titles: { ...A.value.userOptions.buttonTitles },
960
- chartElement: O.value,
961
- position: A.value.userOptions.position,
962
- hasAnnotator: A.value.userOptions.buttons.annotator,
963
- isAnnotation: qn.value,
964
- callbacks: A.value.userOptions.callbacks,
965
- printScale: A.value.userOptions.print.scale,
966
- tableDialog: A.value.table.useDialog,
967
- isCursorPointer: j.value,
968
- onToggleFullscreen: Wn,
969
- onGeneratePdf: S(an),
970
- onGenerateCsv: Un,
971
- onGenerateImage: ir,
972
- onGenerateSvg: rr,
973
- onToggleTable: Gn,
974
- onToggleTooltip: Kn,
975
- onToggleAnnotator: Jn,
976
- onCopyAlt: ar,
977
- style: Ve({ visibility: S(Qt) ? S(Xt) ? "visible" : "hidden" : "visible" })
978
- }, Fe({ _: 2 }, [
979
- e.$slots.menuIcon ? {
980
- name: "menuIcon",
981
- fn: w(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(h({
982
- isOpen: t,
983
- color: n
984
- })), void 0, !0)]),
985
- key: "0"
986
- } : void 0,
987
- e.$slots.optionTooltip ? {
988
- name: "optionTooltip",
989
- fn: w(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
990
- key: "1"
991
- } : void 0,
992
- e.$slots.optionPdf ? {
993
- name: "optionPdf",
994
- fn: w(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
995
- key: "2"
996
- } : void 0,
997
- e.$slots.optionCsv ? {
998
- name: "optionCsv",
999
- fn: w(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
1000
- key: "3"
1001
- } : void 0,
1002
- e.$slots.optionImg ? {
1003
- name: "optionImg",
1004
- fn: w(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
1005
- key: "4"
1006
- } : void 0,
1007
- e.$slots.optionSvg ? {
1008
- name: "optionSvg",
1009
- fn: w(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
1010
- key: "5"
1011
- } : void 0,
1012
- e.$slots.optionTable ? {
1013
- name: "optionTable",
1014
- fn: w(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
1015
- key: "6"
1016
- } : void 0,
1017
- e.$slots.optionFullscreen ? {
1018
- name: "optionFullscreen",
1019
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(h({
1020
- toggleFullscreen: t,
1021
- isFullscreen: n
1022
- })), void 0, !0)]),
1023
- key: "7"
1024
- } : void 0,
1025
- e.$slots.optionAnnotator ? {
1026
- name: "optionAnnotator",
1027
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(h({
1028
- toggleAnnotator: t,
1029
- isAnnotator: n
1030
- })), void 0, !0)]),
1031
- key: "8"
1032
- } : void 0,
1033
- e.$slots.optionAltCopy ? {
1034
- name: "optionAltCopy",
1035
- fn: w(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
1036
- key: "9"
1037
- } : void 0,
1038
- e.$slots["custom-menu-before"] ? {
1039
- name: "custom-menu-before",
1040
- fn: w(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1041
- key: "10"
1042
- } : void 0,
1043
- e.$slots["custom-menu-after"] ? {
1044
- name: "custom-menu-after",
1045
- fn: w(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1046
- key: "11"
1047
- } : void 0
1048
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.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),
1049
- p("div", Qe, [(_(), f("svg", {
1050
- ref_key: "svgRef",
1051
- ref: M,
1052
- xmlns: S(ue),
1053
- "aria-describedby": `chart-instructions-${E.value}`,
1054
- class: Be({
1055
- "vue-data-ui-fullscreen--on": $.value,
1056
- "vue-data-ui-fulscreen--off": !$.value
1057
- }),
1058
- tabindex: "0",
1059
- viewBox: `0 0 ${I.value.width <= 0 ? 10 : I.value.width} ${I.value.height <= 0 ? 10 : I.value.height}`,
1060
- style: Ve(`max-width:100%;overflow:visible;background:transparent;color:${A.value.style.chart.color}`),
1061
- onFocus: or,
1062
- onBlur: sr,
1063
- onKeydown: cr
1064
- }, [
1065
- Le(S(xt)),
1066
- p("defs", null, [(_(!0), f(c, null, y(W.value, (e, t) => (_(), u(Ee, {
1067
- t: "radial",
1068
- cx: "50%",
1069
- cy: "50%",
1070
- r: "50%",
1071
- fx: "50%",
1072
- fy: "50%",
1073
- id: `gradient_${E.value}_${t}`,
1074
- key: `gradient_${E.value}_${t}`,
1075
- stops: [[
1076
- "0%",
1077
- S(o)(S(fe)(e.color, .05), 100 - A.value.style.chart.layout.rect.gradientIntensity),
1078
- 1
1079
- ], [
1080
- "100%",
1081
- e.color,
1082
- 1
1083
- ]]
1084
- }, null, 8, ["id", "stops"]))), 128))]),
1085
- p("defs", null, [p("filter", {
1086
- id: `blur_${E.value}`,
1087
- x: "-50%",
1088
- y: "-50%",
1089
- width: "200%",
1090
- height: "200%"
1091
- }, [...t[4] ||= [p("feGaussianBlur", {
1092
- in: "SourceGraphic",
1093
- stdDeviation: 2
1094
- }, null, -1), p("feColorMatrix", {
1095
- type: "saturate",
1096
- values: "0"
1097
- }, null, -1)]], 8, et)]),
1098
- A.value.useCustomCells && W.value.length && e.$slots.cell ? (_(!0), f(c, { key: 0 }, y(G.value, (t, n) => (_(), f("foreignObject", {
1099
- x: t.x,
1100
- y: t.y,
1101
- height: z.value <= 0 ? 1e-4 : z.value,
1102
- width: R.value <= 0 ? 1e-4 : R.value,
1103
- class: "vue-ui-waffle-custom-cell-foreignObject"
1104
- }, [b(e.$slots, "cell", Re({ ref_for: !0 }, {
1105
- cell: {
1106
- ...t,
1107
- color: W.value[n].color,
1108
- height: Math.max(0, z.value),
1109
- width: Math.max(0, R.value),
1110
- ...W.value[n]
1111
- },
1112
- isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
1113
- }), void 0, !0)], 8, tt))), 256)) : d("", !0),
1114
- !W.value.length && !A.value.useCustomCells ? (_(), f("rect", {
1115
- key: 1,
1116
- x: 12,
1117
- y: 12,
1118
- height: L.value.height - 24,
1119
- width: L.value.width - 24,
1120
- rx: 3,
1121
- fill: "none",
1122
- stroke: "black"
1123
- }, null, 8, nt)) : W.value.length && !A.value.useCustomCells ? (_(), f(c, { key: 2 }, [
1124
- e.$slots.pattern ? (_(), f("g", rt, [(_(!0), f(c, null, y(pn.value, (t) => (_(), f("defs", null, [b(e.$slots, "pattern", Re({ ref_for: !0 }, {
1125
- seriesIndex: t.absoluteIndex,
1126
- patternId: `pattern_${E.value}_${t.absoluteIndex}`
1127
- }), void 0, !0)]))), 256))])) : d("", !0),
1128
- (_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
1129
- rx: A.value.style.chart.layout.rect.rounded ? A.value.style.chart.layout.rect.rounding : 0,
1130
- x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
1131
- y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
1132
- height: z.value <= 0 ? 1e-4 : z.value,
1133
- width: R.value <= 0 ? 1e-4 : R.value,
1134
- fill: "white",
1135
- stroke: A.value.style.chart.layout.rect.stroke,
1136
- "stroke-width": A.value.style.chart.layout.rect.strokeWidth,
1137
- filter: Bn(W.value[t].serieIndex)
1138
- }, null, 8, it))), 256)),
1139
- (_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
1140
- rx: A.value.style.chart.layout.rect.rounded ? A.value.style.chart.layout.rect.rounding : 0,
1141
- x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
1142
- y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
1143
- height: z.value <= 0 ? 1e-4 : z.value,
1144
- width: R.value <= 0 ? 1e-4 : R.value,
1145
- fill: A.value.style.chart.layout.rect.useGradient && A.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${E.value}_${t})` : W.value[t].color,
1146
- stroke: A.value.style.chart.layout.rect.stroke,
1147
- "stroke-width": A.value.style.chart.layout.rect.strokeWidth,
1148
- filter: Bn(W.value[t].serieIndex)
1149
- }, null, 8, at))), 256)),
1150
- e.$slots.pattern ? (_(), f("g", ot, [(_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
1151
- rx: A.value.style.chart.layout.rect.rounded ? A.value.style.chart.layout.rect.rounding : 0,
1152
- x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
1153
- y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
1154
- height: z.value <= 0 ? 1e-4 : z.value,
1155
- width: R.value <= 0 ? 1e-4 : R.value,
1156
- fill: `url(#pattern_${E.value}_${W.value[t].absoluteIndex})`,
1157
- stroke: "none",
1158
- filter: Bn(W.value[t].serieIndex)
1159
- }, null, 8, st))), 256))])) : d("", !0)
1160
- ], 64)) : d("", !0),
1161
- e.$slots.cellSvg ? (_(!0), f(c, { key: 3 }, y(G.value, (t, n) => (_(), f("g", null, [b(e.$slots, "cellSvg", Re({ ref_for: !0 }, {
1162
- cell: {
1163
- ...t,
1164
- color: W.value[n].color,
1165
- height: Math.max(0, z.value),
1166
- width: Math.max(0, R.value),
1167
- ...W.value[n]
1168
- },
1169
- isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
1170
- }), void 0, !0)]))), 256)) : d("", !0),
1171
- (_(!0), f(c, null, y(G.value, (e, t) => (_(), f(c, null, [Vn(t, e) ? (_(), f("text", {
1172
- key: `datalabel_${t}`,
1173
- textContent: x(Hn(t, e)),
1174
- x: e.x + A.value.style.chart.layout.labels.captions.offsetX + A.value.style.chart.layout.grid.spaceBetween / 2 + 6,
1175
- y: e.y + A.value.style.chart.layout.labels.captions.offsetY + A.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2 + A.value.style.chart.layout.labels.captions.fontSize / 3,
1176
- "font-size": A.value.style.chart.layout.labels.captions.fontSize,
1177
- fill: S(le)(W.value[t].color),
1178
- filter: Bn(W.value[t].serieIndex)
1179
- }, null, 8, ct)) : d("", !0)], 64))), 256)),
1180
- (_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
1181
- x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
1182
- y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
1183
- height: un.value,
1184
- width: ln.value,
1185
- fill: "transparent",
1186
- stroke: "none",
1187
- onMouseover: (e) => Rn(t),
1188
- onMouseleave: (e) => Ln(t),
1189
- onClick: (e) => In(t)
1190
- }, null, 40, lt))), 256)),
1191
- b(e.$slots, "svg", { svg: {
1192
- ...I.value,
1193
- isPrintingImg: S(nn) || S(rn) || Vt.value,
1194
- isPrintingSvg: Ht.value
1195
- } }, void 0, !0)
1196
- ], 46, $e)), e.$slots.hint ? (_(), f("div", ut, [b(e.$slots, "hint", g(h({
1197
- hint: A.value.a11y.translations.keyboardNavigation,
1198
- isVisible: Gt.value
1199
- })), void 0, !0)])) : d("", !0)]),
1200
- e.$slots.watermark ? (_(), f("div", dt, [b(e.$slots, "watermark", g(h({ isPrinting: S(nn) || S(rn) || Vt.value || Ht.value })), void 0, !0)])) : d("", !0),
1201
- p("div", { id: `legend-bottom-${E.value}` }, null, 8, ft),
1202
- Rt.value && (A.value.style.chart.legend.show || e.$slots.legend) ? (_(), u(Pe, {
1203
- key: 6,
1204
- to: A.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1205
- }, [p("div", {
1206
- ref_key: "chartLegend",
1207
- ref: Mt
1208
- }, [b(e.$slots, "legend", { legend: J.value }, () => [A.value.style.chart.legend.show ? (_(), u(Me, {
1209
- key: `legend_${Lt.value}`,
1210
- legendSet: J.value,
1211
- config: jn.value,
1212
- isCursorPointer: j.value,
1213
- onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
1214
- }, Fe({
1215
- item: w(({ legend: e }) => [p("div", {
1216
- onClick: (t) => e.segregate(),
1217
- style: Ve(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
1218
- }, x(e.display), 13, pt)]),
1219
- legendToggle: w(() => [J.value.length > 2 && A.value.style.chart.legend.selectAllToggle.show && !S(qt) ? (_(), u(De, {
1220
- key: 0,
1221
- backgroundColor: A.value.style.chart.legend.selectAllToggle.backgroundColor,
1222
- color: A.value.style.chart.legend.selectAllToggle.color,
1223
- fontSize: A.value.style.chart.legend.fontSize,
1224
- checked: K.value.length > 0,
1225
- isCursorPointer: j.value,
1226
- onToggle: En
1227
- }, null, 8, [
1228
- "backgroundColor",
1229
- "color",
1230
- "fontSize",
1231
- "checked",
1232
- "isCursorPointer"
1233
- ])) : d("", !0)]),
1234
- _: 2
1235
- }, [e.$slots.pattern ? {
1236
- name: "legend-pattern",
1237
- fn: w(({ legend: e, index: t }) => [Le(Se, {
1238
- shape: e.shape,
1239
- radius: 30,
1240
- stroke: "none",
1241
- plot: {
1242
- x: 30,
1243
- y: 30
1244
- },
1245
- fill: `url(#pattern_${E.value}_${t})`
1246
- }, null, 8, ["shape", "fill"])]),
1247
- key: "0"
1248
- } : void 0]), 1032, [
1249
- "legendSet",
1250
- "config",
1251
- "isCursorPointer"
1252
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1253
- e.$slots.source ? (_(), f("div", {
1254
- key: 7,
1255
- ref_key: "source",
1256
- ref: Nt,
1257
- dir: "auto"
1258
- }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1259
- Le(S(ht), {
1260
- teleportTo: A.value.style.chart.tooltip.teleportTo,
1261
- show: F.value.showTooltip && Ot.value && K.value.length < T.dataset.length,
1262
- backgroundColor: A.value.style.chart.tooltip.backgroundColor,
1263
- color: A.value.style.chart.tooltip.color,
1264
- borderRadius: A.value.style.chart.tooltip.borderRadius,
1265
- borderColor: A.value.style.chart.tooltip.borderColor,
1266
- borderWidth: A.value.style.chart.tooltip.borderWidth,
1267
- backgroundOpacity: A.value.style.chart.tooltip.backgroundOpacity,
1268
- position: A.value.style.chart.tooltip.position,
1269
- offsetX: A.value.style.chart.tooltip.offsetX,
1270
- offsetY: A.value.style.chart.tooltip.offsetY,
1271
- parent: O.value,
1272
- content: kt.value,
1273
- isCustom: A.value.style.chart.tooltip.customFormat && typeof A.value.style.chart.tooltip.customFormat == "function",
1274
- fontSize: A.value.style.chart.tooltip.fontSize,
1275
- isFullscreen: $.value,
1276
- smooth: A.value.style.chart.tooltip.smooth,
1277
- backdropFilter: A.value.style.chart.tooltip.backdropFilter,
1278
- smoothForce: A.value.style.chart.tooltip.smoothForce,
1279
- smoothSnapThreshold: A.value.style.chart.tooltip.smoothSnapThreshold,
1280
- isA11yMode: Wt.value === "keyboard",
1281
- a11yPosition: Ut.value
1282
- }, {
1283
- "tooltip-before": w(() => [b(e.$slots, "tooltip-before", g(h({ ...Mn.value })), void 0, !0)]),
1284
- tooltip: w(() => [b(e.$slots, "tooltip", g(h({ ...Mn.value })), void 0, !0)]),
1285
- "tooltip-after": w(() => [b(e.$slots, "tooltip-after", g(h({ ...Mn.value })), void 0, !0)]),
1286
- _: 3
1287
- }, 8, [
1288
- "teleportTo",
1289
- "show",
1290
- "backgroundColor",
1291
- "color",
1292
- "borderRadius",
1293
- "borderColor",
1294
- "borderWidth",
1295
- "backgroundOpacity",
1296
- "position",
1297
- "offsetX",
1298
- "offsetY",
1299
- "parent",
1300
- "content",
1301
- "isCustom",
1302
- "fontSize",
1303
- "isFullscreen",
1304
- "smooth",
1305
- "backdropFilter",
1306
- "smoothForce",
1307
- "smoothSnapThreshold",
1308
- "isA11yMode",
1309
- "a11yPosition"
1310
- ]),
1311
- Dt.value && A.value.userOptions.buttons.table ? (_(), u(We(Xn.value.component), Re({ key: 8 }, Xn.value.props, {
1312
- ref_key: "tableUnit",
1313
- ref: zt,
1314
- onClose: Zn
1315
- }), Fe({
1316
- content: w(() => [(_(), u(S(_t), {
1317
- key: `table_${It.value}`,
1318
- colNames: Q.value.colNames,
1319
- head: Q.value.head,
1320
- body: Q.value.body,
1321
- config: Q.value.config,
1322
- title: A.value.table.useDialog ? "" : Xn.value.title,
1323
- withCloseButton: !A.value.table.useDialog,
1324
- isCursorPointer: j.value,
1325
- onClose: Zn
1326
- }, {
1327
- th: w(({ th: e }) => [p("div", {
1328
- innerHTML: e,
1329
- style: {
1330
- display: "flex",
1331
- "align-items": "center"
1332
- }
1333
- }, null, 8, mt)]),
1334
- td: w(({ td: e }) => [Ie(x(e.name || e), 1)]),
1335
- _: 1
1336
- }, 8, [
1337
- "colNames",
1338
- "head",
1339
- "body",
1340
- "config",
1341
- "title",
1342
- "withCloseButton",
1343
- "isCursorPointer"
1344
- ]))]),
1345
- _: 2
1346
- }, [A.value.table.useDialog ? {
1347
- name: "title",
1348
- fn: w(() => [Ie(x(Xn.value.title), 1)]),
1349
- key: "0"
1350
- } : void 0, A.value.table.useDialog ? {
1351
- name: "actions",
1352
- fn: w(() => [p("button", {
1353
- tabindex: "0",
1354
- class: "vue-ui-user-options-button",
1355
- onClick: t[1] ||= (e) => Un(A.value.userOptions.callbacks.csv),
1356
- style: Ve({ cursor: j.value ? "pointer" : "default" })
1357
- }, [Le(S(gt), {
1358
- name: "fileCsv",
1359
- stroke: Xn.value.props.color
1360
- }, null, 8, ["stroke"])], 4)]),
1361
- key: "1"
1362
- } : void 0]), 1040)) : d("", !0),
1363
- b(e.$slots, "skeleton", {}, () => [S(qt) ? (_(), u(ge, { key: 0 })) : d("", !0)], !0)
1364
- ], 46, Ye));
1365
- }
1366
- }, [["__scopeId", "data-v-8de28266"]]);
1367
- //#endregion
1368
- export { Je as n, ht as t };