vue-data-ui 2.4.44 → 2.4.45

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 (155) hide show
  1. package/dist/{Arrow-DabU4Tq7.js → Arrow-DExBMFtJ.js} +1 -1
  2. package/dist/{Arrow-D7FfpPjv.cjs → Arrow-dxEccWUa.cjs} +1 -1
  3. package/dist/{BaseIcon-vmPfwVXS.cjs → BaseIcon-DUokibJ1.cjs} +1 -1
  4. package/dist/{BaseIcon-DgOZGFA6.js → BaseIcon-DpLJi6ci.js} +1 -1
  5. package/dist/{DataTable-ByILXTgq.js → DataTable-NGi-FgLM.js} +2 -2
  6. package/dist/{DataTable-WzoXT7XP.cjs → DataTable-aoauqoko.cjs} +1 -1
  7. package/dist/{Legend-eRHr8IFu.cjs → Legend-DHE2CFkm.cjs} +1 -1
  8. package/dist/{Legend-CJAbBncx.js → Legend-DRozxv9L.js} +1 -1
  9. package/dist/{PackageVersion-DylCZJMA.cjs → PackageVersion-1JWV5loe.cjs} +1 -1
  10. package/dist/{PackageVersion-2fR7Awu1.js → PackageVersion-CTMY4zeY.js} +1 -1
  11. package/dist/{PenAndPaper-2aIJsXNH.cjs → PenAndPaper-C6mnwE-L.cjs} +1 -1
  12. package/dist/{PenAndPaper-wVL9QD9U.js → PenAndPaper-DJ_d10S-.js} +3 -3
  13. package/dist/{Shape-JMJZs7By.js → Shape-C-sY_hlc.js} +1 -1
  14. package/dist/{Shape-nGoGILeB.cjs → Shape-rA2az7tR.cjs} +1 -1
  15. package/dist/{Slicer-BLuFaL8r.cjs → Slicer-CJsmloDN.cjs} +1 -1
  16. package/dist/{Slicer-Ce0VzdTY.js → Slicer-D4SO7odF.js} +2 -2
  17. package/dist/{Title-Dj5wajqV.js → Title-Coit3NcT.js} +1 -1
  18. package/dist/{Title-CtfsoH8U.cjs → Title-DkbnpMvf.cjs} +1 -1
  19. package/dist/{Tooltip-6D9aABEX.cjs → Tooltip-B8L4NDsX.cjs} +1 -1
  20. package/dist/{Tooltip-Zrcwpy3T.js → Tooltip-BBgfUr4a.js} +1 -1
  21. package/dist/{index-D3_dyp9t.js → index-Cm2_6s9o.js} +119 -109
  22. package/dist/index-DuDeHJyK.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +10 -0
  25. package/dist/types/vue-data-ui.d.ts +10 -0
  26. package/dist/{useNestedProp-qwG6HgrL.js → useNestedProp-BYPZJNhi.js} +1 -1
  27. package/dist/{useNestedProp-C8Y0yWDq.cjs → useNestedProp-zkJOoemW.cjs} +1 -1
  28. package/dist/{usePrinter-41NUZdgl.js → usePrinter-Cx8U1e30.js} +1 -1
  29. package/dist/{usePrinter-Cw4E_LYe.cjs → usePrinter-ardO_DNo.cjs} +1 -1
  30. package/dist/{vue-data-ui-DPujYnT2.cjs → vue-data-ui-B8Lvjc4V.cjs} +1 -1
  31. package/dist/{vue-data-ui-CKlgRX2w.js → vue-data-ui-Blpxr4_M.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-CURLeBAg.cjs → vue-ui-3d-bar-CqmOoIA2.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-DFqYSjKF.js → vue-ui-3d-bar-DvitE1K_.js} +9 -9
  36. package/dist/{vue-ui-accordion-DbKFz7vP.js → vue-ui-accordion-CxrNF8BI.js} +3 -3
  37. package/dist/{vue-ui-accordion-zOz2K8wY.cjs → vue-ui-accordion-JS5d0ZPi.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BzwQxubx.cjs → vue-ui-age-pyramid-CRP36JDm.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DVjZHG-c.js → vue-ui-age-pyramid-Ti2L5N92.js} +10 -10
  40. package/dist/{vue-ui-annotator-CU8bDkP0.cjs → vue-ui-annotator-DtL3BbOJ.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-ZDqHg-kV.js → vue-ui-annotator-HNK_5tWo.js} +1 -1
  42. package/dist/{vue-ui-bullet-BaQJ3acV.js → vue-ui-bullet-D3WmBrm4.js} +8 -8
  43. package/dist/{vue-ui-bullet-Dt0Ki37L.cjs → vue-ui-bullet-DEUwbTdx.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-C5Pzu7U1.js → vue-ui-candlestick-B5okP_Jf.js} +11 -11
  45. package/dist/{vue-ui-candlestick-CMubhqre.cjs → vue-ui-candlestick-C5bTH9oE.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-CPE1nggj.js → vue-ui-carousel-table-BgKL0rnF.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-CL6njZH4.cjs → vue-ui-carousel-table-Bt2xx2b5.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DHF2jlte.cjs → vue-ui-chestnut-D5XfSvCG.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-B7zSDFfA.js → vue-ui-chestnut-DDsFxoUr.js} +8 -8
  50. package/dist/{vue-ui-cursor-GKguDqwJ.js → vue-ui-cursor-B2NOd5i-.js} +2 -2
  51. package/dist/{vue-ui-cursor-PG2njvGA.cjs → vue-ui-cursor-CSBJgZLu.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-D2w_aK31.cjs → vue-ui-dashboard-C6MJN9kG.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-u_haUFHY.js → vue-ui-dashboard-u-Gt08KE.js} +2 -2
  54. package/dist/{vue-ui-digits-DQetGFnZ.cjs → vue-ui-digits-B4fzfTox.cjs} +1 -1
  55. package/dist/{vue-ui-digits-DjMZxTuZ.js → vue-ui-digits-DCXyjW_e.js} +2 -2
  56. package/dist/{vue-ui-donut-CmRH-JB2.js → vue-ui-donut-BvASz63R.js} +11 -11
  57. package/dist/{vue-ui-donut-DQcISN6U.cjs → vue-ui-donut-CaJSY2gj.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-YntzBUIL.js → vue-ui-donut-evolution-DcPk33e8.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-XrPuyr-U.cjs → vue-ui-donut-evolution-DrnLlHPS.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CCwYiUwP.cjs → vue-ui-dumbbell-8v-xIlsx.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DmgUkc9m.js → vue-ui-dumbbell-D918XYc8.js} +10 -10
  62. package/dist/{vue-ui-flow-Ca2cA45D.cjs → vue-ui-flow-BBmnTxVE.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CZkXzt4D.js → vue-ui-flow-DQ5q2b1Y.js} +9 -9
  64. package/dist/{vue-ui-funnel-CJAT8_1R.cjs → vue-ui-funnel-CmERxe4h.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-z2OgL3Q1.js → vue-ui-funnel-v5WCHaw6.js} +8 -8
  66. package/dist/{vue-ui-galaxy-bgA3s7VZ.cjs → vue-ui-galaxy-8xWYo-xy.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-CGhDJ3tA.js → vue-ui-galaxy-COSx0c89.js} +11 -11
  68. package/dist/vue-ui-gauge-CWnGYcFD.js +610 -0
  69. package/dist/vue-ui-gauge-CYth7Lci.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-Bq56LDKo.js → vue-ui-gizmo-ByuFn-0N.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DBIefin8.cjs → vue-ui-gizmo-DUO_TpvK.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-C0NUwPN7.cjs → vue-ui-heatmap-DiON-CAI.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-Dbrlismo.js → vue-ui-heatmap-UoKourVZ.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Cd0Qgkox.cjs → vue-ui-history-plot-CjVySabp.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-CMAu0w0K.js → vue-ui-history-plot-CkxvdQeV.js} +11 -11
  76. package/dist/{vue-ui-kpi-CkRUVNcg.js → vue-ui-kpi-BRwkUBxs.js} +3 -3
  77. package/dist/{vue-ui-kpi-C1a3ONse.cjs → vue-ui-kpi-DYHGPjrp.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-BVvBbruK.js → vue-ui-mini-loader-Cbl4ydLu.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DZ1q-GO6.cjs → vue-ui-mini-loader-oviO8Ueo.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-C-tmrnHA.cjs → vue-ui-molecule-CX1M509E.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-DlXNe42L.js → vue-ui-molecule-DM_mX72q.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-DzHvFqno.js → vue-ui-mood-radar-Bzsba8qo.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-DYXE1dDD.cjs → vue-ui-mood-radar-fuqAjpvg.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-DDpYr89I.js → vue-ui-nested-donuts-BG84mskb.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BpcKwKFO.cjs → vue-ui-nested-donuts-DfHtC4XP.cjs} +1 -1
  86. package/dist/{vue-ui-onion-B9CAGc1E.js → vue-ui-onion-DpFx1Oy9.js} +11 -11
  87. package/dist/{vue-ui-onion-_WXwSygI.cjs → vue-ui-onion-gt77JCbM.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CdvYxx2S.js → vue-ui-parallel-coordinate-plot-CQG_anr7.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs → vue-ui-parallel-coordinate-plot-xJTddxji.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-CILC-e-o.js → vue-ui-quadrant-Cddob9c3.js} +12 -12
  91. package/dist/{vue-ui-quadrant-ivKVYVXn.cjs → vue-ui-quadrant-D0YgwhwW.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DW3XlvkG.cjs → vue-ui-quick-chart-CLzNpIFU.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-NIE0zUjt.js → vue-ui-quick-chart-DTEubspa.js} +9 -9
  94. package/dist/{vue-ui-radar-BonXp2ML.js → vue-ui-radar--uexaa6p.js} +12 -12
  95. package/dist/{vue-ui-radar-D9WtkmKW.cjs → vue-ui-radar-BTh9qZ2p.cjs} +1 -1
  96. package/dist/{vue-ui-rating-DblWs0Ay.js → vue-ui-rating-BQuZA9UU.js} +2 -2
  97. package/dist/{vue-ui-rating-3akEkZ0G.cjs → vue-ui-rating-Dyjk2dub.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BaPqJcbF.js → vue-ui-relation-circle-C8NYrTHA.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-Bv5QA1FA.cjs → vue-ui-relation-circle-FtGlV4Ne.cjs} +1 -1
  100. package/dist/{vue-ui-rings-KRi0yCa1.cjs → vue-ui-rings-ClJRYeFC.cjs} +1 -1
  101. package/dist/{vue-ui-rings-DHa-dc3s.js → vue-ui-rings-FEIPR_dS.js} +11 -11
  102. package/dist/{vue-ui-scatter-CKnKyeDJ.js → vue-ui-scatter-CzbgC6ep.js} +12 -12
  103. package/dist/{vue-ui-scatter-C-0G6tO_.cjs → vue-ui-scatter-vYxSs8Gf.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-BIvS3Dva.cjs → vue-ui-screenshot-CVQCw0B1.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-BnQlv1n0.js → vue-ui-screenshot-IaxgY5qE.js} +1 -1
  106. package/dist/{vue-ui-skeleton-CaV7JuCg.js → vue-ui-skeleton-BUS6A44x.js} +3 -3
  107. package/dist/{vue-ui-skeleton-urNi7er0.cjs → vue-ui-skeleton-DleyAXe1.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BkKHZRcE.js → vue-ui-smiley-5CVa-rQU.js} +2 -2
  109. package/dist/{vue-ui-smiley-BDJWFNUb.cjs → vue-ui-smiley-BTTXNPGY.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-Jrg-tgH_.cjs → vue-ui-spark-trend-CZAgof3m.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-C6B6URVX.js → vue-ui-spark-trend-D9ww-Cv5.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-CcPXRX01.cjs → vue-ui-sparkbar-BFsdfuNO.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-D7A9EKVi.js → vue-ui-sparkbar-DKeLvkHa.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-ZQOdaaF1.cjs → vue-ui-sparkgauge-B_bIpe_O.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-C1kcwrm9.js → vue-ui-sparkgauge-DLpPuJdG.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-DkMaK9FC.js → vue-ui-sparkhistogram-BA8QV7Cu.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CZQzNQHQ.cjs → vue-ui-sparkhistogram-RoW45LV8.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DuJlR_56.cjs → vue-ui-sparkline-BggHSfaz.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-JNv27Q7M.js → vue-ui-sparkline-BwOtPPij.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-4YKk6S2y.js → vue-ui-sparkstackbar-DCS6RRgN.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-BStYMSiJ.cjs → vue-ui-sparkstackbar-Uv_p8v9c.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-BKhScZJ4.cjs → vue-ui-stackbar-BqKNaGrf.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-BrBToOgd.js → vue-ui-stackbar-zcfxba5s.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-BSbIVJLB.cjs → vue-ui-strip-plot-J5SSJPyl.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-BB9AjuXc.js → vue-ui-strip-plot-NykStkP9.js} +11 -11
  126. package/dist/{vue-ui-table-CTwEo09l.cjs → vue-ui-table-DWPKVbYC.cjs} +1 -1
  127. package/dist/{vue-ui-table-BkfBNufP.js → vue-ui-table-DhRjI7oG.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-t6NXIulS.js → vue-ui-table-heatmap-CT5nGoW-.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-BRa-idSR.cjs → vue-ui-table-heatmap-GvLTOGcB.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CtVdHOeS.js → vue-ui-table-sparkline-Ba_Ucvgb.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-LRvAe8DG.cjs → vue-ui-table-sparkline-CBFEknMF.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-Dqy_A9Ka.js → vue-ui-thermometer-C11VSZfb.js} +7 -7
  133. package/dist/{vue-ui-thermometer-Bkj9olK0.cjs → vue-ui-thermometer-sqA0TGTi.cjs} +1 -1
  134. package/dist/{vue-ui-timer-C2WYUfS1.cjs → vue-ui-timer-CcBNysNG.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BkWR-FS3.js → vue-ui-timer-lwjayVn0.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-BXumbUyZ.cjs → vue-ui-tiremarks-FBnh0R_Z.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Dl881FpL.js → vue-ui-tiremarks-Jz80HKpg.js} +7 -7
  138. package/dist/{vue-ui-treemap-CvNWsOoE.cjs → vue-ui-treemap-7YFJ-Pb9.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-Vl47y-4n.js → vue-ui-treemap-B_qVGTnP.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-BzkqxE45.js → vue-ui-vertical-bar-5MwcqOTN.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-D1EoKlII.cjs → vue-ui-vertical-bar-DGuvFK2h.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-Bd4Wn4LE.js → vue-ui-waffle-B0JbRRUv.js} +11 -11
  143. package/dist/{vue-ui-waffle-C6cN0uw8.cjs → vue-ui-waffle-C0F8eexl.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-OGoTipOg.cjs → vue-ui-wheel-DP9XwVGM.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-D1SsLAru.js → vue-ui-wheel-pQBqSI5z.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-Da4dHp_U.cjs → vue-ui-word-cloud-CmKH64gk.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-C6vq-XKZ.js → vue-ui-word-cloud-D39_9P7v.js} +10 -10
  148. package/dist/{vue-ui-xy-DXLSyett.cjs → vue-ui-xy-2m8k1EUB.cjs} +1 -1
  149. package/dist/{vue-ui-xy-Bbih4XkZ.js → vue-ui-xy-DRYbR_nu.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-GffgFKCU.cjs → vue-ui-xy-canvas-CywB2tWN.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-Dtv9a_jF.js → vue-ui-xy-canvas-DZib_307.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-ZAR4YEAn.cjs +0 -9
  154. package/dist/vue-ui-gauge-F-bvIFfG.cjs +0 -1
  155. package/dist/vue-ui-gauge-NtnSEvX5.js +0 -557
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-ZAR4YEAn.cjs"),b=require("./useNestedProp-C8Y0yWDq.cjs"),s=require("./PackageVersion-DylCZJMA.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=u=>(e.pushScopeId("data-v-75f0973e"),u=u(),e.popScopeId(),u),L=["id"],S=["xmlns"],z=["stroke"],A=["stroke"],$=["stroke"],P=["fill","stroke"],W=["fill"],X=["fill","stroke"],j=["fill"],F=["fill","stroke"],O=["fill"],q=["fill","stroke"],H=["fill"],I=["fill","stroke"],Z=["fill"],T=["fill","stroke"],G=["fill"],R=["xmlns"],Y=["stroke","fill"],D=["xmlns"],U=["stroke","fill"],J=["xmlns"],K=["fill"],Q=["fill"],ee=["fill"],te=["fill"],le=["xmlns"],oe=["stroke"],re=["fill"],ne=["stroke","fill"],se=["stroke","fill"],ae=["fill"],ce=["stroke","fill"],ie=["stroke","fill"],de=["fill"],ue=["stroke","fill"],ke=["stroke","fill"],ye=["fill"],he=["stroke","fill"],me=["stroke","fill"],_e=["fill"],ve=["stroke","fill"],pe=["stroke","fill"],xe=["xmlns"],fe=["stroke"],ge=["stroke"],Ne=["stroke","fill"],we=["stroke","fill"],Ee=["stroke","fill"],Ve=["stroke","fill"],Be=["stroke","fill"],Me=["stroke","fill"],be=["stroke","fill"],Ce=["stroke","fill"],Le=["stroke","fill"],Se=["stroke","fill"],ze=["stroke","fill"],Ae=["stroke","fill"],$e=["stroke","fill"],Pe=["stroke","fill"],We=["stroke","fill"],Xe=["stroke","fill"],je=["stroke","fill"],Fe=["stroke","fill"],Oe=["stroke","fill"],qe=["stroke","fill"],He=["stroke","fill"],Ie=["stroke","fill"],Ze=["stroke","fill"],Te=["xmlns"],Ge=["stroke"],Re=["xmlns"],Ye=["stroke"],De=["xmlns"],Ue=["stroke"],Je=["xmlns"],Ke=["fill"],Qe=["fill"],et=["fill"],tt=["fill"],lt=["fill"],ot=["fill"],rt=["fill"],nt=["fill"],st=["fill"],at=["fill"],ct=["fill"],it=["fill"],dt=["xmlns"],ut=["stroke"],kt=["stroke"],yt=["stroke"],ht=["stroke"],mt=["stroke"],_t=["stroke"],vt=["xmlns"],pt=["stroke"],xt=["stroke"],ft=["stroke"],gt=["stroke"],Nt=["stroke"],wt=["stroke"],Et=["stroke"],Vt=["stroke"],Bt=["stroke"],Mt=["xmlns"],bt=["stroke"],Ct=["xmlns"],Lt=["stroke"],St=["stroke"],zt=["stroke"],At=["stroke"],$t=["stroke"],Pt=["stroke"],Wt=["stroke"],Xt=["stroke"],jt=["stroke"],Ft=["xmlns"],Ot=["x1","x2","stroke"],qt=["xmlns"],Ht=["x","y","width","height","fill"],It=["y","width","height","fill"],Zt=["xmlns"],Tt=["fill"],Gt=["fill"],Rt=["fill"],Yt=["xmlns"],Dt=["x1","x2","y1","y2","stroke"],Ut=["stroke"],Jt=["fill"],Kt=["xmlns"],Qt=["fill"],el=["fill"],tl=["x1","y1","x2","y2","stroke-width","stroke"],ll=["xmlns"],ol={key:0},rl=["stroke","stroke-width"],nl=["stroke","stroke-width"],sl=["x1","x2","y1","y2","stroke","stroke-width"],al=["x1","x2","y1","y2","stroke","stroke-width"],cl=["x1","x2","y1","y2","stroke","stroke-width"],il=["x","y","height","width","fill"],dl=["xmlns","viewBox"],ul=["x","y","stroke","fill"],kl=["xmlns"],yl=["d","stroke"],hl=["cx","cy","r","fill","stroke"],ml=["cx","cy","r","fill","stroke"],_l=["x","y","width","fill"],vl=["cx","cy","fill"],pl=["cx","cy","fill"],xl=["stroke"],fl=["xmlns"],gl=["stroke","stroke-width"],Nl=["stroke","stroke-width"],wl=["stroke","stroke-width"],El=["fill"],Vl=["fill"],Bl=["fill"],Ml=["fill"],bl=["fill"],Cl=["fill"],Ll=["xmlns"],Sl={key:0},zl=["stroke","stroke-width"],Al=["stroke","stroke-width"],$l=["stroke","stroke-width"],Pl={key:1},Wl=["r","fill"],Xl=["r","fill"],jl=["xmlns"],Fl={key:0},Ol=["stroke","stroke-width"],ql=["stroke","stroke-width"],Hl=["fill","rx","x","y","width","height"],Il=["xmlns"],Zl=["stroke-width","stroke"],Tl=["stroke-width","stroke"],Gl=["stroke-width","stroke"],Rl=["xmlns"],Yl=["stroke"],Dl=["stroke"],Ul=["stroke"],Jl=["stroke"],Kl=["fill"],Ql=["stroke"],eo=["xmlns"],to=["stroke","stroke-width"],lo=["stroke","stroke-width"],oo=["fill","r"],ro=["fill","r"],no=["fill","r"],so=["fill","r"],ao=["fill","r"],co=["fill","r"],io=["fill","r"],uo=["fill","r"],ko=["fill","r"],yo=["xmlns"],ho=["d","stroke","stroke-width"],mo=["d","stroke","stroke-width"],_o=["d","stroke","stroke-width"],vo=["d","stroke","stroke-width"],po=["stroke","stroke-width"],xo=["stroke","stroke-width"],fo=["stroke","stroke-width"],go=["fill"],No=["fill"],wo=["xmlns"],Eo=["x","y","fill"],Vo=["x","y","fill"],Bo=["x","y","fill"],Mo=["xmlns"],bo=["fill"],Co=["fill"],Lo=["y1","y2","stroke","stroke-width"],So=["x1","x2","stroke","stroke-width"],zo=["xmlns","stroke"],Ao=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),$o=["fill"],Po=["xmlns","stroke"],Wo=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-75f0973e></path>',5),Xo=[Wo],jo=["xmlns","stroke"],Fo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Oo=["fill"],qo=["xmlns","stroke"],Ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9 15l6 0" data-v-75f0973e></path>',5),Io=[Ho],Zo=["xmlns","stroke"],To=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Go=["fill"],Ro=["xmlns","stroke"],Yo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Do=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Uo=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Jo=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),Ko=[Yo,Do,Uo,Jo],Qo=["xmlns","stroke"],er=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),tr=["fill"],lr=["xmlns","stroke"],or=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-75f0973e></path>',5),rr=[or],nr=["xmlns","stroke"],sr=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ar=["fill"],cr=["xmlns","stroke"],ir=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 9l.01 0" data-v-75f0973e></path><path d="M15 9l.01 0" data-v-75f0973e></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-75f0973e></path>',5),dr=[ir],ur=["xmlns"],kr=["points","fill","stroke","stroke-width"],yr=["xmlns"],hr={key:0},mr=["stroke","stroke-width"],_r=["y","width","fill","rx"],vr={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(u){const p=u,{vue_ui_skeleton:x}=l.useConfig(),f=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>b.useNestedProp({userConfig:p.config,defaultConfig:x})),g=e.computed(()=>t.value.style.animated),n=e.computed(()=>t.value.type),N=e.ref([60,50,55,36,40,25,26,12]),w=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),B=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),y=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),k=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),h=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function m(d,_=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*_,y:200+160*Math.sin(29.85+d*Math.PI/180)*_}}const M=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:m(360/100*o).x,y1:m(360/100*o).y,x2:m(360/100*o,.9).x,y2:m(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,_)=>(e.openBlock(),e.createElementBlock("div",{id:f.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":g.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[n.value==="historyPlot"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 612 512",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"12",x2:"12",y1:"12",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,z),e.createElementVNode("line",{x1:"12",x2:"600",y1:"500",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,A),e.createElementVNode("path",{d:"M 80,100 300,200 400,150 560,230 360,420 230,320",fill:"none",stroke:t.value.style.historyPlot.color,"stroke-width":"3"},null,8,$),e.createElementVNode("circle",{cx:"80",cy:"100",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,P),e.createElementVNode("text",{x:"80",y:"108",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"1",8,W),e.createElementVNode("circle",{cx:"300",cy:"200",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,X),e.createElementVNode("text",{x:"300",y:"208",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"2",8,j),e.createElementVNode("circle",{cx:"400",cy:"150",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,F),e.createElementVNode("text",{x:"400",y:"158",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"3",8,O),e.createElementVNode("circle",{cx:"560",cy:"230",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,q),e.createElementVNode("text",{x:"560",y:"238",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"4",8,H),e.createElementVNode("circle",{cx:"360",cy:"420",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,I),e.createElementVNode("text",{x:"360",y:"428",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"5",8,Z),e.createElementVNode("circle",{cx:"230",cy:"320",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,T),e.createElementVNode("text",{x:"230",y:"328",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"6",8,G)],12,S)):e.createCommentVNode("",!0),n.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,Y)],12,R)):e.createCommentVNode("",!0),n.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,U)],12,D)):e.createCommentVNode("",!0),n.value==="bullet"?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 600 96",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:"0.8"}},null,8,K),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:"0.6"}},null,8,Q),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:"0.3"}},null,8,ee),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:"1"}},null,8,te)],12,J)):e.createCommentVNode("",!0),n.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,oe),e.createElementVNode("path",{d:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DuDeHJyK.cjs"),b=require("./useNestedProp-zkJOoemW.cjs"),s=require("./PackageVersion-1JWV5loe.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=u=>(e.pushScopeId("data-v-75f0973e"),u=u(),e.popScopeId(),u),L=["id"],S=["xmlns"],z=["stroke"],A=["stroke"],$=["stroke"],P=["fill","stroke"],W=["fill"],X=["fill","stroke"],j=["fill"],F=["fill","stroke"],O=["fill"],q=["fill","stroke"],H=["fill"],I=["fill","stroke"],Z=["fill"],T=["fill","stroke"],G=["fill"],R=["xmlns"],Y=["stroke","fill"],D=["xmlns"],U=["stroke","fill"],J=["xmlns"],K=["fill"],Q=["fill"],ee=["fill"],te=["fill"],le=["xmlns"],oe=["stroke"],re=["fill"],ne=["stroke","fill"],se=["stroke","fill"],ae=["fill"],ce=["stroke","fill"],ie=["stroke","fill"],de=["fill"],ue=["stroke","fill"],ke=["stroke","fill"],ye=["fill"],he=["stroke","fill"],me=["stroke","fill"],_e=["fill"],ve=["stroke","fill"],pe=["stroke","fill"],xe=["xmlns"],fe=["stroke"],ge=["stroke"],Ne=["stroke","fill"],we=["stroke","fill"],Ee=["stroke","fill"],Ve=["stroke","fill"],Be=["stroke","fill"],Me=["stroke","fill"],be=["stroke","fill"],Ce=["stroke","fill"],Le=["stroke","fill"],Se=["stroke","fill"],ze=["stroke","fill"],Ae=["stroke","fill"],$e=["stroke","fill"],Pe=["stroke","fill"],We=["stroke","fill"],Xe=["stroke","fill"],je=["stroke","fill"],Fe=["stroke","fill"],Oe=["stroke","fill"],qe=["stroke","fill"],He=["stroke","fill"],Ie=["stroke","fill"],Ze=["stroke","fill"],Te=["xmlns"],Ge=["stroke"],Re=["xmlns"],Ye=["stroke"],De=["xmlns"],Ue=["stroke"],Je=["xmlns"],Ke=["fill"],Qe=["fill"],et=["fill"],tt=["fill"],lt=["fill"],ot=["fill"],rt=["fill"],nt=["fill"],st=["fill"],at=["fill"],ct=["fill"],it=["fill"],dt=["xmlns"],ut=["stroke"],kt=["stroke"],yt=["stroke"],ht=["stroke"],mt=["stroke"],_t=["stroke"],vt=["xmlns"],pt=["stroke"],xt=["stroke"],ft=["stroke"],gt=["stroke"],Nt=["stroke"],wt=["stroke"],Et=["stroke"],Vt=["stroke"],Bt=["stroke"],Mt=["xmlns"],bt=["stroke"],Ct=["xmlns"],Lt=["stroke"],St=["stroke"],zt=["stroke"],At=["stroke"],$t=["stroke"],Pt=["stroke"],Wt=["stroke"],Xt=["stroke"],jt=["stroke"],Ft=["xmlns"],Ot=["x1","x2","stroke"],qt=["xmlns"],Ht=["x","y","width","height","fill"],It=["y","width","height","fill"],Zt=["xmlns"],Tt=["fill"],Gt=["fill"],Rt=["fill"],Yt=["xmlns"],Dt=["x1","x2","y1","y2","stroke"],Ut=["stroke"],Jt=["fill"],Kt=["xmlns"],Qt=["fill"],el=["fill"],tl=["x1","y1","x2","y2","stroke-width","stroke"],ll=["xmlns"],ol={key:0},rl=["stroke","stroke-width"],nl=["stroke","stroke-width"],sl=["x1","x2","y1","y2","stroke","stroke-width"],al=["x1","x2","y1","y2","stroke","stroke-width"],cl=["x1","x2","y1","y2","stroke","stroke-width"],il=["x","y","height","width","fill"],dl=["xmlns","viewBox"],ul=["x","y","stroke","fill"],kl=["xmlns"],yl=["d","stroke"],hl=["cx","cy","r","fill","stroke"],ml=["cx","cy","r","fill","stroke"],_l=["x","y","width","fill"],vl=["cx","cy","fill"],pl=["cx","cy","fill"],xl=["stroke"],fl=["xmlns"],gl=["stroke","stroke-width"],Nl=["stroke","stroke-width"],wl=["stroke","stroke-width"],El=["fill"],Vl=["fill"],Bl=["fill"],Ml=["fill"],bl=["fill"],Cl=["fill"],Ll=["xmlns"],Sl={key:0},zl=["stroke","stroke-width"],Al=["stroke","stroke-width"],$l=["stroke","stroke-width"],Pl={key:1},Wl=["r","fill"],Xl=["r","fill"],jl=["xmlns"],Fl={key:0},Ol=["stroke","stroke-width"],ql=["stroke","stroke-width"],Hl=["fill","rx","x","y","width","height"],Il=["xmlns"],Zl=["stroke-width","stroke"],Tl=["stroke-width","stroke"],Gl=["stroke-width","stroke"],Rl=["xmlns"],Yl=["stroke"],Dl=["stroke"],Ul=["stroke"],Jl=["stroke"],Kl=["fill"],Ql=["stroke"],eo=["xmlns"],to=["stroke","stroke-width"],lo=["stroke","stroke-width"],oo=["fill","r"],ro=["fill","r"],no=["fill","r"],so=["fill","r"],ao=["fill","r"],co=["fill","r"],io=["fill","r"],uo=["fill","r"],ko=["fill","r"],yo=["xmlns"],ho=["d","stroke","stroke-width"],mo=["d","stroke","stroke-width"],_o=["d","stroke","stroke-width"],vo=["d","stroke","stroke-width"],po=["stroke","stroke-width"],xo=["stroke","stroke-width"],fo=["stroke","stroke-width"],go=["fill"],No=["fill"],wo=["xmlns"],Eo=["x","y","fill"],Vo=["x","y","fill"],Bo=["x","y","fill"],Mo=["xmlns"],bo=["fill"],Co=["fill"],Lo=["y1","y2","stroke","stroke-width"],So=["x1","x2","stroke","stroke-width"],zo=["xmlns","stroke"],Ao=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),$o=["fill"],Po=["xmlns","stroke"],Wo=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-75f0973e></path>',5),Xo=[Wo],jo=["xmlns","stroke"],Fo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Oo=["fill"],qo=["xmlns","stroke"],Ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9 15l6 0" data-v-75f0973e></path>',5),Io=[Ho],Zo=["xmlns","stroke"],To=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Go=["fill"],Ro=["xmlns","stroke"],Yo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Do=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Uo=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Jo=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),Ko=[Yo,Do,Uo,Jo],Qo=["xmlns","stroke"],er=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),tr=["fill"],lr=["xmlns","stroke"],or=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 10l.01 0" data-v-75f0973e></path><path d="M15 10l.01 0" data-v-75f0973e></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-75f0973e></path>',5),rr=[or],nr=["xmlns","stroke"],sr=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ar=["fill"],cr=["xmlns","stroke"],ir=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-75f0973e></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-75f0973e></path><path d="M9 9l.01 0" data-v-75f0973e></path><path d="M15 9l.01 0" data-v-75f0973e></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-75f0973e></path>',5),dr=[ir],ur=["xmlns"],kr=["points","fill","stroke","stroke-width"],yr=["xmlns"],hr={key:0},mr=["stroke","stroke-width"],_r=["y","width","fill","rx"],vr={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(u){const p=u,{vue_ui_skeleton:x}=l.useConfig(),f=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>b.useNestedProp({userConfig:p.config,defaultConfig:x})),g=e.computed(()=>t.value.style.animated),n=e.computed(()=>t.value.type),N=e.ref([60,50,55,36,40,25,26,12]),w=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),B=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),y=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),k=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),h=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function m(d,_=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*_,y:200+160*Math.sin(29.85+d*Math.PI/180)*_}}const M=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:m(360/100*o).x,y1:m(360/100*o).y,x2:m(360/100*o,.9).x,y2:m(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,_)=>(e.openBlock(),e.createElementBlock("div",{id:f.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":g.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[n.value==="historyPlot"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 612 512",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"12",x2:"12",y1:"12",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,z),e.createElementVNode("line",{x1:"12",x2:"600",y1:"500",y2:"500",stroke:t.value.style.historyPlot.color,"stroke-width":"3","stroke-linecap":"round"},null,8,A),e.createElementVNode("path",{d:"M 80,100 300,200 400,150 560,230 360,420 230,320",fill:"none",stroke:t.value.style.historyPlot.color,"stroke-width":"3"},null,8,$),e.createElementVNode("circle",{cx:"80",cy:"100",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,P),e.createElementVNode("text",{x:"80",y:"108",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"1",8,W),e.createElementVNode("circle",{cx:"300",cy:"200",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,X),e.createElementVNode("text",{x:"300",y:"208",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"2",8,j),e.createElementVNode("circle",{cx:"400",cy:"150",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,F),e.createElementVNode("text",{x:"400",y:"158",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"3",8,O),e.createElementVNode("circle",{cx:"560",cy:"230",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,q),e.createElementVNode("text",{x:"560",y:"238",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"4",8,H),e.createElementVNode("circle",{cx:"360",cy:"420",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,I),e.createElementVNode("text",{x:"360",y:"428",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"5",8,Z),e.createElementVNode("circle",{cx:"230",cy:"320",r:"24",fill:t.value.style.historyPlot.color,stroke:t.value.style.backgroundColor,"stroke-width":"3"},null,8,T),e.createElementVNode("text",{x:"230",y:"328",fill:t.value.style.backgroundColor,"font-size":"24","text-anchor":"middle"},"6",8,G)],12,S)):e.createCommentVNode("",!0),n.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,Y)],12,R)):e.createCommentVNode("",!0),n.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,U)],12,D)):e.createCommentVNode("",!0),n.value==="bullet"?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 600 96",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:"0.8"}},null,8,K),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:"0.6"}},null,8,Q),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:"0.3"}},null,8,ee),e.createElementVNode("rect",{fill:t.value.style.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:"1"}},null,8,te)],12,J)):e.createCommentVNode("",!0),n.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(s._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,oe),e.createElementVNode("path",{d:`
2
2
  M 30,11
3
3
  C 39,10 39,10
4
4
  45,11
@@ -1,6 +1,6 @@
1
1
  import { onMounted as D, ref as B, computed as C, watch as E, openBlock as s, createElementBlock as i, normalizeStyle as a, createElementVNode as e, toDisplayString as g, createCommentVNode as u, unref as o, normalizeClass as M, withKeys as S, createTextVNode as R, pushScopeId as O, popScopeId as T, createStaticVNode as $ } from "vue";
2
- import { u as P, o as q, e as J, i as _, f as b, X as c, w as x } from "./index-D3_dyp9t.js";
3
- import { u as Q } from "./useNestedProp-qwG6HgrL.js";
2
+ import { u as P, o as q, e as J, i as _, f as b, X as c, w as x } from "./index-Cm2_6s9o.js";
3
+ import { u as Q } from "./useNestedProp-BYPZJNhi.js";
4
4
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const p = (w) => (O("data-v-563f44f5"), w = w(), T(), w), Z = {
6
6
  key: 0,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-ZAR4YEAn.cjs"),w=require("./useNestedProp-C8Y0yWDq.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=f=>(e.pushScopeId("data-v-563f44f5"),f=f(),e.popScopeId(),f),B={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},C=["xmlns","stroke"],R={id:"vueUiSmiley0"},L=["stop-color"],H=["stop-color"],X=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),j=["fill"],D=["stroke"],U=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-563f44f5></path>',5),G=[U],A=["xmlns","viewBox","stroke"],Y={id:"vueUiSmiley0"},K=["stop-color"],I=["stop-color"],T=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),F=["fill"],O=["viewBox","stroke"],q=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-563f44f5></path>',5),P=[q],J=["xmlns","stroke"],Q={id:"vueUiSmiley1"},W=["stop-color"],Z=["stop-color"],ee=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),te=["fill"],le=["xmlns","stroke"],oe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9 15l6 0" data-v-563f44f5></path>',5),ae=[oe],ne=["xmlns","viewBox","stroke"],se={id:"vueUiSmiley1"},ie=["stop-color"],re=["stop-color"],de=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ue=["fill"],ce=["viewBox","stroke"],pe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9 15l6 0" data-v-563f44f5></path>',5),ve=[pe],fe=["xmlns","stroke"],ye={id:"vueUiSmiley2"},me=["stop-color"],he=["stop-color"],ke=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ge=["fill"],xe=["xmlns","stroke"],_e=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ne=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),be=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Ve=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),ze=[_e,Ne,be,Ve],Ee=["xmlns","viewBox","stroke"],$e=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Se={id:"vueUiSmiley2"},we=["stop-color"],Me=["stop-color"],Be=["fill"],Ce=["xmlns","viewBox","stroke"],Re=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Le=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),He=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Xe=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),je=[Re,Le,He,Xe],De=["xmlns","stroke"],Ue={id:"vueUiSmiley3"},Ge=["stop-color"],Ae=["stop-color"],Ye=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ke=["fill"],Ie=["xmlns","stroke"],Te=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-563f44f5></path>',5),Fe=[Te],Oe=["xmlns","viewBox","stroke"],qe=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Pe={id:"vueUiSmiley3"},Je=["stop-color"],Qe=["stop-color"],We=["fill"],Ze=["xmlns","viewBox","stroke"],et=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-563f44f5></path>',5),tt=[et],lt=["xmlns","stroke"],ot={id:"vueUiSmiley4"},at=["stop-color"],nt=["stop-color"],st=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),it=["fill"],rt=["xmlns","stroke"],dt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 9l.01 0" data-v-563f44f5></path><path d="M15 9l.01 0" data-v-563f44f5></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-563f44f5></path>',5),ut=[dt],ct=["xmlns","viewBox","stroke"],pt=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),vt={id:"vueUiSmiley4"},ft=["stop-color"],yt=["stop-color"],mt=["fill"],ht=["xmlns","viewBox","stroke"],kt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 9l.01 0" data-v-563f44f5></path><path d="M15 9l.01 0" data-v-563f44f5></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-563f44f5></path>',5),gt=[kt],xt={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(f,{expose:_,emit:N}){const s=f,{vue_ui_smiley:b}=o.useConfig();e.onMounted(()=>{m()});function m(){o.objectIsEmpty(s.dataset)&&o.error({componentName:"VueUiSmiley",type:"dataset"})}const h=e.ref(!1),i=e.ref(void 0),t=e.computed({get:()=>k(),set:n=>n});function k(){return w.useNestedProp({userConfig:s.config,defaultConfig:b})}e.watch(()=>s.config,n=>{t.value=k(),m()},{deep:!0});const V=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?z(s.dataset.rating):s.dataset.rating||null),y=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),d=e.ref(V.value),u=e.computed(()=>t.value.readonly);function z(n){if(n===null)return null;let l=0,a=0;for(const g in n){const S=parseInt(g),x=n[g];l+=S*x,a+=x}return a===0?0:l/a}function p(n){const l=d.value-n,a=24;switch(!0){case l<0:return 0;case l>1:return 1*a;default:return l*a}}function v(n){u.value||(d.value=n,N("rate",n))}function E(){return d.value}function $(n=!0){u.value=n}_({getData:E,toggleReadonly:$});function c(n){return t.value.readonly?t.value.style.colors.inactive[n]:d.value===n+1?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:i.value!==void 0&&i.value===n?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:t.value.style.colors.inactive[n]}return(n,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%;`),onMouseover:l[20]||(l[20]=a=>h.value=!0),onMouseleave:l[21]||(l[21]=a=>{h.value=!1,i.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${t.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===1}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DuDeHJyK.cjs"),w=require("./useNestedProp-zkJOoemW.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=f=>(e.pushScopeId("data-v-563f44f5"),f=f(),e.popScopeId(),f),B={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},C=["xmlns","stroke"],R={id:"vueUiSmiley0"},L=["stop-color"],H=["stop-color"],X=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),j=["fill"],D=["stroke"],U=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-563f44f5></path>',5),G=[U],A=["xmlns","viewBox","stroke"],Y={id:"vueUiSmiley0"},K=["stop-color"],I=["stop-color"],T=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),F=["fill"],O=["viewBox","stroke"],q=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-563f44f5></path>',5),P=[q],J=["xmlns","stroke"],Q={id:"vueUiSmiley1"},W=["stop-color"],Z=["stop-color"],ee=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),te=["fill"],le=["xmlns","stroke"],oe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9 15l6 0" data-v-563f44f5></path>',5),ae=[oe],ne=["xmlns","viewBox","stroke"],se={id:"vueUiSmiley1"},ie=["stop-color"],re=["stop-color"],de=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ue=["fill"],ce=["viewBox","stroke"],pe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9 15l6 0" data-v-563f44f5></path>',5),ve=[pe],fe=["xmlns","stroke"],ye={id:"vueUiSmiley2"},me=["stop-color"],he=["stop-color"],ke=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ge=["fill"],xe=["xmlns","stroke"],_e=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ne=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),be=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Ve=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),ze=[_e,Ne,be,Ve],Ee=["xmlns","viewBox","stroke"],$e=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Se={id:"vueUiSmiley2"},we=["stop-color"],Me=["stop-color"],Be=["fill"],Ce=["xmlns","viewBox","stroke"],Re=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Le=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),He=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Xe=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),je=[Re,Le,He,Xe],De=["xmlns","stroke"],Ue={id:"vueUiSmiley3"},Ge=["stop-color"],Ae=["stop-color"],Ye=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ke=["fill"],Ie=["xmlns","stroke"],Te=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-563f44f5></path>',5),Fe=[Te],Oe=["xmlns","viewBox","stroke"],qe=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Pe={id:"vueUiSmiley3"},Je=["stop-color"],Qe=["stop-color"],We=["fill"],Ze=["xmlns","viewBox","stroke"],et=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 10l.01 0" data-v-563f44f5></path><path d="M15 10l.01 0" data-v-563f44f5></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-563f44f5></path>',5),tt=[et],lt=["xmlns","stroke"],ot={id:"vueUiSmiley4"},at=["stop-color"],nt=["stop-color"],st=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),it=["fill"],rt=["xmlns","stroke"],dt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 9l.01 0" data-v-563f44f5></path><path d="M15 9l.01 0" data-v-563f44f5></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-563f44f5></path>',5),ut=[dt],ct=["xmlns","viewBox","stroke"],pt=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),vt={id:"vueUiSmiley4"},ft=["stop-color"],yt=["stop-color"],mt=["fill"],ht=["xmlns","viewBox","stroke"],kt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-563f44f5></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-563f44f5></path><path d="M9 9l.01 0" data-v-563f44f5></path><path d="M15 9l.01 0" data-v-563f44f5></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-563f44f5></path>',5),gt=[kt],xt={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(f,{expose:_,emit:N}){const s=f,{vue_ui_smiley:b}=o.useConfig();e.onMounted(()=>{m()});function m(){o.objectIsEmpty(s.dataset)&&o.error({componentName:"VueUiSmiley",type:"dataset"})}const h=e.ref(!1),i=e.ref(void 0),t=e.computed({get:()=>k(),set:n=>n});function k(){return w.useNestedProp({userConfig:s.config,defaultConfig:b})}e.watch(()=>s.config,n=>{t.value=k(),m()},{deep:!0});const V=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?z(s.dataset.rating):s.dataset.rating||null),y=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),d=e.ref(V.value),u=e.computed(()=>t.value.readonly);function z(n){if(n===null)return null;let l=0,a=0;for(const g in n){const S=parseInt(g),x=n[g];l+=S*x,a+=x}return a===0?0:l/a}function p(n){const l=d.value-n,a=24;switch(!0){case l<0:return 0;case l>1:return 1*a;default:return l*a}}function v(n){u.value||(d.value=n,N("rate",n))}function E(){return d.value}function $(n=!0){u.value=n}_({getData:E,toggleReadonly:$});function c(n){return t.value.readonly?t.value.style.colors.inactive[n]:d.value===n+1?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:i.value!==void 0&&i.value===n?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:t.value.style.colors.inactive[n]}return(n,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%;`),onMouseover:l[20]||(l[20]=a=>h.value=!0),onMouseleave:l[21]||(l[21]=a=>{h.value=!1,i.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${t.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===1}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;
2
2
  position:relative`),onMouseenter:l[0]||(l[0]=a=>i.value=0),onMouseleave:l[1]||(l[1]=a=>i.value=void 0),onClick:l[2]||(l[2]=a=>v(1)),onKeyup:l[3]||(l[3]=e.withKeys(a=>v(1),["enter"]))},[t.value.style.tooltip.show&&y.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===0?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"1:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[1],e.unref(o.dataLabel)({v:s.dataset.rating[1],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",R,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.active[0],.05)},null,8,L),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[0]},null,8,H)])]),X,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(0)},null,8,j)],8,C)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},G,8,D)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Y,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[0],.05)},null,8,K),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[0]},null,8,I)])]),T,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley0)":t.value.style.colors.activeReadonly[0]},null,8,F)],8,A)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},P,8,O)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===2}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[4]||(l[4]=a=>i.value=1),onMouseleave:l[5]||(l[5]=a=>i.value=void 0),onClick:l[6]||(l[6]=a=>v(2)),onKeyup:l[7]||(l[7]=e.withKeys(a=>v(2),["enter"]))},[t.value.style.tooltip.show&&y.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===1?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"2:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[2],e.unref(o.dataLabel)({v:s.dataset.rating[2],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Q,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.active[1],.05)},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[1]},null,8,Z)])]),ee,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(1)},null,8,te)],8,J)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ae,8,le)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",se,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[1],.05)},null,8,ie),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[1]},null,8,re)])]),de,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley1)":t.value.style.colors.activeReadonly[1]},null,8,ue)],8,ne)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ve,8,ce)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===3}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[8]||(l[8]=a=>i.value=2),onMouseleave:l[9]||(l[9]=a=>i.value=void 0),onClick:l[10]||(l[10]=a=>v(3)),onKeyup:l[11]||(l[11]=e.withKeys(a=>v(3),["enter"]))},[t.value.style.tooltip.show&&y.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===2?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"3:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[3],e.unref(o.dataLabel)({v:s.dataset.rating[3],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ye,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,he)])]),ke,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(2)},null,8,ge)],8,fe)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ze,8,xe)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[$e,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Se,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,Me)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley2)":t.value.style.colors.activeReadonly[2]},null,8,Be)],8,Ee)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},je,8,Ce)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===4}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[12]||(l[12]=a=>i.value=3),onMouseleave:l[13]||(l[13]=a=>i.value=void 0),onClick:l[14]||(l[14]=a=>v(4)),onKeyup:l[15]||(l[15]=e.withKeys(a=>v(4),["enter"]))},[t.value.style.tooltip.show&&y.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===3?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"4:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[4],e.unref(o.dataLabel)({v:s.dataset.rating[4],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Ue,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,Ae)])]),Ye,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:c(3)},null,8,Ke)],8,De)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Fe,8,Ie)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[qe,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Pe,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,Qe)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley3)":t.value.style.colors.activeReadonly[3]},null,8,We)],8,Oe)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},tt,8,Ze)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===5}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[16]||(l[16]=a=>i.value=4),onMouseleave:l[17]||(l[17]=a=>i.value=void 0),onClick:l[18]||(l[18]=a=>v(5)),onKeyup:l[19]||(l[19]=e.withKeys(a=>v(5),["enter"]))},[t.value.style.tooltip.show&&y.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===4?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"5:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[5],e.unref(o.dataLabel)({v:s.dataset.rating[5],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ot,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,at),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,nt)])]),st,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:c(4)},null,8,it)],8,lt)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ut,8,rt)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[pt,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",vt,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,yt)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley4)":t.value.style.colors.activeReadonly[4]},null,8,mt)],8,ct)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gt,8,ht)):e.createCommentVNode("",!0)],38),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},_t=M._export_sfc(xt,[["__scopeId","data-v-563f44f5"]]);exports.default=_t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-ZAR4YEAn.cjs"),V=require("./useNestedProp-C8Y0yWDq.cjs"),x=require("./BaseIcon-vmPfwVXS.cjs"),F=require("./vue-ui-skeleton-urNi7er0.cjs"),j=require("./PackageVersion-DylCZJMA.cjs"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["id"],D=["xmlns","viewBox"],P=["id"],G=["stop-color"],U=["stop-color"],W={key:0},Z=["d","fill"],H=["d","fill"],R=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],X=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],J=["height","width","x"],K={style:{width:"100%"}},Q=["x","y","fill","font-size","font-weight"],Y=["stroke","cx","cy","fill"],ee=["x","y","font-size","fill","font-weight"],te={key:2,ref:"source",dir:"auto"},le={__name:"vue-ui-spark-trend",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(E){const u=E,{vue_ui_spark_trend:$}=a.useConfig(),S=e.computed(()=>!!u.dataset&&u.dataset.length),y=e.ref(a.createUid()),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:$});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_spark_trend[l.theme]||u.config,defaultConfig:l})}:l}const c=e.computed(()=>a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>u.config,l=>{t.value=w(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{h.value=a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(n=>[void 0,1/0,-1/0,null,NaN].includes(n)?null:n)},{deep:!0});function g(l){return l.map(n=>a.checkNaN(n))}const h=e.ref(a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(l=>t.value.style.animation.show||[void 0,1/0,-1/0,null,NaN].includes(l)?null:l)),p=e.ref(!1),_=e.ref(null);e.onMounted(()=>{C();let n=1e3/t.value.style.animation.animationFrames,i=performance.now();if(t.value.style.animation.show&&t.value.style.animation.animationFrames&&u.dataset.length>1){let N=function(){p.value=!0;let L=performance.now(),T=L-i;T>n?(i=L-T%n,v<c.value.length?(h.value.push(c.value[v]),v+=1,_.value=requestAnimationFrame(N)):(cancelAnimationFrame(_.value),h.value=g(c.value),p.value=!1)):_.value=requestAnimationFrame(N)};h.value=[];let v=0;N()}});function C(){a.objectIsEmpty(u.dataset)&&a.error({componentName:"VueUiSparkTrend",type:"dataset"})}const r=e.ref({height:80,width:300}),d=e.computed(()=>({top:t.value.style.padding.top,left:t.value.style.padding.left,right:r.value.width-t.value.style.padding.right,bottom:r.value.height-t.value.style.padding.bottom,height:r.value.height-(t.value.style.padding.top+t.value.style.padding.bottom)-(t.value.style.dataLabel.show?t.value.style.dataLabel.fontSize:0),width:r.value.width-(t.value.style.padding.left+t.value.style.padding.right)})),b=e.computed(()=>{const l=g(c.value);return{max:Math.max(...l.map(n=>a.checkNaN(n))),min:Math.min(...l.map(n=>a.checkNaN(n)))}}),m=e.computed(()=>{const l=b.value.min>=0?0:b.value.min;return Math.abs(l)}),z=e.computed(()=>b.value.max+m.value);function B(l){return l/z.value}const M=e.computed(()=>c.value.length),o=e.computed(()=>h.value.map((l,n)=>{const i=isNaN(l)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l)?0:l||0;return{value:a.checkNaN(l),absoluteValue:a.checkNaN(i),plotValue:a.checkNaN(i+m.value),toMax:B(i+m.value),x:d.value.left+a.checkNaN(n*(d.value.width/(M.value-1)))-t.value.style.padding.right,y:d.value.bottom-a.checkNaN(d.value.height*B(i+m.value))}})),f=e.computed(()=>{const l=g(c.value);return t.value.style.trendLabel.trendType==="global"?a.calcTrend(l):t.value.style.trendLabel.trendType==="n-1"&&l.length>1?(l.at(-1)/l.at(-2)-1)*100:t.value.style.trendLabel.trendType==="lastToFirst"?(l.at(-1)/l[0]-1)*100:0}),k=e.computed(()=>p.value||f.value===0?"neutral":f.value>0?"positive":"negative"),s=e.computed(()=>t.value.style.arrow.colors[k.value]),I=e.computed(()=>{const l={x:o.value[0].x,y:r.value.height-6},n={x:o.value[o.value.length-1].x,y:r.value.height-6},i=[];return o.value.forEach(v=>{i.push(`${v.x},${v.y} `)}),[l.x,l.y,...i,n.x,n.y].toString()}),A=e.computed(()=>{let l=[];return o.value.forEach(n=>{l.push(`${n.x},${n.y} `)}),`M ${l.toString()}`});return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-trend",id:y.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor}`)},[S.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:"width:100%;background:transparent;overflow:visible"},[e.createVNode(j._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`pill_gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,U)],8,P)]),t.value.style.area.show&&o.value[0]?(e.openBlock(),e.createElementBlock("g",W,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${o.value[0].x},${d.value.bottom} ${e.unref(a.createSmoothPath)(o.value)} L ${o.value.at(-1).x},${d.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,Z)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${I.value}Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,H))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(a.createSmoothPath)(o.value)}`,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,R)):e.createCommentVNode("",!0),!t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:2,d:A.value,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,X)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("foreignObject",{key:3,height:r.value.height/2,width:r.value.height/2,x:r.value.height/5,y:8},[e.createElementVNode("div",K,[k.value==="positive"?(e.openBlock(),e.createBlock(x.default,{key:0,stroke:s.value,name:"arrowTop",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="negative"?(e.openBlock(),e.createBlock(x.default,{key:1,stroke:s.value,name:"arrowBottom",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="neutral"?(e.openBlock(),e.createBlock(x.default,{key:2,stroke:s.value,name:"arrowRight",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0)])],8,J)),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.height/2-r.value.height/20,y:d.value.bottom,"text-anchor":"middle",fill:t.value.style.trendLabel.useColorTrend?s.value:t.value.style.trendLabel.color,"font-size":t.value.style.trendLabel.fontSize,"font-weight":t.value.style.trendLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.dataLabel)({p:f.value>0?"+":"",v:f.value,s:"%",r:t.value.style.trendLabel.rounding})),9,Q)),o.value.length&&o.value.at(-1).x!==void 0?(e.openBlock(),e.createElementBlock("circle",{key:5,stroke:t.value.style.backgroundColor,"stroke-width":2,cx:o.value.at(-1).x,cy:o.value.at(-1).y,r:4,fill:s.value},null,8,Y)):e.createCommentVNode("",!0),o.value.length&&o.value.at(-1).x!==void 0&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:o.value.at(-1).x,y:o.value.at(-1).y-t.value.style.dataLabel.fontSize/1.5,"font-size":t.value.style.dataLabel.fontSize,fill:t.value.style.dataLabel.useColorTrend?s.value:t.value.style.dataLabel.color,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.dataLabel.formatter,o.value.at(-1).value,e.unref(a.dataLabel)({p:t.value.style.dataLabel.prefix,v:o.value.at(-1).value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:o.value.at(-1)})),9,ee)):e.createCommentVNode("",!0)],8,D)):(e.openBlock(),e.createBlock(F.default,{key:0,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",te,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],12,O))}},ae=q._export_sfc(le,[["__scopeId","data-v-30936343"]]);exports.default=ae;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DuDeHJyK.cjs"),V=require("./useNestedProp-zkJOoemW.cjs"),x=require("./BaseIcon-DUokibJ1.cjs"),F=require("./vue-ui-skeleton-DleyAXe1.cjs"),j=require("./PackageVersion-1JWV5loe.cjs"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["id"],D=["xmlns","viewBox"],P=["id"],G=["stop-color"],U=["stop-color"],W={key:0},Z=["d","fill"],H=["d","fill"],R=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],X=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],J=["height","width","x"],K={style:{width:"100%"}},Q=["x","y","fill","font-size","font-weight"],Y=["stroke","cx","cy","fill"],ee=["x","y","font-size","fill","font-weight"],te={key:2,ref:"source",dir:"auto"},le={__name:"vue-ui-spark-trend",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(E){const u=E,{vue_ui_spark_trend:$}=a.useConfig(),S=e.computed(()=>!!u.dataset&&u.dataset.length),y=e.ref(a.createUid()),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:$});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_spark_trend[l.theme]||u.config,defaultConfig:l})}:l}const c=e.computed(()=>a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>u.config,l=>{t.value=w(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{h.value=a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(n=>[void 0,1/0,-1/0,null,NaN].includes(n)?null:n)},{deep:!0});function g(l){return l.map(n=>a.checkNaN(n))}const h=e.ref(a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(l=>t.value.style.animation.show||[void 0,1/0,-1/0,null,NaN].includes(l)?null:l)),p=e.ref(!1),_=e.ref(null);e.onMounted(()=>{C();let n=1e3/t.value.style.animation.animationFrames,i=performance.now();if(t.value.style.animation.show&&t.value.style.animation.animationFrames&&u.dataset.length>1){let N=function(){p.value=!0;let L=performance.now(),T=L-i;T>n?(i=L-T%n,v<c.value.length?(h.value.push(c.value[v]),v+=1,_.value=requestAnimationFrame(N)):(cancelAnimationFrame(_.value),h.value=g(c.value),p.value=!1)):_.value=requestAnimationFrame(N)};h.value=[];let v=0;N()}});function C(){a.objectIsEmpty(u.dataset)&&a.error({componentName:"VueUiSparkTrend",type:"dataset"})}const r=e.ref({height:80,width:300}),d=e.computed(()=>({top:t.value.style.padding.top,left:t.value.style.padding.left,right:r.value.width-t.value.style.padding.right,bottom:r.value.height-t.value.style.padding.bottom,height:r.value.height-(t.value.style.padding.top+t.value.style.padding.bottom)-(t.value.style.dataLabel.show?t.value.style.dataLabel.fontSize:0),width:r.value.width-(t.value.style.padding.left+t.value.style.padding.right)})),b=e.computed(()=>{const l=g(c.value);return{max:Math.max(...l.map(n=>a.checkNaN(n))),min:Math.min(...l.map(n=>a.checkNaN(n)))}}),m=e.computed(()=>{const l=b.value.min>=0?0:b.value.min;return Math.abs(l)}),z=e.computed(()=>b.value.max+m.value);function B(l){return l/z.value}const M=e.computed(()=>c.value.length),o=e.computed(()=>h.value.map((l,n)=>{const i=isNaN(l)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l)?0:l||0;return{value:a.checkNaN(l),absoluteValue:a.checkNaN(i),plotValue:a.checkNaN(i+m.value),toMax:B(i+m.value),x:d.value.left+a.checkNaN(n*(d.value.width/(M.value-1)))-t.value.style.padding.right,y:d.value.bottom-a.checkNaN(d.value.height*B(i+m.value))}})),f=e.computed(()=>{const l=g(c.value);return t.value.style.trendLabel.trendType==="global"?a.calcTrend(l):t.value.style.trendLabel.trendType==="n-1"&&l.length>1?(l.at(-1)/l.at(-2)-1)*100:t.value.style.trendLabel.trendType==="lastToFirst"?(l.at(-1)/l[0]-1)*100:0}),k=e.computed(()=>p.value||f.value===0?"neutral":f.value>0?"positive":"negative"),s=e.computed(()=>t.value.style.arrow.colors[k.value]),I=e.computed(()=>{const l={x:o.value[0].x,y:r.value.height-6},n={x:o.value[o.value.length-1].x,y:r.value.height-6},i=[];return o.value.forEach(v=>{i.push(`${v.x},${v.y} `)}),[l.x,l.y,...i,n.x,n.y].toString()}),A=e.computed(()=>{let l=[];return o.value.forEach(n=>{l.push(`${n.x},${n.y} `)}),`M ${l.toString()}`});return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-trend",id:y.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor}`)},[S.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:"width:100%;background:transparent;overflow:visible"},[e.createVNode(j._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`pill_gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,U)],8,P)]),t.value.style.area.show&&o.value[0]?(e.openBlock(),e.createElementBlock("g",W,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${o.value[0].x},${d.value.bottom} ${e.unref(a.createSmoothPath)(o.value)} L ${o.value.at(-1).x},${d.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,Z)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${I.value}Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,H))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(a.createSmoothPath)(o.value)}`,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,R)):e.createCommentVNode("",!0),!t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:2,d:A.value,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,X)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("foreignObject",{key:3,height:r.value.height/2,width:r.value.height/2,x:r.value.height/5,y:8},[e.createElementVNode("div",K,[k.value==="positive"?(e.openBlock(),e.createBlock(x.default,{key:0,stroke:s.value,name:"arrowTop",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="negative"?(e.openBlock(),e.createBlock(x.default,{key:1,stroke:s.value,name:"arrowBottom",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="neutral"?(e.openBlock(),e.createBlock(x.default,{key:2,stroke:s.value,name:"arrowRight",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0)])],8,J)),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.height/2-r.value.height/20,y:d.value.bottom,"text-anchor":"middle",fill:t.value.style.trendLabel.useColorTrend?s.value:t.value.style.trendLabel.color,"font-size":t.value.style.trendLabel.fontSize,"font-weight":t.value.style.trendLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.dataLabel)({p:f.value>0?"+":"",v:f.value,s:"%",r:t.value.style.trendLabel.rounding})),9,Q)),o.value.length&&o.value.at(-1).x!==void 0?(e.openBlock(),e.createElementBlock("circle",{key:5,stroke:t.value.style.backgroundColor,"stroke-width":2,cx:o.value.at(-1).x,cy:o.value.at(-1).y,r:4,fill:s.value},null,8,Y)):e.createCommentVNode("",!0),o.value.length&&o.value.at(-1).x!==void 0&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:o.value.at(-1).x,y:o.value.at(-1).y-t.value.style.dataLabel.fontSize/1.5,"font-size":t.value.style.dataLabel.fontSize,fill:t.value.style.dataLabel.useColorTrend?s.value:t.value.style.dataLabel.color,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.dataLabel.formatter,o.value.at(-1).value,e.unref(a.dataLabel)({p:t.value.style.dataLabel.prefix,v:o.value.at(-1).value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:o.value.at(-1)})),9,ee)):e.createCommentVNode("",!0)],8,D)):(e.openBlock(),e.createBlock(F.default,{key:0,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",te,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],12,O))}},ae=q._export_sfc(le,[["__scopeId","data-v-30936343"]]);exports.default=ae;
@@ -1,9 +1,9 @@
1
1
  import { computed as s, ref as k, watch as D, onMounted as H, openBlock as o, createElementBlock as u, normalizeStyle as J, createBlock as L, unref as h, createVNode as K, createElementVNode as _, createCommentVNode as d, toDisplayString as E, renderSlot as Q } from "vue";
2
- import { u as ee, c as te, t as ae, Y as S, o as le, e as ne, v as c, Z as oe, X as se, s as M, R as G, f as O, i as ue } from "./index-D3_dyp9t.js";
3
- import { u as U } from "./useNestedProp-qwG6HgrL.js";
4
- import I from "./BaseIcon-DgOZGFA6.js";
5
- import re from "./vue-ui-skeleton-CaV7JuCg.js";
6
- import { _ as ie } from "./PackageVersion-2fR7Awu1.js";
2
+ import { u as ee, c as te, t as ae, Y as S, o as le, e as ne, v as c, Z as oe, X as se, s as M, R as G, f as O, i as ue } from "./index-Cm2_6s9o.js";
3
+ import { u as U } from "./useNestedProp-BYPZJNhi.js";
4
+ import I from "./BaseIcon-DpLJi6ci.js";
5
+ import re from "./vue-ui-skeleton-BUS6A44x.js";
6
+ import { _ as ie } from "./PackageVersion-CTMY4zeY.js";
7
7
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"], fe = ["stop-color"], pe = { key: 0 }, me = ["d", "fill"], ge = ["d", "fill"], ke = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], _e = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], be = ["height", "width", "x"], xe = { style: { width: "100%" } }, we = ["x", "y", "fill", "font-size", "font-weight"], Ce = ["stroke", "cx", "cy", "fill"], Le = ["x", "y", "font-size", "fill", "font-weight"], $e = {
9
9
  key: 2,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-ZAR4YEAn.cjs"),C=require("./useNestedProp-C8Y0yWDq.cjs"),V=require("./vue-ui-skeleton-urNi7er0.cjs"),D=require("./PackageVersion-DylCZJMA.cjs"),$=["onClick"],z={key:1},L=["xmlns","viewBox"],P=["id"],A=["stop-color"],F=["stop-color"],O=["height","width","fill","rx"],I=["height","width","fill","rx"],T=["height","width","fill","rx"],q={key:2,ref:"source",dir:"auto"},M={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:null}},emits:["selectDatapoint"],setup(p,{emit:b}){const n=p,{vue_ui_sparkbar:w}=o.useConfig(),v=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>f(),set:l=>l});function f(){const l=C.useNestedProp({userConfig:n.config,defaultConfig:w});return l.theme?{...C.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>n.config,l=>{t.value=f()},{deep:!0});const S=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0,formatter:l.formatter||null}))),g=e.ref(null);e.onMounted(async()=>{o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),h()});function h(){if(t.value.style.animation.show){let x=function(){i+=a/l,i<a?(c.value=c.value.map((u,m)=>({...u,value:u.value+=r[m]})),g.value=requestAnimationFrame(x)):c.value=n.dataset.map(u=>({...u,value:u.value||0,formatter:u.formatter||null}))};const l=t.value.style.animation.animationFrames,r=n.dataset.map((u,m)=>u.value/l),a=n.dataset.map(u=>u.value||0).reduce((u,m)=>u+m,0);let i=0;x()}}e.watch(()=>n.dataset,async l=>{cancelAnimationFrame(g.value),c.value=n.dataset.map(r=>({...r,value:t.value.style.animation.show?0:r.value||0,formatter:r.formatter||null})),e.nextTick(h)},{deep:!0});const s=e.ref({width:500,height:16}),N=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),_=e.computed(()=>(n.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:r})})}),c.value.map((l,r)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||S.value[r]||o.palette[r]||o.palette[r%o.palette.length]}))));function B(l){return l/N.value}function k(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value>100?1:l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:B(l.value)}function d(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function E(l,r){b("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:n.backgroundOpacity!==null?e.unref(o.setOpacity)(t.value.style.backgroundColor,n.backgroundOpacity):t.value.style.backgroundColor})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight:t.value.style.title.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?`flex-direction: ${t.value.style.labels.name.position==="right"?"row-reverse":"row"} !important`:"flex-direction:column !important"};gap:${t.value.style.gap}px !important;align-items:center;${p.dataset.length>0&&i!==p.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>E(a,i)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:d(a),valueLabel:e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i}),targetLabel:e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:t.value.style.labels.name.width,color:t.value.style.labels.name.color,fontSize:t.value.style.labels.fontSize+"px",fontWeight:t.value.style.labels.name.bold?"bold":"normal",textAlign:["left","right"].includes(t.value.style.labels.name.position)||["top","top-left"].includes(t.value.style.labels.name.position)?"left":t.value.style.labels.name.position==="top-center"?"center":"right"})},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${s.value.width} ${s.value.height}`,width:"100%"},[e.createVNode(D._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${i}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.03),100-t.value.style.bar.gradient.intensity)},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P)]),e.createElementVNode("rect",{height:s.value.height,width:s.value.width,x:0,y:0,fill:e.unref(o.setOpacity)(t.value.style.gutter.backgroundColor,t.value.style.gutter.opacity),rx:s.value.height/2},null,8,O),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:s.value.height/2},null,8,I),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${i}_${y.value})`:a.color,rx:s.value.height/2},null,8,T)],8,L))],12,$)):e.createCommentVNode("",!0)],64))),256)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(l.$slots,"source")],512)):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:3,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DuDeHJyK.cjs"),C=require("./useNestedProp-zkJOoemW.cjs"),V=require("./vue-ui-skeleton-DleyAXe1.cjs"),D=require("./PackageVersion-1JWV5loe.cjs"),$=["onClick"],z={key:1},L=["xmlns","viewBox"],P=["id"],A=["stop-color"],F=["stop-color"],O=["height","width","fill","rx"],I=["height","width","fill","rx"],T=["height","width","fill","rx"],q={key:2,ref:"source",dir:"auto"},M={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:null}},emits:["selectDatapoint"],setup(p,{emit:b}){const n=p,{vue_ui_sparkbar:w}=o.useConfig(),v=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>f(),set:l=>l});function f(){const l=C.useNestedProp({userConfig:n.config,defaultConfig:w});return l.theme?{...C.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>n.config,l=>{t.value=f()},{deep:!0});const S=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0,formatter:l.formatter||null}))),g=e.ref(null);e.onMounted(async()=>{o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),h()});function h(){if(t.value.style.animation.show){let x=function(){i+=a/l,i<a?(c.value=c.value.map((u,m)=>({...u,value:u.value+=r[m]})),g.value=requestAnimationFrame(x)):c.value=n.dataset.map(u=>({...u,value:u.value||0,formatter:u.formatter||null}))};const l=t.value.style.animation.animationFrames,r=n.dataset.map((u,m)=>u.value/l),a=n.dataset.map(u=>u.value||0).reduce((u,m)=>u+m,0);let i=0;x()}}e.watch(()=>n.dataset,async l=>{cancelAnimationFrame(g.value),c.value=n.dataset.map(r=>({...r,value:t.value.style.animation.show?0:r.value||0,formatter:r.formatter||null})),e.nextTick(h)},{deep:!0});const s=e.ref({width:500,height:16}),N=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),_=e.computed(()=>(n.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:r})})}),c.value.map((l,r)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||S.value[r]||o.palette[r]||o.palette[r%o.palette.length]}))));function B(l){return l/N.value}function k(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value>100?1:l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:B(l.value)}function d(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function E(l,r){b("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:n.backgroundOpacity!==null?e.unref(o.setOpacity)(t.value.style.backgroundColor,n.backgroundOpacity):t.value.style.backgroundColor})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight:t.value.style.title.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?`flex-direction: ${t.value.style.labels.name.position==="right"?"row-reverse":"row"} !important`:"flex-direction:column !important"};gap:${t.value.style.gap}px !important;align-items:center;${p.dataset.length>0&&i!==p.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>E(a,i)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:d(a),valueLabel:e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i}),targetLabel:e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:t.value.style.labels.name.width,color:t.value.style.labels.name.color,fontSize:t.value.style.labels.fontSize+"px",fontWeight:t.value.style.labels.name.bold?"bold":"normal",textAlign:["left","right"].includes(t.value.style.labels.name.position)||["top","top-left"].includes(t.value.style.labels.name.position)?"left":t.value.style.labels.name.position==="top-center"?"center":"right"})},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${s.value.width} ${s.value.height}`,width:"100%"},[e.createVNode(D._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${i}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.03),100-t.value.style.bar.gradient.intensity)},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P)]),e.createElementVNode("rect",{height:s.value.height,width:s.value.width,x:0,y:0,fill:e.unref(o.setOpacity)(t.value.style.gutter.backgroundColor,t.value.style.gutter.opacity),rx:s.value.height/2},null,8,O),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:s.value.height/2},null,8,I),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${i}_${y.value})`:a.color,rx:s.value.height/2},null,8,T)],8,L))],12,$)):e.createCommentVNode("",!0)],64))),256)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(l.$slots,"source")],512)):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:3,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=M;
@@ -1,8 +1,8 @@
1
1
  import { computed as g, ref as x, watch as z, onMounted as q, nextTick as H, openBlock as n, createElementBlock as v, normalizeStyle as f, unref as s, renderSlot as b, normalizeProps as L, mergeProps as X, createCommentVNode as c, createElementVNode as d, toDisplayString as p, Fragment as O, renderList as R, guardReactiveProps as J, createVNode as K, createBlock as Q } from "vue";
2
- import { u as Y, c as Z, t as ee, a as te, p as k, b as le, o as ae, e as T, g as oe, d as se, s as $, i as w, f as _, X as ue, w as ne } from "./index-D3_dyp9t.js";
3
- import { u as V } from "./useNestedProp-qwG6HgrL.js";
4
- import ie from "./vue-ui-skeleton-CaV7JuCg.js";
5
- import { _ as re } from "./PackageVersion-2fR7Awu1.js";
2
+ import { u as Y, c as Z, t as ee, a as te, p as k, b as le, o as ae, e as T, g as oe, d as se, s as $, i as w, f as _, X as ue, w as ne } from "./index-Cm2_6s9o.js";
3
+ import { u as V } from "./useNestedProp-BYPZJNhi.js";
4
+ import ie from "./vue-ui-skeleton-BUS6A44x.js";
5
+ import { _ as re } from "./PackageVersion-CTMY4zeY.js";
6
6
  const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], fe = ["id"], pe = ["stop-color"], ye = ["stop-color"], me = ["height", "width", "fill", "rx"], ge = ["height", "width", "fill", "rx"], he = ["height", "width", "fill", "rx"], xe = {
7
7
  key: 2,
8
8
  ref: "source",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-ZAR4YEAn.cjs"),b=require("./useNestedProp-C8Y0yWDq.cjs"),$=require("./vue-ui-skeleton-urNi7er0.cjs"),w=require("./PackageVersion-DylCZJMA.cjs"),S=["xmlns","viewBox"],L=["id"],B=["stop-color"],E=["stop-color"],M=["d","stroke","stroke-linecap"],z=["d","stroke","stroke-linecap","stroke-dashoffset"],V=["x","y","font-size","fill","font-weight"],A={key:4,ref:"source",dir:"auto"},q={__name:"vue-ui-sparkgauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C){const o=C,{vue_ui_sparkgauge:_}=s.useConfig(),c=e.computed(()=>!!o.dataset&&Object.keys(o.dataset).length);e.onMounted(()=>{d()});function d(){s.objectIsEmpty(o.dataset)?s.error({componentName:"VueUiSparkgauge",type:"dataset"}):s.getMissingDatasetAttributes({datasetObject:o.dataset,requiredAttributes:["value","min","max"]}).forEach(a=>{s.error({componentName:"VueUiSparkgauge",type:"datasetAttribute",property:a})})}const v=e.ref(s.createUid()),t=e.computed({get:()=>m(),set:a=>a});function m(){const a=b.useNestedProp({userConfig:o.config,defaultConfig:_});return a.theme?{...b.useNestedProp({userConfig:s.themes.vue_ui_sparkgauge[a.theme]||o.config,defaultConfig:a})}:a}e.watch(()=>o.config,a=>{t.value=m(),d()},{deep:!0});const u=e.computed(()=>({height:t.value.style.height,width:128,base:t.value.style.basePosition})),n=e.computed(()=>{const a=o.dataset.min??0,r=o.dataset.max??0,N=r-a;return{min:a,max:r,diff:N}}),l=e.ref(t.value.style.animation.show?n.value.min:o.dataset.value);e.watch(()=>o.dataset.value,()=>{y(o.dataset.value||0)});const f=e.computed(()=>l.value>n.value.max?n.value.max:l.value<n.value.min?n.value.min:l.value),p=e.computed(()=>n.value.diff/t.value.style.animation.speedMs);e.onMounted(()=>{y(o.dataset.value||0)});function y(a){function r(){l.value<a?l.value=Math.min(l.value+p.value,a):l.value>a&&(l.value=Math.max(l.value-p.value,a)),l.value!==a&&requestAnimationFrame(r)}r()}const i=e.computed(()=>o.dataset.title??""),g=e.computed(()=>l.value>=0?(f.value-n.value.min)/n.value.diff:(Math.abs(n.value.min)-Math.abs(f.value))/n.value.diff),k=e.computed(()=>s.interpolateColorHex(t.value.style.colors.min,t.value.style.colors.max,n.value.min,n.value.max,l.value)),h=e.computed(()=>t.value.style.dataLabel.autoColor?k.value:t.value.style.dataLabel.color),x=e.computed(()=>t.value.style.track.autoColor?k.value:t.value.style.track.color);return(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width: 100%; background:${t.value.style.background}`)},[t.value.style.title.show&&i.value&&t.value.style.title.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:"overflow: visible; background:transparent; width:100%;"},[e.createVNode(w._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`gradient_${v.value}`,x1:"-10%",y1:"100%",x2:"110%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.colors.min},null,8,B),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.max},null,8,E)],8,L)]),e.createElementVNode("path",{d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.gutter.color,"stroke-width":8,"stroke-linecap":t.value.style.gutter.strokeLinecap,fill:"none"},null,8,M),g.value!==0?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.colors.showGradient?`url(#gradient_${v.value})`:x.value,"stroke-width":8,"stroke-linecap":t.value.style.track.strokeLinecap,fill:"none","stroke-dasharray":169.5,"stroke-dashoffset":169.5-169.5*g.value,class:e.normalizeClass({"vue-ui-sparkgauge-track":t.value.style.animation.show}),style:e.normalizeStyle(t.value.style.animation.show?`animation: vue-ui-sparkgauge-animation ${t.value.style.animation.speedMs}ms ease-in;`:"")},null,14,z)):e.createCommentVNode("",!0),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.width/2,y:u.value.base+6+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,fill:h.value,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.dataLabel.formatter,e.unref(s.checkNaN)(l.value),e.unref(s.dataLabel)({p:t.value.style.dataLabel.prefix,v:e.unref(s.checkNaN)(l.value),s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:e.unref(s.checkNaN)(l.value),color:h.value})),9,V)],8,S)):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($.default,{key:2,config:{type:"gauge",style:{backgroundColor:t.value.style.background,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.title.show&&i.value&&t.value.style.title.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(a.$slots,"source")],512)):e.createCommentVNode("",!0)],4))}};exports.default=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DuDeHJyK.cjs"),b=require("./useNestedProp-zkJOoemW.cjs"),$=require("./vue-ui-skeleton-DleyAXe1.cjs"),w=require("./PackageVersion-1JWV5loe.cjs"),S=["xmlns","viewBox"],L=["id"],B=["stop-color"],E=["stop-color"],M=["d","stroke","stroke-linecap"],z=["d","stroke","stroke-linecap","stroke-dashoffset"],V=["x","y","font-size","fill","font-weight"],A={key:4,ref:"source",dir:"auto"},q={__name:"vue-ui-sparkgauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C){const o=C,{vue_ui_sparkgauge:_}=s.useConfig(),c=e.computed(()=>!!o.dataset&&Object.keys(o.dataset).length);e.onMounted(()=>{d()});function d(){s.objectIsEmpty(o.dataset)?s.error({componentName:"VueUiSparkgauge",type:"dataset"}):s.getMissingDatasetAttributes({datasetObject:o.dataset,requiredAttributes:["value","min","max"]}).forEach(a=>{s.error({componentName:"VueUiSparkgauge",type:"datasetAttribute",property:a})})}const v=e.ref(s.createUid()),t=e.computed({get:()=>m(),set:a=>a});function m(){const a=b.useNestedProp({userConfig:o.config,defaultConfig:_});return a.theme?{...b.useNestedProp({userConfig:s.themes.vue_ui_sparkgauge[a.theme]||o.config,defaultConfig:a})}:a}e.watch(()=>o.config,a=>{t.value=m(),d()},{deep:!0});const u=e.computed(()=>({height:t.value.style.height,width:128,base:t.value.style.basePosition})),n=e.computed(()=>{const a=o.dataset.min??0,r=o.dataset.max??0,N=r-a;return{min:a,max:r,diff:N}}),l=e.ref(t.value.style.animation.show?n.value.min:o.dataset.value);e.watch(()=>o.dataset.value,()=>{y(o.dataset.value||0)});const f=e.computed(()=>l.value>n.value.max?n.value.max:l.value<n.value.min?n.value.min:l.value),p=e.computed(()=>n.value.diff/t.value.style.animation.speedMs);e.onMounted(()=>{y(o.dataset.value||0)});function y(a){function r(){l.value<a?l.value=Math.min(l.value+p.value,a):l.value>a&&(l.value=Math.max(l.value-p.value,a)),l.value!==a&&requestAnimationFrame(r)}r()}const i=e.computed(()=>o.dataset.title??""),g=e.computed(()=>l.value>=0?(f.value-n.value.min)/n.value.diff:(Math.abs(n.value.min)-Math.abs(f.value))/n.value.diff),k=e.computed(()=>s.interpolateColorHex(t.value.style.colors.min,t.value.style.colors.max,n.value.min,n.value.max,l.value)),h=e.computed(()=>t.value.style.dataLabel.autoColor?k.value:t.value.style.dataLabel.color),x=e.computed(()=>t.value.style.track.autoColor?k.value:t.value.style.track.color);return(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width: 100%; background:${t.value.style.background}`)},[t.value.style.title.show&&i.value&&t.value.style.title.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:"overflow: visible; background:transparent; width:100%;"},[e.createVNode(w._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`gradient_${v.value}`,x1:"-10%",y1:"100%",x2:"110%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.colors.min},null,8,B),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.max},null,8,E)],8,L)]),e.createElementVNode("path",{d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.gutter.color,"stroke-width":8,"stroke-linecap":t.value.style.gutter.strokeLinecap,fill:"none"},null,8,M),g.value!==0?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.colors.showGradient?`url(#gradient_${v.value})`:x.value,"stroke-width":8,"stroke-linecap":t.value.style.track.strokeLinecap,fill:"none","stroke-dasharray":169.5,"stroke-dashoffset":169.5-169.5*g.value,class:e.normalizeClass({"vue-ui-sparkgauge-track":t.value.style.animation.show}),style:e.normalizeStyle(t.value.style.animation.show?`animation: vue-ui-sparkgauge-animation ${t.value.style.animation.speedMs}ms ease-in;`:"")},null,14,z)):e.createCommentVNode("",!0),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.width/2,y:u.value.base+6+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,fill:h.value,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.dataLabel.formatter,e.unref(s.checkNaN)(l.value),e.unref(s.dataLabel)({p:t.value.style.dataLabel.prefix,v:e.unref(s.checkNaN)(l.value),s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:e.unref(s.checkNaN)(l.value),color:h.value})),9,V)],8,S)):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($.default,{key:2,config:{type:"gauge",style:{backgroundColor:t.value.style.background,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.title.show&&i.value&&t.value.style.title.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(a.$slots,"source")],512)):e.createCommentVNode("",!0)],4))}};exports.default=q;
@@ -1,8 +1,8 @@
1
1
  import { computed as s, onMounted as N, ref as A, watch as M, openBlock as n, createElementBlock as i, normalizeStyle as m, toDisplayString as y, createCommentVNode as v, unref as c, createVNode as D, createElementVNode as d, normalizeClass as E, createBlock as G, renderSlot as I } from "vue";
2
- import { u as U, o as q, e as S, g as P, c as R, t as T, N as X, X as H, i as V, v as p, f as Y } from "./index-D3_dyp9t.js";
3
- import { u as z } from "./useNestedProp-qwG6HgrL.js";
4
- import J from "./vue-ui-skeleton-CaV7JuCg.js";
5
- import { _ as K } from "./PackageVersion-2fR7Awu1.js";
2
+ import { u as U, o as q, e as S, g as P, c as R, t as T, N as X, X as H, i as V, v as p, f as Y } from "./index-Cm2_6s9o.js";
3
+ import { u as z } from "./useNestedProp-BYPZJNhi.js";
4
+ import J from "./vue-ui-skeleton-BUS6A44x.js";
5
+ import { _ as K } from "./PackageVersion-CTMY4zeY.js";
6
6
  const Q = ["xmlns", "viewBox"], W = ["id"], Z = ["stop-color"], ee = ["stop-color"], te = ["d", "stroke", "stroke-linecap"], ae = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], le = ["x", "y", "font-size", "fill", "font-weight"], oe = {
7
7
  key: 4,
8
8
  ref: "source",
@@ -1,9 +1,9 @@
1
1
  import { useCssVars as J, computed as _, onMounted as K, ref as N, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as g, unref as n, createCommentVNode as h, createVNode as ee, Fragment as f, renderList as p, normalizeClass as D, createBlock as I, renderSlot as te } from "vue";
2
- import { u as le, o as ae, e as V, g as se, c as oe, t as ue, s as m, i as H, f as E, X as re, w as z } from "./index-D3_dyp9t.js";
3
- import { u as F } from "./useNestedProp-qwG6HgrL.js";
4
- import { _ as ie } from "./Shape-JMJZs7By.js";
5
- import ne from "./vue-ui-skeleton-CaV7JuCg.js";
6
- import { _ as ve } from "./PackageVersion-2fR7Awu1.js";
2
+ import { u as le, o as ae, e as V, g as se, c as oe, t as ue, s as m, i as H, f as E, X as re, w as z } from "./index-Cm2_6s9o.js";
3
+ import { u as F } from "./useNestedProp-BYPZJNhi.js";
4
+ import { _ as ie } from "./Shape-C-sY_hlc.js";
5
+ import ne from "./vue-ui-skeleton-BUS6A44x.js";
6
+ import { _ as ve } from "./PackageVersion-CTMY4zeY.js";
7
7
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], me = ["id"], be = ["stop-color"], _e = ["stop-color"], xe = ["id"], ke = ["stop-color"], we = ["stop-color"], $e = { key: 0 }, Ce = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Le = { key: 1 }, ze = ["x", "y", "font-size", "font-weight", "fill"], Se = ["x", "y", "font-size", "fill"], Me = ["x", "y", "font-size", "fill"], Ae = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ne = {
9
9
  key: 2,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-ZAR4YEAn.cjs"),_=require("./useNestedProp-C8Y0yWDq.cjs"),F=require("./Shape-nGoGILeB.cjs"),M=require("./vue-ui-skeleton-urNi7er0.cjs"),O=require("./PackageVersion-DylCZJMA.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["id"],W=["stop-color"],P=["stop-color"],j=["id"],G=["stop-color"],T=["stop-color"],X=["id"],Y=["stop-color"],R=["stop-color"],J={key:0},K=["x","y","height","width","fill","stroke","stroke-width","rx"],Q={key:1},Z=["x","y","font-size","font-weight","fill"],ee=["x","y","font-size","fill"],te=["x","y","font-size","fill"],le=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],oe={key:2,ref:"source",dir:"auto"},ae={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(x,{emit:B}){const i=x;e.useCssVars(o=>({"3d57fabd":S.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),h=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(i.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):i.dataset.forEach((o,r)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:r})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o});function b(){const o=_.useNestedProp({userConfig:i.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||i.config,defaultConfig:o})}:o}e.watch(()=>i.config,o=>{t.value=b(),k()},{deep:!0});const c=e.computed(()=>{const o=t.value.style.layout.height,r=t.value.style.layout.width,l=t.value.style.layout.padding.top,s=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=r-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,f=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=r-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:s,centerY:p,drawingHeight:f,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),w=e.computed(()=>Math.max(...i.dataset.map(o=>Math.abs(o.value||0))));function C(o){return Math.abs(o)/w.value}const u=e.computed(()=>i.dataset.map((o,r)=>{const l=C(o.value||0),s=c.value.drawingHeight*l,d=c.value.drawingWidth/i.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,f=c.value.centerY-s/2,m=c.value.left+(y/2+r*d),L=c.value.left+r*d,g=typeof o.intensity>"u"?100:Math.round(o.intensity*100),N=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,g):a.setOpacity(t.value.style.bars.colors.negative,g),V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,D=m+p/2;return{...o,color:N,gradient:z,height:s,intensity:g,proportion:l,stroke:V,textAnchor:D,trapX:L,unitWidth:d,width:p,x:m,y:f}})),n=e.ref(null);function $(o,r){B("selectDatapoint",{datapoint:o,index:r})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:r[1]||(r[1]=l=>n.value=null)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),n.value!==null?(e.openBlock(),e.createElementBlock("span",H,"- "+e.toDisplayString(u.value[n.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,u.value[n.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:u.value[n.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:u.value[n.value],seriesIndex:n.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(n.value)&&![null,void 0].includes(u.value[n.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(u.value[n.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${c.value.width} ${c.value.height}`,style:{overflow:"visible"}},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05),l.intensity)},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,P)],8,U))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05),l.intensity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,T)],8,j))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(l.color,.05),l.intensity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,R)],8,X))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,K))),256))])):(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createBlock(F._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,l.value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:l.value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:u.value[n.value],seriesIndex:n.value})),9,Z))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,ee)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:c.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:c.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>n.value=s,onMouseleave:r[0]||(r[0]=d=>n.value=null),stroke:n.value!==null&&n.value===s?t.value.style.selector.stroke:"","stroke-width":n.value!==null&&n.value===s?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>$(l,s)},null,40,le)]))),256))],8,I)):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:3,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},se=A._export_sfc(ae,[["__scopeId","data-v-4e962555"]]);exports.default=se;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DuDeHJyK.cjs"),_=require("./useNestedProp-zkJOoemW.cjs"),F=require("./Shape-rA2az7tR.cjs"),M=require("./vue-ui-skeleton-DleyAXe1.cjs"),O=require("./PackageVersion-1JWV5loe.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["id"],W=["stop-color"],P=["stop-color"],j=["id"],G=["stop-color"],T=["stop-color"],X=["id"],Y=["stop-color"],R=["stop-color"],J={key:0},K=["x","y","height","width","fill","stroke","stroke-width","rx"],Q={key:1},Z=["x","y","font-size","font-weight","fill"],ee=["x","y","font-size","fill"],te=["x","y","font-size","fill"],le=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],oe={key:2,ref:"source",dir:"auto"},ae={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(x,{emit:B}){const i=x;e.useCssVars(o=>({"3d57fabd":S.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),h=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(i.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):i.dataset.forEach((o,r)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:r})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o});function b(){const o=_.useNestedProp({userConfig:i.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||i.config,defaultConfig:o})}:o}e.watch(()=>i.config,o=>{t.value=b(),k()},{deep:!0});const c=e.computed(()=>{const o=t.value.style.layout.height,r=t.value.style.layout.width,l=t.value.style.layout.padding.top,s=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=r-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,f=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=r-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:s,centerY:p,drawingHeight:f,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),w=e.computed(()=>Math.max(...i.dataset.map(o=>Math.abs(o.value||0))));function C(o){return Math.abs(o)/w.value}const u=e.computed(()=>i.dataset.map((o,r)=>{const l=C(o.value||0),s=c.value.drawingHeight*l,d=c.value.drawingWidth/i.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,f=c.value.centerY-s/2,m=c.value.left+(y/2+r*d),L=c.value.left+r*d,g=typeof o.intensity>"u"?100:Math.round(o.intensity*100),N=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,g):a.setOpacity(t.value.style.bars.colors.negative,g),V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,D=m+p/2;return{...o,color:N,gradient:z,height:s,intensity:g,proportion:l,stroke:V,textAnchor:D,trapX:L,unitWidth:d,width:p,x:m,y:f}})),n=e.ref(null);function $(o,r){B("selectDatapoint",{datapoint:o,index:r})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:r[1]||(r[1]=l=>n.value=null)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),n.value!==null?(e.openBlock(),e.createElementBlock("span",H,"- "+e.toDisplayString(u.value[n.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,u.value[n.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:u.value[n.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:u.value[n.value],seriesIndex:n.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(n.value)&&![null,void 0].includes(u.value[n.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(u.value[n.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${c.value.width} ${c.value.height}`,style:{overflow:"visible"}},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05),l.intensity)},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,P)],8,U))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05),l.intensity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,T)],8,j))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(l.color,.05),l.intensity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,R)],8,X))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,K))),256))])):(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createBlock(F._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,l.value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:l.value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:u.value[n.value],seriesIndex:n.value})),9,Z))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,ee)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:c.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:c.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>n.value=s,onMouseleave:r[0]||(r[0]=d=>n.value=null),stroke:n.value!==null&&n.value===s?t.value.style.selector.stroke:"","stroke-width":n.value!==null&&n.value===s?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>$(l,s)},null,40,le)]))),256))],8,I)):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:3,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},se=A._export_sfc(ae,[["__scopeId","data-v-4e962555"]]);exports.default=se;