vue-data-ui 3.22.8 → 3.22.10

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