vue-data-ui 2.3.76 → 2.3.78

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 (161) hide show
  1. package/dist/{Arrow-DY9RKUmG.js → Arrow-BCYtOwX7.js} +1 -1
  2. package/dist/{Arrow-D7M4-bW7.cjs → Arrow-DWkvIpW8.cjs} +1 -1
  3. package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-BIQXWVMS.js} +1 -1
  4. package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-Bcpzfk34.cjs} +1 -1
  5. package/dist/{DataTable-CsNozyz7.cjs → DataTable-C5TOiC61.cjs} +1 -1
  6. package/dist/{DataTable-e2fnfjXV.js → DataTable-y1lX5jVj.js} +2 -2
  7. package/dist/{Legend-5cQ0xZjK.js → Legend-BLXcdrri.js} +1 -1
  8. package/dist/{Legend-DgFd-O0m.cjs → Legend-CGGD8NhP.cjs} +1 -1
  9. package/dist/{Shape-CiTElr_0.js → Shape-CsoTtJx6.js} +1 -1
  10. package/dist/{Shape-yPECDLiP.cjs → Shape-qJYTY2BC.cjs} +1 -1
  11. package/dist/{Slicer-DaZgCKV7.cjs → Slicer-CZJXKSeE.cjs} +1 -1
  12. package/dist/{Slicer-DwBBu3kB.js → Slicer-DzJZ4axa.js} +12 -12
  13. package/dist/{Title-3EduyW4p.cjs → Title-BSpa3uge.cjs} +1 -1
  14. package/dist/{Title-gUz6GDA3.js → Title-Bx-VO3md.js} +1 -1
  15. package/dist/{Tooltip-DfSM1mNP.js → Tooltip-Dk-cimhQ.js} +23 -23
  16. package/dist/Tooltip-rmhZhv96.cjs +1 -0
  17. package/dist/index-CzjC8LfY.cjs +4 -0
  18. package/dist/{index-CaV1s-yZ.js → index-DP8dqFNd.js} +1147 -1145
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-B-oZxD4x.js} +1 -1
  21. package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CY7DebVH.cjs} +1 -1
  22. package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter-DiLM6jav.cjs} +1 -1
  23. package/dist/{usePrinter-rvJyT65A.js → usePrinter-DiuHo4LO.js} +1 -1
  24. package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-Ce5IFSYA.cjs} +1 -1
  25. package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Ct7n5wkM.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/vue-ui-3d-bar-B_i2EoFu.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-O3fB5J7V.js} +342 -342
  30. package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-Dl8zkZPk.js} +3 -3
  31. package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-DpI7fTKZ.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-BeiREI6d.js} +22 -22
  33. package/dist/vue-ui-age-pyramid-BsAfxkN4.cjs +1 -0
  34. package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-0yje27Qq.js} +39 -39
  35. package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-DpN-6IwB.cjs} +2 -2
  36. package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-D9UteVvx.js} +34 -34
  37. package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-lv78wnpS.cjs} +2 -2
  38. package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-Br6FwMKM.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-jxZ3h5pq.js} +31 -31
  40. package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DXuHRJy4.js} +291 -288
  41. package/dist/vue-ui-chestnut-DbYHeNaL.cjs +6 -0
  42. package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BzPbdVRJ.js} +20 -20
  43. package/dist/vue-ui-cursor-iss6SJ1Y.cjs +1 -0
  44. package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-CGjWuFrI.js} +2 -2
  45. package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DKT82yQ4.cjs} +1 -1
  46. package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-BCguvLxB.js} +2 -2
  47. package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-BfwDCfYp.cjs} +1 -1
  48. package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-DJTeGLVG.js} +209 -212
  49. package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-BaLDZNDG.js} +106 -106
  50. package/dist/vue-ui-donut-evolution-Bil1AIhX.cjs +1 -0
  51. package/dist/vue-ui-donut-uVPdO4UH.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-BqtDdV5w.js} +17 -17
  53. package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-DiL3xhKY.cjs} +1 -1
  54. package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-BVTbbsCK.cjs} +1 -1
  55. package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-zfTGon4s.js} +28 -28
  56. package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-5iRb5sQ-.js} +22 -22
  57. package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-GSO_6KIe.cjs} +1 -1
  58. package/dist/vue-ui-gauge-Bz7oLa51.cjs +1 -0
  59. package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-DljHYdCS.js} +101 -110
  60. package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-B-fxFOZy.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-KL0OJY2K.cjs} +1 -1
  62. package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-ketn_NV3.js} +17 -17
  63. package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-thMJPCfo.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-Bxu8uZ21.js} +3 -3
  65. package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-e1QWa8D4.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-BZ_2aV8O.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-paRZQU8H.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-Bpp5unvI.js} +33 -33
  69. package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-VOBL4Osc.cjs} +1 -1
  70. package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-BY8XP_Q5.js} +129 -132
  71. package/dist/vue-ui-mood-radar-CwtMLwP8.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-5uuLi3If.js} +98 -98
  73. package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-CLnVnAiD.cjs} +2 -2
  74. package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-CMSPSSSG.cjs} +1 -1
  75. package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-zDy4ecPl.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-1PFxiI__.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-BeEkL7Dq.js} +24 -24
  78. package/dist/vue-ui-quadrant-Cx5z_c90.cjs +1 -0
  79. package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-MCIlbbsW.js} +35 -35
  80. package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-Xn-47NQG.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-r6Qa7qg_.js} +69 -69
  82. package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-ANQ1wXFc.cjs} +1 -1
  83. package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-DFV5cFkl.js} +39 -39
  84. package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-BVzCbQbv.cjs} +1 -1
  85. package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-DYu1EuJF.js} +6 -6
  86. package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-BAcmDQB_.js} +29 -29
  87. package/dist/vue-ui-relation-circle-DEM6C6Or.cjs +1 -0
  88. package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-BiLlYpgu.js} +31 -31
  89. package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Ce4G4hat.cjs} +2 -2
  90. package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-D2ndYfkQ.js} +95 -95
  91. package/dist/vue-ui-scatter-OtlcTCUF.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-CKCNPn-e.js} +4 -4
  93. package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DTQx4VsM.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-B30ZhUV7.js} +96 -96
  95. package/dist/vue-ui-skeleton-CwqzJlQf.cjs +41 -0
  96. package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DzLvZR1k.js} +2 -2
  97. package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-L6o24M6h.cjs} +1 -1
  98. package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-BKsmENbH.js} +21 -21
  99. package/dist/vue-ui-spark-trend-BoWeviHk.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-DNzZkp8z.js} +10 -10
  101. package/dist/vue-ui-sparkbar-DY3iOLo4.cjs +1 -0
  102. package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-B2DngjVP.js} +8 -8
  103. package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-BlZ-lJm4.cjs} +1 -1
  104. package/dist/vue-ui-sparkhistogram-BUBewgdH.cjs +1 -0
  105. package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-Co9N3BeQ.js} +111 -101
  106. package/dist/vue-ui-sparkline-BhL0mxXD.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-Dpqo4aRJ.js} +34 -34
  108. package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-DtNbx3EV.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-_JwfRxF8.js} +5 -5
  110. package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BtN7ZM7-.js} +202 -200
  111. package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-C7AWHP6m.cjs} +2 -2
  112. package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-6L9a7BSw.js} +26 -26
  113. package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-cgOFTunJ.cjs} +1 -1
  114. package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-4Pf9tmFg.cjs} +1 -1
  115. package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BFYHRMCS.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap--kPCu8mA.js} +24 -24
  117. package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-CltKb2V9.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-B5OjJud8.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-CsWx1Ksy.js} +26 -26
  120. package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-62_4QovL.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-nTD7sp8r.js} +40 -40
  122. package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-BU0s7Vt9.cjs} +1 -1
  123. package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-DMFHjnzA.js} +8 -8
  124. package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-1X9B1VKM.js} +18 -18
  125. package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-mwBeBMJY.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-CVTwqPFA.js} +29 -29
  127. package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DQmBbm7e.cjs} +1 -1
  128. package/dist/vue-ui-vertical-bar-BXiy8KRC.cjs +4 -0
  129. package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-Br6Z0A3F.js} +14 -14
  130. package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CLCsHw9j.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-DEXMh07q.js} +84 -84
  132. package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-CwjuVi6U.js} +24 -24
  133. package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-DSFKKX65.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-BKeD3fHb.js} +19 -19
  135. package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-DZS4hCeR.cjs} +1 -1
  136. package/dist/vue-ui-xy-B5aCogSL.cjs +3 -0
  137. package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-DA3qqL8u.js} +351 -350
  138. package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-B7DH4RK5.js} +18 -18
  139. package/dist/vue-ui-xy-canvas-heCdqh5X.cjs +9 -0
  140. package/package.json +1 -1
  141. package/dist/Tooltip-DScSrYXJ.cjs +0 -1
  142. package/dist/index-BTgtr0F8.cjs +0 -4
  143. package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
  145. package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
  146. package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
  148. package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
  149. package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
  150. package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
  151. package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
  152. package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
  153. package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
  154. package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
  155. package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
  156. package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
  157. package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
  158. package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
  159. package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
  160. package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
  161. package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
@@ -1,16 +1,16 @@
1
- import { computed as d, ref as c, watch as Te, onMounted as je, onBeforeUnmount as We, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as q, createBlock as V, createCommentVNode as f, unref as h, createSlots as qe, withCtx as b, renderSlot as w, normalizeProps as H, guardReactiveProps as X, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Le, createVNode as He, nextTick as Xe, pushScopeId as Ye, popScopeId as Je } from "vue";
2
- import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, v as ut, w as st, E as rt, H as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-CaV1s-yZ.js";
3
- import { t as yt, u as pt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as ft } from "./Title-gUz6GDA3.js";
5
- import { u as gt, U as mt } from "./usePrinter-rvJyT65A.js";
6
- import { _ as bt } from "./Tooltip-DfSM1mNP.js";
7
- import { D as wt } from "./DataTable-e2fnfjXV.js";
8
- import { L as kt } from "./Legend-5cQ0xZjK.js";
9
- import xt from "./vue-ui-skeleton-CvFX_ExX.js";
10
- import Ct from "./vue-ui-accordion-CpzGQ63y.js";
11
- import { u as Pe } from "./useNestedProp-tWCzZrLx.js";
1
+ import { computed as d, ref as c, watch as Te, onMounted as Ee, onBeforeUnmount as We, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as q, createBlock as V, createCommentVNode as p, unref as h, createSlots as qe, withCtx as b, renderSlot as w, normalizeProps as H, guardReactiveProps as X, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Le, createVNode as He, nextTick as Xe, pushScopeId as Ye, popScopeId as Je } from "vue";
2
+ import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, I as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-DP8dqFNd.js";
3
+ import { t as yt, u as ft } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as pt } from "./Title-Bx-VO3md.js";
5
+ import { u as gt, U as mt } from "./usePrinter-DiuHo4LO.js";
6
+ import { _ as bt } from "./Tooltip-Dk-cimhQ.js";
7
+ import { D as wt } from "./DataTable-y1lX5jVj.js";
8
+ import { L as kt } from "./Legend-BLXcdrri.js";
9
+ import xt from "./vue-ui-skeleton-B30ZhUV7.js";
10
+ import Ct from "./vue-ui-accordion-Dl8zkZPk.js";
11
+ import { u as Pe } from "./useNestedProp-B-oZxD4x.js";
12
12
  import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = ["xmlns", "viewBox"], Tt = ["id"], St = ["stop-color"], Lt = ["stop-color"], Pt = ["id"], zt = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feGaussianBlur", {
13
+ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = ["xmlns", "viewBox"], Tt = ["id"], St = ["stop-color"], Lt = ["stop-color"], Pt = ["id"], zt = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feGaussianBlur", {
14
14
  in: "SourceGraphic",
15
15
  stdDeviation: 2
16
16
  }, null, -1)), Ft = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feColorMatrix", {
@@ -19,7 +19,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
19
19
  }, null, -1)), Nt = [
20
20
  zt,
21
21
  Ft
22
- ], Bt = ["x", "y", "height", "width"], Ot = ["height", "width"], At = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Vt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Mt = ["x", "y", "height", "width", "filter"], Dt = { key: 0 }, Et = { key: 1 }, Gt = { key: 2 }, Rt = { key: 3 }, Ut = ["onMouseover", "x", "y", "height", "width"], jt = {
22
+ ], Bt = ["x", "y", "height", "width"], Ot = ["height", "width"], At = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Vt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Mt = ["x", "y", "height", "width", "filter"], Dt = { key: 0 }, Gt = { key: 1 }, Rt = { key: 2 }, Ut = { key: 3 }, jt = ["onMouseover", "x", "y", "height", "width"], Et = {
23
23
  key: 3,
24
24
  class: "vue-data-ui-watermark"
25
25
  }, Wt = ["onClick"], qt = { key: 0 }, Ht = { key: 1 }, Xt = ["innerHTML"], Yt = {
@@ -39,8 +39,8 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
39
39
  }
40
40
  },
41
41
  emits: ["selectLegend"],
42
- setup(E, { expose: Fe, emit: Ne }) {
43
- const g = E, { vue_ui_waffle: Be } = Ke(), Y = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Oe = c(null), Z = c(!1), ee = c(""), O = c(null), ue = c(0), G = c(null), se = c(null), re = c(null), ne = c(0), ie = c(0), ce = c(0), e = d({
42
+ setup(G, { expose: Fe, emit: Ne }) {
43
+ const g = G, { vue_ui_waffle: Be } = Ke(), Y = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Oe = c(null), Z = c(!1), ee = c(""), O = c(null), ue = c(0), R = c(null), se = c(null), re = c(null), ne = c(0), ie = c(0), ce = c(0), e = d({
44
44
  get: () => ve(),
45
45
  set: (t) => t
46
46
  });
@@ -79,22 +79,22 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
79
79
  });
80
80
  }), e.value.responsive) {
81
81
  const t = yt(() => {
82
- const { width: o, height: l } = pt({
83
- chart: G.value,
82
+ const { width: o, height: l } = ft({
83
+ chart: R.value,
84
84
  title: e.value.style.chart.title.text ? se.value : null,
85
85
  legend: e.value.style.chart.legend.show ? re.value : null
86
86
  });
87
87
  P.value.width = o, P.value.height = l, C.value.width = o, C.value.height = l;
88
88
  });
89
- J.value = new ResizeObserver(t), J.value.observe(G.value.parentNode);
89
+ J.value = new ResizeObserver(t), J.value.observe(R.value.parentNode);
90
90
  }
91
91
  }
92
- je(() => {
92
+ Ee(() => {
93
93
  de();
94
94
  }), We(() => {
95
95
  J.value && J.value.disconnect();
96
96
  });
97
- const { isPrinting: he, isImaging: ye, generatePdf: pe, generateImage: fe } = gt({
97
+ const { isPrinting: he, isImaging: ye, generatePdf: fe, generateImage: pe } = gt({
98
98
  elementId: `vue-ui-waffle_${L.value}`,
99
99
  fileName: e.value.style.chart.title.text || "vue-ui-waffle"
100
100
  }), ge = d(() => at(e.value.customPalette)), I = c({
@@ -108,13 +108,13 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
108
108
  left: 0,
109
109
  height: 512,
110
110
  width: 512
111
- }), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), R = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
111
+ }), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), U = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
112
112
  function me(t) {
113
113
  const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((m, ae) => m + ae, 0), a = t.map((m) => m / l * o), u = a.map(Math.floor), n = a.map((m) => m % 1);
114
- let p = o - u.reduce((m, ae) => m + ae, 0);
115
- for (; p > 0; ) {
114
+ let f = o - u.reduce((m, ae) => m + ae, 0);
115
+ for (; f > 0; ) {
116
116
  let m = n.indexOf(Math.max(...n));
117
- u[m] += 1, n[m] = 0, p -= 1;
117
+ u[m] += 1, n[m] = 0, f -= 1;
118
118
  }
119
119
  return u;
120
120
  }
@@ -136,7 +136,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
136
136
  }), Ve = d(() => {
137
137
  const t = v.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
138
138
  return me(t);
139
- }), U = d(() => (g.dataset.forEach((t, o) => {
139
+ }), j = d(() => (g.dataset.forEach((t, o) => {
140
140
  [null, void 0].includes(t.values) && oe({
141
141
  componentName: "VueUiWaffle",
142
142
  type: "datasetSerieAttribute",
@@ -168,19 +168,19 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
168
168
  proportion: t.proportion
169
169
  }));
170
170
  }
171
- const Ee = d(() => {
171
+ const Ge = d(() => {
172
172
  let t = 0;
173
- return U.value.map((o, l) => {
173
+ return j.value.map((o, l) => {
174
174
  const a = t, u = a + o.proportion, n = [];
175
- for (let p = Math.floor(a); p < Math.floor(u); p += 1)
176
- n.push(p);
175
+ for (let f = Math.floor(a); f < Math.floor(u); f += 1)
176
+ n.push(f);
177
177
  return t = u, {
178
178
  ...o,
179
179
  start: a,
180
180
  rects: n
181
181
  };
182
182
  });
183
- }), r = d(() => Ee.value.flatMap((t, o) => t.rects.map((l, a) => ({
183
+ }), r = d(() => Ge.value.flatMap((t, o) => t.rects.map((l, a) => ({
184
184
  isFirst: a === 0,
185
185
  isLongEnough: l.length > 2,
186
186
  name: t.name,
@@ -193,7 +193,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
193
193
  }))).map((t, o) => ({
194
194
  ...t,
195
195
  isAbsoluteFirst: o % e.value.style.chart.layout.grid.size === 0
196
- }))), j = d(() => {
196
+ }))), E = d(() => {
197
197
  const t = [];
198
198
  for (let o = 0; o < e.value.style.chart.layout.grid.size; o += 1)
199
199
  for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
@@ -214,30 +214,30 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
214
214
  let a = v.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
215
215
  if (y.value.includes(t)) {
216
216
  let n = function() {
217
- a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((p, m) => p.uid === t ? {
218
- ...p,
217
+ a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((f, m) => f.uid === t ? {
218
+ ...f,
219
219
  values: [u]
220
- } : p), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((p, m) => p.uid === t ? {
221
- ...p,
220
+ } : f), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((f, m) => f.uid === t ? {
221
+ ...f,
222
222
  values: [a]
223
- } : p), ke.value = requestAnimationFrame(n));
223
+ } : f), ke.value = requestAnimationFrame(n));
224
224
  };
225
- y.value = y.value.filter((p) => p !== t);
225
+ y.value = y.value.filter((f) => f !== t);
226
226
  const u = o;
227
227
  n();
228
228
  } else if (y.value.length < A.value.length - 1 && A.value.length > 1) {
229
229
  let u = function() {
230
- a < 0.1 ? (cancelAnimationFrame(xe.value), y.value.push(t), v.value = v.value.map((n, p) => n.uid === t ? {
230
+ a < 0.1 ? (cancelAnimationFrame(xe.value), y.value.push(t), v.value = v.value.map((n, f) => n.uid === t ? {
231
231
  ...n,
232
232
  values: [0]
233
- } : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, p) => n.uid === t ? {
233
+ } : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, f) => n.uid === t ? {
234
234
  ...n,
235
235
  values: [a]
236
236
  } : n), xe.value = requestAnimationFrame(u));
237
237
  };
238
238
  u();
239
239
  }
240
- Ne("selectLegend", U.value.map((u) => ({
240
+ Ne("selectLegend", j.value.map((u) => ({
241
241
  name: u.name,
242
242
  color: u.color,
243
243
  value: u.value,
@@ -256,15 +256,15 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
256
256
  opacity: y.value.includes(t.uid) ? 0.5 : 1,
257
257
  segregate: () => Ce(t.uid),
258
258
  isSegregated: y.value.includes(t.uid)
259
- }))), Ge = d(() => ({
259
+ }))), Re = d(() => ({
260
260
  cy: "waffle-div-legend",
261
261
  backgroundColor: e.value.style.chart.legend.backgroundColor,
262
262
  color: e.value.style.chart.legend.color,
263
263
  fontSize: e.value.style.chart.legend.fontSize,
264
264
  paddingBottom: 12,
265
265
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
266
- })), _ = d(() => U.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
267
- function Re(t) {
266
+ })), _ = d(() => j.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
267
+ function Ue(t) {
268
268
  if (y.value.length === g.dataset.length) return;
269
269
  const o = r.value[t];
270
270
  te.value = {
@@ -314,10 +314,10 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
314
314
  }
315
315
  }
316
316
  const $ = d(() => {
317
- const t = U.value.map((l) => ({
317
+ const t = j.value.map((l) => ({
318
318
  name: l.name,
319
319
  color: l.color
320
- })), o = U.value.map((l) => l.value);
320
+ })), o = j.value.map((l) => l.value);
321
321
  return { head: t, body: o };
322
322
  });
323
323
  function le(t) {
@@ -390,7 +390,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
390
390
  colNames: a
391
391
  };
392
392
  }), W = c(!1);
393
- function Ue(t) {
393
+ function je(t) {
394
394
  W.value = t, ue.value += 1;
395
395
  }
396
396
  function $e() {
@@ -401,15 +401,15 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
401
401
  }
402
402
  return Fe({
403
403
  getData: De,
404
- generatePdf: pe,
404
+ generatePdf: fe,
405
405
  generateCsv: _e,
406
- generateImage: fe,
406
+ generateImage: pe,
407
407
  toggleTable: $e,
408
408
  toggleTooltip: Ie
409
409
  }), (t, o) => (s(), i("div", {
410
410
  class: Se(`vue-ui-waffle ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
411
411
  ref_key: "waffleChart",
412
- ref: G,
412
+ ref: R,
413
413
  id: `vue-ui-waffle_${L.value}`,
414
414
  style: q(`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%" : ""}`)
415
415
  }, [
@@ -419,7 +419,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
419
419
  ref: se,
420
420
  style: q(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
421
421
  }, [
422
- (s(), V(ft, {
422
+ (s(), V(pt, {
423
423
  key: `title_${ne.value}`,
424
424
  config: {
425
425
  title: {
@@ -432,7 +432,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
432
432
  }
433
433
  }
434
434
  }, null, 8, ["config"]))
435
- ], 4)) : f("", !0),
435
+ ], 4)) : p("", !0),
436
436
  e.value.userOptions.show && Y.value ? (s(), V(mt, {
437
437
  ref_key: "details",
438
438
  ref: Oe,
@@ -451,11 +451,11 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
451
451
  isFullscreen: W.value,
452
452
  isTooltip: I.value.showTooltip,
453
453
  titles: { ...e.value.userOptions.buttonTitles },
454
- chartElement: G.value,
455
- onToggleFullscreen: Ue,
456
- onGeneratePdf: h(pe),
454
+ chartElement: R.value,
455
+ onToggleFullscreen: je,
456
+ onGeneratePdf: h(fe),
457
457
  onGenerateCsv: _e,
458
- onGenerateImage: h(fe),
458
+ onGenerateImage: h(pe),
459
459
  onToggleTable: $e,
460
460
  onToggleTooltip: Ie
461
461
  }, qe({ _: 2 }, [
@@ -501,7 +501,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
501
501
  ]),
502
502
  key: "5"
503
503
  } : void 0
504
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
504
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
505
505
  Y.value ? (s(), i("svg", {
506
506
  key: 2,
507
507
  xmlns: h(ot),
@@ -520,7 +520,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
520
520
  }, [
521
521
  k("stop", {
522
522
  offset: "0%",
523
- "stop-color": `${h(ut)(l.color, 0.05)}${h(st)[100 - e.value.style.chart.layout.rect.gradientIntensity]}`
523
+ "stop-color": h(ut)(h(st)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
524
524
  }, null, 8, St),
525
525
  k("stop", {
526
526
  offset: "100%",
@@ -537,7 +537,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
537
537
  height: "200%"
538
538
  }, Nt, 8, Pt)
539
539
  ]),
540
- e.value.useCustomCells && r.value.length ? (s(!0), i(T, { key: 0 }, M(j.value, (l, a) => (s(), i("foreignObject", {
540
+ e.value.useCustomCells && r.value.length ? (s(!0), i(T, { key: 0 }, M(E.value, (l, a) => (s(), i("foreignObject", {
541
541
  x: l.x,
542
542
  y: l.y,
543
543
  height: F.value <= 0 ? 1e-4 : F.value,
@@ -545,7 +545,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
545
545
  class: "vue-ui-waffle-custom-cell-foreignObject"
546
546
  }, [
547
547
  w(t.$slots, "cell", H(X({ cell: { ...l, color: r.value[a].color, ...r.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : r.value[a].serieIndex === O.value })), void 0, !0)
548
- ], 8, Bt))), 256)) : f("", !0),
548
+ ], 8, Bt))), 256)) : p("", !0),
549
549
  !r.value.length && !e.value.useCustomCells ? (s(), i("rect", {
550
550
  key: 1,
551
551
  x: 12,
@@ -556,7 +556,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
556
556
  fill: "none",
557
557
  stroke: "black"
558
558
  }, null, 8, Ot)) : r.value.length && !e.value.useCustomCells ? (s(), i(T, { key: 2 }, [
559
- (s(!0), i(T, null, M(j.value, (l, a) => (s(), i("rect", {
559
+ (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
560
560
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
561
561
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
562
562
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -567,7 +567,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
567
567
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
568
568
  filter: le(r.value[a].serieIndex)
569
569
  }, null, 8, At))), 256)),
570
- (s(!0), i(T, null, M(j.value, (l, a) => (s(), i("rect", {
570
+ (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
571
571
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
572
572
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
573
573
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -578,23 +578,23 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
578
578
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
579
579
  filter: le(r.value[a].serieIndex)
580
580
  }, null, 8, Vt))), 256))
581
- ], 64)) : f("", !0),
582
- (s(!0), i(T, null, M(j.value, (l, a) => (s(), i(T, null, [
581
+ ], 64)) : p("", !0),
582
+ (s(!0), i(T, null, M(E.value, (l, a) => (s(), i(T, null, [
583
583
  r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (r.value[a].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[a].isAbsoluteFirst && a % e.value.style.chart.layout.grid.size === 0 && r.value[a].absoluteStartIndex) ? (s(), i("foreignObject", {
584
584
  key: 0,
585
585
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
586
586
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
587
587
  height: K.value <= 0 ? 1e-4 : K.value,
588
- width: R.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : R.value * e.value.style.chart.layout.grid.size,
588
+ width: U.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : U.value * e.value.style.chart.layout.grid.size,
589
589
  filter: le(r.value[a].serieIndex)
590
590
  }, [
591
591
  k("div", {
592
592
  class: "vue-ui-waffle-caption",
593
- style: q(`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 ${R.value / 12}px;color:${h(rt)(r.value[a].color)};gap:2px`)
593
+ style: q(`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 ${U.value / 12}px;color:${h(rt)(r.value[a].color)};gap:2px`)
594
594
  }, [
595
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Dt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(nt)({ source: r.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[a].name) + ": ", 1)) : f("", !0),
596
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Et, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
597
- e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Gt, " (" + S(h(D)(
595
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Dt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(nt)({ source: r.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[a].name) + ": ", 1)) : p("", !0),
596
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Gt, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : p("", !0),
597
+ e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Rt, " (" + S(h(D)(
598
598
  e.value.style.chart.layout.labels.dataLabels.formatter,
599
599
  r.value[a].value,
600
600
  h(x)({
@@ -604,8 +604,8 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
604
604
  r: e.value.style.chart.layout.labels.captions.roundingValue
605
605
  }),
606
606
  { datapoint: r.value[a], position: l }
607
- )) + ") ", 1)) : f("", !0),
608
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Rt, S(h(D)(
607
+ )) + ") ", 1)) : p("", !0),
608
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Ut, S(h(D)(
609
609
  e.value.style.chart.layout.labels.dataLabels.formatter,
610
610
  r.value[a].value,
611
611
  h(x)({
@@ -615,28 +615,28 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
615
615
  r: e.value.style.chart.layout.labels.captions.roundingValue
616
616
  }),
617
617
  { datapoint: r.value[a], position: l }
618
- )), 1)) : f("", !0)
618
+ )), 1)) : p("", !0)
619
619
  ], 4)
620
- ], 8, Mt)) : f("", !0)
620
+ ], 8, Mt)) : p("", !0)
621
621
  ], 64))), 256)),
622
- (s(!0), i(T, null, M(j.value, (l, a) => (s(), i("rect", {
623
- onMouseover: (u) => Re(a),
622
+ (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
623
+ onMouseover: (u) => Ue(a),
624
624
  onMouseleave: o[0] || (o[0] = (u) => {
625
625
  Z.value = !1, O.value = null;
626
626
  }),
627
627
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
628
628
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
629
629
  height: K.value <= 0 ? 1e-4 : K.value,
630
- width: R.value <= 0 ? 1e-4 : R.value,
630
+ width: U.value <= 0 ? 1e-4 : U.value,
631
631
  fill: "transparent",
632
632
  stroke: "none"
633
- }, null, 40, Ut))), 256)),
633
+ }, null, 40, jt))), 256)),
634
634
  w(t.$slots, "svg", { svg: P.value }, void 0, !0)
635
- ], 14, It)) : f("", !0),
636
- t.$slots.watermark ? (s(), i("div", jt, [
635
+ ], 14, It)) : p("", !0),
636
+ t.$slots.watermark ? (s(), i("div", Et, [
637
637
  w(t.$slots, "watermark", H(X({ isPrinting: h(he) || h(ye) })), void 0, !0)
638
- ])) : f("", !0),
639
- Y.value ? f("", !0) : (s(), V(xt, {
638
+ ])) : p("", !0),
639
+ Y.value ? p("", !0) : (s(), V(xt, {
640
640
  key: 4,
641
641
  config: {
642
642
  type: "waffle",
@@ -655,7 +655,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
655
655
  e.value.style.chart.legend.show ? (s(), V(kt, {
656
656
  key: `legend_${ce.value}`,
657
657
  legendSet: A.value,
658
- config: Ge.value,
658
+ config: Re.value,
659
659
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => Ce(l.uid))
660
660
  }, {
661
661
  item: b(({ legend: l }) => [
@@ -694,7 +694,7 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
694
694
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
695
695
  position: e.value.style.chart.tooltip.position,
696
696
  offsetY: e.value.style.chart.tooltip.offsetY,
697
- parent: G.value,
697
+ parent: R.value,
698
698
  content: ee.value,
699
699
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
700
700
  fontSize: e.value.style.chart.tooltip.fontSize
@@ -746,10 +746,10 @@ const ze = (E) => (Ye("data-v-eaa613a1"), E = E(), Je(), E), $t = ["id"], It = [
746
746
  }, 8, ["colNames", "head", "body", "config", "title"]))
747
747
  ]),
748
748
  _: 1
749
- }, 8, ["config"])) : f("", !0)
749
+ }, 8, ["config"])) : p("", !0)
750
750
  ], 14, $t));
751
751
  }
752
- }, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-eaa613a1"]]);
752
+ }, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-85fefa19"]]);
753
753
  export {
754
754
  nl as default
755
755
  };
@@ -1,10 +1,10 @@
1
- import { computed as p, ref as o, watch as U, onMounted as V, onBeforeUnmount as ee, openBlock as r, createElementBlock as v, normalizeStyle as C, createBlock as _, createCommentVNode as d, unref as n, createSlots as te, withCtx as x, renderSlot as f, normalizeProps as X, guardReactiveProps as B, normalizeClass as G, Fragment as ae, renderList as le, toDisplayString as se } from "vue";
2
- import { u as ne, c as oe, t as re, o as ue, e as ie, v as T, X as ce, i as he, s as E, f as ve } from "./index-CaV1s-yZ.js";
3
- import { _ as de } from "./Title-gUz6GDA3.js";
4
- import { u as fe, U as ye } from "./usePrinter-rvJyT65A.js";
1
+ import { computed as p, ref as o, watch as U, onMounted as V, onBeforeUnmount as ee, openBlock as r, createElementBlock as v, normalizeStyle as C, createBlock as _, createCommentVNode as d, unref as s, createSlots as te, withCtx as x, renderSlot as f, normalizeProps as X, guardReactiveProps as B, normalizeClass as G, Fragment as ae, renderList as le, toDisplayString as ne } from "vue";
2
+ import { u as se, c as oe, t as re, o as ue, e as ie, w as T, X as ce, i as he, v as E, f as ve } from "./index-DP8dqFNd.js";
3
+ import { _ as de } from "./Title-Bx-VO3md.js";
4
+ import { u as fe, U as ye } from "./usePrinter-DiuHo4LO.js";
5
5
  import { t as ge, u as me } from "./useResponsive-NZB-WLRF.js";
6
- import pe from "./vue-ui-skeleton-CvFX_ExX.js";
7
- import { u as j } from "./useNestedProp-tWCzZrLx.js";
6
+ import pe from "./vue-ui-skeleton-B30ZhUV7.js";
7
+ import { u as j } from "./useNestedProp-B-oZxD4x.js";
8
8
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], _e = ["cx", "cy", "r", "stroke", "stroke-width"], xe = ["x", "y", "font-size", "fill", "font-weight"], Ie = {
10
10
  key: 3,
@@ -26,7 +26,7 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
26
26
  }
27
27
  },
28
28
  setup(D, { expose: R }) {
29
- const i = D, { vue_ui_wheel: Y } = ne(), k = p(() => !!i.dataset && Object.keys(i.dataset).length), w = o(oe()), H = o(null), I = o(0), y = o(null), $ = o(null), F = o(0), e = p({
29
+ const i = D, { vue_ui_wheel: Y } = se(), k = p(() => !!i.dataset && Object.keys(i.dataset).length), w = o(oe()), H = o(null), I = o(0), y = o(null), $ = o(null), F = o(0), e = p({
30
30
  get: () => P(),
31
31
  set: (t) => t
32
32
  });
@@ -63,9 +63,9 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
63
63
  y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * c
64
64
  };
65
65
  }
66
- const s = o(e.value.style.chart.animation.use ? 0 : i.dataset.percentage || 0);
66
+ const n = o(e.value.style.chart.animation.use ? 0 : i.dataset.percentage || 0);
67
67
  U(() => i.dataset, (t) => {
68
- e.value.style.chart.animation.use ? L(t.percentage) : s.value = t.percentage || 0;
68
+ e.value.style.chart.animation.use ? L(t.percentage) : n.value = t.percentage || 0;
69
69
  }, { deep: !0 });
70
70
  const g = o(null);
71
71
  V(() => {
@@ -91,16 +91,16 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
91
91
  });
92
92
  function L(t) {
93
93
  let c = e.value.style.chart.animation.speed;
94
- const a = Math.abs(t - s.value) / (c * 120);
94
+ const a = Math.abs(t - n.value) / (c * 120);
95
95
  function h() {
96
- s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(h);
96
+ n.value < t ? n.value = Math.min(n.value + a, t) : n.value > t && (n.value = Math.max(n.value - a, t)), n.value !== t && requestAnimationFrame(h);
97
97
  }
98
98
  h();
99
99
  }
100
100
  const W = p(() => {
101
101
  const t = [];
102
102
  for (let a = 0; a < 100; a += 1) {
103
- const h = s.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: J, y: K } = N(l.value.size / 100 * a), { x: Q, y: Z } = N(l.value.size / 100 * a, 0.9);
103
+ const h = n.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: J, y: K } = N(l.value.size / 100 * a), { x: Q, y: Z } = N(l.value.size / 100 * a, 0.9);
104
104
  t.push({
105
105
  x1: J,
106
106
  y1: K,
@@ -150,8 +150,8 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
150
150
  key: `user_options_${I.value}`,
151
151
  backgroundColor: e.value.style.chart.backgroundColor,
152
152
  color: e.value.style.chart.color,
153
- isPrinting: n(z),
154
- isImaging: n(S),
153
+ isPrinting: s(z),
154
+ isImaging: s(S),
155
155
  uid: w.value,
156
156
  hasPdf: e.value.userOptions.buttons.pdf,
157
157
  hasImg: e.value.userOptions.buttons.img,
@@ -161,8 +161,8 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
161
161
  titles: { ...e.value.userOptions.buttonTitles },
162
162
  chartElement: y.value,
163
163
  onToggleFullscreen: q,
164
- onGeneratePdf: n(O),
165
- onGenerateImage: n(M)
164
+ onGeneratePdf: s(O),
165
+ onGenerateImage: s(M)
166
166
  }, te({ _: 2 }, [
167
167
  t.$slots.optionPdf ? {
168
168
  name: "optionPdf",
@@ -188,7 +188,7 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
188
188
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
189
189
  k.value ? (r(), v("svg", {
190
190
  key: 2,
191
- xmlns: n(ce),
191
+ xmlns: s(ce),
192
192
  class: G({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
193
193
  viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
194
194
  style: C(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
@@ -201,7 +201,7 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
201
201
  stroke: a.color,
202
202
  "stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
203
203
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
204
- class: G({ "vue-ui-tick-animated": e.value.style.chart.animation.use && h <= s.value })
204
+ class: G({ "vue-ui-tick-animated": e.value.style.chart.animation.use && h <= n.value })
205
205
  }, null, 10, Ce))), 256)),
206
206
  e.value.style.chart.layout.innerCircle.show ? (r(), v("circle", {
207
207
  key: 0,
@@ -217,15 +217,15 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
217
217
  x: u.value.centerX,
218
218
  y: u.value.centerY + b.value / 3,
219
219
  "font-size": b.value,
220
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? n(T)(e.value.style.chart.layout.wheel.ticks.activeColor, s.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
220
+ fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? s(T)(e.value.style.chart.layout.wheel.ticks.activeColor, n.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
221
221
  "text-anchor": "middle",
222
222
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
223
223
  style: { "font-variant-numeric": "tabluar-nums" }
224
- }, se(n(he)(
224
+ }, ne(s(he)(
225
225
  e.value.style.chart.layout.percentage.formatter,
226
- n(E)(s.value),
227
- n(ve)({
228
- v: n(E)(s.value),
226
+ s(E)(n.value),
227
+ s(ve)({
228
+ v: s(E)(n.value),
229
229
  s: "%",
230
230
  r: e.value.style.chart.layout.percentage.rounding
231
231
  })
@@ -233,7 +233,7 @@ const we = ["id"], be = ["xmlns", "viewBox"], Ce = ["x1", "x2", "y1", "y2", "str
233
233
  f(t.$slots, "svg", { svg: l.value }, void 0, !0)
234
234
  ], 14, be)) : d("", !0),
235
235
  t.$slots.watermark ? (r(), v("div", Ie, [
236
- f(t.$slots, "watermark", X(B({ isPrinting: n(z) || n(S) })), void 0, !0)
236
+ f(t.$slots, "watermark", X(B({ isPrinting: s(z) || s(S) })), void 0, !0)
237
237
  ])) : d("", !0),
238
238
  k.value ? d("", !0) : (r(), _(pe, {
239
239
  key: 4,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BTgtr0F8.cjs"),G=require("./Title-3EduyW4p.cjs"),I=require("./usePrinter-DzTaA1eh.cjs"),N=require("./useResponsive-B3TrDDIG.cjs"),R=require("./vue-ui-skeleton-CMQzFTs9.cjs"),$=require("./useNestedProp-CisbRRo_.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],H=["xmlns","viewBox"],V=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],D=["cx","cy","r","stroke","stroke-width"],Y=["x","y","font-size","fill","font-weight"],W={key:3,class:"vue-data-ui-watermark"},J={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:F}){const s=z,{vue_ui_wheel:O}=r.useConfig(),f=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length),y=e.ref(r.createUid()),M=e.ref(null),g=e.ref(0),h=e.ref(null),p=e.ref(null),k=e.ref(0),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=$.useNestedProp({userConfig:s.config,defaultConfig:O});return l.theme?{...$.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||s.config,defaultConfig:l})}:l}e.watch(()=>s.config,l=>{t.value=w(),P(),k.value+=1},{deep:!0});const{isPrinting:C,isImaging:b,generatePdf:_,generateImage:x}=I.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),u=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function B(l,i=1){return{x:u.value.centerX+u.value.radius*Math.cos(29.85+l*Math.PI/180)*i,y:u.value.centerY+u.value.radius*Math.sin(29.85+l*Math.PI/180)*i}}const o=e.ref(t.value.style.chart.animation.use?0:s.dataset.percentage||0);e.watch(()=>s.dataset,l=>{t.value.style.chart.animation.use?S(l.percentage):o.value=l.percentage||0},{deep:!0});const v=e.ref(null);e.onMounted(()=>{P()});function P(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),S(s.dataset.percentage||0),t.value.responsive){const l=N.throttle(()=>{const{width:i,height:a}=N.useResponsive({chart:h.value,title:t.value.style.chart.title.text?p.value:null});n.value.width=i,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(i,a)});v.value=new ResizeObserver(l),v.value.observe(h.value.parentNode)}}e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});function S(l){let i=t.value.style.chart.animation.speed;const a=Math.abs(l-o.value)/(i*120);function c(){o.value<l?o.value=Math.min(o.value+a,l):o.value>l&&(o.value=Math.max(o.value-a,l)),o.value!==l&&requestAnimationFrame(c)}c()}const E=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const c=o.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:q,y:T}=B(n.value.size/100*a),{x:L,y:U}=B(n.value.size/100*a,.9);l.push({x1:q,y1:T,x2:L,y2:U,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(c,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c})}return l}),d=e.ref(!1);function A(l){d.value=l,g.value+=1}return F({generatePdf:_,generateImage:x}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[(e.openBlock(),e.createBlock(G._sfc_main,{key:`title_${k.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(I.UserOptions,{ref_key:"details",ref:M,key:`user_options_${g.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(C),isImaging:e.unref(b),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:d.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:A,onGeneratePdf:e.unref(_),onGenerateImage:e.unref(x)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:c})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":d.value,"vue-data-ui-fulscreen--off":!d.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,c)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&c<=o.value})},null,10,V))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.centerX,cy:u.value.centerY,r:u.value.radius*.8<=0?1e-4:u.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,D)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.centerX,y:u.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,o.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(o.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(o.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,Y)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,H)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(C)||e.unref(b)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,j))}},K=X._export_sfc(J,[["__scopeId","data-v-355bd3d3"]]);exports.default=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CzjC8LfY.cjs"),G=require("./Title-BSpa3uge.cjs"),I=require("./usePrinter-DiLM6jav.cjs"),N=require("./useResponsive-B3TrDDIG.cjs"),R=require("./vue-ui-skeleton-CwqzJlQf.cjs"),$=require("./useNestedProp-CY7DebVH.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],H=["xmlns","viewBox"],V=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],D=["cx","cy","r","stroke","stroke-width"],Y=["x","y","font-size","fill","font-weight"],W={key:3,class:"vue-data-ui-watermark"},J={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:F}){const s=z,{vue_ui_wheel:O}=r.useConfig(),f=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length),y=e.ref(r.createUid()),M=e.ref(null),g=e.ref(0),h=e.ref(null),p=e.ref(null),k=e.ref(0),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=$.useNestedProp({userConfig:s.config,defaultConfig:O});return l.theme?{...$.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||s.config,defaultConfig:l})}:l}e.watch(()=>s.config,l=>{t.value=w(),P(),k.value+=1},{deep:!0});const{isPrinting:C,isImaging:b,generatePdf:_,generateImage:x}=I.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),u=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function B(l,i=1){return{x:u.value.centerX+u.value.radius*Math.cos(29.85+l*Math.PI/180)*i,y:u.value.centerY+u.value.radius*Math.sin(29.85+l*Math.PI/180)*i}}const o=e.ref(t.value.style.chart.animation.use?0:s.dataset.percentage||0);e.watch(()=>s.dataset,l=>{t.value.style.chart.animation.use?S(l.percentage):o.value=l.percentage||0},{deep:!0});const v=e.ref(null);e.onMounted(()=>{P()});function P(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),S(s.dataset.percentage||0),t.value.responsive){const l=N.throttle(()=>{const{width:i,height:a}=N.useResponsive({chart:h.value,title:t.value.style.chart.title.text?p.value:null});n.value.width=i,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(i,a)});v.value=new ResizeObserver(l),v.value.observe(h.value.parentNode)}}e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});function S(l){let i=t.value.style.chart.animation.speed;const a=Math.abs(l-o.value)/(i*120);function c(){o.value<l?o.value=Math.min(o.value+a,l):o.value>l&&(o.value=Math.max(o.value-a,l)),o.value!==l&&requestAnimationFrame(c)}c()}const E=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const c=o.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:q,y:T}=B(n.value.size/100*a),{x:L,y:U}=B(n.value.size/100*a,.9);l.push({x1:q,y1:T,x2:L,y2:U,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(c,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c})}return l}),d=e.ref(!1);function A(l){d.value=l,g.value+=1}return F({generatePdf:_,generateImage:x}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[(e.openBlock(),e.createBlock(G._sfc_main,{key:`title_${k.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(I.UserOptions,{ref_key:"details",ref:M,key:`user_options_${g.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(C),isImaging:e.unref(b),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:d.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:A,onGeneratePdf:e.unref(_),onGenerateImage:e.unref(x)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:c})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":d.value,"vue-data-ui-fulscreen--off":!d.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,c)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&c<=o.value})},null,10,V))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.centerX,cy:u.value.centerY,r:u.value.radius*.8<=0?1e-4:u.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,D)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.centerX,y:u.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,o.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(o.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(o.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,Y)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,H)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(C)||e.unref(b)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,j))}},K=X._export_sfc(J,[["__scopeId","data-v-355bd3d3"]]);exports.default=K;