vue-data-ui 2.3.61 → 2.3.63

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-CBx1Hj4I.js} +1 -1
  2. package/dist/{Arrow-Dv_tprAO.cjs → Arrow-fP0md3L3.cjs} +1 -1
  3. package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-CS18qRiy.js} +1 -1
  4. package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-O8jJvy48.cjs} +1 -1
  5. package/dist/{DataTable-NUzEZXWt.js → DataTable-BGJ2mVxG.js} +2 -2
  6. package/dist/{DataTable-B6xCb-DR.cjs → DataTable-CSEiZDAb.cjs} +1 -1
  7. package/dist/{Legend-ePmJ_YIA.cjs → Legend-DuuSl2rJ.cjs} +1 -1
  8. package/dist/{Legend-C3tseguI.js → Legend-UWyvC57K.js} +1 -1
  9. package/dist/{Shape-DAe5uqIA.cjs → Shape-Dsx4SQVn.cjs} +1 -1
  10. package/dist/{Shape-BPcWPP9D.js → Shape-HfEpP-Tk.js} +1 -1
  11. package/dist/{Slicer-CmHwU6if.js → Slicer-Bk3Rt85L.js} +9 -9
  12. package/dist/{Slicer-BJs52Jle.cjs → Slicer-Cf74aFVz.cjs} +1 -1
  13. package/dist/{Title-BAQrVaNA.js → Title-CPZstF2C.js} +1 -1
  14. package/dist/{Title-B_p983os.cjs → Title-PZ6S96pU.cjs} +1 -1
  15. package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BoIYPSX3.cjs} +1 -1
  16. package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBmmiqKr.js} +5 -5
  17. package/dist/{index-CwG--L4Z.js → index-C_05i_JG.js} +578 -526
  18. package/dist/{index-nPEJmXmf.cjs → index-NNZeHOBS.cjs} +4 -4
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-CPsbJAGj.cjs} +1 -1
  21. package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-DLnT0Wtg.js} +1 -1
  22. package/dist/{usePrinter-D012Olnq.cjs → usePrinter-BLbY8qGZ.cjs} +1 -1
  23. package/dist/{usePrinter-Do9tGYem.js → usePrinter-DOhlzlnx.js} +1 -1
  24. package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-D5aG0WkE.cjs} +1 -1
  25. package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-vqnxkVKv.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-BRbooRg3.cjs → vue-ui-3d-bar-Cez69HMH.cjs} +1 -1
  29. package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-b7Pu7sfL.js} +7 -7
  30. package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-CcdyvXrp.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-rGJVvi_V.js} +3 -3
  32. package/dist/vue-ui-age-pyramid-B6LKyKjc.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-CH1Vj2R6.js} +226 -226
  34. package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-BfmMNM_X.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-CTio5IiK.js} +1 -1
  36. package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-C4kT9W0j.js} +158 -158
  37. package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-DvX9Jxoi.cjs} +2 -2
  38. package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-CMs7scX3.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-Df2HHk0v.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-BKTnDElg.js} +65 -64
  41. package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-CCw8h0_m.cjs} +3 -3
  42. package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-C-8bpiuy.cjs} +1 -1
  43. package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-DOOlFN5D.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-B_h8KxOx.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D7U1UkAh.js} +2 -2
  46. package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DmxQgABv.js} +2 -2
  47. package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-DoQoNGGx.cjs} +1 -1
  48. package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-DdnwGXq6.cjs} +1 -1
  49. package/dist/vue-ui-donut-evolution-DsRAZLMN.cjs +1 -0
  50. package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-uPCTV6E6.js} +95 -95
  51. package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-t5zf9Lm5.js} +42 -42
  52. package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-BCdxqHVR.js} +109 -107
  53. package/dist/vue-ui-dumbbell-D1Ak2pEE.cjs +9 -0
  54. package/dist/vue-ui-flow-CLqm5nkx.cjs +1 -0
  55. package/dist/vue-ui-flow-J1SmdKkh.js +469 -0
  56. package/dist/vue-ui-galaxy-CSXbhXBe.cjs +1 -0
  57. package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-DNMbyKNg.js} +91 -91
  58. package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-CC_9cSwj.js} +84 -84
  59. package/dist/vue-ui-gauge-O3ntKI31.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-C5vGMHUU.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-qrJt0nH6.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-BjimHnMb.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-ByxLZuR5.js} +257 -239
  64. package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-DdNQlVCe.js} +3 -3
  65. package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-eyxMedig.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-B5ykH9BF.cjs} +1 -1
  67. package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-C05VGcNr.js} +2 -2
  68. package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-DI0oHPT5.js} +20 -20
  69. package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-LZ1SRkgK.cjs} +1 -1
  70. package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-BJqk2oK_.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DIDqiVMf.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-BkSiryoB.js} +120 -120
  73. package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-Nggnu_iK.cjs} +2 -2
  74. package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-B29Cxru2.cjs} +1 -1
  75. package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-xiubSG3j.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-DjmOGHVx.js} +69 -69
  77. package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-DqrkSOo6.cjs} +1 -1
  78. package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-Cc79ggIy.js} +36 -36
  79. package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-Df_2X-ca.cjs} +1 -1
  80. package/dist/vue-ui-quick-chart-BnBGXd4d.cjs +15 -0
  81. package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-t_cPx4OT.js} +549 -515
  82. package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-C3qEonKT.js} +59 -59
  83. package/dist/vue-ui-radar-D3W9B9JE.cjs +1 -0
  84. package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-DffL7w-I.js} +9 -9
  85. package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-aOa6zIr5.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-BZ7r7Unx.cjs} +1 -1
  87. package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-D0zUfd3f.js} +5 -5
  88. package/dist/vue-ui-rings-BjWAtE4x.cjs +2 -0
  89. package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-PHbuqfoT.js} +188 -185
  90. package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-DMJ77QYr.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-DuCnr2yB.js} +378 -375
  92. package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-DBuA631a.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-DbwRrmHv.js} +6 -6
  94. package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-CI4t8LHn.cjs} +1 -1
  95. package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-CcJR2m18.js} +23 -23
  96. package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-2rJFSSZS.js} +2 -2
  97. package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-C7KBm0fz.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-DY_sfo6o.js +251 -0
  99. package/dist/vue-ui-spark-trend-VH2nwGJf.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-B0O77PcV.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-Bs8ZQem1.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-B5KqrHQZ.js} +64 -64
  103. package/dist/vue-ui-sparkgauge-Cd7b4u0z.cjs +1 -0
  104. package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-CEWCLohQ.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-DwRPeG7H.js} +4 -4
  106. package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-CuFtIMpq.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-W5bZnpQo.js} +25 -25
  108. package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-9hBQZ0lZ.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-TyVFUMtT.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-BlkgM0nD.js} +35 -35
  111. package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-CwVcupxt.cjs} +1 -1
  112. package/dist/vue-ui-strip-plot-C1GfRjXJ.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-CBfqkkY6.js} +76 -75
  114. package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-B8cvvLk8.js} +1 -1
  115. package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-CmguTt4I.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-DMnh8-b1.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-wVWltZ2x.js} +26 -26
  118. package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-_POawNEL.js} +13 -13
  119. package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-wtIFAc20.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-CFJqd-VY.js} +116 -116
  121. package/dist/vue-ui-thermometer-D6SnFJb1.cjs +1 -0
  122. package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-194y0LUC.cjs} +1 -1
  123. package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-D8dgDAfe.js} +4 -4
  124. package/dist/vue-ui-tiremarks-BM28JsxE.cjs +1 -0
  125. package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-CH1BFqbO.js} +71 -71
  126. package/dist/vue-ui-treemap-BIpIg3Qa.cjs +1 -0
  127. package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-DHsoVY5n.js} +89 -82
  128. package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-DNODBoSo.js} +246 -242
  129. package/dist/vue-ui-vertical-bar-Du8ikoWM.cjs +4 -0
  130. package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-C8hMAeMl.js} +44 -44
  131. package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-_Bi9MRx8.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-BZxcRGJX.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-CmZKsfKj.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-fLf-x06l.js} +68 -65
  135. package/dist/vue-ui-word-cloud-nHVG2yid.cjs +1 -0
  136. package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-CPln5bGQ.js} +82 -82
  137. package/dist/vue-ui-xy-canvas-Z1tJJV5-.cjs +9 -0
  138. package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-k30CEsKi.js} +122 -121
  139. package/dist/vue-ui-xy-qxQy2sOl.cjs +3 -0
  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,20 +1,20 @@
1
- import { useCssVars as ne, computed as c, onMounted as ie, ref as p, openBlock as o, createElementBlock as n, normalizeClass as C, normalizeStyle as z, createVNode as he, createCommentVNode as h, createBlock as B, unref as v, createSlots as ce, withCtx as q, renderSlot as k, normalizeProps as j, guardReactiveProps as A, createElementVNode as d, Fragment as $, renderList as D, toDisplayString as de } from "vue";
2
- import { u as ve, o as ye, e as H, g as fe, c as me, t as ge, a as pe, p as x, b as ke, d as F, X as xe, v as be, i as _e, f as we } from "./index-CwG--L4Z.js";
3
- import { _ as Ce } from "./Title-BAQrVaNA.js";
4
- import { u as $e, U as Fe } from "./usePrinter-Do9tGYem.js";
5
- import Pe from "./vue-ui-skeleton-ClzVF3vm.js";
6
- import { u as X } from "./useNestedProp-BqwYEJGM.js";
7
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Ye = ["id"], Me = {
1
+ import { useCssVars as ie, computed as c, onMounted as he, ref as k, openBlock as o, createElementBlock as n, normalizeClass as $, normalizeStyle as B, createVNode as ce, createCommentVNode as h, createBlock as j, unref as v, createSlots as de, withCtx as q, renderSlot as x, normalizeProps as A, guardReactiveProps as D, createElementVNode as d, Fragment as F, renderList as H, toDisplayString as ve } from "vue";
2
+ import { u as ye, o as fe, e as X, g as me, c as ge, t as pe, a as ke, p as b, b as xe, s as f, d as P, X as be, w as _e, i as we, f as Ce } from "./index-C_05i_JG.js";
3
+ import { _ as $e } from "./Title-CPZstF2C.js";
4
+ import { u as Fe, U as Pe } from "./usePrinter-DOhlzlnx.js";
5
+ import Ie from "./vue-ui-skeleton-CcJR2m18.js";
6
+ import { u as R } from "./useNestedProp-DLnT0Wtg.js";
7
+ import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Me = ["id"], Ne = {
9
9
  key: 0,
10
10
  style: "width:100%"
11
11
  }, Oe = ["xmlns", "viewBox"], Ue = {
12
12
  id: "vueUiPill",
13
13
  clipPathUnits: "objectBoundingBox"
14
- }, qe = ["fill"], Le = ["id"], Ne = ["stop-color"], Se = ["stop-color"], Te = ["stop-color"], Ge = { "clip-path": "url(#vueUiPill)" }, Ve = ["x", "y", "height", "width"], We = ["x", "y", "height", "width", "fill"], Ee = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ze = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Be = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], je = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ae = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], De = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], He = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Xe = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Re = ["x", "y", "height", "width"], Je = ["y", "x", "fill", "font-size", "font-weight"], Ke = {
14
+ }, qe = ["fill"], Le = ["id"], Se = ["stop-color"], Te = ["stop-color"], Ge = ["stop-color"], Ve = { "clip-path": "url(#vueUiPill)" }, We = ["x", "y", "height", "width"], Ee = ["x", "y", "height", "width", "fill"], ze = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Be = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], je = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ae = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], De = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], He = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Xe = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Re = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Je = ["x", "y", "height", "width"], Ke = ["y", "x", "fill", "font-size", "font-weight"], Qe = {
15
15
  key: 3,
16
16
  class: "vue-data-ui-watermark"
17
- }, Qe = {
17
+ }, Ze = {
18
18
  __name: "vue-ui-thermometer",
19
19
  props: {
20
20
  dataset: {
@@ -30,59 +30,59 @@ const Ye = ["id"], Me = {
30
30
  }
31
31
  }
32
32
  },
33
- setup(b, { expose: R }) {
34
- const a = b;
35
- ne((s) => ({
36
- "3d1a25cf": te.value,
37
- "52cc1c9f": ee.value,
38
- "90b36568": Z.value
33
+ setup(_, { expose: J }) {
34
+ const a = _;
35
+ ie((s) => ({
36
+ "1a02c3eb": se.value,
37
+ "12f74203": te.value,
38
+ "32637bb0": ee.value
39
39
  }));
40
- const { vue_ui_thermometer: J } = ve(), P = c(() => !!a.dataset && Object.keys(a.dataset).length);
41
- ie(() => {
42
- ye(a.dataset) ? H({
40
+ const { vue_ui_thermometer: K } = ye(), I = c(() => !!a.dataset && Object.keys(a.dataset).length);
41
+ he(() => {
42
+ fe(a.dataset) ? X({
43
43
  componentName: "VueUiThermometer",
44
44
  type: "dataset"
45
- }) : fe({
45
+ }) : me({
46
46
  datasetObject: a.dataset,
47
47
  requiredAttributes: ["value", "from", "to"]
48
48
  }).forEach((s) => {
49
- H({
49
+ X({
50
50
  componentName: "VueUiThermometer",
51
51
  type: "datasetAttribute",
52
52
  property: s
53
53
  });
54
54
  });
55
55
  });
56
- const f = p(me()), L = p(null), N = p(0), e = c(() => {
57
- const s = X({
56
+ const m = k(ge()), L = k(null), S = k(0), e = c(() => {
57
+ const s = R({
58
58
  userConfig: a.config,
59
- defaultConfig: J
59
+ defaultConfig: K
60
60
  });
61
61
  return s.theme ? {
62
- ...X({
63
- userConfig: ge.vue_ui_thermometer[s.theme] || a.config,
62
+ ...R({
63
+ userConfig: pe.vue_ui_thermometer[s.theme] || a.config,
64
64
  defaultConfig: s
65
65
  }),
66
- customPalette: pe[s.theme] || x
66
+ customPalette: ke[s.theme] || b
67
67
  } : s;
68
- }), { isPrinting: S, isImaging: T, generatePdf: G, generateImage: V } = $e({
69
- elementId: `thermometer__${f.value}`,
68
+ }), { isPrinting: T, isImaging: G, generatePdf: V, generateImage: W } = Fe({
69
+ elementId: `thermometer__${m.value}`,
70
70
  fileName: e.value.style.title.text || "vue-ui-thermometer"
71
- }), _ = c(() => ke(e.value.customPalette)), K = c(() => e.value.style.chart.thermometer.width), y = c(() => a.dataset.steps || 10), i = p({
71
+ }), w = c(() => xe(e.value.customPalette)), Q = c(() => e.value.style.chart.thermometer.width), y = c(() => a.dataset.steps || 10), i = k({
72
72
  top: e.value.style.chart.padding.top,
73
73
  left: e.value.style.chart.padding.left,
74
74
  right: e.value.style.chart.padding.right,
75
75
  bottom: e.value.style.chart.padding.bottom
76
76
  });
77
- function w(s, r, t) {
78
- const u = [], O = W(s), U = W(r);
79
- for (let g = 0; g < t; g++) {
80
- const ae = I(O.red, U.red, g, t), oe = I(O.green, U.green, g, t), re = I(O.blue, U.blue, g, t), ue = `#${Y(ae)}${Y(oe)}${Y(re)}`;
81
- u.push(ue);
77
+ function C(s, r, t) {
78
+ const u = [], O = E(s), U = E(r);
79
+ for (let p = 0; p < t; p++) {
80
+ const oe = Y(O.red, U.red, p, t), re = Y(O.green, U.green, p, t), ue = Y(O.blue, U.blue, p, t), ne = `#${M(oe)}${M(re)}${M(ue)}`;
81
+ u.push(ne);
82
82
  }
83
83
  return u;
84
84
  }
85
- function W(s) {
85
+ function E(s) {
86
86
  const r = s.slice(1);
87
87
  return {
88
88
  red: parseInt(r.slice(0, 2), 16),
@@ -90,14 +90,14 @@ const Ye = ["id"], Me = {
90
90
  blue: parseInt(r.slice(4, 6), 16)
91
91
  };
92
92
  }
93
- function I(s, r, t, u) {
93
+ function Y(s, r, t, u) {
94
94
  return Math.round(s + (r - s) * t / u);
95
95
  }
96
- function Y(s) {
96
+ function M(s) {
97
97
  return s.toString(16).padStart(2, "0");
98
98
  }
99
99
  const l = c(() => {
100
- const s = K.value + i.value.left + i.value.right, r = e.value.style.chart.height;
100
+ const s = Q.value + i.value.left + i.value.right, r = e.value.style.chart.height;
101
101
  return {
102
102
  width: s,
103
103
  left: i.value.left,
@@ -106,20 +106,20 @@ const Ye = ["id"], Me = {
106
106
  bottom: r - i.value.bottom,
107
107
  height: r
108
108
  };
109
- }), Q = c(() => l.value), M = c(() => {
110
- const s = a.dataset.from < 0 ? Math.abs(a.dataset.from) : a.dataset.from, r = a.dataset.to < 0 ? Math.abs(a.dataset.to) : a.dataset.to;
109
+ }), Z = c(() => l.value), N = c(() => {
110
+ const s = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), r = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
111
111
  let t = 0;
112
- return a.dataset.to > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(a.dataset.from) + a.dataset.value) / t) * (l.value.height - i.value.top - i.value.bottom);
113
- }), Z = c(() => `${M.value}px`), ee = c(() => `${l.value.height - e.value.style.chart.padding.bottom - i.value.top}px`), te = c(() => `${e.value.style.chart.animation.speedMs}ms`), se = c(() => {
112
+ return f(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (l.value.height - i.value.top - i.value.bottom);
113
+ }), ee = c(() => `${N.value}px`), te = c(() => `${l.value.height - e.value.style.chart.padding.bottom - i.value.top}px`), se = c(() => `${e.value.style.chart.animation.speedMs}ms`), le = c(() => {
114
114
  if (a.dataset.colors) {
115
115
  if (!a.dataset.colors.from)
116
- return w(_.value[0] || x[0], F(a.dataset.colors.to), y.value || 10);
116
+ return C(w.value[0] || b[0], P(a.dataset.colors.to), y.value || 10);
117
117
  if (!a.dataset.colors.to)
118
- return w(F(a.dataset.colors.from), _.value[1] || x[1], y.value || 10);
118
+ return C(P(a.dataset.colors.from), w.value[1] || b[1], y.value || 10);
119
119
  } else
120
- return w(_.value[1] || x[1], _.value[0] || x[0], y.value || 10);
121
- return w(F(a.dataset.colors.from), F(a.dataset.colors.to), y.value || 10);
122
- }), E = c(() => {
120
+ return C(w.value[1] || b[1], w.value[0] || b[0], y.value || 10);
121
+ return C(P(a.dataset.colors.from), P(a.dataset.colors.to), y.value || 10);
122
+ }), z = c(() => {
123
123
  const s = [];
124
124
  let r = 0;
125
125
  const t = l.value.height - i.value.top - i.value.bottom;
@@ -130,26 +130,26 @@ const Ye = ["id"], Me = {
130
130
  qYLess: l.value.top + u + t / y.value / 4,
131
131
  halfY: l.value.top + u + t / y.value / 2,
132
132
  qYMore: l.value.top + u + t / y.value / 4 * 3,
133
- color: se.value[r],
133
+ color: le.value[r],
134
134
  height: t / y.value
135
135
  }), r += 1;
136
136
  return s;
137
- }), m = p(!1);
138
- function le(s) {
139
- m.value = s, N.value += 1;
137
+ }), g = k(!1);
138
+ function ae(s) {
139
+ g.value = s, S.value += 1;
140
140
  }
141
- return R({
142
- generatePdf: G,
143
- generateImage: V
141
+ return J({
142
+ generatePdf: V,
143
+ generateImage: W
144
144
  }), (s, r) => (o(), n("div", {
145
145
  ref_key: "thermoChart",
146
146
  ref: L,
147
- class: C(`vue-ui-thermometer ${m.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
148
- style: z(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
149
- id: `thermometer__${f.value}`
147
+ class: $(`vue-ui-thermometer ${g.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
148
+ style: B(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
149
+ id: `thermometer__${m.value}`
150
150
  }, [
151
- e.value.style.title.text ? (o(), n("div", Me, [
152
- he(Ce, {
151
+ e.value.style.title.text ? (o(), n("div", Ne, [
152
+ ce($e, {
153
153
  config: {
154
154
  title: {
155
155
  cy: "thermometer-div-title",
@@ -162,54 +162,54 @@ const Ye = ["id"], Me = {
162
162
  }
163
163
  }, null, 8, ["config"])
164
164
  ])) : h("", !0),
165
- e.value.userOptions.show && P.value ? (o(), B(Fe, {
165
+ e.value.userOptions.show && I.value ? (o(), j(Pe, {
166
166
  ref: "details",
167
- key: `user_options_${N.value}`,
167
+ key: `user_options_${S.value}`,
168
168
  backgroundColor: e.value.style.chart.backgroundColor,
169
169
  color: e.value.style.chart.color,
170
- isImaging: v(T),
171
- isPrinting: v(S),
172
- uid: f.value,
170
+ isImaging: v(G),
171
+ isPrinting: v(T),
172
+ uid: m.value,
173
173
  hasPdf: e.value.userOptions.buttons.pdf,
174
174
  hasImg: e.value.userOptions.buttons.img,
175
175
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
176
176
  hasXls: !1,
177
- isFullscreen: m.value,
177
+ isFullscreen: g.value,
178
178
  titles: { ...e.value.userOptions.buttonTitles },
179
179
  chartElement: L.value,
180
- onToggleFullscreen: le,
181
- onGeneratePdf: v(G),
182
- onGenerateImage: v(V)
183
- }, ce({ _: 2 }, [
180
+ onToggleFullscreen: ae,
181
+ onGeneratePdf: v(V),
182
+ onGenerateImage: v(W)
183
+ }, de({ _: 2 }, [
184
184
  s.$slots.optionPdf ? {
185
185
  name: "optionPdf",
186
186
  fn: q(() => [
187
- k(s.$slots, "optionPdf", {}, void 0, !0)
187
+ x(s.$slots, "optionPdf", {}, void 0, !0)
188
188
  ]),
189
189
  key: "0"
190
190
  } : void 0,
191
191
  s.$slots.optionImg ? {
192
192
  name: "optionImg",
193
193
  fn: q(() => [
194
- k(s.$slots, "optionImg", {}, void 0, !0)
194
+ x(s.$slots, "optionImg", {}, void 0, !0)
195
195
  ]),
196
196
  key: "1"
197
197
  } : void 0,
198
198
  s.$slots.optionFullscreen ? {
199
199
  name: "optionFullscreen",
200
200
  fn: q(({ toggleFullscreen: t, isFullscreen: u }) => [
201
- k(s.$slots, "optionFullscreen", j(A({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
201
+ x(s.$slots, "optionFullscreen", A(D({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
202
202
  ]),
203
203
  key: "2"
204
204
  } : void 0
205
205
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
206
- P.value ? (o(), n("svg", {
206
+ I.value ? (o(), n("svg", {
207
207
  key: 2,
208
- xmlns: v(xe),
209
- class: C({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
208
+ xmlns: v(be),
209
+ class: $({ "vue-data-ui-fullscreen--on": g.value, "vue-data-ui-fulscreen--off": !g.value }),
210
210
  width: "100%",
211
211
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
212
- style: z(`background:${e.value.style.chart.backgroundColor}`)
212
+ style: B(`background:${e.value.style.chart.backgroundColor}`)
213
213
  }, [
214
214
  d("defs", null, [
215
215
  d("clipPath", Ue, [
@@ -223,8 +223,8 @@ const Ye = ["id"], Me = {
223
223
  fill: e.value.style.chart.backgroundColor
224
224
  }, null, 8, qe)
225
225
  ]),
226
- (o(!0), n($, null, D(E.value, (t, u) => (o(), n("linearGradient", {
227
- id: `vueUiThermometerGradient_${u}_${f.value}`,
226
+ (o(!0), n(F, null, H(z.value, (t, u) => (o(), n("linearGradient", {
227
+ id: `vueUiThermometerGradient_${u}_${m.value}`,
228
228
  x1: "0%",
229
229
  y1: "0%",
230
230
  x2: "100%",
@@ -233,26 +233,26 @@ const Ye = ["id"], Me = {
233
233
  d("stop", {
234
234
  offset: "0%",
235
235
  "stop-color": t.color
236
- }, null, 8, Ne),
236
+ }, null, 8, Se),
237
237
  d("stop", {
238
238
  offset: "50%",
239
- "stop-color": `${t.color}${v(be)[100 - e.value.style.chart.graduations.gradient.intensity]}`
240
- }, null, 8, Se),
239
+ "stop-color": `${t.color}${v(_e)[100 - e.value.style.chart.graduations.gradient.intensity]}`
240
+ }, null, 8, Te),
241
241
  d("stop", {
242
242
  offset: "100%",
243
243
  "stop-color": t.color
244
- }, null, 8, Te)
244
+ }, null, 8, Ge)
245
245
  ], 8, Le))), 256))
246
246
  ]),
247
- d("g", Ge, [
247
+ d("g", Ve, [
248
248
  d("rect", {
249
249
  x: l.value.left,
250
250
  y: l.value.top,
251
251
  height: l.value.height - i.value.top - i.value.bottom,
252
252
  width: l.value.width - i.value.left - i.value.right,
253
253
  fill: "#FFFFFF"
254
- }, null, 8, Ve),
255
- (o(!0), n($, null, D(E.value, (t, u) => (o(), n("g", {
254
+ }, null, 8, We),
255
+ (o(!0), n(F, null, H(z.value, (t, u) => (o(), n("g", {
256
256
  key: `graduation_${u}`
257
257
  }, [
258
258
  d("rect", {
@@ -260,9 +260,9 @@ const Ye = ["id"], Me = {
260
260
  y: t.y,
261
261
  height: t.height,
262
262
  width: l.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
263
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${f.value})` : t.color,
263
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${m.value})` : t.color,
264
264
  "shape-rendering": "crispEdges"
265
- }, null, 8, We),
265
+ }, null, 8, Ee),
266
266
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
267
267
  key: 0,
268
268
  x1: t.x,
@@ -272,8 +272,8 @@ const Ye = ["id"], Me = {
272
272
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
273
273
  stroke: e.value.style.chart.graduations.stroke,
274
274
  "stroke-linecap": "round"
275
- }, null, 8, Ee)) : h("", !0),
276
- e.value.style.chart.graduations.showIntermediate ? (o(), n($, { key: 1 }, [
275
+ }, null, 8, ze)) : h("", !0),
276
+ e.value.style.chart.graduations.showIntermediate ? (o(), n(F, { key: 1 }, [
277
277
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
278
278
  key: 0,
279
279
  x1: t.x,
@@ -283,7 +283,7 @@ const Ye = ["id"], Me = {
283
283
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
284
284
  stroke: e.value.style.chart.graduations.stroke,
285
285
  "stroke-linecap": "round"
286
- }, null, 8, ze)) : h("", !0),
286
+ }, null, 8, Be)) : h("", !0),
287
287
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
288
288
  key: 1,
289
289
  x1: t.x,
@@ -293,7 +293,7 @@ const Ye = ["id"], Me = {
293
293
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
294
294
  stroke: e.value.style.chart.graduations.stroke,
295
295
  "stroke-linecap": "round"
296
- }, null, 8, Be)) : h("", !0),
296
+ }, null, 8, je)) : h("", !0),
297
297
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
298
298
  key: 2,
299
299
  x1: t.x,
@@ -303,7 +303,7 @@ const Ye = ["id"], Me = {
303
303
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
304
304
  stroke: e.value.style.chart.graduations.stroke,
305
305
  "stroke-linecap": "round"
306
- }, null, 8, je)) : h("", !0)
306
+ }, null, 8, Ae)) : h("", !0)
307
307
  ], 64)) : h("", !0),
308
308
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
309
309
  key: 2,
@@ -314,8 +314,8 @@ const Ye = ["id"], Me = {
314
314
  "stroke-width": e.value.style.chart.graduations.strokeWidth,
315
315
  stroke: e.value.style.chart.graduations.stroke,
316
316
  "stroke-linecap": "round"
317
- }, null, 8, Ae)) : h("", !0),
318
- e.value.style.chart.graduations.showIntermediate ? (o(), n($, { key: 3 }, [
317
+ }, null, 8, De)) : h("", !0),
318
+ e.value.style.chart.graduations.showIntermediate ? (o(), n(F, { key: 3 }, [
319
319
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
320
320
  key: 0,
321
321
  x1: l.value.right,
@@ -325,7 +325,7 @@ const Ye = ["id"], Me = {
325
325
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
326
326
  stroke: e.value.style.chart.graduations.stroke,
327
327
  "stroke-linecap": "round"
328
- }, null, 8, De)) : h("", !0),
328
+ }, null, 8, He)) : h("", !0),
329
329
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
330
330
  key: 1,
331
331
  x1: l.value.right,
@@ -335,7 +335,7 @@ const Ye = ["id"], Me = {
335
335
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
336
336
  stroke: e.value.style.chart.graduations.stroke,
337
337
  "stroke-linecap": "round"
338
- }, null, 8, He)) : h("", !0),
338
+ }, null, 8, Xe)) : h("", !0),
339
339
  e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
340
340
  key: 2,
341
341
  x1: l.value.right,
@@ -345,43 +345,43 @@ const Ye = ["id"], Me = {
345
345
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
346
346
  stroke: e.value.style.chart.graduations.stroke,
347
347
  "stroke-linecap": "round"
348
- }, null, 8, Xe)) : h("", !0)
348
+ }, null, 8, Re)) : h("", !0)
349
349
  ], 64)) : h("", !0)
350
350
  ]))), 128)),
351
351
  d("rect", {
352
- class: C({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
352
+ class: $({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
353
353
  x: l.value.left,
354
354
  y: l.value.top,
355
- height: M.value,
355
+ height: N.value,
356
356
  width: l.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
357
357
  fill: "#FFFFFF66"
358
- }, null, 10, Re)
358
+ }, null, 10, Je)
359
359
  ]),
360
360
  d("text", {
361
- class: C({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
362
- y: M.value + l.value.top + e.value.style.chart.label.fontSize / 3,
361
+ class: $({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
362
+ y: N.value + l.value.top + e.value.style.chart.label.fontSize / 3,
363
363
  x: l.value.left - 10,
364
364
  "text-anchor": "end",
365
365
  fill: e.value.style.chart.label.color,
366
366
  "font-size": e.value.style.chart.label.fontSize,
367
367
  "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
368
- }, de(v(_e)(
368
+ }, ve(v(we)(
369
369
  e.value.style.chart.label.formatter,
370
- b.dataset.value,
371
- v(we)({
370
+ _.dataset.value,
371
+ v(Ce)({
372
372
  p: e.value.style.chart.label.prefix,
373
- v: b.dataset.value,
373
+ v: _.dataset.value,
374
374
  s: e.value.style.chart.label.suffix,
375
375
  r: e.value.style.chart.label.rounding
376
376
  }),
377
- { datapoint: b.dataset }
378
- )), 11, Je),
379
- k(s.$slots, "svg", { svg: Q.value }, void 0, !0)
377
+ { datapoint: _.dataset }
378
+ )), 11, Ke),
379
+ x(s.$slots, "svg", { svg: Z.value }, void 0, !0)
380
380
  ], 14, Oe)) : h("", !0),
381
- s.$slots.watermark ? (o(), n("div", Ke, [
382
- k(s.$slots, "watermark", j(A({ isPrinting: v(S) || v(T) })), void 0, !0)
381
+ s.$slots.watermark ? (o(), n("div", Qe, [
382
+ x(s.$slots, "watermark", A(D({ isPrinting: v(T) || v(G) })), void 0, !0)
383
383
  ])) : h("", !0),
384
- P.value ? h("", !0) : (o(), B(Pe, {
384
+ I.value ? h("", !0) : (o(), j(Ie, {
385
385
  key: 4,
386
386
  config: {
387
387
  type: "thermometer",
@@ -393,9 +393,9 @@ const Ye = ["id"], Me = {
393
393
  }
394
394
  }
395
395
  }, null, 8, ["config"]))
396
- ], 14, Ye));
396
+ ], 14, Me));
397
397
  }
398
- }, rt = /* @__PURE__ */ Ie(Qe, [["__scopeId", "data-v-1375e978"]]);
398
+ }, ut = /* @__PURE__ */ Ye(Ze, [["__scopeId", "data-v-90e1355a"]]);
399
399
  export {
400
- rt as default
400
+ ut as default
401
401
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-NNZeHOBS.cjs"),A=require("./Title-PZ6S96pU.cjs"),F=require("./usePrinter-BLbY8qGZ.cjs"),D=require("./vue-ui-skeleton-CI4t8LHn.cjs"),I=require("./useNestedProp-CPsbJAGj.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=["id"],J={key:0,style:"width:100%"},K=["xmlns","viewBox"],Q={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},Z=["fill"],ee=["id"],te=["stop-color"],oe=["stop-color"],le=["stop-color"],re={"clip-path":"url(#vueUiPill)"},ae=["x","y","height","width"],se=["x","y","height","width","fill"],ne=["x1","x2","y1","y2","stroke-width","stroke"],ue=["x1","x2","y1","y2","stroke-width","stroke"],ce=["x1","x2","y1","y2","stroke-width","stroke"],ie=["x1","x2","y1","y2","stroke-width","stroke"],de=["x1","x2","y1","y2","stroke-width","stroke"],he=["x1","x2","y1","y2","stroke-width","stroke"],ve=["x1","x2","y1","y2","stroke-width","stroke"],me=["x1","x2","y1","y2","stroke-width","stroke"],ye=["x","y","height","width"],pe=["y","x","fill","font-size","font-weight"],fe={key:3,class:"vue-data-ui-watermark"},ge={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:q}){const s=m;e.useCssVars(l=>({"1a02c3eb":z.value,"12f74203":O.value,"32637bb0":M.value}));const{vue_ui_thermometer:S}=r.useConfig(),f=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiThermometer",type:"dataset"}):r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(l=>{r.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:l})})});const d=e.ref(r.createUid()),w=e.ref(null),C=e.ref(0),t=e.computed(()=>{const l=I.useNestedProp({userConfig:s.config,defaultConfig:S});return l.theme?{...I.useNestedProp({userConfig:r.themes.vue_ui_thermometer[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:N,isImaging:B,generatePdf:E,generateImage:V}=F.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),y=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),T=e.computed(()=>t.value.style.chart.thermometer.width),i=e.computed(()=>s.dataset.steps||10),c=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function p(l,n,o){const u=[],b=P(l),_=P(n);for(let v=0;v<o;v++){const G=g(b.red,_.red,v,o),W=g(b.green,_.green,v,o),H=g(b.blue,_.blue,v,o),j=`#${k(G)}${k(W)}${k(H)}`;u.push(j)}return u}function P(l){const n=l.slice(1);return{red:parseInt(n.slice(0,2),16),green:parseInt(n.slice(2,4),16),blue:parseInt(n.slice(4,6),16)}}function g(l,n,o,u){return Math.round(l+(n-l)*o/u)}function k(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=T.value+c.value.left+c.value.right,n=t.value.style.chart.height;return{width:l,left:c.value.left,right:l-c.value.right,top:c.value.top,bottom:n-c.value.bottom,height:n}}),Y=e.computed(()=>a.value),x=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),n=r.checkNaN(s.dataset.to)<0?Math.abs(r.checkNaN(s.dataset.to)):r.checkNaN(s.dataset.to);let o=0;return r.checkNaN(s.dataset.to)>0?o=l+n:l>n?o=l-n:o=n-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-c.value.top-c.value.bottom)}),M=e.computed(()=>`${x.value}px`),O=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),z=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),L=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return p(y.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),i.value||10);if(!s.dataset.colors.to)return p(r.convertColorToHex(s.dataset.colors.from),y.value[1]||r.palette[1],i.value||10)}else return p(y.value[1]||r.palette[1],y.value[0]||r.palette[0],i.value||10);return p(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),i.value||10)}),$=e.computed(()=>{const l=[];let n=0;const o=a.value.height-c.value.top-c.value.bottom;for(let u=0;u<o-1;u+=o/i.value)l.push({x:a.value.left,y:a.value.top+u,qYLess:a.value.top+u+o/i.value/4,halfY:a.value.top+u+o/i.value/2,qYMore:a.value.top+u+o/i.value/4*3,color:L.value[n],height:o/i.value}),n+=1;return l}),h=e.ref(!1);function U(l){h.value=l,C.value+=1}return q({generatePdf:E,generateImage:V}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:w,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(A._sfc_main,{config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(F.UserOptions,{ref:"details",key:`user_options_${C.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(B),isPrinting:e.unref(N),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,onToggleFullscreen:U,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(V)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${a.value.width} ${a.value.height}`,style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",Q,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,Z)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(o,u)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${u}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,te),e.createElementVNode("stop",{offset:"50%","stop-color":`${o.color}${e.unref(r.opacity)[100-t.value.style.chart.graduations.gradient.intensity]}`},null,8,oe),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,le)],8,ee))),256))]),e.createElementVNode("g",re,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-c.value.top-c.value.bottom,width:a.value.width-c.value.left-c.value.right,fill:"#FFFFFF"},null,8,ae),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(o,u)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${u}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${u}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,se),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ne)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ue)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ce)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ie)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,de)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.value.right,x2:a.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,he)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,me)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:a.value.left,y:a.value.top,height:x.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,ye)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:x.value+a.value.top+t.value.style.chart.label.fontSize/3,x:a.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(r.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,pe),e.renderSlot(l.$slots,"svg",{svg:Y.value},void 0,!0)],14,K)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",fe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(N)||e.unref(B)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D.default,{key:4,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,X))}},ke=R._export_sfc(ge,[["__scopeId","data-v-90e1355a"]]);exports.default=ke;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),F=require("./useNestedProp-TbnnNrH2.cjs"),w=require("./index-nPEJmXmf.cjs"),z=require("./useResponsive-B3TrDDIG.cjs"),b=require("./BaseIcon-aPcCSO_Z.cjs"),H=require("./Title-B_p983os.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class L{constructor(N,p,_,T=!0,g=!0){this.interval=p,this.elapsed=0,this.isPaused=!1;const C=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),F=require("./useNestedProp-CPsbJAGj.cjs"),w=require("./index-NNZeHOBS.cjs"),z=require("./useResponsive-B3TrDDIG.cjs"),b=require("./BaseIcon-O8jJvy48.cjs"),H=require("./Title-PZ6S96pU.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class L{constructor(N,p,_,T=!0,g=!0){this.interval=p,this.elapsed=0,this.isPaused=!1;const C=`
2
2
  let interval;
3
3
  let elapsed = 0;
4
4
  let paused = false;
@@ -1,9 +1,9 @@
1
1
  import { ref as d, onMounted as q, onBeforeUnmount as J, computed as D, openBlock as r, createElementBlock as u, normalizeStyle as f, createVNode as _, createCommentVNode as p, unref as K, createElementVNode as M, mergeProps as E, renderSlot as N, normalizeProps as j, guardReactiveProps as B, toDisplayString as Q } from "vue";
2
- import { u as Y } from "./useNestedProp-BqwYEJGM.js";
3
- import { u as Z, c as ee, X as te, C as O } from "./index-CwG--L4Z.js";
2
+ import { u as Y } from "./useNestedProp-DLnT0Wtg.js";
3
+ import { u as Z, c as ee, X as te, D as O } from "./index-C_05i_JG.js";
4
4
  import { t as ae, u as se } from "./useResponsive-NZB-WLRF.js";
5
- import x from "./BaseIcon-DUPLRuLO.js";
6
- import { _ as le } from "./Title-BAQrVaNA.js";
5
+ import x from "./BaseIcon-CS18qRiy.js";
6
+ import { _ as le } from "./Title-CPZstF2C.js";
7
7
  import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  class re {
9
9
  constructor(F, w, I, z = !0, C = !0) {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./useNestedProp-CPsbJAGj.cjs"),s=require("./index-NNZeHOBS.cjs"),T=require("./Title-PZ6S96pU.cjs"),O=require("./usePrinter-BLbY8qGZ.cjs"),j=require("./vue-ui-skeleton-CI4t8LHn.cjs"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],M=["xmlns","viewBox"],D={key:0},X=["d","stroke-width","stroke"],R={key:1},Y=["x1","y1","x2","y2","stroke-width","stroke"],J=["x","y","font-size","fill","font-weight","text-anchor"],K={key:3,class:"vue-data-ui-watermark"},Q={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(A,{expose:V}){const i=A,{vue_ui_tiremarks:q}=s.useConfig(),x=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length),$=e.ref(s.createUid()),w=e.ref(null),P=e.ref(0),t=e.computed(()=>{const a=E.useNestedProp({userConfig:i.config,defaultConfig:q});return a.theme?{...E.useNestedProp({userConfig:s.themes.vue_ui_tiremarks[a.theme]||i.config,defaultConfig:a})}:a}),{isPrinting:B,isImaging:N,generatePdf:z,generateImage:S}=O.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),c=e.ref(t.value.style.chart.animation.use?0:s.checkNaN(i.dataset.percentage));e.watch(()=>i.dataset.percentage,()=>{c.value=t.value.style.chart.animation.use?0:s.checkNaN(i.dataset.percentage),I()}),e.onMounted(()=>{s.objectIsEmpty(i.dataset)&&s.error({componentName:"VueUiTiremarks",type:"dataset"}),I()});function I(){let a=0,u=t.value.style.chart.animation.speed,l=.005*t.value.style.chart.animation.acceleration;function r(){c.value+=u+a,a+=l,c.value<i.dataset.percentage?requestAnimationFrame(r):c.value=s.checkNaN(i.dataset.percentage)}t.value.style.chart.animation.use&&(c.value=0,r())}const y=e.computed(()=>t.value.style.chart.layout.display==="vertical"),n=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return y.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?a.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?a.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?a.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?a.right:10}}),C=e.computed(()=>Object.values(n.value).reduce((a,u)=>a+u,0)),o=e.computed(()=>({height:y.value?312:56,width:y.value?56:312})),L=e.ref(100);e.computed(()=>i.dataset.percentage/L.value);const v=e.computed(()=>y.value?{mark:(o.value.height-C.value)/100*.5,space:(o.value.height-C.value)/100*.5}:{mark:(o.value.width-C.value)/100*.5,space:(o.value.width-C.value)/100*.5}),F=e.computed(()=>{const a=[];for(let l=0;l<100;l+=1){const r=t.value.style.chart.layout.ticks.gradient.show?s.shiftHue(t.value.style.chart.layout.activeColor,l/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(y.value){const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.width-n.value.left-n.value.right)/100/3:0,d=n.value.left+4+f,h=o.value.width-n.value.right-4-f,m=o.value.height-n.value.bottom-l*v.value.mark-l*v.value.space-v.value.mark,g=o.value.height-n.value.bottom-l*v.value.mark-l*v.value.space-v.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+l)/100);a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m-b}, ${h-k} ${g-b}, ${h} ${g}`,color:r})}else{const f=t.value.style.chart.layout.crescendo?(100-l)*(o.value.height-n.value.top-n.value.bottom)/100/3:0,d=n.value.left+l*v.value.mark+l*v.value.space-v.value.mark,h=d,m=n.value.top+4+f,g=o.value.height-n.value.bottom-4-f,k=t.value.style.chart.layout.curveAngleY*((1+l)/100),b=(g-m)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:m,y2:g,curve:`M ${d} ${m} C ${d+k} ${m+b}, ${h+k} ${g-b}, ${h} ${g}`,color:r})}}return a}),p=e.computed(()=>{let a,u,l;const r=t.value.style.chart.percentage.fontSize/3;return y.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=o.value.width/2,u=n.value.top/2,l="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=o.value.width/2,u=o.value.height-n.value.bottom/2+r,l="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,u=o.value.height/2+r,l="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=o.value.width-n.value.right+8,u=o.value.height/2+r,l="start"),{x:a,y:u,textAnchor:l,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function G(a){_.value=a,P.value+=1}return V({generatePdf:z,generateImage:S}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:w,class:e.normalizeClass(`vue-ui-tiremarks ${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}`),id:$.value},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(T._sfc_main,{config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(O.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(B),isImaging:e.unref(N),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,onToggleFullscreen:G,onGeneratePdf:e.unref(z),onGenerateImage:e.unref(S)},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:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${o.value.width} ${o.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.layout.curved?(e.openBlock(),e.createElementBlock("g",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.curve,"stroke-width":v.value.mark,stroke:c.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=c.value})},null,10,X))),256))])):(e.openBlock(),e.createElementBlock("g",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,"stroke-width":v.value.mark,stroke:c.value>=r?l.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,Y))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:p.value.x,y:p.value.y,"font-size":p.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(s.shiftHue)(t.value.style.chart.layout.activeColor,c.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":p.value.bold?"bold":"normal","text-anchor":p.value.textAnchor},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.percentage.formatter,c.value,e.unref(s.dataLabel)({v:c.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,J)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,M)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(B)||e.unref(N)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j.default,{key:4,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],14,H))}},W=U._export_sfc(Q,[["__scopeId","data-v-51f57492"]]);exports.default=W;