vue-data-ui 2.4.50 → 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 (200) hide show
  1. package/README.md +12 -0
  2. package/dist/{Arrow-D1z9KkQN.js → Arrow-BuBoE64l.js} +1 -1
  3. package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-CFlFdPC5.cjs} +1 -1
  4. package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
  5. package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-zmxwsaLW.js} +1 -1
  6. package/dist/{DataTable-CQ8fQnex.js → DataTable-COkA4Nyz.js} +2 -2
  7. package/dist/{DataTable-CovKV5Yy.cjs → DataTable-CwAdpLng.cjs} +1 -1
  8. package/dist/{Legend-Bbz-hKDf.cjs → Legend-CR9ydX8N.cjs} +1 -1
  9. package/dist/{Legend-Br7MWNDo.js → Legend-bYlSC7I7.js} +1 -1
  10. package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
  11. package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-Dz3KcTL4.js} +1 -1
  12. package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-BycdTwSP.js} +3 -3
  13. package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
  14. package/dist/{Shape-BD37ZaX9.cjs → Shape-BBp5EwJH.cjs} +1 -1
  15. package/dist/{Shape-B7Mekpyf.js → Shape-BDJJ38uM.js} +1 -1
  16. package/dist/{Slicer-CWvkt-8k.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
  17. package/dist/{Slicer-ahFReg7h.js → Slicer-D_DaIThC.js} +2 -2
  18. package/dist/{Title-C2siG5N2.cjs → Title-B7ruS8yl.cjs} +1 -1
  19. package/dist/{Title-CIsKiWgN.js → Title-aMb2ETf7.js} +1 -1
  20. package/dist/{Tooltip-B1LgrF9R.js → Tooltip-BRZ3DT4p.js} +1 -1
  21. package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-BqSN71SL.cjs} +1 -1
  22. package/dist/index-BkXYJDpD.cjs +9 -0
  23. package/dist/{index-BtL_cLa8.js → index-K5uyh1gA.js} +5 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +5 -1
  26. package/dist/types/vue-data-ui.d.ts +5 -1
  27. package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
  28. package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-DifqJZAs.js} +1 -1
  29. package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-DHv-BwME.cjs} +1 -1
  30. package/dist/{usePrinter-sRt2SKr2.js → usePrinter-p_ZZlGc9.js} +1 -1
  31. package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
  32. package/dist/useUserOptionState-BgepsfED.cjs +1 -0
  33. package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-3PlAeIlX.js} +60 -60
  34. package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-PrijRaoI.js} +355 -349
  38. package/dist/vue-ui-3d-bar-VQyMytda.cjs +19 -0
  39. package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
  40. package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
  41. package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
  42. package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-DFYykOow.js} +260 -254
  43. package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
  44. package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
  45. package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
  46. package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-Ybz4qPWl.js} +147 -141
  47. package/dist/vue-ui-candlestick-BxcwK8UI.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-DsVBdCz_.js} +231 -225
  49. package/dist/vue-ui-carousel-table-C2ThrWYt.js +379 -0
  50. package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-BacH0ZYK.js} +258 -252
  52. package/dist/vue-ui-chestnut-Cw8LKuZG.cjs +6 -0
  53. package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
  54. package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
  56. package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
  57. package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
  58. package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-CyTjq_oN.js} +2 -2
  59. package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
  60. package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-BxLlCBhU.js} +402 -396
  61. package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +320 -314
  62. package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
  63. package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-D0PjpD19.js} +267 -261
  65. package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-BuTJcn6b.js} +174 -168
  66. package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
  67. package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-CxO1aav3.js} +190 -184
  68. package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
  69. package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-B2uwYVgz.js} +199 -193
  70. package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
  71. package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
  72. package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-CqhJx__t.js} +213 -207
  73. package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
  74. package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
  75. package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
  76. package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-DLNzJh--.js} +291 -285
  77. package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-CH2mN74k.js} +258 -252
  78. package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
  79. package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
  80. package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
  82. package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-BAwzIU19.js} +300 -295
  84. package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
  85. package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
  86. package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-BXOWHB57.js} +202 -196
  87. package/dist/vue-ui-nested-donuts-D1EF5IEw.cjs +17 -0
  88. package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-F1pwFa1Y.js} +298 -292
  89. package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-C9dEaRbc.js} +214 -208
  90. package/dist/vue-ui-onion-nA8sXxh-.cjs +5 -0
  91. package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +260 -254
  92. package/dist/vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs +8 -0
  93. package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-C_hJHr9T.js} +278 -272
  94. package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
  95. package/dist/vue-ui-quick-chart-C5v_8Kpw.cjs +15 -0
  96. package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-D4k-zSan.js} +474 -466
  97. package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
  98. package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-WKQ-TavD.js} +265 -259
  99. package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-BrSnMkzF.js} +2 -2
  100. package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
  101. package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
  102. package/dist/vue-ui-relation-circle-DzZ5H4og.js +498 -0
  103. package/dist/vue-ui-rings-1qwg2E0O.cjs +2 -0
  104. package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-43dY-4_7.js} +206 -201
  105. package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
  106. package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-q6Sfqa4W.js} +330 -324
  107. package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
  108. package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
  111. package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
  112. package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
  113. package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
  114. package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
  119. package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
  121. package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
  123. package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
  125. package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BeXW23yH.js} +382 -376
  126. package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
  127. package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
  128. package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-CG-wp65N.js} +261 -255
  129. package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
  130. package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-BzuWkWse.js} +1 -1
  131. package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
  132. package/dist/vue-ui-table-heatmap-obAYC2HB.js +262 -0
  133. package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
  134. package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-CW0-ubzl.js} +288 -236
  135. package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-BmgPuIr6.js} +187 -181
  136. package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
  137. package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-6eWSNYld.js} +5 -5
  138. package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
  139. package/dist/vue-ui-tiremarks-DeEI5TAa.js +323 -0
  140. package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
  141. package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
  142. package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-tlPZye6M.js} +261 -255
  143. package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-BIst1a32.js} +251 -245
  144. package/dist/vue-ui-vertical-bar-CCXF79YU.cjs +4 -0
  145. package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
  146. package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-iJT4g4Ht.js} +333 -327
  147. package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
  148. package/dist/vue-ui-wheel-v1_jsNWp.js +305 -0
  149. package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-DR8E1ArH.js} +247 -241
  151. package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-BZ3lbw6i.js} +708 -697
  152. package/dist/vue-ui-xy-CvFWhRR-.cjs +3 -0
  153. package/dist/vue-ui-xy-canvas-BVw3zOIC.cjs +9 -0
  154. package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-hPcU2SBK.js} +344 -338
  155. package/package.json +1 -1
  156. package/dist/index-DoD-GxZR.cjs +0 -9
  157. package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
  159. package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
  160. package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
  161. package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
  162. package/dist/vue-ui-carousel-table-I1m4HMWf.js +0 -373
  163. package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
  164. package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
  165. package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
  166. package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
  167. package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
  168. package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
  169. package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
  170. package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
  171. package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
  172. package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
  173. package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
  174. package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
  175. package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
  176. package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
  177. package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
  178. package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
  179. package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
  180. package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
  181. package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
  182. package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
  183. package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
  184. package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
  185. package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
  186. package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
  187. package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
  188. package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
  189. package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
  190. package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
  191. package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
  192. package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
  193. package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
  194. package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
  195. package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
  196. package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
  197. package/dist/vue-ui-wheel-D3itrMku.js +0 -299
  198. package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
  199. package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
  200. package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
@@ -1,6 +1,6 @@
1
1
  import p from "./html2canvas.esm-d2sM-0Wm.js";
2
2
  import { E as _ } from "./jspdf.es.min-C660YX78.js";
3
- import { z as v, u as w, A, B as M } from "./index-BtL_cLa8.js";
3
+ import { z as v, u as w, A, B as M } from "./index-K5uyh1gA.js";
4
4
  import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
5
5
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const D = {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DoD-GxZR.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-BkXYJDpD.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"
@@ -0,0 +1,34 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),A=require("./useNestedProp-C6IvqE-r.cjs"),Y=require("./Title-B7ruS8yl.cjs"),J=require("./Legend-CR9ydX8N.cjs"),F=require("./usePrinter-DHv-BwME.cjs"),K=require("./PackageVersion-C1F3QLoY.cjs"),Q=require("./PenAndPaper-DDheVRNG.cjs"),Z=require("./vue-ui-skeleton-BTN1PKkz.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},re=["xmlns","viewBox"],oe={key:0},se=["x","y","height","width","fill","stroke"],ne=["x","y","height","width","rx","fill","stroke","stroke-width"],ue=["x","y","height","width","fill","stroke","stroke-width"],ie=["x","y","font-size","font-weight","fill"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de={key:3},he=["x","y","fill","font-size","font-weight"],ve={key:4},me=["x1","x2","y1","y2","stroke"],ge={key:5,class:"vue-data-ui-watermark"},fe={class:"vue-ui-bullet-legend-item",dir:"auto"},ye={style:{"margin-right":"2px"}},pe={key:7,ref:"source",dir:"auto"},ke={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:I}){const n=z,{vue_ui_bullet:H}=s.useConfig(),y=e.ref(null),T=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
+
3
+ segments: [
4
+ {
5
+ name: string;
6
+ from: number;
7
+ to: number;
8
+ color?: string;
9
+ },
10
+ {...}
11
+ ]
12
+ `),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
13
+
14
+ segments: [
15
+ {
16
+ name: string;
17
+ from: number;
18
+ to: number;
19
+ color?: string;
20
+ },
21
+ {...}
22
+ ]
23
+ `),d.value=!1,!1):(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
24
+
25
+ segments: [
26
+ {
27
+ name: string;
28
+ from: number;
29
+ to: number;
30
+ color?: string;
31
+ },
32
+ {...}
33
+ ]
34
+ `),d.value=!1,!1));e.onMounted(x);function x(){s.objectIsEmpty(n.dataset)?s.error({componentName:"VueUiBullet",type:"dataset"}):v.value?n.dataset.segments.forEach((a,o)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","from","to"]}).forEach(l=>{d.value=!1,s.error({componentName:"VueUiBullet segment",type:"datasetSerieAttribute",property:l,index:o})})}):d.value=!1,t.value.style.chart.animation.show&&N(n.dataset.value||0)}const p=e.ref(s.createUid());function C(){const a=A.useNestedProp({userConfig:n.config,defaultConfig:H});return a.theme?{...A.useNestedProp({userConfig:s.themes.vue_ui_bullet[a.theme]||n.config,defaultConfig:a})}:a}const t=e.computed({get:()=>C(),set:a=>a}),{userOptionsVisible:k,setUserOptionsVisibility:_,keepUserOptionState:L}=ee.useUserOptionState({config:t.value});e.watch(()=>n.config,a=>{t.value=C(),k.value=!t.value.showOnChartHover,x(),B.value+=1},{deep:!0});const r=e.computed(()=>{const a=t.value.style.chart.height,o=t.value.style.chart.width,l=t.value.style.chart.padding.left,h=o-t.value.style.chart.padding.right,f=t.value.style.chart.padding.top,c=a-t.value.style.chart.padding.bottom;return{height:a,width:o,left:l,right:h,top:f,bottom:c,chartWidth:h-l,chartHeight:c-f}}),q=e.computed(()=>{if(!v.value)return[];const a=[];for(let o=0;o<n.dataset.segments.length;o+=1)a.push(s.lightenHexColor(t.value.style.chart.segments.baseColor,o/n.dataset.segments.length));return a}),b=e.computed(()=>v.value?{min:Math.min(...n.dataset.segments.map(a=>a.from)),max:Math.max(...n.dataset.segments.map(a=>a.to))}:{min:0,max:1}),u=e.ref(D());e.watch(()=>n.dataset,a=>{t.value.style.chart.animation.show?N(a.value||0):u.value=a.value||0},{deep:!0});function D(){return t.value.style.chart.animation.show?b.value.min:n.dataset.value||0}const S=e.ref(null);function N(a){const o=Math.abs(a-u.value)/t.value.style.chart.animation.animationFrames;function l(){u.value<a?u.value=Math.min(u.value+o,a):u.value>a&&(u.value=Math.max(u.value-o,a)),u.value!==a&&(S.value=requestAnimationFrame(l))}l()}e.onBeforeUnmount(()=>{cancelAnimationFrame(S.value)});const i=e.computed(()=>{if(!v.value)return[];const a=s.calculateNiceScale(b.value.min,b.value.max,t.value.style.chart.segments.ticks.divisions),o=a.min>=0?0:Math.abs(a.min),l={x:r.value.left+(n.dataset.target+o)/(a.max+o)*r.value.chartWidth-t.value.style.chart.target.width/2},h={width:(u.value+o)/(a.max+o)*r.value.chartWidth},f=a.ticks.map(c=>({value:c,y:r.value.bottom+t.value.style.chart.segments.dataLabels.fontSize+3+t.value.style.chart.segments.dataLabels.offsetY,x:r.value.left+(c+o)/(a.max+o)*r.value.chartWidth}));return{scale:a,target:l,value:h,ticks:f,chunks:n.dataset.segments.map((c,X)=>({...c,color:c.color?s.convertColorToHex(c.color):q.value[X],x:r.value.left+r.value.chartWidth*((c.from+o)/(a.max+o)),y:r.value.top,height:r.value.chartHeight,width:r.value.chartWidth*(Math.abs(c.to-c.from)/(a.max+o))}))}}),P=e.computed(()=>!i.value||!i.value.chunks||!i.value.chunks.length?[]:i.value.chunks.map(a=>{const o=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.from,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.from,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding})),l=s.applyDataLabel(t.value.style.chart.segments.dataLabels.formatter,a.to,s.dataLabel({p:t.value.style.chart.segments.dataLabels.prefix,v:a.to,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}));return{...a,shape:"square",value:`${o} - ${l}`}})),W=e.computed(()=>({cy:"bullet-div-legend",backgroundColor:"transparent",color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:6,fontWeight:t.value.style.chart.legend.bold?"bold":""})),{isPrinting:E,isImaging:V,generatePdf:$,generateImage:O}=F.usePrinter({elementId:`bullet_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-bullet"}),R=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),m=e.ref(!1);function j(a){m.value=a,U.value+=1}function G(){return i.value}const g=e.ref(!1);function w(){g.value=!g.value}return I({getData:G,generatePdf:$,generateImage:O,toggleAnnotator:w}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bulletChart",ref:y,class:e.normalizeClass(`vue-ui-bullet ${m.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%;background:${t.value.style.chart.backgroundColor}`),id:`bullet_${p.value}`,onMouseenter:o[0]||(o[0]=()=>e.unref(_)(!0)),onMouseleave:o[1]||(o[1]=()=>e.unref(_)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:g.value,onClose:w},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock("div",le,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;"},[(e.openBlock(),e.createBlock(Y._sfc_main,{lineHeight:"1.3rem",key:`title_${B.value}`,config:{title:{cy:"bullet-div-title",...t.value.style.chart.title},subtitle:{cy:"bullet-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&d.value&&(e.unref(L)||e.unref(k))?(e.openBlock(),e.createBlock(F.UserOptions,{key:3,ref:"details",backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(E),isImaging:e.unref(V),uid:p.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:!1,hasTable:!1,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:m.value,chartElement:y.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:g.value,onToggleFullscreen:j,onGeneratePdf:e.unref($),onGenerateImage:e.unref(O),onToggleAnnotator:w,style:e.normalizeStyle({visibility:e.unref(L)?e.unref(k)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:h})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:h})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:h})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:h})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":m.value,"vue-data-ui-fulscreen--off":!m.value,"vue-ui-bullet-svg":!0}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`width: 100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),v.value?(e.openBlock(),e.createElementBlock("g",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.chunks,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:l.color,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,se))),256)),t.value.style.chart.target.onTop?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ne)),e.createElementVNode("rect",{x:r.value.left,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.valueBar.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.valueBar.heightRatio,width:i.value.value.width,fill:t.value.style.chart.valueBar.color,stroke:t.value.style.chart.valueBar.stroke,"stroke-width":t.value.style.chart.valueBar.strokeWidth},null,8,ue),t.value.style.chart.valueBar.label.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left+i.value.value.width,y:r.value.top-6+t.value.style.chart.valueBar.label.offsetY,"font-size":t.value.style.chart.valueBar.label.fontSize,"font-weight":t.value.style.chart.valueBar.label.bold?"bold":"normal",fill:t.value.style.chart.valueBar.label.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,u.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:u.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,ie)):e.createCommentVNode("",!0),t.value.style.chart.target.onTop?(e.openBlock(),e.createElementBlock("rect",{key:2,x:i.value.target.x,y:r.value.top+(r.value.chartHeight-r.value.chartHeight*t.value.style.chart.target.heightRatio)/2,height:r.value.chartHeight*t.value.style.chart.target.heightRatio,width:t.value.style.chart.target.width,rx:t.value.style.chart.target.rounded?t.value.style.chart.target.width/2:0,fill:t.value.style.chart.target.color,stroke:t.value.style.chart.target.stroke,"stroke-width":t.value.style.chart.target.strokeWidth},null,8,ce)):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y,"text-anchor":"middle",fill:t.value.style.chart.segments.dataLabels.color,"font-size":t.value.style.chart.segments.dataLabels.fontSize+"px","font-weight":t.value.style.chart.segments.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.segments.dataLabels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.segments.dataLabels.prefix,v:l.value,s:t.value.style.chart.segments.dataLabels.suffix,r:t.value.style.chart.segments.dataLabels.rounding}))),9,he))),256))])):e.createCommentVNode("",!0),t.value.style.chart.segments.dataLabels.show&&t.value.style.chart.segments.ticks.show?(e.openBlock(),e.createElementBlock("g",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,l=>(e.openBlock(),e.createElementBlock("line",{x1:l.x,x2:l.x,y1:r.value.bottom,y2:r.value.bottom+3,stroke:t.value.style.chart.segments.ticks.stroke,"stroke-width":1,"stroke-linecap":"round"},null,8,me))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ge,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(E)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:6,config:{type:"bullet",style:{backgroundColor:t.value.style.chart.backgroundColor,bullet:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:M},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(J.Legend,{key:0,clickable:!1,legendSet:P.value,config:W.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",fe,[e.createElementVNode("span",ye,e.toDisplayString(l.name)+":",1),e.createElementVNode("span",null,e.toDisplayString(l.value),1)])]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:P.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,ae))}},be=te._export_sfc(ke,[["__scopeId","data-v-afb8783e"]]);exports.default=be;
@@ -1,29 +1,30 @@
1
- import { ref as d, computed as g, onMounted as ce, watch as V, onBeforeUnmount as he, openBlock as r, createElementBlock as n, normalizeClass as q, normalizeStyle as X, createBlock as k, createCommentVNode as u, unref as v, createSlots as ve, withCtx as w, renderSlot as y, normalizeProps as I, guardReactiveProps as O, createVNode as de, Fragment as H, renderList as T, createElementVNode as x, toDisplayString as L } from "vue";
2
- import { u as ge, o as fe, e as Y, g as me, c as ye, l as pe, D as be, d as ke, i as $, f as B, X as we, t as xe } from "./index-BtL_cLa8.js";
3
- import { u as J } from "./useNestedProp-CEAfm1tu.js";
4
- import { _ as _e } from "./Title-CIsKiWgN.js";
5
- import { L as Ce } from "./Legend-Br7MWNDo.js";
6
- import { u as Le, U as $e } from "./usePrinter-sRt2SKr2.js";
7
- import { _ as Be } from "./PackageVersion-BV3fHO46.js";
8
- import { P as Ae } from "./PenAndPaper-CCOywdmm.js";
9
- import Pe from "./vue-ui-skeleton-DjFU2X3P.js";
10
- import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Se = ["id"], Ie = {
1
+ import { ref as d, computed as g, onMounted as de, watch as J, onBeforeUnmount as ge, openBlock as r, createElementBlock as n, normalizeClass as K, normalizeStyle as I, unref as u, createBlock as k, createCommentVNode as i, createSlots as fe, withCtx as w, renderSlot as y, normalizeProps as H, guardReactiveProps as M, createVNode as me, Fragment as T, renderList as U, createElementVNode as x, toDisplayString as L } from "vue";
2
+ import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-K5uyh1gA.js";
3
+ import { u as Z } from "./useNestedProp-DifqJZAs.js";
4
+ import { _ as $e } from "./Title-aMb2ETf7.js";
5
+ import { L as Be } from "./Legend-bYlSC7I7.js";
6
+ import { u as Ae, U as Oe } from "./usePrinter-p_ZZlGc9.js";
7
+ import { _ as Pe } from "./PackageVersion-Dz3KcTL4.js";
8
+ import { P as Fe } from "./PenAndPaper-BycdTwSP.js";
9
+ import Se from "./vue-ui-skeleton-BhA2lIT6.js";
10
+ import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Me = ["id"], Te = {
12
13
  key: 1,
13
14
  ref: "noTitle",
14
15
  class: "vue-data-ui-no-title-space",
15
16
  style: "height:36px; width: 100%;background:transparent"
16
- }, Oe = ["xmlns", "viewBox"], He = { key: 0 }, Te = ["x", "y", "height", "width", "fill", "stroke"], Ne = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ze = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Me = ["x", "y", "font-size", "font-weight", "fill"], Ue = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], We = { key: 3 }, Ee = ["x", "y", "fill", "font-size", "font-weight"], De = { key: 4 }, Re = ["x1", "x2", "y1", "y2", "stroke"], Ge = {
17
+ }, Ue = ["xmlns", "viewBox"], Ne = { key: 0 }, ze = ["x", "y", "height", "width", "fill", "stroke"], We = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ee = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], De = ["x", "y", "font-size", "font-weight", "fill"], Re = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ve = { key: 3 }, Ge = ["x", "y", "fill", "font-size", "font-weight"], je = { key: 4 }, qe = ["x1", "x2", "y1", "y2", "stroke"], Xe = {
17
18
  key: 5,
18
19
  class: "vue-data-ui-watermark"
19
- }, je = {
20
+ }, Ye = {
20
21
  class: "vue-ui-bullet-legend-item",
21
22
  dir: "auto"
22
- }, Ve = { style: { "margin-right": "2px" } }, qe = {
23
+ }, Je = { style: { "margin-right": "2px" } }, Ke = {
23
24
  key: 7,
24
25
  ref: "source",
25
26
  dir: "auto"
26
- }, Xe = {
27
+ }, Qe = {
27
28
  __name: "vue-ui-bullet",
28
29
  props: {
29
30
  config: {
@@ -39,8 +40,8 @@ const Se = ["id"], Ie = {
39
40
  }
40
41
  }
41
42
  },
42
- setup(K, { expose: Q }) {
43
- const o = K, { vue_ui_bullet: Z } = ge(), A = d(null), ee = d(null), N = d(0), te = d(null), ae = d(0), f = g({
43
+ setup(ee, { expose: te }) {
44
+ const o = ee, { vue_ui_bullet: ae } = ye(), A = d(null), le = d(null), N = d(0), se = d(null), re = d(0), f = g({
44
45
  get: () => o.dataset.hasOwnProperty("value"),
45
46
  set: (t) => t
46
47
  }), p = g(() => o.dataset.segments ? Array.isArray(o.dataset.segments) ? o.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
@@ -77,111 +78,111 @@ segments: [
77
78
  {...}
78
79
  ]
79
80
  `), f.value = !1, !1));
80
- ce(z);
81
+ de(z);
81
82
  function z() {
82
- fe(o.dataset) ? Y({
83
+ pe(o.dataset) ? Q({
83
84
  componentName: "VueUiBullet",
84
85
  type: "dataset"
85
86
  }) : p.value ? o.dataset.segments.forEach((t, s) => {
86
- me({
87
+ be({
87
88
  datasetObject: t,
88
89
  requiredAttributes: ["name", "from", "to"]
89
90
  }).forEach((a) => {
90
- f.value = !1, Y({
91
+ f.value = !1, Q({
91
92
  componentName: "VueUiBullet segment",
92
93
  type: "datasetSerieAttribute",
93
94
  property: a,
94
95
  index: s
95
96
  });
96
97
  });
97
- }) : f.value = !1, e.value.style.chart.animation.show && W(o.dataset.value || 0);
98
+ }) : f.value = !1, e.value.style.chart.animation.show && V(o.dataset.value || 0);
98
99
  }
99
- const P = d(ye());
100
- function M() {
101
- const t = J({
100
+ const O = d(ke());
101
+ function W() {
102
+ const t = Z({
102
103
  userConfig: o.config,
103
- defaultConfig: Z
104
+ defaultConfig: ae
104
105
  });
105
106
  return t.theme ? {
106
- ...J({
107
- userConfig: xe.vue_ui_bullet[t.theme] || o.config,
107
+ ...Z({
108
+ userConfig: Le.vue_ui_bullet[t.theme] || o.config,
108
109
  defaultConfig: t
109
110
  })
110
111
  } : t;
111
112
  }
112
113
  const e = g({
113
- get: () => M(),
114
+ get: () => W(),
114
115
  set: (t) => t
115
- });
116
- V(() => o.config, (t) => {
117
- e.value = M(), z(), N.value += 1;
116
+ }), { userOptionsVisible: P, setUserOptionsVisibility: E, keepUserOptionState: D } = Ie({ config: e.value });
117
+ J(() => o.config, (t) => {
118
+ e.value = W(), P.value = !e.value.showOnChartHover, z(), N.value += 1;
118
119
  }, { deep: !0 });
119
120
  const l = g(() => {
120
- const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, m = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, h = t - e.value.style.chart.padding.bottom;
121
+ const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, m = s - e.value.style.chart.padding.right, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
121
122
  return {
122
123
  height: t,
123
124
  width: s,
124
125
  left: a,
125
126
  right: m,
126
127
  top: C,
127
- bottom: h,
128
+ bottom: v,
128
129
  chartWidth: m - a,
129
- chartHeight: h - C
130
+ chartHeight: v - C
130
131
  };
131
- }), le = g(() => {
132
+ }), oe = g(() => {
132
133
  if (!p.value) return [];
133
134
  const t = [];
134
135
  for (let s = 0; s < o.dataset.segments.length; s += 1)
135
- t.push(pe(e.value.style.chart.segments.baseColor, s / o.dataset.segments.length));
136
+ t.push(we(e.value.style.chart.segments.baseColor, s / o.dataset.segments.length));
136
137
  return t;
137
138
  }), F = g(() => p.value ? {
138
139
  min: Math.min(...o.dataset.segments.map((t) => t.from)),
139
140
  max: Math.max(...o.dataset.segments.map((t) => t.to))
140
- } : { min: 0, max: 1 }), i = d(se());
141
- V(() => o.dataset, (t) => {
142
- e.value.style.chart.animation.show ? W(t.value || 0) : i.value = t.value || 0;
141
+ } : { min: 0, max: 1 }), c = d(ne());
142
+ J(() => o.dataset, (t) => {
143
+ e.value.style.chart.animation.show ? V(t.value || 0) : c.value = t.value || 0;
143
144
  }, { deep: !0 });
144
- function se() {
145
+ function ne() {
145
146
  return e.value.style.chart.animation.show ? F.value.min : o.dataset.value || 0;
146
147
  }
147
- const U = d(null);
148
- function W(t) {
149
- const s = Math.abs(t - i.value) / e.value.style.chart.animation.animationFrames;
148
+ const R = d(null);
149
+ function V(t) {
150
+ const s = Math.abs(t - c.value) / e.value.style.chart.animation.animationFrames;
150
151
  function a() {
151
- i.value < t ? i.value = Math.min(i.value + s, t) : i.value > t && (i.value = Math.max(i.value - s, t)), i.value !== t && (U.value = requestAnimationFrame(a));
152
+ c.value < t ? c.value = Math.min(c.value + s, t) : c.value > t && (c.value = Math.max(c.value - s, t)), c.value !== t && (R.value = requestAnimationFrame(a));
152
153
  }
153
154
  a();
154
155
  }
155
- he(() => {
156
- cancelAnimationFrame(U.value);
156
+ ge(() => {
157
+ cancelAnimationFrame(R.value);
157
158
  });
158
- const c = g(() => {
159
+ const h = g(() => {
159
160
  if (!p.value)
160
161
  return [];
161
- const t = be(F.value.min, F.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
162
+ const t = xe(F.value.min, F.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
162
163
  x: l.value.left + (o.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
163
164
  }, m = {
164
- width: (i.value + s) / (t.max + s) * l.value.chartWidth
165
- }, C = t.ticks.map((h) => ({
166
- value: h,
165
+ width: (c.value + s) / (t.max + s) * l.value.chartWidth
166
+ }, C = t.ticks.map((v) => ({
167
+ value: v,
167
168
  y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
168
- x: l.value.left + (h + s) / (t.max + s) * l.value.chartWidth
169
+ x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
169
170
  }));
170
171
  return {
171
172
  scale: t,
172
173
  target: a,
173
174
  value: m,
174
175
  ticks: C,
175
- chunks: o.dataset.segments.map((h, ie) => ({
176
- ...h,
177
- color: h.color ? ke(h.color) : le.value[ie],
178
- x: l.value.left + l.value.chartWidth * ((h.from + s) / (t.max + s)),
176
+ chunks: o.dataset.segments.map((v, ve) => ({
177
+ ...v,
178
+ color: v.color ? _e(v.color) : oe.value[ve],
179
+ x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
179
180
  y: l.value.top,
180
181
  height: l.value.chartHeight,
181
- width: l.value.chartWidth * (Math.abs(h.to - h.from) / (t.max + s))
182
+ width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
182
183
  }))
183
184
  };
184
- }), E = g(() => !c.value || !c.value.chunks || !c.value.chunks.length ? [] : c.value.chunks.map((t) => {
185
+ }), G = g(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
185
186
  const s = $(
186
187
  e.value.style.chart.segments.dataLabels.formatter,
187
188
  t.from,
@@ -206,55 +207,57 @@ segments: [
206
207
  shape: "square",
207
208
  value: `${s} - ${a}`
208
209
  };
209
- })), re = g(() => ({
210
+ })), ue = g(() => ({
210
211
  cy: "bullet-div-legend",
211
212
  backgroundColor: "transparent",
212
213
  color: e.value.style.chart.legend.color,
213
214
  fontSize: e.value.style.chart.legend.fontSize,
214
215
  paddingBottom: 6,
215
216
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
216
- })), { isPrinting: D, isImaging: R, generatePdf: G, generateImage: j } = Le({
217
- elementId: `bullet_${P.value}`,
217
+ })), { isPrinting: j, isImaging: q, generatePdf: X, generateImage: Y } = Ae({
218
+ elementId: `bullet_${O.value}`,
218
219
  fileName: e.value.style.chart.title.text || "vue-ui-bullet"
219
- }), oe = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), b = d(!1);
220
- function ne(t) {
221
- b.value = t, ae.value += 1;
220
+ }), ie = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), b = d(!1);
221
+ function ce(t) {
222
+ b.value = t, re.value += 1;
222
223
  }
223
- function ue() {
224
- return c.value;
224
+ function he() {
225
+ return h.value;
225
226
  }
226
227
  const _ = d(!1);
227
228
  function S() {
228
229
  _.value = !_.value;
229
230
  }
230
- return Q({
231
- getData: ue,
232
- generatePdf: G,
233
- generateImage: j,
231
+ return te({
232
+ getData: he,
233
+ generatePdf: X,
234
+ generateImage: Y,
234
235
  toggleAnnotator: S
235
236
  }), (t, s) => (r(), n("div", {
236
237
  ref_key: "bulletChart",
237
238
  ref: A,
238
- class: q(`vue-ui-bullet ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
239
- style: X(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
240
- id: `bullet_${P.value}`
239
+ class: K(`vue-ui-bullet ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
240
+ style: I(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
241
+ id: `bullet_${O.value}`,
242
+ onMouseenter: s[0] || (s[0] = () => u(E)(!0)),
243
+ onMouseleave: s[1] || (s[1] = () => u(E)(!1))
241
244
  }, [
242
- e.value.userOptions.buttons.annotator ? (r(), k(Ae, {
245
+ e.value.userOptions.buttons.annotator ? (r(), k(Fe, {
243
246
  key: 0,
244
247
  parent: A.value,
245
248
  backgroundColor: e.value.style.chart.backgroundColor,
246
249
  color: e.value.style.chart.color,
247
250
  active: _.value,
248
251
  onClose: S
249
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : u("", !0),
250
- oe.value ? (r(), n("div", Ie, null, 512)) : u("", !0),
252
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
253
+ ie.value ? (r(), n("div", Te, null, 512)) : i("", !0),
251
254
  e.value.style.chart.title.text ? (r(), n("div", {
252
255
  key: 2,
253
256
  ref_key: "chartTitle",
254
- ref: ee,
257
+ ref: le,
255
258
  style: "width:100%;background:transparent;"
256
259
  }, [
257
- (r(), k(_e, {
260
+ (r(), k($e, {
258
261
  lineHeight: "1.3rem",
259
262
  key: `title_${N.value}`,
260
263
  config: {
@@ -268,15 +271,15 @@ segments: [
268
271
  }
269
272
  }
270
273
  }, null, 8, ["config"]))
271
- ], 512)) : u("", !0),
272
- e.value.userOptions.show && f.value ? (r(), k($e, {
274
+ ], 512)) : i("", !0),
275
+ e.value.userOptions.show && f.value && (u(D) || u(P)) ? (r(), k(Oe, {
273
276
  key: 3,
274
277
  ref: "details",
275
278
  backgroundColor: e.value.style.chart.backgroundColor,
276
279
  color: e.value.style.chart.color,
277
- isPrinting: v(D),
278
- isImaging: v(R),
279
- uid: P.value,
280
+ isPrinting: u(j),
281
+ isImaging: u(q),
282
+ uid: O.value,
280
283
  hasTooltip: !1,
281
284
  hasPdf: e.value.userOptions.buttons.pdf,
282
285
  hasImg: e.value.userOptions.buttons.img,
@@ -290,11 +293,14 @@ segments: [
290
293
  titles: { ...e.value.userOptions.buttonTitles },
291
294
  hasAnnotator: e.value.userOptions.buttons.annotator,
292
295
  isAnnotation: _.value,
293
- onToggleFullscreen: ne,
294
- onGeneratePdf: v(G),
295
- onGenerateImage: v(j),
296
- onToggleAnnotator: S
297
- }, ve({ _: 2 }, [
296
+ onToggleFullscreen: ce,
297
+ onGeneratePdf: u(X),
298
+ onGenerateImage: u(Y),
299
+ onToggleAnnotator: S,
300
+ style: I({
301
+ visibility: u(D) ? u(P) ? "visible" : "hidden" : "visible"
302
+ })
303
+ }, fe({ _: 2 }, [
298
304
  t.$slots.optionPdf ? {
299
305
  name: "optionPdf",
300
306
  fn: w(() => [
@@ -312,28 +318,28 @@ segments: [
312
318
  t.$slots.optionFullscreen ? {
313
319
  name: "optionFullscreen",
314
320
  fn: w(({ toggleFullscreen: a, isFullscreen: m }) => [
315
- y(t.$slots, "optionFullscreen", I(O({ toggleFullscreen: a, isFullscreen: m })), void 0, !0)
321
+ y(t.$slots, "optionFullscreen", H(M({ toggleFullscreen: a, isFullscreen: m })), void 0, !0)
316
322
  ]),
317
323
  key: "2"
318
324
  } : void 0,
319
325
  t.$slots.optionAnnotator ? {
320
326
  name: "optionAnnotator",
321
327
  fn: w(({ toggleAnnotator: a, isAnnotator: m }) => [
322
- y(t.$slots, "optionAnnotator", I(O({ toggleAnnotator: a, isAnnotator: m })), void 0, !0)
328
+ y(t.$slots, "optionAnnotator", H(M({ toggleAnnotator: a, isAnnotator: m })), void 0, !0)
323
329
  ]),
324
330
  key: "3"
325
331
  } : void 0
326
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : u("", !0),
332
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
327
333
  f.value ? (r(), n("svg", {
328
334
  key: 4,
329
- xmlns: v(we),
330
- class: q({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-ui-bullet-svg": !0 }),
335
+ xmlns: u(Ce),
336
+ class: K({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-ui-bullet-svg": !0 }),
331
337
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
332
- style: X(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
338
+ style: I(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
333
339
  }, [
334
- de(Be),
335
- p.value ? (r(), n("g", He, [
336
- (r(!0), n(H, null, T(c.value.chunks, (a) => (r(), n("rect", {
340
+ me(Pe),
341
+ p.value ? (r(), n("g", Ne, [
342
+ (r(!0), n(T, null, U(h.value.chunks, (a) => (r(), n("rect", {
337
343
  x: a.x,
338
344
  y: a.y,
339
345
  height: a.height,
@@ -341,10 +347,10 @@ segments: [
341
347
  fill: a.color,
342
348
  "stroke-width": 1,
343
349
  stroke: e.value.style.chart.backgroundColor
344
- }, null, 8, Te))), 256)),
345
- e.value.style.chart.target.onTop ? u("", !0) : (r(), n("rect", {
350
+ }, null, 8, ze))), 256)),
351
+ e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
346
352
  key: 0,
347
- x: c.value.target.x,
353
+ x: h.value.target.x,
348
354
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
349
355
  height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
350
356
  width: e.value.style.chart.target.width,
@@ -352,37 +358,37 @@ segments: [
352
358
  fill: e.value.style.chart.target.color,
353
359
  stroke: e.value.style.chart.target.stroke,
354
360
  "stroke-width": e.value.style.chart.target.strokeWidth
355
- }, null, 8, Ne)),
361
+ }, null, 8, We)),
356
362
  x("rect", {
357
363
  x: l.value.left,
358
364
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
359
365
  height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
360
- width: c.value.value.width,
366
+ width: h.value.value.width,
361
367
  fill: e.value.style.chart.valueBar.color,
362
368
  stroke: e.value.style.chart.valueBar.stroke,
363
369
  "stroke-width": e.value.style.chart.valueBar.strokeWidth
364
- }, null, 8, ze),
370
+ }, null, 8, Ee),
365
371
  e.value.style.chart.valueBar.label.show ? (r(), n("text", {
366
372
  key: 1,
367
- x: l.value.left + c.value.value.width,
373
+ x: l.value.left + h.value.value.width,
368
374
  y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
369
375
  "font-size": e.value.style.chart.valueBar.label.fontSize,
370
376
  "font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
371
377
  fill: e.value.style.chart.valueBar.label.color,
372
378
  "text-anchor": "middle"
373
- }, L(v($)(
379
+ }, L(u($)(
374
380
  e.value.style.chart.segments.dataLabels.formatter,
375
- i.value,
376
- v(B)({
381
+ c.value,
382
+ u(B)({
377
383
  p: e.value.style.chart.segments.dataLabels.prefix,
378
- v: i.value,
384
+ v: c.value,
379
385
  s: e.value.style.chart.segments.dataLabels.suffix,
380
386
  r: e.value.style.chart.segments.dataLabels.rounding
381
387
  })
382
- )), 9, Me)) : u("", !0),
388
+ )), 9, De)) : i("", !0),
383
389
  e.value.style.chart.target.onTop ? (r(), n("rect", {
384
390
  key: 2,
385
- x: c.value.target.x,
391
+ x: h.value.target.x,
386
392
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
387
393
  height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
388
394
  width: e.value.style.chart.target.width,
@@ -390,28 +396,28 @@ segments: [
390
396
  fill: e.value.style.chart.target.color,
391
397
  stroke: e.value.style.chart.target.stroke,
392
398
  "stroke-width": e.value.style.chart.target.strokeWidth
393
- }, null, 8, Ue)) : u("", !0),
394
- e.value.style.chart.segments.dataLabels.show ? (r(), n("g", We, [
395
- (r(!0), n(H, null, T(c.value.ticks, (a) => (r(), n("text", {
399
+ }, null, 8, Re)) : i("", !0),
400
+ e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Ve, [
401
+ (r(!0), n(T, null, U(h.value.ticks, (a) => (r(), n("text", {
396
402
  x: a.x,
397
403
  y: a.y,
398
404
  "text-anchor": "middle",
399
405
  fill: e.value.style.chart.segments.dataLabels.color,
400
406
  "font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
401
407
  "font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
402
- }, L(v($)(
408
+ }, L(u($)(
403
409
  e.value.style.chart.segments.dataLabels.formatter,
404
410
  a.value,
405
- v(B)({
411
+ u(B)({
406
412
  p: e.value.style.chart.segments.dataLabels.prefix,
407
413
  v: a.value,
408
414
  s: e.value.style.chart.segments.dataLabels.suffix,
409
415
  r: e.value.style.chart.segments.dataLabels.rounding
410
416
  })
411
- )), 9, Ee))), 256))
412
- ])) : u("", !0),
413
- e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", De, [
414
- (r(!0), n(H, null, T(c.value.ticks, (a) => (r(), n("line", {
417
+ )), 9, Ge))), 256))
418
+ ])) : i("", !0),
419
+ e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", je, [
420
+ (r(!0), n(T, null, U(h.value.ticks, (a) => (r(), n("line", {
415
421
  x1: a.x,
416
422
  x2: a.x,
417
423
  y1: l.value.bottom,
@@ -419,15 +425,15 @@ segments: [
419
425
  stroke: e.value.style.chart.segments.ticks.stroke,
420
426
  "stroke-width": 1,
421
427
  "stroke-linecap": "round"
422
- }, null, 8, Re))), 256))
423
- ])) : u("", !0)
424
- ])) : u("", !0),
428
+ }, null, 8, qe))), 256))
429
+ ])) : i("", !0)
430
+ ])) : i("", !0),
425
431
  y(t.$slots, "svg", { svg: l.value }, void 0, !0)
426
- ], 14, Oe)) : u("", !0),
427
- t.$slots.watermark ? (r(), n("div", Ge, [
428
- y(t.$slots, "watermark", I(O({ isPrinting: v(D) || v(R) })), void 0, !0)
429
- ])) : u("", !0),
430
- f.value ? u("", !0) : (r(), k(Pe, {
432
+ ], 14, Ue)) : i("", !0),
433
+ t.$slots.watermark ? (r(), n("div", Xe, [
434
+ y(t.$slots, "watermark", H(M({ isPrinting: u(j) || u(q) })), void 0, !0)
435
+ ])) : i("", !0),
436
+ f.value ? i("", !0) : (r(), k(Se, {
431
437
  key: 6,
432
438
  config: {
433
439
  type: "bullet",
@@ -441,30 +447,30 @@ segments: [
441
447
  }, null, 8, ["config"])),
442
448
  x("div", {
443
449
  ref_key: "chartLegend",
444
- ref: te
450
+ ref: se
445
451
  }, [
446
- e.value.style.chart.legend.show ? (r(), k(Ce, {
452
+ e.value.style.chart.legend.show ? (r(), k(Be, {
447
453
  key: 0,
448
454
  clickable: !1,
449
- legendSet: E.value,
450
- config: re.value
455
+ legendSet: G.value,
456
+ config: ue.value
451
457
  }, {
452
458
  item: w(({ legend: a }) => [
453
- x("div", je, [
454
- x("span", Ve, L(a.name) + ":", 1),
459
+ x("div", Ye, [
460
+ x("span", Je, L(a.name) + ":", 1),
455
461
  x("span", null, L(a.value), 1)
456
462
  ])
457
463
  ]),
458
464
  _: 1
459
- }, 8, ["legendSet", "config"])) : u("", !0),
460
- y(t.$slots, "legend", { legend: E.value }, void 0, !0)
465
+ }, 8, ["legendSet", "config"])) : i("", !0),
466
+ y(t.$slots, "legend", { legend: G.value }, void 0, !0)
461
467
  ], 512),
462
- t.$slots.source ? (r(), n("div", qe, [
468
+ t.$slots.source ? (r(), n("div", Ke, [
463
469
  y(t.$slots, "source", {}, void 0, !0)
464
- ], 512)) : u("", !0)
465
- ], 14, Se));
470
+ ], 512)) : i("", !0)
471
+ ], 46, Me));
466
472
  }
467
- }, rt = /* @__PURE__ */ Fe(Xe, [["__scopeId", "data-v-cfe188c3"]]);
473
+ }, ct = /* @__PURE__ */ He(Qe, [["__scopeId", "data-v-afb8783e"]]);
468
474
  export {
469
- rt as default
475
+ ct as default
470
476
  };