vue-data-ui 3.22.8 → 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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -0,0 +1,1368 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, Bt as n, C as r, E as i, Gt as a, K as o, Nt as s, Q as ee, Y as c, bt as te, et as ne, ft as re, i as ie, n as ae, qt as oe, r as se, st as ce, t as le, x as ue, zt as de } from "./lib-CnHx5WfV.js";
3
+ import { t as fe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as pe } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ge } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as _e } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ye } from "./img-CNdXiUfZ.js";
10
+ import { n as be } from "./Title-Cr3jP7Qd.js";
11
+ import { t as xe } from "./Shape-B5ksaGa1.js";
12
+ import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as Ce } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as we } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as Te } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as Ee } from "./BaseLegendToggle-BrQ2OlzI.js";
17
+ import { t as De } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Ae } from "./labelUtils-JaoYKi2N.js";
21
+ import { t as je } from "./Legend-5VQGLnmx.js";
22
+ import { t as Me } from "./vue_ui_waffle-DIARFc7g.js";
23
+ import { Fragment as l, Teleport as Ne, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as _, normalizeStyle as Be, onBeforeUnmount as Ve, onMounted as He, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as S, toRefs as Ge, unref as C, useSlots as Ke, watch as w, withCtx as T } from "vue";
24
+ //#region src/components/vue-ui-waffle.vue
25
+ var qe = /* @__PURE__ */ e({ default: () => mt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
26
+ "xmlns",
27
+ "aria-describedby",
28
+ "viewBox"
29
+ ], $e = ["id"], et = [
30
+ "x",
31
+ "y",
32
+ "height",
33
+ "width"
34
+ ], tt = ["height", "width"], nt = { key: 0 }, rt = [
35
+ "rx",
36
+ "x",
37
+ "y",
38
+ "height",
39
+ "width",
40
+ "stroke",
41
+ "stroke-width",
42
+ "filter"
43
+ ], it = [
44
+ "rx",
45
+ "x",
46
+ "y",
47
+ "height",
48
+ "width",
49
+ "fill",
50
+ "stroke",
51
+ "stroke-width",
52
+ "filter"
53
+ ], at = { key: 1 }, ot = [
54
+ "rx",
55
+ "x",
56
+ "y",
57
+ "height",
58
+ "width",
59
+ "fill",
60
+ "filter"
61
+ ], st = [
62
+ "textContent",
63
+ "x",
64
+ "y",
65
+ "font-size",
66
+ "fill",
67
+ "filter"
68
+ ], ct = [
69
+ "x",
70
+ "y",
71
+ "height",
72
+ "width",
73
+ "onMouseover",
74
+ "onMouseleave",
75
+ "onClick"
76
+ ], lt = {
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
+ }, ut = {
87
+ key: 5,
88
+ class: "vue-data-ui-watermark"
89
+ }, dt = ["id"], ft = ["onClick"], pt = ["innerHTML"], mt = /*#__PURE__*/ Se({
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: Se, emit: qe }) {
107
+ let mt = h(() => import("./Tooltip-CDbLl3TD.js")), ht = h(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), gt = h(() => import("./DataTable-ByZy5gt1.js")), _t = h(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), vt = h(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), yt = h(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), bt = h(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), xt = h(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_waffle: St } = fe(), { isThemeValid: Ct, warnInvalidTheme: wt } = ve(), E = e, Tt = Ke(), Et = u({
108
+ get() {
109
+ return !!E.dataset && E.dataset.length;
110
+ },
111
+ set(e) {
112
+ return e;
113
+ }
114
+ }), D = y(o()), Dt = y(!1), Ot = y(""), O = y(null), kt = y(0), k = y(null), At = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(0), Ft = y(0), It = y(0), Lt = y(!1), Rt = y(null), zt = y(null), Bt = y(!1), Vt = y(!1), A = y(null), Ht = y({
115
+ x: 0,
116
+ y: 0
117
+ }), j = y("pointer"), Ut = y(!1), M = y(Zt()), N = u(() => M.value.userOptions.useCursorPointer), Wt = u(() => oe({
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: M.value.skeletonConfig ?? {}
136
+ })), { loading: Gt, FINAL_DATASET: Kt, manualLoading: qt } = me({
137
+ ...Ge(E),
138
+ FINAL_CONFIG: M,
139
+ prepareConfig: Zt,
140
+ callback: () => {
141
+ Promise.resolve().then(async () => {
142
+ H.value = dn();
143
+ });
144
+ },
145
+ skeletonDataset: E.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: oe({
163
+ defaultConfig: M.value,
164
+ userConfig: Wt.value
165
+ })
166
+ }), { userOptionsVisible: Jt, setUserOptionsVisibility: Yt, keepUserOptionState: Xt } = Oe({ config: M.value }), { svgRef: P } = ke({ config: M.value.style.chart.title });
167
+ function Zt() {
168
+ let e = _e({
169
+ userConfig: E.config,
170
+ defaultConfig: St
171
+ }), t = e.theme;
172
+ if (!t) return e;
173
+ if (!Ct.value(e)) return wt(e), e;
174
+ let n = _e({
175
+ userConfig: Me[t] || E.config,
176
+ defaultConfig: e
177
+ }), r = _e({
178
+ userConfig: E.config,
179
+ defaultConfig: n
180
+ });
181
+ return {
182
+ ...r,
183
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || s
184
+ };
185
+ }
186
+ w(() => E.config, (e) => {
187
+ Gt.value || (M.value = Zt()), Jt.value = !M.value.userOptions.showOnChartHover, $t(), Pt.value += 1, Ft.value += 1, It.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
188
+ }, { deep: !0 });
189
+ let F = We(null), I = We(null), Qt = u(() => !!M.value.debug);
190
+ function $t() {
191
+ if (t(E.dataset) ? (ne({
192
+ componentName: "VueUiWaffle",
193
+ type: "dataset",
194
+ debug: Qt.value
195
+ }), Et.value = !1, qt.value = !0) : E.dataset.forEach((e, t) => {
196
+ re({
197
+ datasetObject: e,
198
+ requiredAttributes: ["name", "values"]
199
+ }).forEach((e) => {
200
+ ne({
201
+ componentName: "VueUiWaffle",
202
+ type: "datasetSerieAttribute",
203
+ property: e,
204
+ index: t,
205
+ debug: Qt.value
206
+ });
207
+ });
208
+ }), t(E.dataset) || (qt.value = M.value.loading), M.value.responsive) {
209
+ let e = Ce(() => {
210
+ let { width: e, height: t } = we({
211
+ chart: k.value,
212
+ title: M.value.style.chart.title.text ? At.value : null,
213
+ legend: M.value.style.chart.legend.show ? jt.value : null,
214
+ source: Mt.value,
215
+ noTitle: Nt.value
216
+ });
217
+ requestAnimationFrame(() => {
218
+ R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
219
+ });
220
+ });
221
+ F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = k.value.parentNode, F.value.observe(I.value);
222
+ }
223
+ }
224
+ He(() => {
225
+ Lt.value = !0, $t();
226
+ }), Ve(() => {
227
+ F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
228
+ });
229
+ let { isPrinting: en, isImaging: tn, generatePdf: nn, generateImage: rn } = pe({
230
+ elementId: `vue-ui-waffle_${D.value}`,
231
+ fileName: M.value.style.chart.title.text || "vue-ui-waffle",
232
+ options: M.value.userOptions.print
233
+ }), an = u(() => M.value.userOptions.show && !M.value.style.chart.title.text), on = u(() => r(M.value.customPalette)), L = y({
234
+ showTable: M.value.table.show,
235
+ showTooltip: M.value.style.chart.tooltip.show
236
+ });
237
+ w(M, () => {
238
+ L.value = {
239
+ showTable: M.value.table.show,
240
+ showTooltip: M.value.style.chart.tooltip.show
241
+ };
242
+ }, { immediate: !0 });
243
+ let R = y({
244
+ height: 512,
245
+ width: 512
246
+ }), z = y({
247
+ top: 0,
248
+ left: 0,
249
+ height: 512,
250
+ width: 512
251
+ }), B = u(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = u(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), sn = u(() => Math.max(1e-4, z.value.width / M.value.style.chart.layout.grid.size)), cn = u(() => Math.max(1e-4, z.value.height / M.value.style.chart.layout.grid.size));
252
+ function ln(e) {
253
+ let t = M.value.style.chart.layout.grid.size * M.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 un = y(!1);
261
+ function dn() {
262
+ return un.value = Kt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Kt.value.map((e, t) => ({
263
+ ...e,
264
+ color: ue(e.color) || on.value[t] || s[t] || s[t % s.length],
265
+ uid: `serie_${t}`,
266
+ absoluteIndex: t
267
+ }));
268
+ }
269
+ let fn = u(() => dn()), H = y(fn.value);
270
+ w(() => E.dataset, (e) => {
271
+ Array.isArray(e) && e.length > 0 && (qt.value = !1);
272
+ }, { immediate: !0 }), w(() => E.dataset, (e) => {
273
+ H.value = dn();
274
+ }, { deep: !0 });
275
+ let pn = u(() => ln(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => un.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), mn = u(() => ln(H.value.map((e, t) => un.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = u(() => (Kt.value.forEach((e, t) => {
276
+ [null, void 0].includes(e.values) && ne({
277
+ componentName: "VueUiWaffle",
278
+ type: "datasetSerieAttribute",
279
+ property: "values (number[])",
280
+ index: t
281
+ });
282
+ }), H.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: pn.value[t]
290
+ })))), hn = u(() => H.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: mn.value[t]
298
+ })));
299
+ function gn() {
300
+ return hn.value.map((e) => ({
301
+ name: e.name,
302
+ color: e.color,
303
+ value: e.value,
304
+ proportion: e.proportion
305
+ }));
306
+ }
307
+ let _n = u(() => {
308
+ let e = 0;
309
+ return U.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 = u(() => _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 % M.value.style.chart.layout.grid.size === 0
331
+ }))), G = u(() => {
332
+ let e = [];
333
+ for (let t = 0; t < M.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < M.value.style.chart.layout.grid.size; n += 1) e.push({
334
+ isStartOfLine: n === 0,
335
+ position: M.value.style.chart.layout.grid.vertical ? t : n,
336
+ x: (M.value.style.chart.layout.grid.vertical ? t : n) * (B.value + M.value.style.chart.layout.grid.spaceBetween),
337
+ y: (M.value.style.chart.layout.grid.vertical ? n : t) * (V.value + M.value.style.chart.layout.grid.spaceBetween) + z.value.top
338
+ });
339
+ return e;
340
+ }), K = y([]), vn = y(!1), yn = y(Object.create(null)), bn = y(Object.create(null)), xn = y(0);
341
+ function Sn(e, t) {
342
+ H.value = H.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
+ H.value = fn.value;
378
+ let e = K.value.length > 0;
379
+ if (!M.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 (un.value && !t) return;
391
+ let n = t || K.value.length < J.value.length - 1 && J.value.length > 1;
392
+ if (!M.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, fn.value), i = Cn(e, H.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", U.value.map((e) => ({
406
+ name: e.name,
407
+ color: e.color,
408
+ value: e.value,
409
+ proportion: e.proportion / M.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", U.value.map((e) => ({
421
+ name: e.name,
422
+ color: e.color,
423
+ value: e.value,
424
+ proportion: e.proportion / M.value.style.chart.layout.grid.size ** 2
425
+ })));
426
+ });
427
+ }
428
+ }
429
+ function Dn(e) {
430
+ return hn.value.length ? hn.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (M.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 Ae({
442
+ config: i,
443
+ val: e,
444
+ percentage: t,
445
+ showVal: n,
446
+ showPercentage: r
447
+ });
448
+ }
449
+ let J = u(() => H.value.map((e, t) => {
450
+ let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / H.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 || on[t] || s[t] || s[t % s.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: ie(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
462
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
463
+ v: e.value,
464
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
465
+ r: M.value.style.chart.legend.roundingValue
466
+ }), {
467
+ datapoint: e,
468
+ index: t
469
+ }),
470
+ percentage: isNaN(e.value / Y.value) ? "-" : c({
471
+ v: e.value / Y.value * 100,
472
+ s: "%",
473
+ r: M.value.style.chart.legend.roundingPercentage
474
+ }),
475
+ showVal: M.value.style.chart.legend.showValue,
476
+ showPercentage: M.value.style.chart.legend.showPercentage,
477
+ config: M.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}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${n}`
485
+ };
486
+ })), jn = u(() => ({
487
+ cy: "waffle-div-legend",
488
+ backgroundColor: M.value.style.chart.legend.backgroundColor,
489
+ color: M.value.style.chart.legend.color,
490
+ fontSize: M.value.style.chart.legend.fontSize,
491
+ paddingBottom: 12,
492
+ fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
493
+ })), Y = u(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Mn = y(null), Nn = y(null), X = u(() => {
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
+ M.value.events.datapointClick && M.value.events.datapointClick({
518
+ datapoint: t,
519
+ seriesIndex: t.serieIndex
520
+ });
521
+ }
522
+ function Ln(e) {
523
+ let t = W.value[e];
524
+ M.value.events.datapointLeave && M.value.events.datapointLeave({
525
+ datapoint: t,
526
+ seriesIndex: t.serieIndex
527
+ }), Nn.value = null, Dt.value = !1, O.value = null, A.value = null, j.value = "pointer";
528
+ }
529
+ function Rn(e, t = "pointer") {
530
+ if (K.value.length === E.dataset.length) return;
531
+ let n = W.value[e];
532
+ if (!n) return;
533
+ j.value = t, A.value = n.serieIndex, Mn.value = {
534
+ datapoint: n,
535
+ seriesIndex: n.absoluteIndex,
536
+ series: H.value,
537
+ config: M.value
538
+ }, M.value.events.datapointEnter && Nn.value !== n.serieIndex && M.value.events.datapointEnter({
539
+ datapoint: n,
540
+ seriesIndex: n.serieIndex
541
+ }), Nn.value = n.serieIndex, Dt.value = !0, O.value = n.serieIndex;
542
+ let r = M.value.style.chart.tooltip.customFormat;
543
+ if (te(r) && ce(() => r({
544
+ seriesIndex: n.absoluteIndex,
545
+ datapoint: n,
546
+ series: H.value,
547
+ config: M.value
548
+ }))) Ot.value = r({
549
+ seriesIndex: n.absoluteIndex,
550
+ datapoint: n,
551
+ series: H.value,
552
+ config: M.value
553
+ });
554
+ else {
555
+ let e = "";
556
+ e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.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}" />${Tt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${D.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${An({
557
+ config: M.value.style.chart.tooltip,
558
+ showVal: M.value.style.chart.tooltip.showValue,
559
+ showPercentage: M.value.style.chart.tooltip.showPercentage,
560
+ val: `<span>${ie(M.value.style.chart.layout.labels.dataLabels.formatter, n.value, c({
561
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
562
+ v: n.value,
563
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
564
+ r: M.value.style.chart.tooltip.roundingValue
565
+ }), {
566
+ datapoint: n,
567
+ seriesIndex: n.absoluteIndex,
568
+ series: H.value
569
+ })}</span>`,
570
+ percentage: `<span>${c({
571
+ v: un.value ? 1 / Kt.value.length * 100 : n.value / Y.value * 100,
572
+ s: "%",
573
+ r: M.value.style.chart.tooltip.roundingPercentage
574
+ })}</span>`
575
+ })}</b></div>`, Ot.value = e;
576
+ }
577
+ }
578
+ let zn = qe, Z = u(() => ({
579
+ head: U.value.map((e) => ({
580
+ name: e.name,
581
+ color: e.color
582
+ })),
583
+ body: U.value.map((e) => e.value)
584
+ }));
585
+ function Bn(e) {
586
+ return M.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== e ? `url(#blur_${D.value})` : "";
587
+ }
588
+ function Vn(e, t) {
589
+ return M.value.style.chart.layout.labels.captions.show ? W.value.length && !vn.value && !M.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < M.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % M.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
590
+ }
591
+ function Hn(e, t = null) {
592
+ let n = ie(M.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, c({
593
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
594
+ v: W.value[e].value,
595
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
596
+ r: M.value.style.chart.layout.labels.captions.roundingValue
597
+ }), {
598
+ datapoint: W.value[e],
599
+ position: t
600
+ }), r = c({
601
+ v: W.value[e].proportion,
602
+ s: "%",
603
+ r: M.value.style.chart.layout.labels.captions.roundingPercentage
604
+ }), i = (M.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ae({
605
+ source: W.value[e].name,
606
+ length: M.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
607
+ }) : W.value[e].name) + (M.value.style.chart.layout.labels.captions.showPercentage || M.value.style.chart.layout.labels.captions.showValue ? ":" : "");
608
+ return `${M.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${An({
609
+ val: n,
610
+ percentage: r,
611
+ showVal: M.value.style.chart.layout.labels.captions.showValue,
612
+ showPercentage: M.value.style.chart.layout.labels.captions.showPercentage,
613
+ config: M.value.style.chart.layout.labels.dataLabels
614
+ })}`;
615
+ }
616
+ function Un(e = null) {
617
+ Re(() => {
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 = i([
623
+ [M.value.style.chart.title.text],
624
+ [M.value.style.chart.title.subtitle.text],
625
+ [
626
+ [""],
627
+ ["val"],
628
+ ["%"]
629
+ ]
630
+ ].concat(t));
631
+ e ? e(n) : ee({
632
+ csvContent: n,
633
+ title: M.value.style.chart.title.text || "vue-ui-waffle"
634
+ });
635
+ });
636
+ }
637
+ let Q = u(() => ({
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
+ ie(M.value.style.chart.layout.labels.dataLabels.formatter, Y.value, c({
641
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
642
+ v: Y.value,
643
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
644
+ r: M.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
+ ie(M.value.style.chart.layout.labels.dataLabels.formatter, Z.value.body[t], c({
654
+ p: M.value.style.chart.layout.labels.dataLabels.prefix,
655
+ v: Z.value.body[t],
656
+ s: M.value.style.chart.layout.labels.dataLabels.suffix,
657
+ r: M.value.table.td.roundingValue
658
+ })),
659
+ isNaN(Z.value.body[t] / Y.value) ? "-" : c({
660
+ v: Z.value.body[t] / Y.value * 100,
661
+ s: "%",
662
+ r: M.value.table.td.roundingPercentage
663
+ })
664
+ ]),
665
+ config: {
666
+ th: {
667
+ backgroundColor: M.value.table.th.backgroundColor,
668
+ color: M.value.table.th.color,
669
+ outline: M.value.table.th.outline
670
+ },
671
+ td: {
672
+ backgroundColor: M.value.table.td.backgroundColor,
673
+ color: M.value.table.td.color,
674
+ outline: M.value.table.td.outline
675
+ },
676
+ shape: "square",
677
+ breakpoint: M.value.table.responsiveBreakpoint
678
+ },
679
+ colNames: [
680
+ M.value.table.columnNames.series,
681
+ M.value.table.columnNames.value,
682
+ M.value.table.columnNames.percentage
683
+ ]
684
+ })), $ = y(!1);
685
+ function Wn(e) {
686
+ $.value = e, kt.value += 1;
687
+ }
688
+ function Gn() {
689
+ L.value.showTable = !L.value.showTable;
690
+ }
691
+ function Kn() {
692
+ L.value.showTooltip = !L.value.showTooltip;
693
+ }
694
+ let qn = y(!1);
695
+ function Jn() {
696
+ qn.value = !qn.value;
697
+ }
698
+ async function Yn({ scale: e = 2 } = {}) {
699
+ if (!k.value) return;
700
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
701
+ domElement: k.value,
702
+ base64: !0,
703
+ img: !0,
704
+ scale: e
705
+ });
706
+ return {
707
+ imageUri: i,
708
+ base64: a,
709
+ title: M.value.style.chart.title.text,
710
+ width: t,
711
+ height: n,
712
+ aspectRatio: r
713
+ };
714
+ }
715
+ let Xn = u(() => {
716
+ let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
717
+ return {
718
+ component: e ? xt : _t,
719
+ title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
720
+ props: e ? {
721
+ backgroundColor: M.value.table.th.backgroundColor,
722
+ color: M.value.table.th.color,
723
+ headerColor: M.value.table.th.color,
724
+ headerBg: M.value.table.th.backgroundColor,
725
+ isFullscreen: $.value,
726
+ fullscreenParent: k.value,
727
+ forcedWidth: Math.min(500, window.innerWidth * .8),
728
+ isCursorPointer: N.value
729
+ } : {
730
+ hideDetails: !0,
731
+ config: {
732
+ open: t,
733
+ maxHeight: 1e4,
734
+ body: {
735
+ backgroundColor: M.value.style.chart.backgroundColor,
736
+ color: M.value.style.chart.color
737
+ },
738
+ head: {
739
+ backgroundColor: M.value.style.chart.backgroundColor,
740
+ color: M.value.style.chart.color
741
+ }
742
+ }
743
+ }
744
+ };
745
+ });
746
+ w(() => L.value.showTable, (e) => {
747
+ M.value.table.show || (e && M.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
748
+ });
749
+ function Zn() {
750
+ L.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
751
+ }
752
+ let Qn = u(() => J.value.map((e) => ({
753
+ ...e,
754
+ name: e.display
755
+ }))), $n = u(() => M.value.style.chart.backgroundColor), er = u(() => M.value.style.chart.legend), { exportSvg: tr, getSvg: nr } = ge({
756
+ svg: P,
757
+ title: u(() => M.value.style.chart.title),
758
+ legend: er,
759
+ legendItems: Qn,
760
+ backgroundColor: $n
761
+ });
762
+ async function rr({ isCb: e }) {
763
+ Vt.value = !0, await Re();
764
+ try {
765
+ if (e) {
766
+ let { blob: e, url: t, text: n, dataUrl: r } = await nr();
767
+ await Promise.resolve(M.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
+ Vt.value = !1;
776
+ }
777
+ }
778
+ function ir(e) {
779
+ if (e?.stage === "start") {
780
+ Bt.value = !0;
781
+ return;
782
+ }
783
+ if (e?.stage === "end") {
784
+ Bt.value = !1;
785
+ return;
786
+ }
787
+ rn();
788
+ }
789
+ async function ar() {
790
+ if (zn("copyAlt", {
791
+ config: M.value,
792
+ dataset: hn.value
793
+ }), !M.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(M.value.userOptions.callbacks.altCopy({
798
+ config: M.value,
799
+ dataset: hn.value
800
+ }));
801
+ }
802
+ function or() {
803
+ A.value = null, Ut.value = !0;
804
+ }
805
+ function sr() {
806
+ A.value = null, j.value = "pointer", Dt.value = !1, O.value = null, Nn.value = null, Ut.value = !1;
807
+ }
808
+ function cr(e) {
809
+ if (!P.value || qn.value || document.activeElement !== P.value || !X.value.length || K.value.length === E.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
+ A.value = null, j.value = "pointer", Dt.value = !1, O.value = null, Nn.value = null;
814
+ return;
815
+ }
816
+ if (r) {
817
+ if (A.value === null) return;
818
+ let e = Fn(A.value);
819
+ if (e === null) return;
820
+ In(e);
821
+ return;
822
+ }
823
+ let a = X.value.findIndex((e) => e.serieIndex === A.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 s = Fn(o.serieIndex);
826
+ s !== null && (lr(o.serieIndex), Rn(s, "keyboard"));
827
+ }
828
+ function lr(e) {
829
+ if (!Number.isFinite(e) || !P.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 + M.value.style.chart.layout.grid.spaceBetween / 2 + sn.value / 2,
836
+ y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 + cn.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)), s = (r + i) / 2, ee = (a + o) / 2, c = P.value.getBoundingClientRect();
841
+ Ht.value = {
842
+ x: c.left + s / R.value.width * c.width,
843
+ y: c.top + ee / R.value.height * c.height
844
+ };
845
+ }
846
+ let ur = u(() => ({
847
+ headers: Q.value?.colNames ?? [],
848
+ rows: Q.value?.body ?? []
849
+ }));
850
+ return Se({
851
+ getData: gn,
852
+ getImage: Yn,
853
+ generatePdf: nn,
854
+ generateCsv: Un,
855
+ generateImage: rn,
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) => (v(), p("div", {
865
+ class: ze(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
866
+ ref_key: "waffleChart",
867
+ ref: k,
868
+ id: `vue-ui-waffle_${D.value}`,
869
+ style: Be(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
870
+ onMouseenter: t[2] ||= () => C(Yt)(!0),
871
+ onMouseleave: t[3] ||= () => C(Yt)(!1)
872
+ }, [
873
+ m("div", {
874
+ id: `chart-instructions-${D.value}`,
875
+ class: "sr-only"
876
+ }, [m("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
877
+ ur.value?.rows?.length ? (v(), d(De, {
878
+ key: 0,
879
+ uid: D.value,
880
+ head: ur.value.headers,
881
+ body: ur.value.rows,
882
+ notice: M.value.a11y.translations.tableAvailable,
883
+ caption: M.value.a11y.translations.tableCaption
884
+ }, null, 8, [
885
+ "uid",
886
+ "head",
887
+ "body",
888
+ "notice",
889
+ "caption"
890
+ ])) : f("", !0),
891
+ M.value.userOptions.buttons.annotator ? (v(), d(C(yt), {
892
+ key: 1,
893
+ svgRef: C(P),
894
+ backgroundColor: M.value.style.chart.backgroundColor,
895
+ color: M.value.style.chart.color,
896
+ active: qn.value,
897
+ isCursorPointer: N.value,
898
+ onClose: Jn
899
+ }, {
900
+ "annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
901
+ "annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
902
+ "annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
903
+ "annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
904
+ "annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
905
+ "annotator-action-delete": T(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
906
+ _: 3
907
+ }, 8, [
908
+ "svgRef",
909
+ "backgroundColor",
910
+ "color",
911
+ "active",
912
+ "isCursorPointer"
913
+ ])) : f("", !0),
914
+ an.value ? (v(), p("div", {
915
+ key: 2,
916
+ ref_key: "noTitle",
917
+ ref: Nt,
918
+ class: "vue-data-ui-no-title-space",
919
+ style: "height:36px; width: 100%;background:transparent"
920
+ }, null, 512)) : f("", !0),
921
+ M.value.style.chart.title.text ? (v(), p("div", {
922
+ key: 3,
923
+ ref_key: "chartTitle",
924
+ ref: At,
925
+ style: "width:100%;background:transparent;padding-bottom:12px"
926
+ }, [(v(), d(be, {
927
+ key: `title_${Pt.value}`,
928
+ config: {
929
+ title: {
930
+ cy: "waffle-title",
931
+ ...M.value.style.chart.title
932
+ },
933
+ subtitle: {
934
+ cy: "waffle-subtitle",
935
+ ...M.value.style.chart.title.subtitle
936
+ }
937
+ }
938
+ }, null, 8, ["config"]))], 512)) : f("", !0),
939
+ m("div", { id: `legend-top-${D.value}` }, null, 8, Xe),
940
+ M.value.userOptions.show && Et.value && (C(Xt) || C(Jt)) ? (v(), d(C(vt), {
941
+ ref_key: "userOptionsRef",
942
+ ref: zt,
943
+ key: `user_options_${kt.value}`,
944
+ backgroundColor: M.value.style.chart.backgroundColor,
945
+ color: M.value.style.chart.color,
946
+ isPrinting: C(en),
947
+ isImaging: C(tn),
948
+ uid: D.value,
949
+ hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
950
+ hasPdf: M.value.userOptions.buttons.pdf,
951
+ hasImg: M.value.userOptions.buttons.img,
952
+ hasSvg: M.value.userOptions.buttons.svg,
953
+ hasXls: M.value.userOptions.buttons.csv,
954
+ hasTable: M.value.userOptions.buttons.table,
955
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
956
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
957
+ isFullscreen: $.value,
958
+ isTooltip: L.value.showTooltip,
959
+ titles: { ...M.value.userOptions.buttonTitles },
960
+ chartElement: k.value,
961
+ position: M.value.userOptions.position,
962
+ hasAnnotator: M.value.userOptions.buttons.annotator,
963
+ isAnnotation: qn.value,
964
+ callbacks: M.value.userOptions.callbacks,
965
+ printScale: M.value.userOptions.print.scale,
966
+ tableDialog: M.value.table.useDialog,
967
+ isCursorPointer: N.value,
968
+ onToggleFullscreen: Wn,
969
+ onGeneratePdf: C(nn),
970
+ onGenerateCsv: Un,
971
+ onGenerateImage: ir,
972
+ onGenerateSvg: rr,
973
+ onToggleTable: Gn,
974
+ onToggleTooltip: Kn,
975
+ onToggleAnnotator: Jn,
976
+ onCopyAlt: ar,
977
+ style: Be({ visibility: C(Xt) ? C(Jt) ? "visible" : "hidden" : "visible" })
978
+ }, Pe({ _: 2 }, [
979
+ e.$slots.menuIcon ? {
980
+ name: "menuIcon",
981
+ fn: T(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(g({
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: T(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
990
+ key: "1"
991
+ } : void 0,
992
+ e.$slots.optionPdf ? {
993
+ name: "optionPdf",
994
+ fn: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
995
+ key: "2"
996
+ } : void 0,
997
+ e.$slots.optionCsv ? {
998
+ name: "optionCsv",
999
+ fn: T(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
1000
+ key: "3"
1001
+ } : void 0,
1002
+ e.$slots.optionImg ? {
1003
+ name: "optionImg",
1004
+ fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
1005
+ key: "4"
1006
+ } : void 0,
1007
+ e.$slots.optionSvg ? {
1008
+ name: "optionSvg",
1009
+ fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
1010
+ key: "5"
1011
+ } : void 0,
1012
+ e.$slots.optionTable ? {
1013
+ name: "optionTable",
1014
+ fn: T(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
1015
+ key: "6"
1016
+ } : void 0,
1017
+ e.$slots.optionFullscreen ? {
1018
+ name: "optionFullscreen",
1019
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(g({
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: T(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(g({
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: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
1036
+ key: "9"
1037
+ } : void 0,
1038
+ e.$slots["custom-menu-before"] ? {
1039
+ name: "custom-menu-before",
1040
+ fn: T(() => [x(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: T(() => [x(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("."))) : f("", !0),
1049
+ m("div", Ze, [(v(), p("svg", {
1050
+ ref_key: "svgRef",
1051
+ ref: P,
1052
+ xmlns: C(le),
1053
+ "aria-describedby": `chart-instructions-${D.value}`,
1054
+ class: ze({
1055
+ "vue-data-ui-fullscreen--on": $.value,
1056
+ "vue-data-ui-fulscreen--off": !$.value
1057
+ }),
1058
+ tabindex: "0",
1059
+ viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
1060
+ style: Be(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
1061
+ onFocus: or,
1062
+ onBlur: sr,
1063
+ onKeydown: cr
1064
+ }, [
1065
+ Ie(C(bt)),
1066
+ m("defs", null, [(v(!0), p(l, null, b(W.value, (e, t) => (v(), d(Te, {
1067
+ t: "radial",
1068
+ cx: "50%",
1069
+ cy: "50%",
1070
+ r: "50%",
1071
+ fx: "50%",
1072
+ fy: "50%",
1073
+ id: `gradient_${D.value}_${t}`,
1074
+ key: `gradient_${D.value}_${t}`,
1075
+ stops: [[
1076
+ "0%",
1077
+ C(de)(C(n)(e.color, .05), 100 - M.value.style.chart.layout.rect.gradientIntensity),
1078
+ 1
1079
+ ], [
1080
+ "100%",
1081
+ e.color,
1082
+ 1
1083
+ ]]
1084
+ }, null, 8, ["id", "stops"]))), 128))]),
1085
+ m("defs", null, [m("filter", {
1086
+ id: `blur_${D.value}`,
1087
+ x: "-50%",
1088
+ y: "-50%",
1089
+ width: "200%",
1090
+ height: "200%"
1091
+ }, [...t[4] ||= [m("feGaussianBlur", {
1092
+ in: "SourceGraphic",
1093
+ stdDeviation: 2
1094
+ }, null, -1), m("feColorMatrix", {
1095
+ type: "saturate",
1096
+ values: "0"
1097
+ }, null, -1)]], 8, $e)]),
1098
+ M.value.useCustomCells && W.value.length && e.$slots.cell ? (v(!0), p(l, { key: 0 }, b(G.value, (t, n) => (v(), p("foreignObject", {
1099
+ x: t.x,
1100
+ y: t.y,
1101
+ height: V.value <= 0 ? 1e-4 : V.value,
1102
+ width: B.value <= 0 ? 1e-4 : B.value,
1103
+ class: "vue-ui-waffle-custom-cell-foreignObject"
1104
+ }, [x(e.$slots, "cell", Le({ ref_for: !0 }, {
1105
+ cell: {
1106
+ ...t,
1107
+ color: W.value[n].color,
1108
+ height: Math.max(0, V.value),
1109
+ width: Math.max(0, B.value),
1110
+ ...W.value[n]
1111
+ },
1112
+ isSelected: [null, void 0].includes(O.value) ? !0 : W.value[n].serieIndex === O.value
1113
+ }), void 0, !0)], 8, et))), 256)) : f("", !0),
1114
+ !W.value.length && !M.value.useCustomCells ? (v(), p("rect", {
1115
+ key: 1,
1116
+ x: 12,
1117
+ y: 12,
1118
+ height: z.value.height - 24,
1119
+ width: z.value.width - 24,
1120
+ rx: 3,
1121
+ fill: "none",
1122
+ stroke: "black"
1123
+ }, null, 8, tt)) : W.value.length && !M.value.useCustomCells ? (v(), p(l, { key: 2 }, [
1124
+ e.$slots.pattern ? (v(), p("g", nt, [(v(!0), p(l, null, b(fn.value, (t) => (v(), p("defs", null, [x(e.$slots, "pattern", Le({ ref_for: !0 }, {
1125
+ seriesIndex: t.absoluteIndex,
1126
+ patternId: `pattern_${D.value}_${t.absoluteIndex}`
1127
+ }), void 0, !0)]))), 256))])) : f("", !0),
1128
+ (v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
1129
+ rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1130
+ x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1131
+ y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1132
+ height: V.value <= 0 ? 1e-4 : V.value,
1133
+ width: B.value <= 0 ? 1e-4 : B.value,
1134
+ fill: "white",
1135
+ stroke: M.value.style.chart.layout.rect.stroke,
1136
+ "stroke-width": M.value.style.chart.layout.rect.strokeWidth,
1137
+ filter: Bn(W.value[t].serieIndex)
1138
+ }, null, 8, rt))), 256)),
1139
+ (v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
1140
+ rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1141
+ x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1142
+ y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1143
+ height: V.value <= 0 ? 1e-4 : V.value,
1144
+ width: B.value <= 0 ? 1e-4 : B.value,
1145
+ fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${D.value}_${t})` : W.value[t].color,
1146
+ stroke: M.value.style.chart.layout.rect.stroke,
1147
+ "stroke-width": M.value.style.chart.layout.rect.strokeWidth,
1148
+ filter: Bn(W.value[t].serieIndex)
1149
+ }, null, 8, it))), 256)),
1150
+ e.$slots.pattern ? (v(), p("g", at, [(v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
1151
+ rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1152
+ x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1153
+ y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1154
+ height: V.value <= 0 ? 1e-4 : V.value,
1155
+ width: B.value <= 0 ? 1e-4 : B.value,
1156
+ fill: `url(#pattern_${D.value}_${W.value[t].absoluteIndex})`,
1157
+ stroke: "none",
1158
+ filter: Bn(W.value[t].serieIndex)
1159
+ }, null, 8, ot))), 256))])) : f("", !0)
1160
+ ], 64)) : f("", !0),
1161
+ e.$slots.cellSvg ? (v(!0), p(l, { key: 3 }, b(G.value, (t, n) => (v(), p("g", null, [x(e.$slots, "cellSvg", Le({ ref_for: !0 }, {
1162
+ cell: {
1163
+ ...t,
1164
+ color: W.value[n].color,
1165
+ height: Math.max(0, V.value),
1166
+ width: Math.max(0, B.value),
1167
+ ...W.value[n]
1168
+ },
1169
+ isSelected: [null, void 0].includes(O.value) ? !0 : W.value[n].serieIndex === O.value
1170
+ }), void 0, !0)]))), 256)) : f("", !0),
1171
+ (v(!0), p(l, null, b(G.value, (e, t) => (v(), p(l, null, [Vn(t, e) ? (v(), p("text", {
1172
+ key: `datalabel_${t}`,
1173
+ textContent: S(Hn(t, e)),
1174
+ x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
1175
+ y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 + cn.value / 2 + M.value.style.chart.layout.labels.captions.fontSize / 3,
1176
+ "font-size": M.value.style.chart.layout.labels.captions.fontSize,
1177
+ fill: C(se)(W.value[t].color),
1178
+ filter: Bn(W.value[t].serieIndex)
1179
+ }, null, 8, st)) : f("", !0)], 64))), 256)),
1180
+ (v(!0), p(l, null, b(G.value, (e, t) => (v(), p("rect", {
1181
+ x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1182
+ y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1183
+ height: cn.value,
1184
+ width: sn.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, ct))), 256)),
1191
+ x(e.$slots, "svg", { svg: {
1192
+ ...R.value,
1193
+ isPrintingImg: C(en) || C(tn) || Bt.value,
1194
+ isPrintingSvg: Vt.value
1195
+ } }, void 0, !0)
1196
+ ], 46, Qe)), e.$slots.hint ? (v(), p("div", lt, [x(e.$slots, "hint", _(g({
1197
+ hint: M.value.a11y.translations.keyboardNavigation,
1198
+ isVisible: Ut.value
1199
+ })), void 0, !0)])) : f("", !0)]),
1200
+ e.$slots.watermark ? (v(), p("div", ut, [x(e.$slots, "watermark", _(g({ isPrinting: C(en) || C(tn) || Bt.value || Vt.value })), void 0, !0)])) : f("", !0),
1201
+ m("div", { id: `legend-bottom-${D.value}` }, null, 8, dt),
1202
+ Lt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), d(Ne, {
1203
+ key: 6,
1204
+ to: M.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1205
+ }, [m("div", {
1206
+ ref_key: "chartLegend",
1207
+ ref: jt
1208
+ }, [x(e.$slots, "legend", { legend: J.value }, () => [M.value.style.chart.legend.show ? (v(), d(je, {
1209
+ key: `legend_${It.value}`,
1210
+ legendSet: J.value,
1211
+ config: jn.value,
1212
+ isCursorPointer: N.value,
1213
+ onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
1214
+ }, Pe({
1215
+ item: T(({ legend: e }) => [m("div", {
1216
+ onClick: (t) => e.segregate(),
1217
+ style: Be(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
1218
+ }, S(e.display), 13, ft)]),
1219
+ legendToggle: T(() => [J.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !C(Gt) ? (v(), d(Ee, {
1220
+ key: 0,
1221
+ backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1222
+ color: M.value.style.chart.legend.selectAllToggle.color,
1223
+ fontSize: M.value.style.chart.legend.fontSize,
1224
+ checked: K.value.length > 0,
1225
+ isCursorPointer: N.value,
1226
+ onToggle: En
1227
+ }, null, 8, [
1228
+ "backgroundColor",
1229
+ "color",
1230
+ "fontSize",
1231
+ "checked",
1232
+ "isCursorPointer"
1233
+ ])) : f("", !0)]),
1234
+ _: 2
1235
+ }, [e.$slots.pattern ? {
1236
+ name: "legend-pattern",
1237
+ fn: T(({ legend: e, index: t }) => [Ie(xe, {
1238
+ shape: e.shape,
1239
+ radius: 30,
1240
+ stroke: "none",
1241
+ plot: {
1242
+ x: 30,
1243
+ y: 30
1244
+ },
1245
+ fill: `url(#pattern_${D.value}_${t})`
1246
+ }, null, 8, ["shape", "fill"])]),
1247
+ key: "0"
1248
+ } : void 0]), 1032, [
1249
+ "legendSet",
1250
+ "config",
1251
+ "isCursorPointer"
1252
+ ])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
1253
+ e.$slots.source ? (v(), p("div", {
1254
+ key: 7,
1255
+ ref_key: "source",
1256
+ ref: Mt,
1257
+ dir: "auto"
1258
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1259
+ Ie(C(mt), {
1260
+ teleportTo: M.value.style.chart.tooltip.teleportTo,
1261
+ show: L.value.showTooltip && Dt.value && K.value.length < E.dataset.length,
1262
+ backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1263
+ color: M.value.style.chart.tooltip.color,
1264
+ borderRadius: M.value.style.chart.tooltip.borderRadius,
1265
+ borderColor: M.value.style.chart.tooltip.borderColor,
1266
+ borderWidth: M.value.style.chart.tooltip.borderWidth,
1267
+ backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
1268
+ position: M.value.style.chart.tooltip.position,
1269
+ offsetX: M.value.style.chart.tooltip.offsetX,
1270
+ offsetY: M.value.style.chart.tooltip.offsetY,
1271
+ parent: k.value,
1272
+ content: Ot.value,
1273
+ isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
1274
+ fontSize: M.value.style.chart.tooltip.fontSize,
1275
+ isFullscreen: $.value,
1276
+ smooth: M.value.style.chart.tooltip.smooth,
1277
+ backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1278
+ smoothForce: M.value.style.chart.tooltip.smoothForce,
1279
+ smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1280
+ isA11yMode: j.value === "keyboard",
1281
+ a11yPosition: Ht.value
1282
+ }, {
1283
+ "tooltip-before": T(() => [x(e.$slots, "tooltip-before", _(g({ ...Mn.value })), void 0, !0)]),
1284
+ tooltip: T(() => [x(e.$slots, "tooltip", _(g({ ...Mn.value })), void 0, !0)]),
1285
+ "tooltip-after": T(() => [x(e.$slots, "tooltip-after", _(g({ ...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
+ Et.value && M.value.userOptions.buttons.table ? (v(), d(Ue(Xn.value.component), Le({ key: 8 }, Xn.value.props, {
1312
+ ref_key: "tableUnit",
1313
+ ref: Rt,
1314
+ onClose: Zn
1315
+ }), Pe({
1316
+ content: T(() => [(v(), d(C(gt), {
1317
+ key: `table_${Ft.value}`,
1318
+ colNames: Q.value.colNames,
1319
+ head: Q.value.head,
1320
+ body: Q.value.body,
1321
+ config: Q.value.config,
1322
+ title: M.value.table.useDialog ? "" : Xn.value.title,
1323
+ withCloseButton: !M.value.table.useDialog,
1324
+ isCursorPointer: N.value,
1325
+ onClose: Zn
1326
+ }, {
1327
+ th: T(({ th: e }) => [m("div", {
1328
+ innerHTML: e,
1329
+ style: {
1330
+ display: "flex",
1331
+ "align-items": "center"
1332
+ }
1333
+ }, null, 8, pt)]),
1334
+ td: T(({ td: e }) => [Fe(S(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
+ }, [M.value.table.useDialog ? {
1347
+ name: "title",
1348
+ fn: T(() => [Fe(S(Xn.value.title), 1)]),
1349
+ key: "0"
1350
+ } : void 0, M.value.table.useDialog ? {
1351
+ name: "actions",
1352
+ fn: T(() => [m("button", {
1353
+ tabindex: "0",
1354
+ class: "vue-ui-user-options-button",
1355
+ onClick: t[1] ||= (e) => Un(M.value.userOptions.callbacks.csv),
1356
+ style: Be({ cursor: N.value ? "pointer" : "default" })
1357
+ }, [Ie(C(ht), {
1358
+ name: "fileCsv",
1359
+ stroke: Xn.value.props.color
1360
+ }, null, 8, ["stroke"])], 4)]),
1361
+ key: "1"
1362
+ } : void 0]), 1040)) : f("", !0),
1363
+ x(e.$slots, "skeleton", {}, () => [C(Gt) ? (v(), d(he, { key: 0 })) : f("", !0)], !0)
1364
+ ], 46, Je));
1365
+ }
1366
+ }, [["__scopeId", "data-v-8de28266"]]);
1367
+ //#endregion
1368
+ export { qe as n, mt as t };