vue-data-ui 3.23.10 → 3.23.11

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 (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-C0b7KAMa.js} +1 -1
  13. package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.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-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
  95. package/dist/{package-enC-Nivt.js → package-D7_0M69J.js} +1 -1
  96. package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-CqcoYfCA.js → render-common-B0f5NTO9.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BlZHZHoH.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/vue-ui-3d-bar-CtT2BovY.js +1829 -0
  110. package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
  112. package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
  114. package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-BCQ97z1G.js} +237 -237
  115. package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
  117. package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
  118. package/dist/vue-ui-chord-BuConnPN.js +1345 -0
  119. package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
  120. package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
  121. package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
  122. package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
  123. package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-DWf1vzYE.js} +3 -3
  124. package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-CvCViwSI.js} +64 -64
  125. package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-DZTtuFAG.js} +85 -85
  126. package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-BZywCpHd.js} +229 -229
  128. package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
  129. package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
  130. package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-BuGd-Ojm.js} +64 -64
  131. package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
  132. package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-PWGZw4Un.js} +34 -34
  133. package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
  134. package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
  135. package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-DO3r2s-i.js} +10 -10
  136. package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
  138. package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-ERAB4YzZ.js} +176 -176
  141. package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-BPp7L6OP.js} +20 -20
  142. package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-CX5ut2yp.js} +104 -104
  143. package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
  145. package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
  147. package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-D3gLQcI5.js} +41 -41
  148. package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
  150. package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
  151. package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
  152. package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
  153. package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
  154. package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
  159. package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
  161. package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
  162. package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-MSs0pdhE.js} +605 -605
  163. package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-Df-TomML.js} +57 -57
  164. package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
  167. package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
  168. package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-orCjVwS4.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
  170. package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-90_Clj0e.js} +44 -44
  171. package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
  172. package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-AgMvmPlI.js} +32 -32
  174. package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-D0Z9B6M2.js} +116 -116
  175. package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-5Te2TfRK.js} +304 -304
  176. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  177. package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-ua_mFu_a.js} +99 -99
  178. package/package.json +1 -1
  179. package/dist/exposedLib-vfRiIvq_.js +0 -28
  180. package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
  181. package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
  182. package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
  183. package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
  184. package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
  185. package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
  186. package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
  187. package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
  188. package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
  189. package/dist/vue-ui-onion-C27GpneA.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
  191. package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
  192. package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
  193. package/dist/vue-ui-rings-obVfb09j.js +0 -1250
  194. package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
  195. package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
  196. package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
  197. package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
  198. package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
  199. package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
  200. package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
@@ -0,0 +1,1610 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Ht as r, It as i, Jt as a, Nt as o, S as s, St as c, Ut as l, X as u, Xt as ee, i as te, lt as ne, mt as re, n as ie, nt as ae, q as oe, r as se, t as ce, w as le } from "./lib-Dqr_-I6Y.js";
3
+ import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
4
+ import { t as fe } from "./useConfig-DwdGsXTx.js";
5
+ import { t as pe } from "./usePrinter-CEiH1b6R.js";
6
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ge } from "./useNestedProp-CulPqtou.js";
8
+ import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ve } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as ye } from "./useTransitions-g_zBREk2.js";
11
+ import { t as be } from "./img-Bkzj3lDD.js";
12
+ import { n as xe } from "./Title-CaVA8EIw.js";
13
+ import { t as Se } from "./Shape-BAL5bQmA.js";
14
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
+ import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
16
+ import { t as Ee } from "./DefGrad-DVBqDjhO.js";
17
+ import { t as De } from "./BaseLegendToggle-CtEdLr4R.js";
18
+ import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
19
+ import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
20
+ import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
21
+ import { t as je } from "./labelUtils-iX76cA2-.js";
22
+ import { t as Me } from "./Legend-BJtY2RA9.js";
23
+ import { t as Ne } from "./usePrefersMotion-BC-CsqR1.js";
24
+ import { t as Pe } from "./vue_ui_waffle-DE_DiSVP.js";
25
+ import { Fragment as d, Teleport as Fe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ze, nextTick as Be, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ve, onMounted as He, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as Ge, toRefs as Ke, unref as E, useSlots as qe, watch as Je, withCtx as D } from "vue";
26
+ //#region src/components/vue-ui-waffle.vue
27
+ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
28
+ "xmlns",
29
+ "aria-describedby",
30
+ "viewBox"
31
+ ], tt = ["id"], nt = [
32
+ "x",
33
+ "y",
34
+ "height",
35
+ "width"
36
+ ], rt = ["height", "width"], it = { key: 0 }, at = [
37
+ "d",
38
+ "stroke",
39
+ "stroke-width",
40
+ "filter"
41
+ ], ot = [
42
+ "d",
43
+ "fill",
44
+ "stroke",
45
+ "stroke-width",
46
+ "filter"
47
+ ], st = { key: 0 }, ct = [
48
+ "d",
49
+ "fill",
50
+ "filter"
51
+ ], lt = [
52
+ "rx",
53
+ "x",
54
+ "y",
55
+ "height",
56
+ "width",
57
+ "stroke",
58
+ "stroke-width",
59
+ "filter"
60
+ ], ut = [
61
+ "rx",
62
+ "x",
63
+ "y",
64
+ "height",
65
+ "width",
66
+ "fill",
67
+ "stroke",
68
+ "stroke-width",
69
+ "filter"
70
+ ], dt = { key: 0 }, ft = [
71
+ "rx",
72
+ "x",
73
+ "y",
74
+ "height",
75
+ "width",
76
+ "fill",
77
+ "filter"
78
+ ], pt = [
79
+ "points",
80
+ "stroke",
81
+ "stroke-width",
82
+ "stroke-linejoin"
83
+ ], mt = [
84
+ "textContent",
85
+ "x",
86
+ "y",
87
+ "font-size",
88
+ "fill",
89
+ "filter"
90
+ ], ht = [
91
+ "d",
92
+ "onMouseover",
93
+ "onMouseleave",
94
+ "onClick"
95
+ ], gt = [
96
+ "x",
97
+ "y",
98
+ "height",
99
+ "width",
100
+ "onMouseover",
101
+ "onMouseleave",
102
+ "onClick"
103
+ ], _t = {
104
+ key: 0,
105
+ style: {
106
+ position: "absolute",
107
+ top: "100%",
108
+ left: "0",
109
+ width: "100%"
110
+ },
111
+ "data-dom-to-png-ignore": "",
112
+ "aria-hidden": "true"
113
+ }, vt = {
114
+ key: 5,
115
+ class: "vue-data-ui-watermark"
116
+ }, yt = ["id"], bt = ["onClick"], xt = { key: 0 }, St = { key: 1 }, Ct = /*#__PURE__*/ Ce({
117
+ __name: "vue-ui-waffle",
118
+ props: {
119
+ config: {
120
+ type: Object,
121
+ default() {
122
+ return {};
123
+ }
124
+ },
125
+ dataset: {
126
+ type: Array,
127
+ default() {
128
+ return [];
129
+ }
130
+ }
131
+ },
132
+ emits: ["selectLegend", "copyAlt"],
133
+ setup(e, { expose: Ce, emit: Ye }) {
134
+ let Ct = _(() => import("./Tooltip-CVxJe3UW.js")), wt = _(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Tt = _(() => import("./DataTable-CmyEubtT.js")), Et = _(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Dt = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Ot = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), kt = _(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), At = _(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_waffle: jt } = fe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = _e(), Pt = Ne(), O = e, Ft = qe(), It = f({
135
+ get() {
136
+ return !!O.dataset && O.dataset.length;
137
+ },
138
+ set(e) {
139
+ return e;
140
+ }
141
+ }), k = C(oe()), Lt = C(!1), Rt = C(""), A = C(null), zt = C(0), j = C(null), Bt = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(0), Gt = C(0), Kt = C(0), qt = C(!1), Jt = C(null), Yt = C(null), M = C(null), Xt = C({
142
+ x: 0,
143
+ y: 0
144
+ }), Zt = C("pointer"), Qt = C(!1), N = C(cn()), { transitionEnabled: P } = ye({
145
+ config: () => N.value.transitions,
146
+ dataset: () => O.dataset
147
+ });
148
+ ue({
149
+ config: () => N.value,
150
+ dataset: () => O.dataset,
151
+ component: "VueUiWaffle",
152
+ rules: [
153
+ de.singleSeries,
154
+ de.emptyArray,
155
+ {
156
+ test: (e) => e.length > 6,
157
+ message: [
158
+ "👀 The number of series is > 6. Consider:",
159
+ "",
160
+ "▶️ Grouping small values dynamically into a single \"Other\" series.",
161
+ "",
162
+ "▶️ Using filters to let users choose a maximum number of series to display.",
163
+ "",
164
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
165
+ ]
166
+ }
167
+ ]
168
+ });
169
+ let F = f(() => N.value.userOptions.useCursorPointer), $t = f(() => ee({
170
+ defaultConfig: {
171
+ useCustomCells: !1,
172
+ userOptions: { show: !1 },
173
+ table: { show: !1 },
174
+ style: { chart: {
175
+ backgroundColor: "#99999930",
176
+ layout: {
177
+ labels: { captions: { show: !1 } },
178
+ rect: { stroke: "#999999" }
179
+ },
180
+ legend: {
181
+ backgroundColor: "transparent",
182
+ showValue: !1,
183
+ showPercentage: !1
184
+ }
185
+ } }
186
+ },
187
+ userConfig: N.value.skeletonConfig ?? {}
188
+ })), { loading: en, FINAL_DATASET: tn, manualLoading: nn } = me({
189
+ ...Ke(O),
190
+ FINAL_CONFIG: N,
191
+ prepareConfig: cn,
192
+ callback: () => {
193
+ Promise.resolve().then(async () => {
194
+ H.value = Sn();
195
+ });
196
+ },
197
+ skeletonDataset: O.config?.skeletonDataset ?? [
198
+ {
199
+ name: "",
200
+ values: [1],
201
+ color: "#AAAAAA"
202
+ },
203
+ {
204
+ name: "",
205
+ values: [1],
206
+ color: "#BABABA"
207
+ },
208
+ {
209
+ name: "",
210
+ values: [1],
211
+ color: "#CACACA"
212
+ }
213
+ ],
214
+ skeletonConfig: ee({
215
+ defaultConfig: N.value,
216
+ userConfig: $t.value
217
+ })
218
+ }), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = ke({ config: N.value }), { svgRef: sn } = Ae({ config: N.value.style.chart.title });
219
+ function cn() {
220
+ let e = ge({
221
+ userConfig: O.config,
222
+ defaultConfig: jt
223
+ }), t = e.theme;
224
+ if (!t) return e;
225
+ if (!Mt.value(e)) return Nt(e), e;
226
+ let n = ge({
227
+ userConfig: Pe[t] || O.config,
228
+ defaultConfig: e
229
+ }), r = ge({
230
+ userConfig: O.config,
231
+ defaultConfig: n
232
+ });
233
+ return {
234
+ ...r,
235
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || i
236
+ };
237
+ }
238
+ Je(() => O.config, (e) => {
239
+ en.value || (N.value = cn()), rn.value = !N.value.userOptions.showOnChartHover, dn(), Wt.value += 1, Gt.value += 1, Kt.value += 1, L.value.showTable = N.value.table.show, L.value.showTooltip = N.value.style.chart.tooltip.show;
240
+ }, { deep: !0 });
241
+ let I = We(null), ln = We(null), un = f(() => N.value.debug);
242
+ function dn() {
243
+ if (o(O.dataset) ? (ae({
244
+ componentName: "VueUiWaffle",
245
+ type: "dataset",
246
+ debug: un.value
247
+ }), It.value = !1, nn.value = !0) : un.value && O.dataset.forEach((e, t) => {
248
+ re({
249
+ datasetObject: e,
250
+ requiredAttributes: ["name", "values"]
251
+ }).forEach((e) => {
252
+ ae({
253
+ componentName: "VueUiWaffle",
254
+ type: "datasetSerieAttribute",
255
+ property: e,
256
+ index: t
257
+ });
258
+ });
259
+ }), o(O.dataset) || (nn.value = N.value.loading), N.value.responsive) {
260
+ let e = we(() => {
261
+ let { width: e, height: t } = Te({
262
+ chart: j.value,
263
+ title: N.value.style.chart.title.text ? Bt.value : null,
264
+ legend: N.value.style.chart.legend.show ? Vt.value : null,
265
+ source: Ht.value,
266
+ noTitle: Ut.value
267
+ });
268
+ requestAnimationFrame(() => {
269
+ R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
270
+ });
271
+ });
272
+ I.value && (ln.value && I.value.unobserve(ln.value), I.value.disconnect()), I.value = new ResizeObserver(e), ln.value = j.value.parentNode, I.value.observe(ln.value);
273
+ }
274
+ }
275
+ He(() => {
276
+ qt.value = !0, dn();
277
+ }), Ve(() => {
278
+ I.value && (ln.value && I.value.unobserve(ln.value), I.value.disconnect());
279
+ });
280
+ let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = pe({
281
+ elementId: `vue-ui-waffle_${k.value}`,
282
+ fileName: N.value.style.chart.title.text || "vue-ui-waffle",
283
+ options: N.value.userOptions.print
284
+ }), gn = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), _n = f(() => le(N.value.customPalette)), L = C({
285
+ showTable: N.value.table.show,
286
+ showTooltip: N.value.style.chart.tooltip.show
287
+ });
288
+ Je(N, () => {
289
+ L.value = {
290
+ showTable: N.value.table.show,
291
+ showTooltip: N.value.style.chart.tooltip.show
292
+ };
293
+ }, { immediate: !0 });
294
+ let R = C({
295
+ height: 512,
296
+ width: 512
297
+ }), z = C({
298
+ top: 0,
299
+ left: 0,
300
+ height: 512,
301
+ width: 512
302
+ }), B = f(() => (z.value.width - N.value.style.chart.layout.grid.size * N.value.style.chart.layout.grid.spaceBetween) / N.value.style.chart.layout.grid.size), V = f(() => (z.value.height - N.value.style.chart.layout.grid.size * N.value.style.chart.layout.grid.spaceBetween) / N.value.style.chart.layout.grid.size), vn = f(() => Math.max(1e-4, z.value.width / N.value.style.chart.layout.grid.size)), yn = f(() => Math.max(1e-4, z.value.height / N.value.style.chart.layout.grid.size));
303
+ function bn(e) {
304
+ let t = N.value.style.chart.layout.grid.size * N.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);
305
+ for (; o > 0;) {
306
+ let e = a.indexOf(Math.max(...a));
307
+ i[e] += 1, a[e] = 0, --o;
308
+ }
309
+ return i;
310
+ }
311
+ let xn = C(!1);
312
+ function Sn() {
313
+ return xn.value = tn.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, tn.value.map((e, t) => ({
314
+ ...e,
315
+ color: s(e.color) || _n.value[t] || i[t] || i[t % i.length],
316
+ uid: `serie_${t}`,
317
+ absoluteIndex: t
318
+ }));
319
+ }
320
+ let Cn = f(() => Sn()), H = C(Cn.value);
321
+ Je(() => O.dataset, (e) => {
322
+ Array.isArray(e) && e.length > 0 && (nn.value = !1);
323
+ }, { immediate: !0 }), Je(() => O.dataset, (e) => {
324
+ H.value = Sn();
325
+ }, { deep: !0 });
326
+ let wn = f(() => bn(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => xn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), Tn = f(() => bn(H.value.map((e, t) => xn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = f(() => (un.value && tn.value.forEach((e, t) => {
327
+ [null, void 0].includes(e.values) && ae({
328
+ componentName: "VueUiWaffle",
329
+ type: "datasetSerieAttribute",
330
+ property: "values (number[])",
331
+ index: t
332
+ });
333
+ }), H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => ({
334
+ absoluteIndex: e.absoluteIndex,
335
+ uid: e.uid,
336
+ name: e.name,
337
+ color: e.color,
338
+ value: (e.values || []).reduce((e, t) => e + t, 0),
339
+ absoluteValues: e.values || [],
340
+ proportion: wn.value[t]
341
+ })))), En = f(() => H.value.map((e, t) => ({
342
+ absoluteIndex: e.absoluteIndex,
343
+ uid: e.uid,
344
+ name: e.name,
345
+ color: e.color,
346
+ value: (e.values || []).reduce((e, t) => e + t, 0),
347
+ absoluteValues: e.values || [],
348
+ proportion: Tn.value[t]
349
+ })));
350
+ function Dn() {
351
+ return En.value.map((e) => ({
352
+ name: e.name,
353
+ color: e.color,
354
+ value: e.value,
355
+ proportion: e.proportion
356
+ }));
357
+ }
358
+ let On = f(() => {
359
+ let e = 0;
360
+ return U.value.map((t, n) => {
361
+ let r = e, i = r + t.proportion, a = [];
362
+ for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
363
+ return e = i, {
364
+ ...t,
365
+ start: r,
366
+ rects: a
367
+ };
368
+ });
369
+ }), W = f(() => On.value.flatMap((e, t) => e.rects.map((n, r) => ({
370
+ isFirst: r === 0,
371
+ isLongEnough: n.length > 2,
372
+ name: e.name,
373
+ color: e.color,
374
+ value: e.value,
375
+ serieIndex: t,
376
+ absoluteStartIndex: r < 3,
377
+ serieId: e.uid,
378
+ ...e
379
+ }))).map((e, t) => ({
380
+ ...e,
381
+ isAbsoluteFirst: t % N.value.style.chart.layout.grid.size === 0
382
+ }))), G = f(() => {
383
+ let e = [];
384
+ for (let t = 0; t < N.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < N.value.style.chart.layout.grid.size; n += 1) e.push({
385
+ isStartOfLine: n === 0,
386
+ position: N.value.style.chart.layout.grid.vertical ? t : n,
387
+ x: (N.value.style.chart.layout.grid.vertical ? t : n) * (B.value + N.value.style.chart.layout.grid.spaceBetween),
388
+ y: (N.value.style.chart.layout.grid.vertical ? n : t) * (V.value + N.value.style.chart.layout.grid.spaceBetween) + z.value.top
389
+ });
390
+ return e;
391
+ }), K = C([]), kn = C(!1), An = C(Object.create(null)), jn = C(Object.create(null)), q = C(0);
392
+ function J(e, t) {
393
+ H.value = H.value.map((n) => n.uid === e ? {
394
+ ...n,
395
+ values: [t]
396
+ } : n);
397
+ }
398
+ function Mn(e, t) {
399
+ let n = t.find((t) => t.uid === e);
400
+ return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
401
+ }
402
+ function Nn(e) {
403
+ let t = !1;
404
+ An.value[e] && (cancelAnimationFrame(An.value[e]), delete An.value[e], t = !0), jn.value[e] && (cancelAnimationFrame(jn.value[e]), delete jn.value[e], t = !0), t && (q.value = Math.max(0, q.value - 1), kn.value = q.value > 0);
405
+ }
406
+ function Pn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
407
+ Nn(e), q.value += 1, kn.value = !0;
408
+ let i = t;
409
+ return new Promise((a) => {
410
+ function o() {
411
+ if (r === "increase") {
412
+ if (i >= n) {
413
+ J(e, n), --q.value, q.value <= 0 && (kn.value = !1), delete An.value[e], a();
414
+ return;
415
+ }
416
+ i += n * .025, i > n && (i = n), J(e, i), An.value[e] = requestAnimationFrame(o);
417
+ } else {
418
+ if (i <= t / 100) {
419
+ J(e, 0), --q.value, q.value <= 0 && (kn.value = !1), delete jn.value[e], a();
420
+ return;
421
+ }
422
+ i /= 1.15, J(e, i), jn.value[e] = requestAnimationFrame(o);
423
+ }
424
+ }
425
+ o();
426
+ });
427
+ }
428
+ function Fn() {
429
+ H.value = Cn.value;
430
+ let e = K.value.length > 0;
431
+ if (!N.value.useAnimation) {
432
+ e ? K.value = [] : K.value = Y.value.map((e) => e.uid);
433
+ return;
434
+ }
435
+ e ? [...K.value].forEach((e) => {
436
+ In(e, !0);
437
+ }) : Y.value.map((e) => e.uid).forEach((e) => {
438
+ In(e, !0);
439
+ });
440
+ }
441
+ function In(e, t = !1) {
442
+ if (xn.value && !t) return;
443
+ let n = t || K.value.length < Y.value.length - 1 && Y.value.length > 1;
444
+ if (!N.value.useAnimation) {
445
+ K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
446
+ return;
447
+ }
448
+ let r = Mn(e, Cn.value), i = Mn(e, H.value);
449
+ if (i !== 0 || r !== 0) {
450
+ if (K.value.includes(e)) {
451
+ if (K.value = K.value.filter((t) => t !== e), Pt.value) {
452
+ Nn(e), J(e, r), Yn("selectLegend", U.value.map((e) => ({
453
+ name: e.name,
454
+ color: e.color,
455
+ value: e.value,
456
+ proportion: e.proportion / N.value.style.chart.layout.grid.size ** 2
457
+ })));
458
+ return;
459
+ }
460
+ Pn({
461
+ seriesId: e,
462
+ fromValue: i,
463
+ toValue: r,
464
+ mode: "increase"
465
+ }).then(() => {
466
+ Yn("selectLegend", U.value.map((e) => ({
467
+ name: e.name,
468
+ color: e.color,
469
+ value: e.value,
470
+ proportion: e.proportion / N.value.style.chart.layout.grid.size ** 2
471
+ })));
472
+ });
473
+ return;
474
+ }
475
+ if (n) {
476
+ if (Pt.value) {
477
+ Nn(e), K.value.includes(e) || K.value.push(e), J(e, 0), Yn("selectLegend", U.value.map((e) => ({
478
+ name: e.name,
479
+ color: e.color,
480
+ value: e.value,
481
+ proportion: e.proportion / N.value.style.chart.layout.grid.size ** 2
482
+ })));
483
+ return;
484
+ }
485
+ Pn({
486
+ seriesId: e,
487
+ fromValue: i,
488
+ toValue: 0,
489
+ mode: "decrease"
490
+ }).then(() => {
491
+ K.value.includes(e) || K.value.push(e), J(e, 0), Yn("selectLegend", U.value.map((e) => ({
492
+ name: e.name,
493
+ color: e.color,
494
+ value: e.value,
495
+ proportion: e.proportion / N.value.style.chart.layout.grid.size ** 2
496
+ })));
497
+ });
498
+ }
499
+ }
500
+ }
501
+ function Ln(e) {
502
+ return En.value.length ? En.value.find((t) => t.name === e) || (un.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (un.value && console.warn("VueUiWaffle - There are no series to show."), null);
503
+ }
504
+ function Rn(e) {
505
+ let t = Ln(e);
506
+ t !== null && K.value.includes(t.uid) && In(t.uid);
507
+ }
508
+ function zn(e) {
509
+ let t = Ln(e);
510
+ t !== null && (K.value.includes(t.uid) || In(t.uid));
511
+ }
512
+ function Bn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
513
+ return je({
514
+ config: i,
515
+ val: e,
516
+ percentage: t,
517
+ showVal: n,
518
+ showPercentage: r
519
+ });
520
+ }
521
+ let Y = f(() => H.value.map((e, t) => {
522
+ 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);
523
+ return {
524
+ name: e.name,
525
+ color: e.color || _n[t] || i[t] || i[t % i.length],
526
+ value: n,
527
+ proportion: r,
528
+ uid: e.uid,
529
+ shape: "square"
530
+ };
531
+ }).map((e, t) => {
532
+ let n = Bn({
533
+ val: te(N.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
534
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
535
+ v: e.value,
536
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
537
+ r: N.value.style.chart.legend.roundingValue
538
+ }), {
539
+ datapoint: e,
540
+ index: t
541
+ }),
542
+ percentage: isNaN(e.value / X.value) ? "-" : u({
543
+ v: e.value / X.value * 100,
544
+ s: "%",
545
+ r: N.value.style.chart.legend.roundingPercentage
546
+ }),
547
+ showVal: N.value.style.chart.legend.showValue,
548
+ showPercentage: N.value.style.chart.legend.showPercentage,
549
+ config: N.value.style.chart.legend
550
+ });
551
+ return {
552
+ ...e,
553
+ opacity: K.value.includes(e.uid) ? .5 : 1,
554
+ segregate: () => In(e.uid),
555
+ isSegregated: K.value.includes(e.uid),
556
+ display: `${e.name}${N.value.style.chart.legend.showPercentage || N.value.style.chart.legend.showValue ? ": " : ""}${n}`
557
+ };
558
+ })), Vn = f(() => ({
559
+ cy: "waffle-div-legend",
560
+ backgroundColor: N.value.style.chart.legend.backgroundColor,
561
+ color: N.value.style.chart.legend.color,
562
+ fontSize: N.value.style.chart.legend.fontSize,
563
+ paddingBottom: 12,
564
+ fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
565
+ })), X = f(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Hn = C(null), Un = C(null), Z = f(() => {
566
+ let e = /* @__PURE__ */ new Map();
567
+ return W.value.forEach((t, n) => {
568
+ e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
569
+ serieIndex: t.serieIndex,
570
+ absoluteIndex: t.absoluteIndex,
571
+ serieId: t.serieId,
572
+ name: t.name,
573
+ color: t.color,
574
+ value: t.value,
575
+ proportion: t.proportion,
576
+ rectIndexes: [n]
577
+ });
578
+ }), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
579
+ });
580
+ function Wn(e) {
581
+ return Z.value.find((t) => t.serieIndex === e) || null;
582
+ }
583
+ function Gn(e) {
584
+ let t = Wn(e);
585
+ return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
586
+ }
587
+ function Kn(e) {
588
+ let t = W.value[e];
589
+ N.value.events.datapointClick && N.value.events.datapointClick({
590
+ datapoint: t,
591
+ seriesIndex: t.serieIndex
592
+ });
593
+ }
594
+ function qn(e) {
595
+ let t = W.value[e];
596
+ N.value.events.datapointLeave && N.value.events.datapointLeave({
597
+ datapoint: t,
598
+ seriesIndex: t.serieIndex
599
+ }), Un.value = null, Lt.value = !1, A.value = null, M.value = null, Zt.value = "pointer";
600
+ }
601
+ function Jn(e, t = "pointer") {
602
+ if (K.value.length === O.dataset.length) return;
603
+ let n = W.value[e];
604
+ if (!n) return;
605
+ Zt.value = t, M.value = n.serieIndex, Hn.value = {
606
+ datapoint: n,
607
+ seriesIndex: n.absoluteIndex,
608
+ series: H.value,
609
+ config: N.value
610
+ }, N.value.events.datapointEnter && Un.value !== n.serieIndex && N.value.events.datapointEnter({
611
+ datapoint: n,
612
+ seriesIndex: n.serieIndex
613
+ }), Un.value = n.serieIndex, Lt.value = !0, A.value = n.serieIndex;
614
+ let r = N.value.style.chart.tooltip.customFormat;
615
+ if (c(r) && ne(() => r({
616
+ seriesIndex: n.absoluteIndex,
617
+ datapoint: n,
618
+ series: H.value,
619
+ config: N.value
620
+ }))) Rt.value = r({
621
+ seriesIndex: n.absoluteIndex,
622
+ datapoint: n,
623
+ series: H.value,
624
+ config: N.value
625
+ });
626
+ else {
627
+ let e = "";
628
+ e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.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}" />${Ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${Bn({
629
+ config: N.value.style.chart.tooltip,
630
+ showVal: N.value.style.chart.tooltip.showValue,
631
+ showPercentage: N.value.style.chart.tooltip.showPercentage,
632
+ val: `<span>${te(N.value.style.chart.layout.labels.dataLabels.formatter, n.value, u({
633
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
634
+ v: n.value,
635
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
636
+ r: N.value.style.chart.tooltip.roundingValue
637
+ }), {
638
+ datapoint: n,
639
+ seriesIndex: n.absoluteIndex,
640
+ series: H.value
641
+ })}</span>`,
642
+ percentage: `<span>${u({
643
+ v: xn.value ? 1 / tn.value.length * 100 : n.value / X.value * 100,
644
+ s: "%",
645
+ r: N.value.style.chart.tooltip.roundingPercentage
646
+ })}</span>`
647
+ })}</b></div>`, Rt.value = e;
648
+ }
649
+ }
650
+ let Yn = Ye, Q = f(() => ({
651
+ head: U.value.map((e) => ({
652
+ name: e.name,
653
+ color: e.color
654
+ })),
655
+ body: U.value.map((e) => e.value)
656
+ }));
657
+ function $(e) {
658
+ return N.value.useBlurOnHover && ![null, void 0].includes(A.value) && A.value !== e ? `url(#blur_${k.value})` : "";
659
+ }
660
+ function Xn(e) {
661
+ return [null, void 0].includes(A.value) || A.value === e ? { opacity: 1 } : { opacity: N.value.style.chart.layout.rect.selection.unselectedOpacity };
662
+ }
663
+ function Zn(e) {
664
+ return e.length <= 3 ? e : e.filter((t, n) => {
665
+ let r = e[(n - 1 + e.length) % e.length], i = e[(n + 1) % e.length], a = r.x === t.x && t.x === i.x, o = r.y === t.y && t.y === i.y;
666
+ return !a && !o;
667
+ });
668
+ }
669
+ function Qn(e) {
670
+ if (!e.length) return [];
671
+ let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [], r = /* @__PURE__ */ new Set(), i = [
672
+ [-1, 0],
673
+ [0, 1],
674
+ [1, 0],
675
+ [0, -1]
676
+ ];
677
+ e.forEach((e) => {
678
+ let a = `${e.row}:${e.col}`;
679
+ if (r.has(a)) return;
680
+ let o = [], s = [e];
681
+ for (r.add(a); s.length;) {
682
+ let e = s.shift();
683
+ o.push(e), i.forEach(([n, i]) => {
684
+ let a = e.row + n, o = e.col + i, c = `${a}:${o}`;
685
+ !t.has(c) || r.has(c) || (r.add(c), s.push({
686
+ row: a,
687
+ col: o
688
+ }));
689
+ });
690
+ }
691
+ n.push(o);
692
+ });
693
+ let a = [];
694
+ return n.forEach((e) => {
695
+ let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [];
696
+ e.forEach(({ row: e, col: r }) => {
697
+ t.has(`${e - 1}:${r}`) || n.push({
698
+ start: {
699
+ x: r,
700
+ y: e
701
+ },
702
+ end: {
703
+ x: r + 1,
704
+ y: e
705
+ }
706
+ }), t.has(`${e}:${r + 1}`) || n.push({
707
+ start: {
708
+ x: r + 1,
709
+ y: e
710
+ },
711
+ end: {
712
+ x: r + 1,
713
+ y: e + 1
714
+ }
715
+ }), t.has(`${e + 1}:${r}`) || n.push({
716
+ start: {
717
+ x: r + 1,
718
+ y: e + 1
719
+ },
720
+ end: {
721
+ x: r,
722
+ y: e + 1
723
+ }
724
+ }), t.has(`${e}:${r - 1}`) || n.push({
725
+ start: {
726
+ x: r,
727
+ y: e + 1
728
+ },
729
+ end: {
730
+ x: r,
731
+ y: e
732
+ }
733
+ });
734
+ });
735
+ let r = /* @__PURE__ */ new Map(), i = (e) => `${e.start.x}:${e.start.y}>${e.end.x}:${e.end.y}`, o = (e) => `${e.x}:${e.y}`, s = new Set(n.map(i));
736
+ for (n.forEach((e) => {
737
+ let t = o(e.start);
738
+ r.has(t) || r.set(t, []), r.get(t).push(e);
739
+ }); s.size;) {
740
+ let e = s.values().next().value, t = n.find((t) => i(t) === e), c = t.start, l = [c], u = t;
741
+ for (; u;) {
742
+ s.delete(i(u));
743
+ let e = u.end;
744
+ if (o(e) === o(c)) break;
745
+ l.push(e), u = (r.get(o(e)) || []).find((e) => s.has(i(e)));
746
+ }
747
+ l.length >= 4 && a.push(Zn(l));
748
+ }
749
+ }), a;
750
+ }
751
+ function $n(e) {
752
+ let t = N.value.style.chart.layout.grid.size, n = N.value.style.chart.layout.grid.vertical, r = [];
753
+ return W.value.forEach((i, a) => {
754
+ if (i.serieIndex !== e) return;
755
+ let o = Math.floor(a / t), s = a % t;
756
+ r.push({
757
+ row: n ? s : o,
758
+ col: n ? o : s
759
+ });
760
+ }), r;
761
+ }
762
+ function er(e) {
763
+ let t = vn.value, n = yn.value;
764
+ return Qn($n(e)).map((e) => e.map(({ x: e, y: r }) => ({
765
+ x: e * t,
766
+ y: z.value.top + r * n
767
+ })));
768
+ }
769
+ function tr(e) {
770
+ return e.map(({ x: e, y: t }) => `${e},${t}`).join(" ");
771
+ }
772
+ function nr(e) {
773
+ return e.map((e) => {
774
+ if (!e.length) return "";
775
+ let [t, ...n] = e, r = n.map(({ x: e, y: t }) => `L ${e} ${t}`).join(" ");
776
+ return `M ${t.x} ${t.y} ${r} Z`;
777
+ }).filter(Boolean).join(" ");
778
+ }
779
+ let rr = f(() => !N.value.style.chart.layout.rect.selection?.wrap?.show || [null, void 0].includes(A.value) ? [] : er(A.value).map(tr)), ir = f(() => {
780
+ if (!N.value.style.chart.layout.rect.merged) return [];
781
+ let e = /* @__PURE__ */ new Map();
782
+ return W.value.forEach((t, n) => {
783
+ e.has(t.serieIndex) || e.set(t.serieIndex, {
784
+ serieIndex: t.serieIndex,
785
+ absoluteIndex: t.absoluteIndex,
786
+ color: t.color,
787
+ gradientIndex: n,
788
+ rectIndex: n
789
+ });
790
+ }), Array.from(e.values()).map((e) => ({
791
+ ...e,
792
+ d: nr(er(e.serieIndex))
793
+ })).filter((e) => e.d);
794
+ });
795
+ function ar(e, t) {
796
+ return N.value.style.chart.layout.labels.captions.show ? W.value.length && !kn.value && !N.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < N.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % N.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
797
+ }
798
+ function or(e, t = null) {
799
+ let n = te(N.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, u({
800
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
801
+ v: W.value[e].value,
802
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
803
+ r: N.value.style.chart.layout.labels.captions.roundingValue
804
+ }), {
805
+ datapoint: W.value[e],
806
+ position: t
807
+ }), r = u({
808
+ v: W.value[e].proportion,
809
+ s: "%",
810
+ r: N.value.style.chart.layout.labels.captions.roundingPercentage
811
+ }), i = (N.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ie({
812
+ source: W.value[e].name,
813
+ length: N.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
814
+ }) : W.value[e].name) + (N.value.style.chart.layout.labels.captions.showPercentage || N.value.style.chart.layout.labels.captions.showValue ? ":" : "");
815
+ return `${N.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${Bn({
816
+ val: n,
817
+ percentage: r,
818
+ showVal: N.value.style.chart.layout.labels.captions.showValue,
819
+ showPercentage: N.value.style.chart.layout.labels.captions.showPercentage,
820
+ config: N.value.style.chart.layout.labels.dataLabels
821
+ })}`;
822
+ }
823
+ function sr(e = null) {
824
+ Be(() => {
825
+ let r = Q.value.head.map((e, t) => [
826
+ [e.name],
827
+ [Q.value.body[t]],
828
+ [isNaN(Q.value.body[t] / X.value) ? "-" : Q.value.body[t] / X.value * 100]
829
+ ]), i = [
830
+ [N.value.style.chart.title.text],
831
+ [N.value.style.chart.title.subtitle.text],
832
+ [
833
+ [""],
834
+ ["val"],
835
+ ["%"]
836
+ ]
837
+ ].concat(r), a = n(i);
838
+ e ? e(a) : t({
839
+ csvContent: a,
840
+ title: N.value.style.chart.title.text || "vue-ui-waffle"
841
+ });
842
+ });
843
+ }
844
+ let cr = f(() => ({
845
+ head: [
846
+ "__SUM__",
847
+ te(N.value.style.chart.layout.labels.dataLabels.formatter, X.value, u({
848
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
849
+ v: X.value,
850
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
851
+ r: N.value.table.td.roundingValue
852
+ })),
853
+ "100%"
854
+ ],
855
+ body: Q.value.head.map((e, t) => [
856
+ {
857
+ color: e.color,
858
+ name: e.name
859
+ },
860
+ te(N.value.style.chart.layout.labels.dataLabels.formatter, Q.value.body[t], u({
861
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
862
+ v: Q.value.body[t],
863
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
864
+ r: N.value.table.td.roundingValue
865
+ })),
866
+ isNaN(Q.value.body[t] / X.value) ? "-" : u({
867
+ v: Q.value.body[t] / X.value * 100,
868
+ s: "%",
869
+ r: N.value.table.td.roundingPercentage
870
+ })
871
+ ]),
872
+ config: {
873
+ th: {
874
+ backgroundColor: N.value.table.th.backgroundColor,
875
+ color: N.value.table.th.color,
876
+ outline: N.value.table.th.outline
877
+ },
878
+ td: {
879
+ backgroundColor: N.value.table.td.backgroundColor,
880
+ color: N.value.table.td.color,
881
+ outline: N.value.table.td.outline
882
+ },
883
+ shape: "square",
884
+ breakpoint: N.value.table.responsiveBreakpoint
885
+ },
886
+ colNames: [
887
+ N.value.table.columnNames.series,
888
+ N.value.table.columnNames.value,
889
+ N.value.table.columnNames.percentage
890
+ ]
891
+ })), lr = C(!1);
892
+ function ur(e) {
893
+ lr.value = e, zt.value += 1;
894
+ }
895
+ function dr() {
896
+ L.value.showTable = !L.value.showTable;
897
+ }
898
+ function fr() {
899
+ L.value.showTooltip = !L.value.showTooltip;
900
+ }
901
+ let pr = C(!1);
902
+ function mr() {
903
+ pr.value = !pr.value;
904
+ }
905
+ async function hr({ scale: e = 2 } = {}) {
906
+ if (!j.value) return;
907
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
908
+ domElement: j.value,
909
+ base64: !0,
910
+ img: !0,
911
+ scale: e
912
+ });
913
+ return {
914
+ imageUri: i,
915
+ base64: a,
916
+ title: N.value.style.chart.title.text,
917
+ width: t,
918
+ height: n,
919
+ aspectRatio: r
920
+ };
921
+ }
922
+ let gr = f(() => {
923
+ let e = N.value.table.useDialog && !N.value.table.show, t = L.value.showTable;
924
+ return {
925
+ component: e ? At : Et,
926
+ title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
927
+ props: e ? {
928
+ backgroundColor: N.value.table.th.backgroundColor,
929
+ color: N.value.table.th.color,
930
+ headerColor: N.value.table.th.color,
931
+ headerBg: N.value.table.th.backgroundColor,
932
+ isFullscreen: lr.value,
933
+ fullscreenParent: j.value,
934
+ forcedWidth: Math.min(500, window.innerWidth * .8),
935
+ isCursorPointer: F.value
936
+ } : {
937
+ hideDetails: !0,
938
+ config: {
939
+ open: t,
940
+ maxHeight: 1e4,
941
+ body: {
942
+ backgroundColor: N.value.style.chart.backgroundColor,
943
+ color: N.value.style.chart.color
944
+ },
945
+ head: {
946
+ backgroundColor: N.value.style.chart.backgroundColor,
947
+ color: N.value.style.chart.color
948
+ }
949
+ }
950
+ }
951
+ };
952
+ });
953
+ Je(() => L.value.showTable, (e) => {
954
+ N.value.table.show || (e && N.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
955
+ });
956
+ function _r() {
957
+ L.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
958
+ }
959
+ let vr = f(() => Y.value.map((e) => ({
960
+ ...e,
961
+ name: e.display
962
+ }))), yr = f(() => N.value.style.chart.backgroundColor), br = f(() => N.value.style.chart.legend), xr = f(() => N.value.style.chart.title), { isCallbackImaging: Sr, isCallbackSvg: Cr, generateSvg: wr, onGenerateImage: Tr } = ve({
963
+ svg: sn,
964
+ title: xr,
965
+ legend: br,
966
+ legendItems: vr,
967
+ backgroundColor: yr,
968
+ getSvgCallback: () => N.value.userOptions.callbacks.svg,
969
+ generateImage: hn
970
+ });
971
+ async function Er() {
972
+ if (Yn("copyAlt", {
973
+ config: N.value,
974
+ dataset: En.value
975
+ }), !N.value.userOptions.callbacks.altCopy) {
976
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
977
+ return;
978
+ }
979
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
980
+ config: N.value,
981
+ dataset: En.value
982
+ }));
983
+ }
984
+ function Dr() {
985
+ M.value = null, Qt.value = !0;
986
+ }
987
+ function Or() {
988
+ M.value = null, Zt.value = "pointer", Lt.value = !1, A.value = null, Un.value = null, Qt.value = !1;
989
+ }
990
+ function kr(e) {
991
+ if (!sn.value || pr.value || document.activeElement !== sn.value || !Z.value.length || K.value.length === O.dataset.length) return;
992
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
993
+ if (!t && !n && !r && !i) return;
994
+ if (e.preventDefault(), e.stopPropagation(), i) {
995
+ M.value = null, Zt.value = "pointer", Lt.value = !1, A.value = null, Un.value = null;
996
+ return;
997
+ }
998
+ if (r) {
999
+ if (M.value === null) return;
1000
+ let e = Gn(M.value);
1001
+ if (e === null) return;
1002
+ Kn(e);
1003
+ return;
1004
+ }
1005
+ let a = Z.value.findIndex((e) => e.serieIndex === M.value), o = null;
1006
+ if (o = a === -1 ? n ? Z.value[0] : Z.value[Z.value.length - 1] : n ? Z.value[(a + 1) % Z.value.length] : Z.value[(a - 1 + Z.value.length) % Z.value.length], !o) return;
1007
+ let s = Gn(o.serieIndex);
1008
+ s !== null && (Ar(o.serieIndex), Jn(s, "keyboard"));
1009
+ }
1010
+ function Ar(e) {
1011
+ if (!Number.isFinite(e) || !sn.value) return;
1012
+ let t = Wn(e);
1013
+ if (!t || !t.rectIndexes.length) return;
1014
+ let n = t.rectIndexes.map((e) => {
1015
+ let t = G.value[e];
1016
+ return t ? {
1017
+ x: t.x + N.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2,
1018
+ y: t.y + N.value.style.chart.layout.grid.spaceBetween / 2 + yn.value / 2
1019
+ } : null;
1020
+ }).filter(Boolean);
1021
+ if (!n.length) return;
1022
+ 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, c = (a + o) / 2, l = sn.value.getBoundingClientRect();
1023
+ Xt.value = {
1024
+ x: l.left + s / R.value.width * l.width,
1025
+ y: l.top + c / R.value.height * l.height
1026
+ };
1027
+ }
1028
+ let jr = f(() => ({
1029
+ headers: cr.value?.colNames ?? [],
1030
+ rows: cr.value?.body ?? []
1031
+ }));
1032
+ return Ce({
1033
+ getData: Dn,
1034
+ getImage: hr,
1035
+ generatePdf: mn,
1036
+ generateCsv: sr,
1037
+ generateImage: hn,
1038
+ generateSvg: wr,
1039
+ hideSeries: zn,
1040
+ showSeries: Rn,
1041
+ toggleTable: dr,
1042
+ toggleTooltip: fr,
1043
+ toggleAnnotator: mr,
1044
+ toggleFullscreen: ur,
1045
+ copyAlt: Er
1046
+ }), (e, t) => (S(), h("div", {
1047
+ class: y(`vue-data-ui-component vue-ui-waffle ${lr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1048
+ ref_key: "waffleChart",
1049
+ ref: j,
1050
+ id: `vue-ui-waffle_${k.value}`,
1051
+ style: x(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
1052
+ onMouseenter: t[2] ||= () => E(an)(!0),
1053
+ onMouseleave: t[3] ||= () => E(an)(!1)
1054
+ }, [
1055
+ g("div", {
1056
+ id: `chart-instructions-${k.value}`,
1057
+ class: "sr-only"
1058
+ }, [g("p", null, Ge(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
1059
+ jr.value?.rows?.length ? (S(), p(Oe, {
1060
+ key: 0,
1061
+ uid: k.value,
1062
+ head: jr.value.headers,
1063
+ body: jr.value.rows,
1064
+ notice: N.value.a11y.translations.tableAvailable,
1065
+ caption: N.value.a11y.translations.tableCaption
1066
+ }, null, 8, [
1067
+ "uid",
1068
+ "head",
1069
+ "body",
1070
+ "notice",
1071
+ "caption"
1072
+ ])) : m("", !0),
1073
+ N.value.userOptions.buttons.annotator ? (S(), p(E(Ot), {
1074
+ key: 1,
1075
+ svgRef: E(sn),
1076
+ backgroundColor: N.value.style.chart.backgroundColor,
1077
+ color: N.value.style.chart.color,
1078
+ active: pr.value,
1079
+ isCursorPointer: F.value,
1080
+ onClose: mr
1081
+ }, {
1082
+ "annotator-action-close": D(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1083
+ "annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
1084
+ "annotator-action-draw": D(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
1085
+ "annotator-action-undo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
1086
+ "annotator-action-redo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
1087
+ "annotator-action-delete": D(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
1088
+ _: 3
1089
+ }, 8, [
1090
+ "svgRef",
1091
+ "backgroundColor",
1092
+ "color",
1093
+ "active",
1094
+ "isCursorPointer"
1095
+ ])) : m("", !0),
1096
+ gn.value ? (S(), h("div", {
1097
+ key: 2,
1098
+ ref_key: "noTitle",
1099
+ ref: Ut,
1100
+ class: "vue-data-ui-no-title-space",
1101
+ style: "height:36px; width: 100%;background:transparent"
1102
+ }, null, 512)) : m("", !0),
1103
+ N.value.style.chart.title.text ? (S(), h("div", {
1104
+ key: 3,
1105
+ ref_key: "chartTitle",
1106
+ ref: Bt,
1107
+ style: "width:100%;background:transparent;padding-bottom:12px"
1108
+ }, [(S(), p(xe, {
1109
+ key: `title_${Wt.value}`,
1110
+ config: {
1111
+ title: {
1112
+ cy: "waffle-title",
1113
+ ...N.value.style.chart.title
1114
+ },
1115
+ subtitle: {
1116
+ cy: "waffle-subtitle",
1117
+ ...N.value.style.chart.title.subtitle
1118
+ }
1119
+ }
1120
+ }, null, 8, ["config"]))], 512)) : m("", !0),
1121
+ g("div", { id: `legend-top-${k.value}` }, null, 8, Qe),
1122
+ N.value.userOptions.show && It.value && (E(on) || E(rn)) ? (S(), p(E(Dt), {
1123
+ ref_key: "userOptionsRef",
1124
+ ref: Yt,
1125
+ key: `user_options_${zt.value}`,
1126
+ backgroundColor: N.value.style.chart.backgroundColor,
1127
+ color: N.value.style.chart.color,
1128
+ isPrinting: E(fn),
1129
+ isImaging: E(pn),
1130
+ uid: k.value,
1131
+ hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
1132
+ hasPdf: N.value.userOptions.buttons.pdf,
1133
+ hasImg: N.value.userOptions.buttons.img,
1134
+ hasSvg: N.value.userOptions.buttons.svg,
1135
+ hasXls: N.value.userOptions.buttons.csv,
1136
+ hasTable: N.value.userOptions.buttons.table,
1137
+ hasFullscreen: N.value.userOptions.buttons.fullscreen,
1138
+ hasAltCopy: N.value.userOptions.buttons.altCopy,
1139
+ isFullscreen: lr.value,
1140
+ isTooltip: L.value.showTooltip,
1141
+ titles: { ...N.value.userOptions.buttonTitles },
1142
+ chartElement: j.value,
1143
+ position: N.value.userOptions.position,
1144
+ hasAnnotator: N.value.userOptions.buttons.annotator,
1145
+ isAnnotation: pr.value,
1146
+ callbacks: N.value.userOptions.callbacks,
1147
+ printScale: N.value.userOptions.print.scale,
1148
+ tableDialog: N.value.table.useDialog,
1149
+ isCursorPointer: F.value,
1150
+ onToggleFullscreen: ur,
1151
+ onGeneratePdf: E(mn),
1152
+ onGenerateCsv: sr,
1153
+ onGenerateImage: E(Tr),
1154
+ onGenerateSvg: E(wr),
1155
+ onToggleTable: dr,
1156
+ onToggleTooltip: fr,
1157
+ onToggleAnnotator: mr,
1158
+ onCopyAlt: Er,
1159
+ style: x({ visibility: E(on) ? E(rn) ? "visible" : "hidden" : "visible" })
1160
+ }, Ie({ _: 2 }, [
1161
+ e.$slots.menuIcon ? {
1162
+ name: "menuIcon",
1163
+ fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
1164
+ isOpen: t,
1165
+ color: n
1166
+ })), void 0, !0)]),
1167
+ key: "0"
1168
+ } : void 0,
1169
+ e.$slots.optionTooltip ? {
1170
+ name: "optionTooltip",
1171
+ fn: D(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1172
+ key: "1"
1173
+ } : void 0,
1174
+ e.$slots.optionPdf ? {
1175
+ name: "optionPdf",
1176
+ fn: D(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1177
+ key: "2"
1178
+ } : void 0,
1179
+ e.$slots.optionCsv ? {
1180
+ name: "optionCsv",
1181
+ fn: D(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1182
+ key: "3"
1183
+ } : void 0,
1184
+ e.$slots.optionImg ? {
1185
+ name: "optionImg",
1186
+ fn: D(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1187
+ key: "4"
1188
+ } : void 0,
1189
+ e.$slots.optionSvg ? {
1190
+ name: "optionSvg",
1191
+ fn: D(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1192
+ key: "5"
1193
+ } : void 0,
1194
+ e.$slots.optionTable ? {
1195
+ name: "optionTable",
1196
+ fn: D(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1197
+ key: "6"
1198
+ } : void 0,
1199
+ e.$slots.optionFullscreen ? {
1200
+ name: "optionFullscreen",
1201
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
1202
+ toggleFullscreen: t,
1203
+ isFullscreen: n
1204
+ })), void 0, !0)]),
1205
+ key: "7"
1206
+ } : void 0,
1207
+ e.$slots.optionAnnotator ? {
1208
+ name: "optionAnnotator",
1209
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
1210
+ toggleAnnotator: t,
1211
+ isAnnotator: n
1212
+ })), void 0, !0)]),
1213
+ key: "8"
1214
+ } : void 0,
1215
+ e.$slots.optionAltCopy ? {
1216
+ name: "optionAltCopy",
1217
+ fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1218
+ key: "9"
1219
+ } : void 0,
1220
+ e.$slots["custom-menu-before"] ? {
1221
+ name: "custom-menu-before",
1222
+ fn: D(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1223
+ key: "10"
1224
+ } : void 0,
1225
+ e.$slots["custom-menu-after"] ? {
1226
+ name: "custom-menu-after",
1227
+ fn: D(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1228
+ key: "11"
1229
+ } : void 0
1230
+ ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
1231
+ g("div", $e, [(S(), h("svg", {
1232
+ ref_key: "svgRef",
1233
+ ref: sn,
1234
+ xmlns: E(ce),
1235
+ "aria-describedby": `chart-instructions-${k.value}`,
1236
+ class: y({
1237
+ "vue-data-ui-fullscreen--on": lr.value,
1238
+ "vue-data-ui-fulscreen--off": !lr.value,
1239
+ "vue-data-ui-no-transition": !E(P)
1240
+ }),
1241
+ tabindex: "0",
1242
+ viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
1243
+ style: x(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
1244
+ onFocus: Dr,
1245
+ onBlur: Or,
1246
+ onKeydown: kr
1247
+ }, [
1248
+ Re(E(kt)),
1249
+ g("defs", null, [(S(!0), h(d, null, w(W.value, (e, t) => (S(), p(Ee, {
1250
+ t: "radial",
1251
+ cx: "50%",
1252
+ cy: "50%",
1253
+ r: "50%",
1254
+ fx: "50%",
1255
+ fy: "50%",
1256
+ id: `gradient_${k.value}_${t}`,
1257
+ key: `gradient_${k.value}_${t}`,
1258
+ stops: [[
1259
+ "0%",
1260
+ E(r)(E(l)(e.color, .05), 100 - N.value.style.chart.layout.rect.gradientIntensity),
1261
+ 1
1262
+ ], [
1263
+ "100%",
1264
+ e.color,
1265
+ 1
1266
+ ]]
1267
+ }, null, 8, ["id", "stops"]))), 128))]),
1268
+ g("defs", null, [g("filter", {
1269
+ id: `blur_${k.value}`,
1270
+ x: "-50%",
1271
+ y: "-50%",
1272
+ width: "200%",
1273
+ height: "200%"
1274
+ }, [...t[4] ||= [g("feGaussianBlur", {
1275
+ in: "SourceGraphic",
1276
+ stdDeviation: 2
1277
+ }, null, -1), g("feColorMatrix", {
1278
+ type: "saturate",
1279
+ values: "0"
1280
+ }, null, -1)]], 8, tt)]),
1281
+ N.value.useCustomCells && W.value.length && e.$slots.cell ? (S(!0), h(d, { key: 0 }, w(G.value, (t, n) => (S(), h("foreignObject", {
1282
+ x: t.x,
1283
+ y: t.y,
1284
+ height: V.value <= 0 ? 1e-4 : V.value,
1285
+ width: B.value <= 0 ? 1e-4 : B.value,
1286
+ class: "vue-ui-waffle-custom-cell-foreignObject"
1287
+ }, [T(e.$slots, "cell", ze({ ref_for: !0 }, {
1288
+ cell: {
1289
+ ...t,
1290
+ color: W.value[n].color,
1291
+ height: Math.max(0, V.value),
1292
+ width: Math.max(0, B.value),
1293
+ ...W.value[n]
1294
+ },
1295
+ isSelected: [null, void 0].includes(A.value) ? !0 : W.value[n].serieIndex === A.value
1296
+ }), void 0, !0)], 8, nt))), 256)) : m("", !0),
1297
+ !W.value.length && !N.value.useCustomCells ? (S(), h("rect", {
1298
+ key: 1,
1299
+ x: 12,
1300
+ y: 12,
1301
+ height: z.value.height - 24,
1302
+ width: z.value.width - 24,
1303
+ rx: 3,
1304
+ fill: "none",
1305
+ stroke: "black"
1306
+ }, null, 8, rt)) : W.value.length && !N.value.useCustomCells ? (S(), h(d, { key: 2 }, [e.$slots.pattern ? (S(), h("g", it, [(S(!0), h(d, null, w(Cn.value, (t) => (S(), h("defs", null, [T(e.$slots, "pattern", ze({ ref_for: !0 }, {
1307
+ seriesIndex: t.absoluteIndex,
1308
+ patternId: `pattern_${k.value}_${t.absoluteIndex}`
1309
+ }), void 0, !0)]))), 256))])) : m("", !0), N.value.style.chart.layout.rect.merged ? (S(), h(d, { key: 1 }, [
1310
+ (S(!0), h(d, null, w(ir.value, (e) => (S(), h("path", {
1311
+ key: `merged-underlayer-${e.serieIndex}`,
1312
+ d: e.d,
1313
+ fill: "white",
1314
+ "fill-rule": "evenodd",
1315
+ stroke: N.value.style.chart.layout.rect.stroke,
1316
+ "stroke-width": N.value.style.chart.layout.rect.strokeWidth,
1317
+ "stroke-linejoin": "round",
1318
+ filter: $(e.serieIndex),
1319
+ style: x(Xn(e.serieIndex)),
1320
+ class: y({ "vue-data-ui-transition": E(P) })
1321
+ }, null, 14, at))), 128)),
1322
+ (S(!0), h(d, null, w(ir.value, (e) => (S(), h("path", {
1323
+ key: `merged-serie-${e.serieIndex}`,
1324
+ d: e.d,
1325
+ fill: N.value.style.chart.layout.rect.useGradient && N.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${e.gradientIndex})` : e.color,
1326
+ "fill-rule": "evenodd",
1327
+ stroke: N.value.style.chart.layout.rect.stroke,
1328
+ "stroke-width": N.value.style.chart.layout.rect.strokeWidth,
1329
+ "stroke-linejoin": "round",
1330
+ filter: $(e.serieIndex),
1331
+ style: x(Xn(e.serieIndex)),
1332
+ class: y({ "vue-data-ui-transition": E(P) })
1333
+ }, null, 14, ot))), 128)),
1334
+ e.$slots.pattern ? (S(), h("g", st, [(S(!0), h(d, null, w(ir.value, (e) => (S(), h("path", {
1335
+ key: `merged-pattern-${e.serieIndex}`,
1336
+ d: e.d,
1337
+ fill: `url(#pattern_${k.value}_${e.absoluteIndex})`,
1338
+ "fill-rule": "evenodd",
1339
+ stroke: "none",
1340
+ filter: $(e.serieIndex),
1341
+ style: x(Xn(e.serieIndex)),
1342
+ class: y({ "vue-data-ui-transition": E(P) })
1343
+ }, null, 14, ct))), 128))])) : m("", !0)
1344
+ ], 64)) : (S(), h(d, { key: 2 }, [
1345
+ (S(!0), h(d, null, w(G.value, (e, t) => (S(), h("rect", {
1346
+ rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
1347
+ x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
1348
+ y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
1349
+ height: V.value <= 0 ? 1e-4 : V.value,
1350
+ width: B.value <= 0 ? 1e-4 : B.value,
1351
+ fill: "white",
1352
+ stroke: N.value.style.chart.layout.rect.stroke,
1353
+ "stroke-width": N.value.style.chart.layout.rect.strokeWidth,
1354
+ filter: $(W.value[t].serieIndex),
1355
+ style: x(Xn(W.value[t].serieIndex)),
1356
+ class: y({ "vue-data-ui-transition": E(P) })
1357
+ }, null, 14, lt))), 256)),
1358
+ (S(!0), h(d, null, w(G.value, (e, t) => (S(), h("rect", {
1359
+ rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
1360
+ x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
1361
+ y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
1362
+ height: V.value <= 0 ? 1e-4 : V.value,
1363
+ width: B.value <= 0 ? 1e-4 : B.value,
1364
+ fill: N.value.style.chart.layout.rect.useGradient && N.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${t})` : W.value[t].color,
1365
+ stroke: N.value.style.chart.layout.rect.stroke,
1366
+ "stroke-width": N.value.style.chart.layout.rect.strokeWidth,
1367
+ filter: $(W.value[t].serieIndex),
1368
+ style: x(Xn(W.value[t].serieIndex)),
1369
+ class: y({ "vue-data-ui-transition": E(P) })
1370
+ }, null, 14, ut))), 256)),
1371
+ e.$slots.pattern ? (S(), h("g", dt, [(S(!0), h(d, null, w(G.value, (e, t) => (S(), h("rect", {
1372
+ rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
1373
+ x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
1374
+ y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
1375
+ height: V.value <= 0 ? 1e-4 : V.value,
1376
+ width: B.value <= 0 ? 1e-4 : B.value,
1377
+ fill: `url(#pattern_${k.value}_${W.value[t].absoluteIndex})`,
1378
+ stroke: "none",
1379
+ filter: $(W.value[t].serieIndex),
1380
+ style: x(Xn(W.value[t].serieIndex)),
1381
+ class: y({ "vue-data-ui-transition": E(P) })
1382
+ }, null, 14, ft))), 256))])) : m("", !0)
1383
+ ], 64))], 64)) : m("", !0),
1384
+ e.$slots.cellSvg ? (S(!0), h(d, { key: 3 }, w(G.value, (t, n) => (S(), h("g", null, [T(e.$slots, "cellSvg", ze({ ref_for: !0 }, {
1385
+ cell: {
1386
+ ...t,
1387
+ color: W.value[n].color,
1388
+ height: Math.max(0, V.value),
1389
+ width: Math.max(0, B.value),
1390
+ ...W.value[n]
1391
+ },
1392
+ isSelected: [null, void 0].includes(A.value) ? !0 : W.value[n].serieIndex === A.value
1393
+ }), void 0, !0)]))), 256)) : m("", !0),
1394
+ (S(!0), h(d, null, w(rr.value, (e, t) => (S(), h("polygon", {
1395
+ key: `selected-series-wrap-${t}`,
1396
+ points: e,
1397
+ fill: "none",
1398
+ stroke: N.value.style.chart.layout.rect.selection.wrap.stroke,
1399
+ "stroke-width": N.value.style.chart.layout.rect.selection.wrap.strokeWidth,
1400
+ "stroke-linejoin": N.value.style.chart.layout.rect.selection.wrap.strokeLinejoin,
1401
+ "pointer-events": "none"
1402
+ }, null, 8, pt))), 128)),
1403
+ (S(!0), h(d, null, w(G.value, (e, t) => (S(), h(d, null, [ar(t, e) ? (S(), h("text", {
1404
+ key: `datalabel_${t}`,
1405
+ textContent: Ge(or(t, e)),
1406
+ x: e.x + N.value.style.chart.layout.labels.captions.offsetX + N.value.style.chart.layout.grid.spaceBetween / 2 + 6,
1407
+ y: e.y + N.value.style.chart.layout.labels.captions.offsetY + N.value.style.chart.layout.grid.spaceBetween / 2 + yn.value / 2 + N.value.style.chart.layout.labels.captions.fontSize / 3,
1408
+ "font-size": N.value.style.chart.layout.labels.captions.fontSize,
1409
+ fill: E(se)(W.value[t].color),
1410
+ filter: $(W.value[t].serieIndex),
1411
+ class: y({ "vue-data-ui-transition": E(P) })
1412
+ }, null, 10, mt)) : m("", !0)], 64))), 256)),
1413
+ N.value.style.chart.layout.rect.merged && !N.value.useCustomCells ? (S(!0), h(d, { key: 4 }, w(ir.value, (e) => (S(), h("path", {
1414
+ key: `tooltip-trap-${e.serieIndex}`,
1415
+ d: e.d,
1416
+ fill: "transparent",
1417
+ "fill-rule": "evenodd",
1418
+ stroke: "none",
1419
+ "pointer-events": "fill",
1420
+ onMouseover: (t) => Jn(e.rectIndex),
1421
+ onMouseleave: (t) => qn(e.rectIndex),
1422
+ onClick: (t) => Kn(e.rectIndex)
1423
+ }, null, 40, ht))), 128)) : (S(!0), h(d, { key: 5 }, w(G.value, (e, t) => (S(), h("rect", {
1424
+ key: `tooltip-trap-${t}`,
1425
+ x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
1426
+ y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
1427
+ height: yn.value,
1428
+ width: vn.value,
1429
+ fill: "transparent",
1430
+ stroke: "none",
1431
+ onMouseover: (e) => Jn(t),
1432
+ onMouseleave: (e) => qn(t),
1433
+ onClick: (e) => Kn(t)
1434
+ }, null, 40, gt))), 128)),
1435
+ T(e.$slots, "svg", { svg: {
1436
+ ...R.value,
1437
+ isPrintingImg: E(fn) || E(pn) || E(Sr),
1438
+ isPrintingSvg: E(Cr)
1439
+ } }, void 0, !0)
1440
+ ], 46, et)), e.$slots.hint ? (S(), h("div", _t, [T(e.$slots, "hint", b(v({
1441
+ hint: N.value.a11y.translations.keyboardNavigation,
1442
+ isVisible: Qt.value
1443
+ })), void 0, !0)])) : m("", !0)]),
1444
+ e.$slots.watermark ? (S(), h("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: E(fn) || E(pn) || E(Sr) || E(Cr) })), void 0, !0)])) : m("", !0),
1445
+ g("div", { id: `legend-bottom-${k.value}` }, null, 8, yt),
1446
+ qt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Fe, {
1447
+ key: 6,
1448
+ to: N.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1449
+ }, [g("div", {
1450
+ ref_key: "chartLegend",
1451
+ ref: Vt
1452
+ }, [T(e.$slots, "legend", { legend: Y.value }, () => [N.value.style.chart.legend.show ? (S(), p(Me, {
1453
+ key: `legend_${Kt.value}`,
1454
+ legendSet: Y.value,
1455
+ config: Vn.value,
1456
+ isCursorPointer: F.value,
1457
+ onClickMarker: t[0] ||= ({ legend: e }) => In(e.uid)
1458
+ }, Ie({
1459
+ item: D(({ legend: e }) => [g("div", {
1460
+ onClick: (t) => e.segregate(),
1461
+ style: x(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
1462
+ }, Ge(e.display), 13, bt)]),
1463
+ legendToggle: D(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(en) ? (S(), p(De, {
1464
+ key: 0,
1465
+ backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1466
+ color: N.value.style.chart.legend.selectAllToggle.color,
1467
+ fontSize: N.value.style.chart.legend.fontSize,
1468
+ checked: K.value.length > 0,
1469
+ isCursorPointer: F.value,
1470
+ onToggle: Fn
1471
+ }, null, 8, [
1472
+ "backgroundColor",
1473
+ "color",
1474
+ "fontSize",
1475
+ "checked",
1476
+ "isCursorPointer"
1477
+ ])) : m("", !0)]),
1478
+ _: 2
1479
+ }, [e.$slots.pattern ? {
1480
+ name: "legend-pattern",
1481
+ fn: D(({ legend: e, index: t }) => [Re(Se, {
1482
+ shape: e.shape,
1483
+ radius: 30,
1484
+ stroke: "none",
1485
+ plot: {
1486
+ x: 30,
1487
+ y: 30
1488
+ },
1489
+ fill: `url(#pattern_${k.value}_${t})`
1490
+ }, null, 8, ["shape", "fill"])]),
1491
+ key: "0"
1492
+ } : void 0]), 1032, [
1493
+ "legendSet",
1494
+ "config",
1495
+ "isCursorPointer"
1496
+ ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1497
+ e.$slots.source ? (S(), h("div", {
1498
+ key: 7,
1499
+ ref_key: "source",
1500
+ ref: Ht,
1501
+ dir: "auto"
1502
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1503
+ Re(E(Ct), {
1504
+ teleportTo: N.value.style.chart.tooltip.teleportTo,
1505
+ show: L.value.showTooltip && Lt.value && K.value.length < O.dataset.length,
1506
+ backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1507
+ color: N.value.style.chart.tooltip.color,
1508
+ borderRadius: N.value.style.chart.tooltip.borderRadius,
1509
+ borderColor: N.value.style.chart.tooltip.borderColor,
1510
+ borderWidth: N.value.style.chart.tooltip.borderWidth,
1511
+ backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1512
+ position: N.value.style.chart.tooltip.position,
1513
+ offsetX: N.value.style.chart.tooltip.offsetX,
1514
+ offsetY: N.value.style.chart.tooltip.offsetY,
1515
+ parent: j.value,
1516
+ content: Rt.value,
1517
+ isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1518
+ fontSize: N.value.style.chart.tooltip.fontSize,
1519
+ isFullscreen: lr.value,
1520
+ smooth: N.value.style.chart.tooltip.smooth,
1521
+ backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1522
+ smoothForce: N.value.style.chart.tooltip.smoothForce,
1523
+ smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1524
+ isA11yMode: Zt.value === "keyboard",
1525
+ a11yPosition: Xt.value
1526
+ }, {
1527
+ "tooltip-before": D(() => [T(e.$slots, "tooltip-before", b(v({ ...Hn.value })), void 0, !0)]),
1528
+ tooltip: D(() => [T(e.$slots, "tooltip", b(v({ ...Hn.value })), void 0, !0)]),
1529
+ "tooltip-after": D(() => [T(e.$slots, "tooltip-after", b(v({ ...Hn.value })), void 0, !0)]),
1530
+ _: 3
1531
+ }, 8, [
1532
+ "teleportTo",
1533
+ "show",
1534
+ "backgroundColor",
1535
+ "color",
1536
+ "borderRadius",
1537
+ "borderColor",
1538
+ "borderWidth",
1539
+ "backgroundOpacity",
1540
+ "position",
1541
+ "offsetX",
1542
+ "offsetY",
1543
+ "parent",
1544
+ "content",
1545
+ "isCustom",
1546
+ "fontSize",
1547
+ "isFullscreen",
1548
+ "smooth",
1549
+ "backdropFilter",
1550
+ "smoothForce",
1551
+ "smoothSnapThreshold",
1552
+ "isA11yMode",
1553
+ "a11yPosition"
1554
+ ]),
1555
+ It.value && N.value.userOptions.buttons.table ? (S(), p(Ue(gr.value.component), ze({ key: 8 }, gr.value.props, {
1556
+ ref_key: "tableUnit",
1557
+ ref: Jt,
1558
+ onClose: _r
1559
+ }), Ie({
1560
+ content: D(() => [(S(), p(E(Tt), {
1561
+ key: `table_${Gt.value}`,
1562
+ colNames: cr.value.colNames,
1563
+ head: cr.value.head,
1564
+ body: cr.value.body,
1565
+ config: cr.value.config,
1566
+ title: N.value.table.useDialog ? "" : gr.value.title,
1567
+ withCloseButton: !N.value.table.useDialog,
1568
+ isCursorPointer: F.value,
1569
+ onClose: _r
1570
+ }, {
1571
+ th: D(({ th: e }) => [e === "__SUM__" ? (S(), h("div", xt, [Re(E(wt), {
1572
+ name: "sigma",
1573
+ stroke: cr.value.config.th.color,
1574
+ size: 16
1575
+ }, null, 8, ["stroke"])])) : (S(), h("div", St, Ge(e), 1))]),
1576
+ td: D(({ td: e }) => [Le(Ge(e.name || e), 1)]),
1577
+ _: 1
1578
+ }, 8, [
1579
+ "colNames",
1580
+ "head",
1581
+ "body",
1582
+ "config",
1583
+ "title",
1584
+ "withCloseButton",
1585
+ "isCursorPointer"
1586
+ ]))]),
1587
+ _: 2
1588
+ }, [N.value.table.useDialog ? {
1589
+ name: "title",
1590
+ fn: D(() => [Le(Ge(gr.value.title), 1)]),
1591
+ key: "0"
1592
+ } : void 0, N.value.table.useDialog ? {
1593
+ name: "actions",
1594
+ fn: D(() => [g("button", {
1595
+ tabindex: "0",
1596
+ class: "vue-ui-user-options-button",
1597
+ onClick: t[1] ||= (e) => sr(N.value.userOptions.callbacks.csv),
1598
+ style: x({ cursor: F.value ? "pointer" : "default" })
1599
+ }, [Re(E(wt), {
1600
+ name: "fileCsv",
1601
+ stroke: gr.value.props.color
1602
+ }, null, 8, ["stroke"])], 4)]),
1603
+ key: "1"
1604
+ } : void 0]), 1040)) : m("", !0),
1605
+ T(e.$slots, "skeleton", {}, () => [E(en) ? (S(), p(he, { key: 0 })) : m("", !0)], !0)
1606
+ ], 46, Xe));
1607
+ }
1608
+ }, [["__scopeId", "data-v-ac304f67"]]);
1609
+ //#endregion
1610
+ export { Ye as n, Ct as t };