vue-data-ui 3.25.2 → 3.25.4

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