vue-data-ui 2.3.61 → 2.3.62

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 (162) hide show
  1. package/dist/{Arrow-B5nYwPUt.js → Arrow-Dho8ylDy.js} +1 -1
  2. package/dist/{Arrow-Dv_tprAO.cjs → Arrow-ov-EIAPu.cjs} +1 -1
  3. package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
  4. package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-BNStcP8c.js} +1 -1
  5. package/dist/{DataTable-NUzEZXWt.js → DataTable-luIjNnne.js} +2 -2
  6. package/dist/{DataTable-B6xCb-DR.cjs → DataTable-yf_eyv8c.cjs} +1 -1
  7. package/dist/{Legend-ePmJ_YIA.cjs → Legend-6JY5pUsT.cjs} +1 -1
  8. package/dist/{Legend-C3tseguI.js → Legend-B9dawQa7.js} +1 -1
  9. package/dist/{Shape-DAe5uqIA.cjs → Shape-BoXM3HKY.cjs} +1 -1
  10. package/dist/{Shape-BPcWPP9D.js → Shape-BsAETTif.js} +1 -1
  11. package/dist/{Slicer-BJs52Jle.cjs → Slicer-DoMAeSUY.cjs} +1 -1
  12. package/dist/{Slicer-CmHwU6if.js → Slicer-iGmqxtRQ.js} +9 -9
  13. package/dist/{Title-B_p983os.cjs → Title-CBcoQe02.cjs} +1 -1
  14. package/dist/{Title-BAQrVaNA.js → Title-fb3BzoXj.js} +1 -1
  15. package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
  16. package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBugtvWB.js} +5 -5
  17. package/dist/{index-CwG--L4Z.js → index-BshV7sX1.js} +538 -515
  18. package/dist/{index-nPEJmXmf.cjs → index-D2ZScauW.cjs} +4 -4
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-B235bkr5.js} +1 -1
  21. package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
  22. package/dist/{usePrinter-Do9tGYem.js → usePrinter-Culo-aKo.js} +1 -1
  23. package/dist/{usePrinter-D012Olnq.cjs → usePrinter-eqT4IYET.cjs} +1 -1
  24. package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
  25. package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-aJ6K70wA.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +7 -7
  28. package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-BRbooRg3.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
  31. package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
  32. package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
  34. package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
  36. package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
  37. package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
  38. package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
  41. package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
  42. package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
  43. package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
  46. package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DkYpomD9.js} +2 -2
  47. package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
  48. package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
  49. package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
  50. package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
  51. package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-uujhj36t.js} +42 -42
  52. package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
  53. package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
  54. package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
  55. package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
  56. package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
  57. package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
  58. package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
  59. package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
  64. package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
  66. package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
  70. package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
  74. package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
  75. package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-CI9ARfRM.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
  78. package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
  80. package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
  81. package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
  82. package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
  83. package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-Dd24aGwh.js} +59 -59
  84. package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-CQWK2lk1.js} +9 -9
  85. package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
  88. package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
  89. package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-yyFx2W1b.js} +188 -185
  90. package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
  91. package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
  93. package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
  95. package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
  97. package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
  99. package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
  100. package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
  101. package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
  102. package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
  103. package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
  104. package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
  106. package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
  108. package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
  110. package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
  111. package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
  112. package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
  114. package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
  115. package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
  117. package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-ipCsGZPx.js} +1 -1
  118. package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
  119. package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
  120. package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
  121. package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
  122. package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
  123. package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-cCfNkOpe.js} +4 -4
  124. package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
  125. package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
  126. package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
  127. package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
  128. package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
  129. package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
  130. package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
  131. package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
  134. package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
  135. package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
  136. package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
  137. package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-B_dmMYPU.js} +82 -82
  138. package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
  140. package/package.json +1 -1
  141. package/dist/vue-ui-age-pyramid-BILMRRi1.cjs +0 -1
  142. package/dist/vue-ui-donut-evolution-K7LUkN6q.cjs +0 -1
  143. package/dist/vue-ui-dumbbell-HVpK20XO.cjs +0 -9
  144. package/dist/vue-ui-flow-CiXnGdNb.js +0 -465
  145. package/dist/vue-ui-flow-ClV2yd8Y.cjs +0 -1
  146. package/dist/vue-ui-galaxy-CMCXCWDA.cjs +0 -1
  147. package/dist/vue-ui-gauge-DwCGaX1h.cjs +0 -1
  148. package/dist/vue-ui-heatmap-WFNo-GFX.cjs +0 -1
  149. package/dist/vue-ui-quick-chart-D9zFHA0L.cjs +0 -15
  150. package/dist/vue-ui-radar-D8ik0Fqr.cjs +0 -1
  151. package/dist/vue-ui-rings-Dn5opKNy.cjs +0 -2
  152. package/dist/vue-ui-spark-trend-DnO4DW0n.cjs +0 -1
  153. package/dist/vue-ui-spark-trend-HioE2zeC.js +0 -251
  154. package/dist/vue-ui-sparkgauge-C2_I0tyO.cjs +0 -1
  155. package/dist/vue-ui-strip-plot-BMKaWqD4.cjs +0 -1
  156. package/dist/vue-ui-thermometer-Bfp-FwRE.cjs +0 -1
  157. package/dist/vue-ui-tiremarks-BeBJHz2R.cjs +0 -1
  158. package/dist/vue-ui-treemap-DqBukSj6.cjs +0 -1
  159. package/dist/vue-ui-vertical-bar-BM3aaSuB.cjs +0 -4
  160. package/dist/vue-ui-word-cloud-BbnU0d3E.cjs +0 -1
  161. package/dist/vue-ui-xy-BU0fCkSk.cjs +0 -3
  162. package/dist/vue-ui-xy-canvas-IaIARWWS.cjs +0 -9
@@ -1,17 +1,17 @@
1
- import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as _, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ht, withCtx as z, normalizeProps as W, guardReactiveProps as B, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as S, createTextVNode as dt } from "vue";
2
- import { u as yt, c as De, o as gt, e as Ee, g as bt, t as ft, a as mt, p as oe, I as He, b as pt, d as xt, a0 as se, W as We, A as Be, X as kt, l as wt, D as Xe, f as E, v as Ue, w as Ye, i as Ge, x as Ct, q as _t, r as zt } from "./index-CwG--L4Z.js";
3
- import { u as Je } from "./useNestedProp-BqwYEJGM.js";
1
+ import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as _, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ht, withCtx as z, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as S, createTextVNode as dt } from "vue";
2
+ import { u as yt, c as De, o as gt, e as Ee, g as bt, t as ft, a as mt, p as oe, K as He, b as pt, d as xt, a1 as se, Z as Be, B as We, X as kt, l as wt, E as Xe, f as E, w as Ue, x as Ye, i as Ge, y as Ct, q as _t, r as zt } from "./index-BshV7sX1.js";
3
+ import { u as Je } from "./useNestedProp-B235bkr5.js";
4
4
  import { t as Lt, u as St } from "./useResponsive-NZB-WLRF.js";
5
- import { u as $t, U as Mt } from "./usePrinter-Do9tGYem.js";
6
- import { S as Tt } from "./Slicer-CmHwU6if.js";
7
- import { _ as Nt } from "./Tooltip-B73tTE2v.js";
8
- import { _ as Ot } from "./Title-BAQrVaNA.js";
9
- import { L as Pt } from "./Legend-C3tseguI.js";
10
- import Rt from "./vue-ui-accordion-Be_wWB1T.js";
11
- import { D as It } from "./DataTable-NUzEZXWt.js";
12
- import Vt from "./vue-ui-skeleton-ClzVF3vm.js";
5
+ import { u as $t, U as Mt } from "./usePrinter-Culo-aKo.js";
6
+ import { S as Tt } from "./Slicer-iGmqxtRQ.js";
7
+ import { _ as Nt } from "./Tooltip-CBugtvWB.js";
8
+ import { _ as Ot } from "./Title-fb3BzoXj.js";
9
+ import { L as Pt } from "./Legend-B9dawQa7.js";
10
+ import Rt from "./vue-ui-accordion-B6AxEnAr.js";
11
+ import { D as It } from "./DataTable-luIjNnne.js";
12
+ import Vt from "./vue-ui-skeleton-7qakoAGH.js";
13
13
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt = ["stop-color"], Bt = ["stop-color"], Xt = ["stop-color"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["transform", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, la = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x", "y", "font-size", "fill", "font-weight"], oa = { key: 0 }, sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "font-size", "font-weight", "fill"], na = ["x1", "x2", "y1", "y2", "stroke"], ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], va = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ha = ["font-size", "font-weight", "fill", "x", "y"], da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ya = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ga = {
14
+ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Xt = ["stop-color"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], qt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["transform", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, la = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x", "y", "font-size", "fill", "font-weight"], oa = { key: 0 }, sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "font-size", "font-weight", "fill"], na = ["x1", "x2", "y1", "y2", "stroke"], ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], va = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ha = ["font-size", "font-weight", "fill", "x", "y"], da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ya = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ga = {
15
15
  key: 3,
16
16
  class: "vue-data-ui-watermark"
17
17
  }, ba = ["onClick"], fa = ["innerHTML"], ma = {
@@ -31,8 +31,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint", "selectLegend"],
34
- setup(he, { expose: qe, emit: de }) {
35
- const k = he, { vue_ui_stackbar: Ze } = yt(), H = p({
34
+ setup(he, { expose: Ze, emit: de }) {
35
+ const k = he, { vue_ui_stackbar: qe } = yt(), H = p({
36
36
  get() {
37
37
  return !!k.dataset && k.dataset.length;
38
38
  },
@@ -63,7 +63,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
63
63
  const e = p(() => {
64
64
  const a = Je({
65
65
  userConfig: k.config,
66
- defaultConfig: Ze
66
+ defaultConfig: qe
67
67
  });
68
68
  let r = {};
69
69
  return a.theme ? r = {
@@ -162,7 +162,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
162
162
  })))
163
163
  };
164
164
  }), N = p(() => {
165
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? We(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Be(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
165
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : We(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
166
166
  return l.ticks.map((i) => ({
167
167
  zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
168
168
  y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -175,9 +175,9 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
175
175
  }), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
176
176
  if (!H.value) return [];
177
177
  let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
178
- const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? We(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Be(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: q } = I, F = q + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, Ve = N.value[0] ? N.value[0].zero : o.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
179
- return P.value.filter((Z) => !L.value.includes(Z.id)).map((Z) => {
180
- const O = Z.series.slice(c.value.start, c.value.end), rt = Z.signedSeries.slice(c.value.start, c.value.end), ot = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), st = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), it = O.map((y, g) => {
178
+ const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : We(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: Z } = I, F = Z + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, Ve = N.value[0] ? N.value[0].zero : o.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
179
+ return P.value.filter((q) => !L.value.includes(q.id)).map((q) => {
180
+ const O = q.series.slice(c.value.start, c.value.end), rt = q.signedSeries.slice(c.value.start, c.value.end), ot = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), st = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), it = O.map((y, g) => {
181
181
  const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
182
182
  let A, T;
183
183
  return y > 0 ? (T = $ * M, A = Ve - T - a[g], a[g] += T) : (T = $ * M, A = Ve + t[g], t[g] += Math.abs(T)), A;
@@ -193,7 +193,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
193
193
  return y > 0 ? re * M : re * Math.abs(M);
194
194
  }), vt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
195
195
  return {
196
- ...Z,
196
+ ...q,
197
197
  proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / vt),
198
198
  series: O,
199
199
  signedSeries: rt,
@@ -274,14 +274,14 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
274
274
  roundingValue: I,
275
275
  roundingPercentage: V
276
276
  } = e.value.style.chart.tooltip;
277
- let q = "";
278
- J.value[a] && (q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
277
+ let Z = "";
278
+ J.value[a] && (Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
279
279
  const F = [
280
280
  i && n ? "(" : "",
281
281
  i && n ? ")" : ""
282
282
  ];
283
283
  t.reverse().forEach(($) => {
284
- q += `
284
+ Z += `
285
285
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
286
286
  <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
287
287
  ${$.name}${i || n ? ":" : ""} ${i ? E({
@@ -297,7 +297,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
297
297
  }) : ""}${F[1]}
298
298
  </div>
299
299
  `;
300
- }), ue.value = `<div>${q}</div>`;
300
+ }), ue.value = `<div>${Z}</div>`;
301
301
  }
302
302
  }
303
303
  function et(a) {
@@ -379,7 +379,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
379
379
  paddingBottom: 12,
380
380
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
381
381
  }));
382
- return qe({
382
+ return Ze({
383
383
  getData: tt,
384
384
  generatePdf: we,
385
385
  generateCsv: Re,
@@ -486,7 +486,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
486
486
  a.$slots.optionFullscreen ? {
487
487
  name: "optionFullscreen",
488
488
  fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
489
- _(a.$slots, "optionFullscreen", W(B({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
489
+ _(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
490
490
  ]),
491
491
  key: "6"
492
492
  } : void 0
@@ -508,11 +508,11 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
508
508
  D("stop", {
509
509
  offset: "0%",
510
510
  "stop-color": t.color
511
- }, null, 8, Wt),
511
+ }, null, 8, Bt),
512
512
  D("stop", {
513
513
  offset: "61.8%",
514
514
  "stop-color": x(wt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
515
- }, null, 8, Bt),
515
+ }, null, 8, Wt),
516
516
  D("stop", {
517
517
  offset: "100%",
518
518
  "stop-color": t.color
@@ -568,7 +568,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
568
568
  "stroke-linecap": "round",
569
569
  "stroke-linejoin": "round",
570
570
  class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
571
- }, null, 10, qt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
571
+ }, null, 10, Zt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
572
572
  x: i,
573
573
  y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
574
574
  width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
@@ -580,7 +580,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
580
580
  "stroke-linecap": "round",
581
581
  "stroke-linejoin": "round",
582
582
  class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
583
- }, null, 10, Zt))), 256))
583
+ }, null, 10, qt))), 256))
584
584
  ]))), 256)),
585
585
  e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
586
586
  key: 5,
@@ -750,10 +750,10 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
750
750
  }),
751
751
  fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
752
752
  }, null, 40, ya))), 256)) : v("", !0),
753
- _(a.$slots, "svg", W(B({ ...o.value })), void 0, !0)
753
+ _(a.$slots, "svg", B(W({ ...o.value })), void 0, !0)
754
754
  ], 12, Dt)) : v("", !0),
755
755
  a.$slots.watermark ? (s(), u("div", ga, [
756
- _(a.$slots, "watermark", W(B({ isPrinting: x(xe) || x(ke) })), void 0, !0)
756
+ _(a.$slots, "watermark", B(W({ isPrinting: x(xe) || x(ke) })), void 0, !0)
757
757
  ])) : v("", !0),
758
758
  H.value ? v("", !0) : (s(), Q(Vt, {
759
759
  key: 4,
@@ -798,7 +798,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
798
798
  onReset: Qe
799
799
  }, {
800
800
  "reset-action": z(({ reset: t }) => [
801
- _(a.$slots, "reset-action", W(B({ reset: t })), void 0, !0)
801
+ _(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
802
802
  ]),
803
803
  _: 3
804
804
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
@@ -819,10 +819,10 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Wt =
819
819
  isCustom: x(Ye)(e.value.style.chart.tooltip.customFormat)
820
820
  }, {
821
821
  "tooltip-before": z(() => [
822
- _(a.$slots, "tooltip-before", W(B({ ...ye.value })), void 0, !0)
822
+ _(a.$slots, "tooltip-before", B(W({ ...ye.value })), void 0, !0)
823
823
  ]),
824
824
  "tooltip-after": z(() => [
825
- _(a.$slots, "tooltip-after", W(B({ ...ye.value })), void 0, !0)
825
+ _(a.$slots, "tooltip-after", B(W({ ...ye.value })), void 0, !0)
826
826
  ]),
827
827
  _: 3
828
828
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-nPEJmXmf.cjs"),pe=require("./useNestedProp-TbnnNrH2.cjs"),ke=require("./useResponsive-B3TrDDIG.cjs"),xe=require("./usePrinter-D012Olnq.cjs"),De=require("./Slicer-BJs52Jle.cjs"),Ie=require("./Tooltip-C2dhDgoh.cjs"),Ae=require("./Title-B_p983os.cjs"),He=require("./Legend-ePmJ_YIA.cjs"),qe=require("./vue-ui-accordion-CHL4xuW4.cjs"),We=require("./DataTable-B6xCb-DR.cjs"),Ue=require("./vue-ui-skeleton-D6wHGzmu.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ye=["id"],Ge=["xmlns","viewBox"],Je={key:0},Ze=["id"],Ke=["stop-color"],Qe=["stop-color"],je=["stop-color"],et=["x1","x2","y1","y2","stroke"],tt=["x1","x2","y1","y2","stroke"],at=["x1","x2","y1","y2","stroke"],lt=["x1","x2","y1","y2","stroke"],ot=["x","y","height","rx","width","fill","stroke","stroke-width"],rt=["x","y","width","rx","height","fill","stroke","stroke-width"],st=["x1","x2","y1","y2","stroke","stroke-width"],nt=["x1","x2","y1","y2","stroke","stroke-width"],it=["x","y","font-size","fill","font-weight"],ut=["transform","font-size","fill","font-weight"],ct=["x","y","font-size","fill","font-weight"],dt={key:0},vt=["x","y","font-size","font-weight","fill"],ht=["x","y","font-size","fill","font-weight"],gt={key:0},yt=["x","y","font-size","font-weight","fill"],mt=["x1","x2","y1","y2","stroke"],bt=["x","y","font-size","font-weight","fill"],ft=["x1","x2","y1","y2","stroke"],pt=["font-size","font-weight","fill","text-anchor","transform"],kt=["text-anchor","font-size","font-weight","fill","transform"],xt=["font-size","font-weight","fill","x","y"],wt=["x","y","width","height","onClick","onMouseenter","fill"],Ct=["x","y","width","height","onClick","onMouseenter","fill"],Bt={key:3,class:"vue-data-ui-watermark"},Lt=["onClick"],St=["innerHTML"],zt={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend"],setup(Y,{expose:we,emit:G}){const y=Y,{vue_ui_stackbar:Ce}=c.useConfig(),E=e.computed({get(){return!!y.dataset&&y.dataset.length},set(l){return l}}),M=e.ref(null),W=e.ref(c.createUid()),O=e.ref(!1),J=e.ref(null),U=e.ref(""),f=e.ref([]),Z=e.ref(0),K=e.ref(null),Q=e.ref(null),j=e.ref(null),ee=e.ref(0),X=e.ref(!1),$=e.ref(null),T=e.ref(!1);e.onMounted(()=>{c.objectIsEmpty(y.dataset)?c.error({componentName:"VueUiStackbar",type:"dataset"}):y.dataset.forEach((l,r)=>{c.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{E.value=!1,c.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:r})})}),setTimeout(()=>{T.value=!0},10)});const t=e.computed(()=>{const l=pe.useNestedProp({userConfig:y.config,defaultConfig:Ce});let r={};return l.theme?r={...pe.useNestedProp({userConfig:c.themes.vue_ui_stackbar[l.theme]||y.config,defaultConfig:l}),customPalette:c.themePalettes[l.theme]||c.palette}:r=l,y.config&&c.hasDeepProperty(y.config,"style.chart.grid.scale.scaleMin")?r.style.chart.grid.scale.scaleMin=y.config.style.chart.grid.scale.scaleMin:r.style.chart.grid.scale.scaleMin=null,y.config&&c.hasDeepProperty(y.config,"style.chart.grid.scale.scaleMax")?r.style.chart.grid.scale.scaleMax=y.config.style.chart.grid.scale.scaleMax:r.style.chart.grid.scale.scaleMax=null,r}),b=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:te,isImaging:ae,generatePdf:le,generateImage:oe}=xe.usePrinter({elementId:`stackbar_${W.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),D=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,paddingRatio:{top:t.value.style.chart.padding.top/t.value.style.chart.height,right:t.value.style.chart.padding.right/t.value.style.chart.width,bottom:t.value.style.chart.padding.bottom/t.value.style.chart.height,left:t.value.style.chart.padding.left/t.value.style.chart.width}}),Be=e.computed(()=>c.convertCustomPalette(t.value.customPalette)),re=e.ref(null),se=e.ref(null);e.onMounted(()=>{if(t.value.responsive){const l=ke.throttle(()=>{T.value=!1;const{width:r,height:a}=ke.useResponsive({chart:M.value,title:t.value.style.chart.title.text?K.value:null,legend:t.value.style.chart.legend.show?Q.value:null,slicer:t.value.style.chart.zoom.show&&L.value>1?j.value:null});D.value.width=r,D.value.height=a,clearTimeout(se.value),se.value=setTimeout(()=>{T.value=!0},10)});re.value=new ResizeObserver(l),re.value.observe(M.value.parentNode)}});const s=e.computed(()=>{const{height:l,width:r}=D.value,{right:a}=D.value.paddingRatio,o=t.value.style.chart.padding.top,n=r-r*a,i=l-t.value.style.chart.padding.bottom,m=t.value.style.chart.padding.left,S=r-m-r*a,z=l-o-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:r,top:o,right:n,bottom:i,left:m,width:S,height:z<0?0:z}}),B=e.computed(()=>y.dataset.map((l,r)=>{const a=c.convertColorToHex(l.color)||Be.value[r]||c.palette[r]||c.palette[r%c.palette.length];return{...l,series:JSON.parse(JSON.stringify(l.series)).map(o=>t.value.style.chart.bars.distributed?Math.abs(o):o),signedSeries:l.series.map(o=>o>=0?1:-1),absoluteIndex:r,id:c.createUid(),color:a}})),L=e.computed(()=>Math.max(...B.value.filter(l=>!f.value.includes(l.id)).map(l=>l.series.length))),u=e.ref({start:0,end:Math.max(...y.dataset.map(l=>l.series.length))});function Le(){u.value={start:0,end:Math.max(...y.dataset.map(l=>l.series.length))},ee.value+=1}const d=e.computed(()=>{let l;return t.value.orientation==="vertical"?l=s.value.width/(u.value.end-u.value.start):l=s.value.height/(u.value.end-u.value.start),l<=0?0:l}),V=e.computed(()=>c.sumSeries(B.value.filter(l=>!f.value.includes(l.id))).slice(u.value.start,u.value.end)),Se=e.computed(()=>c.sumSeries(B.value.filter(l=>!f.value.includes(l.id)).map(l=>({...l,series:l.series.map((r,a)=>l.signedSeries[a]===-1&&r>=0?-r:r)}))).slice(u.value.start,u.value.end)),I=e.computed(()=>{const l=B.value.filter(r=>!f.value.includes(r.id));return{positive:c.sumSeries(l.map(r=>({...r,series:r.series.slice(u.value.start,u.value.end).map(a=>a>=0?a:0)}))),negative:c.sumSeries(l.map(r=>({...r,series:r.series.slice(u.value.start,u.value.end).map(a=>a<0?a:0)})))}}),w=e.computed(()=>{const l=t.value.style.chart.grid.scale.scaleMax!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMax:Math.max(...I.value.positive),r=Math.min(...I.value.negative),a=t.value.style.chart.grid.scale.scaleMin!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMin:[-1/0,1/0,NaN,void 0,null].includes(r)?0:r,o=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?c.calculateNiceScaleWithExactExtremes(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks):c.calculateNiceScale(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks);return o.ticks.map(n=>({zero:s.value.bottom-s.value.height*(Math.abs(o.min)/(o.max+Math.abs(o.min))),y:s.value.bottom-s.value.height*((n+Math.abs(o.min))/(o.max+Math.abs(o.min))),x:s.value.left-8,horizontal_zero:s.value.left+s.value.width*(Math.abs(o.min)/(o.max+Math.abs(o.min))),horizontal_x:s.value.left+s.value.width*((n+Math.abs(o.min))/(o.max+Math.abs(o.min))),horizontal_y:s.value.bottom-8,value:n}))}),F=e.computed(()=>t.value.style.chart.grid.x.timeLabels.values.slice(u.value.start,u.value.end)),g=e.computed(()=>{if(!E.value)return[];let l=Array(L.value).fill(0),r=Array(L.value).fill(0),a=Array(L.value).fill(0),o=Array(L.value).fill(0);const n=Math.max(...I.value.positive)||0,i=Math.min(...I.value.negative),m=[-1/0,1/0,NaN,void 0,null].includes(i)?0:i,S=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?c.calculateNiceScaleWithExactExtremes(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:m>0?0:m,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:n<0?0:n,t.value.style.chart.grid.scale.ticks):c.calculateNiceScale(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:m>0?0:m,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:n<0?0:n,t.value.style.chart.grid.scale.ticks),{min:z,max:P}=S,_=P+(z>=0?0:Math.abs(z))||1,p=s.value.height,q=s.value.width,be=w.value[0]?w.value[0].zero:s.value.bottom,fe=w.value[0]?w.value[0].horizontal_zero:s.value.left;return B.value.filter(R=>!f.value.includes(R.id)).map(R=>{const C=R.series.slice(u.value.start,u.value.end),Me=R.signedSeries.slice(u.value.start,u.value.end),$e=C.map((v,h)=>s.value.left+d.value*h+d.value*t.value.style.chart.bars.gapRatio/4),Te=C.map((v,h)=>s.value.top+d.value*h+d.value*t.value.style.chart.bars.gapRatio/4),Ve=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;let N,x;return v>0?(x=p*k,N=be-x-l[h],l[h]+=x):(x=p*k,N=be+a[h],a[h]+=Math.abs(x)),N}),Fe=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;let N,x;return v>0?(x=q*k,N=fe+r[h],r[h]+=x):(x=q*k,N=fe-Math.abs(x)-o[h],o[h]+=Math.abs(x)),N}),Pe=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;return v>0?p*k:p*Math.abs(k)}),Re=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;return v>0?q*k:q*Math.abs(k)}),Oe=C.map(v=>Math.abs(v)).reduce((v,h)=>v+h,0);return{...R,proportions:C.map((v,h)=>t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/Oe),series:C,signedSeries:Me,x:$e,y:Ve,height:Pe,horizontal_width:Re,horizontal_y:Te,horizontal_x:Fe}})}),ne=e.computed(()=>Se.value.map((l,r)=>({value:l,sign:l>=0?1:-1})));function A(l,r,a,o,n){const i=n===-1&&l>=0?-l:l;return c.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,i,c.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:i,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:r,seriesIndex:a,datapointIndex:o})}function ie(l,r,a,o){return c.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,l,c.dataLabel({v:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:r,seriesIndex:a,datapointIndex:o})}function ue(l){const r=JSON.parse(JSON.stringify(g.value)).map(a=>({name:a.name,value:a.series[l]===0?0:a.series[l]||null,proportion:a.proportions[l]||null,color:a.color,id:a.id}));G("selectDatapoint",{datapoint:r,period:F.value[l]})}function ce(l){$.value=l,O.value=!0;const r=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(g.value)).map(n=>({name:n.name,value:n.series[l]===0?0:(n.signedSeries[l]===-1&&n.series[l]>=0?-n.series[l]:n.series[l])||null,proportion:n.proportions[l]||null,color:n.color,id:n.id})),o=a.map(n=>Math.abs(n.value)).reduce((n,i)=>n+i,0);if(c.isFunction(r)&&c.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:g.value,config:t.value})))U.value=r({seriesIndex:l,datapoint:a,series:g.value,config:t.value});else{const{showValue:n,showPercentage:i,borderColor:m,roundingValue:S,roundingPercentage:z}=t.value.style.chart.tooltip;let P="";F.value[l]&&(P+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${m};padding-bottom:6px;margin-bottom:3px;">${F.value[l]}</div>`);const _=[n&&i?"(":"",n&&i?")":""];a.reverse().forEach(p=>{P+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-D2ZScauW.cjs"),pe=require("./useNestedProp-BU7yyXFA.cjs"),ke=require("./useResponsive-B3TrDDIG.cjs"),xe=require("./usePrinter-eqT4IYET.cjs"),De=require("./Slicer-DoMAeSUY.cjs"),Ie=require("./Tooltip-BhuD1Kc5.cjs"),Ae=require("./Title-CBcoQe02.cjs"),He=require("./Legend-6JY5pUsT.cjs"),qe=require("./vue-ui-accordion-BhCJcWDd.cjs"),We=require("./DataTable-yf_eyv8c.cjs"),Ue=require("./vue-ui-skeleton-BLhbQje-.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ye=["id"],Ge=["xmlns","viewBox"],Je={key:0},Ze=["id"],Ke=["stop-color"],Qe=["stop-color"],je=["stop-color"],et=["x1","x2","y1","y2","stroke"],tt=["x1","x2","y1","y2","stroke"],at=["x1","x2","y1","y2","stroke"],lt=["x1","x2","y1","y2","stroke"],ot=["x","y","height","rx","width","fill","stroke","stroke-width"],rt=["x","y","width","rx","height","fill","stroke","stroke-width"],st=["x1","x2","y1","y2","stroke","stroke-width"],nt=["x1","x2","y1","y2","stroke","stroke-width"],it=["x","y","font-size","fill","font-weight"],ut=["transform","font-size","fill","font-weight"],ct=["x","y","font-size","fill","font-weight"],dt={key:0},vt=["x","y","font-size","font-weight","fill"],ht=["x","y","font-size","fill","font-weight"],gt={key:0},yt=["x","y","font-size","font-weight","fill"],mt=["x1","x2","y1","y2","stroke"],bt=["x","y","font-size","font-weight","fill"],ft=["x1","x2","y1","y2","stroke"],pt=["font-size","font-weight","fill","text-anchor","transform"],kt=["text-anchor","font-size","font-weight","fill","transform"],xt=["font-size","font-weight","fill","x","y"],wt=["x","y","width","height","onClick","onMouseenter","fill"],Ct=["x","y","width","height","onClick","onMouseenter","fill"],Bt={key:3,class:"vue-data-ui-watermark"},Lt=["onClick"],St=["innerHTML"],zt={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend"],setup(Y,{expose:we,emit:G}){const y=Y,{vue_ui_stackbar:Ce}=c.useConfig(),E=e.computed({get(){return!!y.dataset&&y.dataset.length},set(l){return l}}),M=e.ref(null),W=e.ref(c.createUid()),O=e.ref(!1),J=e.ref(null),U=e.ref(""),f=e.ref([]),Z=e.ref(0),K=e.ref(null),Q=e.ref(null),j=e.ref(null),ee=e.ref(0),X=e.ref(!1),$=e.ref(null),T=e.ref(!1);e.onMounted(()=>{c.objectIsEmpty(y.dataset)?c.error({componentName:"VueUiStackbar",type:"dataset"}):y.dataset.forEach((l,r)=>{c.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{E.value=!1,c.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:r})})}),setTimeout(()=>{T.value=!0},10)});const t=e.computed(()=>{const l=pe.useNestedProp({userConfig:y.config,defaultConfig:Ce});let r={};return l.theme?r={...pe.useNestedProp({userConfig:c.themes.vue_ui_stackbar[l.theme]||y.config,defaultConfig:l}),customPalette:c.themePalettes[l.theme]||c.palette}:r=l,y.config&&c.hasDeepProperty(y.config,"style.chart.grid.scale.scaleMin")?r.style.chart.grid.scale.scaleMin=y.config.style.chart.grid.scale.scaleMin:r.style.chart.grid.scale.scaleMin=null,y.config&&c.hasDeepProperty(y.config,"style.chart.grid.scale.scaleMax")?r.style.chart.grid.scale.scaleMax=y.config.style.chart.grid.scale.scaleMax:r.style.chart.grid.scale.scaleMax=null,r}),b=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:te,isImaging:ae,generatePdf:le,generateImage:oe}=xe.usePrinter({elementId:`stackbar_${W.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),D=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,paddingRatio:{top:t.value.style.chart.padding.top/t.value.style.chart.height,right:t.value.style.chart.padding.right/t.value.style.chart.width,bottom:t.value.style.chart.padding.bottom/t.value.style.chart.height,left:t.value.style.chart.padding.left/t.value.style.chart.width}}),Be=e.computed(()=>c.convertCustomPalette(t.value.customPalette)),re=e.ref(null),se=e.ref(null);e.onMounted(()=>{if(t.value.responsive){const l=ke.throttle(()=>{T.value=!1;const{width:r,height:a}=ke.useResponsive({chart:M.value,title:t.value.style.chart.title.text?K.value:null,legend:t.value.style.chart.legend.show?Q.value:null,slicer:t.value.style.chart.zoom.show&&L.value>1?j.value:null});D.value.width=r,D.value.height=a,clearTimeout(se.value),se.value=setTimeout(()=>{T.value=!0},10)});re.value=new ResizeObserver(l),re.value.observe(M.value.parentNode)}});const s=e.computed(()=>{const{height:l,width:r}=D.value,{right:a}=D.value.paddingRatio,o=t.value.style.chart.padding.top,n=r-r*a,i=l-t.value.style.chart.padding.bottom,m=t.value.style.chart.padding.left,S=r-m-r*a,z=l-o-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:r,top:o,right:n,bottom:i,left:m,width:S,height:z<0?0:z}}),B=e.computed(()=>y.dataset.map((l,r)=>{const a=c.convertColorToHex(l.color)||Be.value[r]||c.palette[r]||c.palette[r%c.palette.length];return{...l,series:JSON.parse(JSON.stringify(l.series)).map(o=>t.value.style.chart.bars.distributed?Math.abs(o):o),signedSeries:l.series.map(o=>o>=0?1:-1),absoluteIndex:r,id:c.createUid(),color:a}})),L=e.computed(()=>Math.max(...B.value.filter(l=>!f.value.includes(l.id)).map(l=>l.series.length))),u=e.ref({start:0,end:Math.max(...y.dataset.map(l=>l.series.length))});function Le(){u.value={start:0,end:Math.max(...y.dataset.map(l=>l.series.length))},ee.value+=1}const d=e.computed(()=>{let l;return t.value.orientation==="vertical"?l=s.value.width/(u.value.end-u.value.start):l=s.value.height/(u.value.end-u.value.start),l<=0?0:l}),V=e.computed(()=>c.sumSeries(B.value.filter(l=>!f.value.includes(l.id))).slice(u.value.start,u.value.end)),Se=e.computed(()=>c.sumSeries(B.value.filter(l=>!f.value.includes(l.id)).map(l=>({...l,series:l.series.map((r,a)=>l.signedSeries[a]===-1&&r>=0?-r:r)}))).slice(u.value.start,u.value.end)),I=e.computed(()=>{const l=B.value.filter(r=>!f.value.includes(r.id));return{positive:c.sumSeries(l.map(r=>({...r,series:r.series.slice(u.value.start,u.value.end).map(a=>a>=0?a:0)}))),negative:c.sumSeries(l.map(r=>({...r,series:r.series.slice(u.value.start,u.value.end).map(a=>a<0?a:0)})))}}),w=e.computed(()=>{const l=t.value.style.chart.grid.scale.scaleMax!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMax:Math.max(...I.value.positive),r=Math.min(...I.value.negative),a=t.value.style.chart.grid.scale.scaleMin!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMin:[-1/0,1/0,NaN,void 0,null].includes(r)?0:r,o=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?c.calculateNiceScaleWithExactExtremes(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks):c.calculateNiceScale(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks);return o.ticks.map(n=>({zero:s.value.bottom-s.value.height*(Math.abs(o.min)/(o.max+Math.abs(o.min))),y:s.value.bottom-s.value.height*((n+Math.abs(o.min))/(o.max+Math.abs(o.min))),x:s.value.left-8,horizontal_zero:s.value.left+s.value.width*(Math.abs(o.min)/(o.max+Math.abs(o.min))),horizontal_x:s.value.left+s.value.width*((n+Math.abs(o.min))/(o.max+Math.abs(o.min))),horizontal_y:s.value.bottom-8,value:n}))}),F=e.computed(()=>t.value.style.chart.grid.x.timeLabels.values.slice(u.value.start,u.value.end)),g=e.computed(()=>{if(!E.value)return[];let l=Array(L.value).fill(0),r=Array(L.value).fill(0),a=Array(L.value).fill(0),o=Array(L.value).fill(0);const n=Math.max(...I.value.positive)||0,i=Math.min(...I.value.negative),m=[-1/0,1/0,NaN,void 0,null].includes(i)?0:i,S=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?c.calculateNiceScaleWithExactExtremes(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:m>0?0:m,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:n<0?0:n,t.value.style.chart.grid.scale.ticks):c.calculateNiceScale(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:m>0?0:m,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:n<0?0:n,t.value.style.chart.grid.scale.ticks),{min:z,max:P}=S,_=P+(z>=0?0:Math.abs(z))||1,p=s.value.height,q=s.value.width,be=w.value[0]?w.value[0].zero:s.value.bottom,fe=w.value[0]?w.value[0].horizontal_zero:s.value.left;return B.value.filter(R=>!f.value.includes(R.id)).map(R=>{const C=R.series.slice(u.value.start,u.value.end),Me=R.signedSeries.slice(u.value.start,u.value.end),$e=C.map((v,h)=>s.value.left+d.value*h+d.value*t.value.style.chart.bars.gapRatio/4),Te=C.map((v,h)=>s.value.top+d.value*h+d.value*t.value.style.chart.bars.gapRatio/4),Ve=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;let N,x;return v>0?(x=p*k,N=be-x-l[h],l[h]+=x):(x=p*k,N=be+a[h],a[h]+=Math.abs(x)),N}),Fe=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;let N,x;return v>0?(x=q*k,N=fe+r[h],r[h]+=x):(x=q*k,N=fe-Math.abs(x)-o[h],o[h]+=Math.abs(x)),N}),Pe=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;return v>0?p*k:p*Math.abs(k)}),Re=C.map((v,h)=>{const k=t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/_;return v>0?q*k:q*Math.abs(k)}),Oe=C.map(v=>Math.abs(v)).reduce((v,h)=>v+h,0);return{...R,proportions:C.map((v,h)=>t.value.style.chart.bars.distributed?(v||0)/V.value[h]:(v||0)/Oe),series:C,signedSeries:Me,x:$e,y:Ve,height:Pe,horizontal_width:Re,horizontal_y:Te,horizontal_x:Fe}})}),ne=e.computed(()=>Se.value.map((l,r)=>({value:l,sign:l>=0?1:-1})));function A(l,r,a,o,n){const i=n===-1&&l>=0?-l:l;return c.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,i,c.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:i,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:r,seriesIndex:a,datapointIndex:o})}function ie(l,r,a,o){return c.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,l,c.dataLabel({v:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:r,seriesIndex:a,datapointIndex:o})}function ue(l){const r=JSON.parse(JSON.stringify(g.value)).map(a=>({name:a.name,value:a.series[l]===0?0:a.series[l]||null,proportion:a.proportions[l]||null,color:a.color,id:a.id}));G("selectDatapoint",{datapoint:r,period:F.value[l]})}function ce(l){$.value=l,O.value=!0;const r=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(g.value)).map(n=>({name:n.name,value:n.series[l]===0?0:(n.signedSeries[l]===-1&&n.series[l]>=0?-n.series[l]:n.series[l])||null,proportion:n.proportions[l]||null,color:n.color,id:n.id})),o=a.map(n=>Math.abs(n.value)).reduce((n,i)=>n+i,0);if(c.isFunction(r)&&c.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:g.value,config:t.value})))U.value=r({seriesIndex:l,datapoint:a,series:g.value,config:t.value});else{const{showValue:n,showPercentage:i,borderColor:m,roundingValue:S,roundingPercentage:z}=t.value.style.chart.tooltip;let P="";F.value[l]&&(P+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${m};padding-bottom:6px;margin-bottom:3px;">${F.value[l]}</div>`);const _=[n&&i?"(":"",n&&i?")":""];a.reverse().forEach(p=>{P+=`
2
2
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
3
3
  <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${t.value.style.chart.bars.gradient.show?`url(#gradient_${p.id})`:p.color}"/></svg>
4
4
  ${p.name}${n||i?":":""} ${n?c.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:p.value,s:t.value.style.chart.bars.dataLabels.suffix,r:S}):""} ${_[0]}${i?c.dataLabel({v:isNaN(p.value/o)?0:Math.abs(p.value)/o*100,s:"%",r:z}):""}${_[1]}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-D2ZScauW.cjs"),j=require("./useResponsive-B3TrDDIG.cjs"),re=require("./Title-CBcoQe02.cjs"),X=require("./usePrinter-eqT4IYET.cjs"),se=require("./Tooltip-BhuD1Kc5.cjs"),ne=require("./DataTable-yf_eyv8c.cjs"),ue=require("./vue-ui-skeleton-BLhbQje-.cjs"),ie=require("./Shape-BoXM3HKY.cjs"),ce=require("./vue-ui-accordion-BhCJcWDd.cjs"),Y=require("./useNestedProp-BU7yyXFA.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=["id"],he=["xmlns","viewBox"],pe={key:0},me={key:0},ye=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],fe={key:1},be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ge=["x1","x2","y1","y2","stroke","stroke-width"],ke=["x1","x2","y1","y2","stroke","stroke-width"],xe=["x","y","fill","font-size"],Ce=["x","y","font-size","fill"],we=["fill","font-size","transform"],Be=["fill","font-size","x","y"],_e=["x1","x2","y1","y2","stroke"],$e=["cx","cy","fill"],Ne=["cx","cy","fill"],Se=["id"],Le=["stop-color"],Te=["stop-color"],Pe=["stop-color"],Ee={key:0},ze=["x","y","font-size","fill"],Ve={key:3,class:"vue-data-ui-watermark"},Ae=["innerHTML"],Fe={__name:"vue-ui-strip-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(J,{expose:K,emit:Q}){const d=J,{vue_ui_strip_plot:Z}=o.useConfig(),p=e.computed({get(){return!!d.dataset&&d.dataset.length},set(l){return l}}),L=e.ref(o.createUid()),V=e.ref(0),T=e.ref(!1),P=e.ref(""),b=e.ref(null),A=e.ref(null),F=e.ref(!1),t=e.computed(()=>{const l=Y.useNestedProp({userConfig:d.config,defaultConfig:Z});return l.theme?{...Y.useNestedProp({userConfig:o.themes.vue_ui_strip_plot[l.theme]||d.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}),C=e.ref(null);e.onMounted(()=>{if(o.objectIsEmpty(d.dataset)?o.error({componentName:"VueUiStripPlot",type:"dataset"}):d.dataset.forEach((l,s)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","plots"]}).forEach(a=>{p.value=!1,o.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:a,index:s})}),l.plots&&l.plots.forEach((a,n)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(u=>{p.value=!1,o.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:u,index:`${s},${n}`})})})}),t.value.responsive){const l=j.throttle(()=>{const{width:s,height:a}=j.useResponsive({chart:b.value,title:t.value.style.chart.title.text?A.value:null});w.value=a,f.value.width=s,f.value.height=a,k.value=(s-v.value.left-v.value.right)/d.dataset.length,B.value=o.translateSize({relator:Math.min(a,s),adjuster:600,source:t.value.style.chart.plots.radius,threshold:6,fallback:6})});C.value=new ResizeObserver(l),C.value.observe(b.value.parentNode)}F.value=!0,setTimeout(()=>{g.value=!1},ee.value*50)}),e.onBeforeUnmount(()=>{C.value&&C.value.disconnect()});const{isPrinting:D,isImaging:O,generatePdf:M,generateImage:W}=X.usePrinter({elementId:`strip-plot_${L.value}`,fileName:t.value.style.chart.title.text||"vue-ui-strip-plot"}),I=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),g=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}),v=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}),k=e.ref(t.value.style.chart.stripWidth),w=e.ref(t.value.style.chart.height),B=e.ref(t.value.style.chart.plots.radius),f=e.ref({width:k.value*d.dataset.length+v.value.left+v.value.right,height:t.value.style.chart.height}),r=e.computed(()=>{const l=k.value*d.dataset.length+v.value.left+v.value.right;return{left:v.value.left,right:l-v.value.right,top:v.value.top,bottom:w.value-v.value.bottom,width:k.value*d.dataset.length,height:w.value-v.value.top-v.value.bottom,stripWidth:k.value,absoluteHeight:w.value,absoluteWidth:l}}),_=e.computed(()=>p.value?d.dataset.map((l,s)=>{const a=o.createUid();return{...l,id:a,color:l.color?o.convertColorToHex(l.color):I.value[s]||o.palette[s]||o.palette[s%o.palette.length],plots:o.sanitizeArray(l.plots,["value"]).map(n=>({...n,parentId:a,color:l.color?o.convertColorToHex(l.color):I.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:o.createUid()})).sort((n,u)=>n.value-u.value)}}):null),h=e.computed(()=>(_.value||[]).map((l,s)=>({...l,plots:l.plots.map(a=>({...a,x:r.value.left+(s+1)*r.value.stripWidth-r.value.stripWidth/2}))}))),ee=e.computed(()=>Math.max(...h.value.map(l=>l.plots.length))),E=e.computed(()=>{const l=h.value.flatMap(s=>s.plots.map(a=>a.value));return{max:Math.max(...l),min:Math.min(...l)}}),m=e.computed(()=>o.calculateNiceScale(E.value.min<0?E.value.min:0,E.value.max,t.value.style.chart.grid.scaleSteps)),te=e.computed(()=>(h.value||[]).map((l,s)=>({...l,plots:l.plots.map(a=>({...a,y:r.value.bottom-(a.value+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))*r.value.height}))}))),G=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}))),z=e.ref(null),i=e.ref(null);function le({datapoint:l,seriesIndex:s}){z.value={datapoint:l,seriesIndex:s,config:t.value,series:_.value},T.value=!0,i.value=l;const a=t.value.style.chart.tooltip.customFormat;if(o.isFunction(a)&&o.functionReturnsString(()=>a({seriesIndex:s,datapoint:l,series:_.value,config:t.value})))P.value=a({seriesIndex:s,datapoint:l,series:_.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>${o.applyDataLabel(t.value.style.chart.labels.formatter,l.value,o.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>`,P.value=`<div>${n}</div>`}}const $=e.computed(()=>{const l=h.value.flatMap(a=>JSON.parse(JSON.stringify(a.plots)).sort((n,u)=>u.value-n.value).map(n=>({name:`${a.name} - ${n.name}`,color:n.color}))),s=h.value.flatMap(a=>JSON.parse(JSON.stringify(a.plots)).sort((n,u)=>u.value-n.value).map(n=>n.value));return{head:l,body:s}});function q(){e.nextTick(()=>{const l=$.value.head.map((n,u)=>[[n.name],[$.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),a=o.createCsvContent(s);o.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-strip-plot"})})}const N=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value],s=$.value.head.map((u,y)=>{const S=o.dataLabel({p:t.value.style.chart.labels.prefix,v:$.value.body[y],s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},S]}),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{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:s,config:a}}),x=e.ref(!1);function ae(l){x.value=l,V.value+=1}function oe(){return h.value}function R(){c.value.showTable=!c.value.showTable}function U(){c.value.dataLabels.show=!c.value.dataLabels.show}function H(){c.value.showTooltip=!c.value.showTooltip}return K({getData:oe,generatePdf:M,generateCsv:q,generateImage:W,toggleTable:R,toggleLabels:U,toggleTooltip:H}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"stripPlotChart",ref:b,class:e.normalizeClass(`vue-ui-strip-plot ${x.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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`strip-plot_${L.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(re._sfc_main,{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"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(X.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(O),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:x.value,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,onToggleFullscreen:ae,onGeneratePdf:e.unref(M),onGenerateCsv:q,onGenerateImage:e.unref(W),onToggleTable:R,onToggleLabels:U,onToggleTooltip:H},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:a,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${f.value.width<=0?10:f.value.width} ${f.value.height<=0?10:f.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};`)},[t.value.style.chart.grid.show?(e.openBlock(),e.createElementBlock("g",pe,[t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y,y2:a.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,ye))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,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,be))),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,ge),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,ke)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(G.value,(a,n)=>(e.openBlock(),e.createElementBlock("text",{x:a.x1-t.value.style.chart.labels.yAxisLabels.fontSize/2+t.value.style.chart.labels.yAxisLabels.offsetX,y:a.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(o.applyDataLabel)(t.value.style.chart.labels.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.chart.labels.prefix,v:a.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.yAxisLabels.rounding}),{datapoint:a,seriesIndex:n})),9,xe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(h.value,(a,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(a.name),9,Ce))),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,we)):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,Be)):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,_e),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,$e),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,Ne)],64)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>(e.openBlock(),e.createElementBlock("radialGradient",{id:a.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(o.lightenHexColor)(a.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Le),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(o.darkenHexColor)(a.color,.1)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Pe)],8,Se))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,y)=>(e.openBlock(),e.createBlock(ie._sfc_main,e.mergeProps({plot:{x:u.x,y:F.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(#${a.id})`:a.color,onMouseenter:S=>le({datapoint:u,seriesIndex:y}),onMouseleave:s[0]||(s[0]=S=>{T.value=!1,i.value=null}),onClick:S=>Q("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};${g.value?`transition-delay:${y*50}ms`:""}`,class:{"vue-ui-strip-plot-animated":t.value.useCssAnimation&&g.value,"vue-ui-strip-plot-select-circle":t.value.useCssAnimation&&!g.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",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y===a.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&&g.value?0:1};transition:opacity 0.2s ease-in;`)},e.toDisplayString(u.name)+" "+e.toDisplayString(t.value.style.chart.labels.bestPlotLabel.showValue?e.unref(o.applyDataLabel)(t.value.style.chart.labels.formatter,u.value,e.unref(o.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:y}):""),13,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(l.$slots,"svg",{svg:r.value},void 0,!0)],14,he)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.default,{key:4,config:{type:"stripPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,stripPlot:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(se._sfc_main,{show:c.value.showTooltip&&T.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:b.value,content:P.value,isCustom:e.unref(o.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...z.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...z.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),p.value?(e.openBlock(),e.createBlock(ce.default,{key:5,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.createVNode(ne.DataTable,{colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.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]=a=>c.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,Ae)]),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)],14,de))}},De=ve._export_sfc(Fe,[["__scopeId","data-v-1a1c4118"]]);exports.default=De;