vue-data-ui 2.6.41 → 2.6.43

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 (199) hide show
  1. package/dist/{Arrow-CzwnuhQC.js → Arrow-Bz8n6ycZ.js} +1 -1
  2. package/dist/{Arrow-j4Npojhv.cjs → Arrow-C0LFlY5e.cjs} +1 -1
  3. package/dist/{BaseIcon-lwGFy7CI.cjs → BaseIcon-Bolmn50v.cjs} +1 -1
  4. package/dist/{BaseIcon-DyOT6PYJ.js → BaseIcon-BySu2V3d.js} +1 -1
  5. package/dist/{ColorPicker-BiTtlEx1.cjs → ColorPicker-DUYztfXY.cjs} +1 -1
  6. package/dist/{ColorPicker-DHXRDP2o.js → ColorPicker-DxSpy5e2.js} +3 -3
  7. package/dist/{DataTable-B8Vnlflz.js → DataTable-C5EKEHsp.js} +2 -2
  8. package/dist/{DataTable-CX-Mdafj.cjs → DataTable-DLUrhKkw.cjs} +1 -1
  9. package/dist/{Legend-DgyuPw1G.cjs → Legend-CHEbsxt2.cjs} +1 -1
  10. package/dist/{Legend-Bw9vX_fW.js → Legend-DSzoXS-3.js} +2 -2
  11. package/dist/{PackageVersion-CvpIoiav.cjs → PackageVersion-B6sWtTA0.cjs} +1 -1
  12. package/dist/{PackageVersion-C6hdi5vE.js → PackageVersion-BtrpyUPC.js} +1 -1
  13. package/dist/{PenAndPaper-5L5c2K-j.cjs → PenAndPaper-DO7-xSYx.cjs} +1 -1
  14. package/dist/{PenAndPaper-DBNdemyU.js → PenAndPaper-zjBsZuuq.js} +3 -3
  15. package/dist/{Shape-CcQr04tT.js → Shape-DzIamXsi.js} +1 -1
  16. package/dist/{Shape-my_oX1r-.cjs → Shape-_vXgfvZP.cjs} +1 -1
  17. package/dist/{Slicer-CJT21pOl.js → Slicer-DfOxim5W.js} +2 -2
  18. package/dist/{Slicer-Dpuspld0.cjs → Slicer-oUyDkRff.cjs} +1 -1
  19. package/dist/{Title-Dfjx2pT6.js → Title-BS1zFx79.js} +1 -1
  20. package/dist/{Title-CnyZaLp0.cjs → Title-BuZQSd23.cjs} +1 -1
  21. package/dist/{Tooltip-C3kzKkai.js → Tooltip-BNOd4lK1.js} +1 -1
  22. package/dist/{Tooltip-V6vr6k8X.cjs → Tooltip-BiBcMMP3.cjs} +1 -1
  23. package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
  24. package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
  25. package/dist/img-BIeSHu0f.js +15 -0
  26. package/dist/img-D6uvziU0.cjs +1 -0
  27. package/dist/{index-BAPUY6BW.js → index-CzjsUYng.js} +19 -2
  28. package/dist/index-Zf2fUMIO.cjs +9 -0
  29. package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
  30. package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
  31. package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
  32. package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
  33. package/dist/pdf-BpXLKlRx.cjs +1 -0
  34. package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
  35. package/dist/style.css +1 -1
  36. package/dist/types/vue-data-ui.d.cts +17 -0
  37. package/dist/types/vue-data-ui.d.ts +17 -0
  38. package/dist/{useNestedProp-Ch_Tbu0f.cjs → useNestedProp-BcSwG6N0.cjs} +1 -1
  39. package/dist/{useNestedProp-X5u-cjpn.js → useNestedProp-RC28MVml.js} +1 -1
  40. package/dist/{usePrinter-BJ8ChcXf.cjs → usePrinter-BGPa8G48.cjs} +1 -1
  41. package/dist/{usePrinter-BsXYrX84.js → usePrinter-CUsjlfpk.js} +125 -122
  42. package/dist/{vue-data-ui-CZG3ODq3.cjs → vue-data-ui-BjDb6Vux.cjs} +1 -1
  43. package/dist/{vue-data-ui-OBrcs0EY.js → vue-data-ui-UWKC8R6X.js} +61 -61
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +1 -1
  46. package/dist/{vue-ui-3d-bar-BRhfbpJd.js → vue-ui-3d-bar-5IdXbLb9.js} +55 -54
  47. package/dist/{vue-ui-3d-bar-BOUSglv4.cjs → vue-ui-3d-bar-WS8tL_FC.cjs} +8 -8
  48. package/dist/{vue-ui-accordion-BS_katXk.cjs → vue-ui-accordion-CnGQYWdI.cjs} +1 -1
  49. package/dist/{vue-ui-accordion-Dm7ZlylJ.js → vue-ui-accordion-ConQex-C.js} +3 -3
  50. package/dist/{vue-ui-age-pyramid-CBtPdObD.js → vue-ui-age-pyramid-CP6Fd6zD.js} +13 -12
  51. package/dist/vue-ui-age-pyramid-CehCcwLC.cjs +1 -0
  52. package/dist/{vue-ui-annotator-Rb7-Ig4d.js → vue-ui-annotator-C5NyXYkj.js} +3 -3
  53. package/dist/{vue-ui-annotator-B8HvCy1u.cjs → vue-ui-annotator-CZ1F-VY2.cjs} +1 -1
  54. package/dist/{vue-ui-bullet-C7ftUjYQ.js → vue-ui-bullet-DKqr4Rcd.js} +11 -10
  55. package/dist/vue-ui-bullet-Djg_HER0.cjs +34 -0
  56. package/dist/{vue-ui-candlestick-DY4EKJPX.cjs → vue-ui-candlestick-BU9MfLPt.cjs} +2 -2
  57. package/dist/{vue-ui-candlestick-D_osh2qN.js → vue-ui-candlestick-DtVpSOzB.js} +14 -13
  58. package/dist/{vue-ui-carousel-table-M72bzy85.js → vue-ui-carousel-table-CYcrhcdv.js} +7 -6
  59. package/dist/vue-ui-carousel-table-EhzhIcW2.cjs +1 -0
  60. package/dist/{vue-ui-chestnut-BdHd-Juu.cjs → vue-ui-chestnut-C3UVgMQo.cjs} +2 -2
  61. package/dist/{vue-ui-chestnut-i7EtBpLY.js → vue-ui-chestnut-D5LH5zdq.js} +37 -36
  62. package/dist/{vue-ui-circle-pack-BC1uScHe.js → vue-ui-circle-pack-BL753_Uo.js} +14 -13
  63. package/dist/vue-ui-circle-pack-CJNBxO1N.cjs +1 -0
  64. package/dist/{vue-ui-cursor-B06MWQUK.cjs → vue-ui-cursor-B2MxKYNM.cjs} +1 -1
  65. package/dist/{vue-ui-cursor-eJ2ExkFm.js → vue-ui-cursor-Fe70t9Bl.js} +2 -2
  66. package/dist/{vue-ui-dashboard-m-sB4TXH.cjs → vue-ui-dashboard-C11-dJEl.cjs} +1 -1
  67. package/dist/{vue-ui-dashboard-BAwwet8B.js → vue-ui-dashboard-QOSGNhC9.js} +3 -3
  68. package/dist/{vue-ui-digits-B6ivU7b9.js → vue-ui-digits-C5D_xk6r.js} +2 -2
  69. package/dist/{vue-ui-digits-C5jmpiTL.cjs → vue-ui-digits-H19fVeIu.cjs} +1 -1
  70. package/dist/{vue-ui-donut-DtZ-n8vd.js → vue-ui-donut-Bd1mIoux.js} +15 -14
  71. package/dist/vue-ui-donut-CwJg0emK.cjs +1 -0
  72. package/dist/{vue-ui-donut-evolution-VJpinb_g.js → vue-ui-donut-evolution-CFQ4lMWd.js} +45 -44
  73. package/dist/vue-ui-donut-evolution-DTjfMlNh.cjs +1 -0
  74. package/dist/vue-ui-dumbbell-CBsxNWVV.cjs +9 -0
  75. package/dist/{vue-ui-dumbbell-EoH10k2D.js → vue-ui-dumbbell-KJd6G5qD.js} +43 -42
  76. package/dist/vue-ui-flow-D3gtil-H.cjs +1 -0
  77. package/dist/{vue-ui-flow-B-xWkgVv.js → vue-ui-flow-DAxMQfhu.js} +53 -52
  78. package/dist/vue-ui-funnel-CkCNCQ1F.cjs +1 -0
  79. package/dist/{vue-ui-funnel-hdajl9CD.js → vue-ui-funnel-PvEDGsfj.js} +13 -12
  80. package/dist/{vue-ui-galaxy-CeqCjd4V.js → vue-ui-galaxy-DfAfjTDr.js} +31 -30
  81. package/dist/vue-ui-galaxy-DjeZUCuE.cjs +1 -0
  82. package/dist/vue-ui-gauge-BfDY3XHF.cjs +1 -0
  83. package/dist/{vue-ui-gauge-BSuGWZEY.js → vue-ui-gauge-DBGqwPZs.js} +36 -35
  84. package/dist/{vue-ui-gizmo-VFwChXXf.js → vue-ui-gizmo-BT0DknqD.js} +3 -3
  85. package/dist/{vue-ui-gizmo-D_J2R5JU.cjs → vue-ui-gizmo-yWBMeY1e.cjs} +1 -1
  86. package/dist/vue-ui-heatmap-Bkd2G7uW.cjs +1 -0
  87. package/dist/{vue-ui-heatmap-DAeCu-iM.js → vue-ui-heatmap-D_Tr1Hot.js} +73 -72
  88. package/dist/vue-ui-history-plot-B-VBGxRa.cjs +1 -0
  89. package/dist/{vue-ui-history-plot-Caty-SWt.js → vue-ui-history-plot-BG4nMlp7.js} +33 -32
  90. package/dist/{vue-ui-kpi-Bu24xnG8.cjs → vue-ui-kpi-LMze0lWI.cjs} +1 -1
  91. package/dist/{vue-ui-kpi-B2WcjLWP.js → vue-ui-kpi-WqBG4upX.js} +3 -3
  92. package/dist/{vue-ui-mini-loader-BgW5M00P.cjs → vue-ui-mini-loader-CoVSw6EU.cjs} +1 -1
  93. package/dist/{vue-ui-mini-loader-B8QzxySW.js → vue-ui-mini-loader-eRXubESG.js} +2 -2
  94. package/dist/{vue-ui-molecule-Ds0uou9B.js → vue-ui-molecule-BcpPXHgo.js} +13 -12
  95. package/dist/vue-ui-molecule-Cu6_FpHD.cjs +1 -0
  96. package/dist/{vue-ui-mood-radar-DMrAwNQa.js → vue-ui-mood-radar-CBFN1PfU.js} +14 -13
  97. package/dist/vue-ui-mood-radar-DlTYq1OE.cjs +1 -0
  98. package/dist/{vue-ui-nested-donuts-FSCi4a9f.js → vue-ui-nested-donuts-Cq0PWd1N.js} +14 -13
  99. package/dist/{vue-ui-nested-donuts-3orKF1Fi.cjs → vue-ui-nested-donuts-c6Dc8R-H.cjs} +2 -2
  100. package/dist/{vue-ui-onion-YWVe7eaq.js → vue-ui-onion-BFDD4SN8.js} +14 -13
  101. package/dist/{vue-ui-onion-CiXgGubD.cjs → vue-ui-onion-Bd2D2Vld.cjs} +2 -2
  102. package/dist/{vue-ui-parallel-coordinate-plot-DeZ2tt1O.cjs → vue-ui-parallel-coordinate-plot-BTCld26y.cjs} +2 -2
  103. package/dist/{vue-ui-parallel-coordinate-plot-C8vxLtTa.js → vue-ui-parallel-coordinate-plot-YF_ssmB7.js} +35 -34
  104. package/dist/vue-ui-quadrant-B659Q5iR.cjs +1 -0
  105. package/dist/{vue-ui-quadrant-DmDoysAq.js → vue-ui-quadrant-BeEBWrsG.js} +15 -14
  106. package/dist/{vue-ui-quick-chart-CwJe7rJt.js → vue-ui-quick-chart-Ba6-ZZk9.js} +12 -11
  107. package/dist/{vue-ui-quick-chart-BgSeWNxv.cjs → vue-ui-quick-chart-w0LaPcFd.cjs} +2 -2
  108. package/dist/vue-ui-radar-DAUGZC3X.cjs +1 -0
  109. package/dist/{vue-ui-radar-Bo9SbfBN.js → vue-ui-radar-Dgu656_F.js} +15 -14
  110. package/dist/{vue-ui-rating-DPs6BKf1.js → vue-ui-rating-BIk1Ip7B.js} +2 -2
  111. package/dist/{vue-ui-rating-CqY6A4WX.cjs → vue-ui-rating-BPgLpyoa.cjs} +1 -1
  112. package/dist/{vue-ui-relation-circle-3Al_2yf1.js → vue-ui-relation-circle-CUU2Y66i.js} +13 -12
  113. package/dist/vue-ui-relation-circle-Dz_Du_5e.cjs +1 -0
  114. package/dist/{vue-ui-rings-DOlqslSN.cjs → vue-ui-rings-B7kPmx8M.cjs} +2 -2
  115. package/dist/{vue-ui-rings-D9_ClLdg.js → vue-ui-rings-DnZ3fSvL.js} +15 -14
  116. package/dist/{vue-ui-scatter-DFDHrRyc.js → vue-ui-scatter-Cej6ox0t.js} +15 -14
  117. package/dist/vue-ui-scatter-GfJALpzt.cjs +1 -0
  118. package/dist/{vue-ui-screenshot-R1IzXCqt.js → vue-ui-screenshot-B4HNd362.js} +2 -2
  119. package/dist/{vue-ui-screenshot-BWVTxKN_.cjs → vue-ui-screenshot-DkuLYple.cjs} +1 -1
  120. package/dist/{vue-ui-skeleton-Dn9J8aVW.cjs → vue-ui-skeleton-CiGqKHDK.cjs} +1 -1
  121. package/dist/{vue-ui-skeleton-DBfQG5lC.js → vue-ui-skeleton-XUKIcV-3.js} +3 -3
  122. package/dist/{vue-ui-smiley-CLv8dmnr.js → vue-ui-smiley-BUgxzenz.js} +2 -2
  123. package/dist/{vue-ui-smiley-DQ7I4CcQ.cjs → vue-ui-smiley-Dfo5zjHi.cjs} +1 -1
  124. package/dist/{vue-ui-spark-trend-B0qbQaxj.js → vue-ui-spark-trend-CvsL1wxJ.js} +5 -5
  125. package/dist/{vue-ui-spark-trend-Drp1E7DH.cjs → vue-ui-spark-trend-EK-zZg4U.cjs} +1 -1
  126. package/dist/{vue-ui-sparkbar-DYW_BgkY.cjs → vue-ui-sparkbar-CvWbFKnW.cjs} +1 -1
  127. package/dist/{vue-ui-sparkbar-Bz_QHNKp.js → vue-ui-sparkbar-QL_FFOna.js} +4 -4
  128. package/dist/{vue-ui-sparkgauge-C6tB0nl4.cjs → vue-ui-sparkgauge-CX9L1CCZ.cjs} +1 -1
  129. package/dist/{vue-ui-sparkgauge-5EIHFUiW.js → vue-ui-sparkgauge-g51bSap-.js} +4 -4
  130. package/dist/{vue-ui-sparkhistogram-KIw7nvKd.cjs → vue-ui-sparkhistogram-C_RkgtwV.cjs} +1 -1
  131. package/dist/{vue-ui-sparkhistogram-COdCqBiI.js → vue-ui-sparkhistogram-TwShrJAd.js} +5 -5
  132. package/dist/{vue-ui-sparkline-CXIdKGso.cjs → vue-ui-sparkline-B-1mFAFf.cjs} +1 -1
  133. package/dist/{vue-ui-sparkline-DgUc7CMn.js → vue-ui-sparkline-PoXP19tk.js} +4 -4
  134. package/dist/{vue-ui-sparkstackbar-MrQzEVeh.cjs → vue-ui-sparkstackbar-BtOZ3Xvo.cjs} +1 -1
  135. package/dist/{vue-ui-sparkstackbar-BUqauQMd.js → vue-ui-sparkstackbar-C6K5d1a8.js} +5 -5
  136. package/dist/{vue-ui-stackbar-BUJpFyA3.cjs → vue-ui-stackbar-DP0kLFaZ.cjs} +2 -2
  137. package/dist/{vue-ui-stackbar-C-i36fcc.js → vue-ui-stackbar-DoAp1q1k.js} +16 -15
  138. package/dist/vue-ui-strip-plot-C6r7wmgw.cjs +1 -0
  139. package/dist/{vue-ui-strip-plot-Dc82V8Qo.js → vue-ui-strip-plot-DFyDRMeJ.js} +14 -13
  140. package/dist/{vue-ui-table-0E7zmWIW.cjs → vue-ui-table-BoFUMpxE.cjs} +2 -2
  141. package/dist/{vue-ui-table-DnAzCFyM.js → vue-ui-table-COQQvYVK.js} +1 -1
  142. package/dist/{vue-ui-table-heatmap-CzwyhRmp.js → vue-ui-table-heatmap-D1a4Jbfq.js} +9 -8
  143. package/dist/vue-ui-table-heatmap-DEmDa6Mg.cjs +1 -0
  144. package/dist/{vue-ui-table-sparkline-BU4he5wL.js → vue-ui-table-sparkline-CH1R9R6a.js} +9 -8
  145. package/dist/vue-ui-table-sparkline-bsEJsgny.cjs +1 -0
  146. package/dist/vue-ui-thermometer-1Gl2tpWy.cjs +1 -0
  147. package/dist/{vue-ui-thermometer-uShXro0_.js → vue-ui-thermometer-CZIBISGi.js} +26 -25
  148. package/dist/{vue-ui-timer-D6L29mt9.js → vue-ui-timer-CL0vPqGn.js} +5 -5
  149. package/dist/{vue-ui-timer-C8qXGSrQ.cjs → vue-ui-timer-DXZ_7lOR.cjs} +1 -1
  150. package/dist/vue-ui-tiremarks-D8rdzzQb.cjs +1 -0
  151. package/dist/{vue-ui-tiremarks-BcjGqJn-.js → vue-ui-tiremarks-DdwzlfZg.js} +20 -19
  152. package/dist/{vue-ui-treemap-BpB4ofIX.js → vue-ui-treemap-B3N6hzO2.js} +14 -13
  153. package/dist/vue-ui-treemap-CTcY1Qxh.cjs +1 -0
  154. package/dist/{vue-ui-vertical-bar-CEIg-_SG.js → vue-ui-vertical-bar-BOpex-Xq.js} +16 -15
  155. package/dist/{vue-ui-vertical-bar-Q5ArQTC0.cjs → vue-ui-vertical-bar-pwqVkPXV.cjs} +3 -3
  156. package/dist/vue-ui-waffle-Bd_6bbdt.cjs +1 -0
  157. package/dist/{vue-ui-waffle-h8UbPcuC.js → vue-ui-waffle-CW6THuE8.js} +15 -14
  158. package/dist/{vue-ui-wheel-BhLEyhW_.js → vue-ui-wheel-9xdDEq_q.js} +10 -9
  159. package/dist/vue-ui-wheel-BO3Xqux3.cjs +1 -0
  160. package/dist/vue-ui-word-cloud-CJjvWjsc.cjs +1 -0
  161. package/dist/{vue-ui-word-cloud-oa6Tnt3L.js → vue-ui-word-cloud-DAlBxzeY.js} +39 -38
  162. package/dist/vue-ui-xy-BIBSJN48.cjs +3 -0
  163. package/dist/{vue-ui-xy-CXY00bkP.js → vue-ui-xy-CDGKX79V.js} +21 -19
  164. package/dist/{vue-ui-xy-canvas-Ce4kC0Xz.cjs → vue-ui-xy-canvas-BN7OU1Ak.cjs} +2 -2
  165. package/dist/{vue-ui-xy-canvas-DapzRtyI.js → vue-ui-xy-canvas-C8YlVwjI.js} +111 -110
  166. package/package.json +2 -2
  167. package/dist/img-BPGizWpM.cjs +0 -1
  168. package/dist/img-itj0Vdmx.js +0 -15
  169. package/dist/index-CVZp-EFm.cjs +0 -9
  170. package/dist/pdf-DSkQT5iH.cjs +0 -1
  171. package/dist/vue-ui-age-pyramid-Bt_wuZiO.cjs +0 -1
  172. package/dist/vue-ui-bullet-BlYz0H5Q.cjs +0 -34
  173. package/dist/vue-ui-carousel-table-DHN5NuUS.cjs +0 -1
  174. package/dist/vue-ui-circle-pack-rf-DQQuM.cjs +0 -1
  175. package/dist/vue-ui-donut-GBs-eAbp.cjs +0 -1
  176. package/dist/vue-ui-donut-evolution-DdDVkeuH.cjs +0 -1
  177. package/dist/vue-ui-dumbbell-94nsg3t1.cjs +0 -9
  178. package/dist/vue-ui-flow-Ddn2S7NR.cjs +0 -1
  179. package/dist/vue-ui-funnel-Iawza5lZ.cjs +0 -1
  180. package/dist/vue-ui-galaxy-BoiBmzst.cjs +0 -1
  181. package/dist/vue-ui-gauge-B4aBDTfP.cjs +0 -1
  182. package/dist/vue-ui-heatmap-BNlBRWi1.cjs +0 -1
  183. package/dist/vue-ui-history-plot-BcjI3J96.cjs +0 -1
  184. package/dist/vue-ui-molecule-WPdx8i08.cjs +0 -1
  185. package/dist/vue-ui-mood-radar-D45uj8xo.cjs +0 -1
  186. package/dist/vue-ui-quadrant-LTIGWJiO.cjs +0 -1
  187. package/dist/vue-ui-radar-CblS9X1n.cjs +0 -1
  188. package/dist/vue-ui-relation-circle-COYe9dsQ.cjs +0 -1
  189. package/dist/vue-ui-scatter-DQhoY0TK.cjs +0 -1
  190. package/dist/vue-ui-strip-plot-BLECfP0D.cjs +0 -1
  191. package/dist/vue-ui-table-heatmap-BHSksmMn.cjs +0 -1
  192. package/dist/vue-ui-table-sparkline-BoVrzVok.cjs +0 -1
  193. package/dist/vue-ui-thermometer-DeJpqEix.cjs +0 -1
  194. package/dist/vue-ui-tiremarks-CQ4yESxv.cjs +0 -1
  195. package/dist/vue-ui-treemap-DbTCrAmK.cjs +0 -1
  196. package/dist/vue-ui-waffle-B61yE93N.cjs +0 -1
  197. package/dist/vue-ui-wheel-Chc9pVEu.cjs +0 -1
  198. package/dist/vue-ui-word-cloud-Cq6mmJVo.cjs +0 -1
  199. package/dist/vue-ui-xy-Brt11wmo.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Zf2fUMIO.cjs"),le=require("./useNestedProp-BcSwG6N0.cjs"),ae=require("./usePrinter-BGPa8G48.cjs"),Ce=require("./PackageVersion-B6sWtTA0.cjs"),we=require("./Legend-CHEbsxt2.cjs"),Be=require("./Title-BuZQSd23.cjs"),Se=require("./Tooltip-BiBcMMP3.cjs"),_e=require("./DataTable-DLUrhKkw.cjs"),Ne=require("./vue-ui-accordion-CnGQYWdI.cjs"),ze=require("./PenAndPaper-DO7-xSYx.cjs"),$e=require("./vue-ui-skeleton-CiGqKHDK.cjs"),oe=require("./useResponsive-N8jl0-aC.cjs"),Le=require("./useUserOptionState-BgepsfED.cjs"),Ee=require("./useChartAccessibility-Cm7nkzTG.cjs"),Me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Ae=["xmlns","viewBox"],Pe=["x","y","width","height"],Ve={key:1},Fe=["id"],Oe=["stop-color"],De=["stop-color"],Ie=["stop-color"],Xe={key:2},qe=["x1","x2","y1","y2","stroke","stroke-width"],Ye={key:3},Re=["x","y","fill","font-size"],je=["transform","font-size","fill","font-weight"],Ue={key:5},He=["x1","x2","y1","y2","stroke","stroke-width"],We={key:6},Ge=["transform","fill","font-size","text-anchor"],Ze=["x","y","font-size","fill","font-weight"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["d","stroke","stroke-width"],et=["d","stroke","stroke-width"],tt=["cx","cy","fill","r"],lt=["cx","cy","fill","r","stroke","stroke-width"],at={key:1},ot=["x","y","font-size","fill","font-weight"],st={key:2},rt=["x","y","font-size","font-weight","fill"],nt=["cx","cy","r","onMouseenter","onClick"],it={key:5,class:"vue-data-ui-watermark"},ut=["onClick"],ct=["innerHTML"],vt={__name:"vue-ui-history-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(se,{expose:re,emit:ne}){const{vue_ui_history_plot:ie}=r.useConfig(),c=se,k=e.ref(null),M=e.ref(null),T=e.ref(0),A=e.ref(null),P=e.ref(0),V=e.ref(0),F=e.ref(0),w=e.ref(null),O=e.ref(null),b=e.ref(r.createUid()),N=e.ref(!1),z=e.ref(""),h=e.ref([]),B=e.ref(!1),m=e.ref(null),C=e.ref(!1),D=e.ref(null),y=e.computed({get:()=>!!c.dataset&&c.dataset.length,set:l=>l}),I=ne;e.onMounted(X),e.onBeforeUnmount(()=>{w.value&&w.value.disconnect()});function X(){if(r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiHistoryPlot",type:"dataset"}):c.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{y.value=!1,r.error({componentName:"VueUiHistoryPlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=oe.throttle(()=>{const{width:o,height:a}=oe.useResponsive({chart:k.value,title:t.value.style.chart.title.text?M.value:null,noTitle:O.value,legend:t.value.style.chart.legend.show?A.value:null,source:D.value});requestAnimationFrame(()=>{v.value.width=o,v.value.height=a,i.value.plots=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:3,fallback:3}),i.value.indexLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.indexLabels.fontSize,threshold:6,fallback:6}),i.value.labels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.name.fontSize,threshold:6,fallback:6}),i.value.yAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.labels.fontSize,threshold:6,fallback:6}),i.value.yAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.name.fontSize,threshold:6,fallback:6})})});w.value=new ResizeObserver(l),w.value.observe(k.value.parentNode)}}function q(){const l=le.useNestedProp({userConfig:c.config,defaultConfig:ie});let o={};return l.theme?o={...le.useNestedProp({userConfig:r.themes.vue_ui_history_plot[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:o=l,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMin")?o.style.chart.axes.x.scaleMin=c.config.style.chart.axes.x.scaleMin:o.style.chart.axes.x.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMax")?o.style.chart.axes.x.scaleMax=c.config.style.chart.axes.x.scaleMax:o.style.chart.axes.x.scaleMax=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMin")?o.style.chart.axes.y.scaleMin=c.config.style.chart.axes.y.scaleMin:o.style.chart.axes.y.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMax")?o.style.chart.axes.y.scaleMax=c.config.style.chart.axes.y.scaleMax:o.style.chart.axes.y.scaleMax=null,o}const t=e.computed({get:()=>q(),set:l=>l}),{userOptionsVisible:$,setUserOptionsVisibility:Y,keepUserOptionState:R}=Le.useUserOptionState({config:t.value}),{svgRef:j}=Ee.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>c.config,l=>{t.value=q(),$.value=!t.value.userOptions.showOnChartHover,X(),T.value+=1,V.value+=1,P.value+=1,v.value.height=t.value.style.chart.height,v.value.width=t.value.style.chart.width,i.value.plots=t.value.style.chart.plots.radius,i.value.indexLabels=t.value.style.chart.plots.indexLabels.fontSize,i.value.labels=t.value.style.chart.plots.labels.fontSize,i.value.xAxisLabels=t.value.style.chart.axes.x.labels.fontSize,i.value.xAxisName=t.value.style.chart.axes.x.name.fontSize,i.value.yAxisLabels=t.value.style.chart.axes.y.labels.fontSize,i.value.yAxisName=t.value.style.chart.axes.y.name.fontSize,f.value.showTable=t.value.table.show,f.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:U,isImaging:H,generatePdf:W,generateImage:G}=ae.usePrinter({elementId:`history_plot_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-history-plot",options:t.value.userOptions.print}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ce=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),f=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),v=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),n=e.computed(()=>{const l=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:l,top:o,right:v.value.width-t.value.style.chart.padding.right,bottom:v.value.height-t.value.style.chart.padding.bottom,width:v.value.width-l-t.value.style.chart.padding.right,height:v.value.height-o-t.value.style.chart.padding.bottom}}),i=e.ref({plots:t.value.style.chart.plots.radius,indexLabels:t.value.style.chart.plots.indexLabels.fontSize,labels:t.value.style.chart.plots.labels.fontSize,xAxisLabels:t.value.style.chart.axes.x.labels.fontSize,xAxisName:t.value.style.chart.axes.x.name.fontSize,yAxisLabels:t.value.style.chart.axes.y.labels.fontSize,yAxisName:t.value.style.chart.axes.y.name.fontSize}),x=e.computed(()=>y.value?c.dataset.map((l,o)=>({...l,color:l.color?r.convertColorToHex(l.color):ce.value[o]||r.palette[o]||r.palette[o%r.palette.length],seriesIndex:o})):[]),ve=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.x))):1),de=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.x)));return l<0?l:0}),he=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.y))):1),ye=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.y)));return l<0?l:0}),d=e.computed(()=>{const l=r.calculateNiceScale(t.value.style.chart.axes.x.scaleMin===null?de.value:t.value.style.chart.axes.x.scaleMin,t.value.style.chart.axes.x.scaleMax===null?ve.value:t.value.style.chart.axes.x.scaleMax,t.value.style.chart.axes.x.ticks),o=r.calculateNiceScale(t.value.style.chart.axes.y.scaleMin===null?ye.value:t.value.style.chart.axes.y.scaleMin,t.value.style.chart.axes.y.scaleMax===null?he.value:t.value.style.chart.axes.y.scaleMax,t.value.style.chart.axes.y.ticks);return{x:l,y:o,tickX:l.ticks.map(a=>({x:n.value.left+(a-l.min)/(l.max-l.min)*n.value.width,y1:n.value.top,y2:n.value.bottom,value:a})),tickY:o.ticks.map(a=>({y:n.value.bottom-(a-o.min)/(o.max-o.min)*n.value.height,x1:n.value.left,x2:n.value.right,value:a}))}});function fe(l){const o=d.value.x.min<0?Math.abs(d.value.x.min):d.value.x.min>0?-d.value.x.min:0;return n.value.left+((l||0)+o)/(d.value.x.max+o)*n.value.width}function pe(l){const o=d.value.y.min<0?Math.abs(d.value.y.min):d.value.y.min>0?-d.value.y.min:0;return n.value.bottom-((l||0)+o)/(d.value.y.max+o)*n.value.height}const g=e.computed(()=>x.value.filter(l=>!h.value.includes(l.seriesIndex)).map((l,o)=>{const a=l.values.map((s,p)=>({valueX:s.x,valueY:s.y,label:s.label,x:fe(s.x),y:pe(s.y),color:l.color,seriesName:l.name,id:r.createUid()})),u=a.map(s=>`${s.x},${s.y} `).join("").trim();return{...l,plots:a,path:`M${u}`}}));function Z(l){h.value.includes(l)?h.value=h.value.filter(o=>o!==l):h.value.push(l)}const J=e.computed(()=>x.value.map(l=>({...l,opacity:h.value.includes(l.seriesIndex)?.5:1,segregate:()=>Z(l.seriesIndex),isSegregated:h.value.includes(l.seriesIndex),shape:"circle"}))),me=e.computed(()=>({cy:"history-plot-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function xe(l){I("selectDatapoint",l)}function K(l){I("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function ge(l){B.value=l,F.value+=1}const L=e.ref(null);function ke({datapoint:l,plotIndex:o,seriesIndex:a}){L.value={datapoint:l,seriesIndex:a,plotIndex:o,config:t.value,series:x.value},m.value=l;const u=t.value.style.chart.tooltip.customFormat;if(C.value=!1,r.isFunction(u))try{const s=u({seriesIndex:a,datapoint:l,plotIndex:o,series:x.value,config:t.value});typeof s=="string"&&(z.value=s,C.value=!0)}catch{console.warn("Custom format cannot be applied."),C.value=!1}if(!C.value){let s="";s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg><span>${l.seriesName}</span></div>`,s+=`<div>${l.label}</div>`,s+=`<div>${t.value.style.chart.axes.x.name.text||"x"}: ${r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,l.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:l.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))}</div>`,s+=`<div>${t.value.style.chart.axes.y.name.text||"y"}: ${r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,l.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:l.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))}</div>`,z.value=`<div>${s}</div>`}N.value=!0}e.computed(()=>({head:g.value.map(o=>({name:o.name,color:o.color}))}));const S=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.datapoint,t.value.table.columnNames.x,t.value.table.columnNames.y],o=g.value.flatMap(u=>u.plots.map(s=>[{color:s.color,name:s.seriesName},s.label,r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,s.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:s.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding})),r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,s.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:s.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))])),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:o,config:a,colNames:l}});function Q(){e.nextTick(()=>{const l=[[t.value.table.columnNames.series],[t.value.table.columnNames.datapoint],[t.value.table.columnNames.x],[t.value.table.columnNames.y]],o=g.value.flatMap(s=>s.plots.map(p=>[[p.seriesName],[p.label],[p.valueX],[p.valueY]])),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],l].concat(o),u=r.createCsvContent(a);r.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-history-plot"})})}const _=e.ref(!1);function E(){_.value=!_.value}function ee(){f.value.showTable=!f.value.showTable}function te(){f.value.showTooltip=!f.value.showTooltip}function be(){return g.value}return re({getData:be,generatePdf:W,generateCsv:Q,generateImage:G,toggleTable:ee,toggleTooltip:te,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`history_plot_${b.value}`,ref_key:"historyPlotChart",ref:k,class:e.normalizeClass({"vue-ui-history-plot":!0,"vue-data-ui-wrapper-fullscreen":B.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(Y)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(Y)(!1))},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,svgRef:e.unref(j),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:E},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:O,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:M,class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.value.style.fontFamily}`)},[(e.openBlock(),e.createBlock(Be._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"history-plot-div-title",...t.value.style.chart.title},subtitle:{cy:"history-plot-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(R)||e.unref($))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(H),uid:b.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,chartElement:k.value,position:t.value.userOptions.position,isTooltip:f.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(W),onGenerateCsv:Q,onGenerateImage:e.unref(G),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(R)?e.unref($)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:u})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:u})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:u})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:j,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${v.value.width<0?.1:v.value.width} ${v.value.height<0?.1:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ce._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:n.value.left,y:n.value.top,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Pe)):e.createCommentVNode("",!0),t.value.style.chart.plots.gradient.show?(e.openBlock(),e.createElementBlock("defs",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${u}_${b.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Oe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ie)],8,Fe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalLines.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x,x2:a.x,y1:a.y1,y2:a.y2,stroke:t.value.style.chart.grid.verticalLines.stroke,"stroke-width":t.value.style.chart.grid.verticalLines.strokeWidth,"stroke-linecap":"round"},null,8,qe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.labels.show?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("text",{x:n.value.left+t.value.style.chart.axes.y.labels.offsetX-4,y:a.y+i.value.yAxisLabels/3,fill:t.value.style.chart.axes.y.labels.color,"font-size":i.value.yAxisLabels,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.y.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.y.labels.prefix,v:a.value,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))),9,Re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.name.text?(e.openBlock(),e.createElementBlock("text",{key:4,transform:`translate(${t.value.style.chart.axes.y.name.offsetX+i.value.yAxisName}, ${v.value.height/2+t.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,"font-size":i.value.yAxisName,fill:t.value.style.chart.axes.y.name.color,"font-weight":t.value.style.chart.axes.y.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.y.name.text),9,je)):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalLines.show?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.horizontalLines.stroke,"stroke-width":t.value.style.chart.grid.horizontalLines.strokeWidth,"stroke-linecap":"round"},null,8,He))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.labels.show?(e.openBlock(),e.createElementBlock("g",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("text",{transform:`translate(${a.x}, ${n.value.bottom+t.value.style.chart.axes.x.labels.offsetY+i.value.xAxisLabels}), rotate(${t.value.style.chart.axes.x.labels.rotation})`,fill:t.value.style.chart.axes.x.labels.color,"font-size":i.value.xAxisLabels,"text-anchor":t.value.style.chart.axes.x.labels.rotation>0?"start":t.value.style.chart.axes.x.labels.rotation<0?"end":"middle"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.x.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.x.labels.prefix,v:a.value,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))),9,Ge))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.name.text?(e.openBlock(),e.createElementBlock("text",{key:7,x:v.value.width/2+t.value.style.chart.axes.x.name.offsetX,y:v.value.height+t.value.style.chart.axes.x.name.offsetY,"font-size":i.value.xAxisName,fill:t.value.style.chart.axes.x.name.color,"font-weight":t.value.style.chart.axes.x.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.x.name.text),9,Ze)):e.createCommentVNode("",!0),t.value.style.chart.grid.xAxis.show?(e.openBlock(),e.createElementBlock("line",{key:8,x1:n.value.left,x2:n.value.left+n.value.width,y1:n.value.bottom,y2:n.value.bottom,stroke:t.value.style.chart.grid.xAxis.stroke,"stroke-width":t.value.style.chart.grid.xAxis.strokeWidth,"stroke-linecap":"round"},null,8,Je)):e.createCommentVNode("",!0),t.value.style.chart.grid.yAxis.show?(e.openBlock(),e.createElementBlock("line",{key:9,x1:n.value.left,x2:n.value.left,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.yAxis.stroke,"stroke-width":t.value.style.chart.grid.yAxis.strokeWidth,"stroke-linecap":"round"},null,8,Ke)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.paths.show?(e.openBlock(),e.createElementBlock("g",{key:0,style:e.normalizeStyle({opacity:m.value===null?1:.3})},[e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.paths.strokeWidth+4,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Qe),e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.paths.useSerieColor?a.color:t.value.style.chart.paths.stroke,"stroke-width":t.value.style.chart.paths.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,et)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.backgroundColor,r:i.value.plots,stroke:"none"},null,8,tt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.plots.gradient.show?`url(#gradient_${u}_${b.value})`:s.color,r:i.value.plots,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth,class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},null,14,lt))),256)),t.value.style.chart.plots.labels.show?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.labels.offsetX,y:s.y+t.value.style.chart.plots.labels.offsetY+i.value.plots+i.value.labels,"font-size":i.value.labels,fill:t.value.style.chart.plots.labels.color,"font-weight":t.value.style.chart.plots.labels.bold?"bold":"normal","text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(s.label),15,ot))),256))])):e.createCommentVNode("",!0),t.value.style.chart.plots.indexLabels.show?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,p)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.indexLabels.offsetX,y:s.y+t.value.style.chart.plots.indexLabels.offsetY+i.value.indexLabels/3,"font-size":i.value.indexLabels,"font-weight":t.value.style.chart.plots.indexLabels.bold?"bold":"normal",fill:t.value.style.chart.plots.indexLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(a.color):t.value.style.chart.plots.indexLabels.color,"text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(t.value.style.chart.plots.indexLabels.startAtZero?p:p+1),15,rt))),256))])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:"transparent",r:i.value.plots,stroke:"none",onMouseenter:p=>ke({datapoint:u,plotIndex:s,seriesIndex:a.seriesIndex}),onMouseleave:o[0]||(o[0]=p=>{N.value=!1,m.value=null}),onClick:()=>xe(u)},null,40,nt))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:v.value},void 0,!0)],12,Ae)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"historyPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,historyPlot:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show&&y.value?(e.openBlock(),e.createBlock(we.Legend,{key:`legend_${P.value}`,legendSet:J.value,config:me.value,onClickMarker:o[1]||(o[1]=({legend:a})=>{Z(a.seriesIndex),K(a)})},{item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:s=>{a.segregate(),K(a)},style:e.normalizeStyle(`opacity:${h.value.includes(a.seriesIndex)?.5:1}`)},e.toDisplayString(a.name),13,ut)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:J.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Se._sfc_main,{show:f.value.showTooltip&&N.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:z.value,isCustom:C.value,isFullscreen:B.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),y.value?(e.openBlock(),e.createBlock(Ne.default,{key:8,hideDetails:"",config:{open:f.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(_e.DataTable,{key:`table_${V.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>f.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,ct)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Te))}},dt=Me._export_sfc(vt,[["__scopeId","data-v-56983f81"]]);exports.default=dt;
@@ -1,20 +1,20 @@
1
- import { ref as c, computed as f, onMounted as We, onBeforeUnmount as He, watch as Ee, createElementBlock as r, openBlock as s, unref as h, normalizeStyle as M, normalizeClass as I, renderSlot as x, createBlock as z, createCommentVNode as v, createElementVNode as T, createVNode as we, createSlots as Ge, withCtx as m, normalizeProps as O, guardReactiveProps as P, Fragment as b, renderList as k, toDisplayString as L, createTextVNode as Ve, nextTick as qe } from "vue";
2
- import { u as Ze, c as Ce, o as Je, e as _e, g as Ke, b as Qe, d as et, p as H, D as $e, i as F, f as X, X as tt, l as lt, h as at, G as st, F as N, t as ot, a as rt, C as E, q as nt, r as ut, x as it } from "./index-BAPUY6BW.js";
3
- import { u as Me } from "./useNestedProp-X5u-cjpn.js";
4
- import { u as ct, U as vt } from "./usePrinter-BsXYrX84.js";
5
- import { _ as ht } from "./PackageVersion-C6hdi5vE.js";
6
- import { L as yt } from "./Legend-Bw9vX_fW.js";
7
- import { _ as dt } from "./Title-Dfjx2pT6.js";
8
- import { _ as ft } from "./Tooltip-C3kzKkai.js";
9
- import { D as xt } from "./DataTable-B8Vnlflz.js";
10
- import pt from "./vue-ui-accordion-Dm7ZlylJ.js";
11
- import { P as mt } from "./PenAndPaper-DBNdemyU.js";
12
- import gt from "./vue-ui-skeleton-DBfQG5lC.js";
1
+ import { ref as c, computed as f, onMounted as We, onBeforeUnmount as He, watch as Ee, createElementBlock as r, openBlock as s, unref as h, normalizeStyle as M, normalizeClass as O, renderSlot as x, createBlock as z, createCommentVNode as v, createElementVNode as T, createVNode as we, createSlots as Ge, withCtx as m, normalizeProps as I, guardReactiveProps as P, Fragment as b, renderList as k, toDisplayString as L, createTextVNode as Ve, nextTick as qe } from "vue";
2
+ import { u as Ze, c as Ce, o as Je, e as _e, g as Ke, b as Qe, d as et, p as H, D as $e, i as F, f as X, X as tt, l as lt, h as at, G as st, F as N, t as ot, a as rt, C as E, q as nt, r as ut, x as it } from "./index-CzjsUYng.js";
3
+ import { u as Me } from "./useNestedProp-RC28MVml.js";
4
+ import { u as ct, U as vt } from "./usePrinter-CUsjlfpk.js";
5
+ import { _ as ht } from "./PackageVersion-BtrpyUPC.js";
6
+ import { L as yt } from "./Legend-DSzoXS-3.js";
7
+ import { _ as dt } from "./Title-BS1zFx79.js";
8
+ import { _ as ft } from "./Tooltip-BNOd4lK1.js";
9
+ import { D as xt } from "./DataTable-C5EKEHsp.js";
10
+ import pt from "./vue-ui-accordion-ConQex-C.js";
11
+ import { P as mt } from "./PenAndPaper-zjBsZuuq.js";
12
+ import gt from "./vue-ui-skeleton-XUKIcV-3.js";
13
13
  import { t as bt, u as kt } from "./useResponsive-vZgZwV-S.js";
14
14
  import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { u as Ct } from "./useChartAccessibility-BWojgys7.js";
16
16
  import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"], Tt = { key: 1 }, Lt = ["id"], St = ["stop-color"], zt = ["stop-color"], Nt = ["stop-color"], It = { key: 2 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 3 }, Ft = ["x", "y", "fill", "font-size"], Xt = ["transform", "font-size", "fill", "font-weight"], Dt = { key: 5 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 6 }, Bt = ["transform", "fill", "font-size", "text-anchor"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Et = ["d", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r"], Vt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], qt = { key: 1 }, Zt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Qt = ["cx", "cy", "r", "onMouseenter", "onClick"], el = {
17
+ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"], Tt = { key: 1 }, Lt = ["id"], St = ["stop-color"], zt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 2 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 3 }, Ft = ["x", "y", "fill", "font-size"], Xt = ["transform", "font-size", "fill", "font-weight"], Dt = { key: 5 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 6 }, Bt = ["transform", "fill", "font-size", "text-anchor"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Et = ["d", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r"], Vt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], qt = { key: 1 }, Zt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Qt = ["cx", "cy", "r", "onMouseenter", "onClick"], el = {
18
18
  key: 5,
19
19
  class: "vue-data-ui-watermark"
20
20
  }, tl = ["onClick"], ll = ["innerHTML"], al = {
@@ -139,7 +139,8 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
139
139
  }, { deep: !0 });
140
140
  const { isPrinting: he, isImaging: ye, generatePdf: de, generateImage: fe } = ct({
141
141
  elementId: `history_plot_${Y.value}`,
142
- fileName: e.value.style.chart.title.text || "vue-ui-history-plot"
142
+ fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
143
+ options: e.value.userOptions.print
143
144
  }), ze = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = f(() => Qe(e.value.customPalette)), C = c({
144
145
  showTable: e.value.table.show,
145
146
  showTooltip: e.value.style.chart.tooltip.show
@@ -168,7 +169,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
168
169
  ...t,
169
170
  color: t.color ? et(t.color) : Ne.value[a] || H[a] || H[a % H.length],
170
171
  seriesIndex: a
171
- })) : []), Ie = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Oe = f(() => {
172
+ })) : []), Oe = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Ie = f(() => {
172
173
  if (!w.value) return 1;
173
174
  const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
174
175
  return t < 0 ? t : 0;
@@ -178,8 +179,8 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
178
179
  return t < 0 ? t : 0;
179
180
  }), p = f(() => {
180
181
  const t = $e(
181
- e.value.style.chart.axes.x.scaleMin === null ? Oe.value : e.value.style.chart.axes.x.scaleMin,
182
- e.value.style.chart.axes.x.scaleMax === null ? Ie.value : e.value.style.chart.axes.x.scaleMax,
182
+ e.value.style.chart.axes.x.scaleMin === null ? Ie.value : e.value.style.chart.axes.x.scaleMin,
183
+ e.value.style.chart.axes.x.scaleMax === null ? Oe.value : e.value.style.chart.axes.x.scaleMax,
183
184
  e.value.style.chart.axes.x.ticks
184
185
  ), a = $e(
185
186
  e.value.style.chart.axes.y.scaleMin === null ? Fe.value : e.value.style.chart.axes.y.scaleMin,
@@ -403,7 +404,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
403
404
  id: `history_plot_${Y.value}`,
404
405
  ref_key: "historyPlotChart",
405
406
  ref: D,
406
- class: I({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": R.value }),
407
+ class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": R.value }),
407
408
  style: M(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
408
409
  onMouseenter: a[3] || (a[3] = () => h(ie)(!0)),
409
410
  onMouseleave: a[4] || (a[4] = () => h(ie)(!1))
@@ -481,7 +482,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
481
482
  t.$slots.menuIcon ? {
482
483
  name: "menuIcon",
483
484
  fn: m(({ isOpen: l, color: i }) => [
484
- x(t.$slots, "menuIcon", O(P({ isOpen: l, color: i })), void 0, !0)
485
+ x(t.$slots, "menuIcon", I(P({ isOpen: l, color: i })), void 0, !0)
485
486
  ]),
486
487
  key: "0"
487
488
  } : void 0,
@@ -523,14 +524,14 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
523
524
  t.$slots.optionFullscreen ? {
524
525
  name: "optionFullscreen",
525
526
  fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
526
- x(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
527
+ x(t.$slots, "optionFullscreen", I(P({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
527
528
  ]),
528
529
  key: "6"
529
530
  } : void 0,
530
531
  t.$slots.optionAnnotator ? {
531
532
  name: "optionAnnotator",
532
533
  fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
533
- x(t.$slots, "optionAnnotator", O(P({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
534
+ x(t.$slots, "optionAnnotator", I(P({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
534
535
  ]),
535
536
  key: "7"
536
537
  } : void 0
@@ -575,7 +576,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
575
576
  }, null, 8, Nt)
576
577
  ], 8, Lt))), 256))
577
578
  ])) : v("", !0),
578
- e.value.style.chart.grid.verticalLines.show ? (s(), r("g", It, [
579
+ e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Ot, [
579
580
  (s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("line", {
580
581
  x1: l.x,
581
582
  x2: l.x,
@@ -584,7 +585,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
584
585
  stroke: e.value.style.chart.grid.verticalLines.stroke,
585
586
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
586
587
  "stroke-linecap": "round"
587
- }, null, 8, Ot))), 256))
588
+ }, null, 8, It))), 256))
588
589
  ])) : v("", !0),
589
590
  e.value.style.chart.axes.y.labels.show ? (s(), r("g", Pt, [
590
591
  (s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
@@ -683,7 +684,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
683
684
  fill: "none",
684
685
  "stroke-linecap": "round",
685
686
  "stroke-linejoin": "round",
686
- class: I({ animated: e.value.useCssAnimation })
687
+ class: O({ animated: e.value.useCssAnimation })
687
688
  }, null, 10, Ht),
688
689
  T("path", {
689
690
  d: l.path,
@@ -692,7 +693,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
692
693
  fill: "none",
693
694
  "stroke-linecap": "round",
694
695
  "stroke-linejoin": "round",
695
- class: I({ animated: e.value.useCssAnimation })
696
+ class: O({ animated: e.value.useCssAnimation })
696
697
  }, null, 10, Et)
697
698
  ], 4)) : v("", !0),
698
699
  (s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
@@ -709,7 +710,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
709
710
  r: u.value.plots,
710
711
  stroke: e.value.style.chart.plots.stroke,
711
712
  "stroke-width": e.value.style.chart.plots.strokeWidth,
712
- class: I({ animated: e.value.useCssAnimation }),
713
+ class: O({ animated: e.value.useCssAnimation }),
713
714
  style: M({
714
715
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
715
716
  transition: "opacity 0.2s ease-in-out"
@@ -723,7 +724,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
723
724
  fill: e.value.style.chart.plots.labels.color,
724
725
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
725
726
  "text-anchor": "middle",
726
- class: I({ animated: e.value.useCssAnimation }),
727
+ class: O({ animated: e.value.useCssAnimation }),
727
728
  style: M({
728
729
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
729
730
  transition: "opacity 0.2s ease-in-out"
@@ -738,7 +739,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
738
739
  "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
739
740
  fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? h(st)(l.color) : e.value.style.chart.plots.indexLabels.color,
740
741
  "text-anchor": "middle",
741
- class: I({ animated: e.value.useCssAnimation }),
742
+ class: O({ animated: e.value.useCssAnimation }),
742
743
  style: M({
743
744
  opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
744
745
  transition: "opacity 0.2s ease-in-out"
@@ -767,7 +768,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
767
768
  x(t.$slots, "svg", { svg: d.value }, void 0, !0)
768
769
  ], 12, Mt)) : v("", !0),
769
770
  t.$slots.watermark ? (s(), r("div", el, [
770
- x(t.$slots, "watermark", O(P({ isPrinting: h(he) || h(ye) })), void 0, !0)
771
+ x(t.$slots, "watermark", I(P({ isPrinting: h(he) || h(ye) })), void 0, !0)
771
772
  ])) : v("", !0),
772
773
  w.value ? v("", !0) : (s(), z(gt, {
773
774
  key: 6,
@@ -832,10 +833,10 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
832
833
  isFullscreen: R.value
833
834
  }, {
834
835
  "tooltip-before": m(() => [
835
- x(t.$slots, "tooltip-before", O(P({ ...Z.value })), void 0, !0)
836
+ x(t.$slots, "tooltip-before", I(P({ ...Z.value })), void 0, !0)
836
837
  ]),
837
838
  "tooltip-after": m(() => [
838
- x(t.$slots, "tooltip-after", O(P({ ...Z.value })), void 0, !0)
839
+ x(t.$slots, "tooltip-after", I(P({ ...Z.value })), void 0, !0)
839
840
  ]),
840
841
  _: 3
841
842
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
@@ -881,7 +882,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
881
882
  }, 8, ["config"])) : v("", !0)
882
883
  ], 46, $t));
883
884
  }
884
- }, bl = /* @__PURE__ */ _t(al, [["__scopeId", "data-v-8852c1fd"]]);
885
+ }, bl = /* @__PURE__ */ _t(al, [["__scopeId", "data-v-56983f81"]]);
885
886
  export {
886
887
  bl as default
887
888
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp-Ch_Tbu0f.cjs"),u=require("./index-CVZp-EFm.cjs"),y=require("./vue-ui-digits-C5jmpiTL.cjs"),C={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const{vue_ui_kpi:m}=u.useConfig(),o=n,a=e.computed({get:()=>i(),set:t=>t}),f=e.useSlots();e.onMounted(()=>{f["chart-background"]&&console.warn("VueUiKpi does not support the #chart-background slot.")});function i(){return p.useNestedProp({userConfig:o.config,defaultConfig:m})}e.watch(()=>o.config,t=>{a.value=i(),r()},{deep:!0});const g=e.ref((typeof o.dataset=="number",o.dataset)),l=e.ref(a.value.useAnimation?a.value.animationValueStart:g.value),s=t=>{const v=a.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};e.onMounted(()=>{r()});function r(){a.value.useAnimation?(l.value=a.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return e.watch(()=>o.dataset,t=>{a.value.useAnimation?s(t):l.value=t}),(t,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-kpi ${a.value.layoutClass}`),style:e.normalizeStyle(`background:${a.value.backgroundColor}; ${a.value.layoutCss}`)},[e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-title ${a.value.titleClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.titleFontSize}px; color:${a.value.titleColor}; font-weight:${a.value.titleBold?"bold":"normal"}; ${a.value.titleCss}`)},[e.renderSlot(t.$slots,"title",{comment:n.dataset}),e.createTextVNode(" "+e.toDisplayString(a.value.title),1)],6),e.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-value ${a.value.valueClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.valueFontSize}px; color:${a.value.valueColor}; font-weight:${a.value.valueBold?"bold":"normal"}; ${a.value.valueCss}`)},[e.renderSlot(t.$slots,"value",{comment:n.dataset}),a.value.analogDigits.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:a.value.analogDigits.height+"px"})},[e.createVNode(y.default,{dataset:Number(l.value.toFixed(a.value.valueRounding)),config:{backgroundColor:a.value.backgroundColor,digits:{color:a.value.analogDigits.color,skeletonColor:a.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u.applyDataLabel)(a.value.formatter,l.value,e.unref(u.dataLabel)({p:a.value.prefix,v:l.value,s:a.value.suffix,r:a.value.valueRounding}))),1)],64))],6),e.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp-BcSwG6N0.cjs"),u=require("./index-Zf2fUMIO.cjs"),y=require("./vue-ui-digits-H19fVeIu.cjs"),C={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const{vue_ui_kpi:m}=u.useConfig(),o=n,a=e.computed({get:()=>i(),set:t=>t}),f=e.useSlots();e.onMounted(()=>{f["chart-background"]&&console.warn("VueUiKpi does not support the #chart-background slot.")});function i(){return p.useNestedProp({userConfig:o.config,defaultConfig:m})}e.watch(()=>o.config,t=>{a.value=i(),r()},{deep:!0});const g=e.ref((typeof o.dataset=="number",o.dataset)),l=e.ref(a.value.useAnimation?a.value.animationValueStart:g.value),s=t=>{const v=a.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};e.onMounted(()=>{r()});function r(){a.value.useAnimation?(l.value=a.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return e.watch(()=>o.dataset,t=>{a.value.useAnimation?s(t):l.value=t}),(t,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-kpi ${a.value.layoutClass}`),style:e.normalizeStyle(`background:${a.value.backgroundColor}; ${a.value.layoutCss}`)},[e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-title ${a.value.titleClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.titleFontSize}px; color:${a.value.titleColor}; font-weight:${a.value.titleBold?"bold":"normal"}; ${a.value.titleCss}`)},[e.renderSlot(t.$slots,"title",{comment:n.dataset}),e.createTextVNode(" "+e.toDisplayString(a.value.title),1)],6),e.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-value ${a.value.valueClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.valueFontSize}px; color:${a.value.valueColor}; font-weight:${a.value.valueBold?"bold":"normal"}; ${a.value.valueCss}`)},[e.renderSlot(t.$slots,"value",{comment:n.dataset}),a.value.analogDigits.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:a.value.analogDigits.height+"px"})},[e.createVNode(y.default,{dataset:Number(l.value.toFixed(a.value.valueRounding)),config:{backgroundColor:a.value.backgroundColor,digits:{color:a.value.analogDigits.color,skeletonColor:a.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u.applyDataLabel)(a.value.formatter,l.value,e.unref(u.dataLabel)({p:a.value.prefix,v:l.value,s:a.value.suffix,r:a.value.valueRounding}))),1)],64))],6),e.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=C;
@@ -1,7 +1,7 @@
1
1
  import { computed as D, useSlots as x, onMounted as g, watch as C, ref as $, createElementBlock as i, openBlock as s, normalizeStyle as u, normalizeClass as r, createElementVNode as k, renderSlot as n, createTextVNode as y, toDisplayString as h, createVNode as z, Fragment as A, unref as b } from "vue";
2
- import { u as w } from "./useNestedProp-X5u-cjpn.js";
3
- import { u as B, i as L, f as M } from "./index-BAPUY6BW.js";
4
- import E from "./vue-ui-digits-B6ivU7b9.js";
2
+ import { u as w } from "./useNestedProp-RC28MVml.js";
3
+ import { u as B, i as L, f as M } from "./index-CzjsUYng.js";
4
+ import E from "./vue-ui-digits-C5D_xk6r.js";
5
5
  const G = {
6
6
  __name: "vue-ui-kpi",
7
7
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-Ch_Tbu0f.cjs"),n=require("./index-CVZp-EFm.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){e.useCssVars(k=>({"4430a3e6":c.value,"056a6732":d.value,"7f3540a4":p.value}));const{vue_ui_mini_loader:a}=n.useConfig(),i=u,t=e.computed(()=>v.useNestedProp({userConfig:i.config,defaultConfig:a})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-mini-loader",xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-3b670831"]]);exports.default=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-BcSwG6N0.cjs"),n=require("./index-Zf2fUMIO.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){e.useCssVars(k=>({"4430a3e6":c.value,"056a6732":d.value,"7f3540a4":p.value}));const{vue_ui_mini_loader:a}=n.useConfig(),i=u,t=e.computed(()=>v.useNestedProp({userConfig:i.config,defaultConfig:a})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-mini-loader",xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-3b670831"]]);exports.default=N;
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as h, computed as r, ref as f, createElementBlock as n, openBlock as u, unref as M, createCommentVNode as a, createElementVNode as t, normalizeStyle as l } from "vue";
2
- import { u as m } from "./useNestedProp-X5u-cjpn.js";
3
- import { u as y, X as L } from "./index-BAPUY6BW.js";
2
+ import { u as m } from "./useNestedProp-RC28MVml.js";
3
+ import { u as y, X as L } from "./index-CzjsUYng.js";
4
4
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
6
6
  __name: "vue-ui-mini-loader",
@@ -1,14 +1,14 @@
1
1
  import { toRef as he, resolveComponent as fe, createElementBlock as d, openBlock as s, Fragment as k, renderList as M, createCommentVNode as m, createBlock as R, createElementVNode as W, withModifiers as Ge, renderSlot as w, mergeProps as xe, withCtx as P, toDisplayString as Se, ref as p, onMounted as Ae, onUnmounted as Ve, watchEffect as We, computed as _, watch as Xe, unref as b, normalizeStyle as ve, normalizeClass as Pe, createVNode as ae, createSlots as je, normalizeProps as G, guardReactiveProps as V, createTextVNode as Ye, nextTick as Ze } from "vue";
2
- import { u as qe, o as Qe, e as Je, c as Te, t as Ke, p as Fe, a as et, b as tt, P as ot, X as lt, l as st, Q as nt, d as Le, q as at, r as rt, x as it, y as ut } from "./index-BAPUY6BW.js";
3
- import { _ as ct } from "./Title-Dfjx2pT6.js";
4
- import { u as dt, U as vt } from "./usePrinter-BsXYrX84.js";
5
- import { D as ht } from "./DataTable-B8Vnlflz.js";
6
- import { _ as ft } from "./Tooltip-C3kzKkai.js";
7
- import yt from "./vue-ui-skeleton-DBfQG5lC.js";
8
- import pt from "./vue-ui-accordion-Dm7ZlylJ.js";
9
- import { u as Ee } from "./useNestedProp-X5u-cjpn.js";
10
- import { _ as mt } from "./PackageVersion-C6hdi5vE.js";
11
- import { P as gt } from "./PenAndPaper-DBNdemyU.js";
2
+ import { u as qe, o as Qe, e as Je, c as Te, t as Ke, p as Fe, a as et, b as tt, P as ot, X as lt, l as st, Q as nt, d as Le, q as at, r as rt, x as it, y as ut } from "./index-CzjsUYng.js";
3
+ import { _ as ct } from "./Title-BS1zFx79.js";
4
+ import { u as dt, U as vt } from "./usePrinter-CUsjlfpk.js";
5
+ import { D as ht } from "./DataTable-C5EKEHsp.js";
6
+ import { _ as ft } from "./Tooltip-BNOd4lK1.js";
7
+ import yt from "./vue-ui-skeleton-XUKIcV-3.js";
8
+ import pt from "./vue-ui-accordion-ConQex-C.js";
9
+ import { u as Ee } from "./useNestedProp-RC28MVml.js";
10
+ import { _ as mt } from "./PackageVersion-BtrpyUPC.js";
11
+ import { P as gt } from "./PenAndPaper-zjBsZuuq.js";
12
12
  import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
13
13
  import { u as kt } from "./useChartAccessibility-BWojgys7.js";
14
14
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -347,7 +347,8 @@ const At = ["id"], Ot = {
347
347
  }, { deep: !0 });
348
348
  const { isPrinting: Y, isImaging: o, generatePdf: v, generateImage: g } = dt({
349
349
  elementId: `cluster_${f.value}`,
350
- fileName: e.value.style.chart.title.text || "vue-ui-molecule"
350
+ fileName: e.value.style.chart.title.text || "vue-ui-molecule",
351
+ options: e.value.userOptions.print
351
352
  }), T = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = _(() => tt(e.value.customPalette)), $ = p({
352
353
  showTable: e.value.table.show,
353
354
  showDataLabels: !0,
@@ -823,7 +824,7 @@ const At = ["id"], Ot = {
823
824
  }, 8, ["config"])) : m("", !0)
824
825
  ], 46, At));
825
826
  }
826
- }, lo = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-9545fb0c"]]);
827
+ }, lo = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-d296dc0b"]]);
827
828
  export {
828
829
  lo as default
829
830
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-Zf2fUMIO.cjs"),Ce=require("./Title-BuZQSd23.cjs"),ie=require("./usePrinter-BGPa8G48.cjs"),we=require("./DataTable-DLUrhKkw.cjs"),Be=require("./Tooltip-BiBcMMP3.cjs"),$e=require("./vue-ui-skeleton-CiGqKHDK.cjs"),xe=require("./vue-ui-accordion-CnGQYWdI.cjs"),ue=require("./useNestedProp-BcSwG6N0.cjs"),Pe=require("./PackageVersion-B6sWtTA0.cjs"),Ee=require("./PenAndPaper-DO7-xSYx.cjs"),Fe=require("./useUserOptionState-BgepsfED.cjs"),Se=require("./useChartAccessibility-Cm7nkzTG.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=["cx","cy","r","fill","stroke","stroke-width","onClick","onMouseover"],Le=["x","y","height","width","onClick","onMouseover"],Ve={__name:"RecursiveCircles",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null},linkColor:{type:String,default:"#CCCCCC"},stroke:{type:String,default:"#FFFFFF"},strokeHovered:{type:String,default:"#000000"}},emits:["click","hover"],setup(s,{emit:N}){const L=s,B=N;function a(r){B("click",r)}function g(r){B("hover",r)}return e.toRef(L,"dataset").value.forEach(r=>{r.nodes&&r.nodes.length>0&&r.nodes.forEach(h=>{h.ancestor=r})}),(r,h)=>{const V=e.resolveComponent("RecursiveCircles",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset,i=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.polygonPath&&i.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.polygonPath.coordinates,(k,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("circle",{cx:k.x,cy:k.y,r:i.circleRadius,fill:`url(#gradient_${i.color})`,stroke:s.hoveredUid&&s.hoveredUid===i.uid?s.strokeHovered:s.stroke,"stroke-width":s.hoveredUid&&s.hoveredUid===i.uid?i.circleRadius/6:i.circleRadius/12,style:{cursor:"pointer"},onClick:$=>a(i),onMouseover:$=>g(i),onMouseleave:h[0]||(h[0]=$=>g(null))},null,40,Ne),r.$slots.node?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:k.x-i.circleRadius,y:k.y-i.circleRadius,height:i.circleRadius*2,width:i.circleRadius*2,style:{overflow:"visible"},onClick:e.withModifiers($=>a(i),["stop"]),onMouseover:$=>g(i),onMouseleave:h[1]||(h[1]=$=>g(null))},[e.renderSlot(r.$slots,"node",e.mergeProps({ref_for:!0},{node:i}))],40,Le)):e.createCommentVNode("",!0)],64))),256)),i.nodes&&i.nodes.length>0?(e.openBlock(),e.createBlock(V,{key:0,dataset:i.nodes,color:s.color,stroke:s.stroke,strokeHovered:s.strokeHovered,hoveredUid:s.hoveredUid,onClick:a,onHover:g},{node:e.withCtx(({node:k})=>[e.renderSlot(r.$slots,"node",e.mergeProps({ref_for:!0},{node:k}))]),_:2},1032,["dataset","color","stroke","strokeHovered","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},Re=["x1","y1","x2","y2","stroke","stroke-width"],Ae=["x1","y1","x2","y2","stroke","stroke-width"],Oe={__name:"RecursiveLinks",props:{dataset:{type:Array,default:()=>[]},color:{type:String,default:"#DDDDDD"},backgroundColor:{type:String,default:"#FFFFFF"}},setup(s){const N=s;return e.toRef(N,"dataset").value.forEach(B=>{B.nodes&&B.nodes.length>0&&B.nodes.forEach(a=>{a.ancestor=B})}),(B,a)=>{const g=e.resolveComponent("RecursiveLinks",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset,u=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.polygonPath&&u.polygonPath.coordinates?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.polygonPath.coordinates,(r,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.ancestor&&u.ancestor.polygonPath?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("line",{x1:r.x,y1:r.y,x2:u.ancestor.polygonPath.coordinates[0].x,y2:u.ancestor.polygonPath.coordinates[0].y,stroke:s.backgroundColor,"stroke-width":u.circleRadius/1.5},null,8,Re),e.createElementVNode("line",{x1:r.x,y1:r.y,x2:u.ancestor.polygonPath.coordinates[0].x,y2:u.ancestor.polygonPath.coordinates[0].y,stroke:s.color,"stroke-width":u.circleRadius/2},null,8,Ae)],64)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset,u=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.polygonPath&&u.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.nodes&&u.nodes.length>0?(e.openBlock(),e.createBlock(g,{key:0,dataset:u.nodes,color:s.color,backgroundColor:s.backgroundColor},null,8,["dataset","color","backgroundColor"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256))],64)}}},Ue=["x","y","fill","font-size"],De={__name:"RecursiveLabels",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null}},emits:["zoom","hover"],setup(s,{emit:N}){const L=s;return e.toRef(L,"dataset").value.forEach(a=>{a.nodes&&a.nodes.length>0&&a.nodes.forEach(g=>{g.ancestor=a})}),(a,g)=>{const u=e.resolveComponent("RecursiveLabels",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.dataset,r=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.polygonPath&&r.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.polygonPath.coordinates,h=>(e.openBlock(),e.createElementBlock("text",{x:h.x,y:h.y+r.circleRadius*2,fill:s.color,"font-size":r.circleRadius,"text-anchor":"middle",style:{opacity:"0.8","pointer-events":"none"}},e.toDisplayString(r.name),9,Ue))),256)),r.nodes&&r.nodes.length>0?(e.openBlock(),e.createBlock(u,{key:0,dataset:r.nodes,color:s.color,hoveredUid:s.hoveredUid},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}};function ze(s,N={x:0,y:0,width:100,height:100},L=1,B){const a=e.ref({...N}),g=e.ref(1),u=e.ref(!1),r=e.ref({x:0,y:0});let h={x:0,y:0},V=null,i=null;function k(l){var E;const d=s.value;if(!d)return{x:0,y:0};const p=d.createSVGPoint();p.x=l.clientX,p.y=l.clientY;const b=(E=d.getScreenCTM())==null?void 0:E.inverse();return b?p.matrixTransform(b):{x:0,y:0}}function F(l){u.value=!0;const d=k(l.touches?l.touches[0]:l);r.value={x:d.x,y:d.y},h={x:0,y:0}}function $(l){if(!u.value)return;const d=k(l.touches?l.touches[0]:l);let p=d.x-r.value.x,b=d.y-r.value.y;Math.abs(p)<.3&&Math.abs(b)<.3||(h.x=p*.8+h.x*.2,h.y=b*.8+h.y*.2,r.value=d,V||(V=requestAnimationFrame(q)))}function q(){a.value.x-=h.x,a.value.y-=h.y,V=null}function S(){u.value=!1}function t(l){l.preventDefault();const d=l.deltaY>0?.9:1.1;A(d,k(l))}function R(l){l.preventDefault();const d=k(l),p=1.02*(1+L/100);G(p,d)}function G(l,d){i&&cancelAnimationFrame(i);let p=g.value,b=p*l,E=0;const y=()=>{E+=.02;let U=p+(b-p)*j(E);if(E>=1){g.value=b,i=null;return}A(U/p,d),i=requestAnimationFrame(y)};y()}const j=l=>l<.5?2*l*l:-1+(4-2*l)*l;function A(l,d){const p=g.value*l,b=p/g.value,E=a.value.width/b,y=a.value.height/b,U=(d.x-a.value.x)*(1-1/b),X=(d.y-a.value.y)*(1-1/b);a.value.x+=U,a.value.y+=X,a.value.width=E,a.value.height=y,g.value=p}e.onMounted(I),e.onUnmounted(O);function I(){const l=s.value;l&&(l.addEventListener("mousedown",F),l.addEventListener("mousemove",$),l.addEventListener("mouseup",S),l.addEventListener("mouseleave",S),l.addEventListener("wheel",t,{passive:!1}),l.addEventListener("dblclick",R),l.addEventListener("touchstart",d=>{d.preventDefault(),F(d)},{passive:!1}),l.addEventListener("touchmove",d=>{d.preventDefault(),$(d)},{passive:!1}),l.addEventListener("touchend",S))}function O(){const l=s.value;l&&(l.removeEventListener("mousedown",F),l.removeEventListener("mousemove",$),l.removeEventListener("mouseup",S),l.removeEventListener("mouseleave",S),l.removeEventListener("wheel",t),l.removeEventListener("dblclick",R),l.removeEventListener("touchstart",F),l.removeEventListener("touchmove",$),l.removeEventListener("touchend",S))}return e.watchEffect(()=>(B.value?I():O(),()=>{O()})),{viewBox:a}}const Ie=["id"],Me={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},_e={key:2,style:"width:100%;background:transparent;"},He=["xmlns","viewBox"],qe=["width","height"],Ge=["id"],je=["stop-color"],We=["stop-color"],Xe={key:5,class:"vue-data-ui-watermark"},Ye={key:7,ref:"source",dir:"auto"},Ze=["innerHTML"],Qe={__name:"vue-ui-molecule",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectNode"],setup(s,{expose:N,emit:L}){const{vue_ui_molecule:B}=m.useConfig(),a=s,g=L,u=e.computed(()=>!!a.dataset&&a.dataset.length);e.onMounted(()=>{r()});function r(){m.objectIsEmpty(a.dataset)&&m.error({componentName:"VueUiMolecule",type:"dataset"})}const h=e.ref(m.createUid()),V=e.ref(null),i=e.ref(!1),k=e.ref(""),F=e.ref(null),$=e.ref(0),q=e.ref(0),S=e.ref(0),t=e.computed({get:()=>I(),set:o=>o}),{userOptionsVisible:R,setUserOptionsVisibility:G,keepUserOptionState:j}=Fe.useUserOptionState({config:t.value}),{svgRef:A}=Se.useChartAccessibility({config:t.value.style.chart.title});function I(){const o=ue.useNestedProp({userConfig:a.config,defaultConfig:B});return o.theme?{...ue.useNestedProp({userConfig:m.themes.vue_ui_molecule[o.theme]||a.config,defaultConfig:o}),customPalette:m.themePalettes[o.theme]||m.palette}:o}e.watch(()=>a.config,o=>{t.value=I(),R.value=!t.value.userOptions.showOnChartHover,r(),q.value+=1,S.value+=1,y.value.showTable=t.value.table.show,y.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:O,isImaging:l,generatePdf:d,generateImage:p}=ie.usePrinter({elementId:`cluster_${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-molecule",options:t.value.userOptions.print}),b=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),E=e.computed(()=>m.convertCustomPalette(t.value.customPalette)),y=e.ref({showTable:t.value.table.show,showDataLabels:!0,showTooltip:t.value.style.chart.tooltip.show});function U(o,c=0){return Array.isArray(o)&&o.length>0&&o[0].nodes?U(o[0].nodes,c+1):c}function X(){const o=U(a.dataset);let c=100,n=c;for(let f=0;f<o;f+=1)c/=1,n+=c;return{height:n,width:n}}const w=e.ref(X());e.ref(`0 0 ${w.value.width} ${w.value.height}`);function K(o,c={x:-w.value.width/2.43,y:w.value.height/2},n=w.value.width/1.1,f=24,v=0,C=0,x="#BBBBBB",Q=0){if(!Array.isArray(o)||o.length===0)return o;const be=m.createPolygonPath({plot:c,radius:n,sides:o.length,rotation:v});return o.forEach((P,re)=>{const ae=be.coordinates[re],se=P.color?(()=>{let J=m.convertColorToHex(P.color);return J.startsWith("#")?J:`#${J}`})():null;let z;se?z=se:Q===0?z=x:Q===1?(z=E.value[C]||m.palette[C]||x,C+=1):z=x,P.polygonPath={coordinates:[ae]},P.circleRadius=f,P.color=z,P.uid=m.createUid(),Array.isArray(P.nodes)&&P.nodes.length&&(P.nodes=K(P.nodes,ae,n/2.9,f/2.2,v+Math.PI*re/P.nodes.length,C,z,Q+1))}),o}function ce(o){const c=new Set;function n(v){v.forEach(C=>{if(!C.color)return;let x=C.color;/^#?[0-9A-F]{6}$/i.test(x)||(x=m.convertColorToHex(x)),x.startsWith("#")||(x=`#${x}`),c.add(x),Array.isArray(C.nodes)&&C.nodes.length&&n(C.nodes)})}n(o);const f={};return Array.from(c).forEach(v=>{const C=v.slice(1);f[v]=`gradient_${C}`}),f}const de=e.computed(()=>ce(T.value)),T=e.computed(()=>{const o=m.deepClone(a.dataset);return K(o)}),Y=e.ref(null);function ve(o){Y.value={datapoint:o,seriesIndex:-1,series:T.value,config:t.value};const c=t.value.style.chart.tooltip.customFormat;if(m.isFunction(c)&&m.functionReturnsString(()=>c({seriesIndex:-1,datapoint:o,series:T.value,config:t.value})))k.value=c({seriesIndex:-1,datapoint:o,series:T.value,config:t.value});else{let n="";n+=`<div style="display:flex;align-items:center;gap:3px"><div style="color:${o.color}">⬤</div><div>${o.name}</div></div>`,o.details&&(n+=`<div style="width:100%;border-top:1px solid ${t.value.style.chart.tooltip.borderColor};margin-top: 2px">${o.details}</div>`),k.value=`<div style="font-family:inherit">${n}</div>`}}const ee=e.ref(null),M=e.ref(null);function he(o){ee.value=o,o?(i.value=!0,ve(o),M.value=o.uid):(i.value=!1,k.value="",M.value=null)}function fe(o){const c=[];function n(f){f.forEach(v=>{const C={name:v.name,details:v.details||"-",ancestor:v.ancestor&&v.ancestor.name||"-",color:v.color||""};c.push(C),v.nodes&&v.nodes.length>0&&n(v.nodes,v.name)})}return n(o),c}const me=e.computed(()=>fe(T.value)),D=e.computed(()=>{const o=[t.value.table.translations.nodeName,t.value.table.translations.details,t.value.table.translations.ancestor],c=me.value.map((v,C)=>[{color:v.color,name:v.name},v.details,v.ancestor||""]),n={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},f=[t.value.table.translations.nodeName,t.value.table.translations.details,t.value.table.translations.ancestor];return{head:o,body:c,config:n,colNames:f}});function te(){e.nextTick(()=>{const o=D.value.body.map((f,v)=>[[f[0].name],[f[1]],[f[2]]]),c=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[...D.value.head]]].concat(o),n=m.createCsvContent(c);m.downloadCsv({csvContent:n,title:t.value.style.chart.title.text||"vue-ui-molecule"})})}function pe(){return T.value}const _=e.ref(!1);function ge(o){_.value=o,$.value+=1}function oe(){y.value.showTable=!y.value.showTable}function le(){y.value.showDataLabels=!y.value.showDataLabels}function ne(){y.value.showTooltip=!y.value.showTooltip}const H=e.ref(!1);function Z(){H.value=!H.value}const ye=e.computed(()=>!H.value),{viewBox:W}=ze(A,{x:0,y:0,width:w.value.width<=0?10:w.value.width,height:w.value.height<=0?10:w.value.height},t.value.style.chart.zoom.speed,ye);function ke(o){g("selectNode",o)}return N({getData:pe,generatePdf:d,generateCsv:te,generateImage:p,toggleTable:oe,toggleLabels:le,toggleTooltip:ne,toggleAnnotator:Z}),(o,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"moleculeChart",ref:F,class:e.normalizeClass(`vue-ui-molecule ${_.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`cluster_${h.value}`,onMouseleave:c[1]||(c[1]=n=>{ee.value=null,M.value=null,e.unref(G)(!1)}),onMouseenter:c[2]||(c[2]=()=>e.unref(G)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ee.PenAndPaper,{key:0,svgRef:e.unref(A),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:H.value,onClose:Z},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",Me,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"molecule-div-title",...t.value.style.chart.title},subtitle:{cy:"molecule-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&u.value&&(e.unref(j)||e.unref(R))?(e.openBlock(),e.createBlock(ie.UserOptions,{ref_key:"details",ref:V,key:`user_options_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(l),uid:h.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:F.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:H.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(d),onGenerateCsv:te,onGenerateImage:e.unref(p),onToggleTable:oe,onToggleLabels:le,onToggleTooltip:ne,onToggleAnnotator:Z,style:e.normalizeStyle({visibility:e.unref(j)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:n,color:f})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:n,color:f})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:f})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:f})),void 0,!0)]),key:"7"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:n,isAnnotator:f})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:n,isAnnotator:f})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:A,xmlns:e.unref(m.XMLNS),viewBox:`${e.unref(W).x} ${e.unref(W).y} ${e.unref(W).width} ${e.unref(W).height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),style:e.normalizeStyle(`overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:w.value.width<=0?10:w.value.width,height:w.value.height<=0?10:w.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,qe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(de.value),n=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${n}`,cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(m.lightenHexColor)(n,.5)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":n},null,8,We)],8,Ge))),256))]),e.createVNode(Oe,{dataset:T.value,color:t.value.style.chart.links.stroke,backgroundColor:t.value.style.chart.backgroundColor},null,8,["dataset","color","backgroundColor"]),e.createVNode(Ve,{dataset:T.value,hoveredUid:M.value,stroke:t.value.style.chart.nodes.stroke,strokeHovered:t.value.style.chart.nodes.strokeHovered,onClick:ke,onHover:he},{node:e.withCtx(({node:n})=>[e.renderSlot(o.$slots,"node",e.normalizeProps(e.guardReactiveProps({node:n})),void 0,!0)]),_:3},8,["dataset","hoveredUid","stroke","strokeHovered"]),y.value.showDataLabels?(e.openBlock(),e.createBlock(De,{key:1,dataset:T.value,color:t.value.style.chart.color,hoveredUid:M.value},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:w.value},void 0,!0)],14,He)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(l)})),void 0,!0)])):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"molecule",style:{backgroundColor:t.value.style.chart.backgroundColor,molecule:{color:"#CCCCCC"}}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:y.value.showTooltip&&i.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:F.value,content:k.value,isFullscreen:_.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),u.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:y.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(we.DataTable,{key:`table_${S.value}`,colNames:D.value.colNames,head:D.value.head,body:D.value.body,config:D.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:c[0]||(c[0]=n=>y.value.showTable=!1)},{th:e.withCtx(({th:n})=>[e.createElementVNode("div",{innerHTML:n,style:{display:"flex","align-items":"center"}},null,8,Ze)]),td:e.withCtx(({td:n})=>[e.createTextVNode(e.toDisplayString(n.name||n),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ie))}},Je=Te._export_sfc(Qe,[["__scopeId","data-v-d296dc0b"]]);exports.default=Je;
@@ -1,15 +1,15 @@
1
1
  import { computed as c, onMounted as we, ref as y, watch as xe, createElementBlock as h, openBlock as r, unref as a, normalizeStyle as L, normalizeClass as ee, createBlock as p, createCommentVNode as u, renderSlot as v, createVNode as U, createSlots as _e, withCtx as f, normalizeProps as I, guardReactiveProps as F, createElementVNode as s, Fragment as te, renderList as oe, toDisplayString as N, createTextVNode as le, nextTick as $e } from "vue";
2
- import { u as Me, o as Pe, e as ae, c as Ne, a as Ae, Q as Oe, X as Te, s as C, w as Le, R as Ie, i as se, f as S, q as Fe, r as Se } from "./index-BAPUY6BW.js";
3
- import { _ as Ve } from "./Title-Dfjx2pT6.js";
4
- import { u as je, U as Re } from "./usePrinter-BsXYrX84.js";
5
- import { L as Ue } from "./Legend-Bw9vX_fW.js";
6
- import A from "./BaseIcon-DyOT6PYJ.js";
7
- import { D as Be } from "./DataTable-B8Vnlflz.js";
8
- import De from "./vue-ui-skeleton-DBfQG5lC.js";
9
- import We from "./vue-ui-accordion-Dm7ZlylJ.js";
10
- import { u as re } from "./useNestedProp-X5u-cjpn.js";
11
- import { _ as ze } from "./PackageVersion-C6hdi5vE.js";
12
- import { P as Ee } from "./PenAndPaper-DBNdemyU.js";
2
+ import { u as Me, o as Pe, e as ae, c as Ne, a as Ae, Q as Oe, X as Te, s as C, w as Le, R as Ie, i as se, f as S, q as Fe, r as Se } from "./index-CzjsUYng.js";
3
+ import { _ as Ve } from "./Title-BS1zFx79.js";
4
+ import { u as je, U as Re } from "./usePrinter-CUsjlfpk.js";
5
+ import { L as Ue } from "./Legend-DSzoXS-3.js";
6
+ import A from "./BaseIcon-BySu2V3d.js";
7
+ import { D as Be } from "./DataTable-C5EKEHsp.js";
8
+ import De from "./vue-ui-skeleton-XUKIcV-3.js";
9
+ import We from "./vue-ui-accordion-ConQex-C.js";
10
+ import { u as re } from "./useNestedProp-RC28MVml.js";
11
+ import { _ as ze } from "./PackageVersion-BtrpyUPC.js";
12
+ import { P as Ee } from "./PenAndPaper-zjBsZuuq.js";
13
13
  import { u as Ge } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as He } from "./useChartAccessibility-BWojgys7.js";
15
15
  import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -71,7 +71,8 @@ const Ke = ["id"], qe = {
71
71
  }, { deep: !0 });
72
72
  const { isPrinting: X, isImaging: K, generatePdf: q, generateImage: Q } = je({
73
73
  elementId: _.value,
74
- fileName: e.value.style.chart.title.text || "vue-ui-mood-radar"
74
+ fileName: e.value.style.chart.title.text || "vue-ui-mood-radar",
75
+ options: e.value.userOptions.print
75
76
  }), he = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = y({
76
77
  showTable: e.value.table.show
77
78
  }), m = c(() => ({
@@ -652,7 +653,7 @@ const Ke = ["id"], qe = {
652
653
  }, 8, ["config"])) : u("", !0)
653
654
  ], 46, Ke));
654
655
  }
655
- }, Bt = /* @__PURE__ */ Xe(_t, [["__scopeId", "data-v-245f5bd2"]]);
656
+ }, Bt = /* @__PURE__ */ Xe(_t, [["__scopeId", "data-v-219c3ecd"]]);
656
657
  export {
657
658
  Bt as default
658
659
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Zf2fUMIO.cjs"),oe=require("./Title-BuZQSd23.cjs"),q=require("./usePrinter-BGPa8G48.cjs"),le=require("./Legend-CHEbsxt2.cjs"),g=require("./BaseIcon-Bolmn50v.cjs"),ae=require("./DataTable-DLUrhKkw.cjs"),re=require("./vue-ui-skeleton-CiGqKHDK.cjs"),ne=require("./vue-ui-accordion-CnGQYWdI.cjs"),z=require("./useNestedProp-BcSwG6N0.cjs"),se=require("./PackageVersion-B6sWtTA0.cjs"),ue=require("./PenAndPaper-DO7-xSYx.cjs"),ie=require("./useUserOptionState-BgepsfED.cjs"),ce=require("./useChartAccessibility-Cm7nkzTG.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],ye={key:2,style:"width:100%;background:transparent"},me=["xmlns","viewBox"],he=["width","height"],fe=["id"],pe=["stop-color"],ke=["stop-color"],ge=["x1","y1","x2","y2","stroke","stroke-width"],be=["d","stroke","stroke-width"],Ce=["stroke"],Ne=["fill"],we=["stroke"],xe=["fill"],Ve=["stroke"],_e=["fill"],Pe=["stroke"],Be=["fill"],$e=["stroke"],Me=["fill"],Ee=["d","stroke","stroke-width","fill"],Oe=["x1","y1","stroke"],Se=["cx","cy","fill","stroke"],Ae=["fill","stroke"],Te=["y","fill","font-weight"],Le=["y","fill"],Ie={key:5,class:"vue-data-ui-watermark"},Fe=["onClick"],qe={style:{"font-weight":"bold"}},ze={key:8,ref:"source",dir:"auto"},De=["innerHTML"],Re={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(D,{expose:R}){const{vue_ui_mood_radar:j}=r.useConfig(),u=D,m=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length);e.onMounted(()=>{V()});function V(){r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiMoodRadar",type:"dataset"})}const h=e.ref(r.createUid()),_=e.ref(null),U=e.ref(null),n=e.ref(null),W=e.ref(null),G=e.ref(0),H=e.ref(0),P=e.ref(0),t=e.computed({get:()=>E(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:B,keepUserOptionState:$}=ie.useUserOptionState({config:t.value}),{svgRef:M}=ce.useChartAccessibility({config:t.value.style.chart.title});function E(){const l=z.useNestedProp({userConfig:u.config,defaultConfig:j});return l.theme?{...z.useNestedProp({userConfig:r.themes.vue_ui_mood_radar[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=E(),N.value=!t.value.userOptions.showOnChartHover,V(),G.value+=1,H.value+=1,P.value+=1,f.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:O,isImaging:S,generatePdf:A,generateImage:T}=q.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar",options:t.value.userOptions.print}),X=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),f=e.ref({showTable:t.value.table.show}),i=e.computed(()=>({height:256,width:256})),w=e.computed(()=>r.createPolygonPath({plot:{x:128,y:i.value.height/2},radius:90,sides:5,rotation:11}));function K({centerX:l,centerY:a,apexX:o,apexY:s,proportion:d,key:k,value:te}){return{x:l+(o-l)*d,y:a+(s-a)*d,key:k,value:te}}const Y=e.computed(()=>Math.max(...Object.values(u.dataset).map(l=>isNaN(l)?0:l))),y=e.computed(()=>Object.values(u.dataset).reduce((l,a)=>(isNaN(l)?0:l)+(isNaN(a)?0:a),0)),c=e.computed(()=>Object.keys(u.dataset).map((l,a)=>{const o=typeof u.dataset[l]!="number"||isNaN(u.dataset[l])?0:u.dataset[l];return{index:a,key:l,value:o,proportion:o/y.value,color:t.value.style.chart.layout.smileys.colors[l]}}).sort((l,a)=>a.key-l.key)),L=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(l=>{[null,void 0].includes(u.dataset[l])&&r.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:l})}),w.value.coordinates.map((l,a)=>{const o=K({centerX:i.value.width/2,centerY:i.value.height/2,apexX:l.x,apexY:l.y,proportion:c.value[a].value/Y.value,key:c.value[a].key,value:c.value[a].value});return{...l,plots:o,key:c.value[a].key}})):[]),J=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function Q(l){l===n.value?n.value=null:n.value=l}const v=e.computed(()=>{const l=c.value.map(o=>({name:o.key,color:o.color})),a=c.value.map(o=>isNaN(o.value)?0:o.value);return{head:l,body:a}});function I(){e.nextTick(()=>{const l=v.value.head.map((s,d)=>[[s.name],[v.value.body[d]],[isNaN(v.value.body[d]/y.value)?"-":v.value.body[d]/y.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const b=e.computed(()=>{const l=[' <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>',Number(y.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=v.value.head.map((d,k)=>[{color:d.color,name:d.name},v.value.body[k].toFixed(t.value.table.td.roundingValue),isNaN(v.value.body[k]/y.value)?"-":(v.value.body[k]/y.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},s=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:s}});function Z(){return c.value}function F(){f.value.showTable=!f.value.showTable}const p=e.ref(!1);function ee(l){p.value=l}const C=e.ref(!1);function x(){C.value=!C.value}return R({getData:Z,generatePdf:A,generateCsv:I,generateImage:T,toggleTable:F,toggleAnnotator:x}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${p.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:_,id:`${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[11]||(a[11]=()=>e.unref(B)(!0)),onMouseleave:a[12]||(a[12]=()=>e.unref(B)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ue.PenAndPaper,{key:0,svgRef:e.unref(M),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:x},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),X.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,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",ye,[e.createVNode(oe._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref($)||e.unref(N))?(e.openBlock(),e.createBlock(q.UserOptions,{key:3,ref_key:"details",ref:U,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(O),isImaging:e.unref(S),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:p.value,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(A),onGenerateCsv:I,onGenerateImage:e.unref(T),onToggleTable:F,onToggleAnnotator:x,style:e.normalizeStyle({visibility:e.unref($)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:s})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:s})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:s})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:s})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:M,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${i.value.width} ${i.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.value}),style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(se._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:i.value.width,height:i.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,he)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,pe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ke)],8,fe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.coordinates,o=>(e.openBlock(),e.createElementBlock("line",{x1:i.value.width/2,y1:i.value.height/2,x2:o.x,y2:o.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,ge))),256)),e.createElementVNode("path",{d:w.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,be),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,Ce),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=o=>n.value=5),onMouseleave:a[1]||(a[1]=o=>n.value=null),cx:"128",cy:"25",r:"20",fill:n.value===5?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[5],20):"transparent"},null,40,Ne),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,we),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=o=>n.value=4),onMouseleave:a[3]||(a[3]=o=>n.value=null),cx:"227",cy:"95.5",r:"20",fill:n.value===4?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[4],20):"transparent"},null,40,xe),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,Ve),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=o=>n.value=3),onMouseleave:a[5]||(a[5]=o=>n.value=null),cx:"190",cy:"213.5",r:"20",fill:n.value===3?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[3],20):"transparent"},null,40,_e),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,Pe),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=o=>n.value=2),onMouseleave:a[7]||(a[7]=o=>n.value=null),cx:"65",cy:"213.5",r:"20",fill:n.value===2?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[2],20):"transparent"},null,40,Be),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,$e),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=o=>n.value=1),onMouseleave:a[9]||(a[9]=o=>n.value=null),cx:"29",cy:"95.5",r:"20",fill:n.value===1?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[1],20):"transparent"},null,40,Me),e.createElementVNode("path",{d:e.unref(r.makePath)(L.value.map(o=>o.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${h.value})`:e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Ee),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value.map(o=>o.plots),(o,s)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${n.value==o.key?"1":"0"}`)},[e.createElementVNode("line",{x1:o.x,y1:o.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,Oe),e.createElementVNode("circle",{cx:o.x,cy:o.y,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Se),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Ae),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:s})),9,Te),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.value/y.value*100,s:"%",r:t.value.style.chart.layout.dataLabel.roundingPercentage}))+") ",9,Le)],4))),256)),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,me)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(O)||e.unref(S)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(le.Legend,{legendSet:c.value,config:J.value,key:`legend_${P.value}`,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:o,index:s})=>[e.createElementVNode("div",{onClick:()=>Q(o.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[o.key==1?(e.openBlock(),e.createBlock(g.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==2?(e.openBlock(),e.createBlock(g.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==3?(e.openBlock(),e.createBlock(g.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==4?(e.openBlock(),e.createBlock(g.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==5?(e.openBlock(),e.createBlock(g.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",qe,e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:s})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.proportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],8,Fe)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:c.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(ne.default,{key:9,hideDetails:"",config:{open:f.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(ae.DataTable,{colNames:b.value.colNames,head:b.value.head,body:b.value.body,config:b.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[10]||(a[10]=o=>f.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,De)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ve))}},je=de._export_sfc(Re,[["__scopeId","data-v-219c3ecd"]]);exports.default=je;