vue-data-ui 2.3.27 → 2.3.29

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 (183) hide show
  1. package/README.md +17 -1
  2. package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/documentation/installation.md +1 -1
  19. package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
  20. package/dist/index-hKWfT7Wa.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +66 -0
  23. package/dist/types/vue-data-ui.d.ts +66 -0
  24. package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
  25. package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  26. package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
  27. package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  28. package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  29. package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +6 -6
  32. package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  33. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  34. package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  36. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  38. package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  39. package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  42. package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  44. package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  45. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  46. package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  47. package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  50. package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  51. package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  52. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  53. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  55. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  56. package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  57. package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  58. package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  60. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  61. package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  62. package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
  64. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  65. package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  66. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  67. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  68. package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  69. package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  70. package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  75. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  76. package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  77. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  78. package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  79. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  80. package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  81. package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  82. package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  83. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  84. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  85. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  86. package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  87. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  88. package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  89. package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
  90. package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  91. package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  92. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  93. package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  94. package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  95. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  96. package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  98. package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  99. package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  104. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  105. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  106. package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  108. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  109. package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  110. package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  112. package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  113. package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  114. package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  115. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  116. package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  117. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  118. package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  119. package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
  120. package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  122. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  124. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  125. package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  126. package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  127. package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  128. package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  129. package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  131. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  132. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  133. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  134. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  135. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  136. package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  138. package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
  139. package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
  140. package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  141. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  142. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  143. package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  144. package/package.json +1 -1
  145. package/dist/DataTable-C6HTLT7L.cjs +0 -1
  146. package/dist/index-BQOxn6SH.cjs +0 -4
  147. package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
  148. package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
  149. package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
  150. package/dist/vue-ui-donut-C33U3e8H.js +0 -751
  151. package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
  152. package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
  153. package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
  154. package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
  155. package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
  156. package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
  157. package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
  158. package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
  159. package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
  160. package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
  161. package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
  162. package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
  163. package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
  164. package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
  165. package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
  166. package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
  168. package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
  170. package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
  171. package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
  173. package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
  174. package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
  175. package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
  177. package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
  178. package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
  179. package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
  180. package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
  181. package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
  182. package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
  183. package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
@@ -1,650 +0,0 @@
1
- import { computed as c, ref as v, onMounted as Ve, onBeforeUnmount as Me, openBlock as s, createElementBlock as n, normalizeClass as ke, normalizeStyle as j, createVNode as ae, createCommentVNode as b, createBlock as K, unref as p, createSlots as De, withCtx as g, renderSlot as m, normalizeProps as W, guardReactiveProps as q, createElementVNode as w, Fragment as $, renderList as V, toDisplayString as T, createTextVNode as xe, nextTick as Ee, pushScopeId as Ge, popScopeId as Re } from "vue";
2
- import { u as Ue, c as je, t as We, a as qe, p as B, o as He, e as oe, g as Xe, b as Ye, d as Je, f as I, X as Ke, s as Qe, r as Ze, C as et, E as tt, v as lt, w as at, n as ot, q as ut } from "./index-DiWO-_ca.js";
3
- import { t as st, u as rt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as nt } from "./Title-C3Ez1ceq.js";
5
- import { u as it, U as ct } from "./usePrinter-BD40aUzH.js";
6
- import { _ as vt } from "./Tooltip-7SRMoiu-.js";
7
- import { D as dt } from "./DataTable-EqeVt-K-.js";
8
- import { L as ht } from "./Legend-8eVERYMn.js";
9
- import yt from "./vue-ui-skeleton-CeNL0kH-.js";
10
- import pt from "./vue-ui-accordion-CiNdgRO9.js";
11
- import { u as Ce } from "./useNestedProp-DNX5EefQ.js";
12
- import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const _e = (M) => (Ge("data-v-33939b0e"), M = M(), Re(), M), gt = ["id"], mt = ["xmlns", "viewBox"], bt = ["id"], wt = ["stop-color"], kt = ["stop-color"], xt = ["id"], Ct = /* @__PURE__ */ _e(() => /* @__PURE__ */ w("feGaussianBlur", {
14
- in: "SourceGraphic",
15
- stdDeviation: 2
16
- }, null, -1)), _t = /* @__PURE__ */ _e(() => /* @__PURE__ */ w("feColorMatrix", {
17
- type: "saturate",
18
- values: "0"
19
- }, null, -1)), $t = [
20
- Ct,
21
- _t
22
- ], Tt = ["x", "y", "height", "width"], It = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], St = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Pt = ["x", "y", "height", "width", "filter"], Ft = { key: 0 }, zt = { key: 1 }, Nt = { key: 2 }, Lt = { key: 3 }, Bt = ["onMouseover", "x", "y", "height", "width"], Ot = {
23
- key: 3,
24
- class: "vue-data-ui-watermark"
25
- }, At = ["onClick"], Vt = { key: 0 }, Mt = { key: 1 }, Dt = ["innerHTML"], Et = {
26
- __name: "vue-ui-waffle",
27
- props: {
28
- config: {
29
- type: Object,
30
- default() {
31
- return {};
32
- }
33
- },
34
- dataset: {
35
- type: Array,
36
- default() {
37
- return [];
38
- }
39
- }
40
- },
41
- emits: ["selectLegend"],
42
- setup(M, { expose: $e, emit: Te }) {
43
- const k = M, { vue_ui_waffle: Ie } = Ue(), H = c(() => !!k.dataset && k.dataset.length), S = v(je()), Se = v(null), Q = v(!1), Z = v(""), O = v(null), ue = v(0), D = v(null), se = v(null), re = v(null), e = c(() => {
44
- const t = Ce({
45
- userConfig: k.config,
46
- defaultConfig: Ie
47
- });
48
- return t.theme ? {
49
- ...Ce({
50
- userConfig: We.vue_ui_waffle[t.theme] || k.config,
51
- defaultConfig: t
52
- }),
53
- customPalette: qe[t.theme] || B
54
- } : t;
55
- }), X = v(null);
56
- Ve(() => {
57
- if (He(k.dataset) ? oe({
58
- componentName: "VueUiWaffle",
59
- type: "dataset"
60
- }) : k.dataset.forEach((t, a) => {
61
- Xe({
62
- datasetObject: t,
63
- requiredAttributes: ["name", "values"]
64
- }).forEach((l) => {
65
- oe({
66
- componentName: "VueUiWaffle",
67
- type: "datasetSerieAttribute",
68
- property: l,
69
- index: a
70
- });
71
- });
72
- }), e.value.responsive) {
73
- const t = st(() => {
74
- const { width: a, height: l } = rt({
75
- chart: D.value,
76
- title: e.value.style.chart.title.text ? se.value : null,
77
- legend: e.value.style.chart.legend.show ? re.value : null
78
- });
79
- P.value.width = a, P.value.height = l, F.value.width = a, F.value.height = l;
80
- });
81
- X.value = new ResizeObserver(t), X.value.observe(D.value.parentNode);
82
- }
83
- }), Me(() => {
84
- X.value && X.value.disconnect();
85
- });
86
- const { isPrinting: ne, isImaging: ie, generatePdf: ce, generateImage: ve } = it({
87
- elementId: `vue-ui-waffle_${S.value}`,
88
- fileName: e.value.style.chart.title.text || "vue-ui-waffle"
89
- }), de = c(() => Ye(e.value.customPalette)), C = v({
90
- showTable: e.value.table.show,
91
- showTooltip: e.value.style.chart.tooltip.show
92
- }), P = v({
93
- height: 512,
94
- width: 512
95
- }), F = v({
96
- top: 0,
97
- left: 0,
98
- height: 512,
99
- width: 512
100
- }), z = c(() => (F.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), N = c(() => (F.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), E = c(() => F.value.width / e.value.style.chart.layout.grid.size), Y = c(() => F.value.height / e.value.style.chart.layout.grid.size);
101
- function he(t) {
102
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((f, le) => f + le, 0), o = t.map((f) => f / l * a), u = o.map(Math.floor), r = o.map((f) => f % 1);
103
- let y = a - u.reduce((f, le) => f + le, 0);
104
- for (; y > 0; ) {
105
- let f = r.indexOf(Math.max(...r));
106
- u[f] += 1, r[f] = 0, y -= 1;
107
- }
108
- return u;
109
- }
110
- const ye = c(() => k.dataset.map((t, a) => ({
111
- ...t,
112
- color: Je(t.color) || de.value[a] || B[a] || B[a % B.length],
113
- uid: `serie_${a}`,
114
- absoluteIndex: a
115
- }))), d = v(ye.value), Pe = c(() => {
116
- const t = d.value.filter((a, l) => !h.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
117
- return he(t);
118
- }), Fe = c(() => {
119
- const t = d.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
120
- return he(t);
121
- }), G = c(() => (k.dataset.forEach((t, a) => {
122
- [null, void 0].includes(t.values) && oe({
123
- componentName: "VueUiWaffle",
124
- type: "datasetSerieAttribute",
125
- property: "values (number[])",
126
- index: a
127
- });
128
- }), d.value.filter((t, a) => !h.value.includes(t.uid)).map((t, a) => ({
129
- absoluteIndex: t.absoluteIndex,
130
- uid: t.uid,
131
- name: t.name,
132
- color: t.color,
133
- value: (t.values || []).reduce((l, o) => l + o, 0),
134
- absoluteValues: t.values || [],
135
- proportion: Pe.value[a]
136
- })))), ze = c(() => d.value.map((t, a) => ({
137
- absoluteIndex: t.absoluteIndex,
138
- uid: t.uid,
139
- name: t.name,
140
- color: t.color,
141
- value: (t.values || []).reduce((l, o) => l + o, 0),
142
- absoluteValues: t.values || [],
143
- proportion: Fe.value[a]
144
- })));
145
- function Ne() {
146
- return ze.value.map((t) => ({
147
- name: t.name,
148
- color: t.color,
149
- value: t.value,
150
- proportion: t.proportion
151
- }));
152
- }
153
- const Le = c(() => {
154
- let t = 0;
155
- return G.value.map((a, l) => {
156
- const o = t, u = o + a.proportion, r = [];
157
- for (let y = Math.floor(o); y < Math.floor(u); y += 1)
158
- r.push(y);
159
- return t = u, {
160
- ...a,
161
- start: o,
162
- rects: r
163
- };
164
- });
165
- }), i = c(() => Le.value.flatMap((t, a) => t.rects.map((l, o) => ({
166
- isFirst: o === 0,
167
- isLongEnough: l.length > 2,
168
- name: t.name,
169
- color: t.color,
170
- value: t.value,
171
- serieIndex: a,
172
- absoluteStartIndex: o < 3,
173
- serieId: t.uid,
174
- ...t
175
- }))).map((t, a) => ({
176
- ...t,
177
- isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
178
- }))), R = c(() => {
179
- const t = [];
180
- for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
181
- for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
182
- t.push({
183
- isStartOfLine: l === 0,
184
- position: e.value.style.chart.layout.grid.vertical ? a : l,
185
- x: (e.value.style.chart.layout.grid.vertical ? a : l) * (z.value + e.value.style.chart.layout.grid.spaceBetween),
186
- y: (e.value.style.chart.layout.grid.vertical ? l : a) * (N.value + e.value.style.chart.layout.grid.spaceBetween) + F.value.top
187
- });
188
- return t;
189
- }), h = v([]), L = v(!1), pe = v(null), fe = v(null);
190
- function ge(t) {
191
- if (!e.value.useAnimation) {
192
- h.value.includes(t) ? h.value = h.value.filter((u) => u !== t) : h.value.length < A.value.length - 1 && A.value.length > 1 && h.value.push(t);
193
- return;
194
- }
195
- const a = ye.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0);
196
- let o = d.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0);
197
- if (h.value.includes(t)) {
198
- let r = function() {
199
- o > u ? (cancelAnimationFrame(pe.value), d.value = d.value.map((y, f) => y.uid === t ? {
200
- ...y,
201
- values: [u]
202
- } : y), L.value = !1) : (L.value = !0, o += u * 0.025, d.value = d.value.map((y, f) => y.uid === t ? {
203
- ...y,
204
- values: [o]
205
- } : y), pe.value = requestAnimationFrame(r));
206
- };
207
- h.value = h.value.filter((y) => y !== t);
208
- const u = a;
209
- r();
210
- } else if (h.value.length < A.value.length - 1 && A.value.length > 1) {
211
- let u = function() {
212
- o < 0.1 ? (cancelAnimationFrame(fe.value), h.value.push(t), d.value = d.value.map((r, y) => r.uid === t ? {
213
- ...r,
214
- values: [0]
215
- } : r), L.value = !1) : (L.value = !0, o /= 1.5, d.value = d.value.map((r, y) => r.uid === t ? {
216
- ...r,
217
- values: [o]
218
- } : r), fe.value = requestAnimationFrame(u));
219
- };
220
- u();
221
- }
222
- Te("selectLegend", G.value.map((u) => ({
223
- name: u.name,
224
- color: u.color,
225
- value: u.value,
226
- proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
227
- })));
228
- }
229
- const A = c(() => d.value.map((t, a) => ({
230
- name: t.name,
231
- color: t.color || de[a] || B[a] || B[a % B.length],
232
- value: (t.values || []).reduce((l, o) => l + o, 0),
233
- uid: t.uid,
234
- shape: "square"
235
- })).map((t, a) => ({
236
- ...t,
237
- proportion: t.value / d.value.map((l) => (l.values || []).reduce((o, u) => o + u, 0)).reduce((l, o) => l + o, 0),
238
- opacity: h.value.includes(t.uid) ? 0.5 : 1,
239
- segregate: () => ge(t.uid),
240
- isSegregated: h.value.includes(t.uid)
241
- }))), Be = c(() => ({
242
- cy: "waffle-div-legend",
243
- backgroundColor: e.value.style.chart.legend.backgroundColor,
244
- color: e.value.style.chart.legend.color,
245
- fontSize: e.value.style.chart.legend.fontSize,
246
- paddingBottom: 12,
247
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
248
- })), x = c(() => G.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ee = v(null);
249
- function Oe(t) {
250
- if (h.value.length === k.dataset.length) return;
251
- const a = i.value[t];
252
- ee.value = {
253
- datapoint: a,
254
- seriesIndex: a.absoluteIndex,
255
- series: d.value,
256
- config: e.value
257
- }, Q.value = !0, O.value = i.value[t].serieIndex;
258
- const l = e.value.style.chart.tooltip.customFormat;
259
- if (lt(l) && at(() => l({
260
- seriesIndex: i.value[t].absoluteIndex,
261
- datapoint: a,
262
- series: d.value,
263
- config: e.value
264
- })))
265
- Z.value = l({
266
- seriesIndex: i.value[t].absoluteIndex,
267
- datapoint: a,
268
- series: d.value,
269
- config: e.value
270
- });
271
- else {
272
- let o = "";
273
- o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${a.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: a.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.tooltip.roundingValue })}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? o += `<span>(${(a.value / x.value * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%)</span></div>` : o += `<b>${(a.value / x.value * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%</b></div>`), Z.value = o;
274
- }
275
- }
276
- const _ = c(() => {
277
- const t = G.value.map((l) => ({
278
- name: l.name,
279
- color: l.color
280
- })), a = G.value.map((l) => l.value);
281
- return { head: t, body: a };
282
- });
283
- function te(t) {
284
- return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== t ? `url(#blur_${S.value})` : "";
285
- }
286
- function me() {
287
- Ee(() => {
288
- const t = _.value.head.map((o, u) => [[
289
- o.name
290
- ], [_.value.body[u]], [isNaN(_.value.body[u] / x.value) ? "-" : _.value.body[u] / x.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ot(a);
291
- ut({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
292
- });
293
- }
294
- const J = c(() => {
295
- const t = [
296
- ' <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>',
297
- I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
298
- "100%"
299
- ], a = _.value.head.map((u, r) => [
300
- {
301
- color: u.color,
302
- name: u.name
303
- },
304
- I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: _.value.body[r], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
305
- isNaN(_.value.body[r] / x.value) ? "-" : (_.value.body[r] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
306
- ]), l = {
307
- th: {
308
- backgroundColor: e.value.table.th.backgroundColor,
309
- color: e.value.table.th.color,
310
- outline: e.value.table.th.outline
311
- },
312
- td: {
313
- backgroundColor: e.value.table.td.backgroundColor,
314
- color: e.value.table.td.color,
315
- outline: e.value.table.td.outline
316
- },
317
- shape: "square",
318
- breakpoint: e.value.table.responsiveBreakpoint
319
- }, o = [
320
- e.value.table.columnNames.series,
321
- e.value.table.columnNames.value,
322
- e.value.table.columnNames.percentage
323
- ];
324
- return {
325
- head: t,
326
- body: a,
327
- config: l,
328
- colNames: o
329
- };
330
- }), U = v(!1);
331
- function Ae(t) {
332
- U.value = t, ue.value += 1;
333
- }
334
- function be() {
335
- C.value.showTable = !C.value.showTable;
336
- }
337
- function we() {
338
- C.value.showTooltip = !C.value.showTooltip;
339
- }
340
- return $e({
341
- getData: Ne,
342
- generatePdf: ce,
343
- generateCsv: me,
344
- generateImage: ve,
345
- toggleTable: be,
346
- toggleTooltip: we
347
- }), (t, a) => (s(), n("div", {
348
- class: ke(`vue-ui-waffle ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
349
- ref_key: "waffleChart",
350
- ref: D,
351
- id: `vue-ui-waffle_${S.value}`,
352
- style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
353
- }, [
354
- e.value.style.chart.title.text ? (s(), n("div", {
355
- key: 0,
356
- ref_key: "chartTitle",
357
- ref: se,
358
- style: j(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
359
- }, [
360
- ae(nt, {
361
- config: {
362
- title: {
363
- cy: "waffle-title",
364
- ...e.value.style.chart.title
365
- },
366
- subtitle: {
367
- cy: "waffle-subtitle",
368
- ...e.value.style.chart.title.subtitle
369
- }
370
- }
371
- }, null, 8, ["config"])
372
- ], 4)) : b("", !0),
373
- e.value.userOptions.show && H.value ? (s(), K(ct, {
374
- ref_key: "details",
375
- ref: Se,
376
- key: `user_options_${ue.value}`,
377
- backgroundColor: e.value.style.chart.backgroundColor,
378
- color: e.value.style.chart.color,
379
- isPrinting: p(ne),
380
- isImaging: p(ie),
381
- uid: S.value,
382
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
383
- hasPdf: e.value.userOptions.buttons.pdf,
384
- hasImg: e.value.userOptions.buttons.img,
385
- hasXls: e.value.userOptions.buttons.csv,
386
- hasTable: e.value.userOptions.buttons.table,
387
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
388
- isFullscreen: U.value,
389
- isTooltip: C.value.showTooltip,
390
- titles: { ...e.value.userOptions.buttonTitles },
391
- chartElement: D.value,
392
- onToggleFullscreen: Ae,
393
- onGeneratePdf: p(ce),
394
- onGenerateCsv: me,
395
- onGenerateImage: p(ve),
396
- onToggleTable: be,
397
- onToggleTooltip: we
398
- }, De({ _: 2 }, [
399
- t.$slots.optionTooltip ? {
400
- name: "optionTooltip",
401
- fn: g(() => [
402
- m(t.$slots, "optionTooltip", {}, void 0, !0)
403
- ]),
404
- key: "0"
405
- } : void 0,
406
- t.$slots.optionPdf ? {
407
- name: "optionPdf",
408
- fn: g(() => [
409
- m(t.$slots, "optionPdf", {}, void 0, !0)
410
- ]),
411
- key: "1"
412
- } : void 0,
413
- t.$slots.optionCsv ? {
414
- name: "optionCsv",
415
- fn: g(() => [
416
- m(t.$slots, "optionCsv", {}, void 0, !0)
417
- ]),
418
- key: "2"
419
- } : void 0,
420
- t.$slots.optionImg ? {
421
- name: "optionImg",
422
- fn: g(() => [
423
- m(t.$slots, "optionImg", {}, void 0, !0)
424
- ]),
425
- key: "3"
426
- } : void 0,
427
- t.$slots.optionTable ? {
428
- name: "optionTable",
429
- fn: g(() => [
430
- m(t.$slots, "optionTable", {}, void 0, !0)
431
- ]),
432
- key: "4"
433
- } : void 0,
434
- t.$slots.optionFullscreen ? {
435
- name: "optionFullscreen",
436
- fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
437
- m(t.$slots, "optionFullscreen", W(q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
438
- ]),
439
- key: "5"
440
- } : void 0
441
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
442
- H.value ? (s(), n("svg", {
443
- key: 2,
444
- xmlns: p(Ke),
445
- class: ke({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
446
- viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
447
- style: j(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
448
- }, [
449
- w("defs", null, [
450
- (s(!0), n($, null, V(i.value, (l, o) => (s(), n("radialGradient", {
451
- cx: "50%",
452
- cy: "50%",
453
- r: "50%",
454
- fx: "50%",
455
- fy: "50%",
456
- id: `gradient_${S.value}_${o}`
457
- }, [
458
- w("stop", {
459
- offset: "0%",
460
- "stop-color": `${p(Qe)(l.color, 0.05)}${p(Ze)[100 - e.value.style.chart.layout.rect.gradientIntensity]}`
461
- }, null, 8, wt),
462
- w("stop", {
463
- offset: "100%",
464
- "stop-color": l.color
465
- }, null, 8, kt)
466
- ], 8, bt))), 256))
467
- ]),
468
- w("defs", null, [
469
- w("filter", {
470
- id: `blur_${S.value}`,
471
- x: "-50%",
472
- y: "-50%",
473
- width: "200%",
474
- height: "200%"
475
- }, $t, 8, xt)
476
- ]),
477
- e.value.useCustomCells ? (s(!0), n($, { key: 0 }, V(R.value, (l, o) => (s(), n("foreignObject", {
478
- x: l.x,
479
- y: l.y,
480
- height: N.value <= 0 ? 1e-4 : N.value,
481
- width: z.value <= 0 ? 1e-4 : z.value,
482
- class: "vue-ui-waffle-custom-cell-foreignObject"
483
- }, [
484
- m(t.$slots, "cell", W(q({ cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(O.value) ? !0 : i.value[o].serieIndex === O.value })), void 0, !0)
485
- ], 8, Tt))), 256)) : (s(), n($, { key: 1 }, [
486
- (s(!0), n($, null, V(R.value, (l, o) => (s(), n("rect", {
487
- rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
488
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
489
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
490
- height: N.value <= 0 ? 1e-4 : N.value,
491
- width: z.value <= 0 ? 1e-4 : z.value,
492
- fill: "white",
493
- stroke: e.value.style.chart.layout.rect.stroke,
494
- "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
495
- filter: te(i.value[o].serieIndex)
496
- }, null, 8, It))), 256)),
497
- (s(!0), n($, null, V(R.value, (l, o) => (s(), n("rect", {
498
- rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
499
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
500
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
501
- height: N.value <= 0 ? 1e-4 : N.value,
502
- width: z.value <= 0 ? 1e-4 : z.value,
503
- fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${S.value}_${o})` : i.value[o].color,
504
- stroke: e.value.style.chart.layout.rect.stroke,
505
- "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
506
- filter: te(i.value[o].serieIndex)
507
- }, null, 8, St))), 256))
508
- ], 64)),
509
- (s(!0), n($, null, V(R.value, (l, o) => (s(), n($, null, [
510
- !L.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), n("foreignObject", {
511
- key: 0,
512
- x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
513
- y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
514
- height: Y.value <= 0 ? 1e-4 : Y.value,
515
- width: E.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : E.value * e.value.style.chart.layout.grid.size,
516
- filter: te(i.value[o].serieIndex)
517
- }, [
518
- w("div", {
519
- class: "vue-ui-waffle-caption",
520
- style: j(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${E.value / 12}px;color:${p(et)(i.value[o].color)};gap:2px`)
521
- }, [
522
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), n("span", Ft, T(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? p(tt)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : b("", !0),
523
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), n("span", zt, T(p(I)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : b("", !0),
524
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", Nt, " (" + T(p(I)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: i.value[o].value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.layout.labels.captions.roundingValue })) + ") ", 1)) : b("", !0),
525
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", Lt, T(p(I)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: i.value[o].value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.layout.labels.captions.roundingValue })), 1)) : b("", !0)
526
- ], 4)
527
- ], 8, Pt)) : b("", !0)
528
- ], 64))), 256)),
529
- (s(!0), n($, null, V(R.value, (l, o) => (s(), n("rect", {
530
- onMouseover: (u) => Oe(o),
531
- onMouseleave: a[0] || (a[0] = (u) => {
532
- Q.value = !1, O.value = null;
533
- }),
534
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
535
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
536
- height: Y.value <= 0 ? 1e-4 : Y.value,
537
- width: E.value <= 0 ? 1e-4 : E.value,
538
- fill: "transparent",
539
- stroke: "none"
540
- }, null, 40, Bt))), 256)),
541
- m(t.$slots, "svg", { svg: P.value }, void 0, !0)
542
- ], 14, mt)) : b("", !0),
543
- t.$slots.watermark ? (s(), n("div", Ot, [
544
- m(t.$slots, "watermark", W(q({ isPrinting: p(ne) || p(ie) })), void 0, !0)
545
- ])) : b("", !0),
546
- H.value ? b("", !0) : (s(), K(yt, {
547
- key: 4,
548
- config: {
549
- type: "waffle",
550
- style: {
551
- backgroundColor: e.value.style.chart.backgroundColor,
552
- waffle: {
553
- color: "#CCCCCC"
554
- }
555
- }
556
- }
557
- }, null, 8, ["config"])),
558
- w("div", {
559
- ref_key: "chartLegend",
560
- ref: re
561
- }, [
562
- e.value.style.chart.legend.show ? (s(), K(ht, {
563
- key: 0,
564
- legendSet: A.value,
565
- config: Be.value,
566
- onClickMarker: a[1] || (a[1] = ({ legend: l }) => ge(l.uid))
567
- }, {
568
- item: g(({ legend: l }) => [
569
- w("div", {
570
- onClick: (o) => l.segregate(),
571
- style: j(`opacity:${h.value.includes(l.uid) ? 0.5 : 1}`)
572
- }, [
573
- xe(T(l.name) + ": " + T(p(I)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: l.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.legend.roundingValue, isAnimating: L.value })) + " ", 1),
574
- h.value.includes(l.uid) ? (s(), n("span", Mt, " ( - % ) ")) : (s(), n("span", Vt, " (" + T(isNaN(l.value / x.value) ? "-" : p(I)({ v: l.value / x.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: L.value })) + ") ", 1))
575
- ], 12, At)
576
- ]),
577
- _: 1
578
- }, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
579
- key: 1,
580
- legend: A.value
581
- }, void 0, !0)
582
- ], 512),
583
- ae(vt, {
584
- show: C.value.showTooltip && Q.value && h.value.length < k.dataset.length,
585
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
586
- color: e.value.style.chart.tooltip.color,
587
- borderRadius: e.value.style.chart.tooltip.borderRadius,
588
- borderColor: e.value.style.chart.tooltip.borderColor,
589
- borderWidth: e.value.style.chart.tooltip.borderWidth,
590
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
591
- position: e.value.style.chart.tooltip.position,
592
- offsetY: e.value.style.chart.tooltip.offsetY,
593
- parent: D.value,
594
- content: Z.value,
595
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
596
- fontSize: e.value.style.chart.tooltip.fontSize
597
- }, {
598
- "tooltip-before": g(() => [
599
- m(t.$slots, "tooltip-before", W(q({ ...ee.value })), void 0, !0)
600
- ]),
601
- "tooltip-after": g(() => [
602
- m(t.$slots, "tooltip-after", W(q({ ...ee.value })), void 0, !0)
603
- ]),
604
- _: 3
605
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
606
- H.value ? (s(), K(pt, {
607
- key: 5,
608
- hideDetails: "",
609
- config: {
610
- open: C.value.showTable,
611
- maxHeight: 1e4,
612
- body: {
613
- backgroundColor: e.value.style.chart.backgroundColor,
614
- color: e.value.style.chart.color
615
- },
616
- head: {
617
- backgroundColor: e.value.style.chart.backgroundColor,
618
- color: e.value.style.chart.color
619
- }
620
- }
621
- }, {
622
- content: g(() => [
623
- ae(dt, {
624
- colNames: J.value.colNames,
625
- head: J.value.head,
626
- body: J.value.body,
627
- config: J.value.config,
628
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
629
- onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
630
- }, {
631
- th: g(({ th: l }) => [
632
- w("div", {
633
- innerHTML: l,
634
- style: { display: "flex", "align-items": "center" }
635
- }, null, 8, Dt)
636
- ]),
637
- td: g(({ td: l }) => [
638
- xe(T(l.name || l), 1)
639
- ]),
640
- _: 1
641
- }, 8, ["colNames", "head", "body", "config", "title"])
642
- ]),
643
- _: 1
644
- }, 8, ["config"])) : b("", !0)
645
- ], 14, gt));
646
- }
647
- }, Zt = /* @__PURE__ */ ft(Et, [["__scopeId", "data-v-33939b0e"]]);
648
- export {
649
- Zt as default
650
- };