vue-data-ui 2.4.86 → 2.4.88

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 (171) hide show
  1. package/dist/{Arrow-DpgbndsU.js → Arrow-D79KA6Cu.js} +1 -1
  2. package/dist/{Arrow-Bh7Ezbzf.cjs → Arrow-DMSM0MM1.cjs} +1 -1
  3. package/dist/{BaseIcon-CdPe2CAc.js → BaseIcon-B9BZgZsa.js} +1 -1
  4. package/dist/{BaseIcon-CaKclr1e.cjs → BaseIcon-CehmAXJH.cjs} +1 -1
  5. package/dist/{DataTable-BfiPjHpN.js → DataTable-Cnr3w23K.js} +2 -2
  6. package/dist/{DataTable-DuosyZ6d.cjs → DataTable-DVKGDaCB.cjs} +1 -1
  7. package/dist/{Legend-DiFDWEo2.js → Legend-Di7FMl12.js} +2 -2
  8. package/dist/{Legend-BnKYc6ZY.cjs → Legend-Uv0t6PIz.cjs} +1 -1
  9. package/dist/{PackageVersion-qom4AEUr.js → PackageVersion-BAKTtSRE.js} +1 -1
  10. package/dist/{PackageVersion-B5rBHZEb.cjs → PackageVersion-BgKxrHv-.cjs} +1 -1
  11. package/dist/{PenAndPaper-C-1AU46J.js → PenAndPaper-BUzmu0vi.js} +3 -3
  12. package/dist/{PenAndPaper-5OV7IAca.cjs → PenAndPaper-BYVZ33fz.cjs} +1 -1
  13. package/dist/{Shape-CmsIulaS.cjs → Shape-CNuTafzS.cjs} +1 -1
  14. package/dist/{Shape-Dmv7nCLC.js → Shape-DZz__S1P.js} +1 -1
  15. package/dist/{Slicer-CmBt4xoj.cjs → Slicer-BSQa-Zel.cjs} +1 -1
  16. package/dist/{Slicer-D4ugcR39.js → Slicer-Clpv-EOL.js} +2 -2
  17. package/dist/{Title-D3kX1BVl.cjs → Title-DcTKT_WK.cjs} +1 -1
  18. package/dist/{Title-ClQ27HaB.js → Title-Dt5mC-vb.js} +1 -1
  19. package/dist/{Tooltip-CGYgJoPR.js → Tooltip-CmKYX0H1.js} +1 -1
  20. package/dist/{Tooltip-CARCyQNT.cjs → Tooltip-y6Z9yhlE.cjs} +1 -1
  21. package/dist/{index-CXx0JV8R.js → index-DCHLGNvJ.js} +1 -1
  22. package/dist/{index-DqxDpUy0.cjs → index-xEXHnOtJ.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -1
  25. package/dist/types/vue-data-ui.d.ts +1 -1
  26. package/dist/{useNestedProp-B-WAbP7E.js → useNestedProp-BPR7xHxr.js} +1 -1
  27. package/dist/{useNestedProp-DNWKDmdP.cjs → useNestedProp-LNEDZsGq.cjs} +1 -1
  28. package/dist/{usePrinter-Ctor1UK0.js → usePrinter-BvounINk.js} +1 -1
  29. package/dist/{usePrinter-BC7U4s0U.cjs → usePrinter-CjQvMB0_.cjs} +1 -1
  30. package/dist/{vue-data-ui-BpAZx3Va.js → vue-data-ui-BCZFdeNf.js} +60 -60
  31. package/dist/{vue-data-ui-DkgWwqtw.cjs → vue-data-ui-eNIOCbja.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-1A6t1biQ.js → vue-ui-3d-bar-B0ZLxzL-.js} +38 -38
  35. package/dist/{vue-ui-3d-bar-ngD35pLb.cjs → vue-ui-3d-bar-DEZhX6d1.cjs} +11 -11
  36. package/dist/{vue-ui-accordion-XAEm2rxj.cjs → vue-ui-accordion-2c1jq56U.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-BljYKOXR.js → vue-ui-accordion-DEpeQHhr.js} +3 -3
  38. package/dist/vue-ui-age-pyramid-DlE41fIs.cjs +1 -0
  39. package/dist/{vue-ui-age-pyramid-qfVpUr52.js → vue-ui-age-pyramid-dewoEG3y.js} +29 -29
  40. package/dist/{vue-ui-annotator-pFybuGix.cjs → vue-ui-annotator-CG6CV-7_.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CH9QWqAv.js → vue-ui-annotator-D9op3RMK.js} +1 -1
  42. package/dist/{vue-ui-bullet-BH7zmX0E.js → vue-ui-bullet-B6tijZFI.js} +8 -8
  43. package/dist/{vue-ui-bullet-C6y7Ddg-.cjs → vue-ui-bullet-Bt_2KhaH.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-RCtFAjEU.js → vue-ui-candlestick-B4DkRibE.js} +48 -48
  45. package/dist/{vue-ui-candlestick-DtCmxeo5.cjs → vue-ui-candlestick-DWDz2nFA.cjs} +2 -2
  46. package/dist/{vue-ui-carousel-table-BUL063mi.js → vue-ui-carousel-table-COAPDtuP.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-BeDenKJo.cjs → vue-ui-carousel-table-DZlh-CRi.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-xDD_4bz2.js → vue-ui-chestnut-DCk2Zbcz.js} +29 -29
  49. package/dist/{vue-ui-chestnut-B6EalNLT.cjs → vue-ui-chestnut-EyoKonrW.cjs} +2 -2
  50. package/dist/{vue-ui-cursor-DbV0HXHB.cjs → vue-ui-cursor-DR8hHWf7.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-D6Qndjnn.js → vue-ui-cursor-DSP_sXww.js} +2 -2
  52. package/dist/{vue-ui-dashboard-B_kj8L_A.cjs → vue-ui-dashboard-BJsyMU6X.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-B_4ot4bz.js → vue-ui-dashboard-BizVZE7w.js} +2 -2
  54. package/dist/{vue-ui-digits-BLI4lCZC.js → vue-ui-digits-BvVZ7uDf.js} +2 -2
  55. package/dist/{vue-ui-digits-DKs2fTGz.cjs → vue-ui-digits-vspu86yU.cjs} +1 -1
  56. package/dist/vue-ui-donut-BHJF4z2B.cjs +1 -0
  57. package/dist/{vue-ui-donut-wBZoPkru.js → vue-ui-donut-aFsq1d8c.js} +76 -76
  58. package/dist/{vue-ui-donut-evolution-ClOGDHiK.js → vue-ui-donut-evolution-BfS2WdBU.js} +66 -66
  59. package/dist/vue-ui-donut-evolution-DwVP-Zjn.cjs +1 -0
  60. package/dist/{vue-ui-dumbbell-PR9tHMvD.js → vue-ui-dumbbell-Bb5wHbQL.js} +28 -28
  61. package/dist/vue-ui-dumbbell-Bi-2LGtG.cjs +9 -0
  62. package/dist/{vue-ui-flow-CxW8g0NW.js → vue-ui-flow-DxNNh-WO.js} +31 -31
  63. package/dist/vue-ui-flow-RQWHqn22.cjs +1 -0
  64. package/dist/vue-ui-funnel-D-892HTK.cjs +1 -0
  65. package/dist/{vue-ui-funnel-BJNlWIq5.js → vue-ui-funnel-IVTzcHVm.js} +32 -32
  66. package/dist/{vue-ui-galaxy-DuGLDGzf.js → vue-ui-galaxy-039pCZpW.js} +81 -81
  67. package/dist/vue-ui-galaxy-BR-8c9Hn.cjs +1 -0
  68. package/dist/{vue-ui-gauge-Dpcxdegh.cjs → vue-ui-gauge-B4k-bq9l.cjs} +1 -1
  69. package/dist/{vue-ui-gauge-CBx84KCt.js → vue-ui-gauge-ZEMVvV-t.js} +7 -7
  70. package/dist/{vue-ui-gizmo-Djw5T_Vr.cjs → vue-ui-gizmo--XG8-JLk.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-BPIyNNkI.js → vue-ui-gizmo-DKzAWnI0.js} +3 -3
  72. package/dist/vue-ui-heatmap-Bia0Ekaw.cjs +1 -0
  73. package/dist/{vue-ui-heatmap-DI8gVwfM.js → vue-ui-heatmap-DXDpQL6T.js} +63 -63
  74. package/dist/vue-ui-history-plot-Cq9ZWdDn.cjs +1 -0
  75. package/dist/{vue-ui-history-plot-CWfWMwqw.js → vue-ui-history-plot-o1WosOjA.js} +69 -69
  76. package/dist/{vue-ui-kpi-CBJZp-nE.js → vue-ui-kpi-B01FpRQ0.js} +3 -3
  77. package/dist/{vue-ui-kpi-BjGIj-IQ.cjs → vue-ui-kpi-lWq7fZr1.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-DfeNWsJk.js → vue-ui-mini-loader-DLUYnvwS.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-Cafts_cp.cjs → vue-ui-mini-loader-jkxJpHFv.cjs} +1 -1
  80. package/dist/vue-ui-molecule-BBK9ofPv.cjs +1 -0
  81. package/dist/{vue-ui-molecule-BTO5WRuL.js → vue-ui-molecule-DyiuRZQM.js} +155 -155
  82. package/dist/vue-ui-mood-radar-Bx32tbYB.cjs +1 -0
  83. package/dist/{vue-ui-mood-radar-CKGwiCsd.js → vue-ui-mood-radar-DJI_fbFv.js} +33 -33
  84. package/dist/{vue-ui-nested-donuts-BvkJoiOT.cjs → vue-ui-nested-donuts-B6ZLkoIS.cjs} +5 -5
  85. package/dist/{vue-ui-nested-donuts-JGie_log.js → vue-ui-nested-donuts-B9gUqMTf.js} +147 -147
  86. package/dist/{vue-ui-onion-BWoVr0FT.cjs → vue-ui-onion-BnLW3as9.cjs} +2 -2
  87. package/dist/{vue-ui-onion-BXauNEVz.js → vue-ui-onion-D-OxG00N.js} +44 -44
  88. package/dist/{vue-ui-parallel-coordinate-plot-njogPtYo.js → vue-ui-parallel-coordinate-plot-DXc-b6rP.js} +79 -79
  89. package/dist/{vue-ui-parallel-coordinate-plot-BrvB0jer.cjs → vue-ui-parallel-coordinate-plot-wx4e_yuu.cjs} +3 -3
  90. package/dist/vue-ui-quadrant-BqaLRYQp.cjs +1 -0
  91. package/dist/{vue-ui-quadrant-DnaOzxMc.js → vue-ui-quadrant-bakb0497.js} +108 -108
  92. package/dist/vue-ui-quick-chart-BZdsiGCz.cjs +15 -0
  93. package/dist/{vue-ui-quick-chart-kAG9Eaxb.js → vue-ui-quick-chart-BnH7-lmq.js} +212 -212
  94. package/dist/vue-ui-radar-D5IDgzwd.cjs +1 -0
  95. package/dist/{vue-ui-radar-DRmP5yb4.js → vue-ui-radar-DadvgLtC.js} +107 -107
  96. package/dist/{vue-ui-rating-BtLDJSwm.cjs → vue-ui-rating-B4yxkddt.cjs} +1 -1
  97. package/dist/{vue-ui-rating-De5IfgHJ.js → vue-ui-rating-CGojWinU.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-DKQl7eWX.js → vue-ui-relation-circle-COC07h_K.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-B2l-2KnH.cjs → vue-ui-relation-circle-rmWirv-5.cjs} +1 -1
  100. package/dist/{vue-ui-rings-Dwyz2fEm.js → vue-ui-rings-CMk-sVvK.js} +66 -66
  101. package/dist/{vue-ui-rings-KQoMkv4v.cjs → vue-ui-rings-DO1cN4ly.cjs} +2 -2
  102. package/dist/vue-ui-scatter-C4QmHmq2.cjs +1 -0
  103. package/dist/{vue-ui-scatter-DeOrkD2Y.js → vue-ui-scatter-CPkly4JA.js} +85 -85
  104. package/dist/{vue-ui-screenshot-BLp1_Q6K.cjs → vue-ui-screenshot-BxFOMLiy.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-D1Ekbb27.js → vue-ui-screenshot-CzFhpFE4.js} +1 -1
  106. package/dist/{vue-ui-skeleton-qIxxRRaX.cjs → vue-ui-skeleton-Tse1D8cv.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-Cw0-Ac_0.js → vue-ui-skeleton-nTL-u4Yd.js} +3 -3
  108. package/dist/{vue-ui-smiley-D3oqt6Rg.js → vue-ui-smiley-Bu3bOukI.js} +2 -2
  109. package/dist/{vue-ui-smiley-D3WgXFhb.cjs → vue-ui-smiley-D-sS-77y.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-DyhcWMWz.js → vue-ui-spark-trend-Bh5gFFQf.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-CVyPm6ms.cjs → vue-ui-spark-trend-CF36oite.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CRMMOv0T.cjs → vue-ui-sparkbar-CGIYeFjB.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-C0av7SAn.js → vue-ui-sparkbar-DX2xrwR9.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-B3K4si6u.js → vue-ui-sparkgauge-CZ837K-0.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-BQnxP_8u.cjs → vue-ui-sparkgauge-D2NJVKww.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-Bo3pkA-I.js → vue-ui-sparkhistogram-2NcpXt-_.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-DVAas7L7.cjs → vue-ui-sparkhistogram-DIYvXyIB.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-CDqFBaPU.cjs → vue-ui-sparkline-BIj5WMUM.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-DIHKGu0H.js → vue-ui-sparkline-CuBFi324.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-CC-OaMTb.cjs → vue-ui-sparkstackbar-BvcGQqmi.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DG87wFd5.js → vue-ui-sparkstackbar-bqD9-qmQ.js} +5 -5
  122. package/dist/{vue-ui-stackbar-fZKaRitE.js → vue-ui-stackbar-BG0olJr0.js} +51 -51
  123. package/dist/{vue-ui-stackbar-CVHKHNom.cjs → vue-ui-stackbar-Cbk-PfOC.cjs} +3 -3
  124. package/dist/vue-ui-strip-plot-Dm2ctnIx.cjs +1 -0
  125. package/dist/{vue-ui-strip-plot-WOMaN28I.js → vue-ui-strip-plot-mNsmytzE.js} +118 -118
  126. package/dist/{vue-ui-table-CTtYDZPd.cjs → vue-ui-table-BwuSG-oE.cjs} +1 -1
  127. package/dist/{vue-ui-table-a4m3lpRq.js → vue-ui-table-C8_8TJ2H.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-0vDMKYpV.js → vue-ui-table-heatmap-Bakns13v.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-i00aBLPq.cjs → vue-ui-table-heatmap-ZfohVD71.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DW7t3xfB.cjs → vue-ui-table-sparkline-CC5hpyGe.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-D5lngzCM.js → vue-ui-table-sparkline-Du93NBKM.js} +5 -5
  132. package/dist/{vue-ui-thermometer-QtlVD4-S.cjs → vue-ui-thermometer-Cbe7bVeq.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-3aeRI-SM.js → vue-ui-thermometer-DZeTxVGM.js} +7 -7
  134. package/dist/{vue-ui-timer-B1nkj0WG.cjs → vue-ui-timer-B-guKc3A.cjs} +1 -1
  135. package/dist/{vue-ui-timer-mRaLpRHZ.js → vue-ui-timer-BwNbaMti.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-xMuvEsN7.cjs → vue-ui-tiremarks-DNtBCjbs.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Dv2O6FpS.js → vue-ui-tiremarks-sCXXGXiN.js} +7 -7
  138. package/dist/{vue-ui-treemap-D89aQanB.js → vue-ui-treemap-BQoajav9.js} +108 -108
  139. package/dist/vue-ui-treemap-CH_qGgmb.cjs +1 -0
  140. package/dist/{vue-ui-vertical-bar-BpLIp4qR.js → vue-ui-vertical-bar-LWxKcXEf.js} +54 -54
  141. package/dist/{vue-ui-vertical-bar-CwHag6jq.cjs → vue-ui-vertical-bar-ytpJJBqm.cjs} +3 -3
  142. package/dist/vue-ui-waffle-CvHppO8v.cjs +1 -0
  143. package/dist/{vue-ui-waffle-sr2mWvpN.js → vue-ui-waffle-q-CgTerF.js} +99 -99
  144. package/dist/{vue-ui-wheel-C0KYRHGC.cjs → vue-ui-wheel-BoXkxGeh.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-B7DOHXW8.js → vue-ui-wheel-CPHOwOzy.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-BxMb7oCr.js → vue-ui-word-cloud-BargS03s.js} +81 -81
  147. package/dist/vue-ui-word-cloud-DFL3e0A2.cjs +1 -0
  148. package/dist/{vue-ui-xy-D5ROTNHD.cjs → vue-ui-xy-CgIp7caN.cjs} +2 -2
  149. package/dist/{vue-ui-xy-DlyUTKB5.js → vue-ui-xy-DC5y2PjZ.js} +24 -16
  150. package/dist/{vue-ui-xy-canvas-DHvkJKQH.js → vue-ui-xy-canvas-B4mqwnlS.js} +35 -35
  151. package/dist/{vue-ui-xy-canvas-BDMk6XVE.cjs → vue-ui-xy-canvas-D1jemBXQ.cjs} +3 -3
  152. package/package.json +1 -1
  153. package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +0 -1
  154. package/dist/vue-ui-donut-B1Cg4vpI.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-CgB_aexh.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +0 -9
  157. package/dist/vue-ui-flow-CIkXePxd.cjs +0 -1
  158. package/dist/vue-ui-funnel-BLXk1z5r.cjs +0 -1
  159. package/dist/vue-ui-galaxy-C01Apc4E.cjs +0 -1
  160. package/dist/vue-ui-heatmap-DYPE1Efx.cjs +0 -1
  161. package/dist/vue-ui-history-plot-BeYYrq5_.cjs +0 -1
  162. package/dist/vue-ui-molecule-Ckh2JsOJ.cjs +0 -1
  163. package/dist/vue-ui-mood-radar-WHFk1KC1.cjs +0 -1
  164. package/dist/vue-ui-quadrant-D8krEYWV.cjs +0 -1
  165. package/dist/vue-ui-quick-chart-DTiell5S.cjs +0 -15
  166. package/dist/vue-ui-radar-DKB9rVav.cjs +0 -1
  167. package/dist/vue-ui-scatter-CDT3zyXP.cjs +0 -1
  168. package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +0 -1
  169. package/dist/vue-ui-treemap-BupfwSFa.cjs +0 -1
  170. package/dist/vue-ui-waffle-DuPI0NV4.cjs +0 -1
  171. package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +0 -1
@@ -1,20 +1,20 @@
1
- import { useSlots as tt, computed as d, ref as v, watch as Ne, onMounted as lt, onBeforeUnmount as at, openBlock as s, createElementBlock as r, normalizeClass as Be, normalizeStyle as X, unref as c, createBlock as N, createCommentVNode as y, createSlots as Ve, withCtx as m, renderSlot as g, normalizeProps as B, guardReactiveProps as V, createVNode as ne, createElementVNode as x, Fragment as _, renderList as O, toDisplayString as A, createTextVNode as Me, nextTick as ot, pushScopeId as ut, popScopeId as st } from "vue";
2
- import { u as rt, c as nt, t as it, a as vt, p as M, o as ct, e as ie, g as dt, b as ht, i as E, f as C, X as pt, s as yt, w as ft, G as gt, L as mt, d as bt, x as wt, y as kt, q as xt, r as _t } from "./index-CXx0JV8R.js";
1
+ import { useSlots as tt, computed as d, ref as v, watch as Ne, onMounted as lt, onBeforeUnmount as at, openBlock as s, createElementBlock as r, normalizeClass as Be, normalizeStyle as X, unref as c, createBlock as N, createCommentVNode as y, createSlots as Ve, withCtx as b, renderSlot as g, normalizeProps as B, guardReactiveProps as V, createVNode as ne, createElementVNode as x, Fragment as C, renderList as O, toDisplayString as A, createTextVNode as Me, nextTick as ot, pushScopeId as ut, popScopeId as st } from "vue";
2
+ import { u as rt, c as nt, t as it, a as vt, p as M, o as ct, e as ie, g as dt, b as ht, i as E, f as $, X as pt, s as yt, w as ft, G as gt, L as bt, d as mt, x as wt, y as kt, q as xt, r as _t } from "./index-DCHLGNvJ.js";
3
3
  import { t as Ct, u as $t } from "./useResponsive-CoxXLe23.js";
4
- import { _ as It } from "./Title-ClQ27HaB.js";
5
- import { u as Tt, U as St } from "./usePrinter-Ctor1UK0.js";
6
- import { _ as Pt } from "./Tooltip-CGYgJoPR.js";
7
- import { D as Lt } from "./DataTable-BfiPjHpN.js";
8
- import { L as Ot } from "./Legend-DiFDWEo2.js";
9
- import At from "./vue-ui-skeleton-Cw0-Ac_0.js";
10
- import Ft from "./vue-ui-accordion-BljYKOXR.js";
11
- import { u as De } from "./useNestedProp-B-WAbP7E.js";
12
- import { _ as zt } from "./PackageVersion-qom4AEUr.js";
13
- import { P as Nt } from "./PenAndPaper-C-1AU46J.js";
4
+ import { _ as It } from "./Title-Dt5mC-vb.js";
5
+ import { u as Tt, U as St } from "./usePrinter-BvounINk.js";
6
+ import { _ as Pt } from "./Tooltip-CmKYX0H1.js";
7
+ import { D as Lt } from "./DataTable-Cnr3w23K.js";
8
+ import { L as Ot } from "./Legend-Di7FMl12.js";
9
+ import At from "./vue-ui-skeleton-nTL-u4Yd.js";
10
+ import Ft from "./vue-ui-accordion-DEpeQHhr.js";
11
+ import { u as De } from "./useNestedProp-BPR7xHxr.js";
12
+ import { _ as zt } from "./PackageVersion-BAKTtSRE.js";
13
+ import { P as Nt } from "./PenAndPaper-BUzmu0vi.js";
14
14
  import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Vt } from "./Shape-Dmv7nCLC.js";
15
+ import { _ as Vt } from "./Shape-DZz__S1P.js";
16
16
  import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], Rt = ["stop-color"], jt = ["stop-color"], Et = ["id"], Wt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feGaussianBlur", {
17
+ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], Rt = ["stop-color"], jt = ["stop-color"], Et = ["id"], Wt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feGaussianBlur", {
18
18
  in: "SourceGraphic",
19
19
  stdDeviation: 2
20
20
  }, null, -1)), qt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feColorMatrix", {
@@ -44,32 +44,32 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
44
44
  },
45
45
  emits: ["selectLegend"],
46
46
  setup(W, { expose: Ge, emit: Re }) {
47
- const b = W, { vue_ui_waffle: je } = rt(), Ee = tt(), Y = d(() => !!b.dataset && b.dataset.length), k = v(nt()), We = v(null), te = v(!1), le = v(""), D = v(null), ve = v(0), U = v(null), ce = v(null), de = v(null), he = v(null), pe = v(null), ye = v(0), fe = v(0), ge = v(0), e = d({
47
+ const m = W, { vue_ui_waffle: je } = rt(), Ee = tt(), Y = d(() => !!m.dataset && m.dataset.length), k = v(nt()), We = v(null), te = v(!1), le = v(""), D = v(null), ve = v(0), U = v(null), ce = v(null), de = v(null), he = v(null), pe = v(null), ye = v(0), fe = v(0), ge = v(0), e = d({
48
48
  get: () => we(),
49
49
  set: (t) => t
50
- }), { userOptionsVisible: ae, setUserOptionsVisibility: me, keepUserOptionState: be } = Bt({ config: e.value });
50
+ }), { userOptionsVisible: ae, setUserOptionsVisibility: be, keepUserOptionState: me } = Bt({ config: e.value });
51
51
  function we() {
52
52
  const t = De({
53
- userConfig: b.config,
53
+ userConfig: m.config,
54
54
  defaultConfig: je
55
55
  });
56
56
  return t.theme ? {
57
57
  ...De({
58
- userConfig: it.vue_ui_waffle[t.theme] || b.config,
58
+ userConfig: it.vue_ui_waffle[t.theme] || m.config,
59
59
  defaultConfig: t
60
60
  }),
61
61
  customPalette: vt[t.theme] || M
62
62
  } : t;
63
63
  }
64
- Ne(() => b.config, (t) => {
65
- e.value = we(), ae.value = !e.value.showOnChartHover, ke(), ye.value += 1, fe.value += 1, ge.value += 1;
64
+ Ne(() => m.config, (t) => {
65
+ e.value = we(), ae.value = !e.value.showOnChartHover, ke(), ye.value += 1, fe.value += 1, ge.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
66
66
  }, { deep: !0 });
67
67
  const J = v(null);
68
68
  function ke() {
69
- if (ct(b.dataset) ? ie({
69
+ if (ct(m.dataset) ? ie({
70
70
  componentName: "VueUiWaffle",
71
71
  type: "dataset"
72
- }) : b.dataset.forEach((t, a) => {
72
+ }) : m.dataset.forEach((t, a) => {
73
73
  dt({
74
74
  datasetObject: t,
75
75
  requiredAttributes: ["name", "values"]
@@ -91,7 +91,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
91
91
  noTitle: pe.value
92
92
  });
93
93
  requestAnimationFrame(() => {
94
- F.value.width = a, F.value.height = l, $.value.width = a, $.value.height = l;
94
+ F.value.width = a, F.value.height = l, I.value.width = a, I.value.height = l;
95
95
  });
96
96
  });
97
97
  J.value = new ResizeObserver(t), J.value.observe(U.value.parentNode);
@@ -105,18 +105,18 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
105
105
  const { isPrinting: xe, isImaging: _e, generatePdf: Ce, generateImage: $e } = Tt({
106
106
  elementId: `vue-ui-waffle_${k.value}`,
107
107
  fileName: e.value.style.chart.title.text || "vue-ui-waffle"
108
- }), qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = d(() => ht(e.value.customPalette)), L = v({
108
+ }), qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = d(() => ht(e.value.customPalette)), _ = v({
109
109
  showTable: e.value.table.show,
110
110
  showTooltip: e.value.style.chart.tooltip.show
111
111
  }), F = v({
112
112
  height: 512,
113
113
  width: 512
114
- }), $ = v({
114
+ }), I = v({
115
115
  top: 0,
116
116
  left: 0,
117
117
  height: 512,
118
118
  width: 512
119
- }), I = d(() => ($.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = d(() => ($.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), q = d(() => $.value.width / e.value.style.chart.layout.grid.size), K = d(() => $.value.height / e.value.style.chart.layout.grid.size);
119
+ }), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), q = d(() => I.value.width / e.value.style.chart.layout.grid.size), K = d(() => I.value.height / e.value.style.chart.layout.grid.size);
120
120
  function Te(t) {
121
121
  const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, re) => w + re, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
122
122
  let f = a - u.reduce((w, re) => w + re, 0);
@@ -127,15 +127,15 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
127
127
  return u;
128
128
  }
129
129
  function Se() {
130
- return b.dataset.map((t, a) => ({
130
+ return m.dataset.map((t, a) => ({
131
131
  ...t,
132
- color: bt(t.color) || Ie.value[a] || M[a] || M[a % M.length],
132
+ color: mt(t.color) || Ie.value[a] || M[a] || M[a % M.length],
133
133
  uid: `serie_${a}`,
134
134
  absoluteIndex: a
135
135
  }));
136
136
  }
137
137
  const oe = d(() => Se()), h = v(oe.value);
138
- Ne(() => b.dataset, (t) => {
138
+ Ne(() => m.dataset, (t) => {
139
139
  h.value = Se();
140
140
  }, { deep: !0 });
141
141
  const He = d(() => {
@@ -144,7 +144,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
144
144
  }), Xe = d(() => {
145
145
  const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
146
146
  return Te(t);
147
- }), H = d(() => (b.dataset.forEach((t, a) => {
147
+ }), H = d(() => (m.dataset.forEach((t, a) => {
148
148
  [null, void 0].includes(t.values) && ie({
149
149
  componentName: "VueUiWaffle",
150
150
  type: "datasetSerieAttribute",
@@ -208,8 +208,8 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
208
208
  t.push({
209
209
  isStartOfLine: l === 0,
210
210
  position: e.value.style.chart.layout.grid.vertical ? a : l,
211
- x: (e.value.style.chart.layout.grid.vertical ? a : l) * (I.value + e.value.style.chart.layout.grid.spaceBetween),
212
- y: (e.value.style.chart.layout.grid.vertical ? l : a) * (T.value + e.value.style.chart.layout.grid.spaceBetween) + $.value.top
211
+ x: (e.value.style.chart.layout.grid.vertical ? a : l) * (T.value + e.value.style.chart.layout.grid.spaceBetween),
212
+ y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
213
213
  });
214
214
  return t;
215
215
  }), p = v([]), z = v(!1), Pe = v(null), Le = v(null);
@@ -271,9 +271,9 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
271
271
  fontSize: e.value.style.chart.legend.fontSize,
272
272
  paddingBottom: 12,
273
273
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
274
- })), S = d(() => H.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ue = v(null);
274
+ })), P = d(() => H.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ue = v(null);
275
275
  function Ze(t) {
276
- if (p.value.length === b.dataset.length) return;
276
+ if (p.value.length === m.dataset.length) return;
277
277
  const a = n.value[t];
278
278
  ue.value = {
279
279
  datapoint: a,
@@ -299,7 +299,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
299
299
  if (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 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${Ee.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${E(
300
300
  e.value.style.chart.layout.labels.dataLabels.formatter,
301
301
  a.value,
302
- C({
302
+ $({
303
303
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
304
304
  v: a.value,
305
305
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -311,8 +311,8 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
311
311
  series: h.value
312
312
  }
313
313
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
314
- const u = C({
315
- v: a.value / S.value * 100,
314
+ const u = $({
315
+ v: a.value / P.value * 100,
316
316
  s: "%",
317
317
  r: e.value.style.chart.tooltip.roundingPercentage
318
318
  });
@@ -321,7 +321,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
321
321
  le.value = o;
322
322
  }
323
323
  }
324
- const P = d(() => {
324
+ const L = d(() => {
325
325
  const t = H.value.map((l) => ({
326
326
  name: l.name,
327
327
  color: l.color
@@ -333,9 +333,9 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
333
333
  }
334
334
  function Ae() {
335
335
  ot(() => {
336
- const t = P.value.head.map((o, u) => [[
336
+ const t = L.value.head.map((o, u) => [[
337
337
  o.name
338
- ], [P.value.body[u]], [isNaN(P.value.body[u] / S.value) ? "-" : P.value.body[u] / S.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = xt(a);
338
+ ], [L.value.body[u]], [isNaN(L.value.body[u] / P.value) ? "-" : L.value.body[u] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = xt(a);
339
339
  _t({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
340
340
  });
341
341
  }
@@ -344,32 +344,32 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
344
344
  ' <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>',
345
345
  E(
346
346
  e.value.style.chart.layout.labels.dataLabels.formatter,
347
- S.value,
348
- C({
347
+ P.value,
348
+ $({
349
349
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
350
- v: S.value,
350
+ v: P.value,
351
351
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
352
352
  r: e.value.table.td.roundingValue
353
353
  })
354
354
  ),
355
355
  "100%"
356
- ], a = P.value.head.map((u, i) => [
356
+ ], a = L.value.head.map((u, i) => [
357
357
  {
358
358
  color: u.color,
359
359
  name: u.name
360
360
  },
361
361
  E(
362
362
  e.value.style.chart.layout.labels.dataLabels.formatter,
363
- P.value.body[i],
364
- C({
363
+ L.value.body[i],
364
+ $({
365
365
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
366
- v: P.value.body[i],
366
+ v: L.value.body[i],
367
367
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
368
368
  r: e.value.table.td.roundingValue
369
369
  })
370
370
  ),
371
- isNaN(P.value.body[i] / S.value) ? "-" : C({
372
- v: P.value.body[i] / S.value * 100,
371
+ isNaN(L.value.body[i] / P.value) ? "-" : $({
372
+ v: L.value.body[i] / P.value * 100,
373
373
  s: "%",
374
374
  r: e.value.table.td.roundingPercentage
375
375
  })
@@ -402,10 +402,10 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
402
402
  j.value = t, ve.value += 1;
403
403
  }
404
404
  function Fe() {
405
- L.value.showTable = !L.value.showTable;
405
+ _.value.showTable = !_.value.showTable;
406
406
  }
407
407
  function ze() {
408
- L.value.showTooltip = !L.value.showTooltip;
408
+ _.value.showTooltip = !_.value.showTooltip;
409
409
  }
410
410
  const ee = v(!1);
411
411
  function se() {
@@ -425,8 +425,8 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
425
425
  ref: U,
426
426
  id: `vue-ui-waffle_${k.value}`,
427
427
  style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
428
- onMouseenter: a[3] || (a[3] = () => c(me)(!0)),
429
- onMouseleave: a[4] || (a[4] = () => c(me)(!1))
428
+ onMouseenter: a[3] || (a[3] = () => c(be)(!0)),
429
+ onMouseleave: a[4] || (a[4] = () => c(be)(!1))
430
430
  }, [
431
431
  e.value.userOptions.buttons.annotator ? (s(), N(Nt, {
432
432
  key: 0,
@@ -463,7 +463,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
463
463
  }
464
464
  }, null, 8, ["config"]))
465
465
  ], 512)) : y("", !0),
466
- e.value.userOptions.show && Y.value && (c(be) || c(ae)) ? (s(), N(St, {
466
+ e.value.userOptions.show && Y.value && (c(me) || c(ae)) ? (s(), N(St, {
467
467
  ref_key: "details",
468
468
  ref: We,
469
469
  key: `user_options_${ve.value}`,
@@ -479,7 +479,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
479
479
  hasTable: e.value.userOptions.buttons.table,
480
480
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
481
481
  isFullscreen: j.value,
482
- isTooltip: L.value.showTooltip,
482
+ isTooltip: _.value.showTooltip,
483
483
  titles: { ...e.value.userOptions.buttonTitles },
484
484
  chartElement: U.value,
485
485
  position: e.value.userOptions.position,
@@ -493,54 +493,54 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
493
493
  onToggleTooltip: ze,
494
494
  onToggleAnnotator: se,
495
495
  style: X({
496
- visibility: c(be) ? c(ae) ? "visible" : "hidden" : "visible"
496
+ visibility: c(me) ? c(ae) ? "visible" : "hidden" : "visible"
497
497
  })
498
498
  }, Ve({ _: 2 }, [
499
499
  t.$slots.optionTooltip ? {
500
500
  name: "optionTooltip",
501
- fn: m(() => [
501
+ fn: b(() => [
502
502
  g(t.$slots, "optionTooltip", {}, void 0, !0)
503
503
  ]),
504
504
  key: "0"
505
505
  } : void 0,
506
506
  t.$slots.optionPdf ? {
507
507
  name: "optionPdf",
508
- fn: m(() => [
508
+ fn: b(() => [
509
509
  g(t.$slots, "optionPdf", {}, void 0, !0)
510
510
  ]),
511
511
  key: "1"
512
512
  } : void 0,
513
513
  t.$slots.optionCsv ? {
514
514
  name: "optionCsv",
515
- fn: m(() => [
515
+ fn: b(() => [
516
516
  g(t.$slots, "optionCsv", {}, void 0, !0)
517
517
  ]),
518
518
  key: "2"
519
519
  } : void 0,
520
520
  t.$slots.optionImg ? {
521
521
  name: "optionImg",
522
- fn: m(() => [
522
+ fn: b(() => [
523
523
  g(t.$slots, "optionImg", {}, void 0, !0)
524
524
  ]),
525
525
  key: "3"
526
526
  } : void 0,
527
527
  t.$slots.optionTable ? {
528
528
  name: "optionTable",
529
- fn: m(() => [
529
+ fn: b(() => [
530
530
  g(t.$slots, "optionTable", {}, void 0, !0)
531
531
  ]),
532
532
  key: "4"
533
533
  } : void 0,
534
534
  t.$slots.optionFullscreen ? {
535
535
  name: "optionFullscreen",
536
- fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
536
+ fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
537
537
  g(t.$slots, "optionFullscreen", B(V({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
538
538
  ]),
539
539
  key: "5"
540
540
  } : void 0,
541
541
  t.$slots.optionAnnotator ? {
542
542
  name: "optionAnnotator",
543
- fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
543
+ fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
544
544
  g(t.$slots, "optionAnnotator", B(V({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
545
545
  ]),
546
546
  key: "6"
@@ -555,7 +555,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
555
555
  }, [
556
556
  ne(zt),
557
557
  x("defs", null, [
558
- (s(!0), r(_, null, O(n.value, (l, o) => (s(), r("radialGradient", {
558
+ (s(!0), r(C, null, O(n.value, (l, o) => (s(), r("radialGradient", {
559
559
  cx: "50%",
560
560
  cy: "50%",
561
561
  r: "50%",
@@ -582,11 +582,11 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
582
582
  height: "200%"
583
583
  }, Ht, 8, Et)
584
584
  ]),
585
- e.value.useCustomCells && n.value.length ? (s(!0), r(_, { key: 0 }, O(G.value, (l, o) => (s(), r("foreignObject", {
585
+ e.value.useCustomCells && n.value.length ? (s(!0), r(C, { key: 0 }, O(G.value, (l, o) => (s(), r("foreignObject", {
586
586
  x: l.x,
587
587
  y: l.y,
588
- height: T.value <= 0 ? 1e-4 : T.value,
589
- width: I.value <= 0 ? 1e-4 : I.value,
588
+ height: S.value <= 0 ? 1e-4 : S.value,
589
+ width: T.value <= 0 ? 1e-4 : T.value,
590
590
  class: "vue-ui-waffle-custom-cell-foreignObject"
591
591
  }, [
592
592
  g(t.$slots, "cell", B(V({ cell: { ...l, color: n.value[o].color, ...n.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : n.value[o].serieIndex === D.value })), void 0, !0)
@@ -595,53 +595,53 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
595
595
  key: 1,
596
596
  x: 12,
597
597
  y: 12,
598
- height: $.value.height - 24,
599
- width: $.value.width - 24,
598
+ height: I.value.height - 24,
599
+ width: I.value.width - 24,
600
600
  rx: 3,
601
601
  fill: "none",
602
602
  stroke: "black"
603
- }, null, 8, Yt)) : n.value.length && !e.value.useCustomCells ? (s(), r(_, { key: 2 }, [
603
+ }, null, 8, Yt)) : n.value.length && !e.value.useCustomCells ? (s(), r(C, { key: 2 }, [
604
604
  t.$slots.pattern ? (s(), r("g", Jt, [
605
- (s(!0), r(_, null, O(oe.value, (l) => (s(), r("defs", null, [
605
+ (s(!0), r(C, null, O(oe.value, (l) => (s(), r("defs", null, [
606
606
  g(t.$slots, "pattern", B(V({ seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` })), void 0, !0)
607
607
  ]))), 256))
608
608
  ])) : y("", !0),
609
- (s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
609
+ (s(!0), r(C, null, O(G.value, (l, o) => (s(), r("rect", {
610
610
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
611
611
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
612
612
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
613
- height: T.value <= 0 ? 1e-4 : T.value,
614
- width: I.value <= 0 ? 1e-4 : I.value,
613
+ height: S.value <= 0 ? 1e-4 : S.value,
614
+ width: T.value <= 0 ? 1e-4 : T.value,
615
615
  fill: "white",
616
616
  stroke: e.value.style.chart.layout.rect.stroke,
617
617
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
618
618
  filter: Q(n.value[o].serieIndex)
619
619
  }, null, 8, Kt))), 256)),
620
- (s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
620
+ (s(!0), r(C, null, O(G.value, (l, o) => (s(), r("rect", {
621
621
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
622
622
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
623
623
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
624
- height: T.value <= 0 ? 1e-4 : T.value,
625
- width: I.value <= 0 ? 1e-4 : I.value,
624
+ height: S.value <= 0 ? 1e-4 : S.value,
625
+ width: T.value <= 0 ? 1e-4 : T.value,
626
626
  fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : n.value[o].color,
627
627
  stroke: e.value.style.chart.layout.rect.stroke,
628
628
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
629
629
  filter: Q(n.value[o].serieIndex)
630
630
  }, null, 8, Qt))), 256)),
631
631
  t.$slots.pattern ? (s(), r("g", Zt, [
632
- (s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
632
+ (s(!0), r(C, null, O(G.value, (l, o) => (s(), r("rect", {
633
633
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
634
634
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
635
635
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
636
- height: T.value <= 0 ? 1e-4 : T.value,
637
- width: I.value <= 0 ? 1e-4 : I.value,
636
+ height: S.value <= 0 ? 1e-4 : S.value,
637
+ width: T.value <= 0 ? 1e-4 : T.value,
638
638
  fill: `url(#pattern_${k.value}_${n.value[o].absoluteIndex})`,
639
639
  stroke: "none",
640
640
  filter: Q(n.value[o].serieIndex)
641
641
  }, null, 8, el))), 256))
642
642
  ])) : y("", !0)
643
643
  ], 64)) : y("", !0),
644
- (s(!0), r(_, null, O(G.value, (l, o) => (s(), r(_, null, [
644
+ (s(!0), r(C, null, O(G.value, (l, o) => (s(), r(C, null, [
645
645
  n.value.length && !z.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (n.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || n.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && n.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
646
646
  key: 0,
647
647
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -654,12 +654,12 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
654
654
  class: "vue-ui-waffle-caption",
655
655
  style: X(`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 ${q.value / 12}px;color:${c(gt)(n.value[o].color)};gap:2px`)
656
656
  }, [
657
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ll, A(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? c(mt)({ source: n.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : n.value[o].name) + ": ", 1)) : y("", !0),
658
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", al, A(c(C)({ v: n.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
657
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ll, A(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? c(bt)({ source: n.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : n.value[o].name) + ": ", 1)) : y("", !0),
658
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", al, A(c($)({ v: n.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
659
659
  e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ol, " (" + A(c(E)(
660
660
  e.value.style.chart.layout.labels.dataLabels.formatter,
661
661
  n.value[o].value,
662
- c(C)({
662
+ c($)({
663
663
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
664
664
  v: n.value[o].value,
665
665
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -670,7 +670,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
670
670
  !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, A(c(E)(
671
671
  e.value.style.chart.layout.labels.dataLabels.formatter,
672
672
  n.value[o].value,
673
- c(C)({
673
+ c($)({
674
674
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
675
675
  v: n.value[o].value,
676
676
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -681,7 +681,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
681
681
  ], 4)
682
682
  ], 8, tl)) : y("", !0)
683
683
  ], 64))), 256)),
684
- (s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
684
+ (s(!0), r(C, null, O(G.value, (l, o) => (s(), r("rect", {
685
685
  onMouseover: (u) => Ze(o),
686
686
  onMouseleave: a[0] || (a[0] = (u) => {
687
687
  te.value = !1, D.value = null;
@@ -720,7 +720,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
720
720
  config: Qe.value,
721
721
  onClickMarker: a[1] || (a[1] = ({ legend: l }) => Oe(l.uid))
722
722
  }, Ve({
723
- item: m(({ legend: l }) => [
723
+ item: b(({ legend: l }) => [
724
724
  x("div", {
725
725
  onClick: (o) => l.segregate(),
726
726
  style: X(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
@@ -728,7 +728,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
728
728
  Me(A(l.name) + ": " + A(c(E)(
729
729
  e.value.style.chart.layout.labels.dataLabels.formatter,
730
730
  l.value,
731
- c(C)({
731
+ c($)({
732
732
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
733
733
  v: l.value,
734
734
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -737,14 +737,14 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
737
737
  }),
738
738
  { datapoint: l }
739
739
  )) + " ", 1),
740
- p.value.includes(l.uid) ? (s(), r("span", vl, " ( - % ) ")) : (s(), r("span", il, " (" + A(isNaN(l.value / S.value) ? "-" : c(C)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })) + ") ", 1))
740
+ p.value.includes(l.uid) ? (s(), r("span", vl, " ( - % ) ")) : (s(), r("span", il, " (" + A(isNaN(l.value / P.value) ? "-" : c($)({ v: l.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })) + ") ", 1))
741
741
  ], 12, nl)
742
742
  ]),
743
743
  _: 2
744
744
  }, [
745
745
  t.$slots.pattern ? {
746
746
  name: "legend-pattern",
747
- fn: m(({ legend: l, index: o }) => [
747
+ fn: b(({ legend: l, index: o }) => [
748
748
  ne(Vt, {
749
749
  shape: l.shape,
750
750
  radius: 30,
@@ -769,7 +769,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
769
769
  g(t.$slots, "source", {}, void 0, !0)
770
770
  ], 512)) : y("", !0),
771
771
  ne(Pt, {
772
- show: L.value.showTooltip && te.value && p.value.length < b.dataset.length,
772
+ show: _.value.showTooltip && te.value && p.value.length < m.dataset.length,
773
773
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
774
774
  color: e.value.style.chart.tooltip.color,
775
775
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -784,10 +784,10 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
784
784
  fontSize: e.value.style.chart.tooltip.fontSize,
785
785
  isFullscreen: j.value
786
786
  }, {
787
- "tooltip-before": m(() => [
787
+ "tooltip-before": b(() => [
788
788
  g(t.$slots, "tooltip-before", B(V({ ...ue.value })), void 0, !0)
789
789
  ]),
790
- "tooltip-after": m(() => [
790
+ "tooltip-after": b(() => [
791
791
  g(t.$slots, "tooltip-after", B(V({ ...ue.value })), void 0, !0)
792
792
  ]),
793
793
  _: 3
@@ -796,7 +796,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
796
796
  key: 8,
797
797
  hideDetails: "",
798
798
  config: {
799
- open: L.value.showTable,
799
+ open: _.value.showTable,
800
800
  maxHeight: 1e4,
801
801
  body: {
802
802
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -808,7 +808,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
808
808
  }
809
809
  }
810
810
  }, {
811
- content: m(() => [
811
+ content: b(() => [
812
812
  (s(), N(Lt, {
813
813
  key: `table_${fe.value}`,
814
814
  colNames: Z.value.colNames,
@@ -816,15 +816,15 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
816
816
  body: Z.value.body,
817
817
  config: Z.value.config,
818
818
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
819
- onClose: a[2] || (a[2] = (l) => L.value.showTable = !1)
819
+ onClose: a[2] || (a[2] = (l) => _.value.showTable = !1)
820
820
  }, {
821
- th: m(({ th: l }) => [
821
+ th: b(({ th: l }) => [
822
822
  x("div", {
823
823
  innerHTML: l,
824
824
  style: { display: "flex", "align-items": "center" }
825
825
  }, null, 8, cl)
826
826
  ]),
827
- td: m(({ td: l }) => [
827
+ td: b(({ td: l }) => [
828
828
  Me(A(l.name || l), 1)
829
829
  ]),
830
830
  _: 1
@@ -834,7 +834,7 @@ const Ue = (W) => (ut("data-v-2719a41f"), W = W(), st(), W), Dt = ["id"], Ut = [
834
834
  }, 8, ["config"])) : y("", !0)
835
835
  ], 46, Dt));
836
836
  }
837
- }, Pl = /* @__PURE__ */ Mt(dl, [["__scopeId", "data-v-2719a41f"]]);
837
+ }, Pl = /* @__PURE__ */ Mt(dl, [["__scopeId", "data-v-69bc0197"]]);
838
838
  export {
839
839
  Pl as default
840
840
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DqxDpUy0.cjs"),W=require("./Title-D3kX1BVl.cjs"),E=require("./usePrinter-BC7U4s0U.cjs"),M=require("./useResponsive-BJ7DTGpm.cjs"),J=require("./vue-ui-skeleton-qIxxRRaX.cjs"),q=require("./useNestedProp-DNWKDmdP.cjs"),K=require("./PackageVersion-B5rBHZEb.cjs"),Q=require("./PenAndPaper-5OV7IAca.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["width","height"],le=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ae=["cx","cy","r","stroke","stroke-width"],re=["x","y","font-size","fill","font-weight"],se={key:5,class:"vue-data-ui-watermark"},ue={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(T,{expose:V}){const c=T,{vue_ui_wheel:U}=s.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>_(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:N}=Z.useUserOptionState({config:t.value});function _(){const n=q.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...q.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=_(),m.value=!t.value.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:O,isImaging:x,generatePdf:A,generateImage:$}=E.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function I(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=M.throttle(()=>{const{width:r,height:o}=M.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});requestAnimationFrame(()=>{l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)})});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const j=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:H,y:X}=I(l.value.size/100*o),{x:D,y:Y}=I(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:H,y1:X,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function G(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return V({generatePdf:A,generateImage:$,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,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%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(N)||e.unref(m))?(e.openBlock(),e.createBlock(E.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:G,onGeneratePdf:e.unref(A),onGenerateImage:e.unref($),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),n.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(n.$slots,"chart-background",{},void 0,!0)],8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.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&&u<=a.value})},null,10,le))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.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(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,re)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ie=ee._export_sfc(ue,[["__scopeId","data-v-62587f68"]]);exports.default=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-xEXHnOtJ.cjs"),W=require("./Title-DcTKT_WK.cjs"),E=require("./usePrinter-CjQvMB0_.cjs"),M=require("./useResponsive-BJ7DTGpm.cjs"),J=require("./vue-ui-skeleton-Tse1D8cv.cjs"),q=require("./useNestedProp-LNEDZsGq.cjs"),K=require("./PackageVersion-BgKxrHv-.cjs"),Q=require("./PenAndPaper-BYVZ33fz.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["width","height"],le=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ae=["cx","cy","r","stroke","stroke-width"],re=["x","y","font-size","fill","font-weight"],se={key:5,class:"vue-data-ui-watermark"},ue={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(T,{expose:V}){const c=T,{vue_ui_wheel:U}=s.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>_(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:N}=Z.useUserOptionState({config:t.value});function _(){const n=q.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...q.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=_(),m.value=!t.value.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:O,isImaging:x,generatePdf:A,generateImage:$}=E.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function I(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=M.throttle(()=>{const{width:r,height:o}=M.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});requestAnimationFrame(()=>{l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)})});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const j=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:H,y:X}=I(l.value.size/100*o),{x:D,y:Y}=I(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:H,y1:X,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function G(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return V({generatePdf:A,generateImage:$,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,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%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(N)||e.unref(m))?(e.openBlock(),e.createBlock(E.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:G,onGeneratePdf:e.unref(A),onGenerateImage:e.unref($),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),n.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(n.$slots,"chart-background",{},void 0,!0)],8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.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&&u<=a.value})},null,10,le))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.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(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,re)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ie=ee._export_sfc(ue,[["__scopeId","data-v-62587f68"]]);exports.default=ie;