vue-data-ui 2.4.51 → 2.4.52

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 (178) hide show
  1. package/dist/{Arrow-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
  2. package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
  3. package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
  4. package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
  5. package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
  6. package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
  7. package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
  8. package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
  9. package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
  10. package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
  11. package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
  12. package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
  13. package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
  14. package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
  15. package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
  16. package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
  17. package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
  18. package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
  19. package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
  20. package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
  21. package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
  22. package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
  25. package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
  26. package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
  27. package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
  28. package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
  29. package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
  33. package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
  34. package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
  35. package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
  36. package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
  38. package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
  39. package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
  40. package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
  41. package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
  42. package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
  44. package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
  45. package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
  46. package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
  47. package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
  48. package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
  49. package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
  51. package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
  54. package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
  55. package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
  56. package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
  60. package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
  61. package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
  62. package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
  63. package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
  65. package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
  66. package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
  67. package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
  68. package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
  69. package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
  70. package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
  71. package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
  72. package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
  73. package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
  74. package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
  75. package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
  78. package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
  79. package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
  82. package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
  84. package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
  85. package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
  87. package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
  88. package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
  89. package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
  92. package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
  93. package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
  94. package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
  95. package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
  96. package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
  98. package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
  99. package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
  100. package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
  101. package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
  102. package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
  103. package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
  106. package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
  107. package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
  116. package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
  117. package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
  118. package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
  120. package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
  121. package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
  122. package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
  123. package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
  124. package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
  125. package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
  126. package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
  127. package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
  128. package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
  130. package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
  131. package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
  132. package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
  133. package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
  134. package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
  135. package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
  136. package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
  137. package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
  138. package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
  139. package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
  140. package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
  141. package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
  142. package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
  143. package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
  144. package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
  146. package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
  147. package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
  148. package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
  149. package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
  152. package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
  153. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
  154. package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
  157. package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
  158. package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
  159. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
  160. package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
  161. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
  162. package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
  163. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
  164. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
  165. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
  166. package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
  167. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
  168. package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
  169. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
  170. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
  171. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
  173. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
  174. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
  175. package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
  176. package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
  177. package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
  178. package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-BkXYJDpD.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ye=require("./Title-B7ruS8yl.cjs"),re=require("./usePrinter-DHv-BwME.cjs"),be=require("./Tooltip-BqSN71SL.cjs"),ge=require("./DataTable-CwAdpLng.cjs"),ke=require("./vue-ui-skeleton-BTN1PKkz.cjs"),xe=require("./Shape-BBp5EwJH.cjs"),Ce=require("./vue-ui-accordion-kr18wKfc.cjs"),se=require("./useNestedProp-C6IvqE-r.cjs"),we=require("./PackageVersion-C1F3QLoY.cjs"),Be=require("./PenAndPaper-DDheVRNG.cjs"),Se=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e=["xmlns","viewBox"],Te={key:0},Le={key:0},Pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ee={key:1},ze=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ae=["x1","x2","y1","y2","stroke","stroke-width"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x","y","fill","font-size"],Fe=["x","y","font-size","fill"],De=["fill","font-size","transform"],Me=["fill","font-size","x","y"],We=["x1","x2","y1","y2","stroke"],Ie=["cx","cy","fill"],qe=["cx","cy","fill"],Ge=["id"],Ue=["stop-color"],Re=["stop-color"],He=["stop-color"],je={key:0},Xe=["x","y","font-size","fill"],Ye={key:5,class:"vue-data-ui-watermark"},Je=["innerHTML"],Ke={__name:"vue-ui-strip-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(ne,{expose:ue,emit:ie}){const v=ne,{vue_ui_strip_plot:ce}=a.useConfig(),h=e.computed({get(){return!!v.dataset&&v.dataset.length},set(l){return l}}),L=e.ref(a.createUid()),F=e.ref(0),P=e.ref(!1),E=e.ref(""),y=e.ref(null),D=e.ref(null),M=e.ref(null),W=e.ref(null),I=e.ref(!1),q=e.ref(0),G=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:z,setUserOptionsVisibility:U,keepUserOptionState:R}=Se.useUserOptionState({config:t.value});function H(){const l=se.useNestedProp({userConfig:v.config,defaultConfig:ce});return l.theme?{...se.useNestedProp({userConfig:a.themes.vue_ui_strip_plot[l.theme]||v.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>v.config,l=>{t.value=H(),z.value=!t.value.showOnChartHover,j(),q.value+=1,G.value+=1},{deep:!0});const C=e.ref(null);e.onMounted(()=>{j()});function j(){if(a.objectIsEmpty(v.dataset)?a.error({componentName:"VueUiStripPlot",type:"dataset"}):v.dataset.forEach((l,s)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","plots"]}).forEach(o=>{h.value=!1,a.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:o,index:s})}),l.plots&&l.plots.forEach((o,n)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(u=>{h.value=!1,a.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:u,index:`${s},${n}`})})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:s,height:o}=ae.useResponsive({chart:y.value,title:t.value.style.chart.title.text?D.value:null,source:M.value,noTitle:W.value});w.value=o,b.value.width=s,b.value.height=o,x.value=(s-d.value.left-d.value.right)/v.dataset.length,B.value=a.translateSize({relator:Math.min(o,s),adjuster:600,source:t.value.style.chart.plots.radius,threshold:6,fallback:6})});C.value=new ResizeObserver(l),C.value.observe(y.value.parentNode)}I.value=!0,setTimeout(()=>{k.value=!1},de.value*50)}e.onBeforeUnmount(()=>{C.value&&C.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=re.usePrinter({elementId:`strip-plot_${L.value}`,fileName:t.value.style.chart.title.text||"vue-ui-strip-plot"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),k=e.ref(t.value.useCssAnimation),c=e.ref({showTable:t.value.table.show,dataLabels:{show:t.value.style.chart.labels.bestPlotLabel.show},showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({top:t.value.style.chart.padding.top,bottom:t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right}),x=e.ref(t.value.style.chart.stripWidth),w=e.ref(t.value.style.chart.height),B=e.ref(t.value.style.chart.plots.radius),b=e.ref({width:x.value*v.dataset.length+d.value.left+d.value.right,height:t.value.style.chart.height}),r=e.computed(()=>{const l=x.value*v.dataset.length+d.value.left+d.value.right;return{left:d.value.left,right:l-d.value.right,top:d.value.top,bottom:w.value-d.value.bottom,width:x.value*v.dataset.length,height:w.value-d.value.top-d.value.bottom,stripWidth:x.value,absoluteHeight:w.value,absoluteWidth:l}}),S=e.computed(()=>h.value?v.dataset.map((l,s)=>{const o=a.createUid();return{...l,id:o,color:l.color?a.convertColorToHex(l.color):Q.value[s]||a.palette[s]||a.palette[s%a.palette.length],plots:l.plots.map(n=>({...n,value:a.checkNaN(n.value),parentId:o,color:l.color?a.convertColorToHex(l.color):Q.value[s]||a.palette[s]||a.palette[s%a.palette.length],id:a.createUid()})).sort((n,u)=>n.value-u.value)}}):null),p=e.computed(()=>(S.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,x:r.value.left+(s+1)*r.value.stripWidth-r.value.stripWidth/2}))}))),de=e.computed(()=>Math.max(...p.value.map(l=>l.plots.length))),A=e.computed(()=>{const l=p.value.flatMap(s=>s.plots.map(o=>o.value));return{max:Math.max(...l),min:Math.min(...l)}}),m=e.computed(()=>a.calculateNiceScale(A.value.min<0?A.value.min:0,A.value.max,t.value.style.chart.grid.scaleSteps)),pe=e.computed(()=>(p.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,y:r.value.bottom-(o.value+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))*r.value.height}))}))),Z=e.computed(()=>m.value.ticks.map(l=>({y:r.value.bottom-r.value.height*((l+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))),x1:r.value.left,x2:r.value.right,value:l}))),V=e.ref(null),i=e.ref(null);function he({datapoint:l,seriesIndex:s}){V.value={datapoint:l,seriesIndex:s,config:t.value,series:S.value},P.value=!0,i.value=l;const o=t.value.style.chart.tooltip.customFormat;if(a.isFunction(o)&&a.functionReturnsString(()=>o({seriesIndex:s,datapoint:l,series:S.value,config:t.value})))E.value=o({seriesIndex:s,datapoint:l,series:S.value,config:t.value});else{let n="";n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.value.style.chart.plots.gradient.show?`url(#${l.parentId})`:l.color}"/></svg>${l.name}</div>`,n+=`<div>${a.applyDataLabel(t.value.style.chart.labels.formatter,l.value,a.dataLabel({p:t.value.style.chart.labels.prefix,v:l.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:s})}</div>`,E.value=`<div>${n}</div>`}}const N=e.computed(()=>{const l=p.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>({name:`${o.name} - ${n.name}`,color:n.color}))),s=p.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>n.value));return{head:l,body:s}});function ee(){e.nextTick(()=>{const l=N.value.head.map((n,u)=>[[n.name],[N.value.body[u]]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.value]]].concat(l),o=a.createCsvContent(s);a.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-strip-plot"})})}const $=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value],s=N.value.head.map((u,f)=>{const T=a.dataLabel({p:t.value.style.chart.labels.prefix,v:N.value.body[f],s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},T]}),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};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:s,config:o}}),g=e.ref(!1);function me(l){g.value=l,F.value+=1}function fe(){return p.value}function te(){c.value.showTable=!c.value.showTable}function le(){c.value.dataLabels.show=!c.value.dataLabels.show}function oe(){c.value.showTooltip=!c.value.showTooltip}const _=e.ref(!1);function O(){_.value=!_.value}return ue({getData:fe,generatePdf:J,generateCsv:ee,generateImage:K,toggleTable:te,toggleLabels:le,toggleTooltip:oe,toggleAnnotator:O}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"stripPlotChart",ref:y,class:e.normalizeClass(`vue-ui-strip-plot ${g.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`strip-plot_${L.value}`,onMouseenter:s[2]||(s[2]=()=>e.unref(U)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(U)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.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",{key:2,ref_key:"chartTitle",ref:D,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&h.value&&(e.unref(R)||e.unref(z))?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(X),isImaging:e.unref(Y),uid:L.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:c.value.showTooltip,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:me,onGeneratePdf:e.unref(J),onGenerateCsv:ee,onGenerateImage:e.unref(K),onToggleTable:te,onToggleLabels:le,onToggleTooltip:oe,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(R)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},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.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(a.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(we._sfc_main),t.value.style.chart.grid.show?(e.openBlock(),e.createElementBlock("g",Te,[t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,o=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y,y2:o.y,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Pe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,n)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+(n+1)*r.value.stripWidth,x2:r.value.left+(n+1)*r.value.stripWidth,y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,ze))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:r.value.left,x2:r.value.left,y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ae),e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Z.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:o.x1-t.value.style.chart.labels.yAxisLabels.fontSize/2+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.y+t.value.style.chart.labels.yAxisLabels.fontSize/3,fill:t.value.style.chart.labels.yAxisLabels.color,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,"text-anchor":"end"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.chart.labels.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.chart.labels.prefix,v:o.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.yAxisLabels.rounding}),{datapoint:o,seriesIndex:n})),9,Oe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(p.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left+(n+1)*r.value.stripWidth-r.value.stripWidth/2,y:r.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize*2+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"text-anchor":"middle"},e.toDisplayString(o.name),9,Fe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.yLabel?(e.openBlock(),e.createElementBlock("text",{key:3,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,transform:`translate(${t.value.style.chart.labels.axis.fontSize+t.value.style.chart.labels.axis.yLabelOffsetX}, ${r.value.top+r.value.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.yLabel),9,De)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:4,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,x:r.value.left+r.value.width/2,y:r.value.absoluteHeight,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.xLabel),9,Me)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:i.value.y,y2:i.value.y,stroke:i.value.color,"stroke-width":1,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,We),e.createElementVNode("circle",{cx:r.value.left,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ie),e.createElementVNode("circle",{cx:r.value.right,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,qe)],64)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,o=>(e.openBlock(),e.createElementBlock("radialGradient",{id:o.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(a.lightenHexColor)(o.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Ue),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(a.darkenHexColor)(o.color,.1)},null,8,Re),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,He)],8,Ge))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createBlock(xe._sfc_main,e.mergeProps({plot:{x:u.x,y:I.value?u.y:r.value.top},radius:i.value&&i.value.id===u.id?B.value*1.5:B.value,shape:t.value.style.chart.plots.shape,stroke:t.value.style.chart.plots.stroke,strokeWidth:t.value.style.chart.plots.strokeWidth,color:t.value.style.chart.plots.gradient.show?`url(#${o.id})`:o.color,onMouseenter:T=>he({datapoint:u,seriesIndex:f}),onMouseleave:s[0]||(s[0]=T=>{P.value=!1,i.value=null}),onClick:T=>ie("selectDatapoint",u),style:`transition: all 0.2s ease-in-out; opacity:${i.value?i.value.id===u.id?1:.2:t.value.style.chart.plots.opacity};${k.value?`transition-delay:${f*50}ms`:""}`,class:{"vue-ui-strip-plot-animated":t.value.useCssAnimation&&k.value,"vue-ui-strip-plot-select-circle":t.value.useCssAnimation&&!k.value}},l.$attrs),null,16,["plot","radius","shape","stroke","strokeWidth","color","onMouseenter","onClick","style","class"]))),256)),c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f===o.plots.length-1||i.value&&i.value.id===u.id&&!c.value.showTooltip?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.x,y:u.y+t.value.style.chart.labels.bestPlotLabel.offsetY-B.value*(i.value&&i.value.id===u.id&&!c.value.showTooltip?2:1.5),"font-size":t.value.style.chart.labels.bestPlotLabel.fontSize,fill:t.value.style.chart.labels.bestPlotLabel.color,"text-anchor":"middle",style:e.normalizeStyle(`opacity:${t.value.useCssAnimation&&k.value?0:1};transition:opacity 0.2s ease-in;`)},e.toDisplayString(u.name)+" "+e.toDisplayString(t.value.style.chart.labels.bestPlotLabel.showValue?e.unref(a.applyDataLabel)(t.value.style.chart.labels.formatter,u.value,e.unref(a.dataLabel)({p:`(${t.value.style.chart.labels.prefix}`,v:u.value,s:`${t.value.style.chart.labels.suffix})`,r:t.value.style.chart.labels.bestPlotLabel.rounding}),{datapoint:u,seriesIndex:f}):""),13,Xe)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(l.$slots,"svg",{svg:r.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:6,config:{type:"stripPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,stripPlot:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:M,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:c.value.showTooltip&&P.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:y.value,content:E.value,isFullscreen:g.value,isCustom:e.unref(a.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),h.value?(e.openBlock(),e.createBlock(Ce.default,{key:8,hideDetails:"",config:{open:c.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(ge.DataTable,{key:`table_${G.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[1]||(s[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Je)]),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,$e))}},Qe=Ne._export_sfc(Ke,[["__scopeId","data-v-2a60f228"]]);exports.default=Qe;
@@ -1,16 +1,16 @@
1
- import { computed as h, ref as n, watch as Ge, onMounted as Ue, onBeforeUnmount as Ve, openBlock as s, createElementBlock as u, normalizeClass as F, normalizeStyle as B, unref as v, createBlock as T, createCommentVNode as c, createSlots as Ee, withCtx as y, renderSlot as f, normalizeProps as M, guardReactiveProps as W, createVNode as $e, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as L, mergeProps as He, createTextVNode as Re, nextTick as Be } from "vue";
2
- import { u as Xe, c as Z, t as je, a as Ye, p as A, o as Je, e as ee, g as _e, b as qe, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as te, l as et, h as tt, x as Le, y as lt, q as at, r as ot, F as st } from "./index-BbPeL8Gp.js";
1
+ import { computed as h, ref as n, watch as Ge, onMounted as Ue, onBeforeUnmount as Ve, openBlock as s, createElementBlock as u, normalizeClass as F, normalizeStyle as B, unref as v, createBlock as T, createCommentVNode as c, createSlots as Ee, withCtx as f, renderSlot as y, normalizeProps as M, guardReactiveProps as W, createVNode as $e, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as L, mergeProps as He, createTextVNode as Re, nextTick as Be } from "vue";
2
+ import { u as Xe, c as ee, t as je, a as Ye, p as A, o as Je, e as te, g as _e, b as qe, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as le, l as et, h as tt, x as Le, y as lt, q as at, r as ot, F as st } from "./index-K5uyh1gA.js";
3
3
  import { t as rt, u as ut } from "./useResponsive-CoxXLe23.js";
4
- import { _ as it } from "./Title-aSAft5dl.js";
5
- import { u as nt, U as vt } from "./usePrinter-DaybDVqP.js";
6
- import { _ as ct } from "./Tooltip-smutPF--.js";
7
- import { D as dt } from "./DataTable-DGf6RrOJ.js";
8
- import ht from "./vue-ui-skeleton-Bniq21d9.js";
9
- import { _ as pt } from "./Shape-DIKzzpFm.js";
10
- import yt from "./vue-ui-accordion-5d5iVpr7.js";
11
- import { u as Ae } from "./useNestedProp-BN8claGG.js";
12
- import { _ as ft } from "./PackageVersion-CxJghxYD.js";
13
- import { P as bt } from "./PenAndPaper-ZdZEumki.js";
4
+ import { _ as it } from "./Title-aMb2ETf7.js";
5
+ import { u as nt, U as vt } from "./usePrinter-p_ZZlGc9.js";
6
+ import { _ as ct } from "./Tooltip-BRZ3DT4p.js";
7
+ import { D as dt } from "./DataTable-COkA4Nyz.js";
8
+ import ht from "./vue-ui-skeleton-BhA2lIT6.js";
9
+ import { _ as pt } from "./Shape-BDJJ38uM.js";
10
+ import ft from "./vue-ui-accordion-CsJT7Az3.js";
11
+ import { u as Ae } from "./useNestedProp-DifqJZAs.js";
12
+ import { _ as yt } from "./PackageVersion-Dz3KcTL4.js";
13
+ import { P as bt } from "./PenAndPaper-BycdTwSP.js";
14
14
  import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _t = { key: 1 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x", "y", "fill", "font-size"], Pt = ["x", "y", "font-size", "fill"], Ot = ["fill", "font-size", "transform"], zt = ["fill", "font-size", "x", "y"], Nt = ["x1", "x2", "y1", "y2", "stroke"], Ft = ["cx", "cy", "fill"], Mt = ["cx", "cy", "fill"], Wt = ["id"], It = ["stop-color"], Dt = ["stop-color"], Gt = ["stop-color"], Ut = { key: 0 }, Vt = ["x", "y", "font-size", "fill"], Et = {
@@ -41,10 +41,10 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
41
41
  set(t) {
42
42
  return t;
43
43
  }
44
- }), j = n(Z()), le = n(0), Y = n(!1), J = n(""), S = n(null), ae = n(null), oe = n(null), se = n(null), re = n(!1), ue = n(0), ie = n(0), e = h({
44
+ }), j = n(ee()), ae = n(0), Y = n(!1), J = n(""), S = n(null), oe = n(null), se = n(null), re = n(null), ue = n(!1), ie = n(0), ne = n(0), e = h({
45
45
  get: () => de(),
46
46
  set: (t) => t
47
- }), { userOptionsVisible: ne, setUserOptionsVisibility: ve, keepUserOptionState: ce } = mt({ config: e.value });
47
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = mt({ config: e.value });
48
48
  function de() {
49
49
  const t = Ae({
50
50
  userConfig: b.config,
@@ -59,14 +59,14 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
59
59
  } : t;
60
60
  }
61
61
  Ge(() => b.config, (t) => {
62
- e.value = de(), he(), ue.value += 1, ie.value += 1;
62
+ e.value = de(), q.value = !e.value.showOnChartHover, he(), ie.value += 1, ne.value += 1;
63
63
  }, { deep: !0 });
64
64
  const I = n(null);
65
65
  Ue(() => {
66
66
  he();
67
67
  });
68
68
  function he() {
69
- if (Je(b.dataset) ? ee({
69
+ if (Je(b.dataset) ? te({
70
70
  componentName: "VueUiStripPlot",
71
71
  type: "dataset"
72
72
  }) : b.dataset.forEach((t, o) => {
@@ -74,7 +74,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
74
74
  datasetObject: t,
75
75
  requiredAttributes: ["name", "plots"]
76
76
  }).forEach((l) => {
77
- w.value = !1, ee({
77
+ w.value = !1, te({
78
78
  componentName: "VueUiStripPlot",
79
79
  type: "datasetSerieAttribute",
80
80
  property: l,
@@ -85,7 +85,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
85
85
  datasetObject: l,
86
86
  requiredAttributes: ["name", "value"]
87
87
  }).forEach((i) => {
88
- w.value = !1, ee({
88
+ w.value = !1, te({
89
89
  componentName: "VueUiStripPlot",
90
90
  type: "datasetSerieAttribute",
91
91
  property: i,
@@ -97,9 +97,9 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
97
97
  const t = rt(() => {
98
98
  const { width: o, height: l } = ut({
99
99
  chart: S.value,
100
- title: e.value.style.chart.title.text ? ae.value : null,
101
- source: oe.value,
102
- noTitle: se.value
100
+ title: e.value.style.chart.title.text ? oe.value : null,
101
+ source: se.value,
102
+ noTitle: re.value
103
103
  });
104
104
  D.value = l, P.value.width = o, P.value.height = l, N.value = (o - m.value.left - m.value.right) / b.dataset.length, G.value = st({
105
105
  relator: Math.min(l, o),
@@ -111,14 +111,14 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
111
111
  });
112
112
  I.value = new ResizeObserver(t), I.value.observe(S.value.parentNode);
113
113
  }
114
- re.value = !0, setTimeout(() => {
114
+ ue.value = !0, setTimeout(() => {
115
115
  z.value = !1;
116
116
  }, Fe.value * 50);
117
117
  }
118
118
  Ve(() => {
119
119
  I.value && I.value.disconnect();
120
120
  });
121
- const { isPrinting: pe, isImaging: ye, generatePdf: fe, generateImage: be } = nt({
121
+ const { isPrinting: pe, isImaging: fe, generatePdf: ye, generateImage: be } = nt({
122
122
  elementId: `strip-plot_${j.value}`,
123
123
  fileName: e.value.style.chart.title.text || "vue-ui-strip-plot"
124
124
  }), Ne = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = h(() => qe(e.value.customPalette)), z = n(e.value.useCssAnimation), p = n({
@@ -149,7 +149,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
149
149
  absoluteWidth: t
150
150
  };
151
151
  }), U = h(() => w.value ? b.dataset.map((t, o) => {
152
- const l = Z();
152
+ const l = ee();
153
153
  return {
154
154
  ...t,
155
155
  id: l,
@@ -159,7 +159,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
159
159
  value: Ke(r.value),
160
160
  parentId: l,
161
161
  color: t.color ? Te(t.color) : me.value[o] || A[o] || A[o % A.length],
162
- id: Z()
162
+ id: ee()
163
163
  })).sort((r, i) => r.value - i.value)
164
164
  };
165
165
  }) : null), x = h(() => (U.value || []).map((t, o) => ({
@@ -168,13 +168,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
168
168
  ...l,
169
169
  x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
170
170
  }))
171
- }))), Fe = h(() => Math.max(...x.value.map((t) => t.plots.length))), q = h(() => {
171
+ }))), Fe = h(() => Math.max(...x.value.map((t) => t.plots.length))), K = h(() => {
172
172
  const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
173
173
  return {
174
174
  max: Math.max(...t),
175
175
  min: Math.min(...t)
176
176
  };
177
- }), $ = h(() => Qe(q.value.min < 0 ? q.value.min : 0, q.value.max, e.value.style.chart.grid.scaleSteps)), Me = h(() => (x.value || []).map((t, o) => ({
177
+ }), $ = h(() => Qe(K.value.min < 0 ? K.value.min : 0, K.value.max, e.value.style.chart.grid.scaleSteps)), Me = h(() => (x.value || []).map((t, o) => ({
178
178
  ...t,
179
179
  plots: t.plots.map((l) => ({
180
180
  ...l,
@@ -185,9 +185,9 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
185
185
  x1: a.value.left,
186
186
  x2: a.value.right,
187
187
  value: t
188
- }))), K = n(null), d = n(null);
188
+ }))), Q = n(null), d = n(null);
189
189
  function We({ datapoint: t, seriesIndex: o }) {
190
- K.value = { datapoint: t, seriesIndex: o, config: e.value, series: U.value }, Y.value = !0, d.value = t;
190
+ Q.value = { datapoint: t, seriesIndex: o, config: e.value, series: U.value }, Y.value = !0, d.value = t;
191
191
  const l = e.value.style.chart.tooltip.customFormat;
192
192
  if (Le(l) && lt(() => l({
193
193
  seriesIndex: o,
@@ -203,7 +203,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
203
203
  });
204
204
  else {
205
205
  let r = "";
206
- r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, r += `<div>${te(
206
+ r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, r += `<div>${le(
207
207
  e.value.style.chart.labels.formatter,
208
208
  t.value,
209
209
  X({
@@ -273,7 +273,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
273
273
  };
274
274
  }), O = n(!1);
275
275
  function Ie(t) {
276
- O.value = t, le.value += 1;
276
+ O.value = t, ae.value += 1;
277
277
  }
278
278
  function De() {
279
279
  return x.value;
@@ -288,18 +288,18 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
288
288
  p.value.showTooltip = !p.value.showTooltip;
289
289
  }
290
290
  const H = n(!1);
291
- function Q() {
291
+ function Z() {
292
292
  H.value = !H.value;
293
293
  }
294
294
  return Pe({
295
295
  getData: De,
296
- generatePdf: fe,
296
+ generatePdf: ye,
297
297
  generateCsv: ke,
298
298
  generateImage: be,
299
299
  toggleTable: xe,
300
300
  toggleLabels: Ce,
301
301
  toggleTooltip: we,
302
- toggleAnnotator: Q
302
+ toggleAnnotator: Z
303
303
  }), (t, o) => (s(), u("div", {
304
304
  ref_key: "stripPlotChart",
305
305
  ref: S,
@@ -315,23 +315,23 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
315
315
  backgroundColor: e.value.style.chart.backgroundColor,
316
316
  color: e.value.style.chart.color,
317
317
  active: H.value,
318
- onClose: Q
318
+ onClose: Z
319
319
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
320
320
  Ne.value ? (s(), u("div", {
321
321
  key: 1,
322
322
  ref_key: "noTitle",
323
- ref: se,
323
+ ref: re,
324
324
  class: "vue-data-ui-no-title-space",
325
325
  style: "height:36px; width: 100%;background:transparent"
326
326
  }, null, 512)) : c("", !0),
327
327
  e.value.style.chart.title.text ? (s(), u("div", {
328
328
  key: 2,
329
329
  ref_key: "chartTitle",
330
- ref: ae,
330
+ ref: oe,
331
331
  style: "width:100%;background:transparent;padding-bottom:24px"
332
332
  }, [
333
333
  (s(), T(it, {
334
- key: `title_${ue.value}`,
334
+ key: `title_${ie.value}`,
335
335
  config: {
336
336
  title: {
337
337
  cy: "donut-div-title",
@@ -344,13 +344,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
344
344
  }
345
345
  }, null, 8, ["config"]))
346
346
  ], 512)) : c("", !0),
347
- e.value.userOptions.show && w.value && (v(ce) || v(ne)) ? (s(), T(vt, {
347
+ e.value.userOptions.show && w.value && (v(ce) || v(q)) ? (s(), T(vt, {
348
348
  ref: "details",
349
- key: `user_option_${le.value}`,
349
+ key: `user_option_${ae.value}`,
350
350
  backgroundColor: e.value.style.chart.backgroundColor,
351
351
  color: e.value.style.chart.color,
352
352
  isPrinting: v(pe),
353
- isImaging: v(ye),
353
+ isImaging: v(fe),
354
354
  uid: j.value,
355
355
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
356
356
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -367,70 +367,70 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
367
367
  hasAnnotator: e.value.userOptions.buttons.annotator,
368
368
  isAnnotation: H.value,
369
369
  onToggleFullscreen: Ie,
370
- onGeneratePdf: v(fe),
370
+ onGeneratePdf: v(ye),
371
371
  onGenerateCsv: ke,
372
372
  onGenerateImage: v(be),
373
373
  onToggleTable: xe,
374
374
  onToggleLabels: Ce,
375
375
  onToggleTooltip: we,
376
- onToggleAnnotator: Q,
376
+ onToggleAnnotator: Z,
377
377
  style: B({
378
- visibility: v(ce) ? v(ne) ? "visible" : "hidden" : "visible"
378
+ visibility: v(ce) ? v(q) ? "visible" : "hidden" : "visible"
379
379
  })
380
380
  }, Ee({ _: 2 }, [
381
381
  t.$slots.optionTooltip ? {
382
382
  name: "optionTooltip",
383
- fn: y(() => [
384
- f(t.$slots, "optionTooltip", {}, void 0, !0)
383
+ fn: f(() => [
384
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
385
385
  ]),
386
386
  key: "0"
387
387
  } : void 0,
388
388
  t.$slots.optionPdf ? {
389
389
  name: "optionPdf",
390
- fn: y(() => [
391
- f(t.$slots, "optionPdf", {}, void 0, !0)
390
+ fn: f(() => [
391
+ y(t.$slots, "optionPdf", {}, void 0, !0)
392
392
  ]),
393
393
  key: "1"
394
394
  } : void 0,
395
395
  t.$slots.optionCsv ? {
396
396
  name: "optionCsv",
397
- fn: y(() => [
398
- f(t.$slots, "optionCsv", {}, void 0, !0)
397
+ fn: f(() => [
398
+ y(t.$slots, "optionCsv", {}, void 0, !0)
399
399
  ]),
400
400
  key: "2"
401
401
  } : void 0,
402
402
  t.$slots.optionImg ? {
403
403
  name: "optionImg",
404
- fn: y(() => [
405
- f(t.$slots, "optionImg", {}, void 0, !0)
404
+ fn: f(() => [
405
+ y(t.$slots, "optionImg", {}, void 0, !0)
406
406
  ]),
407
407
  key: "3"
408
408
  } : void 0,
409
409
  t.$slots.optionTable ? {
410
410
  name: "optionTable",
411
- fn: y(() => [
412
- f(t.$slots, "optionTable", {}, void 0, !0)
411
+ fn: f(() => [
412
+ y(t.$slots, "optionTable", {}, void 0, !0)
413
413
  ]),
414
414
  key: "4"
415
415
  } : void 0,
416
416
  t.$slots.optionLabels ? {
417
417
  name: "optionLabels",
418
- fn: y(() => [
419
- f(t.$slots, "optionLabels", {}, void 0, !0)
418
+ fn: f(() => [
419
+ y(t.$slots, "optionLabels", {}, void 0, !0)
420
420
  ]),
421
421
  key: "5"
422
422
  } : void 0,
423
423
  t.$slots.optionFullscreen ? {
424
424
  name: "optionFullscreen",
425
- fn: y(({ toggleFullscreen: l, isFullscreen: r }) => [
426
- f(t.$slots, "optionFullscreen", M(W({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
425
+ fn: f(({ toggleFullscreen: l, isFullscreen: r }) => [
426
+ y(t.$slots, "optionFullscreen", M(W({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
427
427
  ]),
428
428
  key: "6"
429
429
  } : void 0,
430
430
  t.$slots.optionAnnotator ? {
431
431
  name: "optionAnnotator",
432
- fn: y(({ toggleAnnotator: l, isAnnotator: r }) => [
433
- f(t.$slots, "optionAnnotator", M(W({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
432
+ fn: f(({ toggleAnnotator: l, isAnnotator: r }) => [
433
+ y(t.$slots, "optionAnnotator", M(W({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
434
434
  ]),
435
435
  key: "7"
436
436
  } : void 0
@@ -442,7 +442,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
442
442
  viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
443
443
  style: B(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
444
444
  }, [
445
- $e(ft),
445
+ $e(yt),
446
446
  e.value.style.chart.grid.show ? (s(), u("g", Ct, [
447
447
  e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", wt, [
448
448
  (s(!0), u(g, null, C(ge.value, (l) => (s(), u("line", {
@@ -493,7 +493,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
493
493
  fill: e.value.style.chart.labels.yAxisLabels.color,
494
494
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
495
495
  "text-anchor": "end"
496
- }, L(v(te)(
496
+ }, L(v(le)(
497
497
  e.value.style.chart.labels.formatter,
498
498
  l.value,
499
499
  v(X)({
@@ -572,7 +572,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
572
572
  ]),
573
573
  (s(!0), u(g, null, C(Me.value, (l, r) => (s(), u(g, null, [
574
574
  (s(!0), u(g, null, C(l.plots, (i, _) => (s(), T(pt, He({
575
- plot: { x: i.x, y: re.value ? i.y : a.value.top },
575
+ plot: { x: i.x, y: ue.value ? i.y : a.value.top },
576
576
  radius: d.value && d.value.id === i.id ? G.value * 1.5 : G.value,
577
577
  shape: e.value.style.chart.plots.shape,
578
578
  stroke: e.value.style.chart.plots.stroke,
@@ -596,7 +596,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
596
596
  fill: e.value.style.chart.labels.bestPlotLabel.color,
597
597
  "text-anchor": "middle",
598
598
  style: B(`opacity:${e.value.useCssAnimation && z.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
599
- }, L(i.name) + " " + L(e.value.style.chart.labels.bestPlotLabel.showValue ? v(te)(
599
+ }, L(i.name) + " " + L(e.value.style.chart.labels.bestPlotLabel.showValue ? v(le)(
600
600
  e.value.style.chart.labels.formatter,
601
601
  i.value,
602
602
  v(X)({
@@ -610,10 +610,10 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
610
610
  ], 64))), 256))
611
611
  ])) : c("", !0)
612
612
  ], 64))), 256)),
613
- f(t.$slots, "svg", { svg: a.value }, void 0, !0)
613
+ y(t.$slots, "svg", { svg: a.value }, void 0, !0)
614
614
  ], 14, xt)) : c("", !0),
615
615
  t.$slots.watermark ? (s(), u("div", Et, [
616
- f(t.$slots, "watermark", M(W({ isPrinting: v(pe) || v(ye) })), void 0, !0)
616
+ y(t.$slots, "watermark", M(W({ isPrinting: v(pe) || v(fe) })), void 0, !0)
617
617
  ])) : c("", !0),
618
618
  w.value ? c("", !0) : (s(), T(ht, {
619
619
  key: 6,
@@ -630,10 +630,10 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
630
630
  t.$slots.source ? (s(), u("div", {
631
631
  key: 7,
632
632
  ref_key: "source",
633
- ref: oe,
633
+ ref: se,
634
634
  dir: "auto"
635
635
  }, [
636
- f(t.$slots, "source", {}, void 0, !0)
636
+ y(t.$slots, "source", {}, void 0, !0)
637
637
  ], 512)) : c("", !0),
638
638
  $e(ct, {
639
639
  show: p.value.showTooltip && Y.value,
@@ -651,15 +651,15 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
651
651
  isFullscreen: O.value,
652
652
  isCustom: v(Le)(e.value.style.chart.tooltip.customFormat)
653
653
  }, {
654
- "tooltip-before": y(() => [
655
- f(t.$slots, "tooltip-before", M(W({ ...K.value })), void 0, !0)
654
+ "tooltip-before": f(() => [
655
+ y(t.$slots, "tooltip-before", M(W({ ...Q.value })), void 0, !0)
656
656
  ]),
657
- "tooltip-after": y(() => [
658
- f(t.$slots, "tooltip-after", M(W({ ...K.value })), void 0, !0)
657
+ "tooltip-after": f(() => [
658
+ y(t.$slots, "tooltip-after", M(W({ ...Q.value })), void 0, !0)
659
659
  ]),
660
660
  _: 3
661
661
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
662
- w.value ? (s(), T(yt, {
662
+ w.value ? (s(), T(ft, {
663
663
  key: 8,
664
664
  hideDetails: "",
665
665
  config: {
@@ -675,9 +675,9 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
675
675
  }
676
676
  }
677
677
  }, {
678
- content: y(() => [
678
+ content: f(() => [
679
679
  (s(), T(dt, {
680
- key: `table_${ie.value}`,
680
+ key: `table_${ne.value}`,
681
681
  colNames: E.value.colNames,
682
682
  head: E.value.head,
683
683
  body: E.value.body,
@@ -685,13 +685,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
685
685
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
686
686
  onClose: o[1] || (o[1] = (l) => p.value.showTable = !1)
687
687
  }, {
688
- th: y(({ th: l }) => [
688
+ th: f(({ th: l }) => [
689
689
  k("div", {
690
690
  innerHTML: l,
691
691
  style: { display: "flex", "align-items": "center" }
692
692
  }, null, 8, Ht)
693
693
  ]),
694
- td: y(({ td: l }) => [
694
+ td: f(({ td: l }) => [
695
695
  Re(L(l.name || l), 1)
696
696
  ]),
697
697
  _: 1
@@ -701,7 +701,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = { key: 0 }, wt = { key: 0 },
701
701
  }, 8, ["config"])) : c("", !0)
702
702
  ], 46, kt));
703
703
  }
704
- }, rl = /* @__PURE__ */ gt(Rt, [["__scopeId", "data-v-8317d4a4"]]);
704
+ }, rl = /* @__PURE__ */ gt(Rt, [["__scopeId", "data-v-2a60f228"]]);
705
705
  export {
706
706
  rl as default
707
707
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-DhDYBLBe.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BkXYJDpD.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
2
2
  Provide an array of objects of type:
3
3
  {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-BbPeL8Gp.js";
1
+ import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a0 as H } from "./index-K5uyh1gA.js";
2
2
  import { openBlock as i, createElementBlock as c, normalizeStyle as g, createElementVNode as a, toDisplayString as u, Fragment as b, renderList as _, normalizeClass as f, createTextVNode as I, createCommentVNode as N, withDirectives as k, vModelText as w, withKeys as S, withModifiers as O, vModelSelect as P, createStaticVNode as R, pushScopeId as U, popScopeId as V } from "vue";
3
3
  import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const X = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BkXYJDpD.cjs"),S=require("./useNestedProp-C6IvqE-r.cjs"),$=require("./usePrinter-DHv-BwME.cjs"),U=require("./Shape-BBp5EwJH.cjs"),q=require("./useUserOptionState-BgepsfED.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],L={role:"cell"},A={role:"row"},D=["data-cell"],X={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},W=["height","width"],J={key:0,role:"cell","data-cell":"sum"},K={key:1,role:"cell","data-cell":"average"},Q={key:2,role:"cell","data-cell":"median"},Y={key:1,ref:"source",dir:"auto"},Z={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(w,{expose:N}){const d=w;e.useCssVars(t=>({"71b0617e":M.value,"08e6c59c":R.value}));const{vue_ui_table_heatmap:E}=l.useConfig(),p=e.ref(l.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),f=e.ref(0),o=e.computed({get:()=>y(),set:t=>t}),{userOptionsVisible:v,setUserOptionsVisibility:g,keepUserOptionState:h}=q.useUserOptionState({config:o.value});function y(){const t=S.useNestedProp({userConfig:d.config,defaultConfig:E});return t.theme?{...S.useNestedProp({userConfig:l.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=y(),v.value=!o.value.showOnChartHover,C()},{deep:!0});const{isPrinting:V,isImaging:x,generatePdf:k,generateImage:b}=$.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),O=e.computed(()=>o.value.table.responsiveBreakpoint),z=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{C()});function C(){l.objectIsEmpty(d.dataset)&&l.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(a=>{a.forEach(n=>{s.value=n.contentRect.width<O.value})});c.value&&t.observe(c.value)}const B=e.computed(()=>d.dataset.map(t=>{const a=t.values.map(r=>isNaN(r)?0:r),n=a.reduce((r,i)=>r+i,0);return{...t,values:a,serieExtremes:{max:Math.max(...a),min:Math.min(...a)},sum:n,average:n/a.length,median:l.calcMedian(a),displayValues:[t.name,...t.values],id:l.createUid()}})),P=e.computed(()=>{const t=B.value.flatMap(a=>a.values);return{min:Math.min(...t),max:Math.max(...t)}});function F(t,a){const n=o.value.style.heatmapColors.useIndividualScale;return l.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?a.min:P.value.min,n?a.max:P.value.max,t)}const _=e.computed(()=>B.value.map(t=>({...t,colors:t.displayValues.map(a=>isNaN(a)?o.value.style.backgroundColor:F(a,t.serieExtremes))}))),R=e.computed(()=>o.value.style.backgroundColor),M=e.computed(()=>`${o.value.table.borderWidth}px`);function I(){e.nextTick(()=>{const t=_.value.map(r=>[[r.name],r.displayValues,[r.sum],[r.average],[r.median]]),a=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=l.createCsvContent(a);l.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function T(t){m.value=t,f.value+=1}return N({generatePdf:k,generateCsv:I,generateImage:b}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`,onMouseenter:a[0]||(a[0]=()=>e.unref(g)(!0)),onMouseleave:a[1]||(a[1]=()=>e.unref(g)(!1))},[o.value.userOptions.show&&z.value&&(e.unref(h)||e.unref(v))?(e.openBlock(),e.createBlock($.UserOptions,{ref:"details",key:`user_option_${f.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(V),isImaging:e.unref(x),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:T,onGeneratePdf:e.unref(k),onGenerateCsv:I,onGenerateImage:e.unref(b),style:e.normalizeStyle({visibility:e.unref(h)?e.unref(v)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:r})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,r)=>(e.openBlock(),e.createElementBlock("th",L,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:r,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(n,r)=>(e.openBlock(),e.createElementBlock("tr",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",X,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(U._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,W)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(l.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,D))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",J,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",K,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",Q,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",Y,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,H))}},j=G._export_sfc(Z,[["__scopeId","data-v-d7c8a9cf"]]);exports.default=j;